overtime-utils 0.2.49 → 0.2.51
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/index.ts +1 -0
- 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/enums/sports.ts +766 -741
- package/src/types/feedbackCodes.ts +4 -4
- package/src/utils/feedbackCodes.ts +8 -8
|
@@ -1,169 +1,176 @@
|
|
|
1
|
-
import { League, MatchResolveType, PeriodType, Provider, ScoringType, Sport } from '../../enums/sports';
|
|
2
|
-
import { LeagueInfo } from '../../types/sports';
|
|
3
|
-
|
|
4
|
-
// Common default values for Handball leagues
|
|
5
|
-
export const HANDBALL_DEFAULTS = {
|
|
6
|
-
sport: Sport.HANDBALL,
|
|
7
|
-
provider: Provider.OPTICODDS,
|
|
8
|
-
scoringType: ScoringType.GOALS,
|
|
9
|
-
matchResolveType: MatchResolveType.REGULAR,
|
|
10
|
-
periodType: PeriodType.HALF,
|
|
11
|
-
isDrawAvailable: true,
|
|
12
|
-
hidden: false,
|
|
13
|
-
} as const;
|
|
14
|
-
|
|
15
|
-
export const HANDBALL_LEAGUES: Partial<Record<League, LeagueInfo>> = {
|
|
16
|
-
[League.EHF_EUROPEAN_CHAMPIONSHIP]: {
|
|
17
|
-
...HANDBALL_DEFAULTS,
|
|
18
|
-
id: League.EHF_EUROPEAN_CHAMPIONSHIP,
|
|
19
|
-
label: 'EHF European Championship',
|
|
20
|
-
opticOddsName: 'EHF - European Championship',
|
|
21
|
-
priority: 1400,
|
|
22
|
-
},
|
|
23
|
-
[League.NORTH_MACEDONIA_SUPER_LIGA]: {
|
|
24
|
-
...HANDBALL_DEFAULTS,
|
|
25
|
-
id: League.NORTH_MACEDONIA_SUPER_LIGA,
|
|
26
|
-
label: 'North Macedonia Super Liga',
|
|
27
|
-
opticOddsName: 'North Macedonia - Super Liga',
|
|
28
|
-
priority: 1403,
|
|
29
|
-
},
|
|
30
|
-
[League.SUMMER_OLYMPICS_HANDBALL_WOMEN]: {
|
|
31
|
-
...HANDBALL_DEFAULTS,
|
|
32
|
-
id: League.SUMMER_OLYMPICS_HANDBALL_WOMEN,
|
|
33
|
-
label: 'Olympic Games Handball Women',
|
|
34
|
-
opticOddsName: 'Olympics Handball Women',
|
|
35
|
-
provider: Provider.EMPTY,
|
|
36
|
-
logoClass: 'icon-homepage league--paris2024',
|
|
37
|
-
priority: 1402,
|
|
38
|
-
hidden: true,
|
|
39
|
-
},
|
|
40
|
-
[League.SUMMER_OLYMPICS_HANDBALL]: {
|
|
41
|
-
...HANDBALL_DEFAULTS,
|
|
42
|
-
id: League.SUMMER_OLYMPICS_HANDBALL,
|
|
43
|
-
label: 'Olympic Games Handball',
|
|
44
|
-
opticOddsName: 'Olympics Handball Men',
|
|
45
|
-
provider: Provider.EMPTY,
|
|
46
|
-
logoClass: 'icon-homepage league--paris2024',
|
|
47
|
-
priority: 1401,
|
|
48
|
-
hidden: true,
|
|
49
|
-
},
|
|
50
|
-
[League.CROATIA_HB_PREMIJER_LIGA]: {
|
|
51
|
-
...HANDBALL_DEFAULTS,
|
|
52
|
-
id: League.CROATIA_HB_PREMIJER_LIGA,
|
|
53
|
-
label: 'Croatia HB Premijer Liga',
|
|
54
|
-
opticOddsName: 'Croatia - HB Premijer Liga',
|
|
55
|
-
priority: 1404,
|
|
56
|
-
},
|
|
57
|
-
[League.EHF_CHAMPIONS_LEAGUE]: {
|
|
58
|
-
...HANDBALL_DEFAULTS,
|
|
59
|
-
id: League.EHF_CHAMPIONS_LEAGUE,
|
|
60
|
-
label: 'EHF Champions League',
|
|
61
|
-
opticOddsName: 'EHF - Champions League',
|
|
62
|
-
priority: 1405,
|
|
63
|
-
},
|
|
64
|
-
[League.EHF_CHAMPIONS_LEAGUE_WOMEN]: {
|
|
65
|
-
...HANDBALL_DEFAULTS,
|
|
66
|
-
id: League.EHF_CHAMPIONS_LEAGUE_WOMEN,
|
|
67
|
-
label: 'EHF Champions League Women',
|
|
68
|
-
opticOddsName: 'EHF - Champions League Women',
|
|
69
|
-
priority: 1406,
|
|
70
|
-
},
|
|
71
|
-
[League.EHF_EUROPEAN_LEAGUE]: {
|
|
72
|
-
...HANDBALL_DEFAULTS,
|
|
73
|
-
id: League.EHF_EUROPEAN_LEAGUE,
|
|
74
|
-
label: 'EHF European League',
|
|
75
|
-
opticOddsName: 'EHF - European League',
|
|
76
|
-
priority: 1407,
|
|
77
|
-
},
|
|
78
|
-
[League.FRANCE_LNH_DIVISION_1]: {
|
|
79
|
-
...HANDBALL_DEFAULTS,
|
|
80
|
-
id: League.FRANCE_LNH_DIVISION_1,
|
|
81
|
-
label: 'France LNH Division 1',
|
|
82
|
-
opticOddsName: 'France - LNH Division 1',
|
|
83
|
-
priority: 1408,
|
|
84
|
-
},
|
|
85
|
-
[League.GERMANY_HBL]: {
|
|
86
|
-
...HANDBALL_DEFAULTS,
|
|
87
|
-
id: League.GERMANY_HBL,
|
|
88
|
-
label: 'Germany HBL',
|
|
89
|
-
opticOddsName: 'Germany - HBL',
|
|
90
|
-
priority: 1409,
|
|
91
|
-
},
|
|
92
|
-
[League.HUNGARY_HNB_I]: {
|
|
93
|
-
...HANDBALL_DEFAULTS,
|
|
94
|
-
id: League.HUNGARY_HNB_I,
|
|
95
|
-
label: 'Hungary HNB I',
|
|
96
|
-
opticOddsName: 'Hungary - HNB I',
|
|
97
|
-
priority: 1410,
|
|
98
|
-
},
|
|
99
|
-
[League.ICELAND_URVALSDEILD]: {
|
|
100
|
-
...HANDBALL_DEFAULTS,
|
|
101
|
-
id: League.ICELAND_URVALSDEILD,
|
|
102
|
-
label: 'Iceland Urvalsdeild',
|
|
103
|
-
opticOddsName: 'Iceland - Urvalsdeild',
|
|
104
|
-
priority: 1411,
|
|
105
|
-
},
|
|
106
|
-
[League.IHF_WORLD_CHAMPIONSHIP]: {
|
|
107
|
-
...HANDBALL_DEFAULTS,
|
|
108
|
-
id: League.IHF_WORLD_CHAMPIONSHIP,
|
|
109
|
-
label: 'IHF World Championship',
|
|
110
|
-
opticOddsName: 'IHF - World Championship',
|
|
111
|
-
priority: 1412,
|
|
112
|
-
},
|
|
113
|
-
[League.NORWAY_HB_1_DIVISJON]: {
|
|
114
|
-
...HANDBALL_DEFAULTS,
|
|
115
|
-
id: League.NORWAY_HB_1_DIVISJON,
|
|
116
|
-
label: 'Norway HB 1. Divisjon',
|
|
117
|
-
opticOddsName: 'Norway - HB 1. Divisjon',
|
|
118
|
-
priority: 1413,
|
|
119
|
-
},
|
|
120
|
-
[League.POLAND_SUPERLIGA]: {
|
|
121
|
-
...HANDBALL_DEFAULTS,
|
|
122
|
-
id: League.POLAND_SUPERLIGA,
|
|
123
|
-
label: 'Poland Superliga',
|
|
124
|
-
opticOddsName: 'Poland - Superliga',
|
|
125
|
-
priority: 1414,
|
|
126
|
-
},
|
|
127
|
-
[League.RUSSIA_SUPER_LEAGUE]: {
|
|
128
|
-
...HANDBALL_DEFAULTS,
|
|
129
|
-
id: League.RUSSIA_SUPER_LEAGUE,
|
|
130
|
-
label: 'Russia Super League',
|
|
131
|
-
opticOddsName: 'Russia - Super League',
|
|
132
|
-
priority: 1415,
|
|
133
|
-
},
|
|
134
|
-
[League.SERBIA_SUPERLIGA]: {
|
|
135
|
-
...HANDBALL_DEFAULTS,
|
|
136
|
-
id: League.SERBIA_SUPERLIGA,
|
|
137
|
-
label: 'Serbia Superliga',
|
|
138
|
-
opticOddsName: 'Serbia - Superliga',
|
|
139
|
-
priority: 1416,
|
|
140
|
-
},
|
|
141
|
-
[League.SLOVAKIA_HB_EXTRALIGA]: {
|
|
142
|
-
...HANDBALL_DEFAULTS,
|
|
143
|
-
id: League.SLOVAKIA_HB_EXTRALIGA,
|
|
144
|
-
label: 'Slovakia HB Extraliga',
|
|
145
|
-
opticOddsName: 'Slovakia - HB Extraliga',
|
|
146
|
-
priority: 1417,
|
|
147
|
-
},
|
|
148
|
-
[League.SLOVENIA_1_LIGA]: {
|
|
149
|
-
...HANDBALL_DEFAULTS,
|
|
150
|
-
id: League.SLOVENIA_1_LIGA,
|
|
151
|
-
label: 'Slovenia 1. Liga',
|
|
152
|
-
opticOddsName: 'Slovenia - 1. Liga',
|
|
153
|
-
priority: 1418,
|
|
154
|
-
},
|
|
155
|
-
[League.SPAIN_ASOBAL]: {
|
|
156
|
-
...HANDBALL_DEFAULTS,
|
|
157
|
-
id: League.SPAIN_ASOBAL,
|
|
158
|
-
label: 'Spain ASOBAL',
|
|
159
|
-
opticOddsName: 'Spain - ASOBAL',
|
|
160
|
-
priority: 1419,
|
|
161
|
-
},
|
|
162
|
-
[League.SWEDEN_HANDBOLLSLIGAN]: {
|
|
163
|
-
...HANDBALL_DEFAULTS,
|
|
164
|
-
id: League.SWEDEN_HANDBOLLSLIGAN,
|
|
165
|
-
label: 'Sweden Handbollsligan',
|
|
166
|
-
opticOddsName: 'Sweden - Handbollsligan',
|
|
167
|
-
priority: 1420,
|
|
168
|
-
},
|
|
169
|
-
|
|
1
|
+
import { League, MatchResolveType, PeriodType, Provider, ScoringType, Sport } from '../../enums/sports';
|
|
2
|
+
import { LeagueInfo } from '../../types/sports';
|
|
3
|
+
|
|
4
|
+
// Common default values for Handball leagues
|
|
5
|
+
export const HANDBALL_DEFAULTS = {
|
|
6
|
+
sport: Sport.HANDBALL,
|
|
7
|
+
provider: Provider.OPTICODDS,
|
|
8
|
+
scoringType: ScoringType.GOALS,
|
|
9
|
+
matchResolveType: MatchResolveType.REGULAR,
|
|
10
|
+
periodType: PeriodType.HALF,
|
|
11
|
+
isDrawAvailable: true,
|
|
12
|
+
hidden: false,
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
export const HANDBALL_LEAGUES: Partial<Record<League, LeagueInfo>> = {
|
|
16
|
+
[League.EHF_EUROPEAN_CHAMPIONSHIP]: {
|
|
17
|
+
...HANDBALL_DEFAULTS,
|
|
18
|
+
id: League.EHF_EUROPEAN_CHAMPIONSHIP,
|
|
19
|
+
label: 'EHF European Championship',
|
|
20
|
+
opticOddsName: 'EHF - European Championship',
|
|
21
|
+
priority: 1400,
|
|
22
|
+
},
|
|
23
|
+
[League.NORTH_MACEDONIA_SUPER_LIGA]: {
|
|
24
|
+
...HANDBALL_DEFAULTS,
|
|
25
|
+
id: League.NORTH_MACEDONIA_SUPER_LIGA,
|
|
26
|
+
label: 'North Macedonia Super Liga',
|
|
27
|
+
opticOddsName: 'North Macedonia - Super Liga',
|
|
28
|
+
priority: 1403,
|
|
29
|
+
},
|
|
30
|
+
[League.SUMMER_OLYMPICS_HANDBALL_WOMEN]: {
|
|
31
|
+
...HANDBALL_DEFAULTS,
|
|
32
|
+
id: League.SUMMER_OLYMPICS_HANDBALL_WOMEN,
|
|
33
|
+
label: 'Olympic Games Handball Women',
|
|
34
|
+
opticOddsName: 'Olympics Handball Women',
|
|
35
|
+
provider: Provider.EMPTY,
|
|
36
|
+
logoClass: 'icon-homepage league--paris2024',
|
|
37
|
+
priority: 1402,
|
|
38
|
+
hidden: true,
|
|
39
|
+
},
|
|
40
|
+
[League.SUMMER_OLYMPICS_HANDBALL]: {
|
|
41
|
+
...HANDBALL_DEFAULTS,
|
|
42
|
+
id: League.SUMMER_OLYMPICS_HANDBALL,
|
|
43
|
+
label: 'Olympic Games Handball',
|
|
44
|
+
opticOddsName: 'Olympics Handball Men',
|
|
45
|
+
provider: Provider.EMPTY,
|
|
46
|
+
logoClass: 'icon-homepage league--paris2024',
|
|
47
|
+
priority: 1401,
|
|
48
|
+
hidden: true,
|
|
49
|
+
},
|
|
50
|
+
[League.CROATIA_HB_PREMIJER_LIGA]: {
|
|
51
|
+
...HANDBALL_DEFAULTS,
|
|
52
|
+
id: League.CROATIA_HB_PREMIJER_LIGA,
|
|
53
|
+
label: 'Croatia HB Premijer Liga',
|
|
54
|
+
opticOddsName: 'Croatia - HB Premijer Liga',
|
|
55
|
+
priority: 1404,
|
|
56
|
+
},
|
|
57
|
+
[League.EHF_CHAMPIONS_LEAGUE]: {
|
|
58
|
+
...HANDBALL_DEFAULTS,
|
|
59
|
+
id: League.EHF_CHAMPIONS_LEAGUE,
|
|
60
|
+
label: 'EHF Champions League',
|
|
61
|
+
opticOddsName: 'EHF - Champions League',
|
|
62
|
+
priority: 1405,
|
|
63
|
+
},
|
|
64
|
+
[League.EHF_CHAMPIONS_LEAGUE_WOMEN]: {
|
|
65
|
+
...HANDBALL_DEFAULTS,
|
|
66
|
+
id: League.EHF_CHAMPIONS_LEAGUE_WOMEN,
|
|
67
|
+
label: 'EHF Champions League Women',
|
|
68
|
+
opticOddsName: 'EHF - Champions League Women',
|
|
69
|
+
priority: 1406,
|
|
70
|
+
},
|
|
71
|
+
[League.EHF_EUROPEAN_LEAGUE]: {
|
|
72
|
+
...HANDBALL_DEFAULTS,
|
|
73
|
+
id: League.EHF_EUROPEAN_LEAGUE,
|
|
74
|
+
label: 'EHF European League',
|
|
75
|
+
opticOddsName: 'EHF - European League',
|
|
76
|
+
priority: 1407,
|
|
77
|
+
},
|
|
78
|
+
[League.FRANCE_LNH_DIVISION_1]: {
|
|
79
|
+
...HANDBALL_DEFAULTS,
|
|
80
|
+
id: League.FRANCE_LNH_DIVISION_1,
|
|
81
|
+
label: 'France LNH Division 1',
|
|
82
|
+
opticOddsName: 'France - LNH Division 1',
|
|
83
|
+
priority: 1408,
|
|
84
|
+
},
|
|
85
|
+
[League.GERMANY_HBL]: {
|
|
86
|
+
...HANDBALL_DEFAULTS,
|
|
87
|
+
id: League.GERMANY_HBL,
|
|
88
|
+
label: 'Germany HBL',
|
|
89
|
+
opticOddsName: 'Germany - HBL',
|
|
90
|
+
priority: 1409,
|
|
91
|
+
},
|
|
92
|
+
[League.HUNGARY_HNB_I]: {
|
|
93
|
+
...HANDBALL_DEFAULTS,
|
|
94
|
+
id: League.HUNGARY_HNB_I,
|
|
95
|
+
label: 'Hungary HNB I',
|
|
96
|
+
opticOddsName: 'Hungary - HNB I',
|
|
97
|
+
priority: 1410,
|
|
98
|
+
},
|
|
99
|
+
[League.ICELAND_URVALSDEILD]: {
|
|
100
|
+
...HANDBALL_DEFAULTS,
|
|
101
|
+
id: League.ICELAND_URVALSDEILD,
|
|
102
|
+
label: 'Iceland Urvalsdeild',
|
|
103
|
+
opticOddsName: 'Iceland - Urvalsdeild',
|
|
104
|
+
priority: 1411,
|
|
105
|
+
},
|
|
106
|
+
[League.IHF_WORLD_CHAMPIONSHIP]: {
|
|
107
|
+
...HANDBALL_DEFAULTS,
|
|
108
|
+
id: League.IHF_WORLD_CHAMPIONSHIP,
|
|
109
|
+
label: 'IHF World Championship',
|
|
110
|
+
opticOddsName: 'IHF - World Championship',
|
|
111
|
+
priority: 1412,
|
|
112
|
+
},
|
|
113
|
+
[League.NORWAY_HB_1_DIVISJON]: {
|
|
114
|
+
...HANDBALL_DEFAULTS,
|
|
115
|
+
id: League.NORWAY_HB_1_DIVISJON,
|
|
116
|
+
label: 'Norway HB 1. Divisjon',
|
|
117
|
+
opticOddsName: 'Norway - HB 1. Divisjon',
|
|
118
|
+
priority: 1413,
|
|
119
|
+
},
|
|
120
|
+
[League.POLAND_SUPERLIGA]: {
|
|
121
|
+
...HANDBALL_DEFAULTS,
|
|
122
|
+
id: League.POLAND_SUPERLIGA,
|
|
123
|
+
label: 'Poland Superliga',
|
|
124
|
+
opticOddsName: 'Poland - Superliga',
|
|
125
|
+
priority: 1414,
|
|
126
|
+
},
|
|
127
|
+
[League.RUSSIA_SUPER_LEAGUE]: {
|
|
128
|
+
...HANDBALL_DEFAULTS,
|
|
129
|
+
id: League.RUSSIA_SUPER_LEAGUE,
|
|
130
|
+
label: 'Russia Super League',
|
|
131
|
+
opticOddsName: 'Russia - Super League',
|
|
132
|
+
priority: 1415,
|
|
133
|
+
},
|
|
134
|
+
[League.SERBIA_SUPERLIGA]: {
|
|
135
|
+
...HANDBALL_DEFAULTS,
|
|
136
|
+
id: League.SERBIA_SUPERLIGA,
|
|
137
|
+
label: 'Serbia Superliga',
|
|
138
|
+
opticOddsName: 'Serbia - Superliga',
|
|
139
|
+
priority: 1416,
|
|
140
|
+
},
|
|
141
|
+
[League.SLOVAKIA_HB_EXTRALIGA]: {
|
|
142
|
+
...HANDBALL_DEFAULTS,
|
|
143
|
+
id: League.SLOVAKIA_HB_EXTRALIGA,
|
|
144
|
+
label: 'Slovakia HB Extraliga',
|
|
145
|
+
opticOddsName: 'Slovakia - HB Extraliga',
|
|
146
|
+
priority: 1417,
|
|
147
|
+
},
|
|
148
|
+
[League.SLOVENIA_1_LIGA]: {
|
|
149
|
+
...HANDBALL_DEFAULTS,
|
|
150
|
+
id: League.SLOVENIA_1_LIGA,
|
|
151
|
+
label: 'Slovenia 1. Liga',
|
|
152
|
+
opticOddsName: 'Slovenia - 1. Liga',
|
|
153
|
+
priority: 1418,
|
|
154
|
+
},
|
|
155
|
+
[League.SPAIN_ASOBAL]: {
|
|
156
|
+
...HANDBALL_DEFAULTS,
|
|
157
|
+
id: League.SPAIN_ASOBAL,
|
|
158
|
+
label: 'Spain ASOBAL',
|
|
159
|
+
opticOddsName: 'Spain - ASOBAL',
|
|
160
|
+
priority: 1419,
|
|
161
|
+
},
|
|
162
|
+
[League.SWEDEN_HANDBOLLSLIGAN]: {
|
|
163
|
+
...HANDBALL_DEFAULTS,
|
|
164
|
+
id: League.SWEDEN_HANDBOLLSLIGAN,
|
|
165
|
+
label: 'Sweden Handbollsligan',
|
|
166
|
+
opticOddsName: 'Sweden - Handbollsligan',
|
|
167
|
+
priority: 1420,
|
|
168
|
+
},
|
|
169
|
+
[League.DENMARK_HANDBOLDLIGAEN]: {
|
|
170
|
+
...HANDBALL_DEFAULTS,
|
|
171
|
+
id: League.DENMARK_HANDBOLDLIGAEN,
|
|
172
|
+
label: 'Denmark Handboldligaen',
|
|
173
|
+
opticOddsName: 'Denmark - Handboldligaen',
|
|
174
|
+
priority: 1421,
|
|
175
|
+
},
|
|
176
|
+
};
|