overtime-utils 0.1.97 → 0.1.99
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/main.js +1 -1
- package/package.json +1 -1
- package/src/constants/marketTypes/baseball.ts +95 -0
- package/src/constants/marketTypes/basketball.ts +105 -0
- package/src/constants/marketTypes/correctScore.ts +66 -0
- package/src/constants/marketTypes/cricket.ts +93 -0
- package/src/constants/marketTypes/darts.ts +36 -0
- package/src/constants/marketTypes/esports.ts +1965 -0
- package/src/constants/marketTypes/football.ts +198 -0
- package/src/constants/marketTypes/futures.ts +106 -0
- package/src/constants/marketTypes/handicap.ts +149 -0
- package/src/constants/marketTypes/index.ts +63 -0
- package/src/constants/marketTypes/others.ts +21 -0
- package/src/constants/marketTypes/overtime.ts +48 -0
- package/src/constants/marketTypes/playerProps.ts +778 -0
- package/src/constants/marketTypes/sgp.ts +42 -0
- package/src/constants/marketTypes/soccer.ts +494 -0
- package/src/constants/marketTypes/total.ts +398 -0
- package/src/constants/marketTypes/ufc.ts +44 -0
- package/src/constants/marketTypes/usElection.ts +61 -0
- package/src/constants/marketTypes/winner.ts +175 -0
- package/src/constants/marketTypes.ts +294 -3908
- package/src/enums/marketTypes.ts +151 -0
package/package.json
CHANGED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { MarketType, ResultType } from '../../enums/marketTypes';
|
|
2
|
+
import { MarketTypeInfo } from '../../types/marketTypes';
|
|
3
|
+
|
|
4
|
+
export const BASEBALL_INNINGS_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
|
|
5
|
+
// First 3 innings
|
|
6
|
+
[MarketType.FIRST_THREE_INNINGS_WINNER]: {
|
|
7
|
+
id: MarketType.FIRST_THREE_INNINGS_WINNER,
|
|
8
|
+
key: 'firstThreeInningsWinner',
|
|
9
|
+
name: 'Winner 1st 3 innings',
|
|
10
|
+
resultType: ResultType.EXACT_POSITION,
|
|
11
|
+
},
|
|
12
|
+
[MarketType.FIRST_THREE_INNINGS_TOTAL]: {
|
|
13
|
+
id: MarketType.FIRST_THREE_INNINGS_TOTAL,
|
|
14
|
+
key: 'firstThreeInningsTotal',
|
|
15
|
+
name: 'Total 1st 3 innings',
|
|
16
|
+
resultType: ResultType.OVER_UNDER,
|
|
17
|
+
},
|
|
18
|
+
[MarketType.FIRST_THREE_INNINGS_SPREAD]: {
|
|
19
|
+
id: MarketType.FIRST_THREE_INNINGS_SPREAD,
|
|
20
|
+
key: 'firstThreeInningsSpread',
|
|
21
|
+
name: 'Handicap 1st 3 innings',
|
|
22
|
+
resultType: ResultType.SPREAD,
|
|
23
|
+
tooltipKey: 'handicap',
|
|
24
|
+
},
|
|
25
|
+
[MarketType.FIRST_THREE_INNINGS_TOTAL_HOME_TEAM]: {
|
|
26
|
+
id: MarketType.FIRST_THREE_INNINGS_TOTAL_HOME_TEAM,
|
|
27
|
+
key: 'firstThreeInningsTotalHomeTeam',
|
|
28
|
+
name: 'Total 1st 3 innings',
|
|
29
|
+
resultType: ResultType.OVER_UNDER,
|
|
30
|
+
},
|
|
31
|
+
[MarketType.FIRST_THREE_INNINGS_TOTAL_AWAY_TEAM]: {
|
|
32
|
+
id: MarketType.FIRST_THREE_INNINGS_WINNER,
|
|
33
|
+
key: 'firstThreeInningsTotalAwayTeam',
|
|
34
|
+
name: 'Total 1st 3 innings',
|
|
35
|
+
resultType: ResultType.OVER_UNDER,
|
|
36
|
+
},
|
|
37
|
+
// First 7 innings
|
|
38
|
+
[MarketType.FIRST_SEVEN_INNINGS_WINNER]: {
|
|
39
|
+
id: MarketType.FIRST_SEVEN_INNINGS_WINNER,
|
|
40
|
+
key: 'firstSevenInningsWinner',
|
|
41
|
+
name: 'Winner 1st 7 innings',
|
|
42
|
+
resultType: ResultType.EXACT_POSITION,
|
|
43
|
+
},
|
|
44
|
+
[MarketType.FIRST_SEVEN_INNINGS_TOTAL]: {
|
|
45
|
+
id: MarketType.FIRST_SEVEN_INNINGS_TOTAL,
|
|
46
|
+
key: 'firstSevenInningsTotal',
|
|
47
|
+
name: 'Total 1st 7 innings',
|
|
48
|
+
resultType: ResultType.OVER_UNDER,
|
|
49
|
+
},
|
|
50
|
+
[MarketType.FIRST_SEVEN_INNINGS_SPREAD]: {
|
|
51
|
+
id: MarketType.FIRST_SEVEN_INNINGS_SPREAD,
|
|
52
|
+
key: 'firstSevenInningsSpread',
|
|
53
|
+
name: 'Handicap 1st 7 innings',
|
|
54
|
+
resultType: ResultType.SPREAD,
|
|
55
|
+
tooltipKey: 'handicap',
|
|
56
|
+
},
|
|
57
|
+
[MarketType.FIRST_SEVEN_INNINGS_TOTAL_HOME_TEAM]: {
|
|
58
|
+
id: MarketType.FIRST_SEVEN_INNINGS_TOTAL_HOME_TEAM,
|
|
59
|
+
key: 'firstSevenInningsTotalHomeTeam',
|
|
60
|
+
name: 'Total 1st 7 innings',
|
|
61
|
+
resultType: ResultType.OVER_UNDER,
|
|
62
|
+
},
|
|
63
|
+
[MarketType.FIRST_SEVEN_INNINGS_TOTAL_AWAY_TEAM]: {
|
|
64
|
+
id: MarketType.FIRST_SEVEN_INNINGS_WINNER,
|
|
65
|
+
key: 'firstSevenInningsTotalAwayTeam',
|
|
66
|
+
name: 'Total 1st 7 innings',
|
|
67
|
+
resultType: ResultType.OVER_UNDER,
|
|
68
|
+
},
|
|
69
|
+
// Correct score
|
|
70
|
+
[MarketType.FIRST_THREE_INNINGS_CORRECT_SCORE]: {
|
|
71
|
+
id: MarketType.FIRST_THREE_INNINGS_CORRECT_SCORE,
|
|
72
|
+
key: 'firstThreeInningsCorrectScore',
|
|
73
|
+
name: 'Correct Score 1st 3 innings',
|
|
74
|
+
resultType: ResultType.EXACT_POSITION,
|
|
75
|
+
},
|
|
76
|
+
[MarketType.FIRST_FIVE_INNINGS_CORRECT_SCORE]: {
|
|
77
|
+
id: MarketType.FIRST_FIVE_INNINGS_CORRECT_SCORE,
|
|
78
|
+
key: 'firstFiveInningsCorrectScore',
|
|
79
|
+
name: 'Correct Score 1st 5 innings',
|
|
80
|
+
resultType: ResultType.EXACT_POSITION,
|
|
81
|
+
},
|
|
82
|
+
[MarketType.FIRST_SEVEN_INNINGS_CORRECT_SCORE]: {
|
|
83
|
+
id: MarketType.FIRST_SEVEN_INNINGS_CORRECT_SCORE,
|
|
84
|
+
key: 'firstSevenInningsCorrectScore',
|
|
85
|
+
name: 'Correct Score 1st 7 innings',
|
|
86
|
+
resultType: ResultType.EXACT_POSITION,
|
|
87
|
+
},
|
|
88
|
+
// No runs in the first inning
|
|
89
|
+
[MarketType.FIRST_INNING_NO_RUNS]: {
|
|
90
|
+
id: MarketType.FIRST_INNING_NO_RUNS,
|
|
91
|
+
key: 'firstInningNoRuns',
|
|
92
|
+
name: 'No runs in the first inning',
|
|
93
|
+
resultType: ResultType.EXACT_POSITION,
|
|
94
|
+
},
|
|
95
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { MarketType, ResultType } from '../../enums/marketTypes';
|
|
2
|
+
import { MarketTypeInfo } from '../../types/marketTypes';
|
|
3
|
+
|
|
4
|
+
export const BASKETBALL_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
|
|
5
|
+
// Total steals
|
|
6
|
+
[MarketType.TOTAL_STEALS]: {
|
|
7
|
+
id: MarketType.TOTAL_STEALS,
|
|
8
|
+
key: 'totalSteals',
|
|
9
|
+
name: 'Total steals',
|
|
10
|
+
resultType: ResultType.OVER_UNDER,
|
|
11
|
+
},
|
|
12
|
+
// Total blocks
|
|
13
|
+
[MarketType.TOTAL_BLOCKS]: {
|
|
14
|
+
id: MarketType.TOTAL_BLOCKS,
|
|
15
|
+
key: 'totalBlocks',
|
|
16
|
+
name: 'Total blocks',
|
|
17
|
+
resultType: ResultType.OVER_UNDER,
|
|
18
|
+
},
|
|
19
|
+
// Total assists
|
|
20
|
+
[MarketType.TOTAL_ASSISTS]: {
|
|
21
|
+
id: MarketType.TOTAL_ASSISTS,
|
|
22
|
+
key: 'totalAssists',
|
|
23
|
+
name: 'Total assists',
|
|
24
|
+
resultType: ResultType.OVER_UNDER,
|
|
25
|
+
},
|
|
26
|
+
// Total threes made
|
|
27
|
+
[MarketType.TOTAL_MADE_THREES]: {
|
|
28
|
+
id: MarketType.TOTAL_MADE_THREES,
|
|
29
|
+
key: 'totalMadeThrees',
|
|
30
|
+
name: 'Total threes made',
|
|
31
|
+
resultType: ResultType.OVER_UNDER,
|
|
32
|
+
},
|
|
33
|
+
// Total threes made per team
|
|
34
|
+
[MarketType.TOTAL_MADE_THREES_HOME_TEAM]: {
|
|
35
|
+
id: MarketType.TOTAL_MADE_THREES_HOME_TEAM,
|
|
36
|
+
key: 'totalMadeThreesHomeTeam',
|
|
37
|
+
name: 'Total threes made',
|
|
38
|
+
resultType: ResultType.OVER_UNDER,
|
|
39
|
+
},
|
|
40
|
+
[MarketType.TOTAL_MADE_THREES_AWAY_TEAM]: {
|
|
41
|
+
id: MarketType.TOTAL_MADE_THREES_AWAY_TEAM,
|
|
42
|
+
key: 'totalMadeThreesAwayTeam',
|
|
43
|
+
name: 'Total threes made',
|
|
44
|
+
resultType: ResultType.OVER_UNDER,
|
|
45
|
+
},
|
|
46
|
+
// Total fouls
|
|
47
|
+
[MarketType.TOTAL_FAULS]: {
|
|
48
|
+
id: MarketType.TOTAL_FAULS,
|
|
49
|
+
key: 'totalFauls',
|
|
50
|
+
name: 'Total fouls',
|
|
51
|
+
resultType: ResultType.OVER_UNDER,
|
|
52
|
+
},
|
|
53
|
+
// Total blocks per team
|
|
54
|
+
[MarketType.HOME_TEAM_TOTAL_BLOCKS]: {
|
|
55
|
+
id: MarketType.HOME_TEAM_TOTAL_BLOCKS,
|
|
56
|
+
key: 'homeTeamTotalBlocks',
|
|
57
|
+
name: 'Total blocks',
|
|
58
|
+
resultType: ResultType.OVER_UNDER,
|
|
59
|
+
},
|
|
60
|
+
[MarketType.AWAY_TEAM_TOTAL_BLOCKS]: {
|
|
61
|
+
id: MarketType.AWAY_TEAM_TOTAL_BLOCKS,
|
|
62
|
+
key: 'awayTeamTotalBlocks',
|
|
63
|
+
name: 'Total blocks',
|
|
64
|
+
resultType: ResultType.OVER_UNDER,
|
|
65
|
+
},
|
|
66
|
+
// Total steals per team
|
|
67
|
+
[MarketType.HOME_TEAM_TOTAL_STEALS]: {
|
|
68
|
+
id: MarketType.HOME_TEAM_TOTAL_STEALS,
|
|
69
|
+
key: 'homeTeamTotalSteals',
|
|
70
|
+
name: 'Total steals',
|
|
71
|
+
resultType: ResultType.OVER_UNDER,
|
|
72
|
+
},
|
|
73
|
+
[MarketType.AWAY_TEAM_TOTAL_STEALS]: {
|
|
74
|
+
id: MarketType.AWAY_TEAM_TOTAL_STEALS,
|
|
75
|
+
key: 'awayTeamTotalSteals',
|
|
76
|
+
name: 'Total steals',
|
|
77
|
+
resultType: ResultType.OVER_UNDER,
|
|
78
|
+
},
|
|
79
|
+
// Total assists per team
|
|
80
|
+
[MarketType.HOME_TEAM_TOTAL_ASSISTS]: {
|
|
81
|
+
id: MarketType.HOME_TEAM_TOTAL_ASSISTS,
|
|
82
|
+
key: 'homeTeamTotalAssists',
|
|
83
|
+
name: 'Total assists',
|
|
84
|
+
resultType: ResultType.OVER_UNDER,
|
|
85
|
+
},
|
|
86
|
+
[MarketType.AWAY_TEAM_TOTAL_ASSISTS]: {
|
|
87
|
+
id: MarketType.AWAY_TEAM_TOTAL_ASSISTS,
|
|
88
|
+
key: 'awayTeamTotalAssists',
|
|
89
|
+
name: 'Total assists',
|
|
90
|
+
resultType: ResultType.OVER_UNDER,
|
|
91
|
+
},
|
|
92
|
+
// Total fouls per team
|
|
93
|
+
[MarketType.HOME_TEAM_TOTAL_FAULS]: {
|
|
94
|
+
id: MarketType.HOME_TEAM_TOTAL_FAULS,
|
|
95
|
+
key: 'homeTeamTotalFauls',
|
|
96
|
+
name: 'Total fouls',
|
|
97
|
+
resultType: ResultType.OVER_UNDER,
|
|
98
|
+
},
|
|
99
|
+
[MarketType.AWAY_TEAM_TOTAL_FAULS]: {
|
|
100
|
+
id: MarketType.AWAY_TEAM_TOTAL_FAULS,
|
|
101
|
+
key: 'awayTeamTotalFauls',
|
|
102
|
+
name: 'Total fouls',
|
|
103
|
+
resultType: ResultType.OVER_UNDER,
|
|
104
|
+
},
|
|
105
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { MarketType, ResultType } from '../../enums/marketTypes';
|
|
2
|
+
import { MarketTypeInfo } from '../../types/marketTypes';
|
|
3
|
+
|
|
4
|
+
export const CORRECT_SCORE_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
|
|
5
|
+
// Correct score
|
|
6
|
+
[MarketType.CORRECT_SCORE]: {
|
|
7
|
+
id: MarketType.CORRECT_SCORE,
|
|
8
|
+
key: 'correctScore',
|
|
9
|
+
name: 'Correct score',
|
|
10
|
+
resultType: ResultType.EXACT_POSITION,
|
|
11
|
+
},
|
|
12
|
+
[MarketType.FIRST_PERIOD_CORRECT_SCORE]: {
|
|
13
|
+
id: MarketType.FIRST_PERIOD_CORRECT_SCORE,
|
|
14
|
+
key: 'firstPeriodCorrectScore',
|
|
15
|
+
name: 'Correct score 1st',
|
|
16
|
+
resultType: ResultType.EXACT_POSITION,
|
|
17
|
+
},
|
|
18
|
+
[MarketType.SECOND_PERIOD_CORRECT_SCORE]: {
|
|
19
|
+
id: MarketType.SECOND_PERIOD_CORRECT_SCORE,
|
|
20
|
+
key: 'secondPeriodCorrectScore',
|
|
21
|
+
name: 'Correct score 2nd',
|
|
22
|
+
resultType: ResultType.EXACT_POSITION,
|
|
23
|
+
},
|
|
24
|
+
[MarketType.THIRD_PERIOD_CORRECT_SCORE]: {
|
|
25
|
+
id: MarketType.THIRD_PERIOD_CORRECT_SCORE,
|
|
26
|
+
key: 'thirdPeriodCorrectScore',
|
|
27
|
+
name: 'Correct score 3rd',
|
|
28
|
+
resultType: ResultType.EXACT_POSITION,
|
|
29
|
+
},
|
|
30
|
+
[MarketType.FOURTH_PERIOD_CORRECT_SCORE]: {
|
|
31
|
+
id: MarketType.FOURTH_PERIOD_CORRECT_SCORE,
|
|
32
|
+
key: 'fourthPeriodCorrectScore',
|
|
33
|
+
name: 'Correct score 4th',
|
|
34
|
+
resultType: ResultType.EXACT_POSITION,
|
|
35
|
+
},
|
|
36
|
+
[MarketType.FIFTH_PERIOD_CORRECT_SCORE]: {
|
|
37
|
+
id: MarketType.FIFTH_PERIOD_CORRECT_SCORE,
|
|
38
|
+
key: 'fifthPeriodCorrectScore',
|
|
39
|
+
name: 'Correct score 5th',
|
|
40
|
+
resultType: ResultType.EXACT_POSITION,
|
|
41
|
+
},
|
|
42
|
+
[MarketType.SIXTH_PERIOD_CORRECT_SCORE]: {
|
|
43
|
+
id: MarketType.SIXTH_PERIOD_CORRECT_SCORE,
|
|
44
|
+
key: 'sixthPeriodCorrectScore',
|
|
45
|
+
name: 'Correct score 6th',
|
|
46
|
+
resultType: ResultType.EXACT_POSITION,
|
|
47
|
+
},
|
|
48
|
+
[MarketType.SEVENTH_PERIOD_CORRECT_SCORE]: {
|
|
49
|
+
id: MarketType.SEVENTH_PERIOD_CORRECT_SCORE,
|
|
50
|
+
key: 'seventhPeriodCorrectScore',
|
|
51
|
+
name: 'Correct score 7th',
|
|
52
|
+
resultType: ResultType.EXACT_POSITION,
|
|
53
|
+
},
|
|
54
|
+
[MarketType.EIGHTH_PERIOD_CORRECT_SCORE]: {
|
|
55
|
+
id: MarketType.EIGHTH_PERIOD_CORRECT_SCORE,
|
|
56
|
+
key: 'eighthPeriodCorrectScore',
|
|
57
|
+
name: 'Correct score 8th',
|
|
58
|
+
resultType: ResultType.EXACT_POSITION,
|
|
59
|
+
},
|
|
60
|
+
[MarketType.NINTH_PERIOD_CORRECT_SCORE]: {
|
|
61
|
+
id: MarketType.NINTH_PERIOD_CORRECT_SCORE,
|
|
62
|
+
key: 'ninthPeriodCorrectScore',
|
|
63
|
+
name: 'Correct score 9th',
|
|
64
|
+
resultType: ResultType.EXACT_POSITION,
|
|
65
|
+
},
|
|
66
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { MarketType, ResultType } from '../../enums/marketTypes';
|
|
2
|
+
import { MarketTypeInfo } from '../../types/marketTypes';
|
|
3
|
+
|
|
4
|
+
export const CRICKET_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
|
|
5
|
+
// Milestones
|
|
6
|
+
[MarketType.WILL_THERE_BE_CENTURY]: {
|
|
7
|
+
id: MarketType.WILL_THERE_BE_CENTURY,
|
|
8
|
+
key: 'willThereBeCentury',
|
|
9
|
+
name: 'Will there be a century?',
|
|
10
|
+
resultType: ResultType.EXACT_POSITION,
|
|
11
|
+
},
|
|
12
|
+
[MarketType.WILL_THERE_BE_FIFTY]: {
|
|
13
|
+
id: MarketType.WILL_THERE_BE_FIFTY,
|
|
14
|
+
key: 'willThereBeFifty',
|
|
15
|
+
name: 'Will there be a fifty?',
|
|
16
|
+
resultType: ResultType.EXACT_POSITION,
|
|
17
|
+
},
|
|
18
|
+
// Total sixes / fours / run outs
|
|
19
|
+
[MarketType.TOTAL_SIXES]: {
|
|
20
|
+
id: MarketType.TOTAL_SIXES,
|
|
21
|
+
key: 'totalSixes',
|
|
22
|
+
name: 'Total sixes',
|
|
23
|
+
resultType: ResultType.OVER_UNDER,
|
|
24
|
+
},
|
|
25
|
+
[MarketType.TOTAL_FOURS]: {
|
|
26
|
+
id: MarketType.TOTAL_FOURS,
|
|
27
|
+
key: 'totalFours',
|
|
28
|
+
name: 'Total fours',
|
|
29
|
+
resultType: ResultType.OVER_UNDER,
|
|
30
|
+
},
|
|
31
|
+
[MarketType.TOTAL_RUNS_OUTS]: {
|
|
32
|
+
id: MarketType.TOTAL_RUNS_OUTS,
|
|
33
|
+
key: 'totalRunOuts',
|
|
34
|
+
name: 'Total run outs',
|
|
35
|
+
resultType: ResultType.OVER_UNDER,
|
|
36
|
+
},
|
|
37
|
+
// Totals per team
|
|
38
|
+
[MarketType.TOTAL_SIXES_HOME_TEAM]: {
|
|
39
|
+
id: MarketType.TOTAL_SIXES_HOME_TEAM,
|
|
40
|
+
key: 'totalSixesHomeTeam',
|
|
41
|
+
name: 'Total sixes',
|
|
42
|
+
resultType: ResultType.OVER_UNDER,
|
|
43
|
+
},
|
|
44
|
+
[MarketType.TOTAL_SIXES_AWAY_TEAM]: {
|
|
45
|
+
id: MarketType.TOTAL_SIXES_AWAY_TEAM,
|
|
46
|
+
key: 'totalSixesAwayTeam',
|
|
47
|
+
name: 'Total sixes',
|
|
48
|
+
resultType: ResultType.OVER_UNDER,
|
|
49
|
+
},
|
|
50
|
+
[MarketType.TOTAL_FOURS_HOME_TEAM]: {
|
|
51
|
+
id: MarketType.TOTAL_FOURS_HOME_TEAM,
|
|
52
|
+
key: 'totalFoursHomeTeam',
|
|
53
|
+
name: 'Total fours',
|
|
54
|
+
resultType: ResultType.OVER_UNDER,
|
|
55
|
+
},
|
|
56
|
+
[MarketType.TOTAL_FOURS_AWAY_TEAM]: {
|
|
57
|
+
id: MarketType.TOTAL_FOURS_AWAY_TEAM,
|
|
58
|
+
key: 'totalFoursAwayTeam',
|
|
59
|
+
name: 'Total fours',
|
|
60
|
+
resultType: ResultType.OVER_UNDER,
|
|
61
|
+
},
|
|
62
|
+
[MarketType.TOTAL_RUNS_OUTS_HOME_TEAM]: {
|
|
63
|
+
id: MarketType.TOTAL_RUNS_OUTS_AWAY_TEAM,
|
|
64
|
+
key: 'totalRunOutsHomeTeam',
|
|
65
|
+
name: 'Total run outs',
|
|
66
|
+
resultType: ResultType.OVER_UNDER,
|
|
67
|
+
},
|
|
68
|
+
[MarketType.TOTAL_RUNS_OUTS_AWAY_TEAM]: {
|
|
69
|
+
id: MarketType.TOTAL_RUNS_OUTS_AWAY_TEAM,
|
|
70
|
+
key: 'totalRunOutsAwayTeam',
|
|
71
|
+
name: 'Total run outs',
|
|
72
|
+
resultType: ResultType.OVER_UNDER,
|
|
73
|
+
},
|
|
74
|
+
// Most
|
|
75
|
+
[MarketType.MOST_FOURS]: {
|
|
76
|
+
id: MarketType.MOST_FOURS,
|
|
77
|
+
key: 'mostFours',
|
|
78
|
+
name: 'Most fours',
|
|
79
|
+
resultType: ResultType.EXACT_POSITION,
|
|
80
|
+
},
|
|
81
|
+
[MarketType.MOST_SIXES]: {
|
|
82
|
+
id: MarketType.MOST_SIXES,
|
|
83
|
+
key: 'mostSixes',
|
|
84
|
+
name: 'Most sixes',
|
|
85
|
+
resultType: ResultType.EXACT_POSITION,
|
|
86
|
+
},
|
|
87
|
+
[MarketType.MOST_RUNS_OUTS]: {
|
|
88
|
+
id: MarketType.MOST_RUNS_OUTS,
|
|
89
|
+
key: 'mostRunOuts',
|
|
90
|
+
name: 'Most run outs',
|
|
91
|
+
resultType: ResultType.EXACT_POSITION,
|
|
92
|
+
},
|
|
93
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MarketType, ResultType } from '../../enums/marketTypes';
|
|
2
|
+
import { MarketTypeInfo } from '../../types/marketTypes';
|
|
3
|
+
|
|
4
|
+
export const DARTS_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
|
|
5
|
+
// Darts market types
|
|
6
|
+
[MarketType.TOTAL_180]: {
|
|
7
|
+
id: MarketType.TOTAL_180,
|
|
8
|
+
key: 'total180',
|
|
9
|
+
name: 'Total 180s',
|
|
10
|
+
resultType: ResultType.OVER_UNDER,
|
|
11
|
+
},
|
|
12
|
+
[MarketType.TOTAL_100_PLUS_CHECKOUTS]: {
|
|
13
|
+
id: MarketType.TOTAL_100_PLUS_CHECKOUTS,
|
|
14
|
+
key: 'total100plusCheckouts',
|
|
15
|
+
name: 'Total 100+ checkouts',
|
|
16
|
+
resultType: ResultType.OVER_UNDER,
|
|
17
|
+
},
|
|
18
|
+
[MarketType.MOST_180]: {
|
|
19
|
+
id: MarketType.MOST_180,
|
|
20
|
+
key: 'most180',
|
|
21
|
+
name: 'Most 180s',
|
|
22
|
+
resultType: ResultType.EXACT_POSITION,
|
|
23
|
+
},
|
|
24
|
+
[MarketType.HIGHEST_MATCH_CHECKOUT]: {
|
|
25
|
+
id: MarketType.HIGHEST_MATCH_CHECKOUT,
|
|
26
|
+
key: 'playerWithHighestCheckouts',
|
|
27
|
+
name: 'Player with highest checkouts',
|
|
28
|
+
resultType: ResultType.EXACT_POSITION,
|
|
29
|
+
},
|
|
30
|
+
[MarketType.HIGHEST_CHECKOUT_POINTS]: {
|
|
31
|
+
id: MarketType.HIGHEST_CHECKOUT_POINTS,
|
|
32
|
+
key: 'highestCheckouts',
|
|
33
|
+
name: 'Highest checkouts',
|
|
34
|
+
resultType: ResultType.OVER_UNDER,
|
|
35
|
+
},
|
|
36
|
+
};
|