@ludo.ninja/api 3.2.21 → 3.2.23
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 +103 -3
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +84 -2
- package/build/index.d.ts +17 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +150 -3
- 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,11 +1080,23 @@ 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
|
}>;
|
|
1048
1098
|
export type IFetchProjectBySlugQuery = {
|
|
1049
|
-
fetchProjectBySlug: (Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'mediaUrl' | 'originalMediaUrl' | 'shareLink' | 'userReaction' | 'communityVote' | 'hideDiagrams'> & {
|
|
1099
|
+
fetchProjectBySlug: (Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'mediaUrl' | 'originalMediaUrl' | 'alertsSubscriptionIsActive' | 'shareLink' | 'userReaction' | 'communityVote' | 'hideDiagrams'> & {
|
|
1050
1100
|
publisher?: Maybe<Pick<IPublisher, 'userId' | 'username' | 'userpic' | 'rank'>>;
|
|
1051
1101
|
status?: Maybe<Pick<IProjectStatus, 'monitored' | 'removalReason' | 'removalDate'>>;
|
|
1052
1102
|
snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>>;
|
|
@@ -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) {
|
|
@@ -1141,6 +1222,7 @@ exports.FetchProjectBySlugDocument = (0, client_1.gql) `
|
|
|
1141
1222
|
verified
|
|
1142
1223
|
mediaUrl
|
|
1143
1224
|
originalMediaUrl
|
|
1225
|
+
alertsSubscriptionIsActive
|
|
1144
1226
|
publisher {
|
|
1145
1227
|
userId
|
|
1146
1228
|
username
|
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<{
|