@ludo.ninja/api 3.0.53 → 3.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +14 -10
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +10 -0
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +35 -0
- package/build/graphql_tools/__generated__/searchHost/schema.js +30 -1
- package/build/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +24 -10
- package/src/graphql_tools/__generated__/searchHost/schema.ts +45 -0
- package/tsconfig.tsbuildinfo +1 -1
package/README.md
ADDED
|
@@ -182,7 +182,7 @@ export type IOpportunityV2 = {
|
|
|
182
182
|
brandId: Scalars['String'];
|
|
183
183
|
categoryId: Scalars['String'];
|
|
184
184
|
opportunityStatus: Scalars['String'];
|
|
185
|
-
opportunityType:
|
|
185
|
+
opportunityType: IOpportunityType;
|
|
186
186
|
notificationType: Scalars['String'];
|
|
187
187
|
name: Scalars['String'];
|
|
188
188
|
description?: Maybe<Scalars['String']>;
|
|
@@ -215,6 +215,8 @@ export type IOpportunityV2 = {
|
|
|
215
215
|
geolocations?: Maybe<Array<Scalars['String']>>;
|
|
216
216
|
brand: IBrand;
|
|
217
217
|
subscribed?: Maybe<Scalars['Boolean']>;
|
|
218
|
+
participantsLimit?: Maybe<Scalars['Int']>;
|
|
219
|
+
availablePlacesForAirdrop?: Maybe<Scalars['Int']>;
|
|
218
220
|
};
|
|
219
221
|
export type IProfileOpportunities = {
|
|
220
222
|
newOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
@@ -231,7 +233,7 @@ export type IQuery = {
|
|
|
231
233
|
fetchOpportunitiesV2?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
232
234
|
fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
|
|
233
235
|
fetchProfileOpportunities: IProfileOpportunities;
|
|
234
|
-
fetchOpportunity
|
|
236
|
+
fetchOpportunity?: Maybe<IOpportunityV2>;
|
|
235
237
|
fetchOpportunitiesByIds: Array<IOpportunityV2>;
|
|
236
238
|
fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
237
239
|
fetchAirdropRegistrationsCsv: Scalars['String'];
|
|
@@ -414,7 +416,7 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
414
416
|
brandId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
415
417
|
categoryId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
416
418
|
opportunityStatus?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
417
|
-
opportunityType?: Resolver<IResolversTypes['
|
|
419
|
+
opportunityType?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
|
|
418
420
|
notificationType?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
419
421
|
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
420
422
|
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -447,6 +449,8 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
447
449
|
geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
448
450
|
brand?: Resolver<IResolversTypes['Brand'], ParentType, ContextType>;
|
|
449
451
|
subscribed?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
452
|
+
participantsLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
453
|
+
availablePlacesForAirdrop?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
450
454
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
451
455
|
};
|
|
452
456
|
export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfileOpportunities'] = IResolversParentTypes['ProfileOpportunities']> = {
|
|
@@ -465,7 +469,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
465
469
|
fetchOpportunitiesV2?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
466
470
|
fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
|
|
467
471
|
fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
|
|
468
|
-
fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2']
|
|
472
|
+
fetchOpportunity?: Resolver<Maybe<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
|
|
469
473
|
fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
|
|
470
474
|
fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
|
|
471
475
|
fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
|
|
@@ -518,13 +522,13 @@ export type IFetchOpportunitiesByIdsQueryVariables = Exact<{
|
|
|
518
522
|
opportunityIds: Array<Scalars['ID']>;
|
|
519
523
|
}>;
|
|
520
524
|
export type IFetchOpportunitiesByIdsQuery = {
|
|
521
|
-
fetchOpportunitiesByIds: Array<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>;
|
|
525
|
+
fetchOpportunitiesByIds: Array<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'participantsLimit' | 'availablePlacesForAirdrop'>>;
|
|
522
526
|
};
|
|
523
527
|
export type IFetchOpportunitiesForProfileQueryVariables = Exact<{
|
|
524
528
|
[key: string]: never;
|
|
525
529
|
}>;
|
|
526
530
|
export type IFetchOpportunitiesForProfileQuery = {
|
|
527
|
-
fetchOpportunitiesForProfile: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>>;
|
|
531
|
+
fetchOpportunitiesForProfile: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>;
|
|
528
532
|
};
|
|
529
533
|
export type IFetchBrandBySlugQueryVariables = Exact<{
|
|
530
534
|
slug: Scalars['String'];
|
|
@@ -548,17 +552,17 @@ export type IFetchOpportunityQueryVariables = Exact<{
|
|
|
548
552
|
opportunityId: Scalars['ID'];
|
|
549
553
|
}>;
|
|
550
554
|
export type IFetchOpportunityQuery = {
|
|
551
|
-
fetchOpportunity
|
|
555
|
+
fetchOpportunity?: Maybe<(Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'subscribed' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'participantsLimit' | 'availablePlacesForAirdrop'> & {
|
|
552
556
|
brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>;
|
|
553
|
-
})
|
|
557
|
+
})>;
|
|
554
558
|
};
|
|
555
559
|
export type IFetchProfileOpportunitiesQueryVariables = Exact<{
|
|
556
560
|
[key: string]: never;
|
|
557
561
|
}>;
|
|
558
562
|
export type IFetchProfileOpportunitiesQuery = {
|
|
559
563
|
fetchProfileOpportunities: {
|
|
560
|
-
newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>>>;
|
|
561
|
-
recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>>>;
|
|
564
|
+
newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>;
|
|
565
|
+
recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>;
|
|
562
566
|
};
|
|
563
567
|
};
|
|
564
568
|
export declare const DislikeOpportunityDocument: Apollo.DocumentNode;
|
|
@@ -259,6 +259,8 @@ exports.FetchOpportunitiesByIdsDocument = (0, client_1.gql) `
|
|
|
259
259
|
maxWalletValue
|
|
260
260
|
shareLink
|
|
261
261
|
liked
|
|
262
|
+
participantsLimit
|
|
263
|
+
availablePlacesForAirdrop
|
|
262
264
|
}
|
|
263
265
|
}
|
|
264
266
|
`;
|
|
@@ -322,6 +324,8 @@ exports.FetchOpportunitiesForProfileDocument = (0, client_1.gql) `
|
|
|
322
324
|
maxWalletValue
|
|
323
325
|
shareLink
|
|
324
326
|
liked
|
|
327
|
+
participantsLimit
|
|
328
|
+
availablePlacesForAirdrop
|
|
325
329
|
}
|
|
326
330
|
}
|
|
327
331
|
`;
|
|
@@ -546,6 +550,8 @@ exports.FetchOpportunityDocument = (0, client_1.gql) `
|
|
|
546
550
|
shareLink
|
|
547
551
|
liked
|
|
548
552
|
geolocations
|
|
553
|
+
participantsLimit
|
|
554
|
+
availablePlacesForAirdrop
|
|
549
555
|
brand {
|
|
550
556
|
brandId
|
|
551
557
|
name
|
|
@@ -627,6 +633,8 @@ exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
|
|
|
627
633
|
maxWalletValue
|
|
628
634
|
shareLink
|
|
629
635
|
liked
|
|
636
|
+
participantsLimit
|
|
637
|
+
availablePlacesForAirdrop
|
|
630
638
|
}
|
|
631
639
|
recentOpportunities {
|
|
632
640
|
opportunityId
|
|
@@ -662,6 +670,8 @@ exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
|
|
|
662
670
|
maxWalletValue
|
|
663
671
|
shareLink
|
|
664
672
|
liked
|
|
673
|
+
participantsLimit
|
|
674
|
+
availablePlacesForAirdrop
|
|
665
675
|
}
|
|
666
676
|
}
|
|
667
677
|
}
|
|
@@ -358,6 +358,7 @@ export type IQuery = {
|
|
|
358
358
|
fetchAvailableLeaderboards?: Maybe<Array<Maybe<ILeaderboardType>>>;
|
|
359
359
|
fetchMyLudoNftsTonPage: ILudoNftsTonPage;
|
|
360
360
|
fetchLudoNftsTonPage: ILudoNftsTonPage;
|
|
361
|
+
fetchUsedForMintingRefCode?: Maybe<Scalars['String']>;
|
|
361
362
|
fetchAirdropsLeaderboard: IOpportunitiesPage;
|
|
362
363
|
findProfilesByName: IProfilePage;
|
|
363
364
|
fetchUserReferralsInfoPage: IUserReferralsInfoPage;
|
|
@@ -437,6 +438,9 @@ export type IQueryFetchLudoNftsTonPageArgs = {
|
|
|
437
438
|
userId: Scalars['ID'];
|
|
438
439
|
page: IPageInput;
|
|
439
440
|
};
|
|
441
|
+
export type IQueryFetchUsedForMintingRefCodeArgs = {
|
|
442
|
+
ludoNftId: Scalars['String'];
|
|
443
|
+
};
|
|
440
444
|
export type IQueryFetchAirdropsLeaderboardArgs = {
|
|
441
445
|
filter: IAirdropsLeaderboardFilterInput;
|
|
442
446
|
sort: IAirdropsLeaderboardSortInput;
|
|
@@ -938,6 +942,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
938
942
|
fetchAvailableLeaderboards?: Resolver<Maybe<Array<Maybe<IResolversTypes['LeaderboardType']>>>, ParentType, ContextType>;
|
|
939
943
|
fetchMyLudoNftsTonPage?: Resolver<IResolversTypes['LudoNftsTonPage'], ParentType, ContextType, RequireFields<IQueryFetchMyLudoNftsTonPageArgs, 'page'>>;
|
|
940
944
|
fetchLudoNftsTonPage?: Resolver<IResolversTypes['LudoNftsTonPage'], ParentType, ContextType, RequireFields<IQueryFetchLudoNftsTonPageArgs, 'userId' | 'page'>>;
|
|
945
|
+
fetchUsedForMintingRefCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType, RequireFields<IQueryFetchUsedForMintingRefCodeArgs, 'ludoNftId'>>;
|
|
941
946
|
fetchAirdropsLeaderboard?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAirdropsLeaderboardArgs, 'filter' | 'sort' | 'page'>>;
|
|
942
947
|
findProfilesByName?: Resolver<IResolversTypes['ProfilePage'], ParentType, ContextType, RequireFields<IQueryFindProfilesByNameArgs, 'name'>>;
|
|
943
948
|
fetchUserReferralsInfoPage?: Resolver<IResolversTypes['UserReferralsInfoPage'], ParentType, ContextType, RequireFields<IQueryFetchUserReferralsInfoPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1202,6 +1207,10 @@ export type IFetchProjectsLeaderboardQuery = {
|
|
|
1202
1207
|
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements' | 'lastNum'>>;
|
|
1203
1208
|
};
|
|
1204
1209
|
};
|
|
1210
|
+
export type IFetchUsedForMintingRefCodeQueryVariables = Exact<{
|
|
1211
|
+
ludoNftId: Scalars['String'];
|
|
1212
|
+
}>;
|
|
1213
|
+
export type IFetchUsedForMintingRefCodeQuery = Pick<IQuery, 'fetchUsedForMintingRefCode'>;
|
|
1205
1214
|
export type IFetchUserReferralsInfoCsvQueryVariables = Exact<{
|
|
1206
1215
|
[key: string]: never;
|
|
1207
1216
|
}>;
|
|
@@ -1736,6 +1745,32 @@ export declare function useFetchProjectsLeaderboardLazyQuery(baseOptions?: Apoll
|
|
|
1736
1745
|
export type FetchProjectsLeaderboardQueryHookResult = ReturnType<typeof useFetchProjectsLeaderboardQuery>;
|
|
1737
1746
|
export type FetchProjectsLeaderboardLazyQueryHookResult = ReturnType<typeof useFetchProjectsLeaderboardLazyQuery>;
|
|
1738
1747
|
export type FetchProjectsLeaderboardQueryResult = Apollo.QueryResult<IFetchProjectsLeaderboardQuery, IFetchProjectsLeaderboardQueryVariables>;
|
|
1748
|
+
export declare const FetchUsedForMintingRefCodeDocument: Apollo.DocumentNode;
|
|
1749
|
+
/**
|
|
1750
|
+
* __useFetchUsedForMintingRefCodeQuery__
|
|
1751
|
+
*
|
|
1752
|
+
* To run a query within a React component, call `useFetchUsedForMintingRefCodeQuery` and pass it any options that fit your needs.
|
|
1753
|
+
* When your component renders, `useFetchUsedForMintingRefCodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1754
|
+
* you can use to render your UI.
|
|
1755
|
+
*
|
|
1756
|
+
* @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;
|
|
1757
|
+
*
|
|
1758
|
+
* @example
|
|
1759
|
+
* const { data, loading, error } = useFetchUsedForMintingRefCodeQuery({
|
|
1760
|
+
* variables: {
|
|
1761
|
+
* ludoNftId: // value for 'ludoNftId'
|
|
1762
|
+
* },
|
|
1763
|
+
* });
|
|
1764
|
+
*/
|
|
1765
|
+
export declare function useFetchUsedForMintingRefCodeQuery(baseOptions: Apollo.QueryHookOptions<IFetchUsedForMintingRefCodeQuery, IFetchUsedForMintingRefCodeQueryVariables>): Apollo.QueryResult<IFetchUsedForMintingRefCodeQuery, Exact<{
|
|
1766
|
+
ludoNftId: string;
|
|
1767
|
+
}>>;
|
|
1768
|
+
export declare function useFetchUsedForMintingRefCodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUsedForMintingRefCodeQuery, IFetchUsedForMintingRefCodeQueryVariables>): Apollo.LazyQueryResultTuple<IFetchUsedForMintingRefCodeQuery, Exact<{
|
|
1769
|
+
ludoNftId: string;
|
|
1770
|
+
}>>;
|
|
1771
|
+
export type FetchUsedForMintingRefCodeQueryHookResult = ReturnType<typeof useFetchUsedForMintingRefCodeQuery>;
|
|
1772
|
+
export type FetchUsedForMintingRefCodeLazyQueryHookResult = ReturnType<typeof useFetchUsedForMintingRefCodeLazyQuery>;
|
|
1773
|
+
export type FetchUsedForMintingRefCodeQueryResult = Apollo.QueryResult<IFetchUsedForMintingRefCodeQuery, IFetchUsedForMintingRefCodeQueryVariables>;
|
|
1739
1774
|
export declare const FetchUserReferralsInfoCsvDocument: Apollo.DocumentNode;
|
|
1740
1775
|
/**
|
|
1741
1776
|
* __useFetchUserReferralsInfoCsvQuery__
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.FetchUserPortfolioDocument = exports.useFetchLudoNftsTonPageLazyQuery = exports.useFetchLudoNftsTonPageQuery = exports.FetchLudoNftsTonPageDocument = 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.IProjectType = 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 = exports.useFetchUserReferralsInfoCsvQuery = exports.FetchUserReferralsInfoCsvDocument = exports.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = 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 = exports.useFetchUserReferralsInfoCsvQuery = exports.FetchUserReferralsInfoCsvDocument = exports.useFetchUsedForMintingRefCodeLazyQuery = exports.useFetchUsedForMintingRefCodeQuery = exports.FetchUsedForMintingRefCodeDocument = exports.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var ILeaderboardType;
|
|
@@ -1256,6 +1256,35 @@ function useFetchProjectsLeaderboardLazyQuery(baseOptions) {
|
|
|
1256
1256
|
return Apollo.useLazyQuery(exports.FetchProjectsLeaderboardDocument, baseOptions);
|
|
1257
1257
|
}
|
|
1258
1258
|
exports.useFetchProjectsLeaderboardLazyQuery = useFetchProjectsLeaderboardLazyQuery;
|
|
1259
|
+
exports.FetchUsedForMintingRefCodeDocument = (0, client_1.gql) `
|
|
1260
|
+
query FetchUsedForMintingRefCode($ludoNftId: String!) {
|
|
1261
|
+
fetchUsedForMintingRefCode(ludoNftId: $ludoNftId)
|
|
1262
|
+
}
|
|
1263
|
+
`;
|
|
1264
|
+
/**
|
|
1265
|
+
* __useFetchUsedForMintingRefCodeQuery__
|
|
1266
|
+
*
|
|
1267
|
+
* To run a query within a React component, call `useFetchUsedForMintingRefCodeQuery` and pass it any options that fit your needs.
|
|
1268
|
+
* When your component renders, `useFetchUsedForMintingRefCodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1269
|
+
* you can use to render your UI.
|
|
1270
|
+
*
|
|
1271
|
+
* @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;
|
|
1272
|
+
*
|
|
1273
|
+
* @example
|
|
1274
|
+
* const { data, loading, error } = useFetchUsedForMintingRefCodeQuery({
|
|
1275
|
+
* variables: {
|
|
1276
|
+
* ludoNftId: // value for 'ludoNftId'
|
|
1277
|
+
* },
|
|
1278
|
+
* });
|
|
1279
|
+
*/
|
|
1280
|
+
function useFetchUsedForMintingRefCodeQuery(baseOptions) {
|
|
1281
|
+
return Apollo.useQuery(exports.FetchUsedForMintingRefCodeDocument, baseOptions);
|
|
1282
|
+
}
|
|
1283
|
+
exports.useFetchUsedForMintingRefCodeQuery = useFetchUsedForMintingRefCodeQuery;
|
|
1284
|
+
function useFetchUsedForMintingRefCodeLazyQuery(baseOptions) {
|
|
1285
|
+
return Apollo.useLazyQuery(exports.FetchUsedForMintingRefCodeDocument, baseOptions);
|
|
1286
|
+
}
|
|
1287
|
+
exports.useFetchUsedForMintingRefCodeLazyQuery = useFetchUsedForMintingRefCodeLazyQuery;
|
|
1259
1288
|
exports.FetchUserReferralsInfoCsvDocument = (0, client_1.gql) `
|
|
1260
1289
|
query FetchUserReferralsInfoCsv {
|
|
1261
1290
|
fetchUserReferralsInfoCsv
|
package/build/index.d.ts
CHANGED
|
@@ -424,6 +424,16 @@ declare const schema: {
|
|
|
424
424
|
sort: searchSchema.IProjectsLeaderboardSortInput;
|
|
425
425
|
page: searchSchema.IPageInput;
|
|
426
426
|
}>>;
|
|
427
|
+
useFetchUsedForMintingRefCodeQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchUsedForMintingRefCodeQuery, searchSchema.Exact<{
|
|
428
|
+
ludoNftId: string;
|
|
429
|
+
}>>): import("@apollo/client").QueryResult<searchSchema.IFetchUsedForMintingRefCodeQuery, searchSchema.Exact<{
|
|
430
|
+
ludoNftId: string;
|
|
431
|
+
}>>;
|
|
432
|
+
useFetchUsedForMintingRefCodeLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<searchSchema.IFetchUsedForMintingRefCodeQuery, searchSchema.Exact<{
|
|
433
|
+
ludoNftId: string;
|
|
434
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchUsedForMintingRefCodeQuery, searchSchema.Exact<{
|
|
435
|
+
ludoNftId: string;
|
|
436
|
+
}>>;
|
|
427
437
|
useFetchUserReferralsInfoCsvQuery(baseOptions?: import("@apollo/client").QueryHookOptions<searchSchema.IFetchUserReferralsInfoCsvQuery, searchSchema.Exact<{
|
|
428
438
|
[key: string]: never;
|
|
429
439
|
}>> | undefined): import("@apollo/client").QueryResult<searchSchema.IFetchUserReferralsInfoCsvQuery, searchSchema.Exact<{
|
|
@@ -537,6 +547,7 @@ declare const schema: {
|
|
|
537
547
|
FetchLudoNftsTonPageDocument: import("graphql").DocumentNode;
|
|
538
548
|
FetchUserPortfolioDocument: import("graphql").DocumentNode;
|
|
539
549
|
FetchProjectsLeaderboardDocument: import("graphql").DocumentNode;
|
|
550
|
+
FetchUsedForMintingRefCodeDocument: import("graphql").DocumentNode;
|
|
540
551
|
FetchUserReferralsInfoCsvDocument: import("graphql").DocumentNode;
|
|
541
552
|
FetchUserReferralsInfoPageDocument: import("graphql").DocumentNode;
|
|
542
553
|
FindCreationsDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -210,7 +210,7 @@ export type IOpportunityV2 = {
|
|
|
210
210
|
brandId: Scalars['String'];
|
|
211
211
|
categoryId: Scalars['String'];
|
|
212
212
|
opportunityStatus: Scalars['String'];
|
|
213
|
-
opportunityType:
|
|
213
|
+
opportunityType: IOpportunityType;
|
|
214
214
|
notificationType: Scalars['String'];
|
|
215
215
|
name: Scalars['String'];
|
|
216
216
|
description?: Maybe<Scalars['String']>;
|
|
@@ -243,6 +243,8 @@ export type IOpportunityV2 = {
|
|
|
243
243
|
geolocations?: Maybe<Array<Scalars['String']>>;
|
|
244
244
|
brand: IBrand;
|
|
245
245
|
subscribed?: Maybe<Scalars['Boolean']>;
|
|
246
|
+
participantsLimit?: Maybe<Scalars['Int']>;
|
|
247
|
+
availablePlacesForAirdrop?: Maybe<Scalars['Int']>;
|
|
246
248
|
};
|
|
247
249
|
|
|
248
250
|
export type IProfileOpportunities = {
|
|
@@ -261,7 +263,7 @@ export type IQuery = {
|
|
|
261
263
|
fetchOpportunitiesV2?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
262
264
|
fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
|
|
263
265
|
fetchProfileOpportunities: IProfileOpportunities;
|
|
264
|
-
fetchOpportunity
|
|
266
|
+
fetchOpportunity?: Maybe<IOpportunityV2>;
|
|
265
267
|
fetchOpportunitiesByIds: Array<IOpportunityV2>;
|
|
266
268
|
fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
267
269
|
fetchAirdropRegistrationsCsv: Scalars['String'];
|
|
@@ -512,7 +514,7 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
512
514
|
brandId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
513
515
|
categoryId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
514
516
|
opportunityStatus?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
515
|
-
opportunityType?: Resolver<IResolversTypes['
|
|
517
|
+
opportunityType?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
|
|
516
518
|
notificationType?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
517
519
|
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
518
520
|
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -545,6 +547,8 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
545
547
|
geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
546
548
|
brand?: Resolver<IResolversTypes['Brand'], ParentType, ContextType>;
|
|
547
549
|
subscribed?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
550
|
+
participantsLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
551
|
+
availablePlacesForAirdrop?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
548
552
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
549
553
|
};
|
|
550
554
|
|
|
@@ -565,7 +569,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
565
569
|
fetchOpportunitiesV2?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
566
570
|
fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
|
|
567
571
|
fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
|
|
568
|
-
fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2']
|
|
572
|
+
fetchOpportunity?: Resolver<Maybe<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
|
|
569
573
|
fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
|
|
570
574
|
fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
|
|
571
575
|
fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
|
|
@@ -643,12 +647,12 @@ export type IFetchOpportunitiesByIdsQueryVariables = Exact<{
|
|
|
643
647
|
}>;
|
|
644
648
|
|
|
645
649
|
|
|
646
|
-
export type IFetchOpportunitiesByIdsQuery = { fetchOpportunitiesByIds: Array<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>> };
|
|
650
|
+
export type IFetchOpportunitiesByIdsQuery = { fetchOpportunitiesByIds: Array<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'participantsLimit' | 'availablePlacesForAirdrop'>> };
|
|
647
651
|
|
|
648
652
|
export type IFetchOpportunitiesForProfileQueryVariables = Exact<{ [key: string]: never; }>;
|
|
649
653
|
|
|
650
654
|
|
|
651
|
-
export type IFetchOpportunitiesForProfileQuery = { fetchOpportunitiesForProfile: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>> };
|
|
655
|
+
export type IFetchOpportunitiesForProfileQuery = { fetchOpportunitiesForProfile: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'participantsLimit' | 'availablePlacesForAirdrop'>>> };
|
|
652
656
|
|
|
653
657
|
export type IFetchBrandBySlugQueryVariables = Exact<{
|
|
654
658
|
slug: Scalars['String'];
|
|
@@ -672,15 +676,15 @@ export type IFetchOpportunityQueryVariables = Exact<{
|
|
|
672
676
|
}>;
|
|
673
677
|
|
|
674
678
|
|
|
675
|
-
export type IFetchOpportunityQuery = { fetchOpportunity
|
|
676
|
-
Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'subscribed' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations'>
|
|
679
|
+
export type IFetchOpportunityQuery = { fetchOpportunity?: Maybe<(
|
|
680
|
+
Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'subscribed' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'participantsLimit' | 'availablePlacesForAirdrop'>
|
|
677
681
|
& { brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> }
|
|
678
|
-
) };
|
|
682
|
+
)> };
|
|
679
683
|
|
|
680
684
|
export type IFetchProfileOpportunitiesQueryVariables = Exact<{ [key: string]: never; }>;
|
|
681
685
|
|
|
682
686
|
|
|
683
|
-
export type IFetchProfileOpportunitiesQuery = { fetchProfileOpportunities: { newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>>>, recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>>> } };
|
|
687
|
+
export type IFetchProfileOpportunitiesQuery = { fetchProfileOpportunities: { newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>, recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>> } };
|
|
684
688
|
|
|
685
689
|
|
|
686
690
|
export const DislikeOpportunityDocument = gql`
|
|
@@ -936,6 +940,8 @@ export const FetchOpportunitiesByIdsDocument = gql`
|
|
|
936
940
|
maxWalletValue
|
|
937
941
|
shareLink
|
|
938
942
|
liked
|
|
943
|
+
participantsLimit
|
|
944
|
+
availablePlacesForAirdrop
|
|
939
945
|
}
|
|
940
946
|
}
|
|
941
947
|
`;
|
|
@@ -1001,6 +1007,8 @@ export const FetchOpportunitiesForProfileDocument = gql`
|
|
|
1001
1007
|
maxWalletValue
|
|
1002
1008
|
shareLink
|
|
1003
1009
|
liked
|
|
1010
|
+
participantsLimit
|
|
1011
|
+
availablePlacesForAirdrop
|
|
1004
1012
|
}
|
|
1005
1013
|
}
|
|
1006
1014
|
`;
|
|
@@ -1231,6 +1239,8 @@ export const FetchOpportunityDocument = gql`
|
|
|
1231
1239
|
shareLink
|
|
1232
1240
|
liked
|
|
1233
1241
|
geolocations
|
|
1242
|
+
participantsLimit
|
|
1243
|
+
availablePlacesForAirdrop
|
|
1234
1244
|
brand {
|
|
1235
1245
|
brandId
|
|
1236
1246
|
name
|
|
@@ -1314,6 +1324,8 @@ export const FetchProfileOpportunitiesDocument = gql`
|
|
|
1314
1324
|
maxWalletValue
|
|
1315
1325
|
shareLink
|
|
1316
1326
|
liked
|
|
1327
|
+
participantsLimit
|
|
1328
|
+
availablePlacesForAirdrop
|
|
1317
1329
|
}
|
|
1318
1330
|
recentOpportunities {
|
|
1319
1331
|
opportunityId
|
|
@@ -1349,6 +1361,8 @@ export const FetchProfileOpportunitiesDocument = gql`
|
|
|
1349
1361
|
maxWalletValue
|
|
1350
1362
|
shareLink
|
|
1351
1363
|
liked
|
|
1364
|
+
participantsLimit
|
|
1365
|
+
availablePlacesForAirdrop
|
|
1352
1366
|
}
|
|
1353
1367
|
}
|
|
1354
1368
|
}
|
|
@@ -396,6 +396,7 @@ export type IQuery = {
|
|
|
396
396
|
fetchAvailableLeaderboards?: Maybe<Array<Maybe<ILeaderboardType>>>;
|
|
397
397
|
fetchMyLudoNftsTonPage: ILudoNftsTonPage;
|
|
398
398
|
fetchLudoNftsTonPage: ILudoNftsTonPage;
|
|
399
|
+
fetchUsedForMintingRefCode?: Maybe<Scalars['String']>;
|
|
399
400
|
fetchAirdropsLeaderboard: IOpportunitiesPage;
|
|
400
401
|
findProfilesByName: IProfilePage;
|
|
401
402
|
fetchUserReferralsInfoPage: IUserReferralsInfoPage;
|
|
@@ -517,6 +518,11 @@ export type IQueryFetchLudoNftsTonPageArgs = {
|
|
|
517
518
|
};
|
|
518
519
|
|
|
519
520
|
|
|
521
|
+
export type IQueryFetchUsedForMintingRefCodeArgs = {
|
|
522
|
+
ludoNftId: Scalars['String'];
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
|
|
520
526
|
export type IQueryFetchAirdropsLeaderboardArgs = {
|
|
521
527
|
filter: IAirdropsLeaderboardFilterInput;
|
|
522
528
|
sort: IAirdropsLeaderboardSortInput;
|
|
@@ -1105,6 +1111,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1105
1111
|
fetchAvailableLeaderboards?: Resolver<Maybe<Array<Maybe<IResolversTypes['LeaderboardType']>>>, ParentType, ContextType>;
|
|
1106
1112
|
fetchMyLudoNftsTonPage?: Resolver<IResolversTypes['LudoNftsTonPage'], ParentType, ContextType, RequireFields<IQueryFetchMyLudoNftsTonPageArgs, 'page'>>;
|
|
1107
1113
|
fetchLudoNftsTonPage?: Resolver<IResolversTypes['LudoNftsTonPage'], ParentType, ContextType, RequireFields<IQueryFetchLudoNftsTonPageArgs, 'userId' | 'page'>>;
|
|
1114
|
+
fetchUsedForMintingRefCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType, RequireFields<IQueryFetchUsedForMintingRefCodeArgs, 'ludoNftId'>>;
|
|
1108
1115
|
fetchAirdropsLeaderboard?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAirdropsLeaderboardArgs, 'filter' | 'sort' | 'page'>>;
|
|
1109
1116
|
findProfilesByName?: Resolver<IResolversTypes['ProfilePage'], ParentType, ContextType, RequireFields<IQueryFindProfilesByNameArgs, 'name'>>;
|
|
1110
1117
|
fetchUserReferralsInfoPage?: Resolver<IResolversTypes['UserReferralsInfoPage'], ParentType, ContextType, RequireFields<IQueryFetchUserReferralsInfoPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1339,6 +1346,13 @@ export type IFetchProjectsLeaderboardQueryVariables = Exact<{
|
|
|
1339
1346
|
|
|
1340
1347
|
export type IFetchProjectsLeaderboardQuery = { fetchProjectsLeaderboard: { projects: Array<Pick<IProject, 'id' | 'name' | 'marketCap' | 'tradingVolume24h' | 'liquidity' | 'avgInvestorsUserRank' | 'vcBackers' | 'securityScore' | 'types'>>, nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements' | 'lastNum'>> } };
|
|
1341
1348
|
|
|
1349
|
+
export type IFetchUsedForMintingRefCodeQueryVariables = Exact<{
|
|
1350
|
+
ludoNftId: Scalars['String'];
|
|
1351
|
+
}>;
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
export type IFetchUsedForMintingRefCodeQuery = Pick<IQuery, 'fetchUsedForMintingRefCode'>;
|
|
1355
|
+
|
|
1342
1356
|
export type IFetchUserReferralsInfoCsvQueryVariables = Exact<{ [key: string]: never; }>;
|
|
1343
1357
|
|
|
1344
1358
|
|
|
@@ -2621,6 +2635,37 @@ export function useFetchProjectsLeaderboardLazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
2621
2635
|
export type FetchProjectsLeaderboardQueryHookResult = ReturnType<typeof useFetchProjectsLeaderboardQuery>;
|
|
2622
2636
|
export type FetchProjectsLeaderboardLazyQueryHookResult = ReturnType<typeof useFetchProjectsLeaderboardLazyQuery>;
|
|
2623
2637
|
export type FetchProjectsLeaderboardQueryResult = Apollo.QueryResult<IFetchProjectsLeaderboardQuery, IFetchProjectsLeaderboardQueryVariables>;
|
|
2638
|
+
export const FetchUsedForMintingRefCodeDocument = gql`
|
|
2639
|
+
query FetchUsedForMintingRefCode($ludoNftId: String!) {
|
|
2640
|
+
fetchUsedForMintingRefCode(ludoNftId: $ludoNftId)
|
|
2641
|
+
}
|
|
2642
|
+
`;
|
|
2643
|
+
|
|
2644
|
+
/**
|
|
2645
|
+
* __useFetchUsedForMintingRefCodeQuery__
|
|
2646
|
+
*
|
|
2647
|
+
* To run a query within a React component, call `useFetchUsedForMintingRefCodeQuery` and pass it any options that fit your needs.
|
|
2648
|
+
* When your component renders, `useFetchUsedForMintingRefCodeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2649
|
+
* you can use to render your UI.
|
|
2650
|
+
*
|
|
2651
|
+
* @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;
|
|
2652
|
+
*
|
|
2653
|
+
* @example
|
|
2654
|
+
* const { data, loading, error } = useFetchUsedForMintingRefCodeQuery({
|
|
2655
|
+
* variables: {
|
|
2656
|
+
* ludoNftId: // value for 'ludoNftId'
|
|
2657
|
+
* },
|
|
2658
|
+
* });
|
|
2659
|
+
*/
|
|
2660
|
+
export function useFetchUsedForMintingRefCodeQuery(baseOptions: Apollo.QueryHookOptions<IFetchUsedForMintingRefCodeQuery, IFetchUsedForMintingRefCodeQueryVariables>) {
|
|
2661
|
+
return Apollo.useQuery<IFetchUsedForMintingRefCodeQuery, IFetchUsedForMintingRefCodeQueryVariables>(FetchUsedForMintingRefCodeDocument, baseOptions);
|
|
2662
|
+
}
|
|
2663
|
+
export function useFetchUsedForMintingRefCodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUsedForMintingRefCodeQuery, IFetchUsedForMintingRefCodeQueryVariables>) {
|
|
2664
|
+
return Apollo.useLazyQuery<IFetchUsedForMintingRefCodeQuery, IFetchUsedForMintingRefCodeQueryVariables>(FetchUsedForMintingRefCodeDocument, baseOptions);
|
|
2665
|
+
}
|
|
2666
|
+
export type FetchUsedForMintingRefCodeQueryHookResult = ReturnType<typeof useFetchUsedForMintingRefCodeQuery>;
|
|
2667
|
+
export type FetchUsedForMintingRefCodeLazyQueryHookResult = ReturnType<typeof useFetchUsedForMintingRefCodeLazyQuery>;
|
|
2668
|
+
export type FetchUsedForMintingRefCodeQueryResult = Apollo.QueryResult<IFetchUsedForMintingRefCodeQuery, IFetchUsedForMintingRefCodeQueryVariables>;
|
|
2624
2669
|
export const FetchUserReferralsInfoCsvDocument = gql`
|
|
2625
2670
|
query FetchUserReferralsInfoCsv {
|
|
2626
2671
|
fetchUserReferralsInfoCsv
|