@azuro-org/toolkit 5.0.0-beta.2 → 5.0.0-beta.4
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/config.d.ts +1 -0
- package/dist/docs/bets/gameBets.d.ts +24 -0
- package/dist/docs/bets/{legacyPrematchBets.d.ts → legacyBets.d.ts} +48 -3
- package/dist/docs/bets/types.d.ts +20 -20
- package/dist/docs/feed/condition.d.ts +1 -0
- package/dist/docs/feed/conditions.d.ts +1 -0
- package/dist/docs/feed/fragments/condition.d.ts +1 -0
- package/dist/docs/feed/fragments/gameInfo.d.ts +1 -0
- package/dist/docs/feed/game.d.ts +1 -0
- package/dist/docs/feed/games.d.ts +1 -0
- package/dist/docs/feed/sports.d.ts +2 -1
- package/dist/docs/feed/types.d.ts +46 -117
- package/dist/docs/index.d.ts +2 -2
- package/dist/docs/legacy-live-feed/games.d.ts +41 -0
- package/dist/docs/legacy-live-feed/types.d.ts +1912 -0
- package/dist/global.d.ts +4 -0
- package/dist/index.js +122 -53
- package/dist/utils/getEndpoints.d.ts +4 -0
- package/dist/utils/groupConditionsByMarket.d.ts +1 -0
- package/package.json +1 -1
- package/dist/docs/bets/fragments/mainGameInfo.d.ts +0 -31
- package/dist/docs/bets/legacyLiveBets.d.ts +0 -57
package/dist/config.d.ts
CHANGED
|
@@ -50,5 +50,29 @@ export type GameBetsQuery = {
|
|
|
50
50
|
};
|
|
51
51
|
}>;
|
|
52
52
|
}>;
|
|
53
|
+
v3Bets: Array<{
|
|
54
|
+
__typename?: 'V3_Bet';
|
|
55
|
+
rawAmount: string;
|
|
56
|
+
rawPotentialPayout: string;
|
|
57
|
+
result?: Types.BetResult | null;
|
|
58
|
+
isCashedOut: boolean;
|
|
59
|
+
selections: Array<{
|
|
60
|
+
__typename?: 'V3_Selection';
|
|
61
|
+
rawOdds: string;
|
|
62
|
+
outcome: {
|
|
63
|
+
__typename?: 'V3_Outcome';
|
|
64
|
+
outcomeId: string;
|
|
65
|
+
condition: {
|
|
66
|
+
__typename?: 'V3_Condition';
|
|
67
|
+
conditionId: string;
|
|
68
|
+
gameId: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
}>;
|
|
72
|
+
freebet?: {
|
|
73
|
+
__typename?: 'Freebet';
|
|
74
|
+
id: string;
|
|
75
|
+
} | null;
|
|
76
|
+
}>;
|
|
53
77
|
};
|
|
54
78
|
export declare const GameBetsDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Types from './types';
|
|
2
|
-
export type
|
|
2
|
+
export type LegacyBetsQueryVariables = Types.Exact<{
|
|
3
3
|
first?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
4
4
|
skip?: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
5
5
|
where: Types.Bet_Filter;
|
|
6
6
|
orderBy?: Types.InputMaybe<Types.Bet_OrderBy>;
|
|
7
7
|
orderDirection?: Types.InputMaybe<Types.OrderDirection>;
|
|
8
8
|
}>;
|
|
9
|
-
export type
|
|
9
|
+
export type LegacyBetsQuery = {
|
|
10
10
|
__typename?: 'Query';
|
|
11
11
|
bets: Array<{
|
|
12
12
|
__typename?: 'Bet';
|
|
@@ -88,5 +88,50 @@ export type LegacyPrematchBetsQuery = {
|
|
|
88
88
|
payout: string;
|
|
89
89
|
} | null;
|
|
90
90
|
}>;
|
|
91
|
+
liveBets: Array<{
|
|
92
|
+
__typename?: 'LiveBet';
|
|
93
|
+
id: string;
|
|
94
|
+
amount: string;
|
|
95
|
+
status: Types.BetStatus;
|
|
96
|
+
potentialPayout: string;
|
|
97
|
+
payout?: string | null;
|
|
98
|
+
result?: Types.BetResult | null;
|
|
99
|
+
odds: string;
|
|
100
|
+
settledOdds?: string | null;
|
|
101
|
+
affiliate?: string | null;
|
|
102
|
+
isRedeemed: boolean;
|
|
103
|
+
isRedeemable: boolean;
|
|
104
|
+
isCashedOut: boolean;
|
|
105
|
+
tokenId: string;
|
|
106
|
+
createdAt: string;
|
|
107
|
+
txHash: string;
|
|
108
|
+
core: {
|
|
109
|
+
__typename?: 'CoreContract';
|
|
110
|
+
address: string;
|
|
111
|
+
liquidityPool: {
|
|
112
|
+
__typename?: 'LiquidityPoolContract';
|
|
113
|
+
address: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
selections: Array<{
|
|
117
|
+
__typename?: 'LiveSelection';
|
|
118
|
+
odds: string;
|
|
119
|
+
result?: Types.SelectionResult | null;
|
|
120
|
+
outcome: {
|
|
121
|
+
__typename?: 'LiveOutcome';
|
|
122
|
+
outcomeId: string;
|
|
123
|
+
condition: {
|
|
124
|
+
__typename?: 'LiveCondition';
|
|
125
|
+
conditionId: string;
|
|
126
|
+
status: Types.ConditionStatus;
|
|
127
|
+
gameId: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
}>;
|
|
131
|
+
cashout?: {
|
|
132
|
+
__typename?: 'Cashout';
|
|
133
|
+
payout: string;
|
|
134
|
+
} | null;
|
|
135
|
+
}>;
|
|
91
136
|
};
|
|
92
|
-
export declare const
|
|
137
|
+
export declare const LegacyBetsDocument: import("graphql/language/ast").DocumentNode;
|
|
@@ -7578,12 +7578,12 @@ export type V3_Bet = {
|
|
|
7578
7578
|
odds: Scalars['BigDecimal']['output'];
|
|
7579
7579
|
owner: Scalars['String']['output'];
|
|
7580
7580
|
payout?: Maybe<Scalars['BigDecimal']['output']>;
|
|
7581
|
-
|
|
7581
|
+
potentialLossLimit: Scalars['BigDecimal']['output'];
|
|
7582
7582
|
potentialPayout: Scalars['BigDecimal']['output'];
|
|
7583
7583
|
rawAmount: Scalars['BigInt']['output'];
|
|
7584
7584
|
rawOdds: Scalars['BigInt']['output'];
|
|
7585
7585
|
rawPayout?: Maybe<Scalars['BigInt']['output']>;
|
|
7586
|
-
|
|
7586
|
+
rawPotentialLossLimit: Scalars['BigInt']['output'];
|
|
7587
7587
|
rawPotentialPayout: Scalars['BigInt']['output'];
|
|
7588
7588
|
rawSettledOdds?: Maybe<Scalars['BigInt']['output']>;
|
|
7589
7589
|
redeemedBlockNumber?: Maybe<Scalars['BigInt']['output']>;
|
|
@@ -7928,14 +7928,6 @@ export type V3_Bet_Filter = {
|
|
|
7928
7928
|
owner_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
7929
7929
|
owner_starts_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
7930
7930
|
payout?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7931
|
-
payoutLimit?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7932
|
-
payoutLimit_gt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7933
|
-
payoutLimit_gte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7934
|
-
payoutLimit_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
7935
|
-
payoutLimit_lt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7936
|
-
payoutLimit_lte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7937
|
-
payoutLimit_not?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7938
|
-
payoutLimit_not_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
7939
7931
|
payout_gt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7940
7932
|
payout_gte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7941
7933
|
payout_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
@@ -7943,6 +7935,14 @@ export type V3_Bet_Filter = {
|
|
|
7943
7935
|
payout_lte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7944
7936
|
payout_not?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7945
7937
|
payout_not_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
7938
|
+
potentialLossLimit?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7939
|
+
potentialLossLimit_gt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7940
|
+
potentialLossLimit_gte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7941
|
+
potentialLossLimit_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
7942
|
+
potentialLossLimit_lt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7943
|
+
potentialLossLimit_lte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7944
|
+
potentialLossLimit_not?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7945
|
+
potentialLossLimit_not_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
7946
7946
|
potentialPayout?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7947
7947
|
potentialPayout_gt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
7948
7948
|
potentialPayout_gte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
@@ -7968,14 +7968,6 @@ export type V3_Bet_Filter = {
|
|
|
7968
7968
|
rawOdds_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7969
7969
|
rawOdds_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
7970
7970
|
rawPayout?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7971
|
-
rawPayoutLimit?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7972
|
-
rawPayoutLimit_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7973
|
-
rawPayoutLimit_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7974
|
-
rawPayoutLimit_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
7975
|
-
rawPayoutLimit_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7976
|
-
rawPayoutLimit_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7977
|
-
rawPayoutLimit_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7978
|
-
rawPayoutLimit_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
7979
7971
|
rawPayout_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7980
7972
|
rawPayout_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7981
7973
|
rawPayout_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
@@ -7983,6 +7975,14 @@ export type V3_Bet_Filter = {
|
|
|
7983
7975
|
rawPayout_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7984
7976
|
rawPayout_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7985
7977
|
rawPayout_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
7978
|
+
rawPotentialLossLimit?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7979
|
+
rawPotentialLossLimit_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7980
|
+
rawPotentialLossLimit_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7981
|
+
rawPotentialLossLimit_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
7982
|
+
rawPotentialLossLimit_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7983
|
+
rawPotentialLossLimit_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7984
|
+
rawPotentialLossLimit_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7985
|
+
rawPotentialLossLimit_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
7986
7986
|
rawPotentialPayout?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7987
7987
|
rawPotentialPayout_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7988
7988
|
rawPotentialPayout_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
@@ -8124,12 +8124,12 @@ export declare enum V3_Bet_OrderBy {
|
|
|
8124
8124
|
Odds = "odds",
|
|
8125
8125
|
Owner = "owner",
|
|
8126
8126
|
Payout = "payout",
|
|
8127
|
-
|
|
8127
|
+
PotentialLossLimit = "potentialLossLimit",
|
|
8128
8128
|
PotentialPayout = "potentialPayout",
|
|
8129
8129
|
RawAmount = "rawAmount",
|
|
8130
8130
|
RawOdds = "rawOdds",
|
|
8131
8131
|
RawPayout = "rawPayout",
|
|
8132
|
-
|
|
8132
|
+
RawPotentialLossLimit = "rawPotentialLossLimit",
|
|
8133
8133
|
RawPotentialPayout = "rawPotentialPayout",
|
|
8134
8134
|
RawSettledOdds = "rawSettledOdds",
|
|
8135
8135
|
RedeemedBlockNumber = "redeemedBlockNumber",
|
package/dist/docs/feed/game.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type SportsQuery = {
|
|
|
16
16
|
slug: string;
|
|
17
17
|
name: string;
|
|
18
18
|
sportId: string;
|
|
19
|
+
turnover: string;
|
|
19
20
|
countries: Array<{
|
|
20
21
|
__typename?: 'Country';
|
|
21
22
|
slug: string;
|
|
@@ -28,12 +29,12 @@ export type SportsQuery = {
|
|
|
28
29
|
turnover: string;
|
|
29
30
|
games: Array<{
|
|
30
31
|
__typename?: 'Game';
|
|
31
|
-
turnover: string;
|
|
32
32
|
id: string;
|
|
33
33
|
gameId: string;
|
|
34
34
|
title: string;
|
|
35
35
|
startsAt: string;
|
|
36
36
|
state: Types.GameState;
|
|
37
|
+
turnover: string;
|
|
37
38
|
sport: {
|
|
38
39
|
__typename?: 'Sport';
|
|
39
40
|
sportId: string;
|
|
@@ -76,6 +76,9 @@ export type Block_Height = {
|
|
|
76
76
|
};
|
|
77
77
|
export type Condition = {
|
|
78
78
|
__typename?: 'Condition';
|
|
79
|
+
_isCustomSettings: Scalars['Boolean']['output'];
|
|
80
|
+
_maxLiveConditionPotentialLoss?: Maybe<Scalars['BigDecimal']['output']>;
|
|
81
|
+
_maxLiveOutcomePotentialLoss?: Maybe<Scalars['BigDecimal']['output']>;
|
|
79
82
|
_updatedAt: Scalars['BigInt']['output'];
|
|
80
83
|
conditionId: Scalars['BigInt']['output'];
|
|
81
84
|
createdBlockNumber: Scalars['BigInt']['output'];
|
|
@@ -88,6 +91,7 @@ export type Condition = {
|
|
|
88
91
|
isExpressForbidden: Scalars['Boolean']['output'];
|
|
89
92
|
isLiveEnabled: Scalars['Boolean']['output'];
|
|
90
93
|
isPrematchEnabled: Scalars['Boolean']['output'];
|
|
94
|
+
margin: Scalars['BigDecimal']['output'];
|
|
91
95
|
maxConditionPotentialLoss: Scalars['BigDecimal']['output'];
|
|
92
96
|
maxOutcomePotentialLoss: Scalars['BigDecimal']['output'];
|
|
93
97
|
outcomes: Array<Outcome>;
|
|
@@ -129,6 +133,26 @@ export declare enum ConditionState {
|
|
|
129
133
|
export type Condition_Filter = {
|
|
130
134
|
/** Filter for the block changed event. */
|
|
131
135
|
_change_block?: InputMaybe<BlockChangedFilter>;
|
|
136
|
+
_isCustomSettings?: InputMaybe<Scalars['Boolean']['input']>;
|
|
137
|
+
_isCustomSettings_in?: InputMaybe<Array<Scalars['Boolean']['input']>>;
|
|
138
|
+
_isCustomSettings_not?: InputMaybe<Scalars['Boolean']['input']>;
|
|
139
|
+
_isCustomSettings_not_in?: InputMaybe<Array<Scalars['Boolean']['input']>>;
|
|
140
|
+
_maxLiveConditionPotentialLoss?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
141
|
+
_maxLiveConditionPotentialLoss_gt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
142
|
+
_maxLiveConditionPotentialLoss_gte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
143
|
+
_maxLiveConditionPotentialLoss_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
144
|
+
_maxLiveConditionPotentialLoss_lt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
145
|
+
_maxLiveConditionPotentialLoss_lte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
146
|
+
_maxLiveConditionPotentialLoss_not?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
147
|
+
_maxLiveConditionPotentialLoss_not_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
148
|
+
_maxLiveOutcomePotentialLoss?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
149
|
+
_maxLiveOutcomePotentialLoss_gt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
150
|
+
_maxLiveOutcomePotentialLoss_gte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
151
|
+
_maxLiveOutcomePotentialLoss_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
152
|
+
_maxLiveOutcomePotentialLoss_lt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
153
|
+
_maxLiveOutcomePotentialLoss_lte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
154
|
+
_maxLiveOutcomePotentialLoss_not?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
155
|
+
_maxLiveOutcomePotentialLoss_not_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
132
156
|
_updatedAt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
133
157
|
_updatedAt_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
134
158
|
_updatedAt_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
@@ -231,6 +255,14 @@ export type Condition_Filter = {
|
|
|
231
255
|
isPrematchEnabled_in?: InputMaybe<Array<Scalars['Boolean']['input']>>;
|
|
232
256
|
isPrematchEnabled_not?: InputMaybe<Scalars['Boolean']['input']>;
|
|
233
257
|
isPrematchEnabled_not_in?: InputMaybe<Array<Scalars['Boolean']['input']>>;
|
|
258
|
+
margin?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
259
|
+
margin_gt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
260
|
+
margin_gte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
261
|
+
margin_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
262
|
+
margin_lt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
263
|
+
margin_lte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
264
|
+
margin_not?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
265
|
+
margin_not_in?: InputMaybe<Array<Scalars['BigDecimal']['input']>>;
|
|
234
266
|
maxConditionPotentialLoss?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
235
267
|
maxConditionPotentialLoss_gt?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
236
268
|
maxConditionPotentialLoss_gte?: InputMaybe<Scalars['BigDecimal']['input']>;
|
|
@@ -358,6 +390,9 @@ export type Condition_Filter = {
|
|
|
358
390
|
wonOutcomes_not_contains_nocase?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
359
391
|
};
|
|
360
392
|
export declare enum Condition_OrderBy {
|
|
393
|
+
IsCustomSettings = "_isCustomSettings",
|
|
394
|
+
MaxLiveConditionPotentialLoss = "_maxLiveConditionPotentialLoss",
|
|
395
|
+
MaxLiveOutcomePotentialLoss = "_maxLiveOutcomePotentialLoss",
|
|
361
396
|
UpdatedAt = "_updatedAt",
|
|
362
397
|
ConditionId = "conditionId",
|
|
363
398
|
CreatedBlockNumber = "createdBlockNumber",
|
|
@@ -369,6 +404,7 @@ export declare enum Condition_OrderBy {
|
|
|
369
404
|
IsExpressForbidden = "isExpressForbidden",
|
|
370
405
|
IsLiveEnabled = "isLiveEnabled",
|
|
371
406
|
IsPrematchEnabled = "isPrematchEnabled",
|
|
407
|
+
Margin = "margin",
|
|
372
408
|
MaxConditionPotentialLoss = "maxConditionPotentialLoss",
|
|
373
409
|
MaxOutcomePotentialLoss = "maxOutcomePotentialLoss",
|
|
374
410
|
Outcomes = "outcomes",
|
|
@@ -695,6 +731,7 @@ export type Game = {
|
|
|
695
731
|
__typename?: 'Game';
|
|
696
732
|
_providerTitle?: Maybe<Scalars['String']['output']>;
|
|
697
733
|
_updatedAt: Scalars['BigInt']['output'];
|
|
734
|
+
activeAndStoppedConditionsCount: Scalars['Int']['output'];
|
|
698
735
|
activeConditionsCount: Scalars['Int']['output'];
|
|
699
736
|
conditions: Array<Condition>;
|
|
700
737
|
conditionsCount: Scalars['Int']['output'];
|
|
@@ -773,6 +810,14 @@ export type Game_Filter = {
|
|
|
773
810
|
_updatedAt_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
774
811
|
_updatedAt_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
775
812
|
_updatedAt_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
813
|
+
activeAndStoppedConditionsCount?: InputMaybe<Scalars['Int']['input']>;
|
|
814
|
+
activeAndStoppedConditionsCount_gt?: InputMaybe<Scalars['Int']['input']>;
|
|
815
|
+
activeAndStoppedConditionsCount_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
816
|
+
activeAndStoppedConditionsCount_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
817
|
+
activeAndStoppedConditionsCount_lt?: InputMaybe<Scalars['Int']['input']>;
|
|
818
|
+
activeAndStoppedConditionsCount_lte?: InputMaybe<Scalars['Int']['input']>;
|
|
819
|
+
activeAndStoppedConditionsCount_not?: InputMaybe<Scalars['Int']['input']>;
|
|
820
|
+
activeAndStoppedConditionsCount_not_in?: InputMaybe<Array<Scalars['Int']['input']>>;
|
|
776
821
|
activeConditionsCount?: InputMaybe<Scalars['Int']['input']>;
|
|
777
822
|
activeConditionsCount_gt?: InputMaybe<Scalars['Int']['input']>;
|
|
778
823
|
activeConditionsCount_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1036,6 +1081,7 @@ export type Game_Filter = {
|
|
|
1036
1081
|
export declare enum Game_OrderBy {
|
|
1037
1082
|
ProviderTitle = "_providerTitle",
|
|
1038
1083
|
UpdatedAt = "_updatedAt",
|
|
1084
|
+
ActiveAndStoppedConditionsCount = "activeAndStoppedConditionsCount",
|
|
1039
1085
|
ActiveConditionsCount = "activeConditionsCount",
|
|
1040
1086
|
Conditions = "conditions",
|
|
1041
1087
|
ConditionsCount = "conditionsCount",
|
|
@@ -1253,91 +1299,6 @@ export declare enum League_OrderBy {
|
|
|
1253
1299
|
TotalTurnover = "totalTurnover",
|
|
1254
1300
|
Turnover = "turnover"
|
|
1255
1301
|
}
|
|
1256
|
-
export type OffchainEvent = {
|
|
1257
|
-
__typename?: 'OffchainEvent';
|
|
1258
|
-
block: Scalars['BigInt']['output'];
|
|
1259
|
-
data: Scalars['String']['output'];
|
|
1260
|
-
id: Scalars['ID']['output'];
|
|
1261
|
-
name?: Maybe<Scalars['String']['output']>;
|
|
1262
|
-
timestamp: Scalars['BigInt']['output'];
|
|
1263
|
-
};
|
|
1264
|
-
export type OffchainEvent_Filter = {
|
|
1265
|
-
/** Filter for the block changed event. */
|
|
1266
|
-
_change_block?: InputMaybe<BlockChangedFilter>;
|
|
1267
|
-
and?: InputMaybe<Array<InputMaybe<OffchainEvent_Filter>>>;
|
|
1268
|
-
block?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1269
|
-
block_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1270
|
-
block_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1271
|
-
block_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
1272
|
-
block_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1273
|
-
block_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1274
|
-
block_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1275
|
-
block_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
1276
|
-
data?: InputMaybe<Scalars['String']['input']>;
|
|
1277
|
-
data_contains?: InputMaybe<Scalars['String']['input']>;
|
|
1278
|
-
data_contains_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1279
|
-
data_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
1280
|
-
data_ends_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1281
|
-
data_gt?: InputMaybe<Scalars['String']['input']>;
|
|
1282
|
-
data_gte?: InputMaybe<Scalars['String']['input']>;
|
|
1283
|
-
data_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1284
|
-
data_lt?: InputMaybe<Scalars['String']['input']>;
|
|
1285
|
-
data_lte?: InputMaybe<Scalars['String']['input']>;
|
|
1286
|
-
data_not?: InputMaybe<Scalars['String']['input']>;
|
|
1287
|
-
data_not_contains?: InputMaybe<Scalars['String']['input']>;
|
|
1288
|
-
data_not_contains_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1289
|
-
data_not_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
1290
|
-
data_not_ends_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1291
|
-
data_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1292
|
-
data_not_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
1293
|
-
data_not_starts_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1294
|
-
data_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
1295
|
-
data_starts_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1296
|
-
id?: InputMaybe<Scalars['ID']['input']>;
|
|
1297
|
-
id_gt?: InputMaybe<Scalars['ID']['input']>;
|
|
1298
|
-
id_gte?: InputMaybe<Scalars['ID']['input']>;
|
|
1299
|
-
id_in?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
1300
|
-
id_lt?: InputMaybe<Scalars['ID']['input']>;
|
|
1301
|
-
id_lte?: InputMaybe<Scalars['ID']['input']>;
|
|
1302
|
-
id_not?: InputMaybe<Scalars['ID']['input']>;
|
|
1303
|
-
id_not_in?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
1304
|
-
name?: InputMaybe<Scalars['String']['input']>;
|
|
1305
|
-
name_contains?: InputMaybe<Scalars['String']['input']>;
|
|
1306
|
-
name_contains_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1307
|
-
name_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
1308
|
-
name_ends_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1309
|
-
name_gt?: InputMaybe<Scalars['String']['input']>;
|
|
1310
|
-
name_gte?: InputMaybe<Scalars['String']['input']>;
|
|
1311
|
-
name_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1312
|
-
name_lt?: InputMaybe<Scalars['String']['input']>;
|
|
1313
|
-
name_lte?: InputMaybe<Scalars['String']['input']>;
|
|
1314
|
-
name_not?: InputMaybe<Scalars['String']['input']>;
|
|
1315
|
-
name_not_contains?: InputMaybe<Scalars['String']['input']>;
|
|
1316
|
-
name_not_contains_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1317
|
-
name_not_ends_with?: InputMaybe<Scalars['String']['input']>;
|
|
1318
|
-
name_not_ends_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1319
|
-
name_not_in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1320
|
-
name_not_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
1321
|
-
name_not_starts_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1322
|
-
name_starts_with?: InputMaybe<Scalars['String']['input']>;
|
|
1323
|
-
name_starts_with_nocase?: InputMaybe<Scalars['String']['input']>;
|
|
1324
|
-
or?: InputMaybe<Array<InputMaybe<OffchainEvent_Filter>>>;
|
|
1325
|
-
timestamp?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1326
|
-
timestamp_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1327
|
-
timestamp_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1328
|
-
timestamp_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
1329
|
-
timestamp_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1330
|
-
timestamp_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1331
|
-
timestamp_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
1332
|
-
timestamp_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
1333
|
-
};
|
|
1334
|
-
export declare enum OffchainEvent_OrderBy {
|
|
1335
|
-
Block = "block",
|
|
1336
|
-
Data = "data",
|
|
1337
|
-
Id = "id",
|
|
1338
|
-
Name = "name",
|
|
1339
|
-
Timestamp = "timestamp"
|
|
1340
|
-
}
|
|
1341
1302
|
/** Defines the order direction, either ascending or descending */
|
|
1342
1303
|
export declare enum OrderDirection {
|
|
1343
1304
|
Asc = "asc",
|
|
@@ -1623,8 +1584,6 @@ export type Query = {
|
|
|
1623
1584
|
games: Array<Game>;
|
|
1624
1585
|
league?: Maybe<League>;
|
|
1625
1586
|
leagues: Array<League>;
|
|
1626
|
-
offchainEvent?: Maybe<OffchainEvent>;
|
|
1627
|
-
offchainEvents: Array<OffchainEvent>;
|
|
1628
1587
|
outcome?: Maybe<Outcome>;
|
|
1629
1588
|
outcomes: Array<Outcome>;
|
|
1630
1589
|
participant?: Maybe<Participant>;
|
|
@@ -1711,20 +1670,6 @@ export type QueryLeaguesArgs = {
|
|
|
1711
1670
|
subgraphError?: _SubgraphErrorPolicy_;
|
|
1712
1671
|
where?: InputMaybe<League_Filter>;
|
|
1713
1672
|
};
|
|
1714
|
-
export type QueryOffchainEventArgs = {
|
|
1715
|
-
block?: InputMaybe<Block_Height>;
|
|
1716
|
-
id: Scalars['ID']['input'];
|
|
1717
|
-
subgraphError?: _SubgraphErrorPolicy_;
|
|
1718
|
-
};
|
|
1719
|
-
export type QueryOffchainEventsArgs = {
|
|
1720
|
-
block?: InputMaybe<Block_Height>;
|
|
1721
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
1722
|
-
orderBy?: InputMaybe<OffchainEvent_OrderBy>;
|
|
1723
|
-
orderDirection?: InputMaybe<OrderDirection>;
|
|
1724
|
-
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
1725
|
-
subgraphError?: _SubgraphErrorPolicy_;
|
|
1726
|
-
where?: InputMaybe<OffchainEvent_Filter>;
|
|
1727
|
-
};
|
|
1728
1673
|
export type QueryOutcomeArgs = {
|
|
1729
1674
|
block?: InputMaybe<Block_Height>;
|
|
1730
1675
|
id: Scalars['ID']['input'];
|
|
@@ -2156,8 +2101,6 @@ export type Subscription = {
|
|
|
2156
2101
|
games: Array<Game>;
|
|
2157
2102
|
league?: Maybe<League>;
|
|
2158
2103
|
leagues: Array<League>;
|
|
2159
|
-
offchainEvent?: Maybe<OffchainEvent>;
|
|
2160
|
-
offchainEvents: Array<OffchainEvent>;
|
|
2161
2104
|
outcome?: Maybe<Outcome>;
|
|
2162
2105
|
outcomes: Array<Outcome>;
|
|
2163
2106
|
participant?: Maybe<Participant>;
|
|
@@ -2244,20 +2187,6 @@ export type SubscriptionLeaguesArgs = {
|
|
|
2244
2187
|
subgraphError?: _SubgraphErrorPolicy_;
|
|
2245
2188
|
where?: InputMaybe<League_Filter>;
|
|
2246
2189
|
};
|
|
2247
|
-
export type SubscriptionOffchainEventArgs = {
|
|
2248
|
-
block?: InputMaybe<Block_Height>;
|
|
2249
|
-
id: Scalars['ID']['input'];
|
|
2250
|
-
subgraphError?: _SubgraphErrorPolicy_;
|
|
2251
|
-
};
|
|
2252
|
-
export type SubscriptionOffchainEventsArgs = {
|
|
2253
|
-
block?: InputMaybe<Block_Height>;
|
|
2254
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2255
|
-
orderBy?: InputMaybe<OffchainEvent_OrderBy>;
|
|
2256
|
-
orderDirection?: InputMaybe<OrderDirection>;
|
|
2257
|
-
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2258
|
-
subgraphError?: _SubgraphErrorPolicy_;
|
|
2259
|
-
where?: InputMaybe<OffchainEvent_Filter>;
|
|
2260
|
-
};
|
|
2261
2190
|
export type SubscriptionOutcomeArgs = {
|
|
2262
2191
|
block?: InputMaybe<Block_Height>;
|
|
2263
2192
|
id: Scalars['ID']['input'];
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ export * from './bets/fragments/legacyLiveBet';
|
|
|
3
3
|
export * from './bets/fragments/legacyPrematchBet';
|
|
4
4
|
export * from './bets/fragments/bet';
|
|
5
5
|
export * from './bets/bettors';
|
|
6
|
-
export * from './bets/
|
|
7
|
-
export * from './bets/legacyPrematchBets';
|
|
6
|
+
export * from './bets/legacyBets';
|
|
8
7
|
export * from './bets/gameBets';
|
|
9
8
|
export * from './bets/bets';
|
|
10
9
|
export * from './feed/fragments/condition';
|
|
@@ -17,5 +16,6 @@ export * from './feed/games';
|
|
|
17
16
|
export * from './feed/navigation';
|
|
18
17
|
export * from './feed/sports';
|
|
19
18
|
export * from './feed/sportsNavigation';
|
|
19
|
+
export * from './legacy-live-feed/games';
|
|
20
20
|
export { BetResult, Bet_OrderBy as Legacy_Bet_OrderBy, GameStatus as LegacyGameStatus, SelectionResult, BetStatus as GraphBetStatus, V3_Bet_OrderBy as Bet_OrderBy, ConditionStatus as BetConditionStatus, } from './bets/types';
|
|
21
21
|
export { type Condition_Filter, Game_OrderBy, ConditionState, OrderDirection, GameState, Condition_OrderBy, } from './feed/types';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as Types from './types';
|
|
2
|
+
export type LegacyLiveGamesQueryVariables = 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 LegacyLiveGamesQuery = {
|
|
10
|
+
__typename?: 'Query';
|
|
11
|
+
games: Array<{
|
|
12
|
+
__typename?: 'Game';
|
|
13
|
+
id: string;
|
|
14
|
+
gameId: string;
|
|
15
|
+
title?: string | null;
|
|
16
|
+
startsAt: string;
|
|
17
|
+
status: Types.GameStatus;
|
|
18
|
+
sport: {
|
|
19
|
+
__typename?: 'Sport';
|
|
20
|
+
sportId: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
24
|
+
league: {
|
|
25
|
+
__typename?: 'League';
|
|
26
|
+
slug: string;
|
|
27
|
+
name: string;
|
|
28
|
+
country: {
|
|
29
|
+
__typename?: 'Country';
|
|
30
|
+
slug: string;
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
participants: Array<{
|
|
35
|
+
__typename?: 'Participant';
|
|
36
|
+
image?: string | null;
|
|
37
|
+
name: string;
|
|
38
|
+
}>;
|
|
39
|
+
}>;
|
|
40
|
+
};
|
|
41
|
+
export declare const LegacyLiveGamesDocument: import("graphql/language/ast").DocumentNode;
|