shufflecom-calculations 6.1.1 → 6.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shufflecom-calculations",
3
- "version": "6.1.1",
3
+ "version": "6.2.0",
4
4
  "description": "",
5
5
  "types": "lib/index.d.ts",
6
6
  "main": "lib/index.js",
@@ -16,5 +16,5 @@
16
16
  },
17
17
  "author": "",
18
18
  "license": "ISC",
19
- "gitHead": "dd9157e7b4391a95f9477dc534170432ddb7132b"
19
+ "gitHead": "fdea251fdf77e057a786892dc8697e8b8f288eb2"
20
20
  }
@@ -48,8 +48,8 @@ export interface ResolvedGame {
48
48
  image: ResolvedGameImage | null;
49
49
  icon: ResolvedGameImage | null;
50
50
  provider: ResolvedGameProvider | null;
51
- tags: ResolvedGameTag[];
52
- gameAndGameCategories: ResolvedGameAndGameCategory[];
51
+ tags: ResolvedGameTag[] | null;
52
+ gameAndGameCategories: ResolvedGameAndGameCategory[] | null;
53
53
  originalGame: string | null;
54
54
  isFavourite: boolean;
55
55
  demoMode: boolean;
@@ -69,13 +69,14 @@ export interface ResolvedGame {
69
69
  rolloverRestricted: boolean;
70
70
  sweepStakesPlaythroughRate: number;
71
71
  gameSources?: ResolvedGameSource[];
72
- localizations?: ResolvedGameLocalization[];
72
+ localizations: ResolvedGameLocalization[] | null;
73
73
  completed?: boolean;
74
74
  tournamentId?: string;
75
75
  targetMultiplier?: number;
76
+ recentPlayAt?: Date | null;
76
77
  }
77
78
 
78
- export interface PaginatedGameNoAuth {
79
+ export interface ResolvedPaginatedGame {
79
80
  totalCount: number | null;
80
81
  nodes: ResolvedGame[];
81
82
  }
@@ -81,6 +81,7 @@ export interface SportsBetSelectionMatchSummaryV3 {
81
81
  awayScore: string | null;
82
82
  possession: SportsMatchPhaseHomeAway | null;
83
83
  currentRound: string | null;
84
+ currentOver: string | null;
84
85
  timeRemaining: number | null;
85
86
  stoppageTime: number | null;
86
87
  stoppageTimeAnnounced: number | null;
@@ -36,6 +36,7 @@ export class MatchStateInfo {
36
36
  awayScore?: string | null;
37
37
  possession?: SportsMatchPhaseHomeAway | null;
38
38
  currentRound?: string | null;
39
+ currentOver?: string | null;
39
40
  timeElapsed?: number | null;
40
41
  providerMessageTimestamp?: string | null;
41
42
  timeRemaining?: number | null;
@@ -1,7 +1,7 @@
1
1
  import { PrebuildBetFeaturedPrebuilds } from './prebuild-bet.types';
2
2
  import { PopularSportsCompetitionsV2Info } from './sports-competition-fixture.types';
3
3
  import { SportsContentFeaturedEvents, SportsContentFeaturedOutright } from './sports-content-fixture.types';
4
- import { PaginatedSportsBoostedSelectionsInfo, SportsCustomBoostMarketSelectionType } from './sports-selection.types';
4
+ import { SportsCustomBoostMarketSelectionType } from './sports-selection.types';
5
5
  import { Nullable, SportsContentType } from './sports.types';
6
6
 
7
7
  export class SportsContentWeight {
@@ -9,17 +9,6 @@ export class SportsContentWeight {
9
9
  weight: number;
10
10
  }
11
11
 
12
- /** @deprecated Use v2 */
13
- export class SportsContentHomePage {
14
- featuredEvents: Nullable<SportsContentFeaturedEvents>;
15
- featuredOutright: Nullable<SportsContentFeaturedOutright>;
16
- popularCompetitions: Nullable<PopularSportsCompetitionsV2Info>;
17
- featuredPrebuilds: Nullable<PrebuildBetFeaturedPrebuilds>;
18
- sportsCustomBoosts: Nullable<PaginatedSportsBoostedSelectionsInfo>;
19
- /** Enabled content types with their weights, ordered by weight DESC. */
20
- weights: SportsContentWeight[];
21
- }
22
-
23
12
  export class SportsContentHomePageV2 {
24
13
  featuredEvents: Nullable<SportsContentFeaturedEvents>;
25
14
  featuredOutright: Nullable<SportsContentFeaturedOutright>;
@@ -46,8 +46,3 @@ export type SportsMarketSelectionType = {
46
46
  export type SportsCustomBoostMarketSelectionType = SportsMarketSelectionType & {
47
47
  boost: SportsMarketSelectionOddsBoost;
48
48
  };
49
-
50
- export class PaginatedSportsBoostedSelectionsInfo {
51
- nodes: SportsCustomBoostMarketSelectionType[];
52
- nextCursor: string | null;
53
- }
@@ -303,8 +303,12 @@ export class EventOddsUpdate {
303
303
  fixtureId: string;
304
304
  fixtureStatus: SportsFixtureStatus;
305
305
  markets: SportsMarketOddsUpdate[];
306
- messageTime: Date;
307
- publishedAt: Date;
306
+ messageTime: string;
307
+ publishedAt: string;
308
+ }
309
+
310
+ export class EventOddsUpdateV2 extends EventOddsUpdate {
311
+ matchState: Nullable<SportsMatchStateUpdatedPayloadType>;
308
312
  }
309
313
 
310
314
  export const SportsBetVoidedStatuses = [SportsBetSelectionStatus.VOIDED, SportsBetSelectionStatus.PROVIDER_VOIDED, SportsBetSelectionStatus.PUSHED];
@@ -533,6 +537,7 @@ export class MatchSummary {
533
537
  awayScore?: Nullable<string>;
534
538
  possession?: Nullable<SportsMatchPhaseHomeAway>;
535
539
  currentRound?: Nullable<string>;
540
+ currentOver?: Nullable<string>; // only for cricket - over.delivery
536
541
  currentPhase?: Nullable<SportsMatchPhaseSummary>;
537
542
  phases?: Nullable<SportsMatchPhaseSummary[]>;
538
543
  statistics?: Nullable<SportsMatchStatistics>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"paginated-game-no-auth.js","sourceRoot":"","sources":["../../src/games/paginated-game-no-auth.ts"],"names":[],"mappings":""}