@ludo.ninja/api 3.2.13 → 3.2.16
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/config/index.js +6 -14
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +83 -5
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +50 -2
- package/build/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/config/index.ts +7 -19
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +112 -5
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -63,6 +63,15 @@ export type ICategoryInput = {
|
|
|
63
63
|
matchingWords: Array<Maybe<Scalars['String']>>;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
+
export type ICommunityVoteDetails = {
|
|
67
|
+
projectId: Scalars['String'];
|
|
68
|
+
voteType: IVoteType;
|
|
69
|
+
avgUserRank?: Maybe<Scalars['Int']>;
|
|
70
|
+
avgWealth?: Maybe<Scalars['Int']>;
|
|
71
|
+
avgUserXps?: Maybe<Scalars['Int']>;
|
|
72
|
+
votesGeo?: Maybe<Array<IVotesGeolocation>>;
|
|
73
|
+
};
|
|
74
|
+
|
|
66
75
|
export type IHoldersGeolocation = {
|
|
67
76
|
country: Scalars['String'];
|
|
68
77
|
holders: Scalars['Long'];
|
|
@@ -115,6 +124,7 @@ export type IMutation = {
|
|
|
115
124
|
reactOnProject: Scalars['Boolean'];
|
|
116
125
|
activateMonitoring: Scalars['Boolean'];
|
|
117
126
|
subscribeOnAlerts: Scalars['Boolean'];
|
|
127
|
+
reconsiderProjectStatus: Scalars['Boolean'];
|
|
118
128
|
};
|
|
119
129
|
|
|
120
130
|
|
|
@@ -221,6 +231,11 @@ export type IMutationSubscribeOnAlertsArgs = {
|
|
|
221
231
|
input: IAlertsSubscriptionInput;
|
|
222
232
|
};
|
|
223
233
|
|
|
234
|
+
|
|
235
|
+
export type IMutationReconsiderProjectStatusArgs = {
|
|
236
|
+
input: IProjectReconsiderationInput;
|
|
237
|
+
};
|
|
238
|
+
|
|
224
239
|
export type IOpportunitiesPage = {
|
|
225
240
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
226
241
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -371,11 +386,15 @@ export type IProject = {
|
|
|
371
386
|
originalMediaUrl?: Maybe<Scalars['String']>;
|
|
372
387
|
mediaUrl?: Maybe<Scalars['String']>;
|
|
373
388
|
publisher?: Maybe<IPublisher>;
|
|
389
|
+
communityVoteDetails?: Maybe<Array<ICommunityVoteDetails>>;
|
|
374
390
|
};
|
|
375
391
|
|
|
376
392
|
export type IProjectCommunityVote = {
|
|
377
393
|
calculatedAt: Scalars['Long'];
|
|
378
394
|
communityVote: Scalars['Int'];
|
|
395
|
+
likesRating?: Maybe<Scalars['Int']>;
|
|
396
|
+
neutralsRating?: Maybe<Scalars['Int']>;
|
|
397
|
+
dislikesRating?: Maybe<Scalars['Int']>;
|
|
379
398
|
};
|
|
380
399
|
|
|
381
400
|
export type IProjectMonitoring = {
|
|
@@ -398,6 +417,11 @@ export type IProjectReactions = {
|
|
|
398
417
|
dislikes: Scalars['Int'];
|
|
399
418
|
};
|
|
400
419
|
|
|
420
|
+
export type IProjectReconsiderationInput = {
|
|
421
|
+
blockchain: Scalars['String'];
|
|
422
|
+
contract: Scalars['String'];
|
|
423
|
+
};
|
|
424
|
+
|
|
401
425
|
export type IProjectRegistrationInput = {
|
|
402
426
|
blockchain: Scalars['String'];
|
|
403
427
|
contract: Scalars['String'];
|
|
@@ -524,10 +548,17 @@ export enum IReactionType {
|
|
|
524
548
|
Neutral = 'NEUTRAL'
|
|
525
549
|
}
|
|
526
550
|
|
|
551
|
+
export enum IVoteType {
|
|
552
|
+
Common = 'COMMON',
|
|
553
|
+
Positive = 'POSITIVE',
|
|
554
|
+
Neutral = 'NEUTRAL',
|
|
555
|
+
Negative = 'NEGATIVE'
|
|
556
|
+
}
|
|
557
|
+
|
|
527
558
|
export type IVotesGeolocation = {
|
|
528
559
|
country: Scalars['String'];
|
|
529
560
|
votes: Scalars['Int'];
|
|
530
|
-
votesPercentage: Scalars['
|
|
561
|
+
votesPercentage: Scalars['Int'];
|
|
531
562
|
};
|
|
532
563
|
|
|
533
564
|
|
|
@@ -607,6 +638,8 @@ export type IResolversTypes = {
|
|
|
607
638
|
BrandInput: IBrandInput;
|
|
608
639
|
Category: ResolverTypeWrapper<ICategory>;
|
|
609
640
|
CategoryInput: ICategoryInput;
|
|
641
|
+
CommunityVoteDetails: ResolverTypeWrapper<ICommunityVoteDetails>;
|
|
642
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
610
643
|
HoldersGeolocation: ResolverTypeWrapper<IHoldersGeolocation>;
|
|
611
644
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
612
645
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
@@ -614,7 +647,6 @@ export type IResolversTypes = {
|
|
|
614
647
|
Monitor: ResolverTypeWrapper<IMonitor>;
|
|
615
648
|
MonitoringActivationInput: IMonitoringActivationInput;
|
|
616
649
|
MonitorsCounter: ResolverTypeWrapper<IMonitorsCounter>;
|
|
617
|
-
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
618
650
|
Mutation: ResolverTypeWrapper<{}>;
|
|
619
651
|
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
620
652
|
Opportunity: ResolverTypeWrapper<IOpportunity>;
|
|
@@ -627,6 +659,7 @@ export type IResolversTypes = {
|
|
|
627
659
|
ProjectMonitoring: ResolverTypeWrapper<IProjectMonitoring>;
|
|
628
660
|
ProjectReactionInput: IProjectReactionInput;
|
|
629
661
|
ProjectReactions: ResolverTypeWrapper<IProjectReactions>;
|
|
662
|
+
ProjectReconsiderationInput: IProjectReconsiderationInput;
|
|
630
663
|
ProjectRegistrationInput: IProjectRegistrationInput;
|
|
631
664
|
ProjectRegistrationResult: ResolverTypeWrapper<IProjectRegistrationResult>;
|
|
632
665
|
ProjectRegistrationStatus: IProjectRegistrationStatus;
|
|
@@ -635,6 +668,7 @@ export type IResolversTypes = {
|
|
|
635
668
|
Publisher: ResolverTypeWrapper<IPublisher>;
|
|
636
669
|
Query: ResolverTypeWrapper<{}>;
|
|
637
670
|
ReactionType: IReactionType;
|
|
671
|
+
VoteType: IVoteType;
|
|
638
672
|
VotesGeolocation: ResolverTypeWrapper<IVotesGeolocation>;
|
|
639
673
|
};
|
|
640
674
|
|
|
@@ -648,6 +682,8 @@ export type IResolversParentTypes = {
|
|
|
648
682
|
BrandInput: IBrandInput;
|
|
649
683
|
Category: ICategory;
|
|
650
684
|
CategoryInput: ICategoryInput;
|
|
685
|
+
CommunityVoteDetails: ICommunityVoteDetails;
|
|
686
|
+
Int: Scalars['Int'];
|
|
651
687
|
HoldersGeolocation: IHoldersGeolocation;
|
|
652
688
|
Float: Scalars['Float'];
|
|
653
689
|
Long: Scalars['Long'];
|
|
@@ -655,7 +691,6 @@ export type IResolversParentTypes = {
|
|
|
655
691
|
Monitor: IMonitor;
|
|
656
692
|
MonitoringActivationInput: IMonitoringActivationInput;
|
|
657
693
|
MonitorsCounter: IMonitorsCounter;
|
|
658
|
-
Int: Scalars['Int'];
|
|
659
694
|
Mutation: {};
|
|
660
695
|
OpportunitiesPage: IOpportunitiesPage;
|
|
661
696
|
Opportunity: IOpportunity;
|
|
@@ -667,6 +702,7 @@ export type IResolversParentTypes = {
|
|
|
667
702
|
ProjectMonitoring: IProjectMonitoring;
|
|
668
703
|
ProjectReactionInput: IProjectReactionInput;
|
|
669
704
|
ProjectReactions: IProjectReactions;
|
|
705
|
+
ProjectReconsiderationInput: IProjectReconsiderationInput;
|
|
670
706
|
ProjectRegistrationInput: IProjectRegistrationInput;
|
|
671
707
|
ProjectRegistrationResult: IProjectRegistrationResult;
|
|
672
708
|
ProjectSnapshot: IProjectSnapshot;
|
|
@@ -708,6 +744,16 @@ export type ICategoryResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
708
744
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
709
745
|
};
|
|
710
746
|
|
|
747
|
+
export type ICommunityVoteDetailsResolvers<ContextType = any, ParentType extends IResolversParentTypes['CommunityVoteDetails'] = IResolversParentTypes['CommunityVoteDetails']> = {
|
|
748
|
+
projectId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
749
|
+
voteType?: Resolver<IResolversTypes['VoteType'], ParentType, ContextType>;
|
|
750
|
+
avgUserRank?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
751
|
+
avgWealth?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
752
|
+
avgUserXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
753
|
+
votesGeo?: Resolver<Maybe<Array<IResolversTypes['VotesGeolocation']>>, ParentType, ContextType>;
|
|
754
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
755
|
+
};
|
|
756
|
+
|
|
711
757
|
export type IHoldersGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['HoldersGeolocation'] = IResolversParentTypes['HoldersGeolocation']> = {
|
|
712
758
|
country?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
713
759
|
holders?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
@@ -762,6 +808,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
762
808
|
reactOnProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationReactOnProjectArgs, 'input'>>;
|
|
763
809
|
activateMonitoring?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationActivateMonitoringArgs, 'input'>>;
|
|
764
810
|
subscribeOnAlerts?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSubscribeOnAlertsArgs, 'input'>>;
|
|
811
|
+
reconsiderProjectStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationReconsiderProjectStatusArgs, 'input'>>;
|
|
765
812
|
};
|
|
766
813
|
|
|
767
814
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
@@ -887,12 +934,16 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
887
934
|
originalMediaUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
888
935
|
mediaUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
889
936
|
publisher?: Resolver<Maybe<IResolversTypes['Publisher']>, ParentType, ContextType>;
|
|
937
|
+
communityVoteDetails?: Resolver<Maybe<Array<IResolversTypes['CommunityVoteDetails']>>, ParentType, ContextType>;
|
|
890
938
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
891
939
|
};
|
|
892
940
|
|
|
893
941
|
export type IProjectCommunityVoteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectCommunityVote'] = IResolversParentTypes['ProjectCommunityVote']> = {
|
|
894
942
|
calculatedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
895
943
|
communityVote?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
944
|
+
likesRating?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
945
|
+
neutralsRating?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
946
|
+
dislikesRating?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
896
947
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
897
948
|
};
|
|
898
949
|
|
|
@@ -972,13 +1023,14 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
972
1023
|
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
973
1024
|
country?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
974
1025
|
votes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
975
|
-
votesPercentage?: Resolver<IResolversTypes['
|
|
1026
|
+
votesPercentage?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
976
1027
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
977
1028
|
};
|
|
978
1029
|
|
|
979
1030
|
export type IResolvers<ContextType = any> = {
|
|
980
1031
|
Brand?: IBrandResolvers<ContextType>;
|
|
981
1032
|
Category?: ICategoryResolvers<ContextType>;
|
|
1033
|
+
CommunityVoteDetails?: ICommunityVoteDetailsResolvers<ContextType>;
|
|
982
1034
|
HoldersGeolocation?: IHoldersGeolocationResolvers<ContextType>;
|
|
983
1035
|
Long?: GraphQLScalarType;
|
|
984
1036
|
LudoRankDifference?: ILudoRankDifferenceResolvers<ContextType>;
|
|
@@ -1054,6 +1106,13 @@ export type IReactOnProjectMutationVariables = Exact<{
|
|
|
1054
1106
|
|
|
1055
1107
|
export type IReactOnProjectMutation = Pick<IMutation, 'reactOnProject'>;
|
|
1056
1108
|
|
|
1109
|
+
export type IReconsiderProjectStatusMutationVariables = Exact<{
|
|
1110
|
+
input: IProjectReconsiderationInput;
|
|
1111
|
+
}>;
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
export type IReconsiderProjectStatusMutation = Pick<IMutation, 'reconsiderProjectStatus'>;
|
|
1115
|
+
|
|
1057
1116
|
export type IRegisterForAirdropMutationVariables = Exact<{
|
|
1058
1117
|
opportunityId: Scalars['String'];
|
|
1059
1118
|
blockchain: Scalars['String'];
|
|
@@ -1160,7 +1219,10 @@ export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
|
1160
1219
|
|
|
1161
1220
|
export type IFetchProjectBySlugQuery = { fetchProjectBySlug: (
|
|
1162
1221
|
Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'mediaUrl' | 'originalMediaUrl' | 'userReaction' | 'communityVote' | 'hideDiagrams'>
|
|
1163
|
-
& { publisher?: Maybe<Pick<IPublisher, 'userId' | 'username' | 'userpic' | 'rank'>>, status?: Maybe<Pick<IProjectStatus, 'monitored' | 'removalReason' | 'removalDate'>>, snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>>, reactions: Pick<IProjectReactions, 'likes' | 'neutrals' | 'dislikes'>, votesGeo?: Maybe<Array<Maybe<Pick<IVotesGeolocation, 'country' | 'votes' | 'votesPercentage'>>>>, airdrops?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | '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'>>>>, opportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | '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'>>>>, communityVotes?: Maybe<Array<Maybe<Pick<IProjectCommunityVote, 'calculatedAt' | 'communityVote'>>>>, holdersGeo?: Maybe<Array<Maybe<Pick<IHoldersGeolocation, 'country' | 'holders' | 'percentage'
|
|
1222
|
+
& { publisher?: Maybe<Pick<IPublisher, 'userId' | 'username' | 'userpic' | 'rank'>>, status?: Maybe<Pick<IProjectStatus, 'monitored' | 'removalReason' | 'removalDate'>>, snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>>, reactions: Pick<IProjectReactions, 'likes' | 'neutrals' | 'dislikes'>, votesGeo?: Maybe<Array<Maybe<Pick<IVotesGeolocation, 'country' | 'votes' | 'votesPercentage'>>>>, airdrops?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | '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'>>>>, opportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | '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'>>>>, communityVotes?: Maybe<Array<Maybe<Pick<IProjectCommunityVote, 'calculatedAt' | 'communityVote' | 'likesRating' | 'neutralsRating' | 'dislikesRating'>>>>, holdersGeo?: Maybe<Array<Maybe<Pick<IHoldersGeolocation, 'country' | 'holders' | 'percentage'>>>>, communityVoteDetails?: Maybe<Array<(
|
|
1223
|
+
Pick<ICommunityVoteDetails, 'projectId' | 'voteType' | 'avgUserRank' | 'avgWealth' | 'avgUserXps'>
|
|
1224
|
+
& { votesGeo?: Maybe<Array<Pick<IVotesGeolocation, 'country' | 'votes' | 'votesPercentage'>>> }
|
|
1225
|
+
)>> }
|
|
1164
1226
|
) };
|
|
1165
1227
|
|
|
1166
1228
|
export type IFetchProjectMonitoringQueryVariables = Exact<{ [key: string]: never; }>;
|
|
@@ -1388,6 +1450,36 @@ export function useReactOnProjectMutation(baseOptions?: Apollo.MutationHookOptio
|
|
|
1388
1450
|
export type ReactOnProjectMutationHookResult = ReturnType<typeof useReactOnProjectMutation>;
|
|
1389
1451
|
export type ReactOnProjectMutationResult = Apollo.MutationResult<IReactOnProjectMutation>;
|
|
1390
1452
|
export type ReactOnProjectMutationOptions = Apollo.BaseMutationOptions<IReactOnProjectMutation, IReactOnProjectMutationVariables>;
|
|
1453
|
+
export const ReconsiderProjectStatusDocument = gql`
|
|
1454
|
+
mutation ReconsiderProjectStatus($input: ProjectReconsiderationInput!) {
|
|
1455
|
+
reconsiderProjectStatus(input: $input)
|
|
1456
|
+
}
|
|
1457
|
+
`;
|
|
1458
|
+
export type IReconsiderProjectStatusMutationFn = Apollo.MutationFunction<IReconsiderProjectStatusMutation, IReconsiderProjectStatusMutationVariables>;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* __useReconsiderProjectStatusMutation__
|
|
1462
|
+
*
|
|
1463
|
+
* To run a mutation, you first call `useReconsiderProjectStatusMutation` within a React component and pass it any options that fit your needs.
|
|
1464
|
+
* When your component renders, `useReconsiderProjectStatusMutation` returns a tuple that includes:
|
|
1465
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1466
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1467
|
+
*
|
|
1468
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1469
|
+
*
|
|
1470
|
+
* @example
|
|
1471
|
+
* const [reconsiderProjectStatusMutation, { data, loading, error }] = useReconsiderProjectStatusMutation({
|
|
1472
|
+
* variables: {
|
|
1473
|
+
* input: // value for 'input'
|
|
1474
|
+
* },
|
|
1475
|
+
* });
|
|
1476
|
+
*/
|
|
1477
|
+
export function useReconsiderProjectStatusMutation(baseOptions?: Apollo.MutationHookOptions<IReconsiderProjectStatusMutation, IReconsiderProjectStatusMutationVariables>) {
|
|
1478
|
+
return Apollo.useMutation<IReconsiderProjectStatusMutation, IReconsiderProjectStatusMutationVariables>(ReconsiderProjectStatusDocument, baseOptions);
|
|
1479
|
+
}
|
|
1480
|
+
export type ReconsiderProjectStatusMutationHookResult = ReturnType<typeof useReconsiderProjectStatusMutation>;
|
|
1481
|
+
export type ReconsiderProjectStatusMutationResult = Apollo.MutationResult<IReconsiderProjectStatusMutation>;
|
|
1482
|
+
export type ReconsiderProjectStatusMutationOptions = Apollo.BaseMutationOptions<IReconsiderProjectStatusMutation, IReconsiderProjectStatusMutationVariables>;
|
|
1391
1483
|
export const RegisterForAirdropDocument = gql`
|
|
1392
1484
|
mutation RegisterForAirdrop($opportunityId: String!, $blockchain: String!, $address: String!) {
|
|
1393
1485
|
registerForAirdrop(
|
|
@@ -2378,6 +2470,9 @@ export const FetchProjectBySlugDocument = gql`
|
|
|
2378
2470
|
communityVotes {
|
|
2379
2471
|
calculatedAt
|
|
2380
2472
|
communityVote
|
|
2473
|
+
likesRating
|
|
2474
|
+
neutralsRating
|
|
2475
|
+
dislikesRating
|
|
2381
2476
|
}
|
|
2382
2477
|
hideDiagrams
|
|
2383
2478
|
holdersGeo {
|
|
@@ -2385,6 +2480,18 @@ export const FetchProjectBySlugDocument = gql`
|
|
|
2385
2480
|
holders
|
|
2386
2481
|
percentage
|
|
2387
2482
|
}
|
|
2483
|
+
communityVoteDetails {
|
|
2484
|
+
projectId
|
|
2485
|
+
voteType
|
|
2486
|
+
avgUserRank
|
|
2487
|
+
avgWealth
|
|
2488
|
+
avgUserXps
|
|
2489
|
+
votesGeo {
|
|
2490
|
+
country
|
|
2491
|
+
votes
|
|
2492
|
+
votesPercentage
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2388
2495
|
}
|
|
2389
2496
|
}
|
|
2390
2497
|
`;
|