@azuro-org/toolkit 6.0.0-beta.9 → 6.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.
- package/README.md +1 -2
- package/dist/docs/bets/bets.d.ts +2 -1
- package/dist/docs/bets/bettors.d.ts +1 -1
- package/dist/docs/bets/fragments/bet.d.ts +2 -1
- package/dist/docs/bets/fragments/bettor.d.ts +1 -1
- package/dist/docs/bets/fragments/legacyLiveBet.d.ts +1 -1
- package/dist/docs/bets/fragments/legacyPrematchBet.d.ts +1 -1
- package/dist/docs/bets/gameBets.d.ts +2 -2
- package/dist/docs/bets/legacyBets.d.ts +1 -1
- package/dist/docs/bets/types.d.ts +10 -10
- package/dist/docs/legacy-live-feed/games.d.ts +1 -1
- package/dist/docs/legacy-live-feed/types.d.ts +10 -10
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +11 -12
- package/dist/docs/feed/condition.d.ts +0 -33
- package/dist/docs/feed/conditions.d.ts +0 -36
- package/dist/docs/feed/conditionsBatch.d.ts +0 -19
- package/dist/docs/feed/fragments/condition.d.ts +0 -27
- package/dist/docs/feed/fragments/gameInfo.d.ts +0 -40
- package/dist/docs/feed/game.d.ts +0 -46
- package/dist/docs/feed/games.d.ts +0 -50
- package/dist/docs/feed/navigation.d.ts +0 -45
- package/dist/docs/feed/sports.d.ts +0 -72
- package/dist/docs/feed/sportsNavigation.d.ts +0 -23
- package/dist/docs/feed/types.d.ts +0 -2415
- package/dist/helpers/gqlRequest.d.ts +0 -8
package/README.md
CHANGED
|
@@ -14,10 +14,9 @@ npm i --save @azuro-org/toolkit
|
|
|
14
14
|
```
|
|
15
15
|
@azuro-org/dictionaries@^3.0.28
|
|
16
16
|
graphql-tag@^2.12.6
|
|
17
|
-
@wagmi/core@^2.20.3
|
|
18
17
|
viem@^2.37.4
|
|
19
18
|
```
|
|
20
19
|
|
|
21
20
|
## Documentation
|
|
22
21
|
|
|
23
|
-
Package documentation can be found in our [Doc](https://gem.azuro.org/hub/apps/toolkit
|
|
22
|
+
Package documentation can be found in our [Doc](https://gem.azuro.org/hub/apps/toolkit)
|
package/dist/docs/bets/bets.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export type BetsQuery = {
|
|
|
29
29
|
createdAt: string;
|
|
30
30
|
resolvedAt?: string | null;
|
|
31
31
|
txHash: string;
|
|
32
|
+
redeemedAt?: string | null;
|
|
32
33
|
core: {
|
|
33
34
|
__typename?: 'CoreContract';
|
|
34
35
|
address: string;
|
|
@@ -62,4 +63,4 @@ export type BetsQuery = {
|
|
|
62
63
|
} | null;
|
|
63
64
|
}>;
|
|
64
65
|
};
|
|
65
|
-
export declare const BetsDocument: import("graphql").DocumentNode;
|
|
66
|
+
export declare const BetsDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -22,6 +22,7 @@ export type BetFragment = {
|
|
|
22
22
|
createdAt: string;
|
|
23
23
|
resolvedAt?: string | null;
|
|
24
24
|
txHash: string;
|
|
25
|
+
redeemedAt?: string | null;
|
|
25
26
|
core: {
|
|
26
27
|
__typename?: 'CoreContract';
|
|
27
28
|
address: string;
|
|
@@ -54,4 +55,4 @@ export type BetFragment = {
|
|
|
54
55
|
payout: string;
|
|
55
56
|
} | null;
|
|
56
57
|
};
|
|
57
|
-
export declare const BetFragmentDoc: import("graphql").DocumentNode;
|
|
58
|
+
export declare const BetFragmentDoc: import("graphql/language/ast").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Types from './types';
|
|
2
2
|
export type GameBetsQueryVariables = Types.Exact<{
|
|
3
|
-
gameId: Types.Scalars['
|
|
3
|
+
gameId: Types.Scalars['String']['input'];
|
|
4
4
|
actor?: Types.InputMaybe<Types.Scalars['String']['input']>;
|
|
5
5
|
}>;
|
|
6
6
|
export type GameBetsQuery = {
|
|
@@ -78,4 +78,4 @@ export type GameBetsQuery = {
|
|
|
78
78
|
} | null;
|
|
79
79
|
}>;
|
|
80
80
|
};
|
|
81
|
-
export declare const GameBetsDocument: import("graphql").DocumentNode;
|
|
81
|
+
export declare const GameBetsDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -42,24 +42,24 @@ export type Scalars = {
|
|
|
42
42
|
output: number;
|
|
43
43
|
};
|
|
44
44
|
BigDecimal: {
|
|
45
|
-
input:
|
|
46
|
-
output:
|
|
45
|
+
input: string;
|
|
46
|
+
output: string;
|
|
47
47
|
};
|
|
48
48
|
BigInt: {
|
|
49
|
-
input:
|
|
50
|
-
output:
|
|
49
|
+
input: string;
|
|
50
|
+
output: string;
|
|
51
51
|
};
|
|
52
52
|
Bytes: {
|
|
53
|
-
input:
|
|
54
|
-
output:
|
|
53
|
+
input: string;
|
|
54
|
+
output: string;
|
|
55
55
|
};
|
|
56
56
|
Int8: {
|
|
57
|
-
input:
|
|
58
|
-
output:
|
|
57
|
+
input: string;
|
|
58
|
+
output: string;
|
|
59
59
|
};
|
|
60
60
|
Timestamp: {
|
|
61
|
-
input:
|
|
62
|
-
output:
|
|
61
|
+
input: string;
|
|
62
|
+
output: string;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
export type AffiliateMonthly = {
|
|
@@ -42,24 +42,24 @@ export type Scalars = {
|
|
|
42
42
|
output: number;
|
|
43
43
|
};
|
|
44
44
|
BigDecimal: {
|
|
45
|
-
input:
|
|
46
|
-
output:
|
|
45
|
+
input: string;
|
|
46
|
+
output: string;
|
|
47
47
|
};
|
|
48
48
|
BigInt: {
|
|
49
|
-
input:
|
|
50
|
-
output:
|
|
49
|
+
input: string;
|
|
50
|
+
output: string;
|
|
51
51
|
};
|
|
52
52
|
Bytes: {
|
|
53
|
-
input:
|
|
54
|
-
output:
|
|
53
|
+
input: string;
|
|
54
|
+
output: string;
|
|
55
55
|
};
|
|
56
56
|
Int8: {
|
|
57
|
-
input:
|
|
58
|
-
output:
|
|
57
|
+
input: string;
|
|
58
|
+
output: string;
|
|
59
59
|
};
|
|
60
60
|
Timestamp: {
|
|
61
|
-
input:
|
|
62
|
-
output:
|
|
61
|
+
input: string;
|
|
62
|
+
output: string;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
export declare enum Aggregation_Interval {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {bsc,bscTestnet,baseSepolia,base,spicy,chiliz,polygonAmoy,polygon,gnosis}from'viem/chains';import gql from'graphql-tag';import {getMarketKey,getMarketName,getMarketDescription,dictionaries,getSelectionName}from'@azuro-org/dictionaries';import {isAddress,parseUnits,formatUnits}from'viem';var Environment;
|
|
2
2
|
(function (Environment) {
|
|
3
3
|
Environment["GnosisDevXDAI"] = "GnosisDevXDAI";
|
|
4
4
|
Environment["GnosisXDAI"] = "GnosisXDAI";
|
|
@@ -6466,6 +6466,7 @@ var EventRestrictionState;
|
|
|
6466
6466
|
resolvedAt: resolvedBlockTimestamp
|
|
6467
6467
|
txHash: createdTxHash
|
|
6468
6468
|
redeemedTxHash
|
|
6469
|
+
redeemedAt: redeemedBlockTimestamp
|
|
6469
6470
|
affiliate
|
|
6470
6471
|
isRedeemed
|
|
6471
6472
|
isRedeemable
|
|
@@ -6530,8 +6531,8 @@ var EventRestrictionState;
|
|
|
6530
6531
|
}
|
|
6531
6532
|
${LegacyPrematchBetFragmentDoc}
|
|
6532
6533
|
${LegacyLiveBetFragmentDoc}`;const GameBetsDocument = gql `
|
|
6533
|
-
query GameBets($gameId:
|
|
6534
|
-
bets(where: {
|
|
6534
|
+
query GameBets($gameId: String!, $actor: String) {
|
|
6535
|
+
bets(where: {_games_contains: [$gameId], actor: $actor}) {
|
|
6535
6536
|
rawAmount
|
|
6536
6537
|
rawPotentialPayout
|
|
6537
6538
|
result
|
|
@@ -7444,7 +7445,7 @@ const getProviderFromId = (id) => {
|
|
|
7444
7445
|
return +value;
|
|
7445
7446
|
}
|
|
7446
7447
|
const [int, digits] = value.split('.');
|
|
7447
|
-
if (!
|
|
7448
|
+
if (!digits?.length || digits.length < digitsCount) {
|
|
7448
7449
|
return +(int || 0);
|
|
7449
7450
|
}
|
|
7450
7451
|
return +`${int}.${digits.slice(0, digitsCount)}`;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
2
2
|
"name": "@azuro-org/toolkit",
|
|
3
|
-
"version": "6.0.0
|
|
3
|
+
"version": "6.0.0",
|
|
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",
|
|
@@ -41,30 +41,29 @@
|
|
|
41
41
|
"homepage": "https://github.com/Azuro-protocol/toolkit#readme",
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@azuro-org/dictionaries": "^3.0.28",
|
|
44
|
-
"@wagmi/core": "^2.20.3",
|
|
45
44
|
"graphql-tag": "^2.12.6",
|
|
46
45
|
"viem": "^2.37.4"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
48
|
"@babel/core": "^7.17.0",
|
|
50
49
|
"@graphql-codegen/cli": "^4.0.1",
|
|
51
|
-
"@graphql-codegen/near-operation-file-preset": "^
|
|
50
|
+
"@graphql-codegen/near-operation-file-preset": "^5.0.0",
|
|
52
51
|
"@graphql-codegen/typescript": "^4.1.2",
|
|
53
52
|
"@graphql-codegen/typescript-document-nodes": "^4.0.12",
|
|
54
53
|
"@graphql-codegen/typescript-operations": "^4.4.0",
|
|
55
54
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
56
|
-
"@rollup/plugin-json": "^
|
|
57
|
-
"@types/node": "^
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
55
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
56
|
+
"@types/node": "^22.13.14",
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
59
58
|
"builtin-modules": "^3.3.0",
|
|
60
|
-
"eslint": "9.39.
|
|
61
|
-
"eslint-import-resolver-typescript": "^
|
|
62
|
-
"eslint-plugin-import": "^
|
|
59
|
+
"eslint": "9.39.4",
|
|
60
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
61
|
+
"eslint-plugin-import": "^2.32.0",
|
|
63
62
|
"minimist": "^1.2.8",
|
|
64
63
|
"rimraf": "^6.1.3",
|
|
65
|
-
"rollup": "^
|
|
66
|
-
"rollup-plugin-typescript2": "^0.
|
|
67
|
-
"tslib": "^2.
|
|
64
|
+
"rollup": "^4.59.0",
|
|
65
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
66
|
+
"tslib": "^2.8.1",
|
|
68
67
|
"typescript": "^5.8.3"
|
|
69
68
|
}
|
|
70
69
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as Types from './types';
|
|
2
|
-
export type ConditionQueryVariables = Types.Exact<{
|
|
3
|
-
id: Types.Scalars['ID']['input'];
|
|
4
|
-
}>;
|
|
5
|
-
export type ConditionQuery = {
|
|
6
|
-
__typename?: 'Query';
|
|
7
|
-
condition?: {
|
|
8
|
-
__typename?: 'Condition';
|
|
9
|
-
id: string;
|
|
10
|
-
conditionId: string;
|
|
11
|
-
state: Types.ConditionState;
|
|
12
|
-
title?: string | null;
|
|
13
|
-
isExpressForbidden: boolean;
|
|
14
|
-
isPrematchEnabled: boolean;
|
|
15
|
-
isLiveEnabled: boolean;
|
|
16
|
-
margin: string;
|
|
17
|
-
outcomes: Array<{
|
|
18
|
-
__typename?: 'Outcome';
|
|
19
|
-
title?: string | null;
|
|
20
|
-
outcomeId: string;
|
|
21
|
-
odds: string;
|
|
22
|
-
}>;
|
|
23
|
-
game: {
|
|
24
|
-
__typename?: 'Game';
|
|
25
|
-
gameId: string;
|
|
26
|
-
sport: {
|
|
27
|
-
__typename?: 'Sport';
|
|
28
|
-
sportId: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
} | null;
|
|
32
|
-
};
|
|
33
|
-
export declare const ConditionDocument: import("graphql").DocumentNode;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as Types from './types';
|
|
2
|
-
export type ConditionsQueryVariables = Types.Exact<{
|
|
3
|
-
where: Types.Condition_Filter;
|
|
4
|
-
orderBy?: Types.InputMaybe<Types.Condition_OrderBy>;
|
|
5
|
-
orderDirection?: Types.InputMaybe<Types.OrderDirection>;
|
|
6
|
-
}>;
|
|
7
|
-
export type ConditionsQuery = {
|
|
8
|
-
__typename?: 'Query';
|
|
9
|
-
conditions: Array<{
|
|
10
|
-
__typename?: 'Condition';
|
|
11
|
-
wonOutcomeIds?: Array<string> | null;
|
|
12
|
-
id: string;
|
|
13
|
-
conditionId: string;
|
|
14
|
-
state: Types.ConditionState;
|
|
15
|
-
title?: string | null;
|
|
16
|
-
isExpressForbidden: boolean;
|
|
17
|
-
isPrematchEnabled: boolean;
|
|
18
|
-
isLiveEnabled: boolean;
|
|
19
|
-
margin: string;
|
|
20
|
-
outcomes: Array<{
|
|
21
|
-
__typename?: 'Outcome';
|
|
22
|
-
title?: string | null;
|
|
23
|
-
outcomeId: string;
|
|
24
|
-
odds: string;
|
|
25
|
-
}>;
|
|
26
|
-
game: {
|
|
27
|
-
__typename?: 'Game';
|
|
28
|
-
gameId: string;
|
|
29
|
-
sport: {
|
|
30
|
-
__typename?: 'Sport';
|
|
31
|
-
sportId: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
}>;
|
|
35
|
-
};
|
|
36
|
-
export declare const ConditionsDocument: import("graphql").DocumentNode;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as Types from './types';
|
|
2
|
-
export type ConditionsBatchQueryVariables = Types.Exact<{
|
|
3
|
-
conditionFilter?: Types.InputMaybe<Types.Condition_Filter>;
|
|
4
|
-
}>;
|
|
5
|
-
export type ConditionsBatchQuery = {
|
|
6
|
-
__typename?: 'Query';
|
|
7
|
-
conditions: Array<{
|
|
8
|
-
__typename?: 'Condition';
|
|
9
|
-
state: Types.ConditionState;
|
|
10
|
-
conditionId: string;
|
|
11
|
-
outcomes: Array<{
|
|
12
|
-
__typename?: 'Outcome';
|
|
13
|
-
id: string;
|
|
14
|
-
outcomeId: string;
|
|
15
|
-
odds: string;
|
|
16
|
-
}>;
|
|
17
|
-
}>;
|
|
18
|
-
};
|
|
19
|
-
export declare const ConditionsBatchDocument: import("graphql").DocumentNode;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as Types from '../types';
|
|
2
|
-
export type ConditionFragment = {
|
|
3
|
-
__typename?: 'Condition';
|
|
4
|
-
id: string;
|
|
5
|
-
conditionId: string;
|
|
6
|
-
state: Types.ConditionState;
|
|
7
|
-
title?: string | null;
|
|
8
|
-
isExpressForbidden: boolean;
|
|
9
|
-
isPrematchEnabled: boolean;
|
|
10
|
-
isLiveEnabled: boolean;
|
|
11
|
-
margin: string;
|
|
12
|
-
outcomes: Array<{
|
|
13
|
-
__typename?: 'Outcome';
|
|
14
|
-
title?: string | null;
|
|
15
|
-
outcomeId: string;
|
|
16
|
-
odds: string;
|
|
17
|
-
}>;
|
|
18
|
-
game: {
|
|
19
|
-
__typename?: 'Game';
|
|
20
|
-
gameId: string;
|
|
21
|
-
sport: {
|
|
22
|
-
__typename?: 'Sport';
|
|
23
|
-
sportId: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export declare const ConditionFragmentDoc: import("graphql").DocumentNode;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as Types from '../types';
|
|
2
|
-
export type GameInfoFragment = {
|
|
3
|
-
__typename?: 'Game';
|
|
4
|
-
id: string;
|
|
5
|
-
gameId: string;
|
|
6
|
-
slug: string;
|
|
7
|
-
title: string;
|
|
8
|
-
startsAt: string;
|
|
9
|
-
state: Types.GameState;
|
|
10
|
-
turnover: string;
|
|
11
|
-
sport: {
|
|
12
|
-
__typename?: 'Sport';
|
|
13
|
-
sportId: string;
|
|
14
|
-
slug: string;
|
|
15
|
-
name: string;
|
|
16
|
-
sporthub: {
|
|
17
|
-
__typename?: 'SportHub';
|
|
18
|
-
id: string;
|
|
19
|
-
slug: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
league: {
|
|
23
|
-
__typename?: 'League';
|
|
24
|
-
id: string;
|
|
25
|
-
slug: string;
|
|
26
|
-
name: string;
|
|
27
|
-
};
|
|
28
|
-
country: {
|
|
29
|
-
__typename?: 'Country';
|
|
30
|
-
id: string;
|
|
31
|
-
slug: string;
|
|
32
|
-
name: string;
|
|
33
|
-
};
|
|
34
|
-
participants: Array<{
|
|
35
|
-
__typename?: 'Participant';
|
|
36
|
-
image?: string | null;
|
|
37
|
-
name: string;
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
export declare const GameInfoFragmentDoc: import("graphql").DocumentNode;
|
package/dist/docs/feed/game.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as Types from './types';
|
|
2
|
-
export type GameQueryVariables = Types.Exact<{
|
|
3
|
-
id: Types.Scalars['ID']['input'];
|
|
4
|
-
}>;
|
|
5
|
-
export type GameQuery = {
|
|
6
|
-
__typename?: 'Query';
|
|
7
|
-
game?: {
|
|
8
|
-
__typename?: 'Game';
|
|
9
|
-
id: string;
|
|
10
|
-
gameId: string;
|
|
11
|
-
slug: string;
|
|
12
|
-
title: string;
|
|
13
|
-
startsAt: string;
|
|
14
|
-
state: Types.GameState;
|
|
15
|
-
turnover: string;
|
|
16
|
-
sport: {
|
|
17
|
-
__typename?: 'Sport';
|
|
18
|
-
sportId: string;
|
|
19
|
-
slug: string;
|
|
20
|
-
name: string;
|
|
21
|
-
sporthub: {
|
|
22
|
-
__typename?: 'SportHub';
|
|
23
|
-
id: string;
|
|
24
|
-
slug: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
league: {
|
|
28
|
-
__typename?: 'League';
|
|
29
|
-
id: string;
|
|
30
|
-
slug: string;
|
|
31
|
-
name: string;
|
|
32
|
-
};
|
|
33
|
-
country: {
|
|
34
|
-
__typename?: 'Country';
|
|
35
|
-
id: string;
|
|
36
|
-
slug: string;
|
|
37
|
-
name: string;
|
|
38
|
-
};
|
|
39
|
-
participants: Array<{
|
|
40
|
-
__typename?: 'Participant';
|
|
41
|
-
image?: string | null;
|
|
42
|
-
name: string;
|
|
43
|
-
}>;
|
|
44
|
-
} | null;
|
|
45
|
-
};
|
|
46
|
-
export declare const GameDocument: import("graphql").DocumentNode;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as Types from './types';
|
|
2
|
-
export type GamesQueryVariables = Types.Exact<{
|
|
3
|
-
first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
4
|
-
skip?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
5
|
-
where: Types.Game_Filter;
|
|
6
|
-
orderBy?: Types.InputMaybe<Types.Game_OrderBy>;
|
|
7
|
-
orderDirection?: Types.InputMaybe<Types.OrderDirection>;
|
|
8
|
-
}>;
|
|
9
|
-
export type GamesQuery = {
|
|
10
|
-
__typename?: 'Query';
|
|
11
|
-
games: Array<{
|
|
12
|
-
__typename?: 'Game';
|
|
13
|
-
id: string;
|
|
14
|
-
gameId: string;
|
|
15
|
-
slug: string;
|
|
16
|
-
title: string;
|
|
17
|
-
startsAt: string;
|
|
18
|
-
state: Types.GameState;
|
|
19
|
-
turnover: string;
|
|
20
|
-
sport: {
|
|
21
|
-
__typename?: 'Sport';
|
|
22
|
-
sportId: string;
|
|
23
|
-
slug: string;
|
|
24
|
-
name: string;
|
|
25
|
-
sporthub: {
|
|
26
|
-
__typename?: 'SportHub';
|
|
27
|
-
id: string;
|
|
28
|
-
slug: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
league: {
|
|
32
|
-
__typename?: 'League';
|
|
33
|
-
id: string;
|
|
34
|
-
slug: string;
|
|
35
|
-
name: string;
|
|
36
|
-
};
|
|
37
|
-
country: {
|
|
38
|
-
__typename?: 'Country';
|
|
39
|
-
id: string;
|
|
40
|
-
slug: string;
|
|
41
|
-
name: string;
|
|
42
|
-
};
|
|
43
|
-
participants: Array<{
|
|
44
|
-
__typename?: 'Participant';
|
|
45
|
-
image?: string | null;
|
|
46
|
-
name: string;
|
|
47
|
-
}>;
|
|
48
|
-
}>;
|
|
49
|
-
};
|
|
50
|
-
export declare const GamesDocument: import("graphql").DocumentNode;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as Types from './types';
|
|
2
|
-
export type NavigationQueryVariables = Types.Exact<{
|
|
3
|
-
sportFilter?: Types.InputMaybe<Types.Sport_Filter>;
|
|
4
|
-
countryFilter?: Types.InputMaybe<Types.Country_Filter>;
|
|
5
|
-
leagueFilter?: Types.InputMaybe<Types.League_Filter>;
|
|
6
|
-
}>;
|
|
7
|
-
export type NavigationQuery = {
|
|
8
|
-
__typename?: 'Query';
|
|
9
|
-
sports: Array<{
|
|
10
|
-
__typename?: 'Sport';
|
|
11
|
-
id: string;
|
|
12
|
-
slug: string;
|
|
13
|
-
name: string;
|
|
14
|
-
sportId: string;
|
|
15
|
-
activeGamesCount: number;
|
|
16
|
-
activeLiveGamesCount: number;
|
|
17
|
-
activePrematchGamesCount: number;
|
|
18
|
-
sporthub: {
|
|
19
|
-
__typename?: 'SportHub';
|
|
20
|
-
id: string;
|
|
21
|
-
slug: string;
|
|
22
|
-
};
|
|
23
|
-
countries: Array<{
|
|
24
|
-
__typename?: 'Country';
|
|
25
|
-
id: string;
|
|
26
|
-
slug: string;
|
|
27
|
-
name: string;
|
|
28
|
-
turnover: string;
|
|
29
|
-
activeGamesCount: number;
|
|
30
|
-
activeLiveGamesCount: number;
|
|
31
|
-
activePrematchGamesCount: number;
|
|
32
|
-
leagues: Array<{
|
|
33
|
-
__typename?: 'League';
|
|
34
|
-
id: string;
|
|
35
|
-
slug: string;
|
|
36
|
-
name: string;
|
|
37
|
-
turnover: string;
|
|
38
|
-
activeGamesCount: number;
|
|
39
|
-
activeLiveGamesCount: number;
|
|
40
|
-
activePrematchGamesCount: number;
|
|
41
|
-
}>;
|
|
42
|
-
}>;
|
|
43
|
-
}>;
|
|
44
|
-
};
|
|
45
|
-
export declare const NavigationDocument: import("graphql").DocumentNode;
|