@sportsbroker/firebase-structure 3.69.3 → 3.69.5

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.
@@ -8,7 +8,7 @@ export interface SPEvent {
8
8
  eventName: string;
9
9
  startDate: Date;
10
10
  matchIds: UUID[];
11
- pools: SPEventPool[];
11
+ pools: { [key: string]: SPEventPool };
12
12
  jackpot: { prizeAmount: number };
13
13
  createdAt: Date;
14
14
  updatedAt: Date;
@@ -22,8 +22,19 @@ export type SPEventStatusType =
22
22
 
23
23
  export type SPEventPool = {
24
24
  id: UUID;
25
- // TODO: this will be gross
26
- potAmount: number;
27
- participants: number;
25
+ potAmount: number; // gross pool entries sum
26
+ participants: number; // active bets count
28
27
  entryFee: number;
28
+ leaderboard: Leaderboard;
29
+ };
30
+
31
+ export type Leaderboard = {
32
+ id: UUID;
33
+ entries: LeaderboardEntry[];
34
+ };
35
+
36
+ export type LeaderboardEntry = {
37
+ displayName: string;
38
+ position: number;
39
+ score: number;
29
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.69.3",
3
+ "version": "3.69.5",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {