@sportsbroker/firebase-structure 3.24.0-15 → 3.24.0-17

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,21 @@
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-17](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-16...v3.24.0-17) (2021-05-06)
6
+
7
+
8
+ ### Features
9
+
10
+ * make sub player in optional ([2f66535](https://github.com/SportsBroker-HQ/firebase-structure/commit/2f66535bb82037854865ebd0d37bca5b7cb443b8))
11
+ * new match statistics [ch14445] ([e1b598e](https://github.com/SportsBroker-HQ/firebase-structure/commit/e1b598eaf702948e33c27d9e6fccf95e53c6cafa))
12
+
13
+ ## [3.24.0-16](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-15...v3.24.0-16) (2021-04-23)
14
+
15
+
16
+ ### Features
17
+
18
+ * adjust head to head structure ([a9e03d0](https://github.com/SportsBroker-HQ/firebase-structure/commit/a9e03d09e5632b0a52ab0fd13559320a6ba62fda))
19
+
5
20
  ## [3.24.0-15](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-14...v3.24.0-15) (2021-04-21)
6
21
 
7
22
  ## [3.24.0-14](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-13...v3.24.0-14) (2021-04-21)
@@ -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,21 @@
1
- export interface HeadToHeadTeamStats {
2
- goals: number;
1
+ export interface TeamHeadToHeadStats {
3
2
  wins: number;
3
+ goals: number;
4
+ }
5
+
6
+ export interface TeamsHeadToHeadStats {
7
+ [teamId: string]: TeamHeadToHeadStats;
4
8
  }
5
9
 
6
10
  export interface HeadToHeadStats {
7
- stats: {
8
- [teamId: string]: HeadToHeadTeamStats;
9
- };
11
+ teamsData: TeamsHeadToHeadStats;
10
12
  draws: number;
11
13
  }
14
+
15
+ // h2hId - "<teamAId>_<teamBId>" or "<teamBId>_<teamAId>"
16
+
17
+ export interface HeadToHead {
18
+ [sportId: string]: {
19
+ [h2hId: string]: HeadToHeadStats,
20
+ }
21
+ }
@@ -4,35 +4,57 @@ export interface TeamsStats {
4
4
  }
5
5
 
6
6
  export interface MatchStats {
7
- possession: TeamsStats,
8
- attackingThirdPossession: TeamsStats,
9
- ownThirdPossession: TeamsStats,
10
- shotsOnTarget: TeamsStats,
11
- shotsOffTarget: TeamsStats,
12
- clearances: TeamsStats,
7
+
8
+ accurateLongBalls: TeamsStats,
9
+ aerialDuelsWon: TeamsStats,
10
+ backwardPass: TeamsStats,
11
+ bigChanceCreated: TeamsStats,
12
+ bigChanceMissed: TeamsStats,
13
+ bigChanceScored: TeamsStats,
13
14
  corners: TeamsStats,
14
- offsides: TeamsStats,
15
- passes: TeamsStats,
16
- interceptions: TeamsStats,
17
- penalties: TeamsStats,
18
- shots: TeamsStats,
19
- ownGoals: TeamsStats,
20
- saves: TeamsStats,
21
- freeKickAwarded: TeamsStats,
22
- freeKickConceded: TeamsStats,
15
+ crossbarHits: TeamsStats,
23
16
  crossBlocked: TeamsStats,
24
- tackles: TeamsStats,
25
- touches: TeamsStats,
26
- yellowCards: TeamsStats,
27
- redCards: TeamsStats,
17
+ crossTotal: TeamsStats,
18
+ fastbreak: TeamsStats,
19
+ forwardPass: TeamsStats,
28
20
  foulsConceded: TeamsStats,
21
+ freeKickAwarded: TeamsStats,
22
+ goalAssists: TeamsStats,
29
23
  groundDuelsWon: TeamsStats,
30
- aerialDuelsWon: TeamsStats,
31
- punches: TeamsStats,
32
- cornerKicks: TeamsStats,
33
- successfulPasses: TeamsStats,
24
+ interceptions: TeamsStats,
25
+ interceptionsInBox: TeamsStats,
26
+ offsides: TeamsStats,
27
+ oneOnOneShotAttempt: TeamsStats,
28
+ ownGoals: TeamsStats,
29
+ passAccuracy: TeamsStats,
30
+ passes: TeamsStats,
31
+ penaltyAreaEntries: TeamsStats,
32
+ penaltyConceded: TeamsStats,
33
+ penaltySave: TeamsStats,
34
+ penaltyTaken: TeamsStats,
35
+ possession: TeamsStats,
36
+ possessionLosses: TeamsStats,
37
+ possessionWonAttThird: TeamsStats,
38
+ possessionWonDefThird: TeamsStats,
39
+ possessionWonMidThird: TeamsStats,
40
+ postHitsLeft: TeamsStats,
41
+ postHitsRight: TeamsStats,
42
+ redCards: TeamsStats,
43
+ saves: TeamsStats,
44
+ shots: TeamsStats,
45
+ shotsOffTarget: TeamsStats,
46
+ shotsOnTarget: TeamsStats,
34
47
  successfulCrosses: TeamsStats,
48
+ successfulPasses: TeamsStats,
49
+ tackles: TeamsStats,
50
+ throws: TeamsStats,
35
51
  unsuccessfulPasses: TeamsStats,
52
+ yellowCards: TeamsStats,
53
+ secondYellow: TeamsStats,
54
+ shotAccuracy: TeamsStats,
55
+ shotBlocked: TeamsStats,
56
+ clearance: TeamsStats,
57
+ woodwork: TeamsStats,
36
58
  }
37
59
 
38
60
  export interface Stats {
@@ -2,6 +2,13 @@ import { TeamRanking } from "../details/tables/ranking";
2
2
  import {Image, MatchResult} from "../global";
3
3
  import {Team} from "./matchOverviews";
4
4
 
5
+ export interface MatchOveriew {
6
+ vsTeam?: Team;
7
+ result?: MatchResult;
8
+ matchId?: string;
9
+ startDate?: string;
10
+ }
11
+
5
12
  export interface TeamTable {
6
13
  name: string;
7
14
  abbreviation: string;
@@ -10,18 +17,8 @@ export interface TeamTable {
10
17
  groupId?: string;
11
18
  previousMatchId?: string;
12
19
  nextMatchId?: string;
13
- nextMatch?: {
14
- vsTeam?: Team;
15
- result?: MatchResult;
16
- matchId?: string;
17
- startDate?: string;
18
- };
19
- previousMatch?: {
20
- vsTeam?: Team;
21
- result?: MatchResult;
22
- matchId?: string;
23
- startDate?: string;
24
- }
20
+ nextMatch?: MatchOveriew;
21
+ previousMatch?: MatchOveriew;
25
22
  }
26
23
 
27
24
  export interface GroupTable {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.24.0-15",
3
+ "version": "3.24.0-17",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {