@azuro-org/toolkit 5.0.1 → 5.1.0-beta.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/global.d.ts CHANGED
@@ -54,4 +54,30 @@ export type BetClientData = {
54
54
  isFeeSponsored: boolean;
55
55
  isSponsoredBetReturnable: boolean;
56
56
  };
57
+ export declare enum BonusType {
58
+ FreeBet = "FreeBet"
59
+ }
60
+ export declare enum BonusStatus {
61
+ Used = "Used",
62
+ Available = "Available"
63
+ }
64
+ type BonusBase = {
65
+ id: string;
66
+ type: BonusType;
67
+ amount: string;
68
+ status: BonusStatus;
69
+ chainId: ChainId;
70
+ expiresAt: number;
71
+ usedAt: number;
72
+ createdAt: number;
73
+ };
74
+ export type Freebet = {
75
+ type: BonusType.FreeBet;
76
+ params: {
77
+ isBetSponsored: boolean;
78
+ isFeeSponsored: boolean;
79
+ isSponsoredBetReturnable: boolean;
80
+ };
81
+ } & BonusBase;
82
+ export type Bonus = Freebet;
57
83
  export {};
package/dist/index.d.ts CHANGED
@@ -11,7 +11,6 @@ export { getBetFee, type BetFeeResponse } from './utils/getBetFee';
11
11
  export { groupConditionsByMarket, type GameMarkets, type MarketOutcome, type Market } from './utils/groupConditionsByMarket';
12
12
  export { setupContracts, type Contracts } from './utils/setupContracts';
13
13
  export { getFeedGraphqlEndpoint, getBetsGraphqlEndpoint, getApiEndpoint, getSocketEndpoint } from './utils/getEndpoints';
14
- export { getFreeBets, FreeBetStatus, type FreeBet } from './utils/getFreebets';
15
14
  export { getBetTypedData } from './utils/getBetTypedData';
16
15
  export { getComboBetTypedData } from './utils/getComboBetTypedData';
17
16
  export { createBet } from './utils/createBet';
@@ -28,3 +27,5 @@ export { getCalculatedCashout, type GetCalculatedCashout } from './utils/cashout
28
27
  export { getCashoutTypedData } from './utils/cashout/getCashoutTypedData';
29
28
  export { createCashout, CashoutState, type CreateCashoutResponse } from './utils/cashout/createCashout';
30
29
  export { getCashout, type GetCashoutResponse } from './utils/cashout/getCashout';
30
+ export { getBonuses, type GetBonuses } from './utils/bonus/getBonuses';
31
+ export { getAvailableFreebets, type GetAvailableFreebets } from './utils/bonus/getAvailableFreebets';