@sportsbroker/firebase-structure 3.42.1-1 → 3.43.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/details/matches/scores.d.ts +2 -6
- package/models/details/matches/stats.d.ts +1 -39
- package/models/details/tables/ranking.d.ts +5 -29
- package/models/details/teams/shares.d.ts +2 -1
- package/models/details/users/orders.d.ts +2 -1
- package/models/details/users/ownedShares.d.ts +1 -0
- package/models/global.d.ts +1 -1
- package/models/snapshots/tableSummary.d.ts +4 -14
- package/package.json +1 -1
|
@@ -6,10 +6,10 @@ export interface Score {
|
|
|
6
6
|
export interface MatchScore {
|
|
7
7
|
home: number | null; // total without penalties
|
|
8
8
|
away: number | null; // total without penalties
|
|
9
|
-
periods:
|
|
9
|
+
periods: MatchPeriods;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface MatchPeriods {
|
|
13
13
|
firstHalf?: Score;
|
|
14
14
|
secondHalf?: Score;
|
|
15
15
|
firstOvertime?: Score;
|
|
@@ -17,10 +17,6 @@ export interface SoccerPeriods {
|
|
|
17
17
|
shootoutPenalties?: Score;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export interface NFLPeriods {
|
|
21
|
-
[sequenceName: string]: Score
|
|
22
|
-
}
|
|
23
|
-
|
|
24
20
|
export interface Scores {
|
|
25
21
|
[sportID: string]: {
|
|
26
22
|
[matchID: string]: MatchScore;
|
|
@@ -6,9 +6,7 @@ export interface TeamsStats {
|
|
|
6
6
|
/**
|
|
7
7
|
* @see: https://sportsbroker.slite.com/app/channels/VOZ0prjzHu/notes/tOQ3uR_FUT
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
export interface ISoccerStats {
|
|
9
|
+
export interface MatchStats {
|
|
12
10
|
// possession
|
|
13
11
|
possessionPercentageLast15: TeamsStats,
|
|
14
12
|
possessionPercentageLast30: TeamsStats,
|
|
@@ -79,42 +77,6 @@ export interface ISoccerStats {
|
|
|
79
77
|
penaltyTaken: TeamsStats,
|
|
80
78
|
}
|
|
81
79
|
|
|
82
|
-
export interface INFLStats {
|
|
83
|
-
firstDowns : TeamsStats,
|
|
84
|
-
firstDownsPassing: TeamsStats,
|
|
85
|
-
firstDownsRushing: TeamsStats,
|
|
86
|
-
firstDownsFromPenalties: TeamsStats,
|
|
87
|
-
thirdDownEfficiency: TeamsStats,
|
|
88
|
-
fourthDownEfficiency: TeamsStats,
|
|
89
|
-
totalPlays: TeamsStats,
|
|
90
|
-
totalYards: TeamsStats,
|
|
91
|
-
totalDrives: TeamsStats,
|
|
92
|
-
yardsPerPlay: TeamsStats,
|
|
93
|
-
passing: TeamsStats,
|
|
94
|
-
passingCompletions: TeamsStats,
|
|
95
|
-
passingAttempts: TeamsStats,
|
|
96
|
-
yardsPerPass: TeamsStats,
|
|
97
|
-
interceptionsThrown: TeamsStats,
|
|
98
|
-
rushing: TeamsStats,
|
|
99
|
-
rushingAttempts: TeamsStats,
|
|
100
|
-
yardsPerRush: TeamsStats,
|
|
101
|
-
redZone: TeamsStats,
|
|
102
|
-
turnovers: TeamsStats,
|
|
103
|
-
fumblesLost: TeamsStats,
|
|
104
|
-
possession: TeamsStats,
|
|
105
|
-
thirdDownEfficiencySuccess: TeamsStats
|
|
106
|
-
thirdDownEfficiencyAttempts: TeamsStats
|
|
107
|
-
fourthDownEfficiencySuccess: TeamsStats
|
|
108
|
-
fourthDownEfficiencyAttempts: TeamsStats
|
|
109
|
-
redZoneAttempts: TeamsStats
|
|
110
|
-
redZoneSuccess: TeamsStats
|
|
111
|
-
penaltiesYards: TeamsStats
|
|
112
|
-
specialTeamsTDs: TeamsStats
|
|
113
|
-
sackYardLostSacks: TeamsStats
|
|
114
|
-
sackYardLostSackYards: TeamsStats
|
|
115
|
-
penaltiesTotal: TeamsStats
|
|
116
|
-
}
|
|
117
|
-
|
|
118
80
|
export interface Stats {
|
|
119
81
|
[sportID: string]: {
|
|
120
82
|
[matchID: string]: MatchStats
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface TeamRanking {
|
|
2
2
|
position: number;
|
|
3
3
|
positionChange: number;
|
|
4
4
|
points: number;
|
|
@@ -11,44 +11,20 @@ export interface SoccerTeamRanking {
|
|
|
11
11
|
goalsAgainst: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface NflTeamRanking {
|
|
15
|
-
won: number;
|
|
16
|
-
lost: number;
|
|
17
|
-
draw: number;
|
|
18
|
-
played: number;
|
|
19
|
-
winningPercentage: number;
|
|
20
|
-
position: number;
|
|
21
|
-
lastPosition?: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type TeamRanking = SoccerTeamRanking | NflTeamRanking;
|
|
25
|
-
|
|
26
14
|
export interface Ranking {
|
|
27
15
|
groups: {
|
|
28
|
-
|
|
16
|
+
[sportID: string]: {
|
|
29
17
|
[seasonID: string]: {
|
|
30
18
|
[groupID: string]: {
|
|
31
|
-
[teamID: string]:
|
|
19
|
+
[teamID: string]: TeamRanking;
|
|
32
20
|
};
|
|
33
21
|
};
|
|
34
22
|
};
|
|
35
|
-
nfl: {
|
|
36
|
-
[seasonID: string]: {
|
|
37
|
-
[groupID: string]: {
|
|
38
|
-
[teamID: string]: NflTeamRanking;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
23
|
};
|
|
43
24
|
leagues: {
|
|
44
|
-
|
|
45
|
-
[seasonID: string]: {
|
|
46
|
-
[teamID: string]: SoccerTeamRanking;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
nfl: {
|
|
25
|
+
[sportID: string]: {
|
|
50
26
|
[seasonID: string]: {
|
|
51
|
-
[teamID: string]:
|
|
27
|
+
[teamID: string]: TeamRanking;
|
|
52
28
|
};
|
|
53
29
|
};
|
|
54
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ISODate, TeamID, Percentage} from "../../global";
|
|
1
|
+
import {ISODate, SportID, TeamID, Percentage} from "../../global";
|
|
2
2
|
|
|
3
3
|
export type OrderActionType = "BUY" | "SELL";
|
|
4
4
|
|
|
@@ -32,6 +32,7 @@ export interface Order {
|
|
|
32
32
|
processedMoney: number;
|
|
33
33
|
processedFee: number;
|
|
34
34
|
processedTotalMoney: number; // processedMoney + processedFee
|
|
35
|
+
sportId: SportID;
|
|
35
36
|
teamId: TeamID;
|
|
36
37
|
transactionFee: Percentage;
|
|
37
38
|
type: OrderTransactionType;
|
package/models/global.d.ts
CHANGED
|
@@ -29,27 +29,17 @@ export interface GroupTable {
|
|
|
29
29
|
|
|
30
30
|
export interface TableSummary {
|
|
31
31
|
groups: {
|
|
32
|
-
|
|
32
|
+
[sportID: string]: {
|
|
33
33
|
[seasonID: string]: {
|
|
34
34
|
[groupId: string]: GroupTable;
|
|
35
35
|
}
|
|
36
|
-
}
|
|
37
|
-
nfl: {
|
|
38
|
-
[seasonID: string]: {
|
|
39
|
-
[groupId: string]: GroupTable;
|
|
40
|
-
}
|
|
41
|
-
},
|
|
36
|
+
}
|
|
42
37
|
};
|
|
43
38
|
leagues: {
|
|
44
|
-
|
|
45
|
-
[seasonID: string]: {
|
|
46
|
-
[teamID: string]: TeamTable;
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
nfl: {
|
|
39
|
+
[sportID: string]: {
|
|
50
40
|
[seasonID: string]: {
|
|
51
41
|
[teamID: string]: TeamTable;
|
|
52
42
|
};
|
|
53
|
-
}
|
|
43
|
+
};
|
|
54
44
|
};
|
|
55
45
|
}
|