@ludo.ninja/api 3.0.65 → 3.0.66

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.
@@ -72,8 +72,10 @@ export type IMutation = {
72
72
  likeOpportunity: Scalars['Boolean'];
73
73
  dislikeOpportunity: Scalars['Boolean'];
74
74
  registerForAirdrop: Scalars['Boolean'];
75
+ registerForAirdrop2: Scalars['String'];
75
76
  copyOpportunityShareLink: Scalars['Boolean'];
76
77
  registerNewProject: Scalars['Boolean'];
78
+ reactOnProject: Scalars['Boolean'];
77
79
  };
78
80
 
79
81
 
@@ -137,6 +139,13 @@ export type IMutationRegisterForAirdropArgs = {
137
139
  };
138
140
 
139
141
 
142
+ export type IMutationRegisterForAirdrop2Args = {
143
+ opportunityId: Scalars['String'];
144
+ blockchain: Scalars['String'];
145
+ address: Scalars['String'];
146
+ };
147
+
148
+
140
149
  export type IMutationCopyOpportunityShareLinkArgs = {
141
150
  opportunityId: Scalars['ID'];
142
151
  };
@@ -146,6 +155,11 @@ export type IMutationRegisterNewProjectArgs = {
146
155
  input: IProjectRegistrationInput;
147
156
  };
148
157
 
158
+
159
+ export type IMutationReactOnProjectArgs = {
160
+ input: IProjectReactionInput;
161
+ };
162
+
149
163
  export type IOpportunitiesPage = {
150
164
  currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
151
165
  similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
@@ -279,6 +293,21 @@ export type IProject = {
279
293
  twitterSentiment?: Maybe<Scalars['Int']>;
280
294
  verified?: Maybe<Scalars['Boolean']>;
281
295
  snapshots?: Maybe<Array<Maybe<IProjectSnapshot>>>;
296
+ reactions: IProjectReactions;
297
+ userReaction?: Maybe<IReactionType>;
298
+ votesGeo?: Maybe<Array<Maybe<IVotesGeolocation>>>;
299
+ };
300
+
301
+ export type IProjectReactionInput = {
302
+ blockchain: Scalars['String'];
303
+ contract: Scalars['String'];
304
+ reactionType: IReactionType;
305
+ };
306
+
307
+ export type IProjectReactions = {
308
+ likes: Scalars['Int'];
309
+ neutrals: Scalars['Int'];
310
+ dislikes: Scalars['Int'];
282
311
  };
283
312
 
284
313
  export type IProjectRegistrationInput = {
@@ -363,6 +392,18 @@ export type IQueryFetchProjectBySlugArgs = {
363
392
  slug: Scalars['String'];
364
393
  };
365
394
 
395
+ export enum IReactionType {
396
+ Like = 'LIKE',
397
+ Dislike = 'DISLIKE',
398
+ Neutral = 'NEUTRAL'
399
+ }
400
+
401
+ export type IVotesGeolocation = {
402
+ country: Scalars['String'];
403
+ votes: Scalars['Int'];
404
+ votesPercentage: Scalars['Float'];
405
+ };
406
+
366
407
 
367
408
 
368
409
  export type ResolverTypeWrapper<T> = Promise<T> | T;
@@ -450,9 +491,13 @@ export type IResolversTypes = {
450
491
  OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
451
492
  ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
452
493
  Project: ResolverTypeWrapper<IProject>;
494
+ ProjectReactionInput: IProjectReactionInput;
495
+ ProjectReactions: ResolverTypeWrapper<IProjectReactions>;
453
496
  ProjectRegistrationInput: IProjectRegistrationInput;
454
497
  ProjectSnapshot: ResolverTypeWrapper<IProjectSnapshot>;
455
498
  Query: ResolverTypeWrapper<{}>;
499
+ ReactionType: IReactionType;
500
+ VotesGeolocation: ResolverTypeWrapper<IVotesGeolocation>;
456
501
  };
457
502
 
458
503
  /** Mapping between all available schema types and the resolvers parents */
@@ -474,9 +519,12 @@ export type IResolversParentTypes = {
474
519
  OpportunityV2: IOpportunityV2;
475
520
  ProfileOpportunities: IProfileOpportunities;
476
521
  Project: IProject;
522
+ ProjectReactionInput: IProjectReactionInput;
523
+ ProjectReactions: IProjectReactions;
477
524
  ProjectRegistrationInput: IProjectRegistrationInput;
478
525
  ProjectSnapshot: IProjectSnapshot;
479
526
  Query: {};
527
+ VotesGeolocation: IVotesGeolocation;
480
528
  };
481
529
 
482
530
  export type IOneOfDirectiveArgs = { };
@@ -528,8 +576,10 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
528
576
  likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
529
577
  dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
530
578
  registerForAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdropArgs, 'opportunityId' | 'blockchain' | 'address'>>;
579
+ registerForAirdrop2?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdrop2Args, 'opportunityId' | 'blockchain' | 'address'>>;
531
580
  copyOpportunityShareLink?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCopyOpportunityShareLinkArgs, 'opportunityId'>>;
532
581
  registerNewProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterNewProjectArgs, 'input'>>;
582
+ reactOnProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationReactOnProjectArgs, 'input'>>;
533
583
  };
534
584
 
535
585
  export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
@@ -639,6 +689,16 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
639
689
  twitterSentiment?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
640
690
  verified?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
641
691
  snapshots?: Resolver<Maybe<Array<Maybe<IResolversTypes['ProjectSnapshot']>>>, ParentType, ContextType>;
692
+ reactions?: Resolver<IResolversTypes['ProjectReactions'], ParentType, ContextType>;
693
+ userReaction?: Resolver<Maybe<IResolversTypes['ReactionType']>, ParentType, ContextType>;
694
+ votesGeo?: Resolver<Maybe<Array<Maybe<IResolversTypes['VotesGeolocation']>>>, ParentType, ContextType>;
695
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
696
+ };
697
+
698
+ export type IProjectReactionsResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectReactions'] = IResolversParentTypes['ProjectReactions']> = {
699
+ likes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
700
+ neutrals?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
701
+ dislikes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
642
702
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
643
703
  };
644
704
 
@@ -674,6 +734,13 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
674
734
  fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
675
735
  };
676
736
 
737
+ export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
738
+ country?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
739
+ votes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
740
+ votesPercentage?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
741
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
742
+ };
743
+
677
744
  export type IResolvers<ContextType = any> = {
678
745
  Brand?: IBrandResolvers<ContextType>;
679
746
  Category?: ICategoryResolvers<ContextType>;
@@ -684,8 +751,10 @@ export type IResolvers<ContextType = any> = {
684
751
  OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
685
752
  ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
686
753
  Project?: IProjectResolvers<ContextType>;
754
+ ProjectReactions?: IProjectReactionsResolvers<ContextType>;
687
755
  ProjectSnapshot?: IProjectSnapshotResolvers<ContextType>;
688
756
  Query?: IQueryResolvers<ContextType>;
757
+ VotesGeolocation?: IVotesGeolocationResolvers<ContextType>;
689
758
  };
690
759
 
691
760
  export type IDirectiveResolvers<ContextType = any> = {
@@ -727,6 +796,13 @@ export type IOpenOpportunityMutationVariables = Exact<{
727
796
 
728
797
  export type IOpenOpportunityMutation = Pick<IMutation, 'openOpportunity'>;
729
798
 
799
+ export type IReactOnProjectMutationVariables = Exact<{
800
+ input: IProjectReactionInput;
801
+ }>;
802
+
803
+
804
+ export type IReactOnProjectMutation = Pick<IMutation, 'reactOnProject'>;
805
+
730
806
  export type IRegisterForAirdropMutationVariables = Exact<{
731
807
  opportunityId: Scalars['String'];
732
808
  blockchain: Scalars['String'];
@@ -736,6 +812,15 @@ export type IRegisterForAirdropMutationVariables = Exact<{
736
812
 
737
813
  export type IRegisterForAirdropMutation = Pick<IMutation, 'registerForAirdrop'>;
738
814
 
815
+ export type IRegisterForAirdrop2MutationVariables = Exact<{
816
+ opportunityId: Scalars['String'];
817
+ blockchain: Scalars['String'];
818
+ address: Scalars['String'];
819
+ }>;
820
+
821
+
822
+ export type IRegisterForAirdrop2Mutation = Pick<IMutation, 'registerForAirdrop2'>;
823
+
739
824
  export type IRegisterNewProjectMutationVariables = Exact<{
740
825
  input: IProjectRegistrationInput;
741
826
  }>;
@@ -800,8 +885,8 @@ export type IFetchProjectBySlugQueryVariables = Exact<{
800
885
 
801
886
 
802
887
  export type IFetchProjectBySlugQuery = { fetchProjectBySlug: (
803
- Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified'>
804
- & { snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>> }
888
+ Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'userReaction'>
889
+ & { 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'>>>> }
805
890
  ) };
806
891
 
807
892
 
@@ -955,6 +1040,36 @@ export function useOpenOpportunityMutation(baseOptions?: Apollo.MutationHookOpti
955
1040
  export type OpenOpportunityMutationHookResult = ReturnType<typeof useOpenOpportunityMutation>;
956
1041
  export type OpenOpportunityMutationResult = Apollo.MutationResult<IOpenOpportunityMutation>;
957
1042
  export type OpenOpportunityMutationOptions = Apollo.BaseMutationOptions<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>;
1043
+ export const ReactOnProjectDocument = gql`
1044
+ mutation ReactOnProject($input: ProjectReactionInput!) {
1045
+ reactOnProject(input: $input)
1046
+ }
1047
+ `;
1048
+ export type IReactOnProjectMutationFn = Apollo.MutationFunction<IReactOnProjectMutation, IReactOnProjectMutationVariables>;
1049
+
1050
+ /**
1051
+ * __useReactOnProjectMutation__
1052
+ *
1053
+ * To run a mutation, you first call `useReactOnProjectMutation` within a React component and pass it any options that fit your needs.
1054
+ * When your component renders, `useReactOnProjectMutation` returns a tuple that includes:
1055
+ * - A mutate function that you can call at any time to execute the mutation
1056
+ * - An object with fields that represent the current status of the mutation's execution
1057
+ *
1058
+ * @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;
1059
+ *
1060
+ * @example
1061
+ * const [reactOnProjectMutation, { data, loading, error }] = useReactOnProjectMutation({
1062
+ * variables: {
1063
+ * input: // value for 'input'
1064
+ * },
1065
+ * });
1066
+ */
1067
+ export function useReactOnProjectMutation(baseOptions?: Apollo.MutationHookOptions<IReactOnProjectMutation, IReactOnProjectMutationVariables>) {
1068
+ return Apollo.useMutation<IReactOnProjectMutation, IReactOnProjectMutationVariables>(ReactOnProjectDocument, baseOptions);
1069
+ }
1070
+ export type ReactOnProjectMutationHookResult = ReturnType<typeof useReactOnProjectMutation>;
1071
+ export type ReactOnProjectMutationResult = Apollo.MutationResult<IReactOnProjectMutation>;
1072
+ export type ReactOnProjectMutationOptions = Apollo.BaseMutationOptions<IReactOnProjectMutation, IReactOnProjectMutationVariables>;
958
1073
  export const RegisterForAirdropDocument = gql`
959
1074
  mutation RegisterForAirdrop($opportunityId: String!, $blockchain: String!, $address: String!) {
960
1075
  registerForAirdrop(
@@ -991,6 +1106,42 @@ export function useRegisterForAirdropMutation(baseOptions?: Apollo.MutationHookO
991
1106
  export type RegisterForAirdropMutationHookResult = ReturnType<typeof useRegisterForAirdropMutation>;
992
1107
  export type RegisterForAirdropMutationResult = Apollo.MutationResult<IRegisterForAirdropMutation>;
993
1108
  export type RegisterForAirdropMutationOptions = Apollo.BaseMutationOptions<IRegisterForAirdropMutation, IRegisterForAirdropMutationVariables>;
1109
+ export const RegisterForAirdrop2Document = gql`
1110
+ mutation RegisterForAirdrop2($opportunityId: String!, $blockchain: String!, $address: String!) {
1111
+ registerForAirdrop2(
1112
+ opportunityId: $opportunityId
1113
+ blockchain: $blockchain
1114
+ address: $address
1115
+ )
1116
+ }
1117
+ `;
1118
+ export type IRegisterForAirdrop2MutationFn = Apollo.MutationFunction<IRegisterForAirdrop2Mutation, IRegisterForAirdrop2MutationVariables>;
1119
+
1120
+ /**
1121
+ * __useRegisterForAirdrop2Mutation__
1122
+ *
1123
+ * To run a mutation, you first call `useRegisterForAirdrop2Mutation` within a React component and pass it any options that fit your needs.
1124
+ * When your component renders, `useRegisterForAirdrop2Mutation` returns a tuple that includes:
1125
+ * - A mutate function that you can call at any time to execute the mutation
1126
+ * - An object with fields that represent the current status of the mutation's execution
1127
+ *
1128
+ * @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;
1129
+ *
1130
+ * @example
1131
+ * const [registerForAirdrop2Mutation, { data, loading, error }] = useRegisterForAirdrop2Mutation({
1132
+ * variables: {
1133
+ * opportunityId: // value for 'opportunityId'
1134
+ * blockchain: // value for 'blockchain'
1135
+ * address: // value for 'address'
1136
+ * },
1137
+ * });
1138
+ */
1139
+ export function useRegisterForAirdrop2Mutation(baseOptions?: Apollo.MutationHookOptions<IRegisterForAirdrop2Mutation, IRegisterForAirdrop2MutationVariables>) {
1140
+ return Apollo.useMutation<IRegisterForAirdrop2Mutation, IRegisterForAirdrop2MutationVariables>(RegisterForAirdrop2Document, baseOptions);
1141
+ }
1142
+ export type RegisterForAirdrop2MutationHookResult = ReturnType<typeof useRegisterForAirdrop2Mutation>;
1143
+ export type RegisterForAirdrop2MutationResult = Apollo.MutationResult<IRegisterForAirdrop2Mutation>;
1144
+ export type RegisterForAirdrop2MutationOptions = Apollo.BaseMutationOptions<IRegisterForAirdrop2Mutation, IRegisterForAirdrop2MutationVariables>;
994
1145
  export const RegisterNewProjectDocument = gql`
995
1146
  mutation RegisterNewProject($input: ProjectRegistrationInput!) {
996
1147
  registerNewProject(input: $input)
@@ -1582,6 +1733,17 @@ export const FetchProjectBySlugDocument = gql`
1582
1733
  holders
1583
1734
  ludoRank
1584
1735
  }
1736
+ reactions {
1737
+ likes
1738
+ neutrals
1739
+ dislikes
1740
+ }
1741
+ userReaction
1742
+ votesGeo {
1743
+ country
1744
+ votes
1745
+ votesPercentage
1746
+ }
1585
1747
  }
1586
1748
  }
1587
1749
  `;