overtime-utils 0.1.98 → 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.
@@ -0,0 +1,198 @@
1
+ import { MarketType, ResultType } from '../../enums/marketTypes';
2
+ import { MarketTypeInfo } from '../../types/marketTypes';
3
+
4
+ export const FOOTBALL_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
5
+ // Will there be a safety
6
+ [MarketType.WILL_THERE_BE_SAFETY]: {
7
+ id: MarketType.WILL_THERE_BE_SAFETY,
8
+ key: 'willThereBeASafety',
9
+ name: 'Safety',
10
+ description: 'Will there be a safety',
11
+ resultType: ResultType.EXACT_POSITION,
12
+ },
13
+
14
+ // Football totals
15
+ [MarketType.TOTAL_FIELD_GOALS]: {
16
+ id: MarketType.TOTAL_FIELD_GOALS,
17
+ key: 'totalFieldGoals',
18
+ name: 'Total field goals',
19
+ resultType: ResultType.OVER_UNDER,
20
+ },
21
+ [MarketType.TOTAL_PUNTS]: {
22
+ id: MarketType.TOTAL_PUNTS,
23
+ key: 'totalPunts',
24
+ name: 'Total punts',
25
+ resultType: ResultType.OVER_UNDER,
26
+ },
27
+ [MarketType.TOTAL_TOUCHDOWNS]: {
28
+ id: MarketType.TOTAL_TOUCHDOWNS,
29
+ key: 'totalTouchdowns',
30
+ name: 'Total touchdowns',
31
+ resultType: ResultType.OVER_UNDER,
32
+ },
33
+ [MarketType.TOTAL_TOUCHDOWNS_HOME_TEAM]: {
34
+ id: MarketType.TOTAL_TOUCHDOWNS_HOME_TEAM,
35
+ key: 'totalTouchdownsHomeTeam',
36
+ name: 'Total touchdowns',
37
+ resultType: ResultType.OVER_UNDER,
38
+ },
39
+ [MarketType.TOTAL_TOUCHDOWNS_AWAY_TEAM]: {
40
+ id: MarketType.TOTAL_TOUCHDOWNS_AWAY_TEAM,
41
+ key: 'totalTouchdownsAwayTeam',
42
+ name: 'Total touchdowns',
43
+ resultType: ResultType.OVER_UNDER,
44
+ },
45
+
46
+ // Period-specific football totals
47
+ // First period
48
+ [MarketType.FIRST_PERIOD_TOTAL_FIELD_GOALS]: {
49
+ id: MarketType.FIRST_PERIOD_TOTAL_FIELD_GOALS,
50
+ key: 'firstPeriodTotalFieldGoals',
51
+ name: 'Total field goals 1st',
52
+ resultType: ResultType.OVER_UNDER,
53
+ },
54
+ [MarketType.FIRST_PERIOD_TOTAL_TOUCHDOWNS]: {
55
+ id: MarketType.FIRST_PERIOD_TOTAL_TOUCHDOWNS,
56
+ key: 'firstPeriodTotalTouchdowns',
57
+ name: 'Total touchdowns 1st',
58
+ resultType: ResultType.OVER_UNDER,
59
+ },
60
+ [MarketType.FIRST_PERIOD_TOTAL_TOUCHDOWNS_HOME_TEAM]: {
61
+ id: MarketType.FIRST_PERIOD_TOTAL_TOUCHDOWNS_HOME_TEAM,
62
+ key: 'firstPeriodTotalTouchdownsHomeTeam',
63
+ name: 'Total touchdowns 1st',
64
+ resultType: ResultType.OVER_UNDER,
65
+ },
66
+ [MarketType.FIRST_PERIOD_TOTAL_TOUCHDOWNS_AWAY_TEAM]: {
67
+ id: MarketType.FIRST_PERIOD_TOTAL_TOUCHDOWNS_AWAY_TEAM,
68
+ key: 'firstPeriodTotalTouchdownsAwayTeam',
69
+ name: 'Total touchdowns 1st',
70
+ resultType: ResultType.OVER_UNDER,
71
+ },
72
+ [MarketType.FIRST_PERIOD_TOTAL2_FIELD_GOALS]: {
73
+ id: MarketType.FIRST_PERIOD_TOTAL2_FIELD_GOALS,
74
+ key: 'firstPeriodTotal2FieldGoals',
75
+ name: 'Total field goals 1st',
76
+ resultType: ResultType.OVER_UNDER,
77
+ },
78
+ [MarketType.FIRST_PERIOD_TOTAL2_TOUCHDOWNS]: {
79
+ id: MarketType.FIRST_PERIOD_TOTAL2_TOUCHDOWNS,
80
+ key: 'firstPeriodTotal2Touchdowns',
81
+ name: 'Total touchdowns 1st',
82
+ resultType: ResultType.OVER_UNDER,
83
+ },
84
+ [MarketType.FIRST_PERIOD_TOTAL2_TOUCHDOWNS_HOME_TEAM]: {
85
+ id: MarketType.FIRST_PERIOD_TOTAL2_TOUCHDOWNS_HOME_TEAM,
86
+ key: 'firstPeriodTotal2TouchdownsHomeTeam',
87
+ name: 'Total touchdowns 1st',
88
+ resultType: ResultType.OVER_UNDER,
89
+ },
90
+ [MarketType.FIRST_PERIOD_TOTAL2_TOUCHDOWNS_AWAY_TEAM]: {
91
+ id: MarketType.FIRST_PERIOD_TOTAL2_TOUCHDOWNS_AWAY_TEAM,
92
+ key: 'firstPeriodTotal2TouchdownsAwayTeam',
93
+ name: 'Total touchdowns 1st',
94
+ resultType: ResultType.OVER_UNDER,
95
+ },
96
+
97
+ // Second period
98
+ [MarketType.SECOND_PERIOD_TOTAL_FIELD_GOALS]: {
99
+ id: MarketType.SECOND_PERIOD_TOTAL_FIELD_GOALS,
100
+ key: 'secondPeriodTotalFieldGoals',
101
+ name: 'Total field goals 2nd',
102
+ resultType: ResultType.OVER_UNDER,
103
+ },
104
+ [MarketType.SECOND_PERIOD_TOTAL_TOUCHDOWNS]: {
105
+ id: MarketType.SECOND_PERIOD_TOTAL_TOUCHDOWNS,
106
+ key: 'secondPeriodTotalTouchdowns',
107
+ name: 'Total touchdowns 2nd',
108
+ resultType: ResultType.OVER_UNDER,
109
+ },
110
+ [MarketType.SECOND_PERIOD_TOTAL_TOUCHDOWNS_HOME_TEAM]: {
111
+ id: MarketType.SECOND_PERIOD_TOTAL_TOUCHDOWNS_HOME_TEAM,
112
+ key: 'secondPeriodTotalTouchdownsHomeTeam',
113
+ name: 'Total touchdowns 2nd',
114
+ resultType: ResultType.OVER_UNDER,
115
+ },
116
+ [MarketType.SECOND_PERIOD_TOTAL_TOUCHDOWNS_AWAY_TEAM]: {
117
+ id: MarketType.SECOND_PERIOD_TOTAL_TOUCHDOWNS_AWAY_TEAM,
118
+ key: 'secondPeriodTotalTouchdownsAwayTeam',
119
+ name: 'Total touchdowns 2nd',
120
+ resultType: ResultType.OVER_UNDER,
121
+ },
122
+ [MarketType.SECOND_PERIOD_TOTAL2_FIELD_GOALS]: {
123
+ id: MarketType.SECOND_PERIOD_TOTAL2_FIELD_GOALS,
124
+ key: 'secondPeriodTotal2FieldGoals',
125
+ name: 'Total field goals 2nd',
126
+ resultType: ResultType.OVER_UNDER,
127
+ },
128
+ [MarketType.SECOND_PERIOD_TOTAL2_TOUCHDOWNS]: {
129
+ id: MarketType.SECOND_PERIOD_TOTAL2_TOUCHDOWNS,
130
+ key: 'secondPeriodTotal2Touchdowns',
131
+ name: 'Total touchdowns 2nd',
132
+ resultType: ResultType.OVER_UNDER,
133
+ },
134
+ [MarketType.SECOND_PERIOD_TOTAL2_TOUCHDOWNS_HOME_TEAM]: {
135
+ id: MarketType.SECOND_PERIOD_TOTAL2_TOUCHDOWNS_HOME_TEAM,
136
+ key: 'secondPeriodTotal2TouchdownsHomeTeam',
137
+ name: 'Total touchdowns 2nd',
138
+ resultType: ResultType.OVER_UNDER,
139
+ },
140
+ [MarketType.SECOND_PERIOD_TOTAL2_TOUCHDOWNS_AWAY_TEAM]: {
141
+ id: MarketType.SECOND_PERIOD_TOTAL2_TOUCHDOWNS_AWAY_TEAM,
142
+ key: 'secondPeriodTotal2TouchdownsAwayTeam',
143
+ name: 'Total touchdowns 2nd',
144
+ resultType: ResultType.OVER_UNDER,
145
+ },
146
+
147
+ // Third period
148
+ [MarketType.THIRD_PERIOD_TOTAL_FIELD_GOALS]: {
149
+ id: MarketType.THIRD_PERIOD_TOTAL_FIELD_GOALS,
150
+ key: 'thirdPeriodTotalFieldGoals',
151
+ name: 'Total field goals 3rd',
152
+ resultType: ResultType.OVER_UNDER,
153
+ },
154
+ [MarketType.THIRD_PERIOD_TOTAL_TOUCHDOWNS]: {
155
+ id: MarketType.THIRD_PERIOD_TOTAL_TOUCHDOWNS,
156
+ key: 'thirdPeriodTotalTouchdowns',
157
+ name: 'Total touchdowns 3rd',
158
+ resultType: ResultType.OVER_UNDER,
159
+ },
160
+ [MarketType.THIRD_PERIOD_TOTAL_TOUCHDOWNS_HOME_TEAM]: {
161
+ id: MarketType.THIRD_PERIOD_TOTAL_TOUCHDOWNS_HOME_TEAM,
162
+ key: 'thirdPeriodTotalTouchdownsHomeTeam',
163
+ name: 'Total touchdowns 3rd',
164
+ resultType: ResultType.OVER_UNDER,
165
+ },
166
+ [MarketType.THIRD_PERIOD_TOTAL_TOUCHDOWNS_AWAY_TEAM]: {
167
+ id: MarketType.THIRD_PERIOD_TOTAL_TOUCHDOWNS_AWAY_TEAM,
168
+ key: 'thirdPeriodTotalTouchdownsAwayTeam',
169
+ name: 'Total touchdowns 3rd',
170
+ resultType: ResultType.OVER_UNDER,
171
+ },
172
+
173
+ // Fourth period
174
+ [MarketType.FOURTH_PERIOD_TOTAL_FIELD_GOALS]: {
175
+ id: MarketType.FOURTH_PERIOD_TOTAL_FIELD_GOALS,
176
+ key: 'fourthPeriodTotalFieldGoals',
177
+ name: 'Total field goals 4th',
178
+ resultType: ResultType.OVER_UNDER,
179
+ },
180
+ [MarketType.FOURTH_PERIOD_TOTAL_TOUCHDOWNS]: {
181
+ id: MarketType.FOURTH_PERIOD_TOTAL_TOUCHDOWNS,
182
+ key: 'fourthPeriodTotalTouchdowns',
183
+ name: 'Total touchdowns 4th',
184
+ resultType: ResultType.OVER_UNDER,
185
+ },
186
+ [MarketType.FOURTH_PERIOD_TOTAL_TOUCHDOWNS_HOME_TEAM]: {
187
+ id: MarketType.FOURTH_PERIOD_TOTAL_TOUCHDOWNS_HOME_TEAM,
188
+ key: 'fourthPeriodTotalTouchdownsHomeTeam',
189
+ name: 'Total touchdowns 4th',
190
+ resultType: ResultType.OVER_UNDER,
191
+ },
192
+ [MarketType.FOURTH_PERIOD_TOTAL_TOUCHDOWNS_AWAY_TEAM]: {
193
+ id: MarketType.FOURTH_PERIOD_TOTAL_TOUCHDOWNS_AWAY_TEAM,
194
+ key: 'fourthPeriodTotalTouchdownsAwayTeam',
195
+ name: 'Total touchdowns 4th',
196
+ resultType: ResultType.OVER_UNDER,
197
+ },
198
+ };
@@ -0,0 +1,106 @@
1
+ import { MarketType, ResultType } from '../../enums/marketTypes';
2
+ import { MarketTypeInfo } from '../../types/marketTypes';
3
+
4
+ export const FUTURES_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
5
+ // Winner / champion
6
+ [MarketType.LEAGUE_WINNER]: {
7
+ id: MarketType.LEAGUE_WINNER,
8
+ key: 'leagueWinner',
9
+ name: 'Champion',
10
+ resultType: ResultType.EXACT_POSITION,
11
+ },
12
+ [MarketType.MVP]: {
13
+ id: MarketType.MVP,
14
+ key: 'mvp',
15
+ name: 'MVP',
16
+ resultType: ResultType.EXACT_POSITION,
17
+ },
18
+ [MarketType.CUP_WINNER]: {
19
+ id: MarketType.CUP_WINNER,
20
+ key: 'cupWinner',
21
+ name: 'Cup winner',
22
+ resultType: ResultType.EXACT_POSITION,
23
+ },
24
+ [MarketType.TO_MAKE_FINAL_FOUR]: {
25
+ id: MarketType.TO_MAKE_FINAL_FOUR,
26
+ key: 'toMakeFinalFour',
27
+ name: 'To make final four',
28
+ resultType: ResultType.EXACT_POSITION,
29
+ },
30
+ // Race
31
+ [MarketType.RACE_WINNER]: {
32
+ id: MarketType.RACE_WINNER,
33
+ key: 'raceWinner',
34
+ name: 'Race winner',
35
+ resultType: ResultType.EXACT_POSITION,
36
+ },
37
+ [MarketType.RACE_PODIUM]: {
38
+ id: MarketType.RACE_PODIUM,
39
+ key: 'racePodium',
40
+ name: 'Race podium',
41
+ resultType: ResultType.EXACT_POSITION,
42
+ },
43
+ // Round leaders
44
+ [MarketType.FIRST_ROUND_LEADER]: {
45
+ id: MarketType.FIRST_ROUND_LEADER,
46
+ key: 'firstRoundLeader',
47
+ name: 'First round leader',
48
+ resultType: ResultType.EXACT_POSITION,
49
+ },
50
+ [MarketType.SECOND_ROUND_LEADER]: {
51
+ id: MarketType.SECOND_ROUND_LEADER,
52
+ key: 'secondRoundLeader',
53
+ name: 'Second round leader',
54
+ resultType: ResultType.EXACT_POSITION,
55
+ },
56
+ [MarketType.THIRD_ROUND_LEADER]: {
57
+ id: MarketType.THIRD_ROUND_LEADER,
58
+ key: 'thirdRoundLeader',
59
+ name: 'Third round leader',
60
+ resultType: ResultType.EXACT_POSITION,
61
+ },
62
+ [MarketType.FOURTH_ROUND_LEADER]: {
63
+ id: MarketType.FOURTH_ROUND_LEADER,
64
+ key: 'fourthRoundLeader',
65
+ name: 'Fourth round leader',
66
+ resultType: ResultType.EXACT_POSITION,
67
+ },
68
+ // Series
69
+ [MarketType.SERIES_WINNER]: {
70
+ id: MarketType.SERIES_WINNER,
71
+ key: 'seriesWinner',
72
+ name: 'Series winner',
73
+ resultType: ResultType.EXACT_POSITION,
74
+ },
75
+ [MarketType.SERIES_RESULT]: {
76
+ id: MarketType.SERIES_RESULT,
77
+ key: 'seriesResult',
78
+ name: 'Series result',
79
+ resultType: ResultType.EXACT_POSITION,
80
+ },
81
+ // Group / qualification
82
+ [MarketType.TOP_GOALSCORER]: {
83
+ id: MarketType.TOP_GOALSCORER,
84
+ key: 'topGoalscorer',
85
+ name: 'Top goalscorer',
86
+ resultType: ResultType.EXACT_POSITION,
87
+ },
88
+ [MarketType.GROUP_WINNER]: {
89
+ id: MarketType.GROUP_WINNER,
90
+ key: 'groupWinner',
91
+ name: 'Group winner',
92
+ resultType: ResultType.EXACT_POSITION,
93
+ },
94
+ [MarketType.GROUP_BOTTOM_FINISH]: {
95
+ id: MarketType.GROUP_BOTTOM_FINISH,
96
+ key: 'groupBottomFinish',
97
+ name: 'Group to finish bottom',
98
+ resultType: ResultType.EXACT_POSITION,
99
+ },
100
+ [MarketType.TO_QUALIFY_FOR_NEXT_ROUND]: {
101
+ id: MarketType.TO_QUALIFY_FOR_NEXT_ROUND,
102
+ key: 'toQualifyNextRound',
103
+ name: 'To qualify for next round',
104
+ resultType: ResultType.EXACT_POSITION,
105
+ },
106
+ };
@@ -0,0 +1,149 @@
1
+ import { MarketType, ResultType } from '../../enums/marketTypes';
2
+ import { MarketTypeInfo } from '../../types/marketTypes';
3
+
4
+ export const HANDICAP_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
5
+ // Spread (handicap)
6
+ [MarketType.SPREAD]: {
7
+ id: MarketType.SPREAD,
8
+ key: 'spread',
9
+ name: 'Handicap',
10
+ resultType: ResultType.SPREAD,
11
+ tooltipKey: 'handicap',
12
+ },
13
+ // Spread (handicap) - sets for tennis
14
+ [MarketType.SPREAD2]: {
15
+ id: MarketType.SPREAD2,
16
+ key: 'spread2',
17
+ name: 'Handicap',
18
+ resultType: ResultType.SPREAD,
19
+ tooltipKey: 'handicap',
20
+ },
21
+ // Spread period - half for soccer, quarter for basketball
22
+ [MarketType.FIRST_PERIOD_SPREAD]: {
23
+ id: MarketType.FIRST_PERIOD_SPREAD,
24
+ key: 'firstPeriodSpread',
25
+ name: 'Handicap 1st',
26
+ resultType: ResultType.SPREAD,
27
+ tooltipKey: 'handicap',
28
+ },
29
+ [MarketType.SECOND_PERIOD_SPREAD]: {
30
+ id: MarketType.SECOND_PERIOD_SPREAD,
31
+ key: 'secondPeriodSpread',
32
+ name: 'Handicap 2nd',
33
+ resultType: ResultType.SPREAD,
34
+ tooltipKey: 'handicap',
35
+ },
36
+ [MarketType.THIRD_PERIOD_SPREAD]: {
37
+ id: MarketType.THIRD_PERIOD_SPREAD,
38
+ key: 'thirdPeriodSpread',
39
+ name: 'Handicap 3rd',
40
+ resultType: ResultType.SPREAD,
41
+ tooltipKey: 'handicap',
42
+ },
43
+ [MarketType.FOURTH_PERIOD_SPREAD]: {
44
+ id: MarketType.FOURTH_PERIOD_SPREAD,
45
+ key: 'fourthPeriodSpread',
46
+ name: 'Handicap 4th',
47
+ resultType: ResultType.SPREAD,
48
+ tooltipKey: 'handicap',
49
+ },
50
+ [MarketType.FIFTH_PERIOD_SPREAD]: {
51
+ id: MarketType.FIFTH_PERIOD_SPREAD,
52
+ key: 'fifthPeriodSpread',
53
+ name: 'Handicap 5th',
54
+ resultType: ResultType.SPREAD,
55
+ tooltipKey: 'handicap',
56
+ },
57
+ [MarketType.SIXTH_PERIOD_SPREAD]: {
58
+ id: MarketType.SIXTH_PERIOD_SPREAD,
59
+ key: 'sixthPeriodSpread',
60
+ name: 'Handicap 6th',
61
+ resultType: ResultType.SPREAD,
62
+ tooltipKey: 'handicap',
63
+ },
64
+ [MarketType.SEVENTH_PERIOD_SPREAD]: {
65
+ id: MarketType.SEVENTH_PERIOD_SPREAD,
66
+ key: 'seventhPeriodSpread',
67
+ name: 'Handicap 7th',
68
+ resultType: ResultType.SPREAD,
69
+ tooltipKey: 'handicap',
70
+ },
71
+ [MarketType.EIGHTH_PERIOD_SPREAD]: {
72
+ id: MarketType.EIGHTH_PERIOD_SPREAD,
73
+ key: 'eightPeriodSpread',
74
+ name: 'Handicap 8th',
75
+ resultType: ResultType.SPREAD,
76
+ tooltipKey: 'handicap',
77
+ },
78
+ [MarketType.NINTH_PERIOD_SPREAD]: {
79
+ id: MarketType.NINTH_PERIOD_SPREAD,
80
+ key: 'ninthPeriodSpread',
81
+ name: 'Handicap 9th',
82
+ resultType: ResultType.SPREAD,
83
+ tooltipKey: 'handicap',
84
+ },
85
+ // Spread period - half for basketball
86
+ [MarketType.FIRST_PERIOD_SPREAD2]: {
87
+ id: MarketType.FIRST_PERIOD_SPREAD2,
88
+ key: 'firstPeriodSpread2',
89
+ name: 'Handicap 1st',
90
+ resultType: ResultType.SPREAD,
91
+ tooltipKey: 'handicap',
92
+ },
93
+ [MarketType.SECOND_PERIOD_SPREAD2]: {
94
+ id: MarketType.SECOND_PERIOD_SPREAD2,
95
+ key: 'secondPeriodSpread2',
96
+ name: 'Handicap 2nd',
97
+ resultType: ResultType.SPREAD,
98
+ tooltipKey: 'handicap',
99
+ },
100
+ [MarketType.THIRD_PERIOD_SPREAD2]: {
101
+ id: MarketType.THIRD_PERIOD_SPREAD2,
102
+ key: 'thirdPeriodSpread2',
103
+ name: 'Handicap 3rd',
104
+ resultType: ResultType.SPREAD,
105
+ tooltipKey: 'handicap',
106
+ },
107
+ [MarketType.FOURTH_PERIOD_SPREAD2]: {
108
+ id: MarketType.FOURTH_PERIOD_SPREAD2,
109
+ key: 'fourthPeriodSpread2',
110
+ name: 'Handicap 4th',
111
+ resultType: ResultType.SPREAD,
112
+ tooltipKey: 'handicap',
113
+ },
114
+ [MarketType.FIFTH_PERIOD_SPREAD2]: {
115
+ id: MarketType.FIFTH_PERIOD_SPREAD2,
116
+ key: 'fifthPeriodSpread2',
117
+ name: 'Handicap 5th',
118
+ resultType: ResultType.SPREAD,
119
+ tooltipKey: 'handicap',
120
+ },
121
+ [MarketType.SIXTH_PERIOD_SPREAD2]: {
122
+ id: MarketType.SIXTH_PERIOD_SPREAD2,
123
+ key: 'sixthPeriodSpread2',
124
+ name: 'Handicap 6th',
125
+ resultType: ResultType.SPREAD,
126
+ tooltipKey: 'handicap',
127
+ },
128
+ [MarketType.SEVENTH_PERIOD_SPREAD2]: {
129
+ id: MarketType.SEVENTH_PERIOD_SPREAD2,
130
+ key: 'seventhPeriodSpread2',
131
+ name: 'Handicap 7th',
132
+ resultType: ResultType.SPREAD,
133
+ tooltipKey: 'handicap',
134
+ },
135
+ [MarketType.EIGHTH_PERIOD_SPREAD2]: {
136
+ id: MarketType.EIGHTH_PERIOD_SPREAD2,
137
+ key: 'eightPeriodSpread2',
138
+ name: 'Handicap 8th',
139
+ resultType: ResultType.SPREAD,
140
+ tooltipKey: 'handicap',
141
+ },
142
+ [MarketType.NINTH_PERIOD_SPREAD2]: {
143
+ id: MarketType.NINTH_PERIOD_SPREAD2,
144
+ key: 'ninthPeriodSpread2',
145
+ name: 'Handicap 9th',
146
+ resultType: ResultType.SPREAD,
147
+ tooltipKey: 'handicap',
148
+ },
149
+ };
@@ -0,0 +1,63 @@
1
+ import { MarketType } from '../../enums/marketTypes';
2
+ import { MarketTypeInfo } from '../../types/marketTypes';
3
+
4
+ // Re-export all market type maps
5
+ export { BASEBALL_INNINGS_MARKET_TYPE_MAP } from './baseball';
6
+ export { BASKETBALL_MARKET_TYPE_MAP } from './basketball';
7
+ export { CORRECT_SCORE_MARKET_TYPE_MAP } from './correctScore';
8
+ export { CRICKET_MARKET_TYPE_MAP } from './cricket';
9
+ export { DARTS_MARKET_TYPE_MAP } from './darts';
10
+ export { ESPORTS_MARKET_TYPE_MAP } from './esports';
11
+ export { FOOTBALL_MARKET_TYPE_MAP } from './football';
12
+ export { FUTURES_MARKET_TYPE_MAP } from './futures';
13
+ export { HANDICAP_MARKET_TYPE_MAP } from './handicap';
14
+ export { OTHERS_MARKET_TYPE_MAP } from './others';
15
+ export { OVERTIME_MARKET_TYPE_MAP } from './overtime';
16
+ export { PLAYER_PROPS_MARKET_TYPE_MAP } from './playerProps';
17
+ export { SGP_MARKET_TYPE_MAP } from './sgp';
18
+ export { SOCCER_MARKET_TYPE_MAP } from './soccer';
19
+ export { TOTAL_MARKET_TYPE_MAP } from './total';
20
+ export { UFC_MARKET_TYPE_MAP } from './ufc';
21
+ export { US_ELECTION_MARKET_TYPE_MAP } from './usElection';
22
+ export { WINNER_MARKET_TYPE_MAP } from './winner';
23
+
24
+ import { BASEBALL_INNINGS_MARKET_TYPE_MAP } from './baseball';
25
+ import { BASKETBALL_MARKET_TYPE_MAP } from './basketball';
26
+ import { CORRECT_SCORE_MARKET_TYPE_MAP } from './correctScore';
27
+ import { CRICKET_MARKET_TYPE_MAP } from './cricket';
28
+ import { DARTS_MARKET_TYPE_MAP } from './darts';
29
+ import { ESPORTS_MARKET_TYPE_MAP } from './esports';
30
+ import { FOOTBALL_MARKET_TYPE_MAP } from './football';
31
+ import { FUTURES_MARKET_TYPE_MAP } from './futures';
32
+ import { HANDICAP_MARKET_TYPE_MAP } from './handicap';
33
+ import { OTHERS_MARKET_TYPE_MAP } from './others';
34
+ import { OVERTIME_MARKET_TYPE_MAP } from './overtime';
35
+ import { PLAYER_PROPS_MARKET_TYPE_MAP } from './playerProps';
36
+ import { SGP_MARKET_TYPE_MAP } from './sgp';
37
+ import { SOCCER_MARKET_TYPE_MAP } from './soccer';
38
+ import { TOTAL_MARKET_TYPE_MAP } from './total';
39
+ import { UFC_MARKET_TYPE_MAP } from './ufc';
40
+ import { US_ELECTION_MARKET_TYPE_MAP } from './usElection';
41
+ import { WINNER_MARKET_TYPE_MAP } from './winner';
42
+
43
+ // Combine all market type maps into a single map
44
+ export const ALL_MARKET_TYPES: Partial<Record<MarketType, MarketTypeInfo>> = {
45
+ ...OTHERS_MARKET_TYPE_MAP,
46
+ ...WINNER_MARKET_TYPE_MAP,
47
+ ...HANDICAP_MARKET_TYPE_MAP,
48
+ ...TOTAL_MARKET_TYPE_MAP,
49
+ ...FOOTBALL_MARKET_TYPE_MAP,
50
+ ...OVERTIME_MARKET_TYPE_MAP,
51
+ ...PLAYER_PROPS_MARKET_TYPE_MAP,
52
+ ...UFC_MARKET_TYPE_MAP,
53
+ ...US_ELECTION_MARKET_TYPE_MAP,
54
+ ...CORRECT_SCORE_MARKET_TYPE_MAP,
55
+ ...FUTURES_MARKET_TYPE_MAP,
56
+ ...SOCCER_MARKET_TYPE_MAP,
57
+ ...BASEBALL_INNINGS_MARKET_TYPE_MAP,
58
+ ...CRICKET_MARKET_TYPE_MAP,
59
+ ...SGP_MARKET_TYPE_MAP,
60
+ ...DARTS_MARKET_TYPE_MAP,
61
+ ...BASKETBALL_MARKET_TYPE_MAP,
62
+ ...ESPORTS_MARKET_TYPE_MAP,
63
+ };
@@ -0,0 +1,21 @@
1
+ import { MarketType, ResultType } from '../../enums/marketTypes';
2
+ import { MarketTypeInfo } from '../../types/marketTypes';
3
+
4
+ export const OTHERS_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
5
+ // Empty
6
+ [MarketType.EMPTY]: {
7
+ id: MarketType.EMPTY,
8
+ key: '',
9
+ name: '',
10
+ description: undefined,
11
+ tooltipKey: undefined,
12
+ },
13
+
14
+ // Combined positions
15
+ [MarketType.WINNER_TOTAL]: {
16
+ id: MarketType.WINNER_TOTAL,
17
+ key: 'winnerTotal',
18
+ name: 'Winner + Total',
19
+ resultType: ResultType.COMBINED_POSITIONS,
20
+ },
21
+ };
@@ -0,0 +1,48 @@
1
+ import { MarketType, ResultType } from '../../enums/marketTypes';
2
+ import { MarketTypeInfo } from '../../types/marketTypes';
3
+
4
+ export const OVERTIME_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>> = {
5
+ // Will there be overtime
6
+ [MarketType.WILL_THERE_BE_OVERTIME]: {
7
+ id: MarketType.WILL_THERE_BE_OVERTIME,
8
+ key: 'willThereBeOvertime',
9
+ name: 'Overtime',
10
+ description: 'Will there be overtime in the game',
11
+ resultType: ResultType.EXACT_POSITION,
12
+ },
13
+ [MarketType.FIRST_PERIOD_WILL_THERE_BE_OVERTIME]: {
14
+ id: MarketType.FIRST_PERIOD_WILL_THERE_BE_OVERTIME,
15
+ key: 'firstPeriodWillThereBeOvertime',
16
+ name: 'Overtime 1st',
17
+ description: 'Will there be overtime in the 1st',
18
+ resultType: ResultType.EXACT_POSITION,
19
+ },
20
+ [MarketType.SECOND_PERIOD_WILL_THERE_BE_OVERTIME]: {
21
+ id: MarketType.SECOND_PERIOD_WILL_THERE_BE_OVERTIME,
22
+ key: 'secondPeriodWillThereBeOvertime',
23
+ name: 'Overtime 2nd',
24
+ description: 'Will there be overtime in the 2nd',
25
+ resultType: ResultType.EXACT_POSITION,
26
+ },
27
+ [MarketType.THIRD_PERIOD_WILL_THERE_BE_OVERTIME]: {
28
+ id: MarketType.THIRD_PERIOD_WILL_THERE_BE_OVERTIME,
29
+ key: 'thirdPeriodWillThereBeOvertime',
30
+ name: 'Overtime 3rd',
31
+ description: 'Will there be overtime in the 3rd',
32
+ resultType: ResultType.EXACT_POSITION,
33
+ },
34
+ [MarketType.FOURTH_PERIOD_WILL_THERE_BE_OVERTIME]: {
35
+ id: MarketType.FOURTH_PERIOD_WILL_THERE_BE_OVERTIME,
36
+ key: 'fourthPeriodWillThereBeOvertime',
37
+ name: 'Overtime 4th',
38
+ description: 'Will there be overtime in the 4th',
39
+ resultType: ResultType.EXACT_POSITION,
40
+ },
41
+ [MarketType.FIFTH_PERIOD_WILL_THERE_BE_OVERTIME]: {
42
+ id: MarketType.FIFTH_PERIOD_WILL_THERE_BE_OVERTIME,
43
+ key: 'fifthPeriodWillThereBeOvertime',
44
+ name: 'Overtime 5th',
45
+ description: 'Will there be overtime in the 5th',
46
+ resultType: ResultType.EXACT_POSITION,
47
+ },
48
+ };