@ludo.ninja/api 3.0.32 → 3.0.34
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__/identityHost/schema.d.ts +57 -0
- package/build/graphql_tools/__generated__/identityHost/schema.js +66 -17
- 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 +58 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/extensionHost/schema.ts +19 -4
- package/src/graphql_tools/__generated__/identityHost/schema.ts +87 -15
- package/src/graphql_tools/__generated__/searchHost/schema.ts +208 -4
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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) {
|