@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.
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +126 -1
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +76 -1
- package/build/index.d.ts +17 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +164 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -73,8 +73,10 @@ export type IMutation = {
|
|
|
73
73
|
likeOpportunity: Scalars['Boolean'];
|
|
74
74
|
dislikeOpportunity: Scalars['Boolean'];
|
|
75
75
|
registerForAirdrop: Scalars['Boolean'];
|
|
76
|
+
registerForAirdrop2: Scalars['String'];
|
|
76
77
|
copyOpportunityShareLink: Scalars['Boolean'];
|
|
77
78
|
registerNewProject: Scalars['Boolean'];
|
|
79
|
+
reactOnProject: Scalars['Boolean'];
|
|
78
80
|
};
|
|
79
81
|
export type IMutationCreateBrandArgs = {
|
|
80
82
|
input: IBrandInput;
|
|
@@ -114,12 +116,20 @@ export type IMutationRegisterForAirdropArgs = {
|
|
|
114
116
|
blockchain: Scalars['String'];
|
|
115
117
|
address: Scalars['String'];
|
|
116
118
|
};
|
|
119
|
+
export type IMutationRegisterForAirdrop2Args = {
|
|
120
|
+
opportunityId: Scalars['String'];
|
|
121
|
+
blockchain: Scalars['String'];
|
|
122
|
+
address: Scalars['String'];
|
|
123
|
+
};
|
|
117
124
|
export type IMutationCopyOpportunityShareLinkArgs = {
|
|
118
125
|
opportunityId: Scalars['ID'];
|
|
119
126
|
};
|
|
120
127
|
export type IMutationRegisterNewProjectArgs = {
|
|
121
128
|
input: IProjectRegistrationInput;
|
|
122
129
|
};
|
|
130
|
+
export type IMutationReactOnProjectArgs = {
|
|
131
|
+
input: IProjectReactionInput;
|
|
132
|
+
};
|
|
123
133
|
export type IOpportunitiesPage = {
|
|
124
134
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
125
135
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -247,6 +257,19 @@ export type IProject = {
|
|
|
247
257
|
twitterSentiment?: Maybe<Scalars['Int']>;
|
|
248
258
|
verified?: Maybe<Scalars['Boolean']>;
|
|
249
259
|
snapshots?: Maybe<Array<Maybe<IProjectSnapshot>>>;
|
|
260
|
+
reactions: IProjectReactions;
|
|
261
|
+
userReaction?: Maybe<IReactionType>;
|
|
262
|
+
votesGeo?: Maybe<Array<Maybe<IVotesGeolocation>>>;
|
|
263
|
+
};
|
|
264
|
+
export type IProjectReactionInput = {
|
|
265
|
+
blockchain: Scalars['String'];
|
|
266
|
+
contract: Scalars['String'];
|
|
267
|
+
reactionType: IReactionType;
|
|
268
|
+
};
|
|
269
|
+
export type IProjectReactions = {
|
|
270
|
+
likes: Scalars['Int'];
|
|
271
|
+
neutrals: Scalars['Int'];
|
|
272
|
+
dislikes: Scalars['Int'];
|
|
250
273
|
};
|
|
251
274
|
export type IProjectRegistrationInput = {
|
|
252
275
|
blockchain: Scalars['String'];
|
|
@@ -309,6 +332,16 @@ export type IQueryFetchAirdropRegistrationsCsvArgs = {
|
|
|
309
332
|
export type IQueryFetchProjectBySlugArgs = {
|
|
310
333
|
slug: Scalars['String'];
|
|
311
334
|
};
|
|
335
|
+
export declare enum IReactionType {
|
|
336
|
+
Like = "LIKE",
|
|
337
|
+
Dislike = "DISLIKE",
|
|
338
|
+
Neutral = "NEUTRAL"
|
|
339
|
+
}
|
|
340
|
+
export type IVotesGeolocation = {
|
|
341
|
+
country: Scalars['String'];
|
|
342
|
+
votes: Scalars['Int'];
|
|
343
|
+
votesPercentage: Scalars['Float'];
|
|
344
|
+
};
|
|
312
345
|
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
313
346
|
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
314
347
|
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
@@ -355,9 +388,13 @@ export type IResolversTypes = {
|
|
|
355
388
|
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
356
389
|
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
357
390
|
Project: ResolverTypeWrapper<IProject>;
|
|
391
|
+
ProjectReactionInput: IProjectReactionInput;
|
|
392
|
+
ProjectReactions: ResolverTypeWrapper<IProjectReactions>;
|
|
358
393
|
ProjectRegistrationInput: IProjectRegistrationInput;
|
|
359
394
|
ProjectSnapshot: ResolverTypeWrapper<IProjectSnapshot>;
|
|
360
395
|
Query: ResolverTypeWrapper<{}>;
|
|
396
|
+
ReactionType: IReactionType;
|
|
397
|
+
VotesGeolocation: ResolverTypeWrapper<IVotesGeolocation>;
|
|
361
398
|
};
|
|
362
399
|
/** Mapping between all available schema types and the resolvers parents */
|
|
363
400
|
export type IResolversParentTypes = {
|
|
@@ -378,9 +415,12 @@ export type IResolversParentTypes = {
|
|
|
378
415
|
OpportunityV2: IOpportunityV2;
|
|
379
416
|
ProfileOpportunities: IProfileOpportunities;
|
|
380
417
|
Project: IProject;
|
|
418
|
+
ProjectReactionInput: IProjectReactionInput;
|
|
419
|
+
ProjectReactions: IProjectReactions;
|
|
381
420
|
ProjectRegistrationInput: IProjectRegistrationInput;
|
|
382
421
|
ProjectSnapshot: IProjectSnapshot;
|
|
383
422
|
Query: {};
|
|
423
|
+
VotesGeolocation: IVotesGeolocation;
|
|
384
424
|
};
|
|
385
425
|
export type IOneOfDirectiveArgs = {};
|
|
386
426
|
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
@@ -426,8 +466,10 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
426
466
|
likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
|
|
427
467
|
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
428
468
|
registerForAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdropArgs, 'opportunityId' | 'blockchain' | 'address'>>;
|
|
469
|
+
registerForAirdrop2?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdrop2Args, 'opportunityId' | 'blockchain' | 'address'>>;
|
|
429
470
|
copyOpportunityShareLink?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCopyOpportunityShareLinkArgs, 'opportunityId'>>;
|
|
430
471
|
registerNewProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterNewProjectArgs, 'input'>>;
|
|
472
|
+
reactOnProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationReactOnProjectArgs, 'input'>>;
|
|
431
473
|
};
|
|
432
474
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
433
475
|
currentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['Opportunity']>>>, ParentType, ContextType>;
|
|
@@ -532,6 +574,15 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
532
574
|
twitterSentiment?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
533
575
|
verified?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
534
576
|
snapshots?: Resolver<Maybe<Array<Maybe<IResolversTypes['ProjectSnapshot']>>>, ParentType, ContextType>;
|
|
577
|
+
reactions?: Resolver<IResolversTypes['ProjectReactions'], ParentType, ContextType>;
|
|
578
|
+
userReaction?: Resolver<Maybe<IResolversTypes['ReactionType']>, ParentType, ContextType>;
|
|
579
|
+
votesGeo?: Resolver<Maybe<Array<Maybe<IResolversTypes['VotesGeolocation']>>>, ParentType, ContextType>;
|
|
580
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
581
|
+
};
|
|
582
|
+
export type IProjectReactionsResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectReactions'] = IResolversParentTypes['ProjectReactions']> = {
|
|
583
|
+
likes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
584
|
+
neutrals?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
585
|
+
dislikes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
535
586
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
536
587
|
};
|
|
537
588
|
export type IProjectSnapshotResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectSnapshot'] = IResolversParentTypes['ProjectSnapshot']> = {
|
|
@@ -564,6 +615,12 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
564
615
|
fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
|
|
565
616
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
566
617
|
};
|
|
618
|
+
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
619
|
+
country?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
620
|
+
votes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
621
|
+
votesPercentage?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
|
|
622
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
623
|
+
};
|
|
567
624
|
export type IResolvers<ContextType = any> = {
|
|
568
625
|
Brand?: IBrandResolvers<ContextType>;
|
|
569
626
|
Category?: ICategoryResolvers<ContextType>;
|
|
@@ -574,8 +631,10 @@ export type IResolvers<ContextType = any> = {
|
|
|
574
631
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
575
632
|
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
576
633
|
Project?: IProjectResolvers<ContextType>;
|
|
634
|
+
ProjectReactions?: IProjectReactionsResolvers<ContextType>;
|
|
577
635
|
ProjectSnapshot?: IProjectSnapshotResolvers<ContextType>;
|
|
578
636
|
Query?: IQueryResolvers<ContextType>;
|
|
637
|
+
VotesGeolocation?: IVotesGeolocationResolvers<ContextType>;
|
|
579
638
|
};
|
|
580
639
|
export type IDirectiveResolvers<ContextType = any> = {
|
|
581
640
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
@@ -600,12 +659,22 @@ export type IOpenOpportunityMutationVariables = Exact<{
|
|
|
600
659
|
opportunityId: Scalars['ID'];
|
|
601
660
|
}>;
|
|
602
661
|
export type IOpenOpportunityMutation = Pick<IMutation, 'openOpportunity'>;
|
|
662
|
+
export type IReactOnProjectMutationVariables = Exact<{
|
|
663
|
+
input: IProjectReactionInput;
|
|
664
|
+
}>;
|
|
665
|
+
export type IReactOnProjectMutation = Pick<IMutation, 'reactOnProject'>;
|
|
603
666
|
export type IRegisterForAirdropMutationVariables = Exact<{
|
|
604
667
|
opportunityId: Scalars['String'];
|
|
605
668
|
blockchain: Scalars['String'];
|
|
606
669
|
address: Scalars['String'];
|
|
607
670
|
}>;
|
|
608
671
|
export type IRegisterForAirdropMutation = Pick<IMutation, 'registerForAirdrop'>;
|
|
672
|
+
export type IRegisterForAirdrop2MutationVariables = Exact<{
|
|
673
|
+
opportunityId: Scalars['String'];
|
|
674
|
+
blockchain: Scalars['String'];
|
|
675
|
+
address: Scalars['String'];
|
|
676
|
+
}>;
|
|
677
|
+
export type IRegisterForAirdrop2Mutation = Pick<IMutation, 'registerForAirdrop2'>;
|
|
609
678
|
export type IRegisterNewProjectMutationVariables = Exact<{
|
|
610
679
|
input: IProjectRegistrationInput;
|
|
611
680
|
}>;
|
|
@@ -665,8 +734,10 @@ export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
|
665
734
|
slug: Scalars['String'];
|
|
666
735
|
}>;
|
|
667
736
|
export type IFetchProjectBySlugQuery = {
|
|
668
|
-
fetchProjectBySlug: (Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified'> & {
|
|
737
|
+
fetchProjectBySlug: (Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'userReaction'> & {
|
|
669
738
|
snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>>;
|
|
739
|
+
reactions: Pick<IProjectReactions, 'likes' | 'neutrals' | 'dislikes'>;
|
|
740
|
+
votesGeo?: Maybe<Array<Maybe<Pick<IVotesGeolocation, 'country' | 'votes' | 'votesPercentage'>>>>;
|
|
670
741
|
});
|
|
671
742
|
};
|
|
672
743
|
export declare const DislikeOpportunityDocument: Apollo.DocumentNode;
|
|
@@ -794,6 +865,31 @@ export declare function useOpenOpportunityMutation(baseOptions?: Apollo.Mutation
|
|
|
794
865
|
export type OpenOpportunityMutationHookResult = ReturnType<typeof useOpenOpportunityMutation>;
|
|
795
866
|
export type OpenOpportunityMutationResult = Apollo.MutationResult<IOpenOpportunityMutation>;
|
|
796
867
|
export type OpenOpportunityMutationOptions = Apollo.BaseMutationOptions<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>;
|
|
868
|
+
export declare const ReactOnProjectDocument: Apollo.DocumentNode;
|
|
869
|
+
export type IReactOnProjectMutationFn = Apollo.MutationFunction<IReactOnProjectMutation, IReactOnProjectMutationVariables>;
|
|
870
|
+
/**
|
|
871
|
+
* __useReactOnProjectMutation__
|
|
872
|
+
*
|
|
873
|
+
* To run a mutation, you first call `useReactOnProjectMutation` within a React component and pass it any options that fit your needs.
|
|
874
|
+
* When your component renders, `useReactOnProjectMutation` returns a tuple that includes:
|
|
875
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
876
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
877
|
+
*
|
|
878
|
+
* @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;
|
|
879
|
+
*
|
|
880
|
+
* @example
|
|
881
|
+
* const [reactOnProjectMutation, { data, loading, error }] = useReactOnProjectMutation({
|
|
882
|
+
* variables: {
|
|
883
|
+
* input: // value for 'input'
|
|
884
|
+
* },
|
|
885
|
+
* });
|
|
886
|
+
*/
|
|
887
|
+
export declare function useReactOnProjectMutation(baseOptions?: Apollo.MutationHookOptions<IReactOnProjectMutation, IReactOnProjectMutationVariables>): Apollo.MutationTuple<IReactOnProjectMutation, Exact<{
|
|
888
|
+
input: IProjectReactionInput;
|
|
889
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
890
|
+
export type ReactOnProjectMutationHookResult = ReturnType<typeof useReactOnProjectMutation>;
|
|
891
|
+
export type ReactOnProjectMutationResult = Apollo.MutationResult<IReactOnProjectMutation>;
|
|
892
|
+
export type ReactOnProjectMutationOptions = Apollo.BaseMutationOptions<IReactOnProjectMutation, IReactOnProjectMutationVariables>;
|
|
797
893
|
export declare const RegisterForAirdropDocument: Apollo.DocumentNode;
|
|
798
894
|
export type IRegisterForAirdropMutationFn = Apollo.MutationFunction<IRegisterForAirdropMutation, IRegisterForAirdropMutationVariables>;
|
|
799
895
|
/**
|
|
@@ -823,6 +919,35 @@ export declare function useRegisterForAirdropMutation(baseOptions?: Apollo.Mutat
|
|
|
823
919
|
export type RegisterForAirdropMutationHookResult = ReturnType<typeof useRegisterForAirdropMutation>;
|
|
824
920
|
export type RegisterForAirdropMutationResult = Apollo.MutationResult<IRegisterForAirdropMutation>;
|
|
825
921
|
export type RegisterForAirdropMutationOptions = Apollo.BaseMutationOptions<IRegisterForAirdropMutation, IRegisterForAirdropMutationVariables>;
|
|
922
|
+
export declare const RegisterForAirdrop2Document: Apollo.DocumentNode;
|
|
923
|
+
export type IRegisterForAirdrop2MutationFn = Apollo.MutationFunction<IRegisterForAirdrop2Mutation, IRegisterForAirdrop2MutationVariables>;
|
|
924
|
+
/**
|
|
925
|
+
* __useRegisterForAirdrop2Mutation__
|
|
926
|
+
*
|
|
927
|
+
* To run a mutation, you first call `useRegisterForAirdrop2Mutation` within a React component and pass it any options that fit your needs.
|
|
928
|
+
* When your component renders, `useRegisterForAirdrop2Mutation` returns a tuple that includes:
|
|
929
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
930
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
931
|
+
*
|
|
932
|
+
* @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;
|
|
933
|
+
*
|
|
934
|
+
* @example
|
|
935
|
+
* const [registerForAirdrop2Mutation, { data, loading, error }] = useRegisterForAirdrop2Mutation({
|
|
936
|
+
* variables: {
|
|
937
|
+
* opportunityId: // value for 'opportunityId'
|
|
938
|
+
* blockchain: // value for 'blockchain'
|
|
939
|
+
* address: // value for 'address'
|
|
940
|
+
* },
|
|
941
|
+
* });
|
|
942
|
+
*/
|
|
943
|
+
export declare function useRegisterForAirdrop2Mutation(baseOptions?: Apollo.MutationHookOptions<IRegisterForAirdrop2Mutation, IRegisterForAirdrop2MutationVariables>): Apollo.MutationTuple<IRegisterForAirdrop2Mutation, Exact<{
|
|
944
|
+
opportunityId: string;
|
|
945
|
+
blockchain: string;
|
|
946
|
+
address: string;
|
|
947
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
948
|
+
export type RegisterForAirdrop2MutationHookResult = ReturnType<typeof useRegisterForAirdrop2Mutation>;
|
|
949
|
+
export type RegisterForAirdrop2MutationResult = Apollo.MutationResult<IRegisterForAirdrop2Mutation>;
|
|
950
|
+
export type RegisterForAirdrop2MutationOptions = Apollo.BaseMutationOptions<IRegisterForAirdrop2Mutation, IRegisterForAirdrop2MutationVariables>;
|
|
826
951
|
export declare const RegisterNewProjectDocument: Apollo.DocumentNode;
|
|
827
952
|
export type IRegisterNewProjectMutationFn = Apollo.MutationFunction<IRegisterNewProjectMutation, IRegisterNewProjectMutationVariables>;
|
|
828
953
|
/**
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.useFetchProjectBySlugLazyQuery = exports.useFetchProjectBySlugQuery = exports.FetchProjectBySlugDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = 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.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = exports.IOpportunityType = void 0;
|
|
26
|
+
exports.useFetchProjectBySlugLazyQuery = exports.useFetchProjectBySlugQuery = exports.FetchProjectBySlugDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = 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.IOpportunityType = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
var IOpportunityType;
|
|
@@ -32,6 +32,12 @@ var IOpportunityType;
|
|
|
32
32
|
IOpportunityType["Marketing"] = "MARKETING";
|
|
33
33
|
IOpportunityType["NftMinting"] = "NFT_MINTING";
|
|
34
34
|
})(IOpportunityType || (exports.IOpportunityType = IOpportunityType = {}));
|
|
35
|
+
var IReactionType;
|
|
36
|
+
(function (IReactionType) {
|
|
37
|
+
IReactionType["Like"] = "LIKE";
|
|
38
|
+
IReactionType["Dislike"] = "DISLIKE";
|
|
39
|
+
IReactionType["Neutral"] = "NEUTRAL";
|
|
40
|
+
})(IReactionType || (exports.IReactionType = IReactionType = {}));
|
|
35
41
|
exports.DislikeOpportunityDocument = (0, client_1.gql) `
|
|
36
42
|
mutation DislikeOpportunity($opportunityId: String!) {
|
|
37
43
|
dislikeOpportunity(opportunityId: $opportunityId)
|
|
@@ -162,6 +168,32 @@ function useOpenOpportunityMutation(baseOptions) {
|
|
|
162
168
|
return Apollo.useMutation(exports.OpenOpportunityDocument, baseOptions);
|
|
163
169
|
}
|
|
164
170
|
exports.useOpenOpportunityMutation = useOpenOpportunityMutation;
|
|
171
|
+
exports.ReactOnProjectDocument = (0, client_1.gql) `
|
|
172
|
+
mutation ReactOnProject($input: ProjectReactionInput!) {
|
|
173
|
+
reactOnProject(input: $input)
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
176
|
+
/**
|
|
177
|
+
* __useReactOnProjectMutation__
|
|
178
|
+
*
|
|
179
|
+
* To run a mutation, you first call `useReactOnProjectMutation` within a React component and pass it any options that fit your needs.
|
|
180
|
+
* When your component renders, `useReactOnProjectMutation` returns a tuple that includes:
|
|
181
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
182
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
183
|
+
*
|
|
184
|
+
* @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;
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* const [reactOnProjectMutation, { data, loading, error }] = useReactOnProjectMutation({
|
|
188
|
+
* variables: {
|
|
189
|
+
* input: // value for 'input'
|
|
190
|
+
* },
|
|
191
|
+
* });
|
|
192
|
+
*/
|
|
193
|
+
function useReactOnProjectMutation(baseOptions) {
|
|
194
|
+
return Apollo.useMutation(exports.ReactOnProjectDocument, baseOptions);
|
|
195
|
+
}
|
|
196
|
+
exports.useReactOnProjectMutation = useReactOnProjectMutation;
|
|
165
197
|
exports.RegisterForAirdropDocument = (0, client_1.gql) `
|
|
166
198
|
mutation RegisterForAirdrop($opportunityId: String!, $blockchain: String!, $address: String!) {
|
|
167
199
|
registerForAirdrop(
|
|
@@ -194,6 +226,38 @@ function useRegisterForAirdropMutation(baseOptions) {
|
|
|
194
226
|
return Apollo.useMutation(exports.RegisterForAirdropDocument, baseOptions);
|
|
195
227
|
}
|
|
196
228
|
exports.useRegisterForAirdropMutation = useRegisterForAirdropMutation;
|
|
229
|
+
exports.RegisterForAirdrop2Document = (0, client_1.gql) `
|
|
230
|
+
mutation RegisterForAirdrop2($opportunityId: String!, $blockchain: String!, $address: String!) {
|
|
231
|
+
registerForAirdrop2(
|
|
232
|
+
opportunityId: $opportunityId
|
|
233
|
+
blockchain: $blockchain
|
|
234
|
+
address: $address
|
|
235
|
+
)
|
|
236
|
+
}
|
|
237
|
+
`;
|
|
238
|
+
/**
|
|
239
|
+
* __useRegisterForAirdrop2Mutation__
|
|
240
|
+
*
|
|
241
|
+
* To run a mutation, you first call `useRegisterForAirdrop2Mutation` within a React component and pass it any options that fit your needs.
|
|
242
|
+
* When your component renders, `useRegisterForAirdrop2Mutation` returns a tuple that includes:
|
|
243
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
244
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
245
|
+
*
|
|
246
|
+
* @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;
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* const [registerForAirdrop2Mutation, { data, loading, error }] = useRegisterForAirdrop2Mutation({
|
|
250
|
+
* variables: {
|
|
251
|
+
* opportunityId: // value for 'opportunityId'
|
|
252
|
+
* blockchain: // value for 'blockchain'
|
|
253
|
+
* address: // value for 'address'
|
|
254
|
+
* },
|
|
255
|
+
* });
|
|
256
|
+
*/
|
|
257
|
+
function useRegisterForAirdrop2Mutation(baseOptions) {
|
|
258
|
+
return Apollo.useMutation(exports.RegisterForAirdrop2Document, baseOptions);
|
|
259
|
+
}
|
|
260
|
+
exports.useRegisterForAirdrop2Mutation = useRegisterForAirdrop2Mutation;
|
|
197
261
|
exports.RegisterNewProjectDocument = (0, client_1.gql) `
|
|
198
262
|
mutation RegisterNewProject($input: ProjectRegistrationInput!) {
|
|
199
263
|
registerNewProject(input: $input)
|
|
@@ -767,6 +831,17 @@ exports.FetchProjectBySlugDocument = (0, client_1.gql) `
|
|
|
767
831
|
holders
|
|
768
832
|
ludoRank
|
|
769
833
|
}
|
|
834
|
+
reactions {
|
|
835
|
+
likes
|
|
836
|
+
neutrals
|
|
837
|
+
dislikes
|
|
838
|
+
}
|
|
839
|
+
userReaction
|
|
840
|
+
votesGeo {
|
|
841
|
+
country
|
|
842
|
+
votes
|
|
843
|
+
votesPercentage
|
|
844
|
+
}
|
|
770
845
|
}
|
|
771
846
|
}
|
|
772
847
|
`;
|
package/build/index.d.ts
CHANGED
|
@@ -712,6 +712,11 @@ declare const schema: {
|
|
|
712
712
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IOpenOpportunityMutation, opportunitiesSchema.Exact<{
|
|
713
713
|
opportunityId: string;
|
|
714
714
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
715
|
+
useReactOnProjectMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.IReactOnProjectMutation, opportunitiesSchema.Exact<{
|
|
716
|
+
input: opportunitiesSchema.IProjectReactionInput;
|
|
717
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IReactOnProjectMutation, opportunitiesSchema.Exact<{
|
|
718
|
+
input: opportunitiesSchema.IProjectReactionInput;
|
|
719
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
715
720
|
useRegisterForAirdropMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.IRegisterForAirdropMutation, opportunitiesSchema.Exact<{
|
|
716
721
|
opportunityId: string;
|
|
717
722
|
blockchain: string;
|
|
@@ -721,6 +726,15 @@ declare const schema: {
|
|
|
721
726
|
blockchain: string;
|
|
722
727
|
address: string;
|
|
723
728
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
729
|
+
useRegisterForAirdrop2Mutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.IRegisterForAirdrop2Mutation, opportunitiesSchema.Exact<{
|
|
730
|
+
opportunityId: string;
|
|
731
|
+
blockchain: string;
|
|
732
|
+
address: string;
|
|
733
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IRegisterForAirdrop2Mutation, opportunitiesSchema.Exact<{
|
|
734
|
+
opportunityId: string;
|
|
735
|
+
blockchain: string;
|
|
736
|
+
address: string;
|
|
737
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
724
738
|
useRegisterNewProjectMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.IRegisterNewProjectMutation, opportunitiesSchema.Exact<{
|
|
725
739
|
input: opportunitiesSchema.IProjectRegistrationInput;
|
|
726
740
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IRegisterNewProjectMutation, opportunitiesSchema.Exact<{
|
|
@@ -787,12 +801,15 @@ declare const schema: {
|
|
|
787
801
|
slug: string;
|
|
788
802
|
}>>;
|
|
789
803
|
IOpportunityType: typeof opportunitiesSchema.IOpportunityType;
|
|
804
|
+
IReactionType: typeof opportunitiesSchema.IReactionType;
|
|
790
805
|
DislikeOpportunityDocument: import("graphql").DocumentNode;
|
|
791
806
|
LikeOpportunityDocument: import("graphql").DocumentNode;
|
|
792
807
|
CopyOpportunityShareLinkDocument: import("graphql").DocumentNode;
|
|
793
808
|
CreateOpportunityDocument: import("graphql").DocumentNode;
|
|
794
809
|
OpenOpportunityDocument: import("graphql").DocumentNode;
|
|
810
|
+
ReactOnProjectDocument: import("graphql").DocumentNode;
|
|
795
811
|
RegisterForAirdropDocument: import("graphql").DocumentNode;
|
|
812
|
+
RegisterForAirdrop2Document: import("graphql").DocumentNode;
|
|
796
813
|
RegisterNewProjectDocument: import("graphql").DocumentNode;
|
|
797
814
|
FetchAirdropRegistrationsCsvDocument: import("graphql").DocumentNode;
|
|
798
815
|
FetchOpportunitiesByIdsDocument: import("graphql").DocumentNode;
|