@azuro-org/toolkit 3.0.0 → 4.1.0
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/.eslintrc +166 -0
- package/README.md +7 -110
- package/codegen.ts +62 -0
- package/dist/abis/FreeBet.d.ts +426 -0
- package/dist/abis/LP.d.ts +1469 -0
- package/dist/abis/LiveCore.d.ts +694 -0
- package/dist/abis/PrematchComboCore.d.ts +740 -0
- package/dist/abis/PrematchCore.d.ts +819 -0
- package/dist/abis/ProxyFront.d.ts +137 -0
- package/dist/abis/index.d.ts +6 -0
- package/dist/config.d.ts +51 -0
- package/dist/docs/index.d.ts +22 -0
- package/dist/docs/live/condition.d.ts +28 -0
- package/dist/docs/live/conditions.d.ts +29 -0
- package/dist/docs/live/fragments/condition.d.ts +20 -0
- package/dist/docs/live/types.d.ts +1902 -0
- package/dist/docs/prematch/bettors.d.ts +21 -0
- package/dist/docs/prematch/condition.d.ts +40 -0
- package/dist/docs/prematch/conditions.d.ts +41 -0
- package/dist/docs/prematch/conditionsBatch.d.ts +22 -0
- package/dist/docs/prematch/fragments/bettor.d.ts +12 -0
- package/dist/docs/prematch/fragments/condition.d.ts +32 -0
- package/dist/docs/prematch/fragments/liveBet.d.ts +42 -0
- package/dist/docs/prematch/fragments/mainGameInfo.d.ts +31 -0
- package/dist/docs/prematch/fragments/prematchBet.d.ts +75 -0
- package/dist/docs/prematch/game.d.ts +39 -0
- package/dist/docs/prematch/gameBets.d.ts +54 -0
- package/dist/docs/prematch/games.d.ts +43 -0
- package/dist/docs/prematch/liveBets.d.ts +54 -0
- package/dist/docs/prematch/navigation.d.ts +34 -0
- package/dist/docs/prematch/prematchBets.d.ts +87 -0
- package/dist/docs/prematch/sports.d.ts +63 -0
- package/dist/docs/prematch/sportsNavigation.d.ts +22 -0
- package/dist/docs/prematch/types.d.ts +6307 -0
- package/dist/global.d.ts +6 -0
- package/dist/helpers/formatToFixed.d.ts +1 -0
- package/dist/index.d.ts +24 -1
- package/dist/index.js +5709 -0
- package/dist/utils/calcMindOdds.d.ts +6 -0
- package/dist/utils/calcOdds.d.ts +28 -0
- package/dist/utils/deBridge/createDeBridgeBet.d.ts +65 -0
- package/dist/utils/deBridge/getDeBridgeOrder.d.ts +39 -0
- package/dist/utils/deBridge/getDeBridgeSupportedChains.d.ts +4 -0
- package/dist/utils/deBridge/getDeBridgeSupportedTokens.d.ts +8 -0
- package/dist/utils/getBetStatus.d.ts +17 -0
- package/dist/utils/getEndpoints.d.ts +5 -0
- package/dist/utils/getFreebets.d.ts +35 -0
- package/dist/utils/getGameStatus.d.ts +16 -0
- package/dist/utils/getLiveBetFee.d.ts +14 -0
- package/dist/utils/getPrematchBetDataBytes.d.ts +3 -0
- package/dist/utils/groupByConditionId.d.ts +5 -0
- package/dist/utils/groupConditionsByMarket.d.ts +23 -0
- package/dist/utils/setupContracts.d.ts +37 -0
- package/dist/utils/wave/activateWave.d.ts +10 -0
- package/dist/utils/wave/getWaveLeaderBoard.d.ts +22 -0
- package/dist/utils/wave/getWaveLevels.d.ts +26 -0
- package/dist/utils/wave/getWavePeriods.d.ts +18 -0
- package/dist/utils/wave/getWaveStats.d.ts +30 -0
- package/graphql.config.yml +21 -0
- package/package.json +24 -8
- package/tsconfig.json +25 -10
- package/dist/aggregateOutcomesByMarkets.d.ts +0 -25
- package/dist/index.es.js +0 -109
- package/lib/aggregateOutcomesByMarkets.d.ts +0 -25
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -109
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as Types from './types';
|
|
2
|
+
import * as Apollo from '@apollo/client';
|
|
3
|
+
export type SportsQueryVariables = Types.Exact<{
|
|
4
|
+
first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
5
|
+
sportFilter?: Types.InputMaybe<Types.Sport_Filter>;
|
|
6
|
+
countryFilter?: Types.InputMaybe<Types.Country_Filter>;
|
|
7
|
+
leagueFilter?: Types.InputMaybe<Types.League_Filter>;
|
|
8
|
+
gameFilter?: Types.InputMaybe<Types.Game_Filter>;
|
|
9
|
+
gameOrderBy?: Types.InputMaybe<Types.Game_OrderBy>;
|
|
10
|
+
gameOrderDirection?: Types.InputMaybe<Types.OrderDirection>;
|
|
11
|
+
}>;
|
|
12
|
+
export type SportsQuery = {
|
|
13
|
+
__typename?: 'Query';
|
|
14
|
+
sports: Array<{
|
|
15
|
+
__typename?: 'Sport';
|
|
16
|
+
slug: string;
|
|
17
|
+
name: string;
|
|
18
|
+
countries: Array<{
|
|
19
|
+
__typename?: 'Country';
|
|
20
|
+
slug: string;
|
|
21
|
+
name: string;
|
|
22
|
+
turnover: string;
|
|
23
|
+
leagues: Array<{
|
|
24
|
+
__typename?: 'League';
|
|
25
|
+
slug: string;
|
|
26
|
+
name: string;
|
|
27
|
+
turnover: string;
|
|
28
|
+
games: Array<{
|
|
29
|
+
__typename?: 'Game';
|
|
30
|
+
turnover: string;
|
|
31
|
+
id: string;
|
|
32
|
+
gameId: string;
|
|
33
|
+
title?: string | null;
|
|
34
|
+
startsAt: string;
|
|
35
|
+
status: Types.GameStatus;
|
|
36
|
+
sport: {
|
|
37
|
+
__typename?: 'Sport';
|
|
38
|
+
sportId: string;
|
|
39
|
+
slug: string;
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
league: {
|
|
43
|
+
__typename?: 'League';
|
|
44
|
+
slug: string;
|
|
45
|
+
name: string;
|
|
46
|
+
country: {
|
|
47
|
+
__typename?: 'Country';
|
|
48
|
+
slug: string;
|
|
49
|
+
name: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
participants: Array<{
|
|
53
|
+
__typename?: 'Participant';
|
|
54
|
+
image?: string | null;
|
|
55
|
+
name: string;
|
|
56
|
+
}>;
|
|
57
|
+
}>;
|
|
58
|
+
}>;
|
|
59
|
+
}>;
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
export declare const SportsDocument: Apollo.DocumentNode;
|
|
63
|
+
export type SportsQueryResult = Apollo.QueryResult<SportsQuery, SportsQueryVariables>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Types from './types';
|
|
2
|
+
import * as Apollo from '@apollo/client';
|
|
3
|
+
export type SportsNavigationQueryVariables = Types.Exact<{
|
|
4
|
+
first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
5
|
+
where?: Types.InputMaybe<Types.Game_Filter>;
|
|
6
|
+
withGameCount: Types.Scalars['Boolean']['input'];
|
|
7
|
+
}>;
|
|
8
|
+
export type SportsNavigationQuery = {
|
|
9
|
+
__typename?: 'Query';
|
|
10
|
+
sports: Array<{
|
|
11
|
+
__typename?: 'Sport';
|
|
12
|
+
id: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
name: string;
|
|
15
|
+
games?: Array<{
|
|
16
|
+
__typename?: 'Game';
|
|
17
|
+
id: string;
|
|
18
|
+
}>;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export declare const SportsNavigationDocument: Apollo.DocumentNode;
|
|
22
|
+
export type SportsNavigationQueryResult = Apollo.QueryResult<SportsNavigationQuery, SportsNavigationQueryVariables>;
|