@ludo.ninja/api 3.1.0 → 3.1.1
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 +129 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +82 -2
- package/build/index.d.ts +17 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +180 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -65,6 +65,21 @@ export type IHoldersGeolocation = {
|
|
|
65
65
|
holders: Scalars['Long'];
|
|
66
66
|
percentage: Scalars['Float'];
|
|
67
67
|
};
|
|
68
|
+
export type ILudoRankDifference = {
|
|
69
|
+
hourDifference?: Maybe<Scalars['Float']>;
|
|
70
|
+
dayDifference?: Maybe<Scalars['Float']>;
|
|
71
|
+
weekDifference?: Maybe<Scalars['Float']>;
|
|
72
|
+
};
|
|
73
|
+
export type IMonitor = {
|
|
74
|
+
userId: Scalars['String'];
|
|
75
|
+
blockchain: Scalars['String'];
|
|
76
|
+
contract: Scalars['String'];
|
|
77
|
+
project: IProject;
|
|
78
|
+
};
|
|
79
|
+
export type IMonitoringActivationInput = {
|
|
80
|
+
blockchain: Scalars['String'];
|
|
81
|
+
contract: Scalars['String'];
|
|
82
|
+
};
|
|
68
83
|
export type IMutation = {
|
|
69
84
|
setDummy: Scalars['String'];
|
|
70
85
|
createBrand: Scalars['Boolean'];
|
|
@@ -84,6 +99,7 @@ export type IMutation = {
|
|
|
84
99
|
copyOpportunityShareLink: Scalars['Boolean'];
|
|
85
100
|
registerNewProject: IProjectRegistrationResult;
|
|
86
101
|
reactOnProject: Scalars['Boolean'];
|
|
102
|
+
activateMonitoring: Scalars['Boolean'];
|
|
87
103
|
};
|
|
88
104
|
export type IMutationCreateBrandArgs = {
|
|
89
105
|
input: IBrandInput;
|
|
@@ -145,6 +161,9 @@ export type IMutationRegisterNewProjectArgs = {
|
|
|
145
161
|
export type IMutationReactOnProjectArgs = {
|
|
146
162
|
input: IProjectReactionInput;
|
|
147
163
|
};
|
|
164
|
+
export type IMutationActivateMonitoringArgs = {
|
|
165
|
+
input: IMonitoringActivationInput;
|
|
166
|
+
};
|
|
148
167
|
export type IOpportunitiesPage = {
|
|
149
168
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
150
169
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -283,11 +302,19 @@ export type IProject = {
|
|
|
283
302
|
hideDiagrams?: Maybe<Scalars['Boolean']>;
|
|
284
303
|
holdersGeo?: Maybe<Array<Maybe<IHoldersGeolocation>>>;
|
|
285
304
|
status?: Maybe<IProjectStatus>;
|
|
305
|
+
ludoRankDifference?: Maybe<ILudoRankDifference>;
|
|
286
306
|
};
|
|
287
307
|
export type IProjectCommunityVote = {
|
|
288
308
|
calculatedAt: Scalars['Long'];
|
|
289
309
|
communityVote: Scalars['Int'];
|
|
290
310
|
};
|
|
311
|
+
export type IProjectMonitoring = {
|
|
312
|
+
userId: Scalars['String'];
|
|
313
|
+
monitorsFree: Scalars['Int'];
|
|
314
|
+
monitorsLimit: Scalars['Int'];
|
|
315
|
+
activeUntil: Scalars['Long'];
|
|
316
|
+
monitors?: Maybe<Array<IMonitor>>;
|
|
317
|
+
};
|
|
291
318
|
export type IProjectReactionInput = {
|
|
292
319
|
blockchain: Scalars['String'];
|
|
293
320
|
contract: Scalars['String'];
|
|
@@ -345,6 +372,7 @@ export type IQuery = {
|
|
|
345
372
|
fetchOpportunityBySlug: IOpportunityV2;
|
|
346
373
|
fetchProjectBySlug: IProject;
|
|
347
374
|
fetchProject?: Maybe<IProject>;
|
|
375
|
+
fetchProjectMonitoring?: Maybe<IProjectMonitoring>;
|
|
348
376
|
};
|
|
349
377
|
export type IQueryFetchBrandArgs = {
|
|
350
378
|
brandId: Scalars['ID'];
|
|
@@ -429,6 +457,9 @@ export type IResolversTypes = {
|
|
|
429
457
|
HoldersGeolocation: ResolverTypeWrapper<IHoldersGeolocation>;
|
|
430
458
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
431
459
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
460
|
+
LudoRankDifference: ResolverTypeWrapper<ILudoRankDifference>;
|
|
461
|
+
Monitor: ResolverTypeWrapper<IMonitor>;
|
|
462
|
+
MonitoringActivationInput: IMonitoringActivationInput;
|
|
432
463
|
Mutation: ResolverTypeWrapper<{}>;
|
|
433
464
|
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
434
465
|
Opportunity: ResolverTypeWrapper<IOpportunity>;
|
|
@@ -439,6 +470,7 @@ export type IResolversTypes = {
|
|
|
439
470
|
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
440
471
|
Project: ResolverTypeWrapper<IProject>;
|
|
441
472
|
ProjectCommunityVote: ResolverTypeWrapper<IProjectCommunityVote>;
|
|
473
|
+
ProjectMonitoring: ResolverTypeWrapper<IProjectMonitoring>;
|
|
442
474
|
ProjectReactionInput: IProjectReactionInput;
|
|
443
475
|
ProjectReactions: ResolverTypeWrapper<IProjectReactions>;
|
|
444
476
|
ProjectRegistrationInput: IProjectRegistrationInput;
|
|
@@ -462,6 +494,9 @@ export type IResolversParentTypes = {
|
|
|
462
494
|
HoldersGeolocation: IHoldersGeolocation;
|
|
463
495
|
Float: Scalars['Float'];
|
|
464
496
|
Long: Scalars['Long'];
|
|
497
|
+
LudoRankDifference: ILudoRankDifference;
|
|
498
|
+
Monitor: IMonitor;
|
|
499
|
+
MonitoringActivationInput: IMonitoringActivationInput;
|
|
465
500
|
Mutation: {};
|
|
466
501
|
OpportunitiesPage: IOpportunitiesPage;
|
|
467
502
|
Opportunity: IOpportunity;
|
|
@@ -471,6 +506,7 @@ export type IResolversParentTypes = {
|
|
|
471
506
|
ProfileOpportunities: IProfileOpportunities;
|
|
472
507
|
Project: IProject;
|
|
473
508
|
ProjectCommunityVote: IProjectCommunityVote;
|
|
509
|
+
ProjectMonitoring: IProjectMonitoring;
|
|
474
510
|
ProjectReactionInput: IProjectReactionInput;
|
|
475
511
|
ProjectReactions: IProjectReactions;
|
|
476
512
|
ProjectRegistrationInput: IProjectRegistrationInput;
|
|
@@ -517,6 +553,19 @@ export type IHoldersGeolocationResolvers<ContextType = any, ParentType extends I
|
|
|
517
553
|
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
518
554
|
name: 'Long';
|
|
519
555
|
}
|
|
556
|
+
export type ILudoRankDifferenceResolvers<ContextType = any, ParentType extends IResolversParentTypes['LudoRankDifference'] = IResolversParentTypes['LudoRankDifference']> = {
|
|
557
|
+
hourDifference?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
558
|
+
dayDifference?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
559
|
+
weekDifference?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
560
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
561
|
+
};
|
|
562
|
+
export type IMonitorResolvers<ContextType = any, ParentType extends IResolversParentTypes['Monitor'] = IResolversParentTypes['Monitor']> = {
|
|
563
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
564
|
+
blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
565
|
+
contract?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
566
|
+
project?: Resolver<IResolversTypes['Project'], ParentType, ContextType>;
|
|
567
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
568
|
+
};
|
|
520
569
|
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
521
570
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
522
571
|
createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'input'>>;
|
|
@@ -536,6 +585,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
536
585
|
copyOpportunityShareLink?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCopyOpportunityShareLinkArgs, 'opportunityId'>>;
|
|
537
586
|
registerNewProject?: Resolver<IResolversTypes['ProjectRegistrationResult'], ParentType, ContextType, RequireFields<IMutationRegisterNewProjectArgs, 'input'>>;
|
|
538
587
|
reactOnProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationReactOnProjectArgs, 'input'>>;
|
|
588
|
+
activateMonitoring?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationActivateMonitoringArgs, 'input'>>;
|
|
539
589
|
};
|
|
540
590
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
541
591
|
currentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['Opportunity']>>>, ParentType, ContextType>;
|
|
@@ -650,6 +700,7 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
650
700
|
hideDiagrams?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
651
701
|
holdersGeo?: Resolver<Maybe<Array<Maybe<IResolversTypes['HoldersGeolocation']>>>, ParentType, ContextType>;
|
|
652
702
|
status?: Resolver<Maybe<IResolversTypes['ProjectStatus']>, ParentType, ContextType>;
|
|
703
|
+
ludoRankDifference?: Resolver<Maybe<IResolversTypes['LudoRankDifference']>, ParentType, ContextType>;
|
|
653
704
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
654
705
|
};
|
|
655
706
|
export type IProjectCommunityVoteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectCommunityVote'] = IResolversParentTypes['ProjectCommunityVote']> = {
|
|
@@ -657,6 +708,14 @@ export type IProjectCommunityVoteResolvers<ContextType = any, ParentType extends
|
|
|
657
708
|
communityVote?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
658
709
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
659
710
|
};
|
|
711
|
+
export type IProjectMonitoringResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectMonitoring'] = IResolversParentTypes['ProjectMonitoring']> = {
|
|
712
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
713
|
+
monitorsFree?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
714
|
+
monitorsLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
715
|
+
activeUntil?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
716
|
+
monitors?: Resolver<Maybe<Array<IResolversTypes['Monitor']>>, ParentType, ContextType>;
|
|
717
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
718
|
+
};
|
|
660
719
|
export type IProjectReactionsResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectReactions'] = IResolversParentTypes['ProjectReactions']> = {
|
|
661
720
|
likes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
662
721
|
neutrals?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
@@ -705,6 +764,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
705
764
|
fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
|
|
706
765
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
707
766
|
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
767
|
+
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType>;
|
|
708
768
|
};
|
|
709
769
|
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
710
770
|
country?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -717,6 +777,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
717
777
|
Category?: ICategoryResolvers<ContextType>;
|
|
718
778
|
HoldersGeolocation?: IHoldersGeolocationResolvers<ContextType>;
|
|
719
779
|
Long?: GraphQLScalarType;
|
|
780
|
+
LudoRankDifference?: ILudoRankDifferenceResolvers<ContextType>;
|
|
781
|
+
Monitor?: IMonitorResolvers<ContextType>;
|
|
720
782
|
Mutation?: IMutationResolvers<ContextType>;
|
|
721
783
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
722
784
|
Opportunity?: IOpportunityResolvers<ContextType>;
|
|
@@ -724,6 +786,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
724
786
|
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
725
787
|
Project?: IProjectResolvers<ContextType>;
|
|
726
788
|
ProjectCommunityVote?: IProjectCommunityVoteResolvers<ContextType>;
|
|
789
|
+
ProjectMonitoring?: IProjectMonitoringResolvers<ContextType>;
|
|
727
790
|
ProjectReactions?: IProjectReactionsResolvers<ContextType>;
|
|
728
791
|
ProjectRegistrationResult?: IProjectRegistrationResultResolvers<ContextType>;
|
|
729
792
|
ProjectSnapshot?: IProjectSnapshotResolvers<ContextType>;
|
|
@@ -742,6 +805,10 @@ export type ILikeOpportunityMutationVariables = Exact<{
|
|
|
742
805
|
opportunityId: Scalars['String'];
|
|
743
806
|
}>;
|
|
744
807
|
export type ILikeOpportunityMutation = Pick<IMutation, 'likeOpportunity'>;
|
|
808
|
+
export type IActivateMonitoringMutationVariables = Exact<{
|
|
809
|
+
input: IMonitoringActivationInput;
|
|
810
|
+
}>;
|
|
811
|
+
export type IActivateMonitoringMutation = Pick<IMutation, 'activateMonitoring'>;
|
|
745
812
|
export type ICopyOpportunityShareLinkMutationVariables = Exact<{
|
|
746
813
|
opportunityId: Scalars['ID'];
|
|
747
814
|
}>;
|
|
@@ -858,6 +925,18 @@ export type IFetchProjectBySlugQuery = {
|
|
|
858
925
|
holdersGeo?: Maybe<Array<Maybe<Pick<IHoldersGeolocation, 'country' | 'holders' | 'percentage'>>>>;
|
|
859
926
|
});
|
|
860
927
|
};
|
|
928
|
+
export type IFetchProjectMonitoringQueryVariables = Exact<{
|
|
929
|
+
[key: string]: never;
|
|
930
|
+
}>;
|
|
931
|
+
export type IFetchProjectMonitoringQuery = {
|
|
932
|
+
fetchProjectMonitoring?: Maybe<(Pick<IProjectMonitoring, 'userId' | 'monitorsFree' | 'monitorsLimit' | 'activeUntil'> & {
|
|
933
|
+
monitors?: Maybe<Array<(Pick<IMonitor, 'userId' | 'blockchain' | 'contract'> & {
|
|
934
|
+
project: (Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'type' | 'ludoRank' | 'price' | 'verified'> & {
|
|
935
|
+
ludoRankDifference?: Maybe<Pick<ILudoRankDifference, 'hourDifference' | 'dayDifference' | 'weekDifference'>>;
|
|
936
|
+
});
|
|
937
|
+
})>>;
|
|
938
|
+
})>;
|
|
939
|
+
};
|
|
861
940
|
export declare const DislikeOpportunityDocument: Apollo.DocumentNode;
|
|
862
941
|
export type IDislikeOpportunityMutationFn = Apollo.MutationFunction<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>;
|
|
863
942
|
/**
|
|
@@ -908,6 +987,31 @@ export declare function useLikeOpportunityMutation(baseOptions?: Apollo.Mutation
|
|
|
908
987
|
export type LikeOpportunityMutationHookResult = ReturnType<typeof useLikeOpportunityMutation>;
|
|
909
988
|
export type LikeOpportunityMutationResult = Apollo.MutationResult<ILikeOpportunityMutation>;
|
|
910
989
|
export type LikeOpportunityMutationOptions = Apollo.BaseMutationOptions<ILikeOpportunityMutation, ILikeOpportunityMutationVariables>;
|
|
990
|
+
export declare const ActivateMonitoringDocument: Apollo.DocumentNode;
|
|
991
|
+
export type IActivateMonitoringMutationFn = Apollo.MutationFunction<IActivateMonitoringMutation, IActivateMonitoringMutationVariables>;
|
|
992
|
+
/**
|
|
993
|
+
* __useActivateMonitoringMutation__
|
|
994
|
+
*
|
|
995
|
+
* To run a mutation, you first call `useActivateMonitoringMutation` within a React component and pass it any options that fit your needs.
|
|
996
|
+
* When your component renders, `useActivateMonitoringMutation` returns a tuple that includes:
|
|
997
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
998
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
999
|
+
*
|
|
1000
|
+
* @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;
|
|
1001
|
+
*
|
|
1002
|
+
* @example
|
|
1003
|
+
* const [activateMonitoringMutation, { data, loading, error }] = useActivateMonitoringMutation({
|
|
1004
|
+
* variables: {
|
|
1005
|
+
* input: // value for 'input'
|
|
1006
|
+
* },
|
|
1007
|
+
* });
|
|
1008
|
+
*/
|
|
1009
|
+
export declare function useActivateMonitoringMutation(baseOptions?: Apollo.MutationHookOptions<IActivateMonitoringMutation, IActivateMonitoringMutationVariables>): Apollo.MutationTuple<IActivateMonitoringMutation, Exact<{
|
|
1010
|
+
input: IMonitoringActivationInput;
|
|
1011
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1012
|
+
export type ActivateMonitoringMutationHookResult = ReturnType<typeof useActivateMonitoringMutation>;
|
|
1013
|
+
export type ActivateMonitoringMutationResult = Apollo.MutationResult<IActivateMonitoringMutation>;
|
|
1014
|
+
export type ActivateMonitoringMutationOptions = Apollo.BaseMutationOptions<IActivateMonitoringMutation, IActivateMonitoringMutationVariables>;
|
|
911
1015
|
export declare const CopyOpportunityShareLinkDocument: Apollo.DocumentNode;
|
|
912
1016
|
export type ICopyOpportunityShareLinkMutationFn = Apollo.MutationFunction<ICopyOpportunityShareLinkMutation, ICopyOpportunityShareLinkMutationVariables>;
|
|
913
1017
|
/**
|
|
@@ -1352,3 +1456,28 @@ export declare function useFetchProjectBySlugLazyQuery(baseOptions?: Apollo.Lazy
|
|
|
1352
1456
|
export type FetchProjectBySlugQueryHookResult = ReturnType<typeof useFetchProjectBySlugQuery>;
|
|
1353
1457
|
export type FetchProjectBySlugLazyQueryHookResult = ReturnType<typeof useFetchProjectBySlugLazyQuery>;
|
|
1354
1458
|
export type FetchProjectBySlugQueryResult = Apollo.QueryResult<IFetchProjectBySlugQuery, IFetchProjectBySlugQueryVariables>;
|
|
1459
|
+
export declare const FetchProjectMonitoringDocument: Apollo.DocumentNode;
|
|
1460
|
+
/**
|
|
1461
|
+
* __useFetchProjectMonitoringQuery__
|
|
1462
|
+
*
|
|
1463
|
+
* To run a query within a React component, call `useFetchProjectMonitoringQuery` and pass it any options that fit your needs.
|
|
1464
|
+
* When your component renders, `useFetchProjectMonitoringQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1465
|
+
* you can use to render your UI.
|
|
1466
|
+
*
|
|
1467
|
+
* @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;
|
|
1468
|
+
*
|
|
1469
|
+
* @example
|
|
1470
|
+
* const { data, loading, error } = useFetchProjectMonitoringQuery({
|
|
1471
|
+
* variables: {
|
|
1472
|
+
* },
|
|
1473
|
+
* });
|
|
1474
|
+
*/
|
|
1475
|
+
export declare function useFetchProjectMonitoringQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>): Apollo.QueryResult<IFetchProjectMonitoringQuery, Exact<{
|
|
1476
|
+
[key: string]: never;
|
|
1477
|
+
}>>;
|
|
1478
|
+
export declare function useFetchProjectMonitoringLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectMonitoringQuery, Exact<{
|
|
1479
|
+
[key: string]: never;
|
|
1480
|
+
}>>;
|
|
1481
|
+
export type FetchProjectMonitoringQueryHookResult = ReturnType<typeof useFetchProjectMonitoringQuery>;
|
|
1482
|
+
export type FetchProjectMonitoringLazyQueryHookResult = ReturnType<typeof useFetchProjectMonitoringLazyQuery>;
|
|
1483
|
+
export type FetchProjectMonitoringQueryResult = Apollo.QueryResult<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>;
|
|
@@ -23,8 +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.
|
|
27
|
-
exports.useFetchProjectBySlugLazyQuery = void 0;
|
|
26
|
+
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.useActivateMonitoringMutation = exports.ActivateMonitoringDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = exports.IReactionType = exports.IProjectRegistrationStatus = exports.IOpportunityType = void 0;
|
|
27
|
+
exports.useFetchProjectMonitoringLazyQuery = exports.useFetchProjectMonitoringQuery = exports.FetchProjectMonitoringDocument = exports.useFetchProjectBySlugLazyQuery = exports.useFetchProjectBySlugQuery = exports.FetchProjectBySlugDocument = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var IOpportunityType;
|
|
@@ -97,6 +97,32 @@ function useLikeOpportunityMutation(baseOptions) {
|
|
|
97
97
|
return Apollo.useMutation(exports.LikeOpportunityDocument, baseOptions);
|
|
98
98
|
}
|
|
99
99
|
exports.useLikeOpportunityMutation = useLikeOpportunityMutation;
|
|
100
|
+
exports.ActivateMonitoringDocument = (0, client_1.gql) `
|
|
101
|
+
mutation ActivateMonitoring($input: MonitoringActivationInput!) {
|
|
102
|
+
activateMonitoring(input: $input)
|
|
103
|
+
}
|
|
104
|
+
`;
|
|
105
|
+
/**
|
|
106
|
+
* __useActivateMonitoringMutation__
|
|
107
|
+
*
|
|
108
|
+
* To run a mutation, you first call `useActivateMonitoringMutation` within a React component and pass it any options that fit your needs.
|
|
109
|
+
* When your component renders, `useActivateMonitoringMutation` returns a tuple that includes:
|
|
110
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
111
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
112
|
+
*
|
|
113
|
+
* @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;
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* const [activateMonitoringMutation, { data, loading, error }] = useActivateMonitoringMutation({
|
|
117
|
+
* variables: {
|
|
118
|
+
* input: // value for 'input'
|
|
119
|
+
* },
|
|
120
|
+
* });
|
|
121
|
+
*/
|
|
122
|
+
function useActivateMonitoringMutation(baseOptions) {
|
|
123
|
+
return Apollo.useMutation(exports.ActivateMonitoringDocument, baseOptions);
|
|
124
|
+
}
|
|
125
|
+
exports.useActivateMonitoringMutation = useActivateMonitoringMutation;
|
|
100
126
|
exports.CopyOpportunityShareLinkDocument = (0, client_1.gql) `
|
|
101
127
|
mutation CopyOpportunityShareLink($opportunityId: ID!) {
|
|
102
128
|
copyOpportunityShareLink(opportunityId: $opportunityId)
|
|
@@ -1151,3 +1177,57 @@ function useFetchProjectBySlugLazyQuery(baseOptions) {
|
|
|
1151
1177
|
return Apollo.useLazyQuery(exports.FetchProjectBySlugDocument, baseOptions);
|
|
1152
1178
|
}
|
|
1153
1179
|
exports.useFetchProjectBySlugLazyQuery = useFetchProjectBySlugLazyQuery;
|
|
1180
|
+
exports.FetchProjectMonitoringDocument = (0, client_1.gql) `
|
|
1181
|
+
query FetchProjectMonitoring {
|
|
1182
|
+
fetchProjectMonitoring {
|
|
1183
|
+
userId
|
|
1184
|
+
monitorsFree
|
|
1185
|
+
monitorsLimit
|
|
1186
|
+
activeUntil
|
|
1187
|
+
monitors {
|
|
1188
|
+
userId
|
|
1189
|
+
blockchain
|
|
1190
|
+
contract
|
|
1191
|
+
project {
|
|
1192
|
+
blockchain
|
|
1193
|
+
contract
|
|
1194
|
+
name
|
|
1195
|
+
slug
|
|
1196
|
+
symbol
|
|
1197
|
+
type
|
|
1198
|
+
ludoRank
|
|
1199
|
+
price
|
|
1200
|
+
verified
|
|
1201
|
+
ludoRankDifference {
|
|
1202
|
+
hourDifference
|
|
1203
|
+
dayDifference
|
|
1204
|
+
weekDifference
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
`;
|
|
1211
|
+
/**
|
|
1212
|
+
* __useFetchProjectMonitoringQuery__
|
|
1213
|
+
*
|
|
1214
|
+
* To run a query within a React component, call `useFetchProjectMonitoringQuery` and pass it any options that fit your needs.
|
|
1215
|
+
* When your component renders, `useFetchProjectMonitoringQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1216
|
+
* you can use to render your UI.
|
|
1217
|
+
*
|
|
1218
|
+
* @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;
|
|
1219
|
+
*
|
|
1220
|
+
* @example
|
|
1221
|
+
* const { data, loading, error } = useFetchProjectMonitoringQuery({
|
|
1222
|
+
* variables: {
|
|
1223
|
+
* },
|
|
1224
|
+
* });
|
|
1225
|
+
*/
|
|
1226
|
+
function useFetchProjectMonitoringQuery(baseOptions) {
|
|
1227
|
+
return Apollo.useQuery(exports.FetchProjectMonitoringDocument, baseOptions);
|
|
1228
|
+
}
|
|
1229
|
+
exports.useFetchProjectMonitoringQuery = useFetchProjectMonitoringQuery;
|
|
1230
|
+
function useFetchProjectMonitoringLazyQuery(baseOptions) {
|
|
1231
|
+
return Apollo.useLazyQuery(exports.FetchProjectMonitoringDocument, baseOptions);
|
|
1232
|
+
}
|
|
1233
|
+
exports.useFetchProjectMonitoringLazyQuery = useFetchProjectMonitoringLazyQuery;
|
package/build/index.d.ts
CHANGED
|
@@ -749,6 +749,11 @@ declare const schema: {
|
|
|
749
749
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.ILikeOpportunityMutation, opportunitiesSchema.Exact<{
|
|
750
750
|
opportunityId: string;
|
|
751
751
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
752
|
+
useActivateMonitoringMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.IActivateMonitoringMutation, opportunitiesSchema.Exact<{
|
|
753
|
+
input: opportunitiesSchema.IMonitoringActivationInput;
|
|
754
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IActivateMonitoringMutation, opportunitiesSchema.Exact<{
|
|
755
|
+
input: opportunitiesSchema.IMonitoringActivationInput;
|
|
756
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
752
757
|
useCopyOpportunityShareLinkMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.ICopyOpportunityShareLinkMutation, opportunitiesSchema.Exact<{
|
|
753
758
|
opportunityId: string;
|
|
754
759
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.ICopyOpportunityShareLinkMutation, opportunitiesSchema.Exact<{
|
|
@@ -876,10 +881,21 @@ declare const schema: {
|
|
|
876
881
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
877
882
|
slug: string;
|
|
878
883
|
}>>;
|
|
884
|
+
useFetchProjectMonitoringQuery(baseOptions?: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
885
|
+
[key: string]: never;
|
|
886
|
+
}>> | undefined): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
887
|
+
[key: string]: never;
|
|
888
|
+
}>>;
|
|
889
|
+
useFetchProjectMonitoringLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
890
|
+
[key: string]: never;
|
|
891
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
892
|
+
[key: string]: never;
|
|
893
|
+
}>>;
|
|
879
894
|
IProjectRegistrationStatus: typeof opportunitiesSchema.IProjectRegistrationStatus;
|
|
880
895
|
IReactionType: typeof opportunitiesSchema.IReactionType;
|
|
881
896
|
DislikeOpportunityDocument: import("graphql").DocumentNode;
|
|
882
897
|
LikeOpportunityDocument: import("graphql").DocumentNode;
|
|
898
|
+
ActivateMonitoringDocument: import("graphql").DocumentNode;
|
|
883
899
|
CopyOpportunityShareLinkDocument: import("graphql").DocumentNode;
|
|
884
900
|
CreateOpportunityDocument: import("graphql").DocumentNode;
|
|
885
901
|
OpenOpportunityDocument: import("graphql").DocumentNode;
|
|
@@ -895,6 +911,7 @@ declare const schema: {
|
|
|
895
911
|
FetchOpportunityBySlugDocument: import("graphql").DocumentNode;
|
|
896
912
|
FetchProjectDocument: import("graphql").DocumentNode;
|
|
897
913
|
FetchProjectBySlugDocument: import("graphql").DocumentNode;
|
|
914
|
+
FetchProjectMonitoringDocument: import("graphql").DocumentNode;
|
|
898
915
|
useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
|
899
916
|
galleryId: string;
|
|
900
917
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|