@azuro-org/toolkit 6.0.0 → 6.0.1
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 +26 -26
- package/dist/utils/bet/createBet.d.ts +1 -1
- package/dist/utils/bet/createComboBet.d.ts +1 -1
- package/dist/utils/bet/getBet.d.ts +1 -1
- package/dist/utils/bet/getBetCalculation.d.ts +1 -1
- package/dist/utils/bet/getBetFee.d.ts +1 -1
- package/dist/utils/bet/getBetStatus.d.ts +1 -1
- package/dist/utils/bet/getBetTypedData.d.ts +1 -1
- package/dist/utils/bet/getBetsByBettor.d.ts +1 -1
- package/dist/utils/bet/getComboBetTypedData.d.ts +1 -1
- package/dist/utils/bonus/getAvailableFreebets.d.ts +1 -1
- package/dist/utils/bonus/getBonuses.d.ts +1 -1
- package/dist/utils/calcMinOdds.d.ts +1 -1
- package/dist/utils/cashout/createCashout.d.ts +1 -1
- package/dist/utils/cashout/getCalculatedCashout.d.ts +1 -1
- package/dist/utils/cashout/getCashout.d.ts +1 -1
- package/dist/utils/cashout/getCashoutTypedData.d.ts +1 -1
- package/dist/utils/cashout/getPrecalculatedCashouts.d.ts +1 -1
- package/dist/utils/feed/getConditionsByGameIds.d.ts +1 -1
- package/dist/utils/feed/getConditionsState.d.ts +1 -1
- package/dist/utils/feed/getGamesByFilters.d.ts +1 -1
- package/dist/utils/feed/getGamesByIds.d.ts +1 -1
- package/dist/utils/feed/getNavigation.d.ts +1 -1
- package/dist/utils/feed/getSports.d.ts +1 -1
- package/dist/utils/feed/searchGames.d.ts +1 -1
- package/dist/utils/getIsPendingResolution.d.ts +1 -1
- package/dist/utils/groupConditionsByMarket.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7454,7 +7454,7 @@ const getProviderFromId = (id) => {
|
|
|
7454
7454
|
* Calculates the minimum acceptable odds considering slippage for single or combo bets.
|
|
7455
7455
|
* For combo bets, applies fee modifiers and multiplies individual odds to calculate total odds.
|
|
7456
7456
|
*
|
|
7457
|
-
* - Docs: https://
|
|
7457
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/calcMinOdds
|
|
7458
7458
|
*
|
|
7459
7459
|
* @example
|
|
7460
7460
|
* import { calcMindOdds } from '@azuro-org/toolkit'
|
|
@@ -7502,7 +7502,7 @@ const normalizeTimestampToMs = (timestamp) => {
|
|
|
7502
7502
|
* Determines if a game is pending resolution after completion.
|
|
7503
7503
|
* Returns true if the game is in Live state but has exceeded the expected resolution window (100 minutes after start).
|
|
7504
7504
|
*
|
|
7505
|
-
* - Docs: https://
|
|
7505
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/getIsPendingResolution
|
|
7506
7506
|
*
|
|
7507
7507
|
* @example
|
|
7508
7508
|
* import { getIsPendingResolution, GameState } from '@azuro-org/toolkit'
|
|
@@ -7525,7 +7525,7 @@ const getIsPendingResolution = ({ state, startsAt }) => {
|
|
|
7525
7525
|
* Groups game conditions by their market types and sorts them according to sport-specific ordering.
|
|
7526
7526
|
* It processes outcomes to include selection names, handles duplicate conditions, and organizes data for display.
|
|
7527
7527
|
*
|
|
7528
|
-
* - Docs: https://
|
|
7528
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/groupConditionsByMarket
|
|
7529
7529
|
*
|
|
7530
7530
|
* @example
|
|
7531
7531
|
* import { groupConditionsByMarket } from '@azuro-org/toolkit'
|
|
@@ -7679,7 +7679,7 @@ const filterLastGames = (games) => {
|
|
|
7679
7679
|
* Determines the current status of a bet based on order state, on-chain status, and game states.
|
|
7680
7680
|
* Returns a unified bet status that combines API order state and blockchain data.
|
|
7681
7681
|
*
|
|
7682
|
-
* - Docs: https://
|
|
7682
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetStatus
|
|
7683
7683
|
*
|
|
7684
7684
|
* @example
|
|
7685
7685
|
* import { getBetStatus, BetStatus } from '@azuro-org/toolkit'
|
|
@@ -7728,7 +7728,7 @@ const getBetStatus = (props) => {
|
|
|
7728
7728
|
* Retrieves the current relayer fee information for placing bets on a specific chain.
|
|
7729
7729
|
* Returns gas price, bet token rate, and calculated relayer fee amount.
|
|
7730
7730
|
*
|
|
7731
|
-
* - Docs: https://
|
|
7731
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetFee
|
|
7732
7732
|
*
|
|
7733
7733
|
* @example
|
|
7734
7734
|
* import { getBetFee } from '@azuro-org/toolkit'
|
|
@@ -7753,7 +7753,7 @@ const getBetFee = async (chainId) => {
|
|
|
7753
7753
|
* Generates EIP-712 typed data for signing a single (ordinary) bet.
|
|
7754
7754
|
* This typed data is used with wallet signing methods to create a bet signature.
|
|
7755
7755
|
*
|
|
7756
|
-
* - Docs: https://
|
|
7756
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetTypedData
|
|
7757
7757
|
*
|
|
7758
7758
|
* @example
|
|
7759
7759
|
* import { getBetTypedData } from '@azuro-org/toolkit'
|
|
@@ -7813,7 +7813,7 @@ const getBetTypedData = (props) => {
|
|
|
7813
7813
|
* Generates EIP-712 typed data for signing a combo (parlay) bet.
|
|
7814
7814
|
* This typed data is used with wallet signing methods to create a combo bet signature.
|
|
7815
7815
|
*
|
|
7816
|
-
* - Docs: https://
|
|
7816
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getComboBetTypedData
|
|
7817
7817
|
*
|
|
7818
7818
|
* @example
|
|
7819
7819
|
* import { getComboBetTypedData } from '@azuro-org/toolkit'
|
|
@@ -7875,7 +7875,7 @@ const getComboBetTypedData = (props) => {
|
|
|
7875
7875
|
* Creates a single (ordinary) bet by submitting signed bet data to the Azuro API.
|
|
7876
7876
|
* This function sends the bet order to the relayer which will then place the bet on-chain.
|
|
7877
7877
|
*
|
|
7878
|
-
* - Docs: https://
|
|
7878
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/createBet
|
|
7879
7879
|
*
|
|
7880
7880
|
* @example
|
|
7881
7881
|
* import { createBet } from '@azuro-org/toolkit'
|
|
@@ -7935,7 +7935,7 @@ const createBet = async (props) => {
|
|
|
7935
7935
|
* Creates a combo (parlay) bet by submitting signed bet data to the Azuro API.
|
|
7936
7936
|
* This function sends the combo bet order to the relayer which will then place the bet on-chain.
|
|
7937
7937
|
*
|
|
7938
|
-
* - Docs: https://
|
|
7938
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/createComboBet
|
|
7939
7939
|
*
|
|
7940
7940
|
* @example
|
|
7941
7941
|
* import { createComboBet } from '@azuro-org/toolkit'
|
|
@@ -8000,7 +8000,7 @@ const createComboBet = async (props) => {
|
|
|
8000
8000
|
* Retrieves bet order data by order ID from the Azuro API.
|
|
8001
8001
|
* Returns null if the bet order is not found.
|
|
8002
8002
|
*
|
|
8003
|
-
* - Docs: https://
|
|
8003
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBet
|
|
8004
8004
|
*
|
|
8005
8005
|
* @example
|
|
8006
8006
|
* import { getBet } from '@azuro-org/toolkit'
|
|
@@ -8031,7 +8031,7 @@ const getBet = async ({ chainId, orderId }) => {
|
|
|
8031
8031
|
* User's account is required to provide the **correct** maximum bet amount.
|
|
8032
8032
|
* It may be undefined if the user isn't logged in.
|
|
8033
8033
|
*
|
|
8034
|
-
* - Docs: https://
|
|
8034
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetCalculation
|
|
8035
8035
|
*
|
|
8036
8036
|
* @example
|
|
8037
8037
|
* import { getBetCalculation } from '@azuro-org/toolkit'
|
|
@@ -8090,7 +8090,7 @@ function serializeApiParams(struct) {
|
|
|
8090
8090
|
* Retrieves all bet orders for a specific bettor address with optional filtering.
|
|
8091
8091
|
* Supports pagination and filtering by state, result, affiliate, and redemption status.
|
|
8092
8092
|
*
|
|
8093
|
-
* - Docs: https://
|
|
8093
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetsByBettor
|
|
8094
8094
|
*
|
|
8095
8095
|
* @example
|
|
8096
8096
|
* import { getBetsByBettor } from '@azuro-org/toolkit'
|
|
@@ -8141,7 +8141,7 @@ const getBetsByBettor = async (props) => {
|
|
|
8141
8141
|
* Fetches detailed conditions data for a given list of game IDs.
|
|
8142
8142
|
* Returns comprehensive condition information including outcomes, odds, and game relationships.
|
|
8143
8143
|
*
|
|
8144
|
-
* - Docs: https://
|
|
8144
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getConditionsByGameIds
|
|
8145
8145
|
*
|
|
8146
8146
|
* @example
|
|
8147
8147
|
* import { getConditionsByGameIds } from '@azuro-org/toolkit'
|
|
@@ -8178,7 +8178,7 @@ const getConditionsByGameIds = async (props) => {
|
|
|
8178
8178
|
};/**
|
|
8179
8179
|
* Fetches up-to-date condition states and outcome odds for a list of conditions.
|
|
8180
8180
|
*
|
|
8181
|
-
* - Docs: https://
|
|
8181
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getConditionsState
|
|
8182
8182
|
*
|
|
8183
8183
|
* @example
|
|
8184
8184
|
* import { getConditionsState } from '@azuro-org/toolkit'
|
|
@@ -8218,7 +8218,7 @@ const getConditionsState = async (props) => {
|
|
|
8218
8218
|
* Fetches games by applying various filters such as sport, league, or game state.
|
|
8219
8219
|
* Returns paginated results ideal for building sport/country/league listing pages.
|
|
8220
8220
|
*
|
|
8221
|
-
* - Docs: https://
|
|
8221
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getGamesByFilters
|
|
8222
8222
|
*
|
|
8223
8223
|
* @example
|
|
8224
8224
|
* import { GameState, getGamesByFilters } from '@azuro-org/toolkit'
|
|
@@ -8263,7 +8263,7 @@ const getGamesByFilters = async (props) => {
|
|
|
8263
8263
|
* Fetches game data for a specific list of game IDs.
|
|
8264
8264
|
* Returns detailed information for each requested game including participants, timing, and league data.
|
|
8265
8265
|
*
|
|
8266
|
-
* - Docs: https://
|
|
8266
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getGamesByIds
|
|
8267
8267
|
*
|
|
8268
8268
|
* @example
|
|
8269
8269
|
* import { getGamesByIds } from '@azuro-org/toolkit'
|
|
@@ -8302,7 +8302,7 @@ const getGamesByIds = async (props) => {
|
|
|
8302
8302
|
* Fetches navigation structure with sports, countries, and leagues hierarchy.
|
|
8303
8303
|
* Returns active game counts at each level for building navigation menus.
|
|
8304
8304
|
*
|
|
8305
|
-
* - Docs: https://
|
|
8305
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getNavigation
|
|
8306
8306
|
*
|
|
8307
8307
|
* @example
|
|
8308
8308
|
* import { getNavigation } from '@azuro-org/toolkit'
|
|
@@ -8343,7 +8343,7 @@ const getNavigation = async (props) => {
|
|
|
8343
8343
|
* Fetches a complete sports hierarchy including countries, leagues, and games.
|
|
8344
8344
|
* Returns nested structure with all games organized by sport, country, and league.
|
|
8345
8345
|
*
|
|
8346
|
-
* - Docs: https://
|
|
8346
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getSports
|
|
8347
8347
|
*
|
|
8348
8348
|
* @example
|
|
8349
8349
|
* import { GameState, getSports } from '@azuro-org/toolkit'
|
|
@@ -8387,7 +8387,7 @@ const getSports = async (props) => {
|
|
|
8387
8387
|
* Searches for games by text query across game titles, leagues, and countries.
|
|
8388
8388
|
* The minimum query length is 3 characters. Returns paginated results.
|
|
8389
8389
|
*
|
|
8390
|
-
* - Docs: https://
|
|
8390
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/searchGames
|
|
8391
8391
|
*
|
|
8392
8392
|
* @example
|
|
8393
8393
|
* import { searchGames } from '@azuro-org/toolkit'
|
|
@@ -8533,7 +8533,7 @@ const getWaveLevels = async ({ waveId, chainId } = { waveId: 'active', chainId:
|
|
|
8533
8533
|
* Retrieves precalculated cashout availability and prices for specified conditions.
|
|
8534
8534
|
* Returns margin information and outcome prices for each available condition.
|
|
8535
8535
|
*
|
|
8536
|
-
* - Docs: https://
|
|
8536
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getPrecalculatedCashouts
|
|
8537
8537
|
*
|
|
8538
8538
|
* @example
|
|
8539
8539
|
* import { getPrecalculatedCashouts } from '@azuro-org/toolkit'
|
|
@@ -8583,7 +8583,7 @@ const getPrecalculatedCashouts = async (props) => {
|
|
|
8583
8583
|
* Retrieves the calculated cashout information for a specific bet, including the cashout amount and odds.
|
|
8584
8584
|
* Returns null if no cashout calculation is available for the bet.
|
|
8585
8585
|
*
|
|
8586
|
-
* - Docs: https://
|
|
8586
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCalculatedCashout
|
|
8587
8587
|
*
|
|
8588
8588
|
* @example
|
|
8589
8589
|
* import { getCalculatedCashout } from '@azuro-org/toolkit'
|
|
@@ -8637,7 +8637,7 @@ const getCalculatedCashout = async (props) => {
|
|
|
8637
8637
|
* Generates EIP-712 typed data for signing a cashout order.
|
|
8638
8638
|
* This typed data must be signed by the user before submitting the cashout.
|
|
8639
8639
|
*
|
|
8640
|
-
* - Docs: https://
|
|
8640
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCashoutTypedData
|
|
8641
8641
|
*
|
|
8642
8642
|
* @example
|
|
8643
8643
|
* import { getCashoutTypedData } from '@azuro-org/toolkit'
|
|
@@ -8702,7 +8702,7 @@ const getCashoutTypedData = (props) => {
|
|
|
8702
8702
|
* Creates a cashout order for an existing bet by submitting the signed cashout calculation to the Azuro API.
|
|
8703
8703
|
* This finalizes the cashout process after obtaining a calculation and signing the typed data.
|
|
8704
8704
|
*
|
|
8705
|
-
* - Docs: https://
|
|
8705
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/createCashout
|
|
8706
8706
|
*
|
|
8707
8707
|
* @example
|
|
8708
8708
|
* import { createCashout } from '@azuro-org/toolkit'
|
|
@@ -8754,7 +8754,7 @@ const createCashout = async (props) => {
|
|
|
8754
8754
|
* Retrieves the status and details of a cashout order by its order ID.
|
|
8755
8755
|
* Returns null if the cashout order is not found.
|
|
8756
8756
|
*
|
|
8757
|
-
* - Docs: https://
|
|
8757
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCashout
|
|
8758
8758
|
*
|
|
8759
8759
|
* @example
|
|
8760
8760
|
* import { getCashout } from '@azuro-org/toolkit'
|
|
@@ -8787,7 +8787,7 @@ const getCashout = async ({ chainId, orderId }) => {
|
|
|
8787
8787
|
* Fetches all bonuses for a bettor account filtered by status.
|
|
8788
8788
|
* By default, retrieves only available bonuses. Returns null if no bonuses are found.
|
|
8789
8789
|
*
|
|
8790
|
-
* - Docs: https://
|
|
8790
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bonus/getBonuses
|
|
8791
8791
|
*
|
|
8792
8792
|
* @example
|
|
8793
8793
|
* import { getBonuses, BonusStatus } from '@azuro-org/toolkit'
|
|
@@ -8867,7 +8867,7 @@ const getBonuses = async (props) => {
|
|
|
8867
8867
|
* Retrieves available freebets for a bettor that can be applied to specific bet selections.
|
|
8868
8868
|
* Returns null if no freebets are available for the given selections.
|
|
8869
8869
|
*
|
|
8870
|
-
* - Docs: https://
|
|
8870
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bonus/getAvailableFreebets
|
|
8871
8871
|
*
|
|
8872
8872
|
* @example
|
|
8873
8873
|
* import { getAvailableFreebets } from '@azuro-org/toolkit'
|
|
@@ -18,7 +18,7 @@ export type CreateBetResult = CreateBetResponse;
|
|
|
18
18
|
* Creates a single (ordinary) bet by submitting signed bet data to the Azuro API.
|
|
19
19
|
* This function sends the bet order to the relayer which will then place the bet on-chain.
|
|
20
20
|
*
|
|
21
|
-
* - Docs: https://
|
|
21
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/createBet
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* import { createBet } from '@azuro-org/toolkit'
|
|
@@ -18,7 +18,7 @@ export type CreateComboBetResult = CreateBetResponse;
|
|
|
18
18
|
* Creates a combo (parlay) bet by submitting signed bet data to the Azuro API.
|
|
19
19
|
* This function sends the combo bet order to the relayer which will then place the bet on-chain.
|
|
20
20
|
*
|
|
21
|
-
* - Docs: https://
|
|
21
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/createComboBet
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* import { createComboBet } from '@azuro-org/toolkit'
|
|
@@ -10,7 +10,7 @@ export type GetBetResult = GetBetResponse | null;
|
|
|
10
10
|
* Retrieves bet order data by order ID from the Azuro API.
|
|
11
11
|
* Returns null if the bet order is not found.
|
|
12
12
|
*
|
|
13
|
-
* - Docs: https://
|
|
13
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBet
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* import { getBet } from '@azuro-org/toolkit'
|
|
@@ -20,7 +20,7 @@ export type GetBetCalculationResult = GetBetCalculationResponse['response'];
|
|
|
20
20
|
* User's account is required to provide the **correct** maximum bet amount.
|
|
21
21
|
* It may be undefined if the user isn't logged in.
|
|
22
22
|
*
|
|
23
|
-
* - Docs: https://
|
|
23
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetCalculation
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* import { getBetCalculation } from '@azuro-org/toolkit'
|
|
@@ -17,7 +17,7 @@ export type GetBetFeeResult = BetFeeResponse;
|
|
|
17
17
|
* Retrieves the current relayer fee information for placing bets on a specific chain.
|
|
18
18
|
* Returns gas price, bet token rate, and calculated relayer fee amount.
|
|
19
19
|
*
|
|
20
|
-
* - Docs: https://
|
|
20
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetFee
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* import { getBetFee } from '@azuro-org/toolkit'
|
|
@@ -22,7 +22,7 @@ type Props = {
|
|
|
22
22
|
* Determines the current status of a bet based on order state, on-chain status, and game states.
|
|
23
23
|
* Returns a unified bet status that combines API order state and blockchain data.
|
|
24
24
|
*
|
|
25
|
-
* - Docs: https://
|
|
25
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetStatus
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* import { getBetStatus, BetStatus } from '@azuro-org/toolkit'
|
|
@@ -16,7 +16,7 @@ export type GetBetTypedDataParams = {
|
|
|
16
16
|
* Generates EIP-712 typed data for signing a single (ordinary) bet.
|
|
17
17
|
* This typed data is used with wallet signing methods to create a bet signature.
|
|
18
18
|
*
|
|
19
|
-
* - Docs: https://
|
|
19
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetTypedData
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* import { getBetTypedData } from '@azuro-org/toolkit'
|
|
@@ -23,7 +23,7 @@ export type GetBetsByBettorResult = (BetOrderData & {
|
|
|
23
23
|
* Retrieves all bet orders for a specific bettor address with optional filtering.
|
|
24
24
|
* Supports pagination and filtering by state, result, affiliate, and redemption status.
|
|
25
25
|
*
|
|
26
|
-
* - Docs: https://
|
|
26
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getBetsByBettor
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* import { getBetsByBettor } from '@azuro-org/toolkit'
|
|
@@ -16,7 +16,7 @@ export type GetComboBetTypedDataParams = {
|
|
|
16
16
|
* Generates EIP-712 typed data for signing a combo (parlay) bet.
|
|
17
17
|
* This typed data is used with wallet signing methods to create a combo bet signature.
|
|
18
18
|
*
|
|
19
|
-
* - Docs: https://
|
|
19
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bet/getComboBetTypedData
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* import { getComboBetTypedData } from '@azuro-org/toolkit'
|
|
@@ -18,7 +18,7 @@ export type GetAvailableFreebets = Freebet[] | null;
|
|
|
18
18
|
* Retrieves available freebets for a bettor that can be applied to specific bet selections.
|
|
19
19
|
* Returns null if no freebets are available for the given selections.
|
|
20
20
|
*
|
|
21
|
-
* - Docs: https://
|
|
21
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bonus/getAvailableFreebets
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* import { getAvailableFreebets } from '@azuro-org/toolkit'
|
|
@@ -59,7 +59,7 @@ export type GetBonusesParams = {
|
|
|
59
59
|
* Fetches all bonuses for a bettor account filtered by status.
|
|
60
60
|
* By default, retrieves only available bonuses. Returns null if no bonuses are found.
|
|
61
61
|
*
|
|
62
|
-
* - Docs: https://
|
|
62
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/bonus/getBonuses
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* import { getBonuses, BonusStatus } from '@azuro-org/toolkit'
|
|
@@ -6,7 +6,7 @@ export type CalcMinOddsParams = {
|
|
|
6
6
|
* Calculates the minimum acceptable odds considering slippage for single or combo bets.
|
|
7
7
|
* For combo bets, applies fee modifiers and multiplies individual odds to calculate total odds.
|
|
8
8
|
*
|
|
9
|
-
* - Docs: https://
|
|
9
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/calcMinOdds
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* import { calcMindOdds } from '@azuro-org/toolkit'
|
|
@@ -22,7 +22,7 @@ export type CreateCashoutParams = {
|
|
|
22
22
|
* Creates a cashout order for an existing bet by submitting the signed cashout calculation to the Azuro API.
|
|
23
23
|
* This finalizes the cashout process after obtaining a calculation and signing the typed data.
|
|
24
24
|
*
|
|
25
|
-
* - Docs: https://
|
|
25
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/createCashout
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* import { createCashout } from '@azuro-org/toolkit'
|
|
@@ -23,7 +23,7 @@ export type GetCalculatedCashoutParams = {
|
|
|
23
23
|
* Retrieves the calculated cashout information for a specific bet, including the cashout amount and odds.
|
|
24
24
|
* Returns null if no cashout calculation is available for the bet.
|
|
25
25
|
*
|
|
26
|
-
* - Docs: https://
|
|
26
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCalculatedCashout
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* import { getCalculatedCashout } from '@azuro-org/toolkit'
|
|
@@ -12,7 +12,7 @@ export type GetCashoutParams = {
|
|
|
12
12
|
* Retrieves the status and details of a cashout order by its order ID.
|
|
13
13
|
* Returns null if the cashout order is not found.
|
|
14
14
|
*
|
|
15
|
-
* - Docs: https://
|
|
15
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCashout
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* import { getCashout } from '@azuro-org/toolkit'
|
|
@@ -12,7 +12,7 @@ export type GetCashoutTypedDataParams = {
|
|
|
12
12
|
* Generates EIP-712 typed data for signing a cashout order.
|
|
13
13
|
* This typed data must be signed by the user before submitting the cashout.
|
|
14
14
|
*
|
|
15
|
-
* - Docs: https://
|
|
15
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getCashoutTypedData
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* import { getCashoutTypedData } from '@azuro-org/toolkit'
|
|
@@ -22,7 +22,7 @@ export type GetPrecalculatedCashoutsParams = {
|
|
|
22
22
|
* Retrieves precalculated cashout availability and prices for specified conditions.
|
|
23
23
|
* Returns margin information and outcome prices for each available condition.
|
|
24
24
|
*
|
|
25
|
-
* - Docs: https://
|
|
25
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/cashout/getPrecalculatedCashouts
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* import { getPrecalculatedCashouts } from '@azuro-org/toolkit'
|
|
@@ -34,7 +34,7 @@ export type GetConditionsByGameIdsResponseResult = GetConditionsByGameIdsRespons
|
|
|
34
34
|
* Fetches detailed conditions data for a given list of game IDs.
|
|
35
35
|
* Returns comprehensive condition information including outcomes, odds, and game relationships.
|
|
36
36
|
*
|
|
37
|
-
* - Docs: https://
|
|
37
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getConditionsByGameIds
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* import { getConditionsByGameIds } from '@azuro-org/toolkit'
|
|
@@ -20,7 +20,7 @@ export type GetConditionsStateResult = ConditionsStateResponse['conditions'];
|
|
|
20
20
|
/**
|
|
21
21
|
* Fetches up-to-date condition states and outcome odds for a list of conditions.
|
|
22
22
|
*
|
|
23
|
-
* - Docs: https://
|
|
23
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getConditionsState
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* import { getConditionsState } from '@azuro-org/toolkit'
|
|
@@ -20,7 +20,7 @@ export type GetGamesByFiltersResult = PaginatedGamesResponse;
|
|
|
20
20
|
* Fetches games by applying various filters such as sport, league, or game state.
|
|
21
21
|
* Returns paginated results ideal for building sport/country/league listing pages.
|
|
22
22
|
*
|
|
23
|
-
* - Docs: https://
|
|
23
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getGamesByFilters
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* import { GameState, getGamesByFilters } from '@azuro-org/toolkit'
|
|
@@ -12,7 +12,7 @@ export type GetGamesByIdsResult = GetGamesByIdsResponse['games'];
|
|
|
12
12
|
* Fetches game data for a specific list of game IDs.
|
|
13
13
|
* Returns detailed information for each requested game including participants, timing, and league data.
|
|
14
14
|
*
|
|
15
|
-
* - Docs: https://
|
|
15
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getGamesByIds
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* import { getGamesByIds } from '@azuro-org/toolkit'
|
|
@@ -47,7 +47,7 @@ export type GetNavigationResult = NavigationSportData[];
|
|
|
47
47
|
* Fetches navigation structure with sports, countries, and leagues hierarchy.
|
|
48
48
|
* Returns active game counts at each level for building navigation menus.
|
|
49
49
|
*
|
|
50
|
-
* - Docs: https://
|
|
50
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getNavigation
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* import { getNavigation } from '@azuro-org/toolkit'
|
|
@@ -39,7 +39,7 @@ export type GetSportsResult = GetSportsResponse['sports'];
|
|
|
39
39
|
* Fetches a complete sports hierarchy including countries, leagues, and games.
|
|
40
40
|
* Returns nested structure with all games organized by sport, country, and league.
|
|
41
41
|
*
|
|
42
|
-
* - Docs: https://
|
|
42
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getSports
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
45
|
* import { GameState, getSports } from '@azuro-org/toolkit'
|
|
@@ -14,7 +14,7 @@ export type SearchGamesResult = PaginatedGamesResponse;
|
|
|
14
14
|
* Searches for games by text query across game titles, leagues, and countries.
|
|
15
15
|
* The minimum query length is 3 characters. Returns paginated results.
|
|
16
16
|
*
|
|
17
|
-
* - Docs: https://
|
|
17
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/feed/searchGames
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* import { searchGames } from '@azuro-org/toolkit'
|
|
@@ -7,7 +7,7 @@ export type GetIsPendingResolutionParams = {
|
|
|
7
7
|
* Determines if a game is pending resolution after completion.
|
|
8
8
|
* Returns true if the game is in Live state but has exceeded the expected resolution window (100 minutes after start).
|
|
9
9
|
*
|
|
10
|
-
* - Docs: https://
|
|
10
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/getIsPendingResolution
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* import { getIsPendingResolution, GameState } from '@azuro-org/toolkit'
|
|
@@ -26,7 +26,7 @@ export type GameMarkets = Market[];
|
|
|
26
26
|
* Groups game conditions by their market types and sorts them according to sport-specific ordering.
|
|
27
27
|
* It processes outcomes to include selection names, handles duplicate conditions, and organizes data for display.
|
|
28
28
|
*
|
|
29
|
-
* - Docs: https://
|
|
29
|
+
* - Docs: https://gem.azuro.org/hub/apps/toolkit/utils/groupConditionsByMarket
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* import { groupConditionsByMarket } from '@azuro-org/toolkit'
|
package/package.json
CHANGED