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

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-16](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-15...v3.24.0-16) (2021-04-23)
6
+
7
+
8
+ ### Features
9
+
10
+ * adjust head to head structure ([a9e03d0](https://github.com/SportsBroker-HQ/firebase-structure/commit/a9e03d09e5632b0a52ab0fd13559320a6ba62fda))
11
+
5
12
  ## [3.24.0-15](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-14...v3.24.0-15) (2021-04-21)
6
13
 
7
14
  ## [3.24.0-14](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-13...v3.24.0-14) (2021-04-21)
@@ -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
+ }
@@ -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-16",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {