overtime-utils 0.2.34 → 0.2.36

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.34",
3
+ "version": "0.2.36",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -419,4 +419,53 @@ export const BASKETBALL_LEAGUES: Partial<Record<League, LeagueInfo>> = {
419
419
  opticOddsName: 'Austria - BSL',
420
420
  priority: 338,
421
421
  },
422
+ [League.JAPAN_B1_LEAGUE]: {
423
+ ...BASKETBALL_DEFAULTS,
424
+ id: League.JAPAN_B1_LEAGUE,
425
+ label: 'Japan B1 League',
426
+ opticOddsName: 'Japan - B1 League',
427
+ priority: 318,
428
+ },
429
+ [League.MEXICO_LNBP]: {
430
+ ...BASKETBALL_DEFAULTS,
431
+ id: League.MEXICO_LNBP,
432
+ label: 'Mexico LNBP',
433
+ opticOddsName: 'Mexico - LNBP',
434
+ priority: 325,
435
+ },
436
+ [League.PHILIPPINES_GOVERNORS_CUP]: {
437
+ ...BASKETBALL_DEFAULTS,
438
+ id: League.PHILIPPINES_GOVERNORS_CUP,
439
+ label: 'Philippines Governors Cup',
440
+ opticOddsName: 'Philippines - Governors Cup',
441
+ priority: 326,
442
+ },
443
+ [League.CZECH_REPUBLIC_NBL]: {
444
+ ...BASKETBALL_DEFAULTS,
445
+ id: League.CZECH_REPUBLIC_NBL,
446
+ label: 'Czech Republic NBL',
447
+ opticOddsName: 'Czech Republic - NBL',
448
+ priority: 328,
449
+ },
450
+ [League.INTERNATIONAL_BNXT_LEAGUE]: {
451
+ ...BASKETBALL_DEFAULTS,
452
+ id: League.INTERNATIONAL_BNXT_LEAGUE,
453
+ label: 'International BNXT League',
454
+ opticOddsName: 'International - BNXT League',
455
+ priority: 322,
456
+ },
457
+ [League.GERMANY_PRO_A]: {
458
+ ...BASKETBALL_DEFAULTS,
459
+ id: League.GERMANY_PRO_A,
460
+ label: 'Germany Pro A',
461
+ opticOddsName: 'Germany - Pro A',
462
+ priority: 330,
463
+ },
464
+ [League.AUSTRALIA_WNBL]: {
465
+ ...BASKETBALL_DEFAULTS,
466
+ id: League.AUSTRALIA_WNBL,
467
+ label: 'Australia WNBL',
468
+ opticOddsName: 'Australia - WNBL',
469
+ priority: 335,
470
+ },
422
471
  };
@@ -246,4 +246,50 @@ export const FUTURES_LEAGUES: Partial<Record<League, LeagueInfo>> = {
246
246
  label: 'United Kingdom Politics',
247
247
  priority: 1892,
248
248
  },
249
+ [League.UEFA_EL_FUTURES]: {
250
+ ...FUTURES_DEFAULTS,
251
+ id: League.UEFA_EL_FUTURES,
252
+ initialSport: Sport.SOCCER,
253
+ label: 'UEFA Europa League Futures',
254
+ logoClass: 'icon-homepage league--uel',
255
+ priority: 1816,
256
+ },
257
+ [League.UEFA_CONFERENCE_LEAGUE_FUTURES]: {
258
+ ...FUTURES_DEFAULTS,
259
+ id: League.UEFA_CONFERENCE_LEAGUE_FUTURES,
260
+ initialSport: Sport.SOCCER,
261
+ label: 'UEFA Conference League Futures',
262
+ logoClass: 'icon-homepage league--uefa',
263
+ priority: 1817,
264
+ },
265
+ [League.EREDIVISIE_FUTURES]: {
266
+ ...FUTURES_DEFAULTS,
267
+ id: League.EREDIVISIE_FUTURES,
268
+ initialSport: Sport.SOCCER,
269
+ label: 'Eredivisie Futures',
270
+ logoClass: 'icon-homepage league--eredivisie',
271
+ priority: 1818,
272
+ },
273
+ [League.PRIMEIRA_LIGA_FUTURES]: {
274
+ ...FUTURES_DEFAULTS,
275
+ id: League.PRIMEIRA_LIGA_FUTURES,
276
+ initialSport: Sport.SOCCER,
277
+ label: 'Primeira Liga Futures',
278
+ logoClass: 'icon-homepage league--portugal',
279
+ priority: 1819,
280
+ },
281
+ [League.BELGIUM_LEAGUE_FUTURES]: {
282
+ ...FUTURES_DEFAULTS,
283
+ id: League.BELGIUM_LEAGUE_FUTURES,
284
+ initialSport: Sport.SOCCER,
285
+ label: 'Belgium Pro League Futures',
286
+ priority: 1820,
287
+ },
288
+ [League.ENGLAND_CHAMPIONSHIP_FUTURES]: {
289
+ ...FUTURES_DEFAULTS,
290
+ id: League.ENGLAND_CHAMPIONSHIP_FUTURES,
291
+ initialSport: Sport.SOCCER,
292
+ label: 'Championship Futures',
293
+ priority: 1821,
294
+ },
249
295
  };
@@ -2292,4 +2292,116 @@ export const SOCCER_LEAGUES: Partial<Record<League, LeagueInfo>> = {
2292
2292
  opticOddsName: 'Germany - Regionalliga',
2293
2293
  priority: 196,
2294
2294
  },
2295
+ [League.GERMANY_BUNDESLIGA_U19]: {
2296
+ ...SOCCER_DEFAULTS,
2297
+ id: League.GERMANY_BUNDESLIGA_U19,
2298
+ label: 'Germany Bundesliga U19',
2299
+ opticOddsName: 'Germany - Bundesliga U19',
2300
+ priority: 197,
2301
+ },
2302
+ [League.BRAZIL_BRASILEIRO_WOMEN]: {
2303
+ ...SOCCER_DEFAULTS,
2304
+ id: League.BRAZIL_BRASILEIRO_WOMEN,
2305
+ label: 'Brazil Brasileiro Women',
2306
+ opticOddsName: 'Brazil - Brasileiro Women',
2307
+ priority: 197,
2308
+ },
2309
+ [League.SWEDEN_ELITETTAN_WOMEN]: {
2310
+ ...SOCCER_DEFAULTS,
2311
+ id: League.SWEDEN_ELITETTAN_WOMEN,
2312
+ label: 'Sweden Elitettan Women',
2313
+ opticOddsName: 'Sweden - Elitettan Women',
2314
+ priority: 197,
2315
+ },
2316
+ [League.ARGENTINA_LIGA_PRO_RESERVES]: {
2317
+ ...SOCCER_DEFAULTS,
2318
+ id: League.ARGENTINA_LIGA_PRO_RESERVES,
2319
+ label: 'Argentina Liga Pro Reserves',
2320
+ opticOddsName: 'Argentina - Liga Pro Reserves',
2321
+ priority: 198,
2322
+ },
2323
+ [League.JAPAN_J2_LEAGUE]: {
2324
+ ...SOCCER_DEFAULTS,
2325
+ id: League.JAPAN_J2_LEAGUE,
2326
+ label: 'Japan J2 League',
2327
+ opticOddsName: 'Japan - J2 League',
2328
+ priority: 184,
2329
+ },
2330
+ [League.JAPAN_J3_LEAGUE]: {
2331
+ ...SOCCER_DEFAULTS,
2332
+ id: League.JAPAN_J3_LEAGUE,
2333
+ label: 'Japan J3 League',
2334
+ opticOddsName: 'Japan - J3 League',
2335
+ priority: 192,
2336
+ },
2337
+ [League.FRANCE_NATIONAL_1]: {
2338
+ ...SOCCER_DEFAULTS,
2339
+ id: League.FRANCE_NATIONAL_1,
2340
+ label: 'France National 1',
2341
+ opticOddsName: 'France - National 1',
2342
+ priority: 192,
2343
+ },
2344
+ [League.BRAZIL_SERIE_C]: {
2345
+ ...SOCCER_DEFAULTS,
2346
+ id: League.BRAZIL_SERIE_C,
2347
+ label: 'Brazil Serie C',
2348
+ opticOddsName: 'Brazil - Serie C',
2349
+ priority: 190,
2350
+ },
2351
+ [League.SERBIA_PRVA_LIGA]: {
2352
+ ...SOCCER_DEFAULTS,
2353
+ id: League.SERBIA_PRVA_LIGA,
2354
+ label: 'Serbia Prva Liga',
2355
+ opticOddsName: 'Serbia - Prva Liga',
2356
+ priority: 190,
2357
+ },
2358
+ [League.UKRAINE_PERSHA_LIHA]: {
2359
+ ...SOCCER_DEFAULTS,
2360
+ id: League.UKRAINE_PERSHA_LIHA,
2361
+ label: 'Ukraine Persha Liha',
2362
+ opticOddsName: 'Ukraine - Persha Liha',
2363
+ priority: 190,
2364
+ },
2365
+ [League.HUNGARY_NB_II]: {
2366
+ ...SOCCER_DEFAULTS,
2367
+ id: League.HUNGARY_NB_II,
2368
+ label: 'Hungary NB II',
2369
+ opticOddsName: 'Hungary - NB II',
2370
+ priority: 192,
2371
+ },
2372
+ [League.ISRAEL_NATIONAL_LEAGUE]: {
2373
+ ...SOCCER_DEFAULTS,
2374
+ id: League.ISRAEL_NATIONAL_LEAGUE,
2375
+ label: 'Israel National League',
2376
+ opticOddsName: 'Israel - National League',
2377
+ priority: 192,
2378
+ },
2379
+ [League.SAUDI_ARABIA_DIVISION_1]: {
2380
+ ...SOCCER_DEFAULTS,
2381
+ id: League.SAUDI_ARABIA_DIVISION_1,
2382
+ label: 'Saudi Arabia Division 1',
2383
+ opticOddsName: 'Saudi Arabia - Division 1',
2384
+ priority: 188,
2385
+ },
2386
+ [League.SCOTLAND_LEAGUE_ONE]: {
2387
+ ...SOCCER_DEFAULTS,
2388
+ id: League.SCOTLAND_LEAGUE_ONE,
2389
+ label: 'Scotland League One',
2390
+ opticOddsName: 'Scotland - League One',
2391
+ priority: 190,
2392
+ },
2393
+ [League.SCOTLAND_LEAGUE_TWO]: {
2394
+ ...SOCCER_DEFAULTS,
2395
+ id: League.SCOTLAND_LEAGUE_TWO,
2396
+ label: 'Scotland League Two',
2397
+ opticOddsName: 'Scotland - League Two',
2398
+ priority: 194,
2399
+ },
2400
+ [League.USA_USL_LEAGUE_ONE]: {
2401
+ ...SOCCER_DEFAULTS,
2402
+ id: League.USA_USL_LEAGUE_ONE,
2403
+ label: 'USA USL League One',
2404
+ opticOddsName: 'USA - USL League One',
2405
+ priority: 192,
2406
+ },
2295
2407
  };
@@ -182,4 +182,112 @@ export const FUTURES_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>
182
182
  name: 'UK general election most seats',
183
183
  resultType: ResultType.EXACT_POSITION,
184
184
  },
185
+ [MarketType.TEAM_TO_BE_RELEGATED]: {
186
+ id: MarketType.TEAM_TO_BE_RELEGATED,
187
+ key: 'teamToBeRelegated',
188
+ name: 'Team to be relegated',
189
+ resultType: ResultType.EXACT_POSITION,
190
+ },
191
+ [MarketType.AVOID_RELEGATION]: {
192
+ id: MarketType.AVOID_RELEGATION,
193
+ key: 'avoidRelegation',
194
+ name: 'Avoid relegation',
195
+ resultType: ResultType.EXACT_POSITION,
196
+ },
197
+ [MarketType.WINNER_RUNNER_UP]: {
198
+ id: MarketType.WINNER_RUNNER_UP,
199
+ key: 'winnerRunnerUp',
200
+ name: 'Winner/Runner up',
201
+ resultType: ResultType.EXACT_POSITION,
202
+ },
203
+ [MarketType.TOP_2_FINISHER]: {
204
+ id: MarketType.TOP_2_FINISHER,
205
+ key: 'top2Finisher',
206
+ name: 'Top 2 finisher',
207
+ resultType: ResultType.EXACT_POSITION,
208
+ },
209
+ [MarketType.TOP_3_FINISHER]: {
210
+ id: MarketType.TOP_3_FINISHER,
211
+ key: 'top3Finisher',
212
+ name: 'Top 3 finisher',
213
+ resultType: ResultType.EXACT_POSITION,
214
+ },
215
+ [MarketType.TOP_4_FINISHER]: {
216
+ id: MarketType.TOP_4_FINISHER,
217
+ key: 'top4Finisher',
218
+ name: 'Top 4 finisher',
219
+ resultType: ResultType.EXACT_POSITION,
220
+ },
221
+ [MarketType.TOP_5_FINISHER]: {
222
+ id: MarketType.TOP_5_FINISHER,
223
+ key: 'top5Finisher',
224
+ name: 'Top 5 finisher',
225
+ resultType: ResultType.EXACT_POSITION,
226
+ },
227
+ [MarketType.TOP_6_FINISHER]: {
228
+ id: MarketType.TOP_6_FINISHER,
229
+ key: 'top6Finisher',
230
+ name: 'Top 6 finisher',
231
+ resultType: ResultType.EXACT_POSITION,
232
+ },
233
+ [MarketType.TOP_7_FINISHER]: {
234
+ id: MarketType.TOP_7_FINISHER,
235
+ key: 'top7Finisher',
236
+ name: 'Top 7 finisher',
237
+ resultType: ResultType.EXACT_POSITION,
238
+ },
239
+ [MarketType.TOP_8_FINISHER]: {
240
+ id: MarketType.TOP_8_FINISHER,
241
+ key: 'top8Finisher',
242
+ name: 'Top 8 finisher',
243
+ resultType: ResultType.EXACT_POSITION,
244
+ },
245
+ [MarketType.TOP_9_FINISHER]: {
246
+ id: MarketType.TOP_9_FINISHER,
247
+ key: 'top9Finisher',
248
+ name: 'Top 9 finisher',
249
+ resultType: ResultType.EXACT_POSITION,
250
+ },
251
+ [MarketType.TOP_10_FINISHER]: {
252
+ id: MarketType.TOP_10_FINISHER,
253
+ key: 'top10Finisher',
254
+ name: 'Top 10 finisher',
255
+ resultType: ResultType.EXACT_POSITION,
256
+ },
257
+ [MarketType.TOP_11_FINISHER]: {
258
+ id: MarketType.TOP_11_FINISHER,
259
+ key: 'top11Finisher',
260
+ name: 'Top 11 finisher',
261
+ resultType: ResultType.EXACT_POSITION,
262
+ },
263
+ [MarketType.TOP_12_FINISHER]: {
264
+ id: MarketType.TOP_12_FINISHER,
265
+ key: 'top12Finisher',
266
+ name: 'Top 12 finisher',
267
+ resultType: ResultType.EXACT_POSITION,
268
+ },
269
+ [MarketType.TOP_13_FINISHER]: {
270
+ id: MarketType.TOP_13_FINISHER,
271
+ key: 'top13Finisher',
272
+ name: 'Top 13 finisher',
273
+ resultType: ResultType.EXACT_POSITION,
274
+ },
275
+ [MarketType.TOP_14_FINISHER]: {
276
+ id: MarketType.TOP_14_FINISHER,
277
+ key: 'top14Finisher',
278
+ name: 'Top 14 finisher',
279
+ resultType: ResultType.EXACT_POSITION,
280
+ },
281
+ [MarketType.TOP_15_FINISHER]: {
282
+ id: MarketType.TOP_15_FINISHER,
283
+ key: 'top15Finisher',
284
+ name: 'Top 15 finisher',
285
+ resultType: ResultType.EXACT_POSITION,
286
+ },
287
+ [MarketType.TEAMS_TO_BE_PROMOTED]: {
288
+ id: MarketType.TEAMS_TO_BE_PROMOTED,
289
+ key: 'teamsToBePromoted',
290
+ name: 'Team to be promoted',
291
+ resultType: ResultType.EXACT_POSITION,
292
+ },
185
293
  };
@@ -410,6 +410,26 @@ export enum MarketType {
410
410
  VICE_PRESIDENTIAL_DEMOCRATIC_NOMINEE = 13029,
411
411
  UK_GENERAL_ELECTION_MOST_SEATS = 13030,
412
412
 
413
+ // League-position futures (relegation / promotion / top-N finish)
414
+ TEAM_TO_BE_RELEGATED = 13031,
415
+ AVOID_RELEGATION = 13032,
416
+ WINNER_RUNNER_UP = 13033,
417
+ TOP_2_FINISHER = 13034,
418
+ TOP_3_FINISHER = 13035,
419
+ TOP_4_FINISHER = 13036,
420
+ TOP_5_FINISHER = 13037,
421
+ TOP_6_FINISHER = 13038,
422
+ TOP_7_FINISHER = 13039,
423
+ TOP_8_FINISHER = 13040,
424
+ TOP_9_FINISHER = 13041,
425
+ TOP_10_FINISHER = 13042,
426
+ TOP_11_FINISHER = 13043,
427
+ TOP_12_FINISHER = 13044,
428
+ TOP_13_FINISHER = 13045,
429
+ TOP_14_FINISHER = 13046,
430
+ TOP_15_FINISHER = 13047,
431
+ TEAMS_TO_BE_PROMOTED = 13048,
432
+
413
433
  // Spread (handicap) corners
414
434
  SPREAD_CORNERS = 10221,
415
435
  // Total corners
@@ -554,6 +554,13 @@ export enum League {
554
554
  FORMULA1_FUTURES = 39999,
555
555
  FIBA_EUROBASKET_FUTURES = 30224,
556
556
 
557
+ UEFA_EL_FUTURES = 30017,
558
+ UEFA_CONFERENCE_LEAGUE_FUTURES = 30216,
559
+ EREDIVISIE_FUTURES = 30057,
560
+ PRIMEIRA_LIGA_FUTURES = 30061,
561
+ BELGIUM_LEAGUE_FUTURES = 30102,
562
+ ENGLAND_CHAMPIONSHIP_FUTURES = 31011,
563
+
557
564
  WST_WORLD_CHAMPIONSHIP = 20950,
558
565
 
559
566
  ECUADOR_SERIE_B = 20536,
@@ -647,6 +654,29 @@ export enum League {
647
654
  USA_MLS_NEXT_PRO = 20699,
648
655
  NORWAY_2_DIVISION = 20643,
649
656
  GERMANY_REGIONALLIGA = 21515,
657
+ GERMANY_BUNDESLIGA_U19 = 21439,
658
+ BRAZIL_BRASILEIRO_WOMEN = 21208,
659
+ SWEDEN_ELITETTAN_WOMEN = 21269,
660
+ ARGENTINA_LIGA_PRO_RESERVES = 21516,
661
+ JAPAN_J2_LEAGUE = 20595,
662
+ JAPAN_J3_LEAGUE = 20596,
663
+ FRANCE_NATIONAL_1 = 20559,
664
+ BRAZIL_SERIE_C = 20504,
665
+ SERBIA_PRVA_LIGA = 20674,
666
+ UKRAINE_PERSHA_LIHA = 20697,
667
+ HUNGARY_NB_II = 20573,
668
+ ISRAEL_NATIONAL_LEAGUE = 20592,
669
+ SAUDI_ARABIA_DIVISION_1 = 20668,
670
+ SCOTLAND_LEAGUE_ONE = 20670,
671
+ SCOTLAND_LEAGUE_TWO = 20671,
672
+ USA_USL_LEAGUE_ONE = 20703,
673
+ JAPAN_B1_LEAGUE = 20207,
674
+ MEXICO_LNBP = 21355,
675
+ PHILIPPINES_GOVERNORS_CUP = 21411,
676
+ CZECH_REPUBLIC_NBL = 21333,
677
+ INTERNATIONAL_BNXT_LEAGUE = 21307,
678
+ GERMANY_PRO_A = 21401,
679
+ AUSTRALIA_WNBL = 21471,
650
680
  }
651
681
 
652
682
  export enum ScoringType {