@sportsbroker/firebase-structure 3.69.32 → 3.69.33

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.
@@ -13,6 +13,7 @@ export type Leaderboard = {
13
13
 
14
14
  export type LeaderboardEntry = {
15
15
  displayName: string;
16
+ userId: UUID;
16
17
  position: number;
17
18
  score: number;
18
19
  prize: number | null;
@@ -8,7 +8,7 @@ export interface MPEvent {
8
8
  id: UUID;
9
9
  status: MPEventStatusType;
10
10
  startDate: Date;
11
- matchData: MPMatchesData;
11
+ matchData: MPMatchData;
12
12
  questions: MPQuestion[];
13
13
  pools: { [key: string]: MPEventPool };
14
14
  createdAt: ISODate;
@@ -21,7 +21,7 @@ export type MPEventMatchStatusType =
21
21
  | "finished"
22
22
  | "canceled";
23
23
 
24
- export type MPMatchesData = {
24
+ export type MPMatchData = {
25
25
  matchId: UUID;
26
26
  status: MPEventMatchStatusType;
27
27
  startDate: ISODate;
@@ -29,6 +29,7 @@ export type MPMatchesData = {
29
29
  homeTeamId: UUID | null;
30
30
  awayTeamName: string;
31
31
  awayTeamId: UUID | null;
32
+ score: { home: number; away: number };
32
33
  isActive: boolean;
33
34
  matchTime: MatchTime;
34
35
  };
@@ -1,5 +1,5 @@
1
1
  import { Doc, UUID } from "../common";
2
- import {UserStatus} from "../user-status";
2
+ import { UserStatus } from "../user-status";
3
3
 
4
4
  export type UserDoc = User & Doc;
5
5
 
@@ -15,6 +15,12 @@ export type User = {
15
15
  events?: UserEvents;
16
16
  status?: UserStatus;
17
17
  complianceStatus?: UserStatus;
18
+ betting?: { activeBettingEvents: UserActiveBettingEvents };
19
+ };
20
+
21
+ export type UserActiveBettingEvents = {
22
+ mpEvents: UUID[];
23
+ spEvents: UUID[];
18
24
  };
19
25
 
20
26
  export type UserEventsType =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.69.32",
3
+ "version": "3.69.33",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {