overtime-utils 0.2.29 → 0.2.31
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
|
@@ -16,6 +16,7 @@ export { OVERTIME_MARKET_TYPE_MAP } from './overtime';
|
|
|
16
16
|
export { PLAYER_PROPS_MARKET_TYPE_MAP } from './playerProps';
|
|
17
17
|
export { SGP_MARKET_TYPE_MAP } from './sgp';
|
|
18
18
|
export { SOCCER_MARKET_TYPE_MAP } from './soccer';
|
|
19
|
+
export { TENNIS_MARKET_TYPE_MAP } from './tennis';
|
|
19
20
|
export { TOTAL_MARKET_TYPE_MAP } from './total';
|
|
20
21
|
export { UFC_MARKET_TYPE_MAP } from './ufc';
|
|
21
22
|
export { US_ELECTION_MARKET_TYPE_MAP } from './usElection';
|
|
@@ -35,6 +36,7 @@ import { OVERTIME_MARKET_TYPE_MAP } from './overtime';
|
|
|
35
36
|
import { PLAYER_PROPS_MARKET_TYPE_MAP } from './playerProps';
|
|
36
37
|
import { SGP_MARKET_TYPE_MAP } from './sgp';
|
|
37
38
|
import { SOCCER_MARKET_TYPE_MAP } from './soccer';
|
|
39
|
+
import { TENNIS_MARKET_TYPE_MAP } from './tennis';
|
|
38
40
|
import { TOTAL_MARKET_TYPE_MAP } from './total';
|
|
39
41
|
import { UFC_MARKET_TYPE_MAP } from './ufc';
|
|
40
42
|
import { US_ELECTION_MARKET_TYPE_MAP } from './usElection';
|
|
@@ -54,6 +56,7 @@ export const ALL_MARKET_TYPES: Partial<Record<MarketType, MarketTypeInfo>> = {
|
|
|
54
56
|
...CORRECT_SCORE_MARKET_TYPE_MAP,
|
|
55
57
|
...FUTURES_MARKET_TYPE_MAP,
|
|
56
58
|
...SOCCER_MARKET_TYPE_MAP,
|
|
59
|
+
...TENNIS_MARKET_TYPE_MAP,
|
|
57
60
|
...BASEBALL_INNINGS_MARKET_TYPE_MAP,
|
|
58
61
|
...CRICKET_MARKET_TYPE_MAP,
|
|
59
62
|
...SGP_MARKET_TYPE_MAP,
|
|
@@ -344,6 +344,24 @@ export const PLAYER_PROPS_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketType
|
|
|
344
344
|
tooltipKey: 'longest-rush',
|
|
345
345
|
resultType: ResultType.OVER_UNDER,
|
|
346
346
|
},
|
|
347
|
+
[MarketType.PLAYER_PROPS_MOST_POINTS_PLAYER]: {
|
|
348
|
+
id: MarketType.PLAYER_PROPS_MOST_POINTS_PLAYER,
|
|
349
|
+
key: 'mostPointsPlayer',
|
|
350
|
+
name: 'Most points player',
|
|
351
|
+
resultType: ResultType.OVER_UNDER,
|
|
352
|
+
},
|
|
353
|
+
[MarketType.PLAYER_PROPS_FIRST_BASKET]: {
|
|
354
|
+
id: MarketType.PLAYER_PROPS_FIRST_BASKET,
|
|
355
|
+
key: 'firstBasket',
|
|
356
|
+
name: 'First basket (field goal only)',
|
|
357
|
+
resultType: ResultType.OVER_UNDER,
|
|
358
|
+
},
|
|
359
|
+
[MarketType.PLAYER_PROPS_FIRST_BASKET_INCLUDING_FT]: {
|
|
360
|
+
id: MarketType.PLAYER_PROPS_FIRST_BASKET_INCLUDING_FT,
|
|
361
|
+
key: 'firstBasketIncludingFT',
|
|
362
|
+
name: 'First basket incl. FT',
|
|
363
|
+
resultType: ResultType.OVER_UNDER,
|
|
364
|
+
},
|
|
347
365
|
|
|
348
366
|
// Soccer player props
|
|
349
367
|
[MarketType.PLAYER_PROPS_CARD_RECEIVER]: {
|
|
@@ -414,6 +432,12 @@ export const PLAYER_PROPS_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketType
|
|
|
414
432
|
name: 'Double faults',
|
|
415
433
|
resultType: ResultType.OVER_UNDER,
|
|
416
434
|
},
|
|
435
|
+
[MarketType.PLAYER_PROPS_SETS_WON]: {
|
|
436
|
+
id: MarketType.PLAYER_PROPS_SETS_WON,
|
|
437
|
+
key: 'setsWon',
|
|
438
|
+
name: 'Sets won',
|
|
439
|
+
resultType: ResultType.OVER_UNDER,
|
|
440
|
+
},
|
|
417
441
|
|
|
418
442
|
// Cricket player props market types
|
|
419
443
|
[MarketType.PLAYER_PROPS_MAN_OF_THE_MATCH]: {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { MarketType, ResultType } from '../../enums/marketTypes';
|
|
2
|
+
import { MarketTypeInfo } from '../../types/marketTypes';
|
|
3
|
+
|
|
4
|
+
export const TENNIS_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
|
|
5
|
+
// Any set to nil
|
|
6
|
+
[MarketType.ANY_SET_TO_NIL]: {
|
|
7
|
+
id: MarketType.ANY_SET_TO_NIL,
|
|
8
|
+
key: 'anySetToNil',
|
|
9
|
+
name: 'Any set to nil',
|
|
10
|
+
resultType: ResultType.EXACT_POSITION,
|
|
11
|
+
},
|
|
12
|
+
// Will there be a tiebreak
|
|
13
|
+
[MarketType.WILL_THERE_BE_TIEBREAK]: {
|
|
14
|
+
id: MarketType.WILL_THERE_BE_TIEBREAK,
|
|
15
|
+
key: 'thereBeTiebreak',
|
|
16
|
+
name: 'Will there be a tiebreak',
|
|
17
|
+
resultType: ResultType.EXACT_POSITION,
|
|
18
|
+
},
|
|
19
|
+
// Will there be a tiebreak - per set
|
|
20
|
+
[MarketType.WILL_THERE_BE_TIEBREAK_FIRST_SET]: {
|
|
21
|
+
id: MarketType.WILL_THERE_BE_TIEBREAK_FIRST_SET,
|
|
22
|
+
key: 'willThereBeTiebreakFirstSet',
|
|
23
|
+
name: 'Will there be a tiebreak in the 1st set',
|
|
24
|
+
resultType: ResultType.EXACT_POSITION,
|
|
25
|
+
},
|
|
26
|
+
[MarketType.WILL_THERE_BE_TIEBREAK_SECOND_SET]: {
|
|
27
|
+
id: MarketType.WILL_THERE_BE_TIEBREAK_SECOND_SET,
|
|
28
|
+
key: 'willThereBeTiebreakSecondSet',
|
|
29
|
+
name: 'Will there be a tiebreak in the 2nd set',
|
|
30
|
+
resultType: ResultType.EXACT_POSITION,
|
|
31
|
+
},
|
|
32
|
+
[MarketType.WILL_THERE_BE_TIEBREAK_THIRD_SET]: {
|
|
33
|
+
id: MarketType.WILL_THERE_BE_TIEBREAK_THIRD_SET,
|
|
34
|
+
key: 'willThereBeTiebreakThirdSet',
|
|
35
|
+
name: 'Will there be a tiebreak in the 3rd set',
|
|
36
|
+
resultType: ResultType.EXACT_POSITION,
|
|
37
|
+
},
|
|
38
|
+
[MarketType.WILL_THERE_BE_TIEBREAK_FOURTH_SET]: {
|
|
39
|
+
id: MarketType.WILL_THERE_BE_TIEBREAK_FOURTH_SET,
|
|
40
|
+
key: 'willThereBeTiebreakFourthSet',
|
|
41
|
+
name: 'Will there be a tiebreak in the 4th set',
|
|
42
|
+
resultType: ResultType.EXACT_POSITION,
|
|
43
|
+
},
|
|
44
|
+
[MarketType.WILL_THERE_BE_TIEBREAK_FIFTH_SET]: {
|
|
45
|
+
id: MarketType.WILL_THERE_BE_TIEBREAK_FIFTH_SET,
|
|
46
|
+
key: 'willThereBeTiebreakFifthSet',
|
|
47
|
+
name: 'Will there be a tiebreak in the 5th set',
|
|
48
|
+
resultType: ResultType.EXACT_POSITION,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
@@ -757,6 +757,7 @@ export const PLAYER_PROPS_MARKET_TYPES = [
|
|
|
757
757
|
MarketType.PLAYER_PROPS_ACES,
|
|
758
758
|
MarketType.PLAYER_PROPS_BREAK_POINTS_WON,
|
|
759
759
|
MarketType.PLAYER_PROPS_DOUBLE_FAULTS,
|
|
760
|
+
MarketType.PLAYER_PROPS_SETS_WON,
|
|
760
761
|
MarketType.PLAYER_PROPS_BLOCKED_SHOTS,
|
|
761
762
|
MarketType.PLAYER_PROPS_TURNOVERS,
|
|
762
763
|
MarketType.PLAYER_PROPS_MAN_OF_THE_MATCH,
|
|
@@ -775,6 +776,9 @@ export const PLAYER_PROPS_MARKET_TYPES = [
|
|
|
775
776
|
MarketType.PLAYER_PROPS_THREES_ATTEMPTED,
|
|
776
777
|
MarketType.PLAYER_PROPS_TWO_POINTERS_ATTEMPTED,
|
|
777
778
|
MarketType.PLAYER_PROPS_MADE_TWO_POINTERS,
|
|
779
|
+
MarketType.PLAYER_PROPS_MOST_POINTS_PLAYER,
|
|
780
|
+
MarketType.PLAYER_PROPS_FIRST_BASKET,
|
|
781
|
+
MarketType.PLAYER_PROPS_FIRST_BASKET_INCLUDING_FT,
|
|
778
782
|
MarketType.PLAYER_PROPS_KILLS,
|
|
779
783
|
MarketType.PLAYER_PROPS_1ST_MAP_KILLS,
|
|
780
784
|
MarketType.PLAYER_PROPS_2ND_MAP_KILLS,
|
|
@@ -880,6 +884,9 @@ export const ONE_SIDE_PLAYER_PROPS_MARKET_TYPES = [
|
|
|
880
884
|
MarketType.PLAYER_PROPS_TO_SCORE_OR_ASSIST,
|
|
881
885
|
MarketType.FIRST_PERIOD_PLAYER_PROPS_ANYTIME_GOAL_SCORER,
|
|
882
886
|
MarketType.SECOND_PERIOD_PLAYER_PROPS_ANYTIME_GOAL_SCORER,
|
|
887
|
+
MarketType.PLAYER_PROPS_MOST_POINTS_PLAYER,
|
|
888
|
+
MarketType.PLAYER_PROPS_FIRST_BASKET,
|
|
889
|
+
MarketType.PLAYER_PROPS_FIRST_BASKET_INCLUDING_FT,
|
|
883
890
|
];
|
|
884
891
|
|
|
885
892
|
export const ONE_SIDE_EXTENDED_PLAYER_PROPS_MARKET_TYPES = [
|
|
@@ -925,6 +932,15 @@ export const OTHER_YES_NO_MARKET_TYPES = [
|
|
|
925
932
|
MarketType.WILL_THERE_BE_FIFTY,
|
|
926
933
|
MarketType.WILL_THERE_BE_SAFETY,
|
|
927
934
|
|
|
935
|
+
// Tennis
|
|
936
|
+
MarketType.ANY_SET_TO_NIL,
|
|
937
|
+
MarketType.WILL_THERE_BE_TIEBREAK,
|
|
938
|
+
MarketType.WILL_THERE_BE_TIEBREAK_FIRST_SET,
|
|
939
|
+
MarketType.WILL_THERE_BE_TIEBREAK_SECOND_SET,
|
|
940
|
+
MarketType.WILL_THERE_BE_TIEBREAK_THIRD_SET,
|
|
941
|
+
MarketType.WILL_THERE_BE_TIEBREAK_FOURTH_SET,
|
|
942
|
+
MarketType.WILL_THERE_BE_TIEBREAK_FIFTH_SET,
|
|
943
|
+
|
|
928
944
|
MarketType.FIRST_PERIOD_BOTH_TEAMS_TO_SLAIN_ROSHAN,
|
|
929
945
|
MarketType.SECOND_PERIOD_BOTH_TEAMS_TO_SLAIN_ROSHAN,
|
|
930
946
|
MarketType.THIRD_PERIOD_BOTH_TEAMS_TO_SLAIN_ROSHAN,
|
package/src/enums/marketTypes.ts
CHANGED
|
@@ -248,6 +248,12 @@ export enum MarketType {
|
|
|
248
248
|
PLAYER_PROPS_SAVES = 11301,
|
|
249
249
|
PLAYER_PROPS_TO_SCORE_AND_ASSIST = 11302,
|
|
250
250
|
PLAYER_PROPS_TO_SCORE_OR_ASSIST = 11303,
|
|
251
|
+
// Basketball player props market types
|
|
252
|
+
PLAYER_PROPS_MOST_POINTS_PLAYER = 11304,
|
|
253
|
+
PLAYER_PROPS_FIRST_BASKET = 11305,
|
|
254
|
+
PLAYER_PROPS_FIRST_BASKET_INCLUDING_FT = 11306,
|
|
255
|
+
// Tennis player props market types
|
|
256
|
+
PLAYER_PROPS_SETS_WON = 11307,
|
|
251
257
|
PLAYER_PROPS_FACEOFFS_WON = 11308,
|
|
252
258
|
PLAYER_PROPS_CLEARANCES = 11309,
|
|
253
259
|
PLAYER_PROPS_CROSSES = 11310,
|
|
@@ -331,6 +337,11 @@ export enum MarketType {
|
|
|
331
337
|
WILL_POINT_BE_DEDUCTED = 10156,
|
|
332
338
|
ENDING_METHOD = 10157,
|
|
333
339
|
METHOD_OF_VICTORY = 10158,
|
|
340
|
+
|
|
341
|
+
// Tennis market types
|
|
342
|
+
ANY_SET_TO_NIL = 10159, // moneyline yes/no
|
|
343
|
+
WILL_THERE_BE_TIEBREAK = 10162, // moneyline yes/no
|
|
344
|
+
|
|
334
345
|
// UFC player props market types
|
|
335
346
|
PLAYER_PROPS_UFC_TAKEDOWNS_LANDED = 11200,
|
|
336
347
|
PLAYER_PROPS_UFC_SIGNIFICANT_STRIKES_LANDED = 11201,
|
|
@@ -941,6 +952,12 @@ export enum MarketType {
|
|
|
941
952
|
SECOND_PERIOD_FIRST_SCORE = 10295, // who scores first in 2nd half
|
|
942
953
|
FIRST_PERIOD_LAST_SCORE = 10298, // who scores last in 1st half
|
|
943
954
|
SECOND_PERIOD_LAST_SCORE = 10299, // who scores last in 2nd half
|
|
955
|
+
// Tennis - will there be a tiebreak per set
|
|
956
|
+
WILL_THERE_BE_TIEBREAK_FIRST_SET = 10302,
|
|
957
|
+
WILL_THERE_BE_TIEBREAK_SECOND_SET = 10303,
|
|
958
|
+
WILL_THERE_BE_TIEBREAK_THIRD_SET = 10304,
|
|
959
|
+
WILL_THERE_BE_TIEBREAK_FOURTH_SET = 10305,
|
|
960
|
+
WILL_THERE_BE_TIEBREAK_FIFTH_SET = 10306,
|
|
944
961
|
// Red card / penalty per period
|
|
945
962
|
WILL_THERE_BE_A_RED_CARD = 10307, // yes/no moneyline
|
|
946
963
|
FIRST_PERIOD_WILL_THERE_BE_A_RED_CARD = 10308, // yes/no moneyline
|