@ludo.ninja/api 3.2.21 → 3.2.22
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 +102 -2
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +83 -2
- package/build/index.d.ts +17 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +148 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -25,6 +25,11 @@ export type Scalars = {
|
|
|
25
25
|
/** A 64-bit signed integer */
|
|
26
26
|
Long: any;
|
|
27
27
|
};
|
|
28
|
+
export type IAlertSubscription = {
|
|
29
|
+
userId: Scalars['String'];
|
|
30
|
+
projectId: Scalars['String'];
|
|
31
|
+
item: IProject;
|
|
32
|
+
};
|
|
28
33
|
export type IAlertsSubscriptionInput = {
|
|
29
34
|
blockchain: Scalars['String'];
|
|
30
35
|
contract: Scalars['String'];
|
|
@@ -344,6 +349,13 @@ export type IProject = {
|
|
|
344
349
|
communityVoteDetails?: Maybe<Array<ICommunityVoteDetails>>;
|
|
345
350
|
shareLink?: Maybe<Scalars['String']>;
|
|
346
351
|
};
|
|
352
|
+
export type IProjectAlerting = {
|
|
353
|
+
userId: Scalars['String'];
|
|
354
|
+
slotsFree: Scalars['Int'];
|
|
355
|
+
slotsLimit: Scalars['Int'];
|
|
356
|
+
activeUntil: Scalars['Long'];
|
|
357
|
+
subscriptions?: Maybe<Array<IAlertSubscription>>;
|
|
358
|
+
};
|
|
347
359
|
export type IProjectCommunityVote = {
|
|
348
360
|
calculatedAt: Scalars['Long'];
|
|
349
361
|
communityVote: Scalars['Int'];
|
|
@@ -431,6 +443,7 @@ export type IQuery = {
|
|
|
431
443
|
fetchProjectBySlug: IProject;
|
|
432
444
|
fetchProject?: Maybe<IProject>;
|
|
433
445
|
fetchProjectMonitoring?: Maybe<IProjectMonitoring>;
|
|
446
|
+
fetchProjectAlerting?: Maybe<IProjectAlerting>;
|
|
434
447
|
fetchMonitorsCounter?: Maybe<IMonitorsCounter>;
|
|
435
448
|
};
|
|
436
449
|
export type IQueryFetchBrandArgs = {
|
|
@@ -512,8 +525,9 @@ export type NextResolverFn<T> = () => Promise<T>;
|
|
|
512
525
|
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
513
526
|
/** Mapping between all available schema types and the resolvers types */
|
|
514
527
|
export type IResolversTypes = {
|
|
515
|
-
|
|
528
|
+
AlertSubscription: ResolverTypeWrapper<IAlertSubscription>;
|
|
516
529
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
530
|
+
AlertsSubscriptionInput: IAlertsSubscriptionInput;
|
|
517
531
|
Brand: ResolverTypeWrapper<IBrand>;
|
|
518
532
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
519
533
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
@@ -538,6 +552,7 @@ export type IResolversTypes = {
|
|
|
538
552
|
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
539
553
|
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
540
554
|
Project: ResolverTypeWrapper<IProject>;
|
|
555
|
+
ProjectAlerting: ResolverTypeWrapper<IProjectAlerting>;
|
|
541
556
|
ProjectCommunityVote: ResolverTypeWrapper<IProjectCommunityVote>;
|
|
542
557
|
ProjectLinkClickInput: IProjectLinkClickInput;
|
|
543
558
|
ProjectMonitoring: ResolverTypeWrapper<IProjectMonitoring>;
|
|
@@ -557,8 +572,9 @@ export type IResolversTypes = {
|
|
|
557
572
|
};
|
|
558
573
|
/** Mapping between all available schema types and the resolvers parents */
|
|
559
574
|
export type IResolversParentTypes = {
|
|
560
|
-
|
|
575
|
+
AlertSubscription: IAlertSubscription;
|
|
561
576
|
String: Scalars['String'];
|
|
577
|
+
AlertsSubscriptionInput: IAlertsSubscriptionInput;
|
|
562
578
|
Brand: IBrand;
|
|
563
579
|
ID: Scalars['ID'];
|
|
564
580
|
Boolean: Scalars['Boolean'];
|
|
@@ -581,6 +597,7 @@ export type IResolversParentTypes = {
|
|
|
581
597
|
OpportunityV2: IOpportunityV2;
|
|
582
598
|
ProfileOpportunities: IProfileOpportunities;
|
|
583
599
|
Project: IProject;
|
|
600
|
+
ProjectAlerting: IProjectAlerting;
|
|
584
601
|
ProjectCommunityVote: IProjectCommunityVote;
|
|
585
602
|
ProjectLinkClickInput: IProjectLinkClickInput;
|
|
586
603
|
ProjectMonitoring: IProjectMonitoring;
|
|
@@ -597,6 +614,12 @@ export type IResolversParentTypes = {
|
|
|
597
614
|
};
|
|
598
615
|
export type IOneOfDirectiveArgs = {};
|
|
599
616
|
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
617
|
+
export type IAlertSubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['AlertSubscription'] = IResolversParentTypes['AlertSubscription']> = {
|
|
618
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
619
|
+
projectId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
620
|
+
item?: Resolver<IResolversTypes['Project'], ParentType, ContextType>;
|
|
621
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
622
|
+
};
|
|
600
623
|
export type IBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['Brand'] = IResolversParentTypes['Brand']> = {
|
|
601
624
|
brandId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
602
625
|
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -807,6 +830,14 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
807
830
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
808
831
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
809
832
|
};
|
|
833
|
+
export type IProjectAlertingResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectAlerting'] = IResolversParentTypes['ProjectAlerting']> = {
|
|
834
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
835
|
+
slotsFree?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
836
|
+
slotsLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
837
|
+
activeUntil?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
838
|
+
subscriptions?: Resolver<Maybe<Array<IResolversTypes['AlertSubscription']>>, ParentType, ContextType>;
|
|
839
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
840
|
+
};
|
|
810
841
|
export type IProjectCommunityVoteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectCommunityVote'] = IResolversParentTypes['ProjectCommunityVote']> = {
|
|
811
842
|
calculatedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
812
843
|
communityVote?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
@@ -879,6 +910,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
879
910
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
880
911
|
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
881
912
|
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType>;
|
|
913
|
+
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType>;
|
|
882
914
|
fetchMonitorsCounter?: Resolver<Maybe<IResolversTypes['MonitorsCounter']>, ParentType, ContextType>;
|
|
883
915
|
};
|
|
884
916
|
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
@@ -888,6 +920,7 @@ export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IRe
|
|
|
888
920
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
889
921
|
};
|
|
890
922
|
export type IResolvers<ContextType = any> = {
|
|
923
|
+
AlertSubscription?: IAlertSubscriptionResolvers<ContextType>;
|
|
891
924
|
Brand?: IBrandResolvers<ContextType>;
|
|
892
925
|
Category?: ICategoryResolvers<ContextType>;
|
|
893
926
|
CommunityVoteDetails?: ICommunityVoteDetailsResolvers<ContextType>;
|
|
@@ -902,6 +935,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
902
935
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
903
936
|
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
904
937
|
Project?: IProjectResolvers<ContextType>;
|
|
938
|
+
ProjectAlerting?: IProjectAlertingResolvers<ContextType>;
|
|
905
939
|
ProjectCommunityVote?: IProjectCommunityVoteResolvers<ContextType>;
|
|
906
940
|
ProjectMonitoring?: IProjectMonitoringResolvers<ContextType>;
|
|
907
941
|
ProjectReactions?: IProjectReactionsResolvers<ContextType>;
|
|
@@ -971,6 +1005,10 @@ export type IRegisterNewProjectMutation = {
|
|
|
971
1005
|
project?: Maybe<Pick<IProject, 'contract' | 'name' | 'slug' | 'symbol' | 'verified'>>;
|
|
972
1006
|
});
|
|
973
1007
|
};
|
|
1008
|
+
export type ISubscribeOnAlertsMutationVariables = Exact<{
|
|
1009
|
+
input: IAlertsSubscriptionInput;
|
|
1010
|
+
}>;
|
|
1011
|
+
export type ISubscribeOnAlertsMutation = Pick<IMutation, 'subscribeOnAlerts'>;
|
|
974
1012
|
export type IFetchAirdropRegistrationsCsvQueryVariables = Exact<{
|
|
975
1013
|
opportunityId: Scalars['ID'];
|
|
976
1014
|
}>;
|
|
@@ -1042,6 +1080,18 @@ export type IFetchProjectQuery = {
|
|
|
1042
1080
|
status?: Maybe<Pick<IProjectStatus, 'monitored' | 'removalReason' | 'removalDate'>>;
|
|
1043
1081
|
})>;
|
|
1044
1082
|
};
|
|
1083
|
+
export type IFetchProjectAlertingQueryVariables = Exact<{
|
|
1084
|
+
[key: string]: never;
|
|
1085
|
+
}>;
|
|
1086
|
+
export type IFetchProjectAlertingQuery = {
|
|
1087
|
+
fetchProjectAlerting?: Maybe<(Pick<IProjectAlerting, 'userId' | 'slotsFree' | 'slotsLimit' | 'activeUntil'> & {
|
|
1088
|
+
subscriptions?: Maybe<Array<(Pick<IAlertSubscription, 'userId' | 'projectId'> & {
|
|
1089
|
+
item: (Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'type' | 'ludoRank' | 'price' | 'verified' | 'mediaUrl' | 'originalMediaUrl'> & {
|
|
1090
|
+
ludoRankDifference?: Maybe<Pick<ILudoRankDifference, 'hourDifference' | 'dayDifference' | 'weekDifference'>>;
|
|
1091
|
+
});
|
|
1092
|
+
})>>;
|
|
1093
|
+
})>;
|
|
1094
|
+
};
|
|
1045
1095
|
export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
1046
1096
|
slug: Scalars['String'];
|
|
1047
1097
|
}>;
|
|
@@ -1381,6 +1431,31 @@ export declare function useRegisterNewProjectMutation(baseOptions?: Apollo.Mutat
|
|
|
1381
1431
|
export type RegisterNewProjectMutationHookResult = ReturnType<typeof useRegisterNewProjectMutation>;
|
|
1382
1432
|
export type RegisterNewProjectMutationResult = Apollo.MutationResult<IRegisterNewProjectMutation>;
|
|
1383
1433
|
export type RegisterNewProjectMutationOptions = Apollo.BaseMutationOptions<IRegisterNewProjectMutation, IRegisterNewProjectMutationVariables>;
|
|
1434
|
+
export declare const SubscribeOnAlertsDocument: Apollo.DocumentNode;
|
|
1435
|
+
export type ISubscribeOnAlertsMutationFn = Apollo.MutationFunction<ISubscribeOnAlertsMutation, ISubscribeOnAlertsMutationVariables>;
|
|
1436
|
+
/**
|
|
1437
|
+
* __useSubscribeOnAlertsMutation__
|
|
1438
|
+
*
|
|
1439
|
+
* To run a mutation, you first call `useSubscribeOnAlertsMutation` within a React component and pass it any options that fit your needs.
|
|
1440
|
+
* When your component renders, `useSubscribeOnAlertsMutation` returns a tuple that includes:
|
|
1441
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1442
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1443
|
+
*
|
|
1444
|
+
* @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;
|
|
1445
|
+
*
|
|
1446
|
+
* @example
|
|
1447
|
+
* const [subscribeOnAlertsMutation, { data, loading, error }] = useSubscribeOnAlertsMutation({
|
|
1448
|
+
* variables: {
|
|
1449
|
+
* input: // value for 'input'
|
|
1450
|
+
* },
|
|
1451
|
+
* });
|
|
1452
|
+
*/
|
|
1453
|
+
export declare function useSubscribeOnAlertsMutation(baseOptions?: Apollo.MutationHookOptions<ISubscribeOnAlertsMutation, ISubscribeOnAlertsMutationVariables>): Apollo.MutationTuple<ISubscribeOnAlertsMutation, Exact<{
|
|
1454
|
+
input: IAlertsSubscriptionInput;
|
|
1455
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1456
|
+
export type SubscribeOnAlertsMutationHookResult = ReturnType<typeof useSubscribeOnAlertsMutation>;
|
|
1457
|
+
export type SubscribeOnAlertsMutationResult = Apollo.MutationResult<ISubscribeOnAlertsMutation>;
|
|
1458
|
+
export type SubscribeOnAlertsMutationOptions = Apollo.BaseMutationOptions<ISubscribeOnAlertsMutation, ISubscribeOnAlertsMutationVariables>;
|
|
1384
1459
|
export declare const FetchAirdropRegistrationsCsvDocument: Apollo.DocumentNode;
|
|
1385
1460
|
/**
|
|
1386
1461
|
* __useFetchAirdropRegistrationsCsvQuery__
|
|
@@ -1641,6 +1716,31 @@ export declare function useFetchProjectLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
1641
1716
|
export type FetchProjectQueryHookResult = ReturnType<typeof useFetchProjectQuery>;
|
|
1642
1717
|
export type FetchProjectLazyQueryHookResult = ReturnType<typeof useFetchProjectLazyQuery>;
|
|
1643
1718
|
export type FetchProjectQueryResult = Apollo.QueryResult<IFetchProjectQuery, IFetchProjectQueryVariables>;
|
|
1719
|
+
export declare const FetchProjectAlertingDocument: Apollo.DocumentNode;
|
|
1720
|
+
/**
|
|
1721
|
+
* __useFetchProjectAlertingQuery__
|
|
1722
|
+
*
|
|
1723
|
+
* To run a query within a React component, call `useFetchProjectAlertingQuery` and pass it any options that fit your needs.
|
|
1724
|
+
* When your component renders, `useFetchProjectAlertingQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1725
|
+
* you can use to render your UI.
|
|
1726
|
+
*
|
|
1727
|
+
* @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;
|
|
1728
|
+
*
|
|
1729
|
+
* @example
|
|
1730
|
+
* const { data, loading, error } = useFetchProjectAlertingQuery({
|
|
1731
|
+
* variables: {
|
|
1732
|
+
* },
|
|
1733
|
+
* });
|
|
1734
|
+
*/
|
|
1735
|
+
export declare function useFetchProjectAlertingQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>): Apollo.QueryResult<IFetchProjectAlertingQuery, Exact<{
|
|
1736
|
+
[key: string]: never;
|
|
1737
|
+
}>>;
|
|
1738
|
+
export declare function useFetchProjectAlertingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectAlertingQuery, Exact<{
|
|
1739
|
+
[key: string]: never;
|
|
1740
|
+
}>>;
|
|
1741
|
+
export type FetchProjectAlertingQueryHookResult = ReturnType<typeof useFetchProjectAlertingQuery>;
|
|
1742
|
+
export type FetchProjectAlertingLazyQueryHookResult = ReturnType<typeof useFetchProjectAlertingLazyQuery>;
|
|
1743
|
+
export type FetchProjectAlertingQueryResult = Apollo.QueryResult<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>;
|
|
1644
1744
|
export declare const FetchProjectBySlugDocument: Apollo.DocumentNode;
|
|
1645
1745
|
/**
|
|
1646
1746
|
* __useFetchProjectBySlugQuery__
|
|
@@ -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.useFetchProjectMonitoringLazyQuery = exports.useFetchProjectMonitoringQuery = exports.FetchProjectMonitoringDocument = exports.useFetchProjectBySlugLazyQuery = exports.useFetchProjectBySlugQuery = exports.FetchProjectBySlugDocument = exports.useFetchProjectLazyQuery = exports.useFetchProjectQuery = exports.FetchProjectDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityBySlugLazyQuery = exports.useFetchOpportunityBySlugQuery = exports.FetchOpportunityBySlugDocument = void 0;
|
|
26
|
+
exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchMonitorsCounterLazyQuery = exports.useFetchMonitorsCounterQuery = exports.FetchMonitorsCounterDocument = 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.useSubscribeOnAlertsMutation = exports.SubscribeOnAlertsDocument = exports.useRegisterNewProjectMutation = exports.RegisterNewProjectDocument = exports.useRegisterForAirdrop2Mutation = exports.RegisterForAirdrop2Document = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useReconsiderProjectStatusMutation = exports.ReconsiderProjectStatusDocument = exports.useReactOnProjectMutation = exports.ReactOnProjectDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useClickOnProjectLinkMutation = exports.ClickOnProjectLinkDocument = exports.useActivateMonitoringMutation = exports.ActivateMonitoringDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = exports.IVoteType = exports.IReactionType = exports.IProjectRegistrationStatus = exports.IOpportunityType = exports.ILinkType = void 0;
|
|
27
|
+
exports.useFetchProjectMonitoringLazyQuery = exports.useFetchProjectMonitoringQuery = exports.FetchProjectMonitoringDocument = exports.useFetchProjectBySlugLazyQuery = exports.useFetchProjectBySlugQuery = exports.FetchProjectBySlugDocument = exports.useFetchProjectAlertingLazyQuery = exports.useFetchProjectAlertingQuery = exports.FetchProjectAlertingDocument = exports.useFetchProjectLazyQuery = exports.useFetchProjectQuery = exports.FetchProjectDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityBySlugLazyQuery = exports.useFetchOpportunityBySlugQuery = exports.FetchOpportunityBySlugDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var ILinkType;
|
|
@@ -390,6 +390,32 @@ function useRegisterNewProjectMutation(baseOptions) {
|
|
|
390
390
|
return Apollo.useMutation(exports.RegisterNewProjectDocument, baseOptions);
|
|
391
391
|
}
|
|
392
392
|
exports.useRegisterNewProjectMutation = useRegisterNewProjectMutation;
|
|
393
|
+
exports.SubscribeOnAlertsDocument = (0, client_1.gql) `
|
|
394
|
+
mutation SubscribeOnAlerts($input: AlertsSubscriptionInput!) {
|
|
395
|
+
subscribeOnAlerts(input: $input)
|
|
396
|
+
}
|
|
397
|
+
`;
|
|
398
|
+
/**
|
|
399
|
+
* __useSubscribeOnAlertsMutation__
|
|
400
|
+
*
|
|
401
|
+
* To run a mutation, you first call `useSubscribeOnAlertsMutation` within a React component and pass it any options that fit your needs.
|
|
402
|
+
* When your component renders, `useSubscribeOnAlertsMutation` returns a tuple that includes:
|
|
403
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
404
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
405
|
+
*
|
|
406
|
+
* @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;
|
|
407
|
+
*
|
|
408
|
+
* @example
|
|
409
|
+
* const [subscribeOnAlertsMutation, { data, loading, error }] = useSubscribeOnAlertsMutation({
|
|
410
|
+
* variables: {
|
|
411
|
+
* input: // value for 'input'
|
|
412
|
+
* },
|
|
413
|
+
* });
|
|
414
|
+
*/
|
|
415
|
+
function useSubscribeOnAlertsMutation(baseOptions) {
|
|
416
|
+
return Apollo.useMutation(exports.SubscribeOnAlertsDocument, baseOptions);
|
|
417
|
+
}
|
|
418
|
+
exports.useSubscribeOnAlertsMutation = useSubscribeOnAlertsMutation;
|
|
393
419
|
exports.FetchAirdropRegistrationsCsvDocument = (0, client_1.gql) `
|
|
394
420
|
query FetchAirdropRegistrationsCsv($opportunityId: ID!) {
|
|
395
421
|
fetchAirdropRegistrationsCsv(opportunityId: $opportunityId)
|
|
@@ -1118,6 +1144,61 @@ function useFetchProjectLazyQuery(baseOptions) {
|
|
|
1118
1144
|
return Apollo.useLazyQuery(exports.FetchProjectDocument, baseOptions);
|
|
1119
1145
|
}
|
|
1120
1146
|
exports.useFetchProjectLazyQuery = useFetchProjectLazyQuery;
|
|
1147
|
+
exports.FetchProjectAlertingDocument = (0, client_1.gql) `
|
|
1148
|
+
query FetchProjectAlerting {
|
|
1149
|
+
fetchProjectAlerting {
|
|
1150
|
+
userId
|
|
1151
|
+
slotsFree
|
|
1152
|
+
slotsLimit
|
|
1153
|
+
activeUntil
|
|
1154
|
+
subscriptions {
|
|
1155
|
+
userId
|
|
1156
|
+
projectId
|
|
1157
|
+
item {
|
|
1158
|
+
blockchain
|
|
1159
|
+
contract
|
|
1160
|
+
name
|
|
1161
|
+
slug
|
|
1162
|
+
symbol
|
|
1163
|
+
type
|
|
1164
|
+
ludoRank
|
|
1165
|
+
price
|
|
1166
|
+
verified
|
|
1167
|
+
mediaUrl
|
|
1168
|
+
originalMediaUrl
|
|
1169
|
+
ludoRankDifference {
|
|
1170
|
+
hourDifference
|
|
1171
|
+
dayDifference
|
|
1172
|
+
weekDifference
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
`;
|
|
1179
|
+
/**
|
|
1180
|
+
* __useFetchProjectAlertingQuery__
|
|
1181
|
+
*
|
|
1182
|
+
* To run a query within a React component, call `useFetchProjectAlertingQuery` and pass it any options that fit your needs.
|
|
1183
|
+
* When your component renders, `useFetchProjectAlertingQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1184
|
+
* you can use to render your UI.
|
|
1185
|
+
*
|
|
1186
|
+
* @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;
|
|
1187
|
+
*
|
|
1188
|
+
* @example
|
|
1189
|
+
* const { data, loading, error } = useFetchProjectAlertingQuery({
|
|
1190
|
+
* variables: {
|
|
1191
|
+
* },
|
|
1192
|
+
* });
|
|
1193
|
+
*/
|
|
1194
|
+
function useFetchProjectAlertingQuery(baseOptions) {
|
|
1195
|
+
return Apollo.useQuery(exports.FetchProjectAlertingDocument, baseOptions);
|
|
1196
|
+
}
|
|
1197
|
+
exports.useFetchProjectAlertingQuery = useFetchProjectAlertingQuery;
|
|
1198
|
+
function useFetchProjectAlertingLazyQuery(baseOptions) {
|
|
1199
|
+
return Apollo.useLazyQuery(exports.FetchProjectAlertingDocument, baseOptions);
|
|
1200
|
+
}
|
|
1201
|
+
exports.useFetchProjectAlertingLazyQuery = useFetchProjectAlertingLazyQuery;
|
|
1121
1202
|
exports.FetchProjectBySlugDocument = (0, client_1.gql) `
|
|
1122
1203
|
query FetchProjectBySlug($slug: String!) {
|
|
1123
1204
|
fetchProjectBySlug(slug: $slug) {
|
package/build/index.d.ts
CHANGED
|
@@ -808,6 +808,11 @@ declare const schema: {
|
|
|
808
808
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IRegisterNewProjectMutation, opportunitiesSchema.Exact<{
|
|
809
809
|
input: opportunitiesSchema.IProjectRegistrationInput;
|
|
810
810
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
811
|
+
useSubscribeOnAlertsMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.ISubscribeOnAlertsMutation, opportunitiesSchema.Exact<{
|
|
812
|
+
input: opportunitiesSchema.IAlertsSubscriptionInput;
|
|
813
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.ISubscribeOnAlertsMutation, opportunitiesSchema.Exact<{
|
|
814
|
+
input: opportunitiesSchema.IAlertsSubscriptionInput;
|
|
815
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
811
816
|
useFetchAirdropRegistrationsCsvQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchAirdropRegistrationsCsvQuery, opportunitiesSchema.Exact<{
|
|
812
817
|
opportunityId: string;
|
|
813
818
|
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchAirdropRegistrationsCsvQuery, opportunitiesSchema.Exact<{
|
|
@@ -892,6 +897,16 @@ declare const schema: {
|
|
|
892
897
|
blockchain: string;
|
|
893
898
|
contract: string;
|
|
894
899
|
}>>;
|
|
900
|
+
useFetchProjectAlertingQuery(baseOptions?: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
901
|
+
[key: string]: never;
|
|
902
|
+
}>> | undefined): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
903
|
+
[key: string]: never;
|
|
904
|
+
}>>;
|
|
905
|
+
useFetchProjectAlertingLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
906
|
+
[key: string]: never;
|
|
907
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
908
|
+
[key: string]: never;
|
|
909
|
+
}>>;
|
|
895
910
|
useFetchProjectBySlugQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
896
911
|
slug: string;
|
|
897
912
|
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
@@ -928,6 +943,7 @@ declare const schema: {
|
|
|
928
943
|
RegisterForAirdropDocument: import("graphql").DocumentNode;
|
|
929
944
|
RegisterForAirdrop2Document: import("graphql").DocumentNode;
|
|
930
945
|
RegisterNewProjectDocument: import("graphql").DocumentNode;
|
|
946
|
+
SubscribeOnAlertsDocument: import("graphql").DocumentNode;
|
|
931
947
|
FetchAirdropRegistrationsCsvDocument: import("graphql").DocumentNode;
|
|
932
948
|
FetchOpportunitiesByIdsDocument: import("graphql").DocumentNode;
|
|
933
949
|
FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
|
|
@@ -936,6 +952,7 @@ declare const schema: {
|
|
|
936
952
|
FetchOpportunityDocument: import("graphql").DocumentNode;
|
|
937
953
|
FetchOpportunityBySlugDocument: import("graphql").DocumentNode;
|
|
938
954
|
FetchProjectDocument: import("graphql").DocumentNode;
|
|
955
|
+
FetchProjectAlertingDocument: import("graphql").DocumentNode;
|
|
939
956
|
FetchProjectBySlugDocument: import("graphql").DocumentNode;
|
|
940
957
|
FetchProjectMonitoringDocument: import("graphql").DocumentNode;
|
|
941
958
|
useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
package/package.json
CHANGED
|
@@ -19,6 +19,12 @@ export type Scalars = {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
export type IAlertSubscription = {
|
|
23
|
+
userId: Scalars['String'];
|
|
24
|
+
projectId: Scalars['String'];
|
|
25
|
+
item: IProject;
|
|
26
|
+
};
|
|
27
|
+
|
|
22
28
|
export type IAlertsSubscriptionInput = {
|
|
23
29
|
blockchain: Scalars['String'];
|
|
24
30
|
contract: Scalars['String'];
|
|
@@ -401,6 +407,14 @@ export type IProject = {
|
|
|
401
407
|
shareLink?: Maybe<Scalars['String']>;
|
|
402
408
|
};
|
|
403
409
|
|
|
410
|
+
export type IProjectAlerting = {
|
|
411
|
+
userId: Scalars['String'];
|
|
412
|
+
slotsFree: Scalars['Int'];
|
|
413
|
+
slotsLimit: Scalars['Int'];
|
|
414
|
+
activeUntil: Scalars['Long'];
|
|
415
|
+
subscriptions?: Maybe<Array<IAlertSubscription>>;
|
|
416
|
+
};
|
|
417
|
+
|
|
404
418
|
export type IProjectCommunityVote = {
|
|
405
419
|
calculatedAt: Scalars['Long'];
|
|
406
420
|
communityVote: Scalars['Int'];
|
|
@@ -500,6 +514,7 @@ export type IQuery = {
|
|
|
500
514
|
fetchProjectBySlug: IProject;
|
|
501
515
|
fetchProject?: Maybe<IProject>;
|
|
502
516
|
fetchProjectMonitoring?: Maybe<IProjectMonitoring>;
|
|
517
|
+
fetchProjectAlerting?: Maybe<IProjectAlerting>;
|
|
503
518
|
fetchMonitorsCounter?: Maybe<IMonitorsCounter>;
|
|
504
519
|
};
|
|
505
520
|
|
|
@@ -648,8 +663,9 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
648
663
|
|
|
649
664
|
/** Mapping between all available schema types and the resolvers types */
|
|
650
665
|
export type IResolversTypes = {
|
|
651
|
-
|
|
666
|
+
AlertSubscription: ResolverTypeWrapper<IAlertSubscription>;
|
|
652
667
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
668
|
+
AlertsSubscriptionInput: IAlertsSubscriptionInput;
|
|
653
669
|
Brand: ResolverTypeWrapper<IBrand>;
|
|
654
670
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
655
671
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
@@ -674,6 +690,7 @@ export type IResolversTypes = {
|
|
|
674
690
|
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
675
691
|
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
676
692
|
Project: ResolverTypeWrapper<IProject>;
|
|
693
|
+
ProjectAlerting: ResolverTypeWrapper<IProjectAlerting>;
|
|
677
694
|
ProjectCommunityVote: ResolverTypeWrapper<IProjectCommunityVote>;
|
|
678
695
|
ProjectLinkClickInput: IProjectLinkClickInput;
|
|
679
696
|
ProjectMonitoring: ResolverTypeWrapper<IProjectMonitoring>;
|
|
@@ -694,8 +711,9 @@ export type IResolversTypes = {
|
|
|
694
711
|
|
|
695
712
|
/** Mapping between all available schema types and the resolvers parents */
|
|
696
713
|
export type IResolversParentTypes = {
|
|
697
|
-
|
|
714
|
+
AlertSubscription: IAlertSubscription;
|
|
698
715
|
String: Scalars['String'];
|
|
716
|
+
AlertsSubscriptionInput: IAlertsSubscriptionInput;
|
|
699
717
|
Brand: IBrand;
|
|
700
718
|
ID: Scalars['ID'];
|
|
701
719
|
Boolean: Scalars['Boolean'];
|
|
@@ -718,6 +736,7 @@ export type IResolversParentTypes = {
|
|
|
718
736
|
OpportunityV2: IOpportunityV2;
|
|
719
737
|
ProfileOpportunities: IProfileOpportunities;
|
|
720
738
|
Project: IProject;
|
|
739
|
+
ProjectAlerting: IProjectAlerting;
|
|
721
740
|
ProjectCommunityVote: IProjectCommunityVote;
|
|
722
741
|
ProjectLinkClickInput: IProjectLinkClickInput;
|
|
723
742
|
ProjectMonitoring: IProjectMonitoring;
|
|
@@ -737,6 +756,13 @@ export type IOneOfDirectiveArgs = { };
|
|
|
737
756
|
|
|
738
757
|
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
739
758
|
|
|
759
|
+
export type IAlertSubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['AlertSubscription'] = IResolversParentTypes['AlertSubscription']> = {
|
|
760
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
761
|
+
projectId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
762
|
+
item?: Resolver<IResolversTypes['Project'], ParentType, ContextType>;
|
|
763
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
764
|
+
};
|
|
765
|
+
|
|
740
766
|
export type IBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['Brand'] = IResolversParentTypes['Brand']> = {
|
|
741
767
|
brandId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
742
768
|
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -961,6 +987,15 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
961
987
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
962
988
|
};
|
|
963
989
|
|
|
990
|
+
export type IProjectAlertingResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectAlerting'] = IResolversParentTypes['ProjectAlerting']> = {
|
|
991
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
992
|
+
slotsFree?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
993
|
+
slotsLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
994
|
+
activeUntil?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
995
|
+
subscriptions?: Resolver<Maybe<Array<IResolversTypes['AlertSubscription']>>, ParentType, ContextType>;
|
|
996
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
997
|
+
};
|
|
998
|
+
|
|
964
999
|
export type IProjectCommunityVoteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectCommunityVote'] = IResolversParentTypes['ProjectCommunityVote']> = {
|
|
965
1000
|
calculatedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
966
1001
|
communityVote?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
@@ -1040,6 +1075,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1040
1075
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
1041
1076
|
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
1042
1077
|
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType>;
|
|
1078
|
+
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType>;
|
|
1043
1079
|
fetchMonitorsCounter?: Resolver<Maybe<IResolversTypes['MonitorsCounter']>, ParentType, ContextType>;
|
|
1044
1080
|
};
|
|
1045
1081
|
|
|
@@ -1051,6 +1087,7 @@ export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IRe
|
|
|
1051
1087
|
};
|
|
1052
1088
|
|
|
1053
1089
|
export type IResolvers<ContextType = any> = {
|
|
1090
|
+
AlertSubscription?: IAlertSubscriptionResolvers<ContextType>;
|
|
1054
1091
|
Brand?: IBrandResolvers<ContextType>;
|
|
1055
1092
|
Category?: ICategoryResolvers<ContextType>;
|
|
1056
1093
|
CommunityVoteDetails?: ICommunityVoteDetailsResolvers<ContextType>;
|
|
@@ -1065,6 +1102,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1065
1102
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
1066
1103
|
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
1067
1104
|
Project?: IProjectResolvers<ContextType>;
|
|
1105
|
+
ProjectAlerting?: IProjectAlertingResolvers<ContextType>;
|
|
1068
1106
|
ProjectCommunityVote?: IProjectCommunityVoteResolvers<ContextType>;
|
|
1069
1107
|
ProjectMonitoring?: IProjectMonitoringResolvers<ContextType>;
|
|
1070
1108
|
ProjectReactions?: IProjectReactionsResolvers<ContextType>;
|
|
@@ -1171,6 +1209,13 @@ export type IRegisterNewProjectMutation = { registerNewProject: (
|
|
|
1171
1209
|
& { project?: Maybe<Pick<IProject, 'contract' | 'name' | 'slug' | 'symbol' | 'verified'>> }
|
|
1172
1210
|
) };
|
|
1173
1211
|
|
|
1212
|
+
export type ISubscribeOnAlertsMutationVariables = Exact<{
|
|
1213
|
+
input: IAlertsSubscriptionInput;
|
|
1214
|
+
}>;
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
export type ISubscribeOnAlertsMutation = Pick<IMutation, 'subscribeOnAlerts'>;
|
|
1218
|
+
|
|
1174
1219
|
export type IFetchAirdropRegistrationsCsvQueryVariables = Exact<{
|
|
1175
1220
|
opportunityId: Scalars['ID'];
|
|
1176
1221
|
}>;
|
|
@@ -1242,6 +1287,20 @@ export type IFetchProjectQuery = { fetchProject?: Maybe<(
|
|
|
1242
1287
|
& { status?: Maybe<Pick<IProjectStatus, 'monitored' | 'removalReason' | 'removalDate'>> }
|
|
1243
1288
|
)> };
|
|
1244
1289
|
|
|
1290
|
+
export type IFetchProjectAlertingQueryVariables = Exact<{ [key: string]: never; }>;
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
export type IFetchProjectAlertingQuery = { fetchProjectAlerting?: Maybe<(
|
|
1294
|
+
Pick<IProjectAlerting, 'userId' | 'slotsFree' | 'slotsLimit' | 'activeUntil'>
|
|
1295
|
+
& { subscriptions?: Maybe<Array<(
|
|
1296
|
+
Pick<IAlertSubscription, 'userId' | 'projectId'>
|
|
1297
|
+
& { item: (
|
|
1298
|
+
Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'type' | 'ludoRank' | 'price' | 'verified' | 'mediaUrl' | 'originalMediaUrl'>
|
|
1299
|
+
& { ludoRankDifference?: Maybe<Pick<ILudoRankDifference, 'hourDifference' | 'dayDifference' | 'weekDifference'>> }
|
|
1300
|
+
) }
|
|
1301
|
+
)>> }
|
|
1302
|
+
)> };
|
|
1303
|
+
|
|
1245
1304
|
export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
1246
1305
|
slug: Scalars['String'];
|
|
1247
1306
|
}>;
|
|
@@ -1651,6 +1710,36 @@ export function useRegisterNewProjectMutation(baseOptions?: Apollo.MutationHookO
|
|
|
1651
1710
|
export type RegisterNewProjectMutationHookResult = ReturnType<typeof useRegisterNewProjectMutation>;
|
|
1652
1711
|
export type RegisterNewProjectMutationResult = Apollo.MutationResult<IRegisterNewProjectMutation>;
|
|
1653
1712
|
export type RegisterNewProjectMutationOptions = Apollo.BaseMutationOptions<IRegisterNewProjectMutation, IRegisterNewProjectMutationVariables>;
|
|
1713
|
+
export const SubscribeOnAlertsDocument = gql`
|
|
1714
|
+
mutation SubscribeOnAlerts($input: AlertsSubscriptionInput!) {
|
|
1715
|
+
subscribeOnAlerts(input: $input)
|
|
1716
|
+
}
|
|
1717
|
+
`;
|
|
1718
|
+
export type ISubscribeOnAlertsMutationFn = Apollo.MutationFunction<ISubscribeOnAlertsMutation, ISubscribeOnAlertsMutationVariables>;
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* __useSubscribeOnAlertsMutation__
|
|
1722
|
+
*
|
|
1723
|
+
* To run a mutation, you first call `useSubscribeOnAlertsMutation` within a React component and pass it any options that fit your needs.
|
|
1724
|
+
* When your component renders, `useSubscribeOnAlertsMutation` returns a tuple that includes:
|
|
1725
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1726
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1727
|
+
*
|
|
1728
|
+
* @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;
|
|
1729
|
+
*
|
|
1730
|
+
* @example
|
|
1731
|
+
* const [subscribeOnAlertsMutation, { data, loading, error }] = useSubscribeOnAlertsMutation({
|
|
1732
|
+
* variables: {
|
|
1733
|
+
* input: // value for 'input'
|
|
1734
|
+
* },
|
|
1735
|
+
* });
|
|
1736
|
+
*/
|
|
1737
|
+
export function useSubscribeOnAlertsMutation(baseOptions?: Apollo.MutationHookOptions<ISubscribeOnAlertsMutation, ISubscribeOnAlertsMutationVariables>) {
|
|
1738
|
+
return Apollo.useMutation<ISubscribeOnAlertsMutation, ISubscribeOnAlertsMutationVariables>(SubscribeOnAlertsDocument, baseOptions);
|
|
1739
|
+
}
|
|
1740
|
+
export type SubscribeOnAlertsMutationHookResult = ReturnType<typeof useSubscribeOnAlertsMutation>;
|
|
1741
|
+
export type SubscribeOnAlertsMutationResult = Apollo.MutationResult<ISubscribeOnAlertsMutation>;
|
|
1742
|
+
export type SubscribeOnAlertsMutationOptions = Apollo.BaseMutationOptions<ISubscribeOnAlertsMutation, ISubscribeOnAlertsMutationVariables>;
|
|
1654
1743
|
export const FetchAirdropRegistrationsCsvDocument = gql`
|
|
1655
1744
|
query FetchAirdropRegistrationsCsv($opportunityId: ID!) {
|
|
1656
1745
|
fetchAirdropRegistrationsCsv(opportunityId: $opportunityId)
|
|
@@ -2399,6 +2488,63 @@ export function useFetchProjectLazyQuery(baseOptions?: Apollo.LazyQueryHookOptio
|
|
|
2399
2488
|
export type FetchProjectQueryHookResult = ReturnType<typeof useFetchProjectQuery>;
|
|
2400
2489
|
export type FetchProjectLazyQueryHookResult = ReturnType<typeof useFetchProjectLazyQuery>;
|
|
2401
2490
|
export type FetchProjectQueryResult = Apollo.QueryResult<IFetchProjectQuery, IFetchProjectQueryVariables>;
|
|
2491
|
+
export const FetchProjectAlertingDocument = gql`
|
|
2492
|
+
query FetchProjectAlerting {
|
|
2493
|
+
fetchProjectAlerting {
|
|
2494
|
+
userId
|
|
2495
|
+
slotsFree
|
|
2496
|
+
slotsLimit
|
|
2497
|
+
activeUntil
|
|
2498
|
+
subscriptions {
|
|
2499
|
+
userId
|
|
2500
|
+
projectId
|
|
2501
|
+
item {
|
|
2502
|
+
blockchain
|
|
2503
|
+
contract
|
|
2504
|
+
name
|
|
2505
|
+
slug
|
|
2506
|
+
symbol
|
|
2507
|
+
type
|
|
2508
|
+
ludoRank
|
|
2509
|
+
price
|
|
2510
|
+
verified
|
|
2511
|
+
mediaUrl
|
|
2512
|
+
originalMediaUrl
|
|
2513
|
+
ludoRankDifference {
|
|
2514
|
+
hourDifference
|
|
2515
|
+
dayDifference
|
|
2516
|
+
weekDifference
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
`;
|
|
2523
|
+
|
|
2524
|
+
/**
|
|
2525
|
+
* __useFetchProjectAlertingQuery__
|
|
2526
|
+
*
|
|
2527
|
+
* To run a query within a React component, call `useFetchProjectAlertingQuery` and pass it any options that fit your needs.
|
|
2528
|
+
* When your component renders, `useFetchProjectAlertingQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2529
|
+
* you can use to render your UI.
|
|
2530
|
+
*
|
|
2531
|
+
* @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;
|
|
2532
|
+
*
|
|
2533
|
+
* @example
|
|
2534
|
+
* const { data, loading, error } = useFetchProjectAlertingQuery({
|
|
2535
|
+
* variables: {
|
|
2536
|
+
* },
|
|
2537
|
+
* });
|
|
2538
|
+
*/
|
|
2539
|
+
export function useFetchProjectAlertingQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>) {
|
|
2540
|
+
return Apollo.useQuery<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>(FetchProjectAlertingDocument, baseOptions);
|
|
2541
|
+
}
|
|
2542
|
+
export function useFetchProjectAlertingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>) {
|
|
2543
|
+
return Apollo.useLazyQuery<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>(FetchProjectAlertingDocument, baseOptions);
|
|
2544
|
+
}
|
|
2545
|
+
export type FetchProjectAlertingQueryHookResult = ReturnType<typeof useFetchProjectAlertingQuery>;
|
|
2546
|
+
export type FetchProjectAlertingLazyQueryHookResult = ReturnType<typeof useFetchProjectAlertingLazyQuery>;
|
|
2547
|
+
export type FetchProjectAlertingQueryResult = Apollo.QueryResult<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>;
|
|
2402
2548
|
export const FetchProjectBySlugDocument = gql`
|
|
2403
2549
|
query FetchProjectBySlug($slug: String!) {
|
|
2404
2550
|
fetchProjectBySlug(slug: $slug) {
|