@sportsbroker/firebase-structure 3.53.0 → 3.53.2
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/firestore/match.d.ts +1 -3
- package/models/details/seasons/teams.d.ts +0 -2
- package/models/details/tables/groups.d.ts +1 -3
- package/models/details/teams/overviews.d.ts +2 -2
- package/models/details/users/orders.d.ts +1 -0
- package/models/details/users/ownedShares.d.ts +2 -1
- package/models/global.d.ts +1 -4
- package/models/queries/seasons.d.ts +1 -3
- package/package.json +1 -1
package/firestore/match.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ISODate, UUID, Image, Doc } from "./common";
|
|
2
|
-
import {
|
|
2
|
+
import { Sport } from '../models/global';
|
|
3
3
|
|
|
4
4
|
export type MatchDoc = MatchData & Doc;
|
|
5
5
|
|
|
@@ -20,8 +20,6 @@ export type MatchData = {
|
|
|
20
20
|
|
|
21
21
|
export type MatchResult = "WON" | "DRAW" | "LOST";
|
|
22
22
|
|
|
23
|
-
export type Sport = "soccer" | "nfl";
|
|
24
|
-
|
|
25
23
|
export type TournamentType =
|
|
26
24
|
| "DOMESTIC_LEAGUE"
|
|
27
25
|
| "DOMESTIC_CUP"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Image,
|
|
1
|
+
import { Image, Sport, TeamID, WithSeasons } from "../../global";
|
|
2
2
|
|
|
3
3
|
export interface TeamOverview extends WithSeasons {
|
|
4
4
|
id: TeamID;
|
|
@@ -8,7 +8,7 @@ export interface TeamOverview extends WithSeasons {
|
|
|
8
8
|
logo?: Image;
|
|
9
9
|
isCurrentlyPlaying: boolean;
|
|
10
10
|
currentlyPlayedMatch?: string;
|
|
11
|
-
sport:
|
|
11
|
+
sport: Sport;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export interface Overviews {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ISODate
|
|
1
|
+
import { ISODate } from "../../global";
|
|
2
2
|
|
|
3
3
|
export interface UserOwnedShares {
|
|
4
4
|
amount: number;
|
|
@@ -7,6 +7,7 @@ export interface UserOwnedShares {
|
|
|
7
7
|
processedTotalMoney: number;
|
|
8
8
|
averagePricePerShare: number;
|
|
9
9
|
fee: number;
|
|
10
|
+
sportId?: string; // TODO to be removed
|
|
10
11
|
splits?: OwnedSharesSplits;
|
|
11
12
|
}
|
|
12
13
|
|
package/models/global.d.ts
CHANGED
|
@@ -19,10 +19,7 @@ export type TeamID = UUID;
|
|
|
19
19
|
*/
|
|
20
20
|
export type ISODate = string;
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
* Currently support only soccer
|
|
24
|
-
*/
|
|
25
|
-
export type SportID = "soccer" | "nfl";
|
|
22
|
+
export type Sport = "soccer" | "nfl";
|
|
26
23
|
|
|
27
24
|
export type Language = "en" | "de" | string;
|
|
28
25
|
|