@sportsbroker/firebase-structure 3.57.0 → 3.58.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.
@@ -1,11 +1,14 @@
1
1
  import { MatchSides, MatchTime } from './match-common';
2
2
 
3
- export type AlgorithmCalculationEvent = {
3
+ export type AlgorithmCalculation = {
4
4
  calculationId: number;
5
5
  bettingPools: BettingPools;
6
6
  gainLossPercentage: GainLossPercentage;
7
7
  matchTime: MatchTime;
8
8
  statsDiff: StatsDiff;
9
+ matchPoints: MatchPoints;
10
+ winningSide: 'home' | 'away' | null;
11
+ timestamp: ISOString;
9
12
  }
10
13
 
11
14
  type BettingPools = MatchSides<number>;
@@ -14,6 +17,10 @@ type GainLossPercentage = MatchSides<number>;
14
17
 
15
18
  type StatsDiff = MatchSides<GameStats>;
16
19
 
20
+ type MatchPoints = MatchSides<number>;
21
+
17
22
  type GameStats = Record<StatsKey, number>;
18
23
 
19
24
  type StatsKey = string;
25
+
26
+ type ISOString = string;
@@ -5,4 +5,4 @@ export * from "./match-event";
5
5
  export * from "./match-h2h-stats";
6
6
  export * from "./match-lineup";
7
7
  export * from "./match-stats";
8
- export * from "./algorithm-calculation-event";
8
+ export * from "./algorithm-calculation";
@@ -5,7 +5,7 @@ import { MatchHeadToHeadStats } from "./match-h2h-stats";
5
5
  import { MatchLineup } from "./match-lineup";
6
6
  import { MatchStats } from "./match-stats";
7
7
  import { MatchSides, MatchTime } from './match-common';
8
- import { AlgorithmCalculationEvent } from './algorithm-calculation-event';
8
+ import { AlgorithmCalculation } from './algorithm-calculation';
9
9
 
10
10
  export type MatchDoc = Match & Doc;
11
11
 
@@ -29,7 +29,7 @@ export type Match = {
29
29
  shares?: MatchSides<TeamSharesData>;
30
30
  betting?: MatchBettingData;
31
31
  stats?: MatchStats;
32
- algorithmEvents?: AlgorithmCalculationEvent[];
32
+ algorithmCalculations?: AlgorithmCalculation[];
33
33
  };
34
34
 
35
35
  export type MatchBettingData = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.57.0",
3
+ "version": "3.58.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {