@sportsbroker/firebase-structure 8.0.0 → 8.1.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.
|
@@ -47,6 +47,12 @@ export type CoinEvent = {
|
|
|
47
47
|
export type CoinEventState = {
|
|
48
48
|
/** Seats per table. A full table opens the next one. */
|
|
49
49
|
tableSize: number;
|
|
50
|
+
/**
|
|
51
|
+
* Fewest occupied seats for a table to be played. A table that stays below it when the match ends
|
|
52
|
+
* refunds every stake in full instead of paying a coin holder, so a player can see the threshold
|
|
53
|
+
* before paying. Together with `tableSize` this is the min and max of a table.
|
|
54
|
+
*/
|
|
55
|
+
minTableSize: number;
|
|
50
56
|
/** The live stats that pass the coin. Any confirmed increment across them advances it. */
|
|
51
57
|
triggerStats: string[];
|
|
52
58
|
/** Seats the coin advances per confirmed trigger. */
|
|
@@ -52,11 +52,25 @@ export type CoinPool = Pool & { coin: CoinTable };
|
|
|
52
52
|
* A Golden Coin table. The pool IS the table: seats are taken in join order, the coin starts on a seat
|
|
53
53
|
* drawn from the table's own seed, and each confirmed trigger advances it. Present only on pools of the
|
|
54
54
|
* `coin-pass` engine.
|
|
55
|
+
*
|
|
56
|
+
* How many tables an operator has open on an event, and how many players sit at them across all of
|
|
57
|
+
* them, is read from these documents: query `Pools` by `betEventId` and `operatorId`, and the result
|
|
58
|
+
* count is the number of tables while the sum of `participants` is the number of players. Every join
|
|
59
|
+
* reprojects the pool document, so both stay live and can never disagree with the seats a player is
|
|
60
|
+
* shown on a table.
|
|
55
61
|
*/
|
|
56
62
|
export type CoinTable = {
|
|
57
63
|
/** Which table of this operator and event this is, counting from 1. */
|
|
58
64
|
tableNumber: number;
|
|
59
65
|
tableSize: number;
|
|
66
|
+
/** Fewest occupied seats for this table to pay a holder; below it every stake is refunded in full. */
|
|
67
|
+
minTableSize: number;
|
|
68
|
+
/**
|
|
69
|
+
* Does the table meet `minTableSize` right now? Decided by the engine, not by the client, so every
|
|
70
|
+
* screen states the same verdict: false means that as things stand this table refunds instead of
|
|
71
|
+
* paying a coin holder.
|
|
72
|
+
*/
|
|
73
|
+
meetsMinimum: boolean;
|
|
60
74
|
/** Confirmed triggers so far in the match, mirrored from the event for a self-contained table view. */
|
|
61
75
|
passCount: number;
|
|
62
76
|
/** Occupied seats in join order. Seat numbers count from 1 and never leave a gap. */
|