overtime-utils 0.2.12 → 0.2.13

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.12",
3
+ "version": "0.2.13",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -227,6 +227,12 @@ export const SOCCER_MARKET_TYPE_MAP: Partial<Record<MarketType, MarketTypeInfo>>
227
227
  name: 'Half-time/Full-time',
228
228
  resultType: ResultType.COMBINED_POSITIONS,
229
229
  },
230
+ [MarketType.HALFTIME_FULLTIME2]: {
231
+ id: MarketType.HALFTIME_FULLTIME2,
232
+ key: 'halftimeFulltime2',
233
+ name: 'Half-time/Full-time',
234
+ resultType: ResultType.EXACT_POSITION,
235
+ },
230
236
  [MarketType.GOALS]: {
231
237
  id: MarketType.GOALS,
232
238
  key: 'goals',
@@ -1874,6 +1874,8 @@ export const COMBINED_POSITIONS_MARKET_TYPES = [
1874
1874
  ...SGP_BUILDER_MARKET_TYPES,
1875
1875
  ];
1876
1876
 
1877
+ export const HALFTIME_FULLTIME_MARKET_TYPES = [MarketType.HALFTIME_FULLTIME_GOALS];
1878
+
1877
1879
  export const YES_NO_OUTCOME_MARKET_TYPES = new Set<MarketType>([
1878
1880
  ...ONE_SIDE_PLAYER_PROPS_MARKET_TYPES,
1879
1881
  ...YES_NO_PLAYER_PROPS_MARKET_TYPES,
@@ -179,9 +179,12 @@ export enum MarketType {
179
179
 
180
180
  // Combined positions
181
181
  WINNER_TOTAL = 10004,
182
+ /** @deprecated Use HALFTIME_FULLTIME2 (10040) instead */
182
183
  HALFTIME_FULLTIME = 10006,
183
184
  GOALS = 10007,
184
185
  HALFTIME_FULLTIME_GOALS = 10008,
186
+ // Half-time/Full-time - exact position result type
187
+ HALFTIME_FULLTIME2 = 10040,
185
188
 
186
189
  // Who will advance
187
190
  WHO_WILL_ADVANCE = 10129,
@@ -21,6 +21,7 @@ import {
21
21
  FOOTBALL_MARKET_TYPES,
22
22
  FOURTH_PERIOD_MARKET_TYPES,
23
23
  FUTURES_MARKET_TYPES,
24
+ HALFTIME_FULLTIME_MARKET_TYPES,
24
25
  HIGHEST_SCORING_HALF_MARKET_TYPES,
25
26
  HOME_TEAM_MARKET_TYPES,
26
27
  HOME_TEAM_TOTAL_MARKET_TYPES,
@@ -70,6 +71,8 @@ export const isPlayerPropsMarket = (marketType: MarketType) => PLAYER_PROPS_MARK
70
71
  export const isCombinedPositionsMarket = (marketType: MarketType) =>
71
72
  COMBINED_POSITIONS_MARKET_TYPES.includes(marketType);
72
73
 
74
+ export const isHalftimeFulltimeMarket = (marketType: MarketType) => HALFTIME_FULLTIME_MARKET_TYPES.includes(marketType);
75
+
73
76
  export const isFuturesMarket = (marketType: MarketType) => FUTURES_MARKET_TYPES.includes(marketType);
74
77
 
75
78
  export const isOneSideMarket = (league: League, marketType: MarketType) =>