overtime-utils 0.1.89 → 0.1.91

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": "overtime-utils",
3
- "version": "0.1.89",
3
+ "version": "0.1.91",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -191,15 +191,6 @@ export const FUTURES_LEAGUES: Partial<Record<League, LeagueInfo>> = {
191
191
  logoClass: 'icon-homepage league--pga',
192
192
  priority: 1850,
193
193
  },
194
- [League.USA_THE_GOLF_LEAGUE]: {
195
- ...FUTURES_DEFAULTS,
196
- id: League.USA_THE_GOLF_LEAGUE,
197
- initialSport: Sport.GOLF,
198
- label: 'USA The Golf League',
199
- opticOddsName: 'USA - The Golf League',
200
- logoClass: 'icon-homepage league--pga',
201
- priority: 1851,
202
- },
203
194
  [League.FORMULA1_FUTURES]: {
204
195
  ...FUTURES_DEFAULTS,
205
196
  id: League.FORMULA1_FUTURES,
@@ -4,7 +4,7 @@ import { LeagueInfo } from '../../types/sports';
4
4
  // Common default values for Golf leagues
5
5
  export const GOLF_DEFAULTS = {
6
6
  sport: Sport.GOLF,
7
- provider: Provider.EMPTY,
7
+ provider: Provider.OPTICODDS,
8
8
  scoringType: ScoringType.EMPTY,
9
9
  matchResolveType: MatchResolveType.EMPTY,
10
10
  periodType: PeriodType.EMPTY,
@@ -13,18 +13,11 @@ export const GOLF_DEFAULTS = {
13
13
  } as const;
14
14
 
15
15
  export const GOLF_LEAGUES: Partial<Record<League, LeagueInfo>> = {
16
- [League.GOLF_H2H]: {
16
+ [League.USA_THE_GOLF_LEAGUE]: {
17
17
  ...GOLF_DEFAULTS,
18
- id: League.GOLF_H2H,
19
- label: 'Golf head-to-head',
20
- logoClass: 'icon-homepage league--pga',
21
- priority: 1101,
22
- },
23
- [League.GOLF_WINNER]: {
24
- ...GOLF_DEFAULTS,
25
- id: League.GOLF_WINNER,
26
- label: 'Golf Tournament Winner',
27
- logoClass: 'icon-homepage league--pga',
28
- priority: 1102,
18
+ id: League.USA_THE_GOLF_LEAGUE,
19
+ label: 'USA The Golf League',
20
+ opticOddsName: 'USA - The Golf League',
21
+ priority: 1100,
29
22
  },
30
23
  };
@@ -3897,6 +3897,7 @@ export const WINNER_MARKET_TYPES = [
3897
3897
  MarketType.SECOND_PERIOD_DRAW_NO_BET,
3898
3898
  MarketType.THIRD_PERIOD_DRAW_NO_BET,
3899
3899
  MarketType.FOURTH_PERIOD_DRAW_NO_BET,
3900
+ MarketType.WHO_WILL_ADVANCE,
3900
3901
  MarketType.WHO_WILL_QUALIFY,
3901
3902
  MarketType.MOST_CORNERS,
3902
3903
  MarketType.FIRST_PERIOD_MOST_CORNERS,
@@ -496,8 +496,6 @@ export enum League {
496
496
  PGA_FUTURES = 39998,
497
497
  FORMULA1_FUTURES = 39999,
498
498
  FIBA_EUROBASKET_FUTURES = 30224,
499
- GOLF_H2H = 100021,
500
- GOLF_WINNER = 100121,
501
499
  }
502
500
 
503
501
  export enum ScoringType {
@@ -34,7 +34,8 @@ import {
34
34
  SEVENTH_PERIOD_MARKET_TYPES,
35
35
  SGP_BUILDER_MARKET_TYPES,
36
36
  SGP_NOT_SUPPORTED_MARKET_TYPES,
37
- SIXTH_PERIOD_MARKET_TYPES, SOCCER_TOTAL_MARKET_TYPES,
37
+ SIXTH_PERIOD_MARKET_TYPES,
38
+ SOCCER_TOTAL_MARKET_TYPES,
38
39
  SPREAD_MARKET_TYPES,
39
40
  THIRD_PERIOD_MARKET_TYPES,
40
41
  TOTAL_EXACT_MARKET_TYPES,
@@ -71,7 +72,6 @@ export const isFuturesMarket = (marketType: MarketType) => FUTURES_MARKET_TYPES.
71
72
 
72
73
  export const isOneSideMarket = (league: League, marketType: MarketType) =>
73
74
  getLeagueSport(league) === Sport.MOTOSPORT ||
74
- league == League.GOLF_WINNER ||
75
75
  league == League.US_ELECTION ||
76
76
  marketType === MarketType.TO_MAKE_FINAL_FOUR;
77
77