@ludo.ninja/api 3.0.32 → 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__/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__/extensionHost/schema.ts +19 -4
- package/src/graphql_tools/__generated__/searchHost/schema.ts +208 -4
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -22,6 +22,7 @@ export type Scalars = {
|
|
|
22
22
|
export type IAssetData = {
|
|
23
23
|
assetId: Scalars['String'];
|
|
24
24
|
rank?: Maybe<Scalars['Float']>;
|
|
25
|
+
rankVersion?: Maybe<Scalars['String']>;
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
export type IBrand = {
|
|
@@ -44,6 +45,7 @@ export type ICollectionData = {
|
|
|
44
45
|
collectionId: Scalars['String'];
|
|
45
46
|
title?: Maybe<Scalars['String']>;
|
|
46
47
|
rank?: Maybe<Scalars['Float']>;
|
|
48
|
+
rankVersion?: Maybe<Scalars['String']>;
|
|
47
49
|
createdAt?: Maybe<Scalars['Long']>;
|
|
48
50
|
itemsNum?: Maybe<Scalars['String']>;
|
|
49
51
|
holdersNum?: Maybe<Scalars['String']>;
|
|
@@ -67,6 +69,7 @@ export type ICollectionRank = {
|
|
|
67
69
|
id?: Maybe<Scalars['String']>;
|
|
68
70
|
collectionTitle?: Maybe<Scalars['String']>;
|
|
69
71
|
rank?: Maybe<Scalars['Float']>;
|
|
72
|
+
rankVersion?: Maybe<Scalars['String']>;
|
|
70
73
|
};
|
|
71
74
|
|
|
72
75
|
|
|
@@ -132,6 +135,7 @@ export type INftRank = {
|
|
|
132
135
|
tokenId?: Maybe<Scalars['String']>;
|
|
133
136
|
id?: Maybe<Scalars['String']>;
|
|
134
137
|
rank?: Maybe<Scalars['Float']>;
|
|
138
|
+
rankVersion?: Maybe<Scalars['String']>;
|
|
135
139
|
};
|
|
136
140
|
|
|
137
141
|
export type IOpportunitiesPageV2 = {
|
|
@@ -259,6 +263,7 @@ export type IWalletRankV2 = {
|
|
|
259
263
|
blockchain: Scalars['String'];
|
|
260
264
|
wallet: Scalars['String'];
|
|
261
265
|
rank?: Maybe<Scalars['Float']>;
|
|
266
|
+
rankVersion?: Maybe<Scalars['String']>;
|
|
262
267
|
};
|
|
263
268
|
|
|
264
269
|
|
|
@@ -389,6 +394,7 @@ export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IO
|
|
|
389
394
|
export type IAssetDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['AssetData'] = IResolversParentTypes['AssetData']> = {
|
|
390
395
|
assetId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
391
396
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
397
|
+
rankVersion?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
392
398
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
393
399
|
};
|
|
394
400
|
|
|
@@ -414,6 +420,7 @@ export type ICollectionDataResolvers<ContextType = any, ParentType extends IReso
|
|
|
414
420
|
collectionId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
415
421
|
title?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
416
422
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
423
|
+
rankVersion?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
417
424
|
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
418
425
|
itemsNum?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
419
426
|
holdersNum?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -430,6 +437,7 @@ export type ICollectionRankResolvers<ContextType = any, ParentType extends IReso
|
|
|
430
437
|
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
431
438
|
collectionTitle?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
432
439
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
440
|
+
rankVersion?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
433
441
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
434
442
|
};
|
|
435
443
|
|
|
@@ -464,6 +472,7 @@ export type INftRankResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
464
472
|
tokenId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
465
473
|
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
466
474
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
475
|
+
rankVersion?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
467
476
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
468
477
|
};
|
|
469
478
|
|
|
@@ -550,6 +559,7 @@ export type IWalletRankV2Resolvers<ContextType = any, ParentType extends IResolv
|
|
|
550
559
|
blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
551
560
|
wallet?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
552
561
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
562
|
+
rankVersion?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
553
563
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
554
564
|
};
|
|
555
565
|
|
|
@@ -606,7 +616,7 @@ export type IFetchCollectionRanksQueryVariables = Exact<{
|
|
|
606
616
|
}>;
|
|
607
617
|
|
|
608
618
|
|
|
609
|
-
export type IFetchCollectionRanksQuery = { fetchCollectionRanks: Array<Pick<ICollectionRank, 'blockchain' | 'address' | 'tokenId' | 'id' | 'collectionTitle' | 'rank'>> };
|
|
619
|
+
export type IFetchCollectionRanksQuery = { fetchCollectionRanks: Array<Pick<ICollectionRank, 'blockchain' | 'address' | 'tokenId' | 'id' | 'collectionTitle' | 'rank' | 'rankVersion'>> };
|
|
610
620
|
|
|
611
621
|
export type IFetchExtensionBrandsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
612
622
|
|
|
@@ -637,7 +647,7 @@ export type IFetchNftDataQueryVariables = Exact<{
|
|
|
637
647
|
|
|
638
648
|
export type IFetchNftDataQuery = { fetchNFTData: (
|
|
639
649
|
Pick<INftData, 'blockchain' | 'contractAddress' | 'tokenId' | 'elrondId' | 'userRank'>
|
|
640
|
-
& { collectionData?: Maybe<Pick<ICollectionData, 'collectionId' | 'title' | 'rank' | 'createdAt' | 'itemsNum' | 'holdersNum' | 'floorPrice'>>, assetData?: Maybe<Pick<IAssetData, 'assetId' | 'rank'>> }
|
|
650
|
+
& { collectionData?: Maybe<Pick<ICollectionData, 'collectionId' | 'title' | 'rank' | 'createdAt' | 'itemsNum' | 'holdersNum' | 'floorPrice' | 'rankVersion'>>, assetData?: Maybe<Pick<IAssetData, 'assetId' | 'rank' | 'rankVersion'>> }
|
|
641
651
|
) };
|
|
642
652
|
|
|
643
653
|
export type IFetchNftRanksQueryVariables = Exact<{
|
|
@@ -645,7 +655,7 @@ export type IFetchNftRanksQueryVariables = Exact<{
|
|
|
645
655
|
}>;
|
|
646
656
|
|
|
647
657
|
|
|
648
|
-
export type IFetchNftRanksQuery = { fetchNFTRanks: Array<Pick<INftRank, 'blockchain' | 'address' | 'tokenId' | 'id' | 'rank'>> };
|
|
658
|
+
export type IFetchNftRanksQuery = { fetchNFTRanks: Array<Pick<INftRank, 'blockchain' | 'address' | 'tokenId' | 'id' | 'rank' | 'rankVersion'>> };
|
|
649
659
|
|
|
650
660
|
export type IFetchWalletRanksQueryVariables = Exact<{
|
|
651
661
|
wallets: Array<Scalars['String']>;
|
|
@@ -659,7 +669,7 @@ export type IFetchWalletRanksV2QueryVariables = Exact<{
|
|
|
659
669
|
}>;
|
|
660
670
|
|
|
661
671
|
|
|
662
|
-
export type IFetchWalletRanksV2Query = { fetchWalletRanksV2: Array<Pick<IWalletRankV2, 'blockchain' | 'wallet' | 'rank'>> };
|
|
672
|
+
export type IFetchWalletRanksV2Query = { fetchWalletRanksV2: Array<Pick<IWalletRankV2, 'blockchain' | 'wallet' | 'rank' | 'rankVersion'>> };
|
|
663
673
|
|
|
664
674
|
|
|
665
675
|
export const HideOpportunityV2Document = gql`
|
|
@@ -795,6 +805,7 @@ export const FetchCollectionRanksDocument = gql`
|
|
|
795
805
|
id
|
|
796
806
|
collectionTitle
|
|
797
807
|
rank
|
|
808
|
+
rankVersion
|
|
798
809
|
}
|
|
799
810
|
}
|
|
800
811
|
`;
|
|
@@ -1000,10 +1011,12 @@ export const FetchNftDataDocument = gql`
|
|
|
1000
1011
|
itemsNum
|
|
1001
1012
|
holdersNum
|
|
1002
1013
|
floorPrice
|
|
1014
|
+
rankVersion
|
|
1003
1015
|
}
|
|
1004
1016
|
assetData {
|
|
1005
1017
|
assetId
|
|
1006
1018
|
rank
|
|
1019
|
+
rankVersion
|
|
1007
1020
|
}
|
|
1008
1021
|
userRank
|
|
1009
1022
|
}
|
|
@@ -1046,6 +1059,7 @@ export const FetchNftRanksDocument = gql`
|
|
|
1046
1059
|
tokenId
|
|
1047
1060
|
id
|
|
1048
1061
|
rank
|
|
1062
|
+
rankVersion
|
|
1049
1063
|
}
|
|
1050
1064
|
}
|
|
1051
1065
|
`;
|
|
@@ -1115,6 +1129,7 @@ export const FetchWalletRanksV2Document = gql`
|
|
|
1115
1129
|
blockchain
|
|
1116
1130
|
wallet
|
|
1117
1131
|
rank
|
|
1132
|
+
rankVersion
|
|
1118
1133
|
}
|
|
1119
1134
|
}
|
|
1120
1135
|
`;
|
|
@@ -20,6 +20,19 @@ export type Scalars = {
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
export type IAirdropsLeaderboardFilterInput = {
|
|
24
|
+
userRank?: Maybe<Scalars['Int']>;
|
|
25
|
+
geolocationTerm?: Maybe<Scalars['String']>;
|
|
26
|
+
activeFromTimestamp?: Maybe<Scalars['Long']>;
|
|
27
|
+
activeUntilTimestamp?: Maybe<Scalars['Long']>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type IAirdropsLeaderboardSortInput = {
|
|
31
|
+
sortByActiveFrom?: Maybe<ISort>;
|
|
32
|
+
sortByValue?: Maybe<ISort>;
|
|
33
|
+
sortByPopularity?: Maybe<ISort>;
|
|
34
|
+
};
|
|
35
|
+
|
|
23
36
|
export type IAsset = {
|
|
24
37
|
assetId: Scalars['ID'];
|
|
25
38
|
blockchain?: Maybe<Scalars['String']>;
|
|
@@ -188,6 +201,10 @@ export type IDynamicCollectionDataInput = {
|
|
|
188
201
|
page?: Maybe<IPageInput>;
|
|
189
202
|
};
|
|
190
203
|
|
|
204
|
+
export enum ILeaderboardType {
|
|
205
|
+
Airdrops = 'AIRDROPS'
|
|
206
|
+
}
|
|
207
|
+
|
|
191
208
|
|
|
192
209
|
export type IMedia = {
|
|
193
210
|
originalUrl?: Maybe<Scalars['String']>;
|
|
@@ -231,6 +248,34 @@ export type IMutationDislikeCollectionArgs = {
|
|
|
231
248
|
collectionId: Scalars['String'];
|
|
232
249
|
};
|
|
233
250
|
|
|
251
|
+
export type IOpportunitiesPage = {
|
|
252
|
+
opportunities: Array<Maybe<IOpportunity>>;
|
|
253
|
+
nextPage?: Maybe<IPage>;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export type IOpportunity = {
|
|
257
|
+
opportunityId: Scalars['ID'];
|
|
258
|
+
opportunityStatus: Scalars['String'];
|
|
259
|
+
opportunityType: Scalars['String'];
|
|
260
|
+
name: Scalars['String'];
|
|
261
|
+
description?: Maybe<Scalars['String']>;
|
|
262
|
+
ludoUrl?: Maybe<Scalars['String']>;
|
|
263
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
264
|
+
activeFrom?: Maybe<Scalars['Long']>;
|
|
265
|
+
activeUntil?: Maybe<Scalars['Long']>;
|
|
266
|
+
minXpLevel?: Maybe<Scalars['Int']>;
|
|
267
|
+
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
268
|
+
minRank?: Maybe<Scalars['Float']>;
|
|
269
|
+
maxRank?: Maybe<Scalars['Float']>;
|
|
270
|
+
media?: Maybe<Scalars['String']>;
|
|
271
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
272
|
+
minWalletValue?: Maybe<Scalars['Float']>;
|
|
273
|
+
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
274
|
+
geolocations?: Maybe<Array<Scalars['String']>>;
|
|
275
|
+
participants?: Maybe<Scalars['Int']>;
|
|
276
|
+
joinable?: Maybe<Scalars['Boolean']>;
|
|
277
|
+
};
|
|
278
|
+
|
|
234
279
|
export type IPage = {
|
|
235
280
|
token?: Maybe<Scalars['String']>;
|
|
236
281
|
num?: Maybe<Scalars['Int']>;
|
|
@@ -287,6 +332,8 @@ export type IQuery = {
|
|
|
287
332
|
findCreations: ICreationsPage;
|
|
288
333
|
findUserCreations: ICreationsPage;
|
|
289
334
|
findUserLudoCreations: ICreationsPage;
|
|
335
|
+
fetchAvailableLeaderboards?: Maybe<Array<Maybe<ILeaderboardType>>>;
|
|
336
|
+
fetchAirdropsLeaderboard: IOpportunitiesPage;
|
|
290
337
|
findProfilesByName: IProfilePage;
|
|
291
338
|
fetchUserReferralsInfoPage: IUserReferralsInfoPage;
|
|
292
339
|
fetchUserReferralsInfoCsv: Scalars['String'];
|
|
@@ -395,6 +442,13 @@ export type IQueryFindUserLudoCreationsArgs = {
|
|
|
395
442
|
};
|
|
396
443
|
|
|
397
444
|
|
|
445
|
+
export type IQueryFetchAirdropsLeaderboardArgs = {
|
|
446
|
+
filter: IAirdropsLeaderboardFilterInput;
|
|
447
|
+
sort: IAirdropsLeaderboardSortInput;
|
|
448
|
+
page: IPageInput;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
|
|
398
452
|
export type IQueryFindProfilesByNameArgs = {
|
|
399
453
|
name: Scalars['String'];
|
|
400
454
|
page?: Maybe<IPageInput>;
|
|
@@ -544,10 +598,12 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
544
598
|
|
|
545
599
|
/** Mapping between all available schema types and the resolvers types */
|
|
546
600
|
export type IResolversTypes = {
|
|
601
|
+
AirdropsLeaderboardFilterInput: IAirdropsLeaderboardFilterInput;
|
|
602
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
603
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
604
|
+
AirdropsLeaderboardSortInput: IAirdropsLeaderboardSortInput;
|
|
547
605
|
Asset: ResolverTypeWrapper<IAsset>;
|
|
548
606
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
549
|
-
String: ResolverTypeWrapper<Scalars['String']>;
|
|
550
|
-
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
551
607
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
552
608
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
553
609
|
AssetMarket: ResolverTypeWrapper<IAssetMarket>;
|
|
@@ -565,9 +621,12 @@ export type IResolversTypes = {
|
|
|
565
621
|
DynamicAssetData: ResolverTypeWrapper<IDynamicAssetData>;
|
|
566
622
|
DynamicCollectionData: ResolverTypeWrapper<IDynamicCollectionData>;
|
|
567
623
|
DynamicCollectionDataInput: IDynamicCollectionDataInput;
|
|
624
|
+
LeaderboardType: ILeaderboardType;
|
|
568
625
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
569
626
|
Media: ResolverTypeWrapper<IMedia>;
|
|
570
627
|
Mutation: ResolverTypeWrapper<{}>;
|
|
628
|
+
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
629
|
+
Opportunity: ResolverTypeWrapper<IOpportunity>;
|
|
571
630
|
Page: ResolverTypeWrapper<IPage>;
|
|
572
631
|
PageInput: IPageInput;
|
|
573
632
|
Profile: ResolverTypeWrapper<IProfile>;
|
|
@@ -585,10 +644,12 @@ export type IResolversTypes = {
|
|
|
585
644
|
|
|
586
645
|
/** Mapping between all available schema types and the resolvers parents */
|
|
587
646
|
export type IResolversParentTypes = {
|
|
647
|
+
AirdropsLeaderboardFilterInput: IAirdropsLeaderboardFilterInput;
|
|
648
|
+
Int: Scalars['Int'];
|
|
649
|
+
String: Scalars['String'];
|
|
650
|
+
AirdropsLeaderboardSortInput: IAirdropsLeaderboardSortInput;
|
|
588
651
|
Asset: IAsset;
|
|
589
652
|
ID: Scalars['ID'];
|
|
590
|
-
String: Scalars['String'];
|
|
591
|
-
Int: Scalars['Int'];
|
|
592
653
|
Boolean: Scalars['Boolean'];
|
|
593
654
|
Float: Scalars['Float'];
|
|
594
655
|
AssetMarket: IAssetMarket;
|
|
@@ -609,6 +670,8 @@ export type IResolversParentTypes = {
|
|
|
609
670
|
Long: Scalars['Long'];
|
|
610
671
|
Media: IMedia;
|
|
611
672
|
Mutation: {};
|
|
673
|
+
OpportunitiesPage: IOpportunitiesPage;
|
|
674
|
+
Opportunity: IOpportunity;
|
|
612
675
|
Page: IPage;
|
|
613
676
|
PageInput: IPageInput;
|
|
614
677
|
Profile: IProfile;
|
|
@@ -820,6 +883,36 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
820
883
|
clearCaches?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
821
884
|
};
|
|
822
885
|
|
|
886
|
+
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
887
|
+
opportunities?: Resolver<Array<Maybe<IResolversTypes['Opportunity']>>, ParentType, ContextType>;
|
|
888
|
+
nextPage?: Resolver<Maybe<IResolversTypes['Page']>, ParentType, ContextType>;
|
|
889
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
890
|
+
};
|
|
891
|
+
|
|
892
|
+
export type IOpportunityResolvers<ContextType = any, ParentType extends IResolversParentTypes['Opportunity'] = IResolversParentTypes['Opportunity']> = {
|
|
893
|
+
opportunityId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
894
|
+
opportunityStatus?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
895
|
+
opportunityType?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
896
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
897
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
898
|
+
ludoUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
899
|
+
projectUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
900
|
+
activeFrom?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
901
|
+
activeUntil?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
902
|
+
minXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
903
|
+
maxXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
904
|
+
minRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
905
|
+
maxRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
906
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
907
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
908
|
+
minWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
909
|
+
maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
910
|
+
geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
911
|
+
participants?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
912
|
+
joinable?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
913
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
914
|
+
};
|
|
915
|
+
|
|
823
916
|
export type IPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['Page'] = IResolversParentTypes['Page']> = {
|
|
824
917
|
token?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
825
918
|
num?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
@@ -873,6 +966,8 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
873
966
|
findCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindCreationsArgs, 'term' | 'input'>>;
|
|
874
967
|
findUserCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserCreationsArgs, 'ownerId' | 'input'>>;
|
|
875
968
|
findUserLudoCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserLudoCreationsArgs, 'ownerId'>>;
|
|
969
|
+
fetchAvailableLeaderboards?: Resolver<Maybe<Array<Maybe<IResolversTypes['LeaderboardType']>>>, ParentType, ContextType>;
|
|
970
|
+
fetchAirdropsLeaderboard?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAirdropsLeaderboardArgs, 'filter' | 'sort' | 'page'>>;
|
|
876
971
|
findProfilesByName?: Resolver<IResolversTypes['ProfilePage'], ParentType, ContextType, RequireFields<IQueryFindProfilesByNameArgs, 'name'>>;
|
|
877
972
|
fetchUserReferralsInfoPage?: Resolver<IResolversTypes['UserReferralsInfoPage'], ParentType, ContextType, RequireFields<IQueryFetchUserReferralsInfoPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
878
973
|
fetchUserReferralsInfoCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -923,6 +1018,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
923
1018
|
Long?: GraphQLScalarType;
|
|
924
1019
|
Media?: IMediaResolvers<ContextType>;
|
|
925
1020
|
Mutation?: IMutationResolvers<ContextType>;
|
|
1021
|
+
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
1022
|
+
Opportunity?: IOpportunityResolvers<ContextType>;
|
|
926
1023
|
Page?: IPageResolvers<ContextType>;
|
|
927
1024
|
Profile?: IProfileResolvers<ContextType>;
|
|
928
1025
|
ProfilePage?: IProfilePageResolvers<ContextType>;
|
|
@@ -937,6 +1034,15 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
937
1034
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
938
1035
|
};
|
|
939
1036
|
|
|
1037
|
+
export type IFetchAirdropsLeaderboardQueryVariables = Exact<{
|
|
1038
|
+
filter: IAirdropsLeaderboardFilterInput;
|
|
1039
|
+
sort: IAirdropsLeaderboardSortInput;
|
|
1040
|
+
page: IPageInput;
|
|
1041
|
+
}>;
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
export type IFetchAirdropsLeaderboardQuery = { fetchAirdropsLeaderboard: { 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'>>>, nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements' | 'lastNum'>> } };
|
|
1045
|
+
|
|
940
1046
|
export type IFetchAllCreationsQueryVariables = Exact<{
|
|
941
1047
|
page?: Maybe<IPageInput>;
|
|
942
1048
|
}>;
|
|
@@ -967,6 +1073,11 @@ export type IFetchAssetsQuery = { fetchAssets: Array<Maybe<(
|
|
|
967
1073
|
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'previewUrl'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
968
1074
|
)>> };
|
|
969
1075
|
|
|
1076
|
+
export type IFetchAvailableLeaderboardsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
export type IFetchAvailableLeaderboardsQuery = Pick<IQuery, 'fetchAvailableLeaderboards'>;
|
|
1080
|
+
|
|
970
1081
|
export type IFetchCollectionQueryVariables = Exact<{
|
|
971
1082
|
collectionId: Scalars['String'];
|
|
972
1083
|
}>;
|
|
@@ -1117,6 +1228,69 @@ export type IFindUserLudoCreationsQueryVariables = Exact<{
|
|
|
1117
1228
|
export type IFindUserLudoCreationsQuery = { findUserLudoCreations: { nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'tokenId' | 'address' | 'itemId' | 'blockchain' | 'rank' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'likes'>>> } };
|
|
1118
1229
|
|
|
1119
1230
|
|
|
1231
|
+
export const FetchAirdropsLeaderboardDocument = gql`
|
|
1232
|
+
query FetchAirdropsLeaderboard($filter: AirdropsLeaderboardFilterInput!, $sort: AirdropsLeaderboardSortInput!, $page: PageInput!) {
|
|
1233
|
+
fetchAirdropsLeaderboard(filter: $filter, sort: $sort, page: $page) {
|
|
1234
|
+
opportunities {
|
|
1235
|
+
opportunityId
|
|
1236
|
+
opportunityStatus
|
|
1237
|
+
opportunityType
|
|
1238
|
+
name
|
|
1239
|
+
description
|
|
1240
|
+
ludoUrl
|
|
1241
|
+
projectUrl
|
|
1242
|
+
activeFrom
|
|
1243
|
+
activeUntil
|
|
1244
|
+
minXpLevel
|
|
1245
|
+
maxXpLevel
|
|
1246
|
+
minRank
|
|
1247
|
+
maxRank
|
|
1248
|
+
media
|
|
1249
|
+
createdAt
|
|
1250
|
+
minWalletValue
|
|
1251
|
+
maxWalletValue
|
|
1252
|
+
geolocations
|
|
1253
|
+
participants
|
|
1254
|
+
joinable
|
|
1255
|
+
}
|
|
1256
|
+
nextPage {
|
|
1257
|
+
token
|
|
1258
|
+
num
|
|
1259
|
+
size
|
|
1260
|
+
elements
|
|
1261
|
+
lastNum
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
`;
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* __useFetchAirdropsLeaderboardQuery__
|
|
1269
|
+
*
|
|
1270
|
+
* To run a query within a React component, call `useFetchAirdropsLeaderboardQuery` and pass it any options that fit your needs.
|
|
1271
|
+
* When your component renders, `useFetchAirdropsLeaderboardQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1272
|
+
* you can use to render your UI.
|
|
1273
|
+
*
|
|
1274
|
+
* @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;
|
|
1275
|
+
*
|
|
1276
|
+
* @example
|
|
1277
|
+
* const { data, loading, error } = useFetchAirdropsLeaderboardQuery({
|
|
1278
|
+
* variables: {
|
|
1279
|
+
* filter: // value for 'filter'
|
|
1280
|
+
* sort: // value for 'sort'
|
|
1281
|
+
* page: // value for 'page'
|
|
1282
|
+
* },
|
|
1283
|
+
* });
|
|
1284
|
+
*/
|
|
1285
|
+
export function useFetchAirdropsLeaderboardQuery(baseOptions: Apollo.QueryHookOptions<IFetchAirdropsLeaderboardQuery, IFetchAirdropsLeaderboardQueryVariables>) {
|
|
1286
|
+
return Apollo.useQuery<IFetchAirdropsLeaderboardQuery, IFetchAirdropsLeaderboardQueryVariables>(FetchAirdropsLeaderboardDocument, baseOptions);
|
|
1287
|
+
}
|
|
1288
|
+
export function useFetchAirdropsLeaderboardLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAirdropsLeaderboardQuery, IFetchAirdropsLeaderboardQueryVariables>) {
|
|
1289
|
+
return Apollo.useLazyQuery<IFetchAirdropsLeaderboardQuery, IFetchAirdropsLeaderboardQueryVariables>(FetchAirdropsLeaderboardDocument, baseOptions);
|
|
1290
|
+
}
|
|
1291
|
+
export type FetchAirdropsLeaderboardQueryHookResult = ReturnType<typeof useFetchAirdropsLeaderboardQuery>;
|
|
1292
|
+
export type FetchAirdropsLeaderboardLazyQueryHookResult = ReturnType<typeof useFetchAirdropsLeaderboardLazyQuery>;
|
|
1293
|
+
export type FetchAirdropsLeaderboardQueryResult = Apollo.QueryResult<IFetchAirdropsLeaderboardQuery, IFetchAirdropsLeaderboardQueryVariables>;
|
|
1120
1294
|
export const FetchAllCreationsDocument = gql`
|
|
1121
1295
|
query FetchAllCreations($page: PageInput) {
|
|
1122
1296
|
fetchAllCreations(page: $page) {
|
|
@@ -1417,6 +1591,36 @@ export function useFetchAssetsLazyQuery(baseOptions?: Apollo.LazyQueryHookOption
|
|
|
1417
1591
|
export type FetchAssetsQueryHookResult = ReturnType<typeof useFetchAssetsQuery>;
|
|
1418
1592
|
export type FetchAssetsLazyQueryHookResult = ReturnType<typeof useFetchAssetsLazyQuery>;
|
|
1419
1593
|
export type FetchAssetsQueryResult = Apollo.QueryResult<IFetchAssetsQuery, IFetchAssetsQueryVariables>;
|
|
1594
|
+
export const FetchAvailableLeaderboardsDocument = gql`
|
|
1595
|
+
query FetchAvailableLeaderboards {
|
|
1596
|
+
fetchAvailableLeaderboards
|
|
1597
|
+
}
|
|
1598
|
+
`;
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* __useFetchAvailableLeaderboardsQuery__
|
|
1602
|
+
*
|
|
1603
|
+
* To run a query within a React component, call `useFetchAvailableLeaderboardsQuery` and pass it any options that fit your needs.
|
|
1604
|
+
* When your component renders, `useFetchAvailableLeaderboardsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1605
|
+
* you can use to render your UI.
|
|
1606
|
+
*
|
|
1607
|
+
* @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;
|
|
1608
|
+
*
|
|
1609
|
+
* @example
|
|
1610
|
+
* const { data, loading, error } = useFetchAvailableLeaderboardsQuery({
|
|
1611
|
+
* variables: {
|
|
1612
|
+
* },
|
|
1613
|
+
* });
|
|
1614
|
+
*/
|
|
1615
|
+
export function useFetchAvailableLeaderboardsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAvailableLeaderboardsQuery, IFetchAvailableLeaderboardsQueryVariables>) {
|
|
1616
|
+
return Apollo.useQuery<IFetchAvailableLeaderboardsQuery, IFetchAvailableLeaderboardsQueryVariables>(FetchAvailableLeaderboardsDocument, baseOptions);
|
|
1617
|
+
}
|
|
1618
|
+
export function useFetchAvailableLeaderboardsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAvailableLeaderboardsQuery, IFetchAvailableLeaderboardsQueryVariables>) {
|
|
1619
|
+
return Apollo.useLazyQuery<IFetchAvailableLeaderboardsQuery, IFetchAvailableLeaderboardsQueryVariables>(FetchAvailableLeaderboardsDocument, baseOptions);
|
|
1620
|
+
}
|
|
1621
|
+
export type FetchAvailableLeaderboardsQueryHookResult = ReturnType<typeof useFetchAvailableLeaderboardsQuery>;
|
|
1622
|
+
export type FetchAvailableLeaderboardsLazyQueryHookResult = ReturnType<typeof useFetchAvailableLeaderboardsLazyQuery>;
|
|
1623
|
+
export type FetchAvailableLeaderboardsQueryResult = Apollo.QueryResult<IFetchAvailableLeaderboardsQuery, IFetchAvailableLeaderboardsQueryVariables>;
|
|
1420
1624
|
export const FetchCollectionDocument = gql`
|
|
1421
1625
|
query fetchCollection($collectionId: String!) {
|
|
1422
1626
|
fetchCollection(collectionId: $collectionId) {
|