overtime-utils 0.1.65 → 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 +4 -0
- package/src/utils/markets.ts +4 -0
package/package.json
CHANGED
|
@@ -4323,6 +4323,10 @@ export const ONE_SIDE_PLAYER_PROPS_MARKET_TYPES = [
|
|
|
4323
4323
|
MarketType.PLAYER_PROPS_LAST_SCORER,
|
|
4324
4324
|
MarketType.PLAYER_PROPS_TO_SCORE_AND_ASSIST,
|
|
4325
4325
|
MarketType.PLAYER_PROPS_TO_SCORE_OR_ASSIST,
|
|
4326
|
+
];
|
|
4327
|
+
|
|
4328
|
+
export const ONE_SIDE_EXTENDED_PLAYER_PROPS_MARKET_TYPES = [
|
|
4329
|
+
...ONE_SIDE_PLAYER_PROPS_MARKET_TYPES,
|
|
4326
4330
|
MarketType.PLAYER_PROPS_OVER_GOALS,
|
|
4327
4331
|
];
|
|
4328
4332
|
|
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
|
|