@sportsbroker/firebase-structure 9.7.0 → 9.8.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.
@@ -100,7 +100,15 @@ export type PoolLeaderboard = {
100
100
  entries: {
101
101
  userId: UUID;
102
102
  displayName: string;
103
+ /** Dense ranking position: tied entries share it and the next group gets the next number. Prizes key on it. */
103
104
  position: number;
105
+ /**
106
+ * The place to show: 1 + the entries of the whole leaderboard with a lower position (`1, 1, 1, 4, 5`).
107
+ * Absent on a document projected before it existed; show `position` then.
108
+ */
109
+ displayPosition?: number;
110
+ /** The other entries of the whole leaderboard on the same position. Absent like `displayPosition`. */
111
+ sharedWith?: number;
104
112
  score: number;
105
113
  prize: number | null;
106
114
  /** Distances to each tiebreaker result, in order. Written only for a settled pool. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "9.7.0",
3
+ "version": "9.8.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {