@sportsbroker/firebase-structure 3.69.10 → 3.69.12

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.
@@ -1,7 +1,7 @@
1
1
  export type Doc = {
2
2
  docId: UUID;
3
- createdAt: Date;
4
- updatedAt?: Date;
3
+ createdAt: ISODate;
4
+ updatedAt?: ISODate;
5
5
  };
6
6
 
7
7
  export type ISODate = string;
@@ -12,7 +12,18 @@ export interface Image {
12
12
  default: string;
13
13
  }
14
14
 
15
- export type Sport = "soccer" | "nfl" | "cricket" | "boxing" | "darts" | "hockey" | "rugby_league" | "rugby_union" | "volleyball" | "basketball" | "tennis";
15
+ export type Sport =
16
+ | "soccer"
17
+ | "nfl"
18
+ | "cricket"
19
+ | "boxing"
20
+ | "darts"
21
+ | "hockey"
22
+ | "rugby_league"
23
+ | "rugby_union"
24
+ | "volleyball"
25
+ | "basketball"
26
+ | "tennis";
16
27
 
17
28
  export type PlayerId = string;
18
29
  export type TeamId = string;
@@ -1,4 +1,4 @@
1
- import { Doc, UUID } from "../common";
1
+ import { Doc, ISODate, UUID } from "../common";
2
2
 
3
3
  export type LeaderboardDoc = Leaderboard & Doc;
4
4
 
@@ -7,8 +7,8 @@ export type Leaderboard = {
7
7
  betEventId: UUID;
8
8
  poolId: UUID;
9
9
  entries: LeaderboardEntry[];
10
- createdAt: Date;
11
- updatedAt: Date;
10
+ createdAt: ISODate;
11
+ updatedAt: ISODate;
12
12
  };
13
13
 
14
14
  export type LeaderboardEntry = {
@@ -1,4 +1,4 @@
1
- import { Doc, UUID } from "../common";
1
+ import { Doc, ISODate, UUID } from "../common";
2
2
 
3
3
  export type SPEventDoc = SPEvent & Doc;
4
4
 
@@ -10,8 +10,8 @@ export interface SPEvent {
10
10
  matchIds: UUID[];
11
11
  pools: { [key: string]: SPEventPool };
12
12
  jackpot: { prizes: JackpotPrizes } | null;
13
- createdAt: Date;
14
- updatedAt: Date;
13
+ createdAt: ISODate;
14
+ updatedAt: ISODate;
15
15
  }
16
16
 
17
17
  export type JackpotPrizes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.69.10",
3
+ "version": "3.69.12",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {