@sportsbroker/firebase-structure 3.20.0-RC2 → 3.20.0-RC4
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.
|
@@ -7,6 +7,7 @@ import { Teams } from "./teams";
|
|
|
7
7
|
import { Lineups } from "./lineups";
|
|
8
8
|
import { Referees } from "./referees";
|
|
9
9
|
import { Stories } from "./stories";
|
|
10
|
+
import { Commentaries } from "./commentaries";
|
|
10
11
|
|
|
11
12
|
export interface Matches {
|
|
12
13
|
events: Events;
|
|
@@ -18,4 +19,5 @@ export interface Matches {
|
|
|
18
19
|
lineups: Lineups;
|
|
19
20
|
referees: Referees;
|
|
20
21
|
stories: Stories;
|
|
22
|
+
commentaries: Commentaries;
|
|
21
23
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
period: MatchPeriod;
|
|
5
|
-
headline: string;
|
|
6
|
-
text: string;
|
|
1
|
+
export interface CommentaryItem {
|
|
2
|
+
period: number;
|
|
3
|
+
content: string;
|
|
7
4
|
time: {
|
|
8
5
|
minutes: number;
|
|
9
6
|
seconds: number;
|
|
@@ -11,13 +8,10 @@ export interface Commentary {
|
|
|
11
8
|
};
|
|
12
9
|
}
|
|
13
10
|
|
|
14
|
-
/**
|
|
15
|
-
* Not implemented yet
|
|
16
|
-
*/
|
|
17
11
|
export interface Commentaries {
|
|
18
12
|
[sportID: string]: {
|
|
19
13
|
[matchID: string]: {
|
|
20
|
-
[commentaryID: string]:
|
|
14
|
+
[commentaryID: string]: CommentaryItem;
|
|
21
15
|
};
|
|
22
16
|
};
|
|
23
17
|
}
|
|
@@ -32,13 +32,13 @@ interface YellowCardEvent extends BaseEvent {
|
|
|
32
32
|
|
|
33
33
|
interface GoalEvent extends BaseEvent {
|
|
34
34
|
type: "GOAL";
|
|
35
|
-
assistingPlayerId
|
|
36
|
-
assistingPlayerName
|
|
37
|
-
assistingPlayerUniform
|
|
35
|
+
assistingPlayerId?: NumericID;
|
|
36
|
+
assistingPlayerName?: string;
|
|
37
|
+
assistingPlayerUniform?: string;
|
|
38
38
|
goalNumber: number;
|
|
39
39
|
penalty?: boolean;
|
|
40
40
|
ownGoal?: boolean;
|
|
41
|
-
playerId
|
|
41
|
+
playerId: NumericID;
|
|
42
42
|
playerName: string;
|
|
43
43
|
playerUniform: string;
|
|
44
44
|
}
|