@azuro-org/toolkit 2.0.0 → 4.0.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.
Files changed (66) hide show
  1. package/.eslintrc +166 -0
  2. package/README.md +7 -110
  3. package/codegen.ts +62 -0
  4. package/dist/abis/FreeBet.d.ts +426 -0
  5. package/dist/abis/LP.d.ts +1469 -0
  6. package/dist/abis/LiveCore.d.ts +694 -0
  7. package/dist/abis/PrematchComboCore.d.ts +740 -0
  8. package/dist/abis/PrematchCore.d.ts +819 -0
  9. package/dist/abis/ProxyFront.d.ts +137 -0
  10. package/dist/abis/index.d.ts +6 -0
  11. package/dist/config.d.ts +51 -0
  12. package/dist/docs/index.d.ts +22 -0
  13. package/dist/docs/live/condition.d.ts +28 -0
  14. package/dist/docs/live/conditions.d.ts +29 -0
  15. package/dist/docs/live/fragments/condition.d.ts +20 -0
  16. package/dist/docs/live/types.d.ts +1902 -0
  17. package/dist/docs/prematch/bettors.d.ts +21 -0
  18. package/dist/docs/prematch/condition.d.ts +38 -0
  19. package/dist/docs/prematch/conditions.d.ts +39 -0
  20. package/dist/docs/prematch/conditionsBatch.d.ts +22 -0
  21. package/dist/docs/prematch/fragments/bettor.d.ts +12 -0
  22. package/dist/docs/prematch/fragments/condition.d.ts +30 -0
  23. package/dist/docs/prematch/fragments/liveBet.d.ts +42 -0
  24. package/dist/docs/prematch/fragments/mainGameInfo.d.ts +31 -0
  25. package/dist/docs/prematch/fragments/prematchBet.d.ts +75 -0
  26. package/dist/docs/prematch/game.d.ts +39 -0
  27. package/dist/docs/prematch/gameBets.d.ts +54 -0
  28. package/dist/docs/prematch/games.d.ts +43 -0
  29. package/dist/docs/prematch/liveBets.d.ts +54 -0
  30. package/dist/docs/prematch/navigation.d.ts +34 -0
  31. package/dist/docs/prematch/prematchBets.d.ts +87 -0
  32. package/dist/docs/prematch/sports.d.ts +63 -0
  33. package/dist/docs/prematch/sportsNavigation.d.ts +22 -0
  34. package/dist/docs/prematch/types.d.ts +6307 -0
  35. package/dist/global.d.ts +6 -0
  36. package/dist/helpers/formatToFixed.d.ts +1 -0
  37. package/dist/index.d.ts +24 -1
  38. package/dist/index.js +5705 -0
  39. package/dist/utils/calcMindOdds.d.ts +6 -0
  40. package/dist/utils/calcOdds.d.ts +28 -0
  41. package/dist/utils/deBridge/createDeBridgeBet.d.ts +65 -0
  42. package/dist/utils/deBridge/getDeBridgeOrder.d.ts +39 -0
  43. package/dist/utils/deBridge/getDeBridgeSupportedChains.d.ts +4 -0
  44. package/dist/utils/deBridge/getDeBridgeSupportedTokens.d.ts +8 -0
  45. package/dist/utils/getBetStatus.d.ts +17 -0
  46. package/dist/utils/getEndpoints.d.ts +5 -0
  47. package/dist/utils/getFreebets.d.ts +35 -0
  48. package/dist/utils/getGameStatus.d.ts +16 -0
  49. package/dist/utils/getLiveBetFee.d.ts +14 -0
  50. package/dist/utils/getPrematchBetDataBytes.d.ts +3 -0
  51. package/dist/utils/groupByConditionId.d.ts +5 -0
  52. package/dist/utils/groupConditionsByMarket.d.ts +23 -0
  53. package/dist/utils/setupContracts.d.ts +37 -0
  54. package/dist/utils/wave/activateWave.d.ts +10 -0
  55. package/dist/utils/wave/getWaveLeaderBoard.d.ts +22 -0
  56. package/dist/utils/wave/getWaveLevels.d.ts +26 -0
  57. package/dist/utils/wave/getWavePeriods.d.ts +18 -0
  58. package/dist/utils/wave/getWaveStats.d.ts +30 -0
  59. package/graphql.config.yml +21 -0
  60. package/package.json +24 -8
  61. package/tsconfig.json +25 -10
  62. package/dist/aggregateOutcomesByMarkets.d.ts +0 -27
  63. package/dist/index.es.js +0 -109
  64. package/lib/aggregateOutcomesByMarkets.d.ts +0 -27
  65. package/lib/index.d.ts +0 -1
  66. 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>;