@ludo.ninja/api 3.0.91 → 3.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +1 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +42 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +51 -1
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +68 -0
- package/build/graphql_tools/__generated__/searchHost/schema.js +52 -1
- package/build/index.d.ts +38 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +1 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +67 -0
- package/src/graphql_tools/__generated__/searchHost/schema.ts +88 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -338,6 +338,7 @@ export type IQuery = {
|
|
|
338
338
|
fetchAirdropRegistrationsCsv: Scalars['String'];
|
|
339
339
|
fetchOpportunityBySlug: IOpportunityV2;
|
|
340
340
|
fetchProjectBySlug: IProject;
|
|
341
|
+
fetchProject?: Maybe<IProject>;
|
|
341
342
|
};
|
|
342
343
|
export type IQueryFetchBrandArgs = {
|
|
343
344
|
brandId: Scalars['ID'];
|
|
@@ -370,6 +371,10 @@ export type IQueryFetchOpportunityBySlugArgs = {
|
|
|
370
371
|
export type IQueryFetchProjectBySlugArgs = {
|
|
371
372
|
slug: Scalars['String'];
|
|
372
373
|
};
|
|
374
|
+
export type IQueryFetchProjectArgs = {
|
|
375
|
+
blockchain: Scalars['String'];
|
|
376
|
+
contract: Scalars['String'];
|
|
377
|
+
};
|
|
373
378
|
export declare enum IReactionType {
|
|
374
379
|
Like = "LIKE",
|
|
375
380
|
Dislike = "DISLIKE",
|
|
@@ -684,6 +689,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
684
689
|
fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
|
|
685
690
|
fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
|
|
686
691
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
692
|
+
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
687
693
|
};
|
|
688
694
|
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
689
695
|
country?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -812,6 +818,13 @@ export type IFetchProfileOpportunitiesQuery = {
|
|
|
812
818
|
eventOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'>>>>;
|
|
813
819
|
};
|
|
814
820
|
};
|
|
821
|
+
export type IFetchProjectQueryVariables = Exact<{
|
|
822
|
+
blockchain: Scalars['String'];
|
|
823
|
+
contract: Scalars['String'];
|
|
824
|
+
}>;
|
|
825
|
+
export type IFetchProjectQuery = {
|
|
826
|
+
fetchProject?: Maybe<Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified'>>;
|
|
827
|
+
};
|
|
815
828
|
export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
816
829
|
slug: Scalars['String'];
|
|
817
830
|
}>;
|
|
@@ -1265,6 +1278,35 @@ export declare function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apol
|
|
|
1265
1278
|
export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
|
|
1266
1279
|
export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
|
|
1267
1280
|
export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
|
|
1281
|
+
export declare const FetchProjectDocument: Apollo.DocumentNode;
|
|
1282
|
+
/**
|
|
1283
|
+
* __useFetchProjectQuery__
|
|
1284
|
+
*
|
|
1285
|
+
* To run a query within a React component, call `useFetchProjectQuery` and pass it any options that fit your needs.
|
|
1286
|
+
* When your component renders, `useFetchProjectQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1287
|
+
* you can use to render your UI.
|
|
1288
|
+
*
|
|
1289
|
+
* @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;
|
|
1290
|
+
*
|
|
1291
|
+
* @example
|
|
1292
|
+
* const { data, loading, error } = useFetchProjectQuery({
|
|
1293
|
+
* variables: {
|
|
1294
|
+
* blockchain: // value for 'blockchain'
|
|
1295
|
+
* contract: // value for 'contract'
|
|
1296
|
+
* },
|
|
1297
|
+
* });
|
|
1298
|
+
*/
|
|
1299
|
+
export declare function useFetchProjectQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectQuery, IFetchProjectQueryVariables>): Apollo.QueryResult<IFetchProjectQuery, Exact<{
|
|
1300
|
+
blockchain: string;
|
|
1301
|
+
contract: string;
|
|
1302
|
+
}>>;
|
|
1303
|
+
export declare function useFetchProjectLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectQuery, IFetchProjectQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectQuery, Exact<{
|
|
1304
|
+
blockchain: string;
|
|
1305
|
+
contract: string;
|
|
1306
|
+
}>>;
|
|
1307
|
+
export type FetchProjectQueryHookResult = ReturnType<typeof useFetchProjectQuery>;
|
|
1308
|
+
export type FetchProjectLazyQueryHookResult = ReturnType<typeof useFetchProjectLazyQuery>;
|
|
1309
|
+
export type FetchProjectQueryResult = Apollo.QueryResult<IFetchProjectQuery, IFetchProjectQueryVariables>;
|
|
1268
1310
|
export declare const FetchProjectBySlugDocument: Apollo.DocumentNode;
|
|
1269
1311
|
/**
|
|
1270
1312
|
* __useFetchProjectBySlugQuery__
|
|
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.useFetchProjectBySlugQuery = exports.FetchProjectBySlugDocument = exports.useFetchProjectLazyQuery = exports.useFetchProjectQuery = exports.FetchProjectDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityBySlugLazyQuery = exports.useFetchOpportunityBySlugQuery = exports.FetchOpportunityBySlugDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchBrandBySlugLazyQuery = exports.useFetchBrandBySlugQuery = exports.FetchBrandBySlugDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useFetchAirdropRegistrationsCsvLazyQuery = exports.useFetchAirdropRegistrationsCsvQuery = exports.FetchAirdropRegistrationsCsvDocument = exports.useRegisterNewProjectMutation = exports.RegisterNewProjectDocument = exports.useRegisterForAirdrop2Mutation = exports.RegisterForAirdrop2Document = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useReactOnProjectMutation = exports.ReactOnProjectDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = exports.IReactionType = exports.IProjectRegistrationStatus = exports.IOpportunityType = void 0;
|
|
27
|
+
exports.useFetchProjectBySlugLazyQuery = void 0;
|
|
27
28
|
const client_1 = require("@apollo/client");
|
|
28
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
30
|
var IOpportunityType;
|
|
@@ -939,6 +940,55 @@ function useFetchProfileOpportunitiesLazyQuery(baseOptions) {
|
|
|
939
940
|
return Apollo.useLazyQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
|
|
940
941
|
}
|
|
941
942
|
exports.useFetchProfileOpportunitiesLazyQuery = useFetchProfileOpportunitiesLazyQuery;
|
|
943
|
+
exports.FetchProjectDocument = (0, client_1.gql) `
|
|
944
|
+
query FetchProject($blockchain: String!, $contract: String!) {
|
|
945
|
+
fetchProject(blockchain: $blockchain, contract: $contract) {
|
|
946
|
+
blockchain
|
|
947
|
+
contract
|
|
948
|
+
name
|
|
949
|
+
slug
|
|
950
|
+
symbol
|
|
951
|
+
website
|
|
952
|
+
twitter
|
|
953
|
+
type
|
|
954
|
+
ludoRank
|
|
955
|
+
investors
|
|
956
|
+
holders
|
|
957
|
+
volume
|
|
958
|
+
marketCap
|
|
959
|
+
liquidity
|
|
960
|
+
price
|
|
961
|
+
twitterFollowers
|
|
962
|
+
twitterSentiment
|
|
963
|
+
verified
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
`;
|
|
967
|
+
/**
|
|
968
|
+
* __useFetchProjectQuery__
|
|
969
|
+
*
|
|
970
|
+
* To run a query within a React component, call `useFetchProjectQuery` and pass it any options that fit your needs.
|
|
971
|
+
* When your component renders, `useFetchProjectQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
972
|
+
* you can use to render your UI.
|
|
973
|
+
*
|
|
974
|
+
* @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;
|
|
975
|
+
*
|
|
976
|
+
* @example
|
|
977
|
+
* const { data, loading, error } = useFetchProjectQuery({
|
|
978
|
+
* variables: {
|
|
979
|
+
* blockchain: // value for 'blockchain'
|
|
980
|
+
* contract: // value for 'contract'
|
|
981
|
+
* },
|
|
982
|
+
* });
|
|
983
|
+
*/
|
|
984
|
+
function useFetchProjectQuery(baseOptions) {
|
|
985
|
+
return Apollo.useQuery(exports.FetchProjectDocument, baseOptions);
|
|
986
|
+
}
|
|
987
|
+
exports.useFetchProjectQuery = useFetchProjectQuery;
|
|
988
|
+
function useFetchProjectLazyQuery(baseOptions) {
|
|
989
|
+
return Apollo.useLazyQuery(exports.FetchProjectDocument, baseOptions);
|
|
990
|
+
}
|
|
991
|
+
exports.useFetchProjectLazyQuery = useFetchProjectLazyQuery;
|
|
942
992
|
exports.FetchProjectBySlugDocument = (0, client_1.gql) `
|
|
943
993
|
query FetchProjectBySlug($slug: String!) {
|
|
944
994
|
fetchProjectBySlug(slug: $slug) {
|
|
@@ -335,6 +335,9 @@ export declare enum IProjectType {
|
|
|
335
335
|
GameFi = "GAME_FI",
|
|
336
336
|
DeFi = "DE_FI"
|
|
337
337
|
}
|
|
338
|
+
export type IProjectsFilterInput = {
|
|
339
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
340
|
+
};
|
|
338
341
|
export type IProjectsLeaderboardFilterInput = {
|
|
339
342
|
type?: Maybe<Scalars['String']>;
|
|
340
343
|
};
|
|
@@ -348,6 +351,12 @@ export type IProjectsPage = {
|
|
|
348
351
|
projects: Array<IProject>;
|
|
349
352
|
nextPage?: Maybe<IPage>;
|
|
350
353
|
};
|
|
354
|
+
export type IProjectsSortInput = {
|
|
355
|
+
sortByLudoRank?: Maybe<ISort>;
|
|
356
|
+
sortByLudoRankHourDifference?: Maybe<ISort>;
|
|
357
|
+
sortByLudoRankDayDifference?: Maybe<ISort>;
|
|
358
|
+
sortByLudoRankWeekDifference?: Maybe<ISort>;
|
|
359
|
+
};
|
|
351
360
|
export type IQuery = {
|
|
352
361
|
getDummy: Scalars['String'];
|
|
353
362
|
fetchUserPortfolio: Array<Maybe<ICurrencyAmountPair>>;
|
|
@@ -379,6 +388,7 @@ export type IQuery = {
|
|
|
379
388
|
fetchUserReferralsInfoCsv: Scalars['String'];
|
|
380
389
|
fetchProjectsLeaderboard: IProjectsPage;
|
|
381
390
|
fetchProjectsByTerm: Array<IProject>;
|
|
391
|
+
fetchProjectsPage: IProjectsPage;
|
|
382
392
|
fetchProjectsSlugs: Array<Scalars['String']>;
|
|
383
393
|
};
|
|
384
394
|
export type IQueryFetchUserPortfolioArgs = {
|
|
@@ -483,6 +493,12 @@ export type IQueryFetchProjectsByTermArgs = {
|
|
|
483
493
|
searchInput: Scalars['String'];
|
|
484
494
|
pageSize: Scalars['Int'];
|
|
485
495
|
};
|
|
496
|
+
export type IQueryFetchProjectsPageArgs = {
|
|
497
|
+
term?: Maybe<Scalars['String']>;
|
|
498
|
+
filter: IProjectsFilterInput;
|
|
499
|
+
sort: IProjectsSortInput;
|
|
500
|
+
page: IPageInput;
|
|
501
|
+
};
|
|
486
502
|
export declare enum IReftypeColor {
|
|
487
503
|
Red = "RED",
|
|
488
504
|
Green = "GREEN",
|
|
@@ -615,9 +631,11 @@ export type IResolversTypes = {
|
|
|
615
631
|
ProfilePage: ResolverTypeWrapper<IProfilePage>;
|
|
616
632
|
Project: ResolverTypeWrapper<IProject>;
|
|
617
633
|
ProjectType: IProjectType;
|
|
634
|
+
ProjectsFilterInput: IProjectsFilterInput;
|
|
618
635
|
ProjectsLeaderboardFilterInput: IProjectsLeaderboardFilterInput;
|
|
619
636
|
ProjectsLeaderboardSortInput: IProjectsLeaderboardSortInput;
|
|
620
637
|
ProjectsPage: ResolverTypeWrapper<IProjectsPage>;
|
|
638
|
+
ProjectsSortInput: IProjectsSortInput;
|
|
621
639
|
Query: ResolverTypeWrapper<{}>;
|
|
622
640
|
ReftypeColor: IReftypeColor;
|
|
623
641
|
Sort: ISort;
|
|
@@ -667,9 +685,11 @@ export type IResolversParentTypes = {
|
|
|
667
685
|
Profile: IProfile;
|
|
668
686
|
ProfilePage: IProfilePage;
|
|
669
687
|
Project: IProject;
|
|
688
|
+
ProjectsFilterInput: IProjectsFilterInput;
|
|
670
689
|
ProjectsLeaderboardFilterInput: IProjectsLeaderboardFilterInput;
|
|
671
690
|
ProjectsLeaderboardSortInput: IProjectsLeaderboardSortInput;
|
|
672
691
|
ProjectsPage: IProjectsPage;
|
|
692
|
+
ProjectsSortInput: IProjectsSortInput;
|
|
673
693
|
Query: {};
|
|
674
694
|
Sort: ISort;
|
|
675
695
|
Tier: ITier;
|
|
@@ -1002,6 +1022,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1002
1022
|
fetchUserReferralsInfoCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1003
1023
|
fetchProjectsLeaderboard?: Resolver<IResolversTypes['ProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchProjectsLeaderboardArgs, 'filter' | 'sort' | 'page'>>;
|
|
1004
1024
|
fetchProjectsByTerm?: Resolver<Array<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectsByTermArgs, 'searchInput' | 'pageSize'>>;
|
|
1025
|
+
fetchProjectsPage?: Resolver<IResolversTypes['ProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchProjectsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1005
1026
|
fetchProjectsSlugs?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1006
1027
|
};
|
|
1007
1028
|
export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
|
|
@@ -1278,6 +1299,18 @@ export type IFetchProjectsLeaderboardQuery = {
|
|
|
1278
1299
|
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements' | 'lastNum'>>;
|
|
1279
1300
|
};
|
|
1280
1301
|
};
|
|
1302
|
+
export type IFetchProjectsPageQueryVariables = Exact<{
|
|
1303
|
+
term?: Maybe<Scalars['String']>;
|
|
1304
|
+
filter: IProjectsFilterInput;
|
|
1305
|
+
sort: IProjectsSortInput;
|
|
1306
|
+
page: IPageInput;
|
|
1307
|
+
}>;
|
|
1308
|
+
export type IFetchProjectsPageQuery = {
|
|
1309
|
+
fetchProjectsPage: {
|
|
1310
|
+
projects: Array<Pick<IProject, 'id' | 'name' | 'slug' | 'type' | 'ludoRank' | 'ludoRankHourDifference' | 'ludoRankDayDifference' | 'ludoRankWeekDifference' | 'price'>>;
|
|
1311
|
+
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements' | 'lastNum'>>;
|
|
1312
|
+
};
|
|
1313
|
+
};
|
|
1281
1314
|
export type IFetchProjectsSlugsQueryVariables = Exact<{
|
|
1282
1315
|
[key: string]: never;
|
|
1283
1316
|
}>;
|
|
@@ -1857,6 +1890,41 @@ export declare function useFetchProjectsLeaderboardLazyQuery(baseOptions?: Apoll
|
|
|
1857
1890
|
export type FetchProjectsLeaderboardQueryHookResult = ReturnType<typeof useFetchProjectsLeaderboardQuery>;
|
|
1858
1891
|
export type FetchProjectsLeaderboardLazyQueryHookResult = ReturnType<typeof useFetchProjectsLeaderboardLazyQuery>;
|
|
1859
1892
|
export type FetchProjectsLeaderboardQueryResult = Apollo.QueryResult<IFetchProjectsLeaderboardQuery, IFetchProjectsLeaderboardQueryVariables>;
|
|
1893
|
+
export declare const FetchProjectsPageDocument: Apollo.DocumentNode;
|
|
1894
|
+
/**
|
|
1895
|
+
* __useFetchProjectsPageQuery__
|
|
1896
|
+
*
|
|
1897
|
+
* To run a query within a React component, call `useFetchProjectsPageQuery` and pass it any options that fit your needs.
|
|
1898
|
+
* When your component renders, `useFetchProjectsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1899
|
+
* you can use to render your UI.
|
|
1900
|
+
*
|
|
1901
|
+
* @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;
|
|
1902
|
+
*
|
|
1903
|
+
* @example
|
|
1904
|
+
* const { data, loading, error } = useFetchProjectsPageQuery({
|
|
1905
|
+
* variables: {
|
|
1906
|
+
* term: // value for 'term'
|
|
1907
|
+
* filter: // value for 'filter'
|
|
1908
|
+
* sort: // value for 'sort'
|
|
1909
|
+
* page: // value for 'page'
|
|
1910
|
+
* },
|
|
1911
|
+
* });
|
|
1912
|
+
*/
|
|
1913
|
+
export declare function useFetchProjectsPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectsPageQuery, IFetchProjectsPageQueryVariables>): Apollo.QueryResult<IFetchProjectsPageQuery, Exact<{
|
|
1914
|
+
term?: Maybe<string> | undefined;
|
|
1915
|
+
filter: IProjectsFilterInput;
|
|
1916
|
+
sort: IProjectsSortInput;
|
|
1917
|
+
page: IPageInput;
|
|
1918
|
+
}>>;
|
|
1919
|
+
export declare function useFetchProjectsPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectsPageQuery, IFetchProjectsPageQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectsPageQuery, Exact<{
|
|
1920
|
+
term?: Maybe<string> | undefined;
|
|
1921
|
+
filter: IProjectsFilterInput;
|
|
1922
|
+
sort: IProjectsSortInput;
|
|
1923
|
+
page: IPageInput;
|
|
1924
|
+
}>>;
|
|
1925
|
+
export type FetchProjectsPageQueryHookResult = ReturnType<typeof useFetchProjectsPageQuery>;
|
|
1926
|
+
export type FetchProjectsPageLazyQueryHookResult = ReturnType<typeof useFetchProjectsPageLazyQuery>;
|
|
1927
|
+
export type FetchProjectsPageQueryResult = Apollo.QueryResult<IFetchProjectsPageQuery, IFetchProjectsPageQueryVariables>;
|
|
1860
1928
|
export declare const FetchProjectsSlugsDocument: Apollo.DocumentNode;
|
|
1861
1929
|
/**
|
|
1862
1930
|
* __useFetchProjectsSlugsQuery__
|
|
@@ -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.useFetchUsedForMintingRefCodeLazyQuery = exports.useFetchUsedForMintingRefCodeQuery = exports.FetchUsedForMintingRefCodeDocument = exports.useFetchUsedForMintingDataLazyQuery = exports.useFetchUsedForMintingDataQuery = exports.FetchUsedForMintingDataDocument = exports.useFetchProjectsSlugsLazyQuery = exports.useFetchProjectsSlugsQuery = exports.FetchProjectsSlugsDocument = exports.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchProjectsByTermLazyQuery = exports.useFetchProjectsByTermQuery = exports.FetchProjectsByTermDocument = 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.useFetchUsedForMintingDataLazyQuery = exports.useFetchUsedForMintingDataQuery = exports.FetchUsedForMintingDataDocument = exports.useFetchProjectsSlugsLazyQuery = exports.useFetchProjectsSlugsQuery = exports.FetchProjectsSlugsDocument = exports.useFetchProjectsPageLazyQuery = exports.useFetchProjectsPageQuery = exports.FetchProjectsPageDocument = exports.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchProjectsByTermLazyQuery = exports.useFetchProjectsByTermQuery = exports.FetchProjectsByTermDocument = 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;
|
|
@@ -1296,6 +1296,57 @@ function useFetchProjectsLeaderboardLazyQuery(baseOptions) {
|
|
|
1296
1296
|
return Apollo.useLazyQuery(exports.FetchProjectsLeaderboardDocument, baseOptions);
|
|
1297
1297
|
}
|
|
1298
1298
|
exports.useFetchProjectsLeaderboardLazyQuery = useFetchProjectsLeaderboardLazyQuery;
|
|
1299
|
+
exports.FetchProjectsPageDocument = (0, client_1.gql) `
|
|
1300
|
+
query FetchProjectsPage($term: String, $filter: ProjectsFilterInput!, $sort: ProjectsSortInput!, $page: PageInput!) {
|
|
1301
|
+
fetchProjectsPage(term: $term, filter: $filter, sort: $sort, page: $page) {
|
|
1302
|
+
projects {
|
|
1303
|
+
id
|
|
1304
|
+
name
|
|
1305
|
+
slug
|
|
1306
|
+
type
|
|
1307
|
+
ludoRank
|
|
1308
|
+
ludoRankHourDifference
|
|
1309
|
+
ludoRankDayDifference
|
|
1310
|
+
ludoRankWeekDifference
|
|
1311
|
+
price
|
|
1312
|
+
}
|
|
1313
|
+
nextPage {
|
|
1314
|
+
token
|
|
1315
|
+
num
|
|
1316
|
+
size
|
|
1317
|
+
elements
|
|
1318
|
+
lastNum
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
`;
|
|
1323
|
+
/**
|
|
1324
|
+
* __useFetchProjectsPageQuery__
|
|
1325
|
+
*
|
|
1326
|
+
* To run a query within a React component, call `useFetchProjectsPageQuery` and pass it any options that fit your needs.
|
|
1327
|
+
* When your component renders, `useFetchProjectsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1328
|
+
* you can use to render your UI.
|
|
1329
|
+
*
|
|
1330
|
+
* @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;
|
|
1331
|
+
*
|
|
1332
|
+
* @example
|
|
1333
|
+
* const { data, loading, error } = useFetchProjectsPageQuery({
|
|
1334
|
+
* variables: {
|
|
1335
|
+
* term: // value for 'term'
|
|
1336
|
+
* filter: // value for 'filter'
|
|
1337
|
+
* sort: // value for 'sort'
|
|
1338
|
+
* page: // value for 'page'
|
|
1339
|
+
* },
|
|
1340
|
+
* });
|
|
1341
|
+
*/
|
|
1342
|
+
function useFetchProjectsPageQuery(baseOptions) {
|
|
1343
|
+
return Apollo.useQuery(exports.FetchProjectsPageDocument, baseOptions);
|
|
1344
|
+
}
|
|
1345
|
+
exports.useFetchProjectsPageQuery = useFetchProjectsPageQuery;
|
|
1346
|
+
function useFetchProjectsPageLazyQuery(baseOptions) {
|
|
1347
|
+
return Apollo.useLazyQuery(exports.FetchProjectsPageDocument, baseOptions);
|
|
1348
|
+
}
|
|
1349
|
+
exports.useFetchProjectsPageLazyQuery = useFetchProjectsPageLazyQuery;
|
|
1299
1350
|
exports.FetchProjectsSlugsDocument = (0, client_1.gql) `
|
|
1300
1351
|
query FetchProjectsSlugs {
|
|
1301
1352
|
fetchProjectsSlugs
|
package/build/index.d.ts
CHANGED
|
@@ -441,6 +441,28 @@ declare const schema: {
|
|
|
441
441
|
sort: searchSchema.IProjectsLeaderboardSortInput;
|
|
442
442
|
page: searchSchema.IPageInput;
|
|
443
443
|
}>>;
|
|
444
|
+
useFetchProjectsPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchProjectsPageQuery, searchSchema.Exact<{
|
|
445
|
+
term?: searchSchema.Maybe<string> | undefined;
|
|
446
|
+
filter: searchSchema.IProjectsFilterInput;
|
|
447
|
+
sort: searchSchema.IProjectsSortInput;
|
|
448
|
+
page: searchSchema.IPageInput;
|
|
449
|
+
}>>): import("@apollo/client").QueryResult<searchSchema.IFetchProjectsPageQuery, searchSchema.Exact<{
|
|
450
|
+
term?: searchSchema.Maybe<string> | undefined;
|
|
451
|
+
filter: searchSchema.IProjectsFilterInput;
|
|
452
|
+
sort: searchSchema.IProjectsSortInput;
|
|
453
|
+
page: searchSchema.IPageInput;
|
|
454
|
+
}>>;
|
|
455
|
+
useFetchProjectsPageLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<searchSchema.IFetchProjectsPageQuery, searchSchema.Exact<{
|
|
456
|
+
term?: searchSchema.Maybe<string> | undefined;
|
|
457
|
+
filter: searchSchema.IProjectsFilterInput;
|
|
458
|
+
sort: searchSchema.IProjectsSortInput;
|
|
459
|
+
page: searchSchema.IPageInput;
|
|
460
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchProjectsPageQuery, searchSchema.Exact<{
|
|
461
|
+
term?: searchSchema.Maybe<string> | undefined;
|
|
462
|
+
filter: searchSchema.IProjectsFilterInput;
|
|
463
|
+
sort: searchSchema.IProjectsSortInput;
|
|
464
|
+
page: searchSchema.IPageInput;
|
|
465
|
+
}>>;
|
|
444
466
|
useFetchProjectsSlugsQuery(baseOptions?: import("@apollo/client").QueryHookOptions<searchSchema.IFetchProjectsSlugsQuery, searchSchema.Exact<{
|
|
445
467
|
[key: string]: never;
|
|
446
468
|
}>> | undefined): import("@apollo/client").QueryResult<searchSchema.IFetchProjectsSlugsQuery, searchSchema.Exact<{
|
|
@@ -585,6 +607,7 @@ declare const schema: {
|
|
|
585
607
|
FetchUserPortfolioDocument: import("graphql").DocumentNode;
|
|
586
608
|
FetchProjectsByTermDocument: import("graphql").DocumentNode;
|
|
587
609
|
FetchProjectsLeaderboardDocument: import("graphql").DocumentNode;
|
|
610
|
+
FetchProjectsPageDocument: import("graphql").DocumentNode;
|
|
588
611
|
FetchProjectsSlugsDocument: import("graphql").DocumentNode;
|
|
589
612
|
FetchUsedForMintingDataDocument: import("graphql").DocumentNode;
|
|
590
613
|
FetchUsedForMintingRefCodeDocument: import("graphql").DocumentNode;
|
|
@@ -829,6 +852,20 @@ declare const schema: {
|
|
|
829
852
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityBySlugQuery, opportunitiesSchema.Exact<{
|
|
830
853
|
slug: string;
|
|
831
854
|
}>>;
|
|
855
|
+
useFetchProjectQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectQuery, opportunitiesSchema.Exact<{
|
|
856
|
+
blockchain: string;
|
|
857
|
+
contract: string;
|
|
858
|
+
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectQuery, opportunitiesSchema.Exact<{
|
|
859
|
+
blockchain: string;
|
|
860
|
+
contract: string;
|
|
861
|
+
}>>;
|
|
862
|
+
useFetchProjectLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProjectQuery, opportunitiesSchema.Exact<{
|
|
863
|
+
blockchain: string;
|
|
864
|
+
contract: string;
|
|
865
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectQuery, opportunitiesSchema.Exact<{
|
|
866
|
+
blockchain: string;
|
|
867
|
+
contract: string;
|
|
868
|
+
}>>;
|
|
832
869
|
useFetchProjectBySlugQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
833
870
|
slug: string;
|
|
834
871
|
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
@@ -856,6 +893,7 @@ declare const schema: {
|
|
|
856
893
|
FetchBrandBySlugDocument: import("graphql").DocumentNode;
|
|
857
894
|
FetchOpportunityDocument: import("graphql").DocumentNode;
|
|
858
895
|
FetchOpportunityBySlugDocument: import("graphql").DocumentNode;
|
|
896
|
+
FetchProjectDocument: import("graphql").DocumentNode;
|
|
859
897
|
FetchProjectBySlugDocument: import("graphql").DocumentNode;
|
|
860
898
|
useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
|
861
899
|
galleryId: string;
|
package/package.json
CHANGED
|
@@ -387,6 +387,7 @@ export type IQuery = {
|
|
|
387
387
|
fetchAirdropRegistrationsCsv: Scalars['String'];
|
|
388
388
|
fetchOpportunityBySlug: IOpportunityV2;
|
|
389
389
|
fetchProjectBySlug: IProject;
|
|
390
|
+
fetchProject?: Maybe<IProject>;
|
|
390
391
|
};
|
|
391
392
|
|
|
392
393
|
|
|
@@ -440,6 +441,12 @@ export type IQueryFetchProjectBySlugArgs = {
|
|
|
440
441
|
slug: Scalars['String'];
|
|
441
442
|
};
|
|
442
443
|
|
|
444
|
+
|
|
445
|
+
export type IQueryFetchProjectArgs = {
|
|
446
|
+
blockchain: Scalars['String'];
|
|
447
|
+
contract: Scalars['String'];
|
|
448
|
+
};
|
|
449
|
+
|
|
443
450
|
export enum IReactionType {
|
|
444
451
|
Like = 'LIKE',
|
|
445
452
|
Dislike = 'DISLIKE',
|
|
@@ -815,6 +822,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
815
822
|
fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
|
|
816
823
|
fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
|
|
817
824
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
825
|
+
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
818
826
|
};
|
|
819
827
|
|
|
820
828
|
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
@@ -972,6 +980,14 @@ export type IFetchProfileOpportunitiesQueryVariables = Exact<{ [key: string]: ne
|
|
|
972
980
|
|
|
973
981
|
export type IFetchProfileOpportunitiesQuery = { fetchProfileOpportunities: { newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'>>>>, recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'>>>>, eventOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'>>>> } };
|
|
974
982
|
|
|
983
|
+
export type IFetchProjectQueryVariables = Exact<{
|
|
984
|
+
blockchain: Scalars['String'];
|
|
985
|
+
contract: Scalars['String'];
|
|
986
|
+
}>;
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
export type IFetchProjectQuery = { fetchProject?: Maybe<Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified'>> };
|
|
990
|
+
|
|
975
991
|
export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
976
992
|
slug: Scalars['String'];
|
|
977
993
|
}>;
|
|
@@ -1930,6 +1946,57 @@ export function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQ
|
|
|
1930
1946
|
export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
|
|
1931
1947
|
export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
|
|
1932
1948
|
export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
|
|
1949
|
+
export const FetchProjectDocument = gql`
|
|
1950
|
+
query FetchProject($blockchain: String!, $contract: String!) {
|
|
1951
|
+
fetchProject(blockchain: $blockchain, contract: $contract) {
|
|
1952
|
+
blockchain
|
|
1953
|
+
contract
|
|
1954
|
+
name
|
|
1955
|
+
slug
|
|
1956
|
+
symbol
|
|
1957
|
+
website
|
|
1958
|
+
twitter
|
|
1959
|
+
type
|
|
1960
|
+
ludoRank
|
|
1961
|
+
investors
|
|
1962
|
+
holders
|
|
1963
|
+
volume
|
|
1964
|
+
marketCap
|
|
1965
|
+
liquidity
|
|
1966
|
+
price
|
|
1967
|
+
twitterFollowers
|
|
1968
|
+
twitterSentiment
|
|
1969
|
+
verified
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
`;
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* __useFetchProjectQuery__
|
|
1976
|
+
*
|
|
1977
|
+
* To run a query within a React component, call `useFetchProjectQuery` and pass it any options that fit your needs.
|
|
1978
|
+
* When your component renders, `useFetchProjectQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1979
|
+
* you can use to render your UI.
|
|
1980
|
+
*
|
|
1981
|
+
* @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;
|
|
1982
|
+
*
|
|
1983
|
+
* @example
|
|
1984
|
+
* const { data, loading, error } = useFetchProjectQuery({
|
|
1985
|
+
* variables: {
|
|
1986
|
+
* blockchain: // value for 'blockchain'
|
|
1987
|
+
* contract: // value for 'contract'
|
|
1988
|
+
* },
|
|
1989
|
+
* });
|
|
1990
|
+
*/
|
|
1991
|
+
export function useFetchProjectQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectQuery, IFetchProjectQueryVariables>) {
|
|
1992
|
+
return Apollo.useQuery<IFetchProjectQuery, IFetchProjectQueryVariables>(FetchProjectDocument, baseOptions);
|
|
1993
|
+
}
|
|
1994
|
+
export function useFetchProjectLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectQuery, IFetchProjectQueryVariables>) {
|
|
1995
|
+
return Apollo.useLazyQuery<IFetchProjectQuery, IFetchProjectQueryVariables>(FetchProjectDocument, baseOptions);
|
|
1996
|
+
}
|
|
1997
|
+
export type FetchProjectQueryHookResult = ReturnType<typeof useFetchProjectQuery>;
|
|
1998
|
+
export type FetchProjectLazyQueryHookResult = ReturnType<typeof useFetchProjectLazyQuery>;
|
|
1999
|
+
export type FetchProjectQueryResult = Apollo.QueryResult<IFetchProjectQuery, IFetchProjectQueryVariables>;
|
|
1933
2000
|
export const FetchProjectBySlugDocument = gql`
|
|
1934
2001
|
query FetchProjectBySlug($slug: String!) {
|
|
1935
2002
|
fetchProjectBySlug(slug: $slug) {
|