@sportsbroker/firebase-structure 9.3.1 → 9.4.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.
@@ -29,6 +29,17 @@ export type Pool = {
29
29
  prizeDistributionStrategy: PrizeDistributionStrategyEnum;
30
30
  track?: PoolTrack;
31
31
  teamKits?: PoolTeamKits;
32
+ /**
33
+ * The provider brand the pool serves, for an operator that keeps pools per brand: an aggregator (Bragg)
34
+ * whose one operator serves many casinos. Players of two brands never share a pool, so a client of a
35
+ * brand session lists only the pools of its own brand, `where('brand', '==', brand)` next to the
36
+ * operator filter. Each such list query needs its composite index in the Firebase project.
37
+ *
38
+ * Absent for every other operator, and for their documents nothing changes. Omitting it is safe under
39
+ * the merge write that `teamKits` has to guard against: a pool keeps the brand it was created with for
40
+ * its whole life, so no document is ever left holding a brand it lost.
41
+ */
42
+ brand?: string;
32
43
  };
33
44
 
34
45
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "9.3.1",
3
+ "version": "9.4.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {