@sportsbroker/firebase-structure 9.5.0 → 9.6.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.
|
@@ -40,6 +40,23 @@ export type Pool = {
|
|
|
40
40
|
* its whole life, so no document is ever left holding a brand it lost.
|
|
41
41
|
*/
|
|
42
42
|
brand?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The option of the operator's offer that this pool sells: one stake level of the game, with its own entry
|
|
45
|
+
* fee and seed. One event can hold one pool per option, so a client groups the pools of an event by this ID,
|
|
46
|
+
* sends it with a join, and finds the option of a bet through `bet.poolId`.
|
|
47
|
+
*
|
|
48
|
+
* Absent on documents written before options existed: read it as `"default"`, the only option those pools
|
|
49
|
+
* had.
|
|
50
|
+
*/
|
|
51
|
+
commercialOptionId?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the pool itself still takes entries: false once it is locked, settled or cancelled - for example
|
|
54
|
+
* when ops cancel the pool of one option while the others still sell - so a client can hide that option.
|
|
55
|
+
* The event's own window (`event.status`) still applies.
|
|
56
|
+
*
|
|
57
|
+
* Absent on documents written before the field existed: rely on `event.status`, as before.
|
|
58
|
+
*/
|
|
59
|
+
acceptsEntries?: boolean;
|
|
43
60
|
};
|
|
44
61
|
|
|
45
62
|
/**
|