@sportsbroker/firebase-structure 3.24.0-11 → 3.24.0-13
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 +14 -0
- package/models/details/matches/overviews.d.ts +3 -1
- package/models/details/seasons/_index.d.ts +1 -0
- package/models/details/seasons/overviews.d.ts +2 -0
- package/models/details/seasons/stages.d.ts +12 -0
- package/models/global.d.ts +8 -0
- package/models/queries/matches.d.ts +3 -1
- package/models/snapshots/matchOverviews.d.ts +14 -1
- package/models/snapshots/tableSummary.d.ts +8 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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-13](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-12...v3.24.0-13) (2021-04-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* set prev/next match as optional ([fa64283](https://github.com/SportsBroker-HQ/firebase-structure/commit/fa64283cd8059db43baeefa4c75c04b97652125e))
|
|
11
|
+
|
|
12
|
+
## [3.24.0-12](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-11...v3.24.0-12) (2021-04-21)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* add stages, groups ([7e0bf8f](https://github.com/SportsBroker-HQ/firebase-structure/commit/7e0bf8f96d65e84abb4e463ef0dd0f2ca643467a))
|
|
18
|
+
|
|
5
19
|
## [3.24.0-11](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-10...v3.24.0-11) (2021-04-19)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -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,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
|
/**
|
package/models/global.d.ts
CHANGED
|
@@ -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 {
|
|
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,35 +7,26 @@ 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?: {
|
|
13
|
-
vsTeam
|
|
14
|
+
vsTeam?: Team;
|
|
14
15
|
result?: MatchResult;
|
|
15
16
|
matchId?: string;
|
|
16
|
-
startDate
|
|
17
|
+
startDate?: string;
|
|
17
18
|
};
|
|
18
19
|
previousMatch?: {
|
|
19
|
-
vsTeam
|
|
20
|
+
vsTeam?: Team;
|
|
20
21
|
result?: MatchResult;
|
|
21
22
|
matchId?: string;
|
|
22
|
-
startDate
|
|
23
|
+
startDate?: string;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
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]:
|
|
42
|
+
[seasonID: string]: {
|
|
43
|
+
[teamID: string]: TeamTable;
|
|
44
|
+
};
|
|
52
45
|
};
|
|
53
46
|
};
|
|
54
47
|
}
|