@sportsbroker/firebase-structure 3.24.0-7 → 3.24.0-9
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-9](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-7...v3.24.0-9) (2021-04-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* added type and countryCode to SeasonOverview ([dc420fe](https://github.com/SportsBroker-HQ/firebase-structure/commit/dc420fe7566bb8bd0721668c449847b84a576588))
|
|
11
|
+
* adjust events teamId ([afc6b72](https://github.com/SportsBroker-HQ/firebase-structure/commit/afc6b727dfa5e0ba2cb558c54d7e15453a6a5efd))
|
|
12
|
+
|
|
13
|
+
## [3.24.0-8](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-7...v3.24.0-8) (2021-04-16)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* added type and countryCode to SeasonOverview ([dc420fe](https://github.com/SportsBroker-HQ/firebase-structure/commit/dc420fe7566bb8bd0721668c449847b84a576588))
|
|
19
|
+
|
|
5
20
|
## [3.24.0-7](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-6...v3.24.0-7) (2021-04-15)
|
|
6
21
|
|
|
7
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NumericID, TeamSide } from "../../global";
|
|
1
|
+
import { NumericID, TeamSide, TeamID } from "../../global";
|
|
2
2
|
|
|
3
3
|
type EventType = "YELLOW_CARD" | "RED_CARD" | "GOAL" | "SUBSTITUTION";
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ interface BaseEvent {
|
|
|
12
12
|
type: EventType;
|
|
13
13
|
time: EventTime;
|
|
14
14
|
teamType: TeamSide;
|
|
15
|
-
teamId:
|
|
15
|
+
teamId: TeamID;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
interface RedCardEvent extends BaseEvent {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ISODate, Image, SeasonID } from "../../global";
|
|
2
2
|
|
|
3
3
|
export type SeasonState = 'UPCOMING' | 'ACTIVE' | 'FINISHED';
|
|
4
|
+
export type SeasonType = 'DOMESTIC' | 'INTERNATIONAL';
|
|
4
5
|
|
|
5
6
|
export interface SeasonOverview {
|
|
6
7
|
endDate: ISODate;
|
|
@@ -11,6 +12,8 @@ export interface SeasonOverview {
|
|
|
11
12
|
nextSeasonId?: string;
|
|
12
13
|
state: SeasonState;
|
|
13
14
|
logo?: Image;
|
|
15
|
+
type: SeasonType;
|
|
16
|
+
countryCode?: string;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
/**
|
package/models/global.d.ts
CHANGED
|
@@ -8,9 +8,12 @@ export type NumericID = number;
|
|
|
8
8
|
*/
|
|
9
9
|
export type MongoID = string;
|
|
10
10
|
|
|
11
|
+
|
|
12
|
+
export type UUID = string;
|
|
13
|
+
|
|
11
14
|
export type UserID = MongoID;
|
|
12
15
|
|
|
13
|
-
export type TeamID =
|
|
16
|
+
export type TeamID = UUID;
|
|
14
17
|
|
|
15
18
|
/**
|
|
16
19
|
* @type ISO ISODate
|
|
@@ -24,7 +27,7 @@ export type SportID = "soccer" | string;
|
|
|
24
27
|
|
|
25
28
|
export type Language = "en" | "de" | string;
|
|
26
29
|
|
|
27
|
-
export type MatchID =
|
|
30
|
+
export type MatchID = UUID;
|
|
28
31
|
|
|
29
32
|
export type SeasonID = string;
|
|
30
33
|
|