@azuro-org/toolkit 6.0.0-beta.2 → 6.0.0-beta.3

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8009,7 +8009,7 @@ function serializeApiParams(struct) {
8009
8009
  append(key, subValue);
8010
8010
  });
8011
8011
  }
8012
- append(key, String(value));
8012
+ append(key, value);
8013
8013
  });
8014
8014
  return params;
8015
8015
  }/**
@@ -8163,7 +8163,7 @@ const getGamesByFilters = async (props) => {
8163
8163
  sportHub: props.sportHub,
8164
8164
  // conditionState: props.conditionsState,
8165
8165
  orderBy: props.orderBy || GameOrderBy.StartsAt,
8166
- orderDir: props.orderDir || OrderDirection$1.Asc,
8166
+ orderDirection: props.orderDir || OrderDirection$1.Asc,
8167
8167
  perPage: props.perPage || 1000,
8168
8168
  page: props.page || 1,
8169
8169
  });
@@ -8291,9 +8291,9 @@ const getSports = async (props) => {
8291
8291
  leagueSlug: props.leagueSlug,
8292
8292
  numberOfGames: props.numberOfGames ? Math.max(props.numberOfGames, 10) : 10,
8293
8293
  orderBy: props.orderBy,
8294
- orderDir: props.orderDir,
8294
+ orderDirection: props.orderDir,
8295
8295
  // TODO requested to be in api, not implemented yet
8296
- gameState: props.gameState,
8296
+ // gameState: props.gameState,
8297
8297
  // sportHub: props.sportHub,
8298
8298
  });
8299
8299
  const response = await fetch(`${api}/market-manager/sports?${params}`, {
@@ -8375,9 +8375,9 @@ const searchGames = async (props) => {
8375
8375
  const environment = environments[props.chainId];
8376
8376
  const params = serializeApiParams({
8377
8377
  environment,
8378
- perPage: props.perPage || 10,
8379
- page: props.page || 1,
8380
8378
  request: props.query,
8379
+ page: props.page || 1,
8380
+ perPage: props.perPage || 10,
8381
8381
  });
8382
8382
  const response = await fetch(`${api}/market-manager/search?${params}`, {
8383
8383
  method: 'GET',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azuro-org/toolkit",
3
- "version": "6.0.0-beta.2",
3
+ "version": "6.0.0-beta.3",
4
4
  "description": "This framework-agnostic package provides essential utilities for building applications on the Azuro Protocol.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",