overtime-utils 0.2.50 → 0.2.52
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 +21 -21
- package/src/constants/leagues/basketball.ts +485 -478
- package/src/constants/leagues/cricket.ts +95 -74
- package/src/constants/leagues/darts.ts +100 -94
- package/src/constants/leagues/handball.ts +176 -169
- package/src/constants/leagues/hockey.ts +229 -208
- package/src/constants/leagues/rugby.ts +86 -78
- package/src/constants/leagues/soccer.ts +2582 -2526
- package/src/constants/sports.ts +124 -122
- package/src/enums/sports.ts +766 -741
- package/src/types/feedbackCodes.ts +4 -4
- package/src/utils/feedbackCodes.ts +8 -8
|
@@ -1,208 +1,229 @@
|
|
|
1
|
-
import { League, MatchResolveType, PeriodType, Provider, ScoringType, Sport } from '../../enums/sports';
|
|
2
|
-
import { LeagueInfo } from '../../types/sports';
|
|
3
|
-
|
|
4
|
-
// Common default values for Hockey leagues
|
|
5
|
-
export const HOCKEY_DEFAULTS = {
|
|
6
|
-
sport: Sport.HOCKEY,
|
|
7
|
-
provider: Provider.OPTICODDS,
|
|
8
|
-
scoringType: ScoringType.GOALS,
|
|
9
|
-
matchResolveType: MatchResolveType.OVERTIME,
|
|
10
|
-
periodType: PeriodType.PERIOD,
|
|
11
|
-
isDrawAvailable: false,
|
|
12
|
-
hidden: false,
|
|
13
|
-
} as const;
|
|
14
|
-
|
|
15
|
-
export const HOCKEY_LEAGUES: Partial<Record<League, LeagueInfo>> = {
|
|
16
|
-
[League.NHL]: {
|
|
17
|
-
...HOCKEY_DEFAULTS,
|
|
18
|
-
id: League.NHL,
|
|
19
|
-
label: 'NHL',
|
|
20
|
-
opticOddsName: 'NHL',
|
|
21
|
-
logo: `/logos/leagueLogos/nhl.webp`,
|
|
22
|
-
logoClass: 'icon-homepage league--nhl',
|
|
23
|
-
priority: 501,
|
|
24
|
-
},
|
|
25
|
-
[League.IIHF_WORLD_CHAMPIONSHIP]: {
|
|
26
|
-
...HOCKEY_DEFAULTS,
|
|
27
|
-
id: League.IIHF_WORLD_CHAMPIONSHIP,
|
|
28
|
-
label: 'IIHF World Championship',
|
|
29
|
-
opticOddsName: 'IIHF - World Championship',
|
|
30
|
-
logoClass: 'icon-homepage league--iihf',
|
|
31
|
-
matchResolveType: MatchResolveType.REGULAR,
|
|
32
|
-
priority: 502,
|
|
33
|
-
},
|
|
34
|
-
[League.CZECH_REPUBLIC_EXTRALIGA]: {
|
|
35
|
-
...HOCKEY_DEFAULTS,
|
|
36
|
-
id: League.CZECH_REPUBLIC_EXTRALIGA,
|
|
37
|
-
label: 'Czech Republic Extraliga',
|
|
38
|
-
opticOddsName: 'Czech Republic - Extraliga',
|
|
39
|
-
priority: 503,
|
|
40
|
-
},
|
|
41
|
-
[League.FINLAND_SM_LIIGA]: {
|
|
42
|
-
...HOCKEY_DEFAULTS,
|
|
43
|
-
id: League.FINLAND_SM_LIIGA,
|
|
44
|
-
label: 'Finland SM Liiga',
|
|
45
|
-
opticOddsName: 'Finland - SM Liiga',
|
|
46
|
-
priority: 504,
|
|
47
|
-
},
|
|
48
|
-
[League.RUSSIA_KHL]: {
|
|
49
|
-
...HOCKEY_DEFAULTS,
|
|
50
|
-
id: League.RUSSIA_KHL,
|
|
51
|
-
label: 'Russia KHL',
|
|
52
|
-
opticOddsName: 'Russia - KHL',
|
|
53
|
-
priority: 505,
|
|
54
|
-
},
|
|
55
|
-
[League.GERMANY_DEL]: {
|
|
56
|
-
...HOCKEY_DEFAULTS,
|
|
57
|
-
id: League.GERMANY_DEL,
|
|
58
|
-
label: 'Germany DEL',
|
|
59
|
-
opticOddsName: 'Germany - DEL',
|
|
60
|
-
priority: 506,
|
|
61
|
-
},
|
|
62
|
-
[League.AUSTRIA_ICE_HOCKEY_LEAGUE]: {
|
|
63
|
-
...HOCKEY_DEFAULTS,
|
|
64
|
-
id: League.AUSTRIA_ICE_HOCKEY_LEAGUE,
|
|
65
|
-
label: 'Austria Ice Hockey League',
|
|
66
|
-
opticOddsName: 'Austria - Ice Hockey League',
|
|
67
|
-
priority: 507,
|
|
68
|
-
},
|
|
69
|
-
[League.SWEDEN_SHL]: {
|
|
70
|
-
...HOCKEY_DEFAULTS,
|
|
71
|
-
id: League.SWEDEN_SHL,
|
|
72
|
-
label: 'Sweden SHL',
|
|
73
|
-
opticOddsName: 'Sweden - SHL',
|
|
74
|
-
priority: 508,
|
|
75
|
-
},
|
|
76
|
-
[League.SWITZETLAND_NATIONAL_LEAGUE]: {
|
|
77
|
-
...HOCKEY_DEFAULTS,
|
|
78
|
-
id: League.SWITZETLAND_NATIONAL_LEAGUE,
|
|
79
|
-
label: 'Switzerland National League',
|
|
80
|
-
opticOddsName: 'Switzerland - National League',
|
|
81
|
-
priority: 509,
|
|
82
|
-
},
|
|
83
|
-
[League.USA_AHL]: {
|
|
84
|
-
...HOCKEY_DEFAULTS,
|
|
85
|
-
id: League.USA_AHL,
|
|
86
|
-
label: 'USA AHL',
|
|
87
|
-
opticOddsName: 'USA - AHL',
|
|
88
|
-
priority: 510,
|
|
89
|
-
},
|
|
90
|
-
[League.NCAAH]: {
|
|
91
|
-
...HOCKEY_DEFAULTS,
|
|
92
|
-
id: League.NCAAH,
|
|
93
|
-
label: 'NCAAH',
|
|
94
|
-
opticOddsName: 'NCAAH',
|
|
95
|
-
priority: 511,
|
|
96
|
-
},
|
|
97
|
-
[League.CHAMPIONS_HOCKEY_LEAGUE]: {
|
|
98
|
-
...HOCKEY_DEFAULTS,
|
|
99
|
-
id: League.CHAMPIONS_HOCKEY_LEAGUE,
|
|
100
|
-
label: 'Champions Hockey League',
|
|
101
|
-
opticOddsName: 'Champions Hockey League',
|
|
102
|
-
priority: 512,
|
|
103
|
-
},
|
|
104
|
-
[League.CANADA_OHL]: {
|
|
105
|
-
...HOCKEY_DEFAULTS,
|
|
106
|
-
id: League.CANADA_OHL,
|
|
107
|
-
label: 'Canada OHL',
|
|
108
|
-
opticOddsName: 'Canada - OHL',
|
|
109
|
-
priority: 513,
|
|
110
|
-
},
|
|
111
|
-
[League.CANADA_QMJHL]: {
|
|
112
|
-
...HOCKEY_DEFAULTS,
|
|
113
|
-
id: League.CANADA_QMJHL,
|
|
114
|
-
label: 'Canada QMJHL',
|
|
115
|
-
opticOddsName: 'Canada - QMJHL',
|
|
116
|
-
priority: 514,
|
|
117
|
-
},
|
|
118
|
-
[League.CANADA_WHL]: {
|
|
119
|
-
...HOCKEY_DEFAULTS,
|
|
120
|
-
id: League.CANADA_WHL,
|
|
121
|
-
label: 'Canada WHL',
|
|
122
|
-
opticOddsName: 'Canada - WHL',
|
|
123
|
-
priority: 515,
|
|
124
|
-
},
|
|
125
|
-
[League.SUMMER_OLYMPICS_HOCKEY_WOMEN]: {
|
|
126
|
-
...HOCKEY_DEFAULTS,
|
|
127
|
-
id: League.SUMMER_OLYMPICS_HOCKEY_WOMEN,
|
|
128
|
-
label: 'Olympic Games Hockey Women',
|
|
129
|
-
provider: Provider.EMPTY,
|
|
130
|
-
logoClass: 'icon-homepage league--paris2024',
|
|
131
|
-
matchResolveType: MatchResolveType.REGULAR,
|
|
132
|
-
priority: 521,
|
|
133
|
-
hidden: true,
|
|
134
|
-
},
|
|
135
|
-
[League.SUMMER_OLYMPICS_HOCKEY]: {
|
|
136
|
-
...HOCKEY_DEFAULTS,
|
|
137
|
-
id: League.SUMMER_OLYMPICS_HOCKEY,
|
|
138
|
-
label: 'Olympic Games Hockey',
|
|
139
|
-
provider: Provider.EMPTY,
|
|
140
|
-
logoClass: 'icon-homepage league--paris2024',
|
|
141
|
-
matchResolveType: MatchResolveType.REGULAR,
|
|
142
|
-
priority: 520,
|
|
143
|
-
hidden: true,
|
|
144
|
-
},
|
|
145
|
-
[League.OLYMPICS_HOCKEY_MEN]: {
|
|
146
|
-
...HOCKEY_DEFAULTS,
|
|
147
|
-
id: League.OLYMPICS_HOCKEY_MEN,
|
|
148
|
-
label: 'Olympics Hockey Men',
|
|
149
|
-
opticOddsName: 'Olympics Hockey Men',
|
|
150
|
-
priority: 522,
|
|
151
|
-
},
|
|
152
|
-
[League.OLYMPICS_HOCKEY_WOMEN]: {
|
|
153
|
-
...HOCKEY_DEFAULTS,
|
|
154
|
-
id: League.OLYMPICS_HOCKEY_WOMEN,
|
|
155
|
-
label: 'Olympics Hockey Women',
|
|
156
|
-
opticOddsName: 'Olympics Hockey Women',
|
|
157
|
-
priority: 523,
|
|
158
|
-
},
|
|
159
|
-
[League.BELARUS_EXTRALIGA]: {
|
|
160
|
-
...HOCKEY_DEFAULTS,
|
|
161
|
-
id: League.BELARUS_EXTRALIGA,
|
|
162
|
-
label: 'Belarus Extraliga',
|
|
163
|
-
opticOddsName: 'Belarus - Extraliga',
|
|
164
|
-
priority: 524,
|
|
165
|
-
},
|
|
166
|
-
[League.POLAND_POLSKA_HOKEJ_LIGA]: {
|
|
167
|
-
...HOCKEY_DEFAULTS,
|
|
168
|
-
id: League.POLAND_POLSKA_HOKEJ_LIGA,
|
|
169
|
-
label: 'Poland Polska Hokej Liga',
|
|
170
|
-
opticOddsName: 'Poland - Polska Hokej Liga',
|
|
171
|
-
priority: 525,
|
|
172
|
-
},
|
|
173
|
-
[League.DENMARK_SUPERISLIGAEN]: {
|
|
174
|
-
...HOCKEY_DEFAULTS,
|
|
175
|
-
id: League.DENMARK_SUPERISLIGAEN,
|
|
176
|
-
label: 'Denmark Superisligaen',
|
|
177
|
-
opticOddsName: 'Denmark - Superisligaen',
|
|
178
|
-
priority: 526,
|
|
179
|
-
},
|
|
180
|
-
[League.NORWAY_ELITEHOCKEYLIGAEN]: {
|
|
181
|
-
...HOCKEY_DEFAULTS,
|
|
182
|
-
id: League.NORWAY_ELITEHOCKEYLIGAEN,
|
|
183
|
-
label: 'Norway Elitehockeyligaen',
|
|
184
|
-
opticOddsName: 'Norway - Elitehockeyligaen',
|
|
185
|
-
priority: 527,
|
|
186
|
-
},
|
|
187
|
-
[League.LATVIA_HOCKEY_LEAGUE]: {
|
|
188
|
-
...HOCKEY_DEFAULTS,
|
|
189
|
-
id: League.LATVIA_HOCKEY_LEAGUE,
|
|
190
|
-
label: 'Latvia Hockey League',
|
|
191
|
-
opticOddsName: 'Latvia - Hockey League',
|
|
192
|
-
priority: 528,
|
|
193
|
-
},
|
|
194
|
-
[League.FRANCE_LIGUE_MAGNUS]: {
|
|
195
|
-
...HOCKEY_DEFAULTS,
|
|
196
|
-
id: League.FRANCE_LIGUE_MAGNUS,
|
|
197
|
-
label: 'France Ligue Magnus',
|
|
198
|
-
opticOddsName: 'France - Ligue Magnus',
|
|
199
|
-
priority: 529,
|
|
200
|
-
},
|
|
201
|
-
[League.RUSSIA_VHL]: {
|
|
202
|
-
...HOCKEY_DEFAULTS,
|
|
203
|
-
id: League.RUSSIA_VHL,
|
|
204
|
-
label: 'Russia VHL',
|
|
205
|
-
opticOddsName: 'Russia - VHL',
|
|
206
|
-
priority: 530,
|
|
207
|
-
},
|
|
208
|
-
|
|
1
|
+
import { League, MatchResolveType, PeriodType, Provider, ScoringType, Sport } from '../../enums/sports';
|
|
2
|
+
import { LeagueInfo } from '../../types/sports';
|
|
3
|
+
|
|
4
|
+
// Common default values for Hockey leagues
|
|
5
|
+
export const HOCKEY_DEFAULTS = {
|
|
6
|
+
sport: Sport.HOCKEY,
|
|
7
|
+
provider: Provider.OPTICODDS,
|
|
8
|
+
scoringType: ScoringType.GOALS,
|
|
9
|
+
matchResolveType: MatchResolveType.OVERTIME,
|
|
10
|
+
periodType: PeriodType.PERIOD,
|
|
11
|
+
isDrawAvailable: false,
|
|
12
|
+
hidden: false,
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
export const HOCKEY_LEAGUES: Partial<Record<League, LeagueInfo>> = {
|
|
16
|
+
[League.NHL]: {
|
|
17
|
+
...HOCKEY_DEFAULTS,
|
|
18
|
+
id: League.NHL,
|
|
19
|
+
label: 'NHL',
|
|
20
|
+
opticOddsName: 'NHL',
|
|
21
|
+
logo: `/logos/leagueLogos/nhl.webp`,
|
|
22
|
+
logoClass: 'icon-homepage league--nhl',
|
|
23
|
+
priority: 501,
|
|
24
|
+
},
|
|
25
|
+
[League.IIHF_WORLD_CHAMPIONSHIP]: {
|
|
26
|
+
...HOCKEY_DEFAULTS,
|
|
27
|
+
id: League.IIHF_WORLD_CHAMPIONSHIP,
|
|
28
|
+
label: 'IIHF World Championship',
|
|
29
|
+
opticOddsName: 'IIHF - World Championship',
|
|
30
|
+
logoClass: 'icon-homepage league--iihf',
|
|
31
|
+
matchResolveType: MatchResolveType.REGULAR,
|
|
32
|
+
priority: 502,
|
|
33
|
+
},
|
|
34
|
+
[League.CZECH_REPUBLIC_EXTRALIGA]: {
|
|
35
|
+
...HOCKEY_DEFAULTS,
|
|
36
|
+
id: League.CZECH_REPUBLIC_EXTRALIGA,
|
|
37
|
+
label: 'Czech Republic Extraliga',
|
|
38
|
+
opticOddsName: 'Czech Republic - Extraliga',
|
|
39
|
+
priority: 503,
|
|
40
|
+
},
|
|
41
|
+
[League.FINLAND_SM_LIIGA]: {
|
|
42
|
+
...HOCKEY_DEFAULTS,
|
|
43
|
+
id: League.FINLAND_SM_LIIGA,
|
|
44
|
+
label: 'Finland SM Liiga',
|
|
45
|
+
opticOddsName: 'Finland - SM Liiga',
|
|
46
|
+
priority: 504,
|
|
47
|
+
},
|
|
48
|
+
[League.RUSSIA_KHL]: {
|
|
49
|
+
...HOCKEY_DEFAULTS,
|
|
50
|
+
id: League.RUSSIA_KHL,
|
|
51
|
+
label: 'Russia KHL',
|
|
52
|
+
opticOddsName: 'Russia - KHL',
|
|
53
|
+
priority: 505,
|
|
54
|
+
},
|
|
55
|
+
[League.GERMANY_DEL]: {
|
|
56
|
+
...HOCKEY_DEFAULTS,
|
|
57
|
+
id: League.GERMANY_DEL,
|
|
58
|
+
label: 'Germany DEL',
|
|
59
|
+
opticOddsName: 'Germany - DEL',
|
|
60
|
+
priority: 506,
|
|
61
|
+
},
|
|
62
|
+
[League.AUSTRIA_ICE_HOCKEY_LEAGUE]: {
|
|
63
|
+
...HOCKEY_DEFAULTS,
|
|
64
|
+
id: League.AUSTRIA_ICE_HOCKEY_LEAGUE,
|
|
65
|
+
label: 'Austria Ice Hockey League',
|
|
66
|
+
opticOddsName: 'Austria - Ice Hockey League',
|
|
67
|
+
priority: 507,
|
|
68
|
+
},
|
|
69
|
+
[League.SWEDEN_SHL]: {
|
|
70
|
+
...HOCKEY_DEFAULTS,
|
|
71
|
+
id: League.SWEDEN_SHL,
|
|
72
|
+
label: 'Sweden SHL',
|
|
73
|
+
opticOddsName: 'Sweden - SHL',
|
|
74
|
+
priority: 508,
|
|
75
|
+
},
|
|
76
|
+
[League.SWITZETLAND_NATIONAL_LEAGUE]: {
|
|
77
|
+
...HOCKEY_DEFAULTS,
|
|
78
|
+
id: League.SWITZETLAND_NATIONAL_LEAGUE,
|
|
79
|
+
label: 'Switzerland National League',
|
|
80
|
+
opticOddsName: 'Switzerland - National League',
|
|
81
|
+
priority: 509,
|
|
82
|
+
},
|
|
83
|
+
[League.USA_AHL]: {
|
|
84
|
+
...HOCKEY_DEFAULTS,
|
|
85
|
+
id: League.USA_AHL,
|
|
86
|
+
label: 'USA AHL',
|
|
87
|
+
opticOddsName: 'USA - AHL',
|
|
88
|
+
priority: 510,
|
|
89
|
+
},
|
|
90
|
+
[League.NCAAH]: {
|
|
91
|
+
...HOCKEY_DEFAULTS,
|
|
92
|
+
id: League.NCAAH,
|
|
93
|
+
label: 'NCAAH',
|
|
94
|
+
opticOddsName: 'NCAAH',
|
|
95
|
+
priority: 511,
|
|
96
|
+
},
|
|
97
|
+
[League.CHAMPIONS_HOCKEY_LEAGUE]: {
|
|
98
|
+
...HOCKEY_DEFAULTS,
|
|
99
|
+
id: League.CHAMPIONS_HOCKEY_LEAGUE,
|
|
100
|
+
label: 'Champions Hockey League',
|
|
101
|
+
opticOddsName: 'Champions Hockey League',
|
|
102
|
+
priority: 512,
|
|
103
|
+
},
|
|
104
|
+
[League.CANADA_OHL]: {
|
|
105
|
+
...HOCKEY_DEFAULTS,
|
|
106
|
+
id: League.CANADA_OHL,
|
|
107
|
+
label: 'Canada OHL',
|
|
108
|
+
opticOddsName: 'Canada - OHL',
|
|
109
|
+
priority: 513,
|
|
110
|
+
},
|
|
111
|
+
[League.CANADA_QMJHL]: {
|
|
112
|
+
...HOCKEY_DEFAULTS,
|
|
113
|
+
id: League.CANADA_QMJHL,
|
|
114
|
+
label: 'Canada QMJHL',
|
|
115
|
+
opticOddsName: 'Canada - QMJHL',
|
|
116
|
+
priority: 514,
|
|
117
|
+
},
|
|
118
|
+
[League.CANADA_WHL]: {
|
|
119
|
+
...HOCKEY_DEFAULTS,
|
|
120
|
+
id: League.CANADA_WHL,
|
|
121
|
+
label: 'Canada WHL',
|
|
122
|
+
opticOddsName: 'Canada - WHL',
|
|
123
|
+
priority: 515,
|
|
124
|
+
},
|
|
125
|
+
[League.SUMMER_OLYMPICS_HOCKEY_WOMEN]: {
|
|
126
|
+
...HOCKEY_DEFAULTS,
|
|
127
|
+
id: League.SUMMER_OLYMPICS_HOCKEY_WOMEN,
|
|
128
|
+
label: 'Olympic Games Hockey Women',
|
|
129
|
+
provider: Provider.EMPTY,
|
|
130
|
+
logoClass: 'icon-homepage league--paris2024',
|
|
131
|
+
matchResolveType: MatchResolveType.REGULAR,
|
|
132
|
+
priority: 521,
|
|
133
|
+
hidden: true,
|
|
134
|
+
},
|
|
135
|
+
[League.SUMMER_OLYMPICS_HOCKEY]: {
|
|
136
|
+
...HOCKEY_DEFAULTS,
|
|
137
|
+
id: League.SUMMER_OLYMPICS_HOCKEY,
|
|
138
|
+
label: 'Olympic Games Hockey',
|
|
139
|
+
provider: Provider.EMPTY,
|
|
140
|
+
logoClass: 'icon-homepage league--paris2024',
|
|
141
|
+
matchResolveType: MatchResolveType.REGULAR,
|
|
142
|
+
priority: 520,
|
|
143
|
+
hidden: true,
|
|
144
|
+
},
|
|
145
|
+
[League.OLYMPICS_HOCKEY_MEN]: {
|
|
146
|
+
...HOCKEY_DEFAULTS,
|
|
147
|
+
id: League.OLYMPICS_HOCKEY_MEN,
|
|
148
|
+
label: 'Olympics Hockey Men',
|
|
149
|
+
opticOddsName: 'Olympics Hockey Men',
|
|
150
|
+
priority: 522,
|
|
151
|
+
},
|
|
152
|
+
[League.OLYMPICS_HOCKEY_WOMEN]: {
|
|
153
|
+
...HOCKEY_DEFAULTS,
|
|
154
|
+
id: League.OLYMPICS_HOCKEY_WOMEN,
|
|
155
|
+
label: 'Olympics Hockey Women',
|
|
156
|
+
opticOddsName: 'Olympics Hockey Women',
|
|
157
|
+
priority: 523,
|
|
158
|
+
},
|
|
159
|
+
[League.BELARUS_EXTRALIGA]: {
|
|
160
|
+
...HOCKEY_DEFAULTS,
|
|
161
|
+
id: League.BELARUS_EXTRALIGA,
|
|
162
|
+
label: 'Belarus Extraliga',
|
|
163
|
+
opticOddsName: 'Belarus - Extraliga',
|
|
164
|
+
priority: 524,
|
|
165
|
+
},
|
|
166
|
+
[League.POLAND_POLSKA_HOKEJ_LIGA]: {
|
|
167
|
+
...HOCKEY_DEFAULTS,
|
|
168
|
+
id: League.POLAND_POLSKA_HOKEJ_LIGA,
|
|
169
|
+
label: 'Poland Polska Hokej Liga',
|
|
170
|
+
opticOddsName: 'Poland - Polska Hokej Liga',
|
|
171
|
+
priority: 525,
|
|
172
|
+
},
|
|
173
|
+
[League.DENMARK_SUPERISLIGAEN]: {
|
|
174
|
+
...HOCKEY_DEFAULTS,
|
|
175
|
+
id: League.DENMARK_SUPERISLIGAEN,
|
|
176
|
+
label: 'Denmark Superisligaen',
|
|
177
|
+
opticOddsName: 'Denmark - Superisligaen',
|
|
178
|
+
priority: 526,
|
|
179
|
+
},
|
|
180
|
+
[League.NORWAY_ELITEHOCKEYLIGAEN]: {
|
|
181
|
+
...HOCKEY_DEFAULTS,
|
|
182
|
+
id: League.NORWAY_ELITEHOCKEYLIGAEN,
|
|
183
|
+
label: 'Norway Elitehockeyligaen',
|
|
184
|
+
opticOddsName: 'Norway - Elitehockeyligaen',
|
|
185
|
+
priority: 527,
|
|
186
|
+
},
|
|
187
|
+
[League.LATVIA_HOCKEY_LEAGUE]: {
|
|
188
|
+
...HOCKEY_DEFAULTS,
|
|
189
|
+
id: League.LATVIA_HOCKEY_LEAGUE,
|
|
190
|
+
label: 'Latvia Hockey League',
|
|
191
|
+
opticOddsName: 'Latvia - Hockey League',
|
|
192
|
+
priority: 528,
|
|
193
|
+
},
|
|
194
|
+
[League.FRANCE_LIGUE_MAGNUS]: {
|
|
195
|
+
...HOCKEY_DEFAULTS,
|
|
196
|
+
id: League.FRANCE_LIGUE_MAGNUS,
|
|
197
|
+
label: 'France Ligue Magnus',
|
|
198
|
+
opticOddsName: 'France - Ligue Magnus',
|
|
199
|
+
priority: 529,
|
|
200
|
+
},
|
|
201
|
+
[League.RUSSIA_VHL]: {
|
|
202
|
+
...HOCKEY_DEFAULTS,
|
|
203
|
+
id: League.RUSSIA_VHL,
|
|
204
|
+
label: 'Russia VHL',
|
|
205
|
+
opticOddsName: 'Russia - VHL',
|
|
206
|
+
priority: 530,
|
|
207
|
+
},
|
|
208
|
+
[League.SLOVAKIA_EXTRALIGA]: {
|
|
209
|
+
...HOCKEY_DEFAULTS,
|
|
210
|
+
id: League.SLOVAKIA_EXTRALIGA,
|
|
211
|
+
label: 'Slovakia Extraliga',
|
|
212
|
+
opticOddsName: 'Slovakia - Extraliga',
|
|
213
|
+
priority: 531,
|
|
214
|
+
},
|
|
215
|
+
[League.SWEDEN_HOCKEY_ALLSVENSKAN]: {
|
|
216
|
+
...HOCKEY_DEFAULTS,
|
|
217
|
+
id: League.SWEDEN_HOCKEY_ALLSVENSKAN,
|
|
218
|
+
label: 'Sweden Hockey Allsvenskan',
|
|
219
|
+
opticOddsName: 'Sweden - Hockey Allsvenskan',
|
|
220
|
+
priority: 532,
|
|
221
|
+
},
|
|
222
|
+
[League.SWITZERLAND_SWISS_LEAGUE]: {
|
|
223
|
+
...HOCKEY_DEFAULTS,
|
|
224
|
+
id: League.SWITZERLAND_SWISS_LEAGUE,
|
|
225
|
+
label: 'Switzerland Swiss League',
|
|
226
|
+
opticOddsName: 'Switzerland - Swiss League',
|
|
227
|
+
priority: 533,
|
|
228
|
+
},
|
|
229
|
+
};
|
|
@@ -1,78 +1,86 @@
|
|
|
1
|
-
import { League, MatchResolveType, OpticOddsSport, PeriodType, Provider, ScoringType, Sport } from '../../enums/sports';
|
|
2
|
-
import { LeagueInfo } from '../../types/sports';
|
|
3
|
-
|
|
4
|
-
// Common default values for Rugby leagues
|
|
5
|
-
export const RUGBY_DEFAULTS = {
|
|
6
|
-
sport: Sport.RUGBY,
|
|
7
|
-
provider: Provider.OPTICODDS,
|
|
8
|
-
scoringType: ScoringType.POINTS,
|
|
9
|
-
matchResolveType: MatchResolveType.REGULAR,
|
|
10
|
-
periodType: PeriodType.HALF,
|
|
11
|
-
isDrawAvailable: true,
|
|
12
|
-
hidden: false,
|
|
13
|
-
} as const;
|
|
14
|
-
|
|
15
|
-
export const RUGBY_LEAGUES: Partial<Record<League, LeagueInfo>> = {
|
|
16
|
-
[League.AUSTRALIA_NRL]: {
|
|
17
|
-
...RUGBY_DEFAULTS,
|
|
18
|
-
id: League.AUSTRALIA_NRL,
|
|
19
|
-
label: 'Australia NRL',
|
|
20
|
-
opticOddsSport: OpticOddsSport.RUGBY_LEAGUE,
|
|
21
|
-
opticOddsName: 'Australia - NRL',
|
|
22
|
-
priority: 1201,
|
|
23
|
-
},
|
|
24
|
-
[League.ENGLAND_SUPER_LEAGUE]: {
|
|
25
|
-
...RUGBY_DEFAULTS,
|
|
26
|
-
id: League.ENGLAND_SUPER_LEAGUE,
|
|
27
|
-
label: 'England Super League',
|
|
28
|
-
opticOddsSport: OpticOddsSport.RUGBY_LEAGUE,
|
|
29
|
-
opticOddsName: 'England - Super League',
|
|
30
|
-
priority: 1202,
|
|
31
|
-
},
|
|
32
|
-
[League.AUSTRALIA_STATE_OF_ORIGIN]: {
|
|
33
|
-
...RUGBY_DEFAULTS,
|
|
34
|
-
id: League.AUSTRALIA_STATE_OF_ORIGIN,
|
|
35
|
-
label: 'Australia State of Origin',
|
|
36
|
-
opticOddsSport: OpticOddsSport.RUGBY_LEAGUE,
|
|
37
|
-
opticOddsName: 'Australia - State of Origin',
|
|
38
|
-
priority: 1205,
|
|
39
|
-
},
|
|
40
|
-
[League.SUPER_RUGBY]: {
|
|
41
|
-
...RUGBY_DEFAULTS,
|
|
42
|
-
id: League.SUPER_RUGBY,
|
|
43
|
-
label: 'Super Rugby',
|
|
44
|
-
opticOddsSport: OpticOddsSport.RUGBY_UNION,
|
|
45
|
-
opticOddsName: 'Oceania - Super Rugby',
|
|
46
|
-
priority: 1203,
|
|
47
|
-
},
|
|
48
|
-
[League.SIX_NATIONS]: {
|
|
49
|
-
...RUGBY_DEFAULTS,
|
|
50
|
-
id: League.SIX_NATIONS,
|
|
51
|
-
label: 'Six Nations',
|
|
52
|
-
opticOddsSport: OpticOddsSport.RUGBY_UNION,
|
|
53
|
-
opticOddsName: 'International - Six Nations',
|
|
54
|
-
priority: 1204,
|
|
55
|
-
},
|
|
56
|
-
[League.SUMMER_OLYMPICS_RUGBY]: {
|
|
57
|
-
...RUGBY_DEFAULTS,
|
|
58
|
-
id: League.SUMMER_OLYMPICS_RUGBY,
|
|
59
|
-
label: 'Olympic Games Rugby',
|
|
60
|
-
opticOddsSport: OpticOddsSport.RUGBY_UNION,
|
|
61
|
-
opticOddsName: 'Olympics Rugby 7s Men',
|
|
62
|
-
provider: Provider.EMPTY,
|
|
63
|
-
logoClass: 'icon-homepage league--paris2024',
|
|
64
|
-
priority: 1210,
|
|
65
|
-
hidden: true,
|
|
66
|
-
},
|
|
67
|
-
[League.SUMMER_OLYMPICS_RUGBY_WOMEN]: {
|
|
68
|
-
...RUGBY_DEFAULTS,
|
|
69
|
-
id: League.SUMMER_OLYMPICS_RUGBY_WOMEN,
|
|
70
|
-
label: 'Olympic Games Rugby Women',
|
|
71
|
-
opticOddsSport: OpticOddsSport.RUGBY_UNION,
|
|
72
|
-
opticOddsName: 'Olympics Rugby 7s Women',
|
|
73
|
-
provider: Provider.EMPTY,
|
|
74
|
-
logoClass: 'icon-homepage league--paris2024',
|
|
75
|
-
priority: 1211,
|
|
76
|
-
hidden: true,
|
|
77
|
-
},
|
|
78
|
-
|
|
1
|
+
import { League, MatchResolveType, OpticOddsSport, PeriodType, Provider, ScoringType, Sport } from '../../enums/sports';
|
|
2
|
+
import { LeagueInfo } from '../../types/sports';
|
|
3
|
+
|
|
4
|
+
// Common default values for Rugby leagues
|
|
5
|
+
export const RUGBY_DEFAULTS = {
|
|
6
|
+
sport: Sport.RUGBY,
|
|
7
|
+
provider: Provider.OPTICODDS,
|
|
8
|
+
scoringType: ScoringType.POINTS,
|
|
9
|
+
matchResolveType: MatchResolveType.REGULAR,
|
|
10
|
+
periodType: PeriodType.HALF,
|
|
11
|
+
isDrawAvailable: true,
|
|
12
|
+
hidden: false,
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
export const RUGBY_LEAGUES: Partial<Record<League, LeagueInfo>> = {
|
|
16
|
+
[League.AUSTRALIA_NRL]: {
|
|
17
|
+
...RUGBY_DEFAULTS,
|
|
18
|
+
id: League.AUSTRALIA_NRL,
|
|
19
|
+
label: 'Australia NRL',
|
|
20
|
+
opticOddsSport: OpticOddsSport.RUGBY_LEAGUE,
|
|
21
|
+
opticOddsName: 'Australia - NRL',
|
|
22
|
+
priority: 1201,
|
|
23
|
+
},
|
|
24
|
+
[League.ENGLAND_SUPER_LEAGUE]: {
|
|
25
|
+
...RUGBY_DEFAULTS,
|
|
26
|
+
id: League.ENGLAND_SUPER_LEAGUE,
|
|
27
|
+
label: 'England Super League',
|
|
28
|
+
opticOddsSport: OpticOddsSport.RUGBY_LEAGUE,
|
|
29
|
+
opticOddsName: 'England - Super League',
|
|
30
|
+
priority: 1202,
|
|
31
|
+
},
|
|
32
|
+
[League.AUSTRALIA_STATE_OF_ORIGIN]: {
|
|
33
|
+
...RUGBY_DEFAULTS,
|
|
34
|
+
id: League.AUSTRALIA_STATE_OF_ORIGIN,
|
|
35
|
+
label: 'Australia State of Origin',
|
|
36
|
+
opticOddsSport: OpticOddsSport.RUGBY_LEAGUE,
|
|
37
|
+
opticOddsName: 'Australia - State of Origin',
|
|
38
|
+
priority: 1205,
|
|
39
|
+
},
|
|
40
|
+
[League.SUPER_RUGBY]: {
|
|
41
|
+
...RUGBY_DEFAULTS,
|
|
42
|
+
id: League.SUPER_RUGBY,
|
|
43
|
+
label: 'Super Rugby',
|
|
44
|
+
opticOddsSport: OpticOddsSport.RUGBY_UNION,
|
|
45
|
+
opticOddsName: 'Oceania - Super Rugby',
|
|
46
|
+
priority: 1203,
|
|
47
|
+
},
|
|
48
|
+
[League.SIX_NATIONS]: {
|
|
49
|
+
...RUGBY_DEFAULTS,
|
|
50
|
+
id: League.SIX_NATIONS,
|
|
51
|
+
label: 'Six Nations',
|
|
52
|
+
opticOddsSport: OpticOddsSport.RUGBY_UNION,
|
|
53
|
+
opticOddsName: 'International - Six Nations',
|
|
54
|
+
priority: 1204,
|
|
55
|
+
},
|
|
56
|
+
[League.SUMMER_OLYMPICS_RUGBY]: {
|
|
57
|
+
...RUGBY_DEFAULTS,
|
|
58
|
+
id: League.SUMMER_OLYMPICS_RUGBY,
|
|
59
|
+
label: 'Olympic Games Rugby',
|
|
60
|
+
opticOddsSport: OpticOddsSport.RUGBY_UNION,
|
|
61
|
+
opticOddsName: 'Olympics Rugby 7s Men',
|
|
62
|
+
provider: Provider.EMPTY,
|
|
63
|
+
logoClass: 'icon-homepage league--paris2024',
|
|
64
|
+
priority: 1210,
|
|
65
|
+
hidden: true,
|
|
66
|
+
},
|
|
67
|
+
[League.SUMMER_OLYMPICS_RUGBY_WOMEN]: {
|
|
68
|
+
...RUGBY_DEFAULTS,
|
|
69
|
+
id: League.SUMMER_OLYMPICS_RUGBY_WOMEN,
|
|
70
|
+
label: 'Olympic Games Rugby Women',
|
|
71
|
+
opticOddsSport: OpticOddsSport.RUGBY_UNION,
|
|
72
|
+
opticOddsName: 'Olympics Rugby 7s Women',
|
|
73
|
+
provider: Provider.EMPTY,
|
|
74
|
+
logoClass: 'icon-homepage league--paris2024',
|
|
75
|
+
priority: 1211,
|
|
76
|
+
hidden: true,
|
|
77
|
+
},
|
|
78
|
+
[League.FRANCE_PRO_D2]: {
|
|
79
|
+
...RUGBY_DEFAULTS,
|
|
80
|
+
id: League.FRANCE_PRO_D2,
|
|
81
|
+
label: 'France Pro D2',
|
|
82
|
+
opticOddsSport: OpticOddsSport.RUGBY_UNION,
|
|
83
|
+
opticOddsName: 'France - Pro D2',
|
|
84
|
+
priority: 1206,
|
|
85
|
+
},
|
|
86
|
+
};
|