@sportsbroker/firebase-structure 3.24.0-19 → 3.24.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.
- package/.github/semantic.yml +13 -0
- package/CHANGELOG.md +0 -129
- package/models/details/matches/_index.d.ts +2 -6
- package/models/details/matches/commentaries.d.ts +3 -18
- package/models/details/matches/events.d.ts +6 -6
- package/models/details/matches/h2h.d.ts +4 -11
- package/models/details/matches/overviews.d.ts +1 -3
- package/models/details/matches/referees.d.ts +13 -0
- package/models/details/matches/scores.d.ts +4 -5
- package/models/details/matches/stats.d.ts +21 -63
- package/models/details/seasons/_index.d.ts +0 -1
- package/models/details/seasons/overviews.d.ts +0 -5
- package/models/global.d.ts +2 -13
- package/models/queries/matches.d.ts +1 -3
- package/models/snapshots/matchOverviews.d.ts +1 -17
- package/models/snapshots/tableSummary.d.ts +5 -23
- package/package.json +1 -1
- package/models/details/matches/matchTeamPredicate.d.ts +0 -10
- package/models/details/matches/officials.d.ts +0 -18
- package/models/details/seasons/stages.d.ts +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,135 +2,6 @@
|
|
|
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-19](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-17...v3.24.0-19) (2021-05-10)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
* added match commentary types ([21c5791](https://github.com/SportsBroker-HQ/firebase-structure/commit/21c5791d7f86debd3a003ce2c930944104fbcd7b))
|
|
11
|
-
* new match statistics [ch14445] ([619f873](https://github.com/SportsBroker-HQ/firebase-structure/commit/619f873a61de094d9c9dd8db11c2b16580b52051))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### Bug Fixes
|
|
15
|
-
|
|
16
|
-
* 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))
|
|
17
|
-
|
|
18
|
-
## [3.24.0-18](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-17...v3.24.0-18) (2021-05-10)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
### Features
|
|
22
|
-
|
|
23
|
-
* added match commentary types ([21c5791](https://github.com/SportsBroker-HQ/firebase-structure/commit/21c5791d7f86debd3a003ce2c930944104fbcd7b))
|
|
24
|
-
* new match statistics [ch14445] ([619f873](https://github.com/SportsBroker-HQ/firebase-structure/commit/619f873a61de094d9c9dd8db11c2b16580b52051))
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### Bug Fixes
|
|
28
|
-
|
|
29
|
-
* 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))
|
|
30
|
-
|
|
31
|
-
## [3.24.0-17](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-16...v3.24.0-17) (2021-05-06)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
### Features
|
|
35
|
-
|
|
36
|
-
* make sub player in optional ([2f66535](https://github.com/SportsBroker-HQ/firebase-structure/commit/2f66535bb82037854865ebd0d37bca5b7cb443b8))
|
|
37
|
-
* new match statistics [ch14445] ([e1b598e](https://github.com/SportsBroker-HQ/firebase-structure/commit/e1b598eaf702948e33c27d9e6fccf95e53c6cafa))
|
|
38
|
-
|
|
39
|
-
## [3.24.0-16](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-15...v3.24.0-16) (2021-04-23)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### Features
|
|
43
|
-
|
|
44
|
-
* adjust head to head structure ([a9e03d0](https://github.com/SportsBroker-HQ/firebase-structure/commit/a9e03d09e5632b0a52ab0fd13559320a6ba62fda))
|
|
45
|
-
|
|
46
|
-
## [3.24.0-15](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-14...v3.24.0-15) (2021-04-21)
|
|
47
|
-
|
|
48
|
-
## [3.24.0-14](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-13...v3.24.0-14) (2021-04-21)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
### Bug Fixes
|
|
52
|
-
|
|
53
|
-
* prevent remove of stages/groups ([cf92497](https://github.com/SportsBroker-HQ/firebase-structure/commit/cf9249774fa323eb2317e70488593e9b2c162686))
|
|
54
|
-
|
|
55
|
-
## [3.24.0-13](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-12...v3.24.0-13) (2021-04-21)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### Features
|
|
59
|
-
|
|
60
|
-
* set prev/next match as optional ([fa64283](https://github.com/SportsBroker-HQ/firebase-structure/commit/fa64283cd8059db43baeefa4c75c04b97652125e))
|
|
61
|
-
|
|
62
|
-
## [3.24.0-12](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-11...v3.24.0-12) (2021-04-21)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
### Features
|
|
66
|
-
|
|
67
|
-
* add stages, groups ([7e0bf8f](https://github.com/SportsBroker-HQ/firebase-structure/commit/7e0bf8f96d65e84abb4e463ef0dd0f2ca643467a))
|
|
68
|
-
|
|
69
|
-
## [3.24.0-11](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-10...v3.24.0-11) (2021-04-19)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
### Features
|
|
73
|
-
|
|
74
|
-
* add match team predicate ([1b01393](https://github.com/SportsBroker-HQ/firebase-structure/commit/1b013931dd54e080569fd01b5a2f1a60cc982432))
|
|
75
|
-
|
|
76
|
-
## [3.24.0-10](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-9...v3.24.0-10) (2021-04-19)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
### Bug Fixes
|
|
80
|
-
|
|
81
|
-
* revert snapshots structures ([4dffdbe](https://github.com/SportsBroker-HQ/firebase-structure/commit/4dffdbeadde47e7cd977be4d639c1b2a013015fc))
|
|
82
|
-
|
|
83
|
-
## [3.24.0-9](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-7...v3.24.0-9) (2021-04-16)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
### Features
|
|
87
|
-
|
|
88
|
-
* added type and countryCode to SeasonOverview ([dc420fe](https://github.com/SportsBroker-HQ/firebase-structure/commit/dc420fe7566bb8bd0721668c449847b84a576588))
|
|
89
|
-
* adjust events teamId ([afc6b72](https://github.com/SportsBroker-HQ/firebase-structure/commit/afc6b727dfa5e0ba2cb558c54d7e15453a6a5efd))
|
|
90
|
-
|
|
91
|
-
## [3.24.0-8](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-7...v3.24.0-8) (2021-04-16)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
### Features
|
|
95
|
-
|
|
96
|
-
* added type and countryCode to SeasonOverview ([dc420fe](https://github.com/SportsBroker-HQ/firebase-structure/commit/dc420fe7566bb8bd0721668c449847b84a576588))
|
|
97
|
-
|
|
98
|
-
## [3.24.0-7](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-6...v3.24.0-7) (2021-04-15)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
### Features
|
|
102
|
-
|
|
103
|
-
* adjust match scores schema ([e34e1d3](https://github.com/SportsBroker-HQ/firebase-structure/commit/e34e1d313256cd330105f436e90caeaebb5293c9))
|
|
104
|
-
|
|
105
|
-
## [3.24.0-6](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-5...v3.24.0-6) (2021-04-15)
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
### Features
|
|
109
|
-
|
|
110
|
-
* adjust match scores schema ([c18bbe3](https://github.com/SportsBroker-HQ/firebase-structure/commit/c18bbe3ea23151a7567d226da57ca3914a35be9a))
|
|
111
|
-
|
|
112
|
-
## [3.24.0-5](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-3...v3.24.0-5) (2021-04-14)
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
### Features
|
|
116
|
-
|
|
117
|
-
* adjust head2head structure ([39ee387](https://github.com/SportsBroker-HQ/firebase-structure/commit/39ee38764e4ff0aee5224207bfb83933ebae11b8))
|
|
118
|
-
|
|
119
|
-
## [3.24.0-4](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-3...v3.24.0-4) (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-3](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-2...v3.24.0-3) (2021-04-14)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
### Features
|
|
130
|
-
|
|
131
|
-
* add euro groups ([f990eb9](https://github.com/SportsBroker-HQ/firebase-structure/commit/f990eb908a16aee582f39c7341f74647c8032112))
|
|
132
|
-
* adjust head2head structure ([523552b](https://github.com/SportsBroker-HQ/firebase-structure/commit/523552b539b79b8f7500af6b24d4291ab48f927d))
|
|
133
|
-
|
|
134
5
|
## [3.24.0-2](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-1...v3.24.0-2) (2021-04-12)
|
|
135
6
|
|
|
136
7
|
|
|
@@ -5,11 +5,9 @@ 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";
|
|
8
9
|
import { Stories } from "./stories";
|
|
9
10
|
import { Commentaries } from "./commentaries";
|
|
10
|
-
import { HeadToHeadStats } from "./h2h";
|
|
11
|
-
import { MatchTeamPredicates } from "./matchTeamPredicate";
|
|
12
|
-
import { MatchOfficials } from "./officials";
|
|
13
11
|
|
|
14
12
|
export interface Matches {
|
|
15
13
|
events: Events;
|
|
@@ -18,10 +16,8 @@ export interface Matches {
|
|
|
18
16
|
shares: Shares;
|
|
19
17
|
stats: Stats;
|
|
20
18
|
teams: Teams;
|
|
21
|
-
h2h?: HeadToHeadStats;
|
|
22
19
|
lineups?: Lineups;
|
|
23
|
-
|
|
20
|
+
referees?: Referees;
|
|
24
21
|
stories?: Stories;
|
|
25
22
|
commentaries?: Commentaries;
|
|
26
|
-
predicates?: MatchTeamPredicates;
|
|
27
23
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export interface CommentaryItem {
|
|
2
2
|
period: number;
|
|
3
3
|
content: string;
|
|
4
|
-
type: CommentaryType;
|
|
5
4
|
time: {
|
|
6
5
|
minutes: number;
|
|
7
6
|
seconds: number;
|
|
@@ -9,24 +8,10 @@ export interface CommentaryItem {
|
|
|
9
8
|
};
|
|
10
9
|
}
|
|
11
10
|
|
|
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
|
-
|
|
28
11
|
export interface Commentaries {
|
|
29
12
|
[sportID: string]: {
|
|
30
|
-
[matchID: string]:
|
|
13
|
+
[matchID: string]: {
|
|
14
|
+
[commentaryID: string]: CommentaryItem;
|
|
15
|
+
};
|
|
31
16
|
};
|
|
32
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NumericID, TeamSide
|
|
1
|
+
import { NumericID, TeamSide } 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:
|
|
15
|
+
teamId: NumericID;
|
|
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
|
|
53
|
-
playerInName
|
|
54
|
-
playerInShirtName
|
|
55
|
-
playerInUniform
|
|
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,18 +1,11 @@
|
|
|
1
|
-
export interface TeamHeadToHeadStats {
|
|
2
|
-
wins: number;
|
|
3
|
-
goals: number;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface TeamsHeadToHeadStats {
|
|
7
|
-
[teamId: string]: TeamHeadToHeadStats;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
1
|
export interface HeadToHeadStats {
|
|
11
|
-
|
|
2
|
+
wins: number;
|
|
3
|
+
homeWins: number;
|
|
4
|
+
awayWins: number;
|
|
12
5
|
draws: number;
|
|
13
6
|
}
|
|
14
7
|
|
|
15
|
-
// h2hId - "<teamAId>_<teamBId>"
|
|
8
|
+
// h2hId - "<teamAId>_<teamBId>"
|
|
16
9
|
|
|
17
10
|
export interface HeadToHead {
|
|
18
11
|
[sportId: string]: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {ISODate, MatchID, MatchPeriod, MatchStatus, SeasonID} from "../../global";
|
|
2
2
|
|
|
3
3
|
export interface MatchTime {
|
|
4
4
|
minutes: number;
|
|
@@ -18,8 +18,6 @@ export interface MatchOverview {
|
|
|
18
18
|
roundNb: number;
|
|
19
19
|
originalRoundNb: number;
|
|
20
20
|
isTba: boolean;
|
|
21
|
-
stage?: Stage;
|
|
22
|
-
group?: Group;
|
|
23
21
|
eventStatus: EventStatus;
|
|
24
22
|
season: SeasonID;
|
|
25
23
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export interface Score {
|
|
2
|
-
home: number
|
|
3
|
-
away: number
|
|
2
|
+
home: number;
|
|
3
|
+
away: number;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
// @TODO: change to firstHalf, fullTime, overtime
|
|
7
6
|
export interface MatchPeriods{
|
|
8
7
|
firstHalf: Score;
|
|
9
8
|
secondHalf?: Score;
|
|
@@ -12,8 +11,8 @@ export interface MatchPeriods{
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export interface MatchScore {
|
|
15
|
-
home: number
|
|
16
|
-
away: number
|
|
14
|
+
home: number;
|
|
15
|
+
away: number;
|
|
17
16
|
periods: MatchPeriods;
|
|
18
17
|
shootoutPenalties?: Score;
|
|
19
18
|
}
|
|
@@ -3,78 +3,36 @@ export interface TeamsStats {
|
|
|
3
3
|
away: number;
|
|
4
4
|
}
|
|
5
5
|
|
|
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,
|
|
6
|
+
export interface MatchStats {
|
|
13
7
|
possession: TeamsStats,
|
|
14
|
-
|
|
15
|
-
|
|
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,
|
|
27
|
-
shotsOffTarget: TeamsStats,
|
|
8
|
+
attackingThirdPossession: TeamsStats,
|
|
9
|
+
ownThirdPossession: TeamsStats,
|
|
28
10
|
shotsOnTarget: TeamsStats,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// attacking
|
|
32
|
-
goalAssists: TeamsStats,
|
|
33
|
-
freeKickAwarded: TeamsStats,
|
|
34
|
-
fastbreak: TeamsStats,
|
|
11
|
+
shotsOffTarget: TeamsStats,
|
|
12
|
+
clearances: TeamsStats,
|
|
35
13
|
corners: TeamsStats,
|
|
36
|
-
throws: TeamsStats,
|
|
37
14
|
offsides: TeamsStats,
|
|
38
|
-
|
|
39
|
-
// defensive
|
|
40
|
-
fouls: TeamsStats,
|
|
41
|
-
saves: TeamsStats,
|
|
42
|
-
penaltySave: TeamsStats,
|
|
43
|
-
ownGoals: TeamsStats,
|
|
44
|
-
interceptionsInBox: TeamsStats,
|
|
45
|
-
clearance: TeamsStats,
|
|
15
|
+
passes: TeamsStats,
|
|
46
16
|
interceptions: TeamsStats,
|
|
17
|
+
penalties: TeamsStats,
|
|
18
|
+
shots: TeamsStats,
|
|
19
|
+
ownGoals: TeamsStats,
|
|
20
|
+
saves: TeamsStats,
|
|
21
|
+
freeKickAwarded: TeamsStats,
|
|
22
|
+
freeKickConceded: TeamsStats,
|
|
47
23
|
crossBlocked: TeamsStats,
|
|
48
|
-
shotBlocked: TeamsStats,
|
|
49
24
|
tackles: TeamsStats,
|
|
50
|
-
|
|
51
|
-
//passing
|
|
52
|
-
passes: TeamsStats,
|
|
53
|
-
backwardPass: TeamsStats,
|
|
54
|
-
forwardPass: TeamsStats,
|
|
55
|
-
successfulCrosses: TeamsStats,
|
|
56
|
-
unsuccessfulCrosses: TeamsStats,
|
|
57
|
-
successfulPasses: TeamsStats,
|
|
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
|
|
25
|
+
touches: TeamsStats,
|
|
73
26
|
yellowCards: TeamsStats,
|
|
74
27
|
redCards: TeamsStats,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
28
|
+
foulsConceded: TeamsStats,
|
|
29
|
+
groundDuelsWon: TeamsStats,
|
|
30
|
+
aerialDuelsWon: TeamsStats,
|
|
31
|
+
punches: TeamsStats,
|
|
32
|
+
cornerKicks: TeamsStats,
|
|
33
|
+
successfulPasses: TeamsStats,
|
|
34
|
+
successfulCrosses: TeamsStats,
|
|
35
|
+
unsuccessfulPasses: TeamsStats,
|
|
78
36
|
}
|
|
79
37
|
|
|
80
38
|
export interface Stats {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ISODate, Image, SeasonID } from "../../global";
|
|
2
|
-
import {Stages} from "./stages";
|
|
3
2
|
|
|
4
3
|
export type SeasonState = 'UPCOMING' | 'ACTIVE' | 'FINISHED';
|
|
5
|
-
export type SeasonType = 'DOMESTIC' | 'INTERNATIONAL';
|
|
6
4
|
|
|
7
5
|
export interface SeasonOverview {
|
|
8
6
|
endDate: ISODate;
|
|
@@ -13,9 +11,6 @@ export interface SeasonOverview {
|
|
|
13
11
|
nextSeasonId?: string;
|
|
14
12
|
state: SeasonState;
|
|
15
13
|
logo?: Image;
|
|
16
|
-
type: SeasonType;
|
|
17
|
-
countryCode?: string;
|
|
18
|
-
stages?: Stages;
|
|
19
14
|
}
|
|
20
15
|
|
|
21
16
|
/**
|
package/models/global.d.ts
CHANGED
|
@@ -8,12 +8,9 @@ export type NumericID = number;
|
|
|
8
8
|
*/
|
|
9
9
|
export type MongoID = string;
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
export type UUID = string;
|
|
13
|
-
|
|
14
11
|
export type UserID = MongoID;
|
|
15
12
|
|
|
16
|
-
export type TeamID =
|
|
13
|
+
export type TeamID = MongoID;
|
|
17
14
|
|
|
18
15
|
/**
|
|
19
16
|
* @type ISO ISODate
|
|
@@ -27,7 +24,7 @@ export type SportID = "soccer" | string;
|
|
|
27
24
|
|
|
28
25
|
export type Language = "en" | "de" | string;
|
|
29
26
|
|
|
30
|
-
export type MatchID =
|
|
27
|
+
export type MatchID = MongoID;
|
|
31
28
|
|
|
32
29
|
export type SeasonID = string;
|
|
33
30
|
|
|
@@ -69,11 +66,3 @@ export interface WithSeasons {
|
|
|
69
66
|
}
|
|
70
67
|
|
|
71
68
|
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 {
|
|
1
|
+
import {ISODate, MatchID, MatchStatus} from "../global";
|
|
2
2
|
|
|
3
3
|
export interface MatchQueryData {
|
|
4
4
|
id: MatchID;
|
|
@@ -6,8 +6,6 @@ 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;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
interface Matches {
|
|
@@ -1,15 +1,4 @@
|
|
|
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";
|
|
1
|
+
import {Image, ISODate, MatchPeriod, MatchResult, MatchSide, MatchStatus, TeamID, TeamSide} from "../global";
|
|
13
2
|
|
|
14
3
|
export interface Team {
|
|
15
4
|
id: TeamID;
|
|
@@ -20,10 +9,7 @@ export interface Team {
|
|
|
20
9
|
|
|
21
10
|
export interface Opponent {
|
|
22
11
|
score: number;
|
|
23
|
-
name: string;
|
|
24
12
|
teamId: string;
|
|
25
|
-
abbreviation: string;
|
|
26
|
-
logo?: Image;
|
|
27
13
|
}
|
|
28
14
|
|
|
29
15
|
export interface PreviousMatch {
|
|
@@ -68,8 +54,6 @@ export interface MatchOverviewSnapshot {
|
|
|
68
54
|
home: Share;
|
|
69
55
|
away: Share;
|
|
70
56
|
};
|
|
71
|
-
stage?: Stage;
|
|
72
|
-
group?: Group;
|
|
73
57
|
startDate: ISODate;
|
|
74
58
|
roundNb: number;
|
|
75
59
|
eventStatus: EventStatus;
|
|
@@ -1,38 +1,20 @@
|
|
|
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
|
-
}
|
|
11
2
|
|
|
12
3
|
export interface TeamTable {
|
|
13
|
-
name: string;
|
|
14
|
-
abbreviation: string;
|
|
15
|
-
logo: Image;
|
|
16
4
|
ranking: TeamRanking;
|
|
17
|
-
groupId?: string;
|
|
18
5
|
previousMatchId?: string;
|
|
19
6
|
nextMatchId?: string;
|
|
20
|
-
nextMatch?: MatchOveriew;
|
|
21
|
-
previousMatch?: MatchOveriew;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface GroupTable {
|
|
25
|
-
name: string;
|
|
26
|
-
matchesIds: {[matchId: string]: true};
|
|
27
7
|
}
|
|
28
8
|
|
|
29
9
|
export interface TableSummary {
|
|
30
10
|
groups: {
|
|
31
11
|
[sportID: string]: {
|
|
32
12
|
[seasonID: string]: {
|
|
33
|
-
[
|
|
34
|
-
|
|
35
|
-
|
|
13
|
+
[groupID: string]: {
|
|
14
|
+
[teamID: string]: TeamTable;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
36
18
|
};
|
|
37
19
|
leagues: {
|
|
38
20
|
[sportID: string]: {
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|