@sportsbroker/firebase-structure 3.2.0 → 3.3.0
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/models/config/_index.d.ts +5 -1
- package/models/details/matches/shares.d.ts +10 -7
- package/models/details/teams/shares.d.ts +8 -0
- package/models/details/users/ownedShares.d.ts +2 -0
- package/models/details/users/ownedSharesSplit.d.ts +10 -0
- package/models/details/users/ranking.d.ts +1 -3
- package/models/global.d.ts +2 -0
- package/package.json +1 -1
- package/sportsbroker-firebase-structure-3.2.0.tgz +0 -0
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface MatchTeamSharePriceImpact {
|
|
2
2
|
price: number;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
preMatchPrice?: number;
|
|
4
|
+
afterMatchPrice?: number;
|
|
5
|
+
adjustedPrice?: number;
|
|
6
|
+
priceChangePercentage?: number;
|
|
7
|
+
priceChange?: number;
|
|
5
8
|
}
|
|
6
9
|
|
|
7
|
-
export interface
|
|
8
|
-
home:
|
|
9
|
-
away:
|
|
10
|
+
export interface MatchSharePriceImpact {
|
|
11
|
+
home: MatchTeamSharePriceImpact;
|
|
12
|
+
away: MatchTeamSharePriceImpact;
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
export interface Shares {
|
|
13
16
|
[sportID: string]: {
|
|
14
|
-
[matchID: string]:
|
|
17
|
+
[matchID: string]: MatchSharePriceImpact;
|
|
15
18
|
};
|
|
16
19
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { TeamID } from "../../global";
|
|
2
2
|
|
|
3
|
+
export type TradingInactiveReason = "SPLIT_IN_PROGRESS" | "NONE";
|
|
4
|
+
|
|
3
5
|
export interface MarketIndicators {
|
|
4
6
|
dailyHigh: number;
|
|
5
7
|
dailyLow: number;
|
|
@@ -11,6 +13,11 @@ export interface MarketIndicators {
|
|
|
11
13
|
capacity: number;
|
|
12
14
|
}
|
|
13
15
|
|
|
16
|
+
export interface TradingStatus {
|
|
17
|
+
isTradingActive: boolean;
|
|
18
|
+
inactivityReason: TradingInactiveReason;
|
|
19
|
+
}
|
|
20
|
+
|
|
14
21
|
export interface TeamShare {
|
|
15
22
|
seasonPriceChangePercentage: number;
|
|
16
23
|
price: number;
|
|
@@ -20,6 +27,7 @@ export interface TeamShare {
|
|
|
20
27
|
sellPrice: number;
|
|
21
28
|
id: TeamID;
|
|
22
29
|
market?: MarketIndicators;
|
|
30
|
+
tradingStatus: TradingStatus;
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
export interface Shares {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SportID } from "../../global";
|
|
2
|
+
import { OwnedSharesSplit } from "./ownedSharesSplit";
|
|
2
3
|
|
|
3
4
|
export interface UserOwnedShares {
|
|
4
5
|
sportId: SportID;
|
|
@@ -7,6 +8,7 @@ export interface UserOwnedShares {
|
|
|
7
8
|
profit: number;
|
|
8
9
|
invested: number;
|
|
9
10
|
averagePricePerShare: number;
|
|
11
|
+
splits?: OwnedSharesSplit[];
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
/**
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { UserID } from "../../global";
|
|
2
|
-
|
|
3
1
|
export interface UserRanking {
|
|
4
2
|
change: number;
|
|
5
3
|
equity: number;
|
|
@@ -9,5 +7,5 @@ export interface UserRanking {
|
|
|
9
7
|
|
|
10
8
|
//Restricted access only to own data
|
|
11
9
|
export interface Ranking {
|
|
12
|
-
[userId:
|
|
10
|
+
[userId: string]: UserRanking;
|
|
13
11
|
}
|
package/models/global.d.ts
CHANGED
package/package.json
CHANGED
|
Binary file
|