@ludo.ninja/api 3.0.31 → 3.0.33
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/build/graphql_tools/__generated__/adminHost/schema.d.ts +2 -1
- package/build/graphql_tools/__generated__/adminHost/schema.js +1 -0
- package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +15 -5
- package/build/graphql_tools/__generated__/extensionHost/schema.js +5 -0
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +164 -4
- package/build/graphql_tools/__generated__/searchHost/schema.js +95 -2
- package/build/index.d.ts +31 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +2 -1
- package/src/graphql_tools/__generated__/extensionHost/schema.ts +19 -4
- package/src/graphql_tools/__generated__/searchHost/schema.ts +208 -4
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -526,7 +526,8 @@ export type IMutationChangeXpPointsArgs = {
|
|
|
526
526
|
export declare enum INotificationDestination {
|
|
527
527
|
Webapp = "WEBAPP",
|
|
528
528
|
Ludox = "LUDOX",
|
|
529
|
-
Telegram = "TELEGRAM"
|
|
529
|
+
Telegram = "TELEGRAM",
|
|
530
|
+
TapToEarnGame = "TAP_TO_EARN_GAME"
|
|
530
531
|
}
|
|
531
532
|
export type INumberRangeInput = {
|
|
532
533
|
start?: Maybe<Scalars['Int']>;
|
|
@@ -46,6 +46,7 @@ var INotificationDestination;
|
|
|
46
46
|
INotificationDestination["Webapp"] = "WEBAPP";
|
|
47
47
|
INotificationDestination["Ludox"] = "LUDOX";
|
|
48
48
|
INotificationDestination["Telegram"] = "TELEGRAM";
|
|
49
|
+
INotificationDestination["TapToEarnGame"] = "TAP_TO_EARN_GAME";
|
|
49
50
|
})(INotificationDestination || (exports.INotificationDestination = INotificationDestination = {}));
|
|
50
51
|
var IOpportunityType;
|
|
51
52
|
(function (IOpportunityType) {
|
|
@@ -28,6 +28,7 @@ export type Scalars = {
|
|
|
28
28
|
export type IAssetData = {
|
|
29
29
|
assetId: Scalars['String'];
|
|
30
30
|
rank?: Maybe<Scalars['Float']>;
|
|
31
|
+
rankVersion?: Maybe<Scalars['String']>;
|
|
31
32
|
};
|
|
32
33
|
export type IBrand = {
|
|
33
34
|
brandId: Scalars['ID'];
|
|
@@ -47,6 +48,7 @@ export type ICollectionData = {
|
|
|
47
48
|
collectionId: Scalars['String'];
|
|
48
49
|
title?: Maybe<Scalars['String']>;
|
|
49
50
|
rank?: Maybe<Scalars['Float']>;
|
|
51
|
+
rankVersion?: Maybe<Scalars['String']>;
|
|
50
52
|
createdAt?: Maybe<Scalars['Long']>;
|
|
51
53
|
itemsNum?: Maybe<Scalars['String']>;
|
|
52
54
|
holdersNum?: Maybe<Scalars['String']>;
|
|
@@ -68,6 +70,7 @@ export type ICollectionRank = {
|
|
|
68
70
|
id?: Maybe<Scalars['String']>;
|
|
69
71
|
collectionTitle?: Maybe<Scalars['String']>;
|
|
70
72
|
rank?: Maybe<Scalars['Float']>;
|
|
73
|
+
rankVersion?: Maybe<Scalars['String']>;
|
|
71
74
|
};
|
|
72
75
|
export type IMutation = {
|
|
73
76
|
setDummy: Scalars['String'];
|
|
@@ -120,6 +123,7 @@ export type INftRank = {
|
|
|
120
123
|
tokenId?: Maybe<Scalars['String']>;
|
|
121
124
|
id?: Maybe<Scalars['String']>;
|
|
122
125
|
rank?: Maybe<Scalars['Float']>;
|
|
126
|
+
rankVersion?: Maybe<Scalars['String']>;
|
|
123
127
|
};
|
|
124
128
|
export type IOpportunitiesPageV2 = {
|
|
125
129
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
@@ -226,6 +230,7 @@ export type IWalletRankV2 = {
|
|
|
226
230
|
blockchain: Scalars['String'];
|
|
227
231
|
wallet: Scalars['String'];
|
|
228
232
|
rank?: Maybe<Scalars['Float']>;
|
|
233
|
+
rankVersion?: Maybe<Scalars['String']>;
|
|
229
234
|
};
|
|
230
235
|
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
231
236
|
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
@@ -310,6 +315,7 @@ export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IO
|
|
|
310
315
|
export type IAssetDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['AssetData'] = IResolversParentTypes['AssetData']> = {
|
|
311
316
|
assetId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
312
317
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
318
|
+
rankVersion?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
313
319
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
314
320
|
};
|
|
315
321
|
export type IBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['Brand'] = IResolversParentTypes['Brand']> = {
|
|
@@ -332,6 +338,7 @@ export type ICollectionDataResolvers<ContextType = any, ParentType extends IReso
|
|
|
332
338
|
collectionId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
333
339
|
title?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
334
340
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
341
|
+
rankVersion?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
335
342
|
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
336
343
|
itemsNum?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
337
344
|
holdersNum?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -347,6 +354,7 @@ export type ICollectionRankResolvers<ContextType = any, ParentType extends IReso
|
|
|
347
354
|
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
348
355
|
collectionTitle?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
349
356
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
357
|
+
rankVersion?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
350
358
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
351
359
|
};
|
|
352
360
|
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
@@ -377,6 +385,7 @@ export type INftRankResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
377
385
|
tokenId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
378
386
|
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
379
387
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
388
|
+
rankVersion?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
380
389
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
381
390
|
};
|
|
382
391
|
export type IOpportunitiesPageV2Resolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPageV2'] = IResolversParentTypes['OpportunitiesPageV2']> = {
|
|
@@ -457,6 +466,7 @@ export type IWalletRankV2Resolvers<ContextType = any, ParentType extends IResolv
|
|
|
457
466
|
blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
458
467
|
wallet?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
459
468
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
469
|
+
rankVersion?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
460
470
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
461
471
|
};
|
|
462
472
|
export type IResolvers<ContextType = any> = {
|
|
@@ -502,7 +512,7 @@ export type IFetchCollectionRanksQueryVariables = Exact<{
|
|
|
502
512
|
collectionKeys: Array<ICollectionKey>;
|
|
503
513
|
}>;
|
|
504
514
|
export type IFetchCollectionRanksQuery = {
|
|
505
|
-
fetchCollectionRanks: Array<Pick<ICollectionRank, 'blockchain' | 'address' | 'tokenId' | 'id' | 'collectionTitle' | 'rank'>>;
|
|
515
|
+
fetchCollectionRanks: Array<Pick<ICollectionRank, 'blockchain' | 'address' | 'tokenId' | 'id' | 'collectionTitle' | 'rank' | 'rankVersion'>>;
|
|
506
516
|
};
|
|
507
517
|
export type IFetchExtensionBrandsQueryVariables = Exact<{
|
|
508
518
|
[key: string]: never;
|
|
@@ -535,15 +545,15 @@ export type IFetchNftDataQueryVariables = Exact<{
|
|
|
535
545
|
}>;
|
|
536
546
|
export type IFetchNftDataQuery = {
|
|
537
547
|
fetchNFTData: (Pick<INftData, 'blockchain' | 'contractAddress' | 'tokenId' | 'elrondId' | 'userRank'> & {
|
|
538
|
-
collectionData?: Maybe<Pick<ICollectionData, 'collectionId' | 'title' | 'rank' | 'createdAt' | 'itemsNum' | 'holdersNum' | 'floorPrice'>>;
|
|
539
|
-
assetData?: Maybe<Pick<IAssetData, 'assetId' | 'rank'>>;
|
|
548
|
+
collectionData?: Maybe<Pick<ICollectionData, 'collectionId' | 'title' | 'rank' | 'createdAt' | 'itemsNum' | 'holdersNum' | 'floorPrice' | 'rankVersion'>>;
|
|
549
|
+
assetData?: Maybe<Pick<IAssetData, 'assetId' | 'rank' | 'rankVersion'>>;
|
|
540
550
|
});
|
|
541
551
|
};
|
|
542
552
|
export type IFetchNftRanksQueryVariables = Exact<{
|
|
543
553
|
nftKeys: Array<INftKey>;
|
|
544
554
|
}>;
|
|
545
555
|
export type IFetchNftRanksQuery = {
|
|
546
|
-
fetchNFTRanks: Array<Pick<INftRank, 'blockchain' | 'address' | 'tokenId' | 'id' | 'rank'>>;
|
|
556
|
+
fetchNFTRanks: Array<Pick<INftRank, 'blockchain' | 'address' | 'tokenId' | 'id' | 'rank' | 'rankVersion'>>;
|
|
547
557
|
};
|
|
548
558
|
export type IFetchWalletRanksQueryVariables = Exact<{
|
|
549
559
|
wallets: Array<Scalars['String']>;
|
|
@@ -555,7 +565,7 @@ export type IFetchWalletRanksV2QueryVariables = Exact<{
|
|
|
555
565
|
wallets: Array<IWalletInput>;
|
|
556
566
|
}>;
|
|
557
567
|
export type IFetchWalletRanksV2Query = {
|
|
558
|
-
fetchWalletRanksV2: Array<Pick<IWalletRankV2, 'blockchain' | 'wallet' | 'rank'>>;
|
|
568
|
+
fetchWalletRanksV2: Array<Pick<IWalletRankV2, 'blockchain' | 'wallet' | 'rank' | 'rankVersion'>>;
|
|
559
569
|
};
|
|
560
570
|
export declare const HideOpportunityV2Document: Apollo.DocumentNode;
|
|
561
571
|
export type IHideOpportunityV2MutationFn = Apollo.MutationFunction<IHideOpportunityV2Mutation, IHideOpportunityV2MutationVariables>;
|
|
@@ -147,6 +147,7 @@ exports.FetchCollectionRanksDocument = (0, client_1.gql) `
|
|
|
147
147
|
id
|
|
148
148
|
collectionTitle
|
|
149
149
|
rank
|
|
150
|
+
rankVersion
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
153
|
`;
|
|
@@ -344,10 +345,12 @@ exports.FetchNftDataDocument = (0, client_1.gql) `
|
|
|
344
345
|
itemsNum
|
|
345
346
|
holdersNum
|
|
346
347
|
floorPrice
|
|
348
|
+
rankVersion
|
|
347
349
|
}
|
|
348
350
|
assetData {
|
|
349
351
|
assetId
|
|
350
352
|
rank
|
|
353
|
+
rankVersion
|
|
351
354
|
}
|
|
352
355
|
userRank
|
|
353
356
|
}
|
|
@@ -388,6 +391,7 @@ exports.FetchNftRanksDocument = (0, client_1.gql) `
|
|
|
388
391
|
tokenId
|
|
389
392
|
id
|
|
390
393
|
rank
|
|
394
|
+
rankVersion
|
|
391
395
|
}
|
|
392
396
|
}
|
|
393
397
|
`;
|
|
@@ -453,6 +457,7 @@ exports.FetchWalletRanksV2Document = (0, client_1.gql) `
|
|
|
453
457
|
blockchain
|
|
454
458
|
wallet
|
|
455
459
|
rank
|
|
460
|
+
rankVersion
|
|
456
461
|
}
|
|
457
462
|
}
|
|
458
463
|
`;
|
|
@@ -25,6 +25,17 @@ export type Scalars = {
|
|
|
25
25
|
/** A 64-bit signed integer */
|
|
26
26
|
Long: any;
|
|
27
27
|
};
|
|
28
|
+
export type IAirdropsLeaderboardFilterInput = {
|
|
29
|
+
userRank?: Maybe<Scalars['Int']>;
|
|
30
|
+
geolocationTerm?: Maybe<Scalars['String']>;
|
|
31
|
+
activeFromTimestamp?: Maybe<Scalars['Long']>;
|
|
32
|
+
activeUntilTimestamp?: Maybe<Scalars['Long']>;
|
|
33
|
+
};
|
|
34
|
+
export type IAirdropsLeaderboardSortInput = {
|
|
35
|
+
sortByActiveFrom?: Maybe<ISort>;
|
|
36
|
+
sortByValue?: Maybe<ISort>;
|
|
37
|
+
sortByPopularity?: Maybe<ISort>;
|
|
38
|
+
};
|
|
28
39
|
export type IAsset = {
|
|
29
40
|
assetId: Scalars['ID'];
|
|
30
41
|
blockchain?: Maybe<Scalars['String']>;
|
|
@@ -177,6 +188,9 @@ export type IDynamicCollectionDataInput = {
|
|
|
177
188
|
collectionId: Scalars['String'];
|
|
178
189
|
page?: Maybe<IPageInput>;
|
|
179
190
|
};
|
|
191
|
+
export declare enum ILeaderboardType {
|
|
192
|
+
Airdrops = "AIRDROPS"
|
|
193
|
+
}
|
|
180
194
|
export type IMedia = {
|
|
181
195
|
originalUrl?: Maybe<Scalars['String']>;
|
|
182
196
|
url?: Maybe<Scalars['String']>;
|
|
@@ -209,6 +223,32 @@ export type IMutationLikeCollectionArgs = {
|
|
|
209
223
|
export type IMutationDislikeCollectionArgs = {
|
|
210
224
|
collectionId: Scalars['String'];
|
|
211
225
|
};
|
|
226
|
+
export type IOpportunitiesPage = {
|
|
227
|
+
opportunities: Array<Maybe<IOpportunity>>;
|
|
228
|
+
nextPage?: Maybe<IPage>;
|
|
229
|
+
};
|
|
230
|
+
export type IOpportunity = {
|
|
231
|
+
opportunityId: Scalars['ID'];
|
|
232
|
+
opportunityStatus: Scalars['String'];
|
|
233
|
+
opportunityType: Scalars['String'];
|
|
234
|
+
name: Scalars['String'];
|
|
235
|
+
description?: Maybe<Scalars['String']>;
|
|
236
|
+
ludoUrl?: Maybe<Scalars['String']>;
|
|
237
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
238
|
+
activeFrom?: Maybe<Scalars['Long']>;
|
|
239
|
+
activeUntil?: Maybe<Scalars['Long']>;
|
|
240
|
+
minXpLevel?: Maybe<Scalars['Int']>;
|
|
241
|
+
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
242
|
+
minRank?: Maybe<Scalars['Float']>;
|
|
243
|
+
maxRank?: Maybe<Scalars['Float']>;
|
|
244
|
+
media?: Maybe<Scalars['String']>;
|
|
245
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
246
|
+
minWalletValue?: Maybe<Scalars['Float']>;
|
|
247
|
+
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
248
|
+
geolocations?: Maybe<Array<Scalars['String']>>;
|
|
249
|
+
participants?: Maybe<Scalars['Int']>;
|
|
250
|
+
joinable?: Maybe<Scalars['Boolean']>;
|
|
251
|
+
};
|
|
212
252
|
export type IPage = {
|
|
213
253
|
token?: Maybe<Scalars['String']>;
|
|
214
254
|
num?: Maybe<Scalars['Int']>;
|
|
@@ -261,6 +301,8 @@ export type IQuery = {
|
|
|
261
301
|
findCreations: ICreationsPage;
|
|
262
302
|
findUserCreations: ICreationsPage;
|
|
263
303
|
findUserLudoCreations: ICreationsPage;
|
|
304
|
+
fetchAvailableLeaderboards?: Maybe<Array<Maybe<ILeaderboardType>>>;
|
|
305
|
+
fetchAirdropsLeaderboard: IOpportunitiesPage;
|
|
264
306
|
findProfilesByName: IProfilePage;
|
|
265
307
|
fetchUserReferralsInfoPage: IUserReferralsInfoPage;
|
|
266
308
|
fetchUserReferralsInfoCsv: Scalars['String'];
|
|
@@ -331,6 +373,11 @@ export type IQueryFindUserLudoCreationsArgs = {
|
|
|
331
373
|
ownerId: Scalars['String'];
|
|
332
374
|
page?: Maybe<IPageInput>;
|
|
333
375
|
};
|
|
376
|
+
export type IQueryFetchAirdropsLeaderboardArgs = {
|
|
377
|
+
filter: IAirdropsLeaderboardFilterInput;
|
|
378
|
+
sort: IAirdropsLeaderboardSortInput;
|
|
379
|
+
page: IPageInput;
|
|
380
|
+
};
|
|
334
381
|
export type IQueryFindProfilesByNameArgs = {
|
|
335
382
|
name: Scalars['String'];
|
|
336
383
|
page?: Maybe<IPageInput>;
|
|
@@ -428,10 +475,12 @@ export type NextResolverFn<T> = () => Promise<T>;
|
|
|
428
475
|
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
429
476
|
/** Mapping between all available schema types and the resolvers types */
|
|
430
477
|
export type IResolversTypes = {
|
|
478
|
+
AirdropsLeaderboardFilterInput: IAirdropsLeaderboardFilterInput;
|
|
479
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
480
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
481
|
+
AirdropsLeaderboardSortInput: IAirdropsLeaderboardSortInput;
|
|
431
482
|
Asset: ResolverTypeWrapper<IAsset>;
|
|
432
483
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
433
|
-
String: ResolverTypeWrapper<Scalars['String']>;
|
|
434
|
-
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
435
484
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
436
485
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
437
486
|
AssetMarket: ResolverTypeWrapper<IAssetMarket>;
|
|
@@ -449,9 +498,12 @@ export type IResolversTypes = {
|
|
|
449
498
|
DynamicAssetData: ResolverTypeWrapper<IDynamicAssetData>;
|
|
450
499
|
DynamicCollectionData: ResolverTypeWrapper<IDynamicCollectionData>;
|
|
451
500
|
DynamicCollectionDataInput: IDynamicCollectionDataInput;
|
|
501
|
+
LeaderboardType: ILeaderboardType;
|
|
452
502
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
453
503
|
Media: ResolverTypeWrapper<IMedia>;
|
|
454
504
|
Mutation: ResolverTypeWrapper<{}>;
|
|
505
|
+
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
506
|
+
Opportunity: ResolverTypeWrapper<IOpportunity>;
|
|
455
507
|
Page: ResolverTypeWrapper<IPage>;
|
|
456
508
|
PageInput: IPageInput;
|
|
457
509
|
Profile: ResolverTypeWrapper<IProfile>;
|
|
@@ -468,10 +520,12 @@ export type IResolversTypes = {
|
|
|
468
520
|
};
|
|
469
521
|
/** Mapping between all available schema types and the resolvers parents */
|
|
470
522
|
export type IResolversParentTypes = {
|
|
523
|
+
AirdropsLeaderboardFilterInput: IAirdropsLeaderboardFilterInput;
|
|
524
|
+
Int: Scalars['Int'];
|
|
525
|
+
String: Scalars['String'];
|
|
526
|
+
AirdropsLeaderboardSortInput: IAirdropsLeaderboardSortInput;
|
|
471
527
|
Asset: IAsset;
|
|
472
528
|
ID: Scalars['ID'];
|
|
473
|
-
String: Scalars['String'];
|
|
474
|
-
Int: Scalars['Int'];
|
|
475
529
|
Boolean: Scalars['Boolean'];
|
|
476
530
|
Float: Scalars['Float'];
|
|
477
531
|
AssetMarket: IAssetMarket;
|
|
@@ -492,6 +546,8 @@ export type IResolversParentTypes = {
|
|
|
492
546
|
Long: Scalars['Long'];
|
|
493
547
|
Media: IMedia;
|
|
494
548
|
Mutation: {};
|
|
549
|
+
OpportunitiesPage: IOpportunitiesPage;
|
|
550
|
+
Opportunity: IOpportunity;
|
|
495
551
|
Page: IPage;
|
|
496
552
|
PageInput: IPageInput;
|
|
497
553
|
Profile: IProfile;
|
|
@@ -682,6 +738,34 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
682
738
|
dislikeCollection?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeCollectionArgs, 'collectionId'>>;
|
|
683
739
|
clearCaches?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
684
740
|
};
|
|
741
|
+
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
742
|
+
opportunities?: Resolver<Array<Maybe<IResolversTypes['Opportunity']>>, ParentType, ContextType>;
|
|
743
|
+
nextPage?: Resolver<Maybe<IResolversTypes['Page']>, ParentType, ContextType>;
|
|
744
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
745
|
+
};
|
|
746
|
+
export type IOpportunityResolvers<ContextType = any, ParentType extends IResolversParentTypes['Opportunity'] = IResolversParentTypes['Opportunity']> = {
|
|
747
|
+
opportunityId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
748
|
+
opportunityStatus?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
749
|
+
opportunityType?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
750
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
751
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
752
|
+
ludoUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
753
|
+
projectUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
754
|
+
activeFrom?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
755
|
+
activeUntil?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
756
|
+
minXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
757
|
+
maxXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
758
|
+
minRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
759
|
+
maxRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
760
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
761
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
762
|
+
minWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
763
|
+
maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
764
|
+
geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
765
|
+
participants?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
766
|
+
joinable?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
767
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
768
|
+
};
|
|
685
769
|
export type IPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['Page'] = IResolversParentTypes['Page']> = {
|
|
686
770
|
token?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
687
771
|
num?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
@@ -732,6 +816,8 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
732
816
|
findCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindCreationsArgs, 'term' | 'input'>>;
|
|
733
817
|
findUserCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserCreationsArgs, 'ownerId' | 'input'>>;
|
|
734
818
|
findUserLudoCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserLudoCreationsArgs, 'ownerId'>>;
|
|
819
|
+
fetchAvailableLeaderboards?: Resolver<Maybe<Array<Maybe<IResolversTypes['LeaderboardType']>>>, ParentType, ContextType>;
|
|
820
|
+
fetchAirdropsLeaderboard?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAirdropsLeaderboardArgs, 'filter' | 'sort' | 'page'>>;
|
|
735
821
|
findProfilesByName?: Resolver<IResolversTypes['ProfilePage'], ParentType, ContextType, RequireFields<IQueryFindProfilesByNameArgs, 'name'>>;
|
|
736
822
|
fetchUserReferralsInfoPage?: Resolver<IResolversTypes['UserReferralsInfoPage'], ParentType, ContextType, RequireFields<IQueryFetchUserReferralsInfoPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
737
823
|
fetchUserReferralsInfoCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -778,6 +864,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
778
864
|
Long?: GraphQLScalarType;
|
|
779
865
|
Media?: IMediaResolvers<ContextType>;
|
|
780
866
|
Mutation?: IMutationResolvers<ContextType>;
|
|
867
|
+
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
868
|
+
Opportunity?: IOpportunityResolvers<ContextType>;
|
|
781
869
|
Page?: IPageResolvers<ContextType>;
|
|
782
870
|
Profile?: IProfileResolvers<ContextType>;
|
|
783
871
|
ProfilePage?: IProfilePageResolvers<ContextType>;
|
|
@@ -790,6 +878,17 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
790
878
|
NotBlank?: INotBlankDirectiveResolver<any, any, ContextType>;
|
|
791
879
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
792
880
|
};
|
|
881
|
+
export type IFetchAirdropsLeaderboardQueryVariables = Exact<{
|
|
882
|
+
filter: IAirdropsLeaderboardFilterInput;
|
|
883
|
+
sort: IAirdropsLeaderboardSortInput;
|
|
884
|
+
page: IPageInput;
|
|
885
|
+
}>;
|
|
886
|
+
export type IFetchAirdropsLeaderboardQuery = {
|
|
887
|
+
fetchAirdropsLeaderboard: {
|
|
888
|
+
opportunities: Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'opportunityStatus' | 'opportunityType' | 'name' | 'description' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'geolocations' | 'participants' | 'joinable'>>>;
|
|
889
|
+
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements' | 'lastNum'>>;
|
|
890
|
+
};
|
|
891
|
+
};
|
|
793
892
|
export type IFetchAllCreationsQueryVariables = Exact<{
|
|
794
893
|
page?: Maybe<IPageInput>;
|
|
795
894
|
}>;
|
|
@@ -830,6 +929,10 @@ export type IFetchAssetsQuery = {
|
|
|
830
929
|
attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>>;
|
|
831
930
|
})>>;
|
|
832
931
|
};
|
|
932
|
+
export type IFetchAvailableLeaderboardsQueryVariables = Exact<{
|
|
933
|
+
[key: string]: never;
|
|
934
|
+
}>;
|
|
935
|
+
export type IFetchAvailableLeaderboardsQuery = Pick<IQuery, 'fetchAvailableLeaderboards'>;
|
|
833
936
|
export type IFetchCollectionQueryVariables = Exact<{
|
|
834
937
|
collectionId: Scalars['String'];
|
|
835
938
|
}>;
|
|
@@ -1009,6 +1112,38 @@ export type IFindUserLudoCreationsQuery = {
|
|
|
1009
1112
|
creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'tokenId' | 'address' | 'itemId' | 'blockchain' | 'rank' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'likes'>>>;
|
|
1010
1113
|
};
|
|
1011
1114
|
};
|
|
1115
|
+
export declare const FetchAirdropsLeaderboardDocument: Apollo.DocumentNode;
|
|
1116
|
+
/**
|
|
1117
|
+
* __useFetchAirdropsLeaderboardQuery__
|
|
1118
|
+
*
|
|
1119
|
+
* To run a query within a React component, call `useFetchAirdropsLeaderboardQuery` and pass it any options that fit your needs.
|
|
1120
|
+
* When your component renders, `useFetchAirdropsLeaderboardQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1121
|
+
* you can use to render your UI.
|
|
1122
|
+
*
|
|
1123
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1124
|
+
*
|
|
1125
|
+
* @example
|
|
1126
|
+
* const { data, loading, error } = useFetchAirdropsLeaderboardQuery({
|
|
1127
|
+
* variables: {
|
|
1128
|
+
* filter: // value for 'filter'
|
|
1129
|
+
* sort: // value for 'sort'
|
|
1130
|
+
* page: // value for 'page'
|
|
1131
|
+
* },
|
|
1132
|
+
* });
|
|
1133
|
+
*/
|
|
1134
|
+
export declare function useFetchAirdropsLeaderboardQuery(baseOptions: Apollo.QueryHookOptions<IFetchAirdropsLeaderboardQuery, IFetchAirdropsLeaderboardQueryVariables>): Apollo.QueryResult<IFetchAirdropsLeaderboardQuery, Exact<{
|
|
1135
|
+
filter: IAirdropsLeaderboardFilterInput;
|
|
1136
|
+
sort: IAirdropsLeaderboardSortInput;
|
|
1137
|
+
page: IPageInput;
|
|
1138
|
+
}>>;
|
|
1139
|
+
export declare function useFetchAirdropsLeaderboardLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAirdropsLeaderboardQuery, IFetchAirdropsLeaderboardQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAirdropsLeaderboardQuery, Exact<{
|
|
1140
|
+
filter: IAirdropsLeaderboardFilterInput;
|
|
1141
|
+
sort: IAirdropsLeaderboardSortInput;
|
|
1142
|
+
page: IPageInput;
|
|
1143
|
+
}>>;
|
|
1144
|
+
export type FetchAirdropsLeaderboardQueryHookResult = ReturnType<typeof useFetchAirdropsLeaderboardQuery>;
|
|
1145
|
+
export type FetchAirdropsLeaderboardLazyQueryHookResult = ReturnType<typeof useFetchAirdropsLeaderboardLazyQuery>;
|
|
1146
|
+
export type FetchAirdropsLeaderboardQueryResult = Apollo.QueryResult<IFetchAirdropsLeaderboardQuery, IFetchAirdropsLeaderboardQueryVariables>;
|
|
1012
1147
|
export declare const FetchAllCreationsDocument: Apollo.DocumentNode;
|
|
1013
1148
|
/**
|
|
1014
1149
|
* __useFetchAllCreationsQuery__
|
|
@@ -1096,6 +1231,31 @@ export declare function useFetchAssetsLazyQuery(baseOptions?: Apollo.LazyQueryHo
|
|
|
1096
1231
|
export type FetchAssetsQueryHookResult = ReturnType<typeof useFetchAssetsQuery>;
|
|
1097
1232
|
export type FetchAssetsLazyQueryHookResult = ReturnType<typeof useFetchAssetsLazyQuery>;
|
|
1098
1233
|
export type FetchAssetsQueryResult = Apollo.QueryResult<IFetchAssetsQuery, IFetchAssetsQueryVariables>;
|
|
1234
|
+
export declare const FetchAvailableLeaderboardsDocument: Apollo.DocumentNode;
|
|
1235
|
+
/**
|
|
1236
|
+
* __useFetchAvailableLeaderboardsQuery__
|
|
1237
|
+
*
|
|
1238
|
+
* To run a query within a React component, call `useFetchAvailableLeaderboardsQuery` and pass it any options that fit your needs.
|
|
1239
|
+
* When your component renders, `useFetchAvailableLeaderboardsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1240
|
+
* you can use to render your UI.
|
|
1241
|
+
*
|
|
1242
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1243
|
+
*
|
|
1244
|
+
* @example
|
|
1245
|
+
* const { data, loading, error } = useFetchAvailableLeaderboardsQuery({
|
|
1246
|
+
* variables: {
|
|
1247
|
+
* },
|
|
1248
|
+
* });
|
|
1249
|
+
*/
|
|
1250
|
+
export declare function useFetchAvailableLeaderboardsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAvailableLeaderboardsQuery, IFetchAvailableLeaderboardsQueryVariables>): Apollo.QueryResult<IFetchAvailableLeaderboardsQuery, Exact<{
|
|
1251
|
+
[key: string]: never;
|
|
1252
|
+
}>>;
|
|
1253
|
+
export declare function useFetchAvailableLeaderboardsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAvailableLeaderboardsQuery, IFetchAvailableLeaderboardsQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAvailableLeaderboardsQuery, Exact<{
|
|
1254
|
+
[key: string]: never;
|
|
1255
|
+
}>>;
|
|
1256
|
+
export type FetchAvailableLeaderboardsQueryHookResult = ReturnType<typeof useFetchAvailableLeaderboardsQuery>;
|
|
1257
|
+
export type FetchAvailableLeaderboardsLazyQueryHookResult = ReturnType<typeof useFetchAvailableLeaderboardsLazyQuery>;
|
|
1258
|
+
export type FetchAvailableLeaderboardsQueryResult = Apollo.QueryResult<IFetchAvailableLeaderboardsQuery, IFetchAvailableLeaderboardsQueryVariables>;
|
|
1099
1259
|
export declare const FetchCollectionDocument: Apollo.DocumentNode;
|
|
1100
1260
|
/**
|
|
1101
1261
|
* __useFetchCollectionQuery__
|
|
@@ -23,10 +23,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.useFindUserLudoCreationsLazyQuery = exports.useFindUserLudoCreationsQuery = exports.FindUserLudoCreationsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = void 0;
|
|
26
|
+
exports.useFetchUserReferralsInfoCsvQuery = exports.FetchUserReferralsInfoCsvDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFindAllTopEntitiesByNameLazyQuery = exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchDynamicCollectionsDataLazyQuery = exports.useFetchDynamicCollectionsDataQuery = exports.FetchDynamicCollectionsDataDocument = exports.useFetchDynamicCollectionDataLazyQuery = exports.useFetchDynamicCollectionDataQuery = exports.FetchDynamicCollectionDataDocument = exports.useFetchDynamicAssetsLikesLazyQuery = exports.useFetchDynamicAssetsLikesQuery = exports.FetchDynamicAssetsLikesDocument = exports.useFetchDynamicAssetLikesLazyQuery = exports.useFetchDynamicAssetLikesQuery = exports.FetchDynamicAssetLikesDocument = exports.useFetchCreationsByTypeLazyQuery = exports.useFetchCreationsByTypeQuery = exports.FetchCreationsByTypeDocument = exports.useFetchCollectionsByIdsLazyQuery = exports.useFetchCollectionsByIdsQuery = exports.FetchCollectionsByIdsDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = exports.useFetchCollectionLazyQuery = exports.useFetchCollectionQuery = exports.FetchCollectionDocument = exports.useFetchAvailableLeaderboardsLazyQuery = exports.useFetchAvailableLeaderboardsQuery = exports.FetchAvailableLeaderboardsDocument = exports.useFetchAssetsLazyQuery = exports.useFetchAssetsQuery = exports.FetchAssetsDocument = exports.useFetchAssetByBlockchainLazyQuery = exports.useFetchAssetByBlockchainQuery = exports.FetchAssetByBlockchainDocument = exports.useFetchAllCreationsLazyQuery = exports.useFetchAllCreationsQuery = exports.FetchAllCreationsDocument = exports.useFetchAirdropsLeaderboardLazyQuery = exports.useFetchAirdropsLeaderboardQuery = exports.FetchAirdropsLeaderboardDocument = exports.ISortDirection = exports.IReftypeColor = exports.ILeaderboardType = void 0;
|
|
27
|
+
exports.useFindUserLudoCreationsLazyQuery = exports.useFindUserLudoCreationsQuery = exports.FindUserLudoCreationsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserReferralsInfoPageLazyQuery = exports.useFetchUserReferralsInfoPageQuery = exports.FetchUserReferralsInfoPageDocument = exports.useFetchUserReferralsInfoCsvLazyQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
|
+
var ILeaderboardType;
|
|
31
|
+
(function (ILeaderboardType) {
|
|
32
|
+
ILeaderboardType["Airdrops"] = "AIRDROPS";
|
|
33
|
+
})(ILeaderboardType || (exports.ILeaderboardType = ILeaderboardType = {}));
|
|
30
34
|
var IReftypeColor;
|
|
31
35
|
(function (IReftypeColor) {
|
|
32
36
|
IReftypeColor["Red"] = "RED";
|
|
@@ -45,6 +49,67 @@ var ISortDirection;
|
|
|
45
49
|
ISortDirection["Asc"] = "asc";
|
|
46
50
|
ISortDirection["Desc"] = "desc";
|
|
47
51
|
})(ISortDirection || (exports.ISortDirection = ISortDirection = {}));
|
|
52
|
+
exports.FetchAirdropsLeaderboardDocument = (0, client_1.gql) `
|
|
53
|
+
query FetchAirdropsLeaderboard($filter: AirdropsLeaderboardFilterInput!, $sort: AirdropsLeaderboardSortInput!, $page: PageInput!) {
|
|
54
|
+
fetchAirdropsLeaderboard(filter: $filter, sort: $sort, page: $page) {
|
|
55
|
+
opportunities {
|
|
56
|
+
opportunityId
|
|
57
|
+
opportunityStatus
|
|
58
|
+
opportunityType
|
|
59
|
+
name
|
|
60
|
+
description
|
|
61
|
+
ludoUrl
|
|
62
|
+
projectUrl
|
|
63
|
+
activeFrom
|
|
64
|
+
activeUntil
|
|
65
|
+
minXpLevel
|
|
66
|
+
maxXpLevel
|
|
67
|
+
minRank
|
|
68
|
+
maxRank
|
|
69
|
+
media
|
|
70
|
+
createdAt
|
|
71
|
+
minWalletValue
|
|
72
|
+
maxWalletValue
|
|
73
|
+
geolocations
|
|
74
|
+
participants
|
|
75
|
+
joinable
|
|
76
|
+
}
|
|
77
|
+
nextPage {
|
|
78
|
+
token
|
|
79
|
+
num
|
|
80
|
+
size
|
|
81
|
+
elements
|
|
82
|
+
lastNum
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
/**
|
|
88
|
+
* __useFetchAirdropsLeaderboardQuery__
|
|
89
|
+
*
|
|
90
|
+
* To run a query within a React component, call `useFetchAirdropsLeaderboardQuery` and pass it any options that fit your needs.
|
|
91
|
+
* When your component renders, `useFetchAirdropsLeaderboardQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
92
|
+
* you can use to render your UI.
|
|
93
|
+
*
|
|
94
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* const { data, loading, error } = useFetchAirdropsLeaderboardQuery({
|
|
98
|
+
* variables: {
|
|
99
|
+
* filter: // value for 'filter'
|
|
100
|
+
* sort: // value for 'sort'
|
|
101
|
+
* page: // value for 'page'
|
|
102
|
+
* },
|
|
103
|
+
* });
|
|
104
|
+
*/
|
|
105
|
+
function useFetchAirdropsLeaderboardQuery(baseOptions) {
|
|
106
|
+
return Apollo.useQuery(exports.FetchAirdropsLeaderboardDocument, baseOptions);
|
|
107
|
+
}
|
|
108
|
+
exports.useFetchAirdropsLeaderboardQuery = useFetchAirdropsLeaderboardQuery;
|
|
109
|
+
function useFetchAirdropsLeaderboardLazyQuery(baseOptions) {
|
|
110
|
+
return Apollo.useLazyQuery(exports.FetchAirdropsLeaderboardDocument, baseOptions);
|
|
111
|
+
}
|
|
112
|
+
exports.useFetchAirdropsLeaderboardLazyQuery = useFetchAirdropsLeaderboardLazyQuery;
|
|
48
113
|
exports.FetchAllCreationsDocument = (0, client_1.gql) `
|
|
49
114
|
query FetchAllCreations($page: PageInput) {
|
|
50
115
|
fetchAllCreations(page: $page) {
|
|
@@ -339,6 +404,34 @@ function useFetchAssetsLazyQuery(baseOptions) {
|
|
|
339
404
|
return Apollo.useLazyQuery(exports.FetchAssetsDocument, baseOptions);
|
|
340
405
|
}
|
|
341
406
|
exports.useFetchAssetsLazyQuery = useFetchAssetsLazyQuery;
|
|
407
|
+
exports.FetchAvailableLeaderboardsDocument = (0, client_1.gql) `
|
|
408
|
+
query FetchAvailableLeaderboards {
|
|
409
|
+
fetchAvailableLeaderboards
|
|
410
|
+
}
|
|
411
|
+
`;
|
|
412
|
+
/**
|
|
413
|
+
* __useFetchAvailableLeaderboardsQuery__
|
|
414
|
+
*
|
|
415
|
+
* To run a query within a React component, call `useFetchAvailableLeaderboardsQuery` and pass it any options that fit your needs.
|
|
416
|
+
* When your component renders, `useFetchAvailableLeaderboardsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
417
|
+
* you can use to render your UI.
|
|
418
|
+
*
|
|
419
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
420
|
+
*
|
|
421
|
+
* @example
|
|
422
|
+
* const { data, loading, error } = useFetchAvailableLeaderboardsQuery({
|
|
423
|
+
* variables: {
|
|
424
|
+
* },
|
|
425
|
+
* });
|
|
426
|
+
*/
|
|
427
|
+
function useFetchAvailableLeaderboardsQuery(baseOptions) {
|
|
428
|
+
return Apollo.useQuery(exports.FetchAvailableLeaderboardsDocument, baseOptions);
|
|
429
|
+
}
|
|
430
|
+
exports.useFetchAvailableLeaderboardsQuery = useFetchAvailableLeaderboardsQuery;
|
|
431
|
+
function useFetchAvailableLeaderboardsLazyQuery(baseOptions) {
|
|
432
|
+
return Apollo.useLazyQuery(exports.FetchAvailableLeaderboardsDocument, baseOptions);
|
|
433
|
+
}
|
|
434
|
+
exports.useFetchAvailableLeaderboardsLazyQuery = useFetchAvailableLeaderboardsLazyQuery;
|
|
342
435
|
exports.FetchCollectionDocument = (0, client_1.gql) `
|
|
343
436
|
query fetchCollection($collectionId: String!) {
|
|
344
437
|
fetchCollection(collectionId: $collectionId) {
|
package/build/index.d.ts
CHANGED
|
@@ -167,6 +167,24 @@ declare const schema: {
|
|
|
167
167
|
SubmitPartnershipInquiryDocument: import("graphql").DocumentNode;
|
|
168
168
|
SubmitRegistrationInviteDocument: import("graphql").DocumentNode;
|
|
169
169
|
SubmitUserFeedbackDocument: import("graphql").DocumentNode;
|
|
170
|
+
useFetchAirdropsLeaderboardQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchAirdropsLeaderboardQuery, searchSchema.Exact<{
|
|
171
|
+
filter: searchSchema.IAirdropsLeaderboardFilterInput;
|
|
172
|
+
sort: searchSchema.IAirdropsLeaderboardSortInput;
|
|
173
|
+
page: searchSchema.IPageInput;
|
|
174
|
+
}>>): import("@apollo/client").QueryResult<searchSchema.IFetchAirdropsLeaderboardQuery, searchSchema.Exact<{
|
|
175
|
+
filter: searchSchema.IAirdropsLeaderboardFilterInput;
|
|
176
|
+
sort: searchSchema.IAirdropsLeaderboardSortInput;
|
|
177
|
+
page: searchSchema.IPageInput;
|
|
178
|
+
}>>;
|
|
179
|
+
useFetchAirdropsLeaderboardLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<searchSchema.IFetchAirdropsLeaderboardQuery, searchSchema.Exact<{
|
|
180
|
+
filter: searchSchema.IAirdropsLeaderboardFilterInput;
|
|
181
|
+
sort: searchSchema.IAirdropsLeaderboardSortInput;
|
|
182
|
+
page: searchSchema.IPageInput;
|
|
183
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchAirdropsLeaderboardQuery, searchSchema.Exact<{
|
|
184
|
+
filter: searchSchema.IAirdropsLeaderboardFilterInput;
|
|
185
|
+
sort: searchSchema.IAirdropsLeaderboardSortInput;
|
|
186
|
+
page: searchSchema.IPageInput;
|
|
187
|
+
}>>;
|
|
170
188
|
useFetchAllCreationsQuery(baseOptions?: import("@apollo/client").QueryHookOptions<searchSchema.IFetchAllCreationsQuery, searchSchema.Exact<{
|
|
171
189
|
page?: searchSchema.Maybe<searchSchema.IPageInput> | undefined;
|
|
172
190
|
}>> | undefined): import("@apollo/client").QueryResult<searchSchema.IFetchAllCreationsQuery, searchSchema.Exact<{
|
|
@@ -209,6 +227,16 @@ declare const schema: {
|
|
|
209
227
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchAssetsQuery, searchSchema.Exact<{
|
|
210
228
|
assetIds: string[];
|
|
211
229
|
}>>;
|
|
230
|
+
useFetchAvailableLeaderboardsQuery(baseOptions?: import("@apollo/client").QueryHookOptions<searchSchema.IFetchAvailableLeaderboardsQuery, searchSchema.Exact<{
|
|
231
|
+
[key: string]: never;
|
|
232
|
+
}>> | undefined): import("@apollo/client").QueryResult<searchSchema.IFetchAvailableLeaderboardsQuery, searchSchema.Exact<{
|
|
233
|
+
[key: string]: never;
|
|
234
|
+
}>>;
|
|
235
|
+
useFetchAvailableLeaderboardsLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<searchSchema.IFetchAvailableLeaderboardsQuery, searchSchema.Exact<{
|
|
236
|
+
[key: string]: never;
|
|
237
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchAvailableLeaderboardsQuery, searchSchema.Exact<{
|
|
238
|
+
[key: string]: never;
|
|
239
|
+
}>>;
|
|
212
240
|
useFetchCollectionQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchCollectionQuery, searchSchema.Exact<{
|
|
213
241
|
collectionId: string;
|
|
214
242
|
}>>): import("@apollo/client").QueryResult<searchSchema.IFetchCollectionQuery, searchSchema.Exact<{
|
|
@@ -417,11 +445,14 @@ declare const schema: {
|
|
|
417
445
|
ownerId: string;
|
|
418
446
|
page?: searchSchema.Maybe<searchSchema.IPageInput> | undefined;
|
|
419
447
|
}>>;
|
|
448
|
+
ILeaderboardType: typeof searchSchema.ILeaderboardType;
|
|
420
449
|
IReftypeColor: typeof searchSchema.IReftypeColor;
|
|
421
450
|
ISortDirection: typeof searchSchema.ISortDirection;
|
|
451
|
+
FetchAirdropsLeaderboardDocument: import("graphql").DocumentNode;
|
|
422
452
|
FetchAllCreationsDocument: import("graphql").DocumentNode;
|
|
423
453
|
FetchAssetByBlockchainDocument: import("graphql").DocumentNode;
|
|
424
454
|
FetchAssetsDocument: import("graphql").DocumentNode;
|
|
455
|
+
FetchAvailableLeaderboardsDocument: import("graphql").DocumentNode;
|
|
425
456
|
FetchCollectionDocument: import("graphql").DocumentNode;
|
|
426
457
|
FindCollectionsDocument: import("graphql").DocumentNode;
|
|
427
458
|
FetchCollectionsByIdsDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -616,7 +616,8 @@ export type IMutationChangeXpPointsArgs = {
|
|
|
616
616
|
export enum INotificationDestination {
|
|
617
617
|
Webapp = 'WEBAPP',
|
|
618
618
|
Ludox = 'LUDOX',
|
|
619
|
-
Telegram = 'TELEGRAM'
|
|
619
|
+
Telegram = 'TELEGRAM',
|
|
620
|
+
TapToEarnGame = 'TAP_TO_EARN_GAME'
|
|
620
621
|
}
|
|
621
622
|
|
|
622
623
|
export type INumberRangeInput = {
|