overtime-utils 0.1.64 → 0.1.66
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 +1 -1
- package/src/constants/marketTypes.ts +5 -0
- package/src/utils/markets.ts +4 -0
package/package.json
CHANGED
|
@@ -4325,6 +4325,11 @@ export const ONE_SIDE_PLAYER_PROPS_MARKET_TYPES = [
|
|
|
4325
4325
|
MarketType.PLAYER_PROPS_TO_SCORE_OR_ASSIST,
|
|
4326
4326
|
];
|
|
4327
4327
|
|
|
4328
|
+
export const ONE_SIDE_EXTENDED_PLAYER_PROPS_MARKET_TYPES = [
|
|
4329
|
+
...ONE_SIDE_PLAYER_PROPS_MARKET_TYPES,
|
|
4330
|
+
MarketType.PLAYER_PROPS_OVER_GOALS,
|
|
4331
|
+
];
|
|
4332
|
+
|
|
4328
4333
|
export const YES_NO_PLAYER_PROPS_MARKET_TYPES = [
|
|
4329
4334
|
MarketType.PLAYER_PROPS_DOUBLE_DOUBLE,
|
|
4330
4335
|
MarketType.PLAYER_PROPS_TRIPLE_DOUBLE,
|
package/src/utils/markets.ts
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
HOME_TEAM_MARKET_TYPES,
|
|
24
24
|
HOME_TEAM_TOTAL_MARKET_TYPES,
|
|
25
25
|
NINTH_PERIOD_MARKET_TYPES,
|
|
26
|
+
ONE_SIDE_EXTENDED_PLAYER_PROPS_MARKET_TYPES,
|
|
26
27
|
ONE_SIDE_PLAYER_PROPS_MARKET_TYPES,
|
|
27
28
|
OTHER_YES_NO_MARKET_TYPES,
|
|
28
29
|
PERIOD_MARKET_TYPES,
|
|
@@ -77,6 +78,9 @@ export const isOneSideMarket = (league: League, marketType: MarketType) =>
|
|
|
77
78
|
export const isOneSidePlayerPropsMarket = (marketType: MarketType) =>
|
|
78
79
|
ONE_SIDE_PLAYER_PROPS_MARKET_TYPES.includes(marketType);
|
|
79
80
|
|
|
81
|
+
export const isOneSideExtendedPlayerPropsMarket = (marketType: MarketType) =>
|
|
82
|
+
ONE_SIDE_EXTENDED_PLAYER_PROPS_MARKET_TYPES.includes(marketType);
|
|
83
|
+
|
|
80
84
|
export const isYesNoPlayerPropsMarket = (marketType: MarketType) =>
|
|
81
85
|
YES_NO_PLAYER_PROPS_MARKET_TYPES.includes(marketType);
|
|
82
86
|
|