@sportsbroker/firebase-structure 3.24.0-20 → 3.24.0-22

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,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-22](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-21...v3.24.0-22) (2021-05-14)
6
+
7
+
8
+ ### Features
9
+
10
+ * add missed penalty event, add period to events ([42293fe](https://github.com/SportsBroker-HQ/firebase-structure/commit/42293feefc383900fa456d8dfef80ade0581c3b6))
11
+
12
+ ## [3.24.0-21](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-20...v3.24.0-21) (2021-05-12)
13
+
14
+
15
+ ### Features
16
+
17
+ * add short name to league table ([db3a43f](https://github.com/SportsBroker-HQ/firebase-structure/commit/db3a43f11484f3c6c42bc87261b7dbeebcca3a87))
18
+
5
19
  ## [3.24.0-20](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-19...v3.24.0-20) (2021-05-11)
6
20
 
7
21
 
@@ -1,6 +1,6 @@
1
- import { NumericID, TeamSide, TeamID } from "../../global";
1
+ import { NumericID, TeamSide, TeamID, MatchPeriod } from "../../global";
2
2
 
3
- type EventType = "YELLOW_CARD" | "RED_CARD" | "GOAL" | "SUBSTITUTION";
3
+ type EventType = "YELLOW_CARD" | "RED_CARD" | "GOAL" | "SUBSTITUTION" | "MISSED_PENALTY";
4
4
 
5
5
  interface EventTime {
6
6
  minutes: number;
@@ -13,6 +13,7 @@ interface BaseEvent {
13
13
  time: EventTime;
14
14
  teamType: TeamSide;
15
15
  teamId: TeamID;
16
+ period: MatchPeriod;
16
17
  }
17
18
 
18
19
  interface RedCardEvent extends BaseEvent {
@@ -47,6 +48,14 @@ interface GoalEvent extends BaseEvent {
47
48
  playerUniform: string;
48
49
  }
49
50
 
51
+ interface MissedPenaltyEvent extends BaseEvent {
52
+ type: "MISSED_PENALTY";
53
+ playerId: NumericID;
54
+ playerName: string;
55
+ playerShirtName: string;
56
+ playerUniform: string;
57
+ }
58
+
50
59
  interface SubstitutionEvent extends BaseEvent {
51
60
  type: "SUBSTITUTION";
52
61
  playerInId?: NumericID;
@@ -66,6 +75,7 @@ export interface Events {
66
75
  | YellowCardEvent
67
76
  | RedCardEvent
68
77
  | GoalEvent
78
+ | MissedPenaltyEvent
69
79
  | SubstitutionEvent;
70
80
  };
71
81
  };
@@ -12,6 +12,7 @@ export interface MatchOveriew {
12
12
  export interface TeamTable {
13
13
  name: string;
14
14
  abbreviation: string;
15
+ shortName: string;
15
16
  logo: Image;
16
17
  ranking: TeamRanking;
17
18
  groupId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.24.0-20",
3
+ "version": "3.24.0-22",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {