@sportsbroker/firebase-structure 6.0.0 → 6.2.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.
|
@@ -3,6 +3,13 @@ import type { ISODate, UUID } from "../common";
|
|
|
3
3
|
|
|
4
4
|
export type PoolPayoutStructure = { [position: string]: number };
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Which cohort a pool serves. `real` = real-money play (operator currency);
|
|
8
|
+
* `demo` = play-money (currency `XTS`). Extensible (e.g. a future `freeroll`).
|
|
9
|
+
* A player only ever sees pools whose track matches their session mode.
|
|
10
|
+
*/
|
|
11
|
+
export type PoolTrack = "real" | "demo";
|
|
12
|
+
|
|
6
13
|
export enum PrizeDistributionStrategyEnum {
|
|
7
14
|
WINNER_TAKES_ALL = "winner-takes-all",
|
|
8
15
|
TOP_3 = "top-3",
|
|
@@ -44,6 +51,11 @@ export type Pool = {
|
|
|
44
51
|
leaderboard: PoolLeaderboard;
|
|
45
52
|
payoutStructure: PoolPayoutStructure;
|
|
46
53
|
prizeDistributionStrategy: PrizeDistributionStrategyEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Cohort of this pool. Optional for wire back-compat: docs projected before this
|
|
56
|
+
* field existed omit it and MUST be treated as `"real"`. New projections always set it.
|
|
57
|
+
*/
|
|
58
|
+
track?: PoolTrack;
|
|
47
59
|
createdAt: ISODate;
|
|
48
60
|
updatedAt: ISODate;
|
|
49
61
|
};
|