@sportsbroker/firebase-structure 3.69.5 → 3.69.7

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.
@@ -0,0 +1 @@
1
+ export * from "./leaderboard";
@@ -0,0 +1,18 @@
1
+ import { Doc, UUID } from "../common";
2
+
3
+ export type LeaderboardDoc = Leaderboard & Doc;
4
+
5
+ export type Leaderboard = {
6
+ id: UUID;
7
+ betEventId: UUID;
8
+ poolId: UUID;
9
+ entires: LeaderboardEntry[];
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ };
13
+
14
+ export type LeaderboardEntry = {
15
+ displayName: string;
16
+ position: number;
17
+ score: number;
18
+ };
@@ -25,16 +25,5 @@ export type SPEventPool = {
25
25
  potAmount: number; // gross pool entries sum
26
26
  participants: number; // active bets count
27
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;
28
+ leaderboardId: UUID;
40
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.69.5",
3
+ "version": "3.69.7",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {