@azuro-org/toolkit 6.0.1 → 6.0.2
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/dist/index.js
CHANGED
|
@@ -7546,7 +7546,7 @@ const groupConditionsByMarket = (conditions) => {
|
|
|
7546
7546
|
const stateByOutcomeIds = {};
|
|
7547
7547
|
for (let conditionIndex = 0; conditionIndex < conditions.length; conditionIndex++) {
|
|
7548
7548
|
const condition = conditions[conditionIndex];
|
|
7549
|
-
const { conditionId, outcomes: rawOutcomes, state, wonOutcomeIds, isExpressForbidden, title: customMarketName, margin, game: { gameId }, } = condition;
|
|
7549
|
+
const { conditionId, outcomes: rawOutcomes, state, wonOutcomeIds, isExpressForbidden, title: customMarketName, margin, hidden, game: { gameId }, } = condition;
|
|
7550
7550
|
const firstOutcomeId = rawOutcomes[0].outcomeId;
|
|
7551
7551
|
const marketKey = getMarketKey(firstOutcomeId);
|
|
7552
7552
|
const marketName = customMarketName && customMarketName !== 'null' ? customMarketName : getMarketName({ outcomeId: firstOutcomeId });
|
|
@@ -7585,6 +7585,7 @@ const groupConditionsByMarket = (conditions) => {
|
|
|
7585
7585
|
conditionId,
|
|
7586
7586
|
state,
|
|
7587
7587
|
isExpressForbidden,
|
|
7588
|
+
hidden,
|
|
7588
7589
|
margin,
|
|
7589
7590
|
outcomes: [],
|
|
7590
7591
|
};
|
|
@@ -8195,6 +8196,7 @@ const getConditionsState = async (props) => {
|
|
|
8195
8196
|
return [];
|
|
8196
8197
|
}
|
|
8197
8198
|
const api = getApiEndpoint(props.chainId);
|
|
8199
|
+
const environment = environments[props.chainId];
|
|
8198
8200
|
const response = await fetch(`${api}/market-manager/condition-batch`, {
|
|
8199
8201
|
method: 'POST',
|
|
8200
8202
|
headers: {
|
|
@@ -8203,6 +8205,7 @@ const getConditionsState = async (props) => {
|
|
|
8203
8205
|
},
|
|
8204
8206
|
body: JSON.stringify({
|
|
8205
8207
|
conditionIds,
|
|
8208
|
+
environment,
|
|
8206
8209
|
}),
|
|
8207
8210
|
});
|
|
8208
8211
|
if (!response.ok) {
|
|
@@ -8351,12 +8354,11 @@ const getNavigation = async (props) => {
|
|
|
8351
8354
|
* const sports = await getSports({
|
|
8352
8355
|
* chainId: 137,
|
|
8353
8356
|
* states: [GameState.Prematch, GameState.Live],
|
|
8354
|
-
*
|
|
8355
|
-
* perPage: 50,
|
|
8357
|
+
* numberOfGames: 50,
|
|
8356
8358
|
* })
|
|
8357
8359
|
* */
|
|
8358
8360
|
const getSports = async (props) => {
|
|
8359
|
-
const { chainId, gameState, sportIds, sportSlug, countrySlug, leagueSlug, numberOfGames, orderBy, orderDir } = props;
|
|
8361
|
+
const { chainId, gameState, sportIds, sportSlug, countrySlug, leagueSlug, numberOfGames, orderBy = GameOrderBy.StartsAt, orderDir = OrderDirection$1.Asc, } = props;
|
|
8360
8362
|
const api = getApiEndpoint(chainId);
|
|
8361
8363
|
const environment = environments[chainId];
|
|
8362
8364
|
const params = serializeApiParams({
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type GameState,
|
|
1
|
+
import { type GameState, OrderDirection } from '../../global';
|
|
2
2
|
import type { ChainId } from '../../config';
|
|
3
|
-
import { type GameData,
|
|
3
|
+
import { type GameData, GameOrderBy } from './types';
|
|
4
4
|
export type GetSportsParams = {
|
|
5
5
|
chainId: ChainId;
|
|
6
6
|
gameState: GameState.Live | GameState.Prematch;
|
|
@@ -47,8 +47,7 @@ export type GetSportsResult = GetSportsResponse['sports'];
|
|
|
47
47
|
* const sports = await getSports({
|
|
48
48
|
* chainId: 137,
|
|
49
49
|
* states: [GameState.Prematch, GameState.Live],
|
|
50
|
-
*
|
|
51
|
-
* perPage: 50,
|
|
50
|
+
* numberOfGames: 50,
|
|
52
51
|
* })
|
|
53
52
|
* */
|
|
54
53
|
export declare const getSports: (props: GetSportsParams) => Promise<GetSportsResult>;
|
package/package.json
CHANGED