overtime-utils 0.2.47 → 0.2.49

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overtime-utils",
3
- "version": "0.2.47",
3
+ "version": "0.2.49",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -1,2 +1,81 @@
1
1
  export const OPTIC_ODDS_ID_SEPARATOR = ':';
2
2
  export const OVERTIME_ID_SEPARATOR = '_';
3
+
4
+ export const FEEDBACK_CODES = {
5
+ TRADE_APPROVED: {
6
+ code: 'TRADE_APPROVED',
7
+ text: 'Chainlink approved the Live Trade request, awaiting confirmation transaction',
8
+ },
9
+ SGP_TRADE_APPROVED: {
10
+ code: 'SGP_TRADE_APPROVED',
11
+ text: 'Chainlink approved the SGP Trade request, awaiting confirmation transaction',
12
+ },
13
+ NOT_SUPPORTED_BET_TYPE: {
14
+ code: 'NOT_SUPPORTED_BET_TYPE',
15
+ text: 'Not supported bet type',
16
+ },
17
+ ZERO_ODDS: {
18
+ code: 'ZERO_ODDS',
19
+ text: 'One of the requested odds providers has zero odds',
20
+ },
21
+ GAME_ODDS_NOT_FOUND: {
22
+ code: 'GAME_ODDS_NOT_FOUND',
23
+ text: 'Could not find the game {homeTeam} - {awayTeam} with odds from the provider',
24
+ },
25
+ PLAYER_MAP_READ_ERROR: {
26
+ code: 'PLAYER_MAP_READ_ERROR',
27
+ text: 'Error reading map for league ID: {sportIdFormatted}',
28
+ },
29
+ NO_ODDS_OR_STALE_ODDS: {
30
+ code: 'NO_ODDS_OR_STALE_ODDS',
31
+ text: 'There are no odds or stale odds for {marketName}, line {line}',
32
+ },
33
+ SLIPPAGE_TOO_HIGH: {
34
+ code: 'SLIPPAGE_TOO_HIGH',
35
+ text: 'Difference between submitted odds: {expectedQuote} and current odds: {currentOdds} is higher than the threshold: {thresholdPercent}%',
36
+ },
37
+ PARLAY_SLIPPAGE_TOO_HIGH: {
38
+ code: 'PARLAY_SLIPPAGE_TOO_HIGH',
39
+ text: 'Parlay slippage too high. submitted={expectedQuote} current={currentOdds} threshold={thresholdPercent}%',
40
+ },
41
+ MISSING_ODDS_FOR_FIXTURE: {
42
+ code: 'MISSING_ODDS_FOR_FIXTURE',
43
+ text: 'Missing odds for fixture {fixtureId}',
44
+ },
45
+ NO_ODDS_FROM_PROVIDER: {
46
+ code: 'NO_ODDS_FROM_PROVIDER',
47
+ text: 'No odds returned from providers',
48
+ },
49
+ INVALID_REQUEST_ID: {
50
+ code: 'INVALID_REQUEST_ID',
51
+ text: 'Invalid request ID',
52
+ },
53
+ MISSING_ODDS_FROM_PROVIDER: {
54
+ code: 'MISSING_ODDS_FROM_PROVIDER',
55
+ text: 'Missing odds from provider',
56
+ },
57
+ PROVIDER_ODDS_MISMATCH: {
58
+ code: 'PROVIDER_ODDS_MISMATCH',
59
+ text: 'Provider odds mismatch',
60
+ },
61
+ STALE_ODDS_FROM_PROVIDER: {
62
+ code: 'STALE_ODDS_FROM_PROVIDER',
63
+ text: 'Stale odds from provider',
64
+ },
65
+ GAME_MATCH_ERROR: {
66
+ code: 'GAME_MATCH_ERROR',
67
+ text: 'Error matching the game with the provider',
68
+ },
69
+ LIVE_TIME_CONSTRAINT_ERROR: {
70
+ code: 'LIVE_TIME_CONSTRAINT_ERROR',
71
+ text: 'Error checking live time constraints',
72
+ },
73
+ LEG_CONTEXT_RESOLUTION_ERROR: {
74
+ code: 'LEG_CONTEXT_RESOLUTION_ERROR',
75
+ text: 'Error resolving leg context with the provider',
76
+ },
77
+ REQUEST_VALIDATION_ERROR: {
78
+ code: 'REQUEST_VALIDATION_ERROR',
79
+ text: 'Invalid request parameters',
80
+ },
81
+ } as const;
@@ -304,6 +304,13 @@ export const BASKETBALL_LEAGUES: Partial<Record<League, LeagueInfo>> = {
304
304
  opticOddsName: 'FIBA - World Cup Qualifiers Women',
305
305
  priority: 325,
306
306
  },
307
+ [League.FIBA_WORLD_CUP_WOMEN]: {
308
+ ...BASKETBALL_DEFAULTS,
309
+ id: League.FIBA_WORLD_CUP_WOMEN,
310
+ label: 'FIBA World Cup Women',
311
+ opticOddsName: 'FIBA - World Cup Women',
312
+ priority: 325,
313
+ },
307
314
  [League.FIBA_AFRO_BASKET_QUALIFIERS]: {
308
315
  ...BASKETBALL_DEFAULTS,
309
316
  id: League.FIBA_AFRO_BASKET_QUALIFIERS,