overtime-utils 0.2.20 → 0.2.22

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.2.20",
3
+ "version": "0.2.22",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -232,4 +232,18 @@ export const FUTURES_LEAGUES: Partial<Record<League, LeagueInfo>> = {
232
232
  logo: '/logos/leagueLogos/england-premier-league-darts.webp',
233
233
  priority: 1843,
234
234
  },
235
+ [League.US_POLITICS_FUTURES]: {
236
+ ...FUTURES_DEFAULTS,
237
+ id: League.US_POLITICS_FUTURES,
238
+ initialSport: Sport.POLITICS,
239
+ label: 'United States Politics',
240
+ priority: 1891,
241
+ },
242
+ [League.UK_POLITICS_FUTURES]: {
243
+ ...FUTURES_DEFAULTS,
244
+ id: League.UK_POLITICS_FUTURES,
245
+ initialSport: Sport.POLITICS,
246
+ label: 'United Kingdom Politics',
247
+ priority: 1892,
248
+ },
235
249
  };
@@ -18,6 +18,7 @@ export const POLITICS_LEAGUES: Partial<Record<League, LeagueInfo>> = {
18
18
  id: League.US_ELECTION,
19
19
  label: 'US Election 2024',
20
20
  priority: 1701,
21
+ hidden: true,
21
22
  tooltipKey: 'common.election-tooltip',
22
23
  },
23
24
  };
@@ -139,4 +139,47 @@ export const FUTURES_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>
139
139
  name: 'Total tournament goals',
140
140
  resultType: ResultType.EXACT_POSITION,
141
141
  },
142
+ // Politics
143
+ [MarketType.PRESIDENTIAL_ELECTION_WINNER]: {
144
+ id: MarketType.PRESIDENTIAL_ELECTION_WINNER,
145
+ key: 'presidentialElectionWinner',
146
+ name: 'Presidential election winner',
147
+ resultType: ResultType.EXACT_POSITION,
148
+ },
149
+ [MarketType.PRESIDENTIAL_POPULAR_VOTE_WINNER]: {
150
+ id: MarketType.PRESIDENTIAL_POPULAR_VOTE_WINNER,
151
+ key: 'presidentialPopularVoteWinner',
152
+ name: 'Presidential popular vote winner',
153
+ resultType: ResultType.EXACT_POSITION,
154
+ },
155
+ [MarketType.PRESIDENTIAL_ELECTION_WINNING_PARTY]: {
156
+ id: MarketType.PRESIDENTIAL_ELECTION_WINNING_PARTY,
157
+ key: 'presidentialElectionWinningParty',
158
+ name: 'Presidential election winning party',
159
+ resultType: ResultType.EXACT_POSITION,
160
+ },
161
+ [MarketType.PRESIDENTIAL_REPUBLICAN_NOMINEE]: {
162
+ id: MarketType.PRESIDENTIAL_REPUBLICAN_NOMINEE,
163
+ key: 'presidentialRepublicanNominee',
164
+ name: 'Presidential Republican nominee',
165
+ resultType: ResultType.EXACT_POSITION,
166
+ },
167
+ [MarketType.PRESIDENTIAL_DEMOCRATIC_NOMINEE]: {
168
+ id: MarketType.PRESIDENTIAL_DEMOCRATIC_NOMINEE,
169
+ key: 'presidentialDemocraticNominee',
170
+ name: 'Presidential Democratic nominee',
171
+ resultType: ResultType.EXACT_POSITION,
172
+ },
173
+ [MarketType.VICE_PRESIDENTIAL_DEMOCRATIC_NOMINEE]: {
174
+ id: MarketType.VICE_PRESIDENTIAL_DEMOCRATIC_NOMINEE,
175
+ key: 'vicePresidentialDemocraticNominee',
176
+ name: 'Vice presidential Democratic nominee',
177
+ resultType: ResultType.EXACT_POSITION,
178
+ },
179
+ [MarketType.UK_GENERAL_ELECTION_MOST_SEATS]: {
180
+ id: MarketType.UK_GENERAL_ELECTION_MOST_SEATS,
181
+ key: 'ukGeneralElectionMostSeats',
182
+ name: 'UK general election most seats',
183
+ resultType: ResultType.EXACT_POSITION,
184
+ },
142
185
  };
@@ -844,6 +844,13 @@ export const FUTURES_MARKET_TYPES = [
844
844
  MarketType.STAGE_GOALS_TOTAL,
845
845
  MarketType.BEST_GOAL_KEEPER,
846
846
  MarketType.TOTAL_TOURNAMENT_GOALS,
847
+ MarketType.PRESIDENTIAL_ELECTION_WINNER,
848
+ MarketType.PRESIDENTIAL_POPULAR_VOTE_WINNER,
849
+ MarketType.PRESIDENTIAL_ELECTION_WINNING_PARTY,
850
+ MarketType.PRESIDENTIAL_REPUBLICAN_NOMINEE,
851
+ MarketType.PRESIDENTIAL_DEMOCRATIC_NOMINEE,
852
+ MarketType.VICE_PRESIDENTIAL_DEMOCRATIC_NOMINEE,
853
+ MarketType.UK_GENERAL_ELECTION_MOST_SEATS,
847
854
  ];
848
855
 
849
856
  export const ONE_SIDE_PLAYER_PROPS_MARKET_TYPES = [
@@ -378,6 +378,13 @@ export enum MarketType {
378
378
  STAGE_GOALS_TOTAL = 13021,
379
379
  BEST_GOAL_KEEPER = 13022,
380
380
  TOTAL_TOURNAMENT_GOALS = 13023,
381
+ PRESIDENTIAL_ELECTION_WINNER = 13024,
382
+ PRESIDENTIAL_POPULAR_VOTE_WINNER = 13025,
383
+ PRESIDENTIAL_ELECTION_WINNING_PARTY = 13026,
384
+ PRESIDENTIAL_REPUBLICAN_NOMINEE = 13027,
385
+ PRESIDENTIAL_DEMOCRATIC_NOMINEE = 13028,
386
+ VICE_PRESIDENTIAL_DEMOCRATIC_NOMINEE = 13029,
387
+ UK_GENERAL_ELECTION_MOST_SEATS = 13030,
381
388
 
382
389
  // Spread (handicap) corners
383
390
  SPREAD_CORNERS = 10221,
@@ -533,6 +533,8 @@ export enum League {
533
533
  EUROLEAGUE_FUTURES = 30399,
534
534
  CAF_AFRICA_CUP_OF_NATIONS_FUTURES = 30724,
535
535
  ENGLAND_PREMIER_LEAGUE_DARTS_FUTURES = 30320,
536
+ US_POLITICS_FUTURES = 39993,
537
+ UK_POLITICS_FUTURES = 39994,
536
538
  NASCAR_CUP_SERIES_FUTURES = 39995,
537
539
  INDYCAR_FUTURES = 39996,
538
540
  FIFA_CLUB_WORLD_CUP_FUTURES = 39997,