@sportsbroker/firebase-structure 2.4.0 → 2.4.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.
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { Image, TeamID } from "../../global";
|
|
2
2
|
|
|
3
|
+
export interface TeamOverview {
|
|
4
|
+
name: string;
|
|
5
|
+
abbreviation: string;
|
|
6
|
+
id: TeamID;
|
|
7
|
+
logo?: Image;
|
|
8
|
+
isCurrentlyPlaying: boolean;
|
|
9
|
+
seasons: {
|
|
10
|
+
[seasonId: string]: boolean; // Firebase will treat it as an array. Available: "BUND2018" | "EPL2018"
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
/**
|
|
4
15
|
* sportId: SportID
|
|
5
16
|
* teamId: TeamID
|
|
6
17
|
*/
|
|
7
18
|
export interface Overviews {
|
|
8
19
|
[sportId: string]: {
|
|
9
|
-
[teamId: string]:
|
|
10
|
-
name: string;
|
|
11
|
-
abbreviation: string;
|
|
12
|
-
id: TeamID;
|
|
13
|
-
logo?: Image;
|
|
14
|
-
isCurrentlyPlaying: Boolean;
|
|
15
|
-
seasons: {
|
|
16
|
-
[seasonId: string]: boolean; // Firebase will treat it as an array. Available: "BUND2018" | "EPL2018"
|
|
17
|
-
};
|
|
18
|
-
};
|
|
20
|
+
[teamId: string]: TeamOverview;
|
|
19
21
|
};
|
|
20
22
|
}
|
|
@@ -7,16 +7,18 @@ interface MarketIndicators {
|
|
|
7
7
|
capacity: number;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
export interface TeamShare {
|
|
11
|
+
price: number;
|
|
12
|
+
openingPrice: number;
|
|
13
|
+
priceChangePercentage: number;
|
|
14
|
+
buyPrice: number;
|
|
15
|
+
sellPrice: number;
|
|
16
|
+
id: TeamID;
|
|
17
|
+
market: MarketIndicators;
|
|
18
|
+
}
|
|
19
|
+
|
|
10
20
|
export interface Shares {
|
|
11
21
|
[sportId: string]: {
|
|
12
|
-
[teamId: string]:
|
|
13
|
-
price: number;
|
|
14
|
-
openingPrice: number;
|
|
15
|
-
priceChangePercentage: number;
|
|
16
|
-
buyPrice: number;
|
|
17
|
-
sellPrice: number;
|
|
18
|
-
id: TeamID;
|
|
19
|
-
market: MarketIndicators;
|
|
20
|
-
};
|
|
22
|
+
[teamId: string]: TeamShare;
|
|
21
23
|
};
|
|
22
24
|
}
|
package/package.json
CHANGED
|
Binary file
|