@ludo.ninja/api 3.2.20 → 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 +105 -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 +152 -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'];
|
|
@@ -342,6 +347,14 @@ export type IProject = {
|
|
|
342
347
|
mediaUrl?: Maybe<Scalars['String']>;
|
|
343
348
|
publisher?: Maybe<IPublisher>;
|
|
344
349
|
communityVoteDetails?: Maybe<Array<ICommunityVoteDetails>>;
|
|
350
|
+
shareLink?: Maybe<Scalars['String']>;
|
|
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>>;
|
|
345
358
|
};
|
|
346
359
|
export type IProjectCommunityVote = {
|
|
347
360
|
calculatedAt: Scalars['Long'];
|
|
@@ -430,6 +443,7 @@ export type IQuery = {
|
|
|
430
443
|
fetchProjectBySlug: IProject;
|
|
431
444
|
fetchProject?: Maybe<IProject>;
|
|
432
445
|
fetchProjectMonitoring?: Maybe<IProjectMonitoring>;
|
|
446
|
+
fetchProjectAlerting?: Maybe<IProjectAlerting>;
|
|
433
447
|
fetchMonitorsCounter?: Maybe<IMonitorsCounter>;
|
|
434
448
|
};
|
|
435
449
|
export type IQueryFetchBrandArgs = {
|
|
@@ -511,8 +525,9 @@ export type NextResolverFn<T> = () => Promise<T>;
|
|
|
511
525
|
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
512
526
|
/** Mapping between all available schema types and the resolvers types */
|
|
513
527
|
export type IResolversTypes = {
|
|
514
|
-
|
|
528
|
+
AlertSubscription: ResolverTypeWrapper<IAlertSubscription>;
|
|
515
529
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
530
|
+
AlertsSubscriptionInput: IAlertsSubscriptionInput;
|
|
516
531
|
Brand: ResolverTypeWrapper<IBrand>;
|
|
517
532
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
518
533
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
@@ -537,6 +552,7 @@ export type IResolversTypes = {
|
|
|
537
552
|
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
538
553
|
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
539
554
|
Project: ResolverTypeWrapper<IProject>;
|
|
555
|
+
ProjectAlerting: ResolverTypeWrapper<IProjectAlerting>;
|
|
540
556
|
ProjectCommunityVote: ResolverTypeWrapper<IProjectCommunityVote>;
|
|
541
557
|
ProjectLinkClickInput: IProjectLinkClickInput;
|
|
542
558
|
ProjectMonitoring: ResolverTypeWrapper<IProjectMonitoring>;
|
|
@@ -556,8 +572,9 @@ export type IResolversTypes = {
|
|
|
556
572
|
};
|
|
557
573
|
/** Mapping between all available schema types and the resolvers parents */
|
|
558
574
|
export type IResolversParentTypes = {
|
|
559
|
-
|
|
575
|
+
AlertSubscription: IAlertSubscription;
|
|
560
576
|
String: Scalars['String'];
|
|
577
|
+
AlertsSubscriptionInput: IAlertsSubscriptionInput;
|
|
561
578
|
Brand: IBrand;
|
|
562
579
|
ID: Scalars['ID'];
|
|
563
580
|
Boolean: Scalars['Boolean'];
|
|
@@ -580,6 +597,7 @@ export type IResolversParentTypes = {
|
|
|
580
597
|
OpportunityV2: IOpportunityV2;
|
|
581
598
|
ProfileOpportunities: IProfileOpportunities;
|
|
582
599
|
Project: IProject;
|
|
600
|
+
ProjectAlerting: IProjectAlerting;
|
|
583
601
|
ProjectCommunityVote: IProjectCommunityVote;
|
|
584
602
|
ProjectLinkClickInput: IProjectLinkClickInput;
|
|
585
603
|
ProjectMonitoring: IProjectMonitoring;
|
|
@@ -596,6 +614,12 @@ export type IResolversParentTypes = {
|
|
|
596
614
|
};
|
|
597
615
|
export type IOneOfDirectiveArgs = {};
|
|
598
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
|
+
};
|
|
599
623
|
export type IBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['Brand'] = IResolversParentTypes['Brand']> = {
|
|
600
624
|
brandId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
601
625
|
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -803,6 +827,15 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
803
827
|
mediaUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
804
828
|
publisher?: Resolver<Maybe<IResolversTypes['Publisher']>, ParentType, ContextType>;
|
|
805
829
|
communityVoteDetails?: Resolver<Maybe<Array<IResolversTypes['CommunityVoteDetails']>>, ParentType, ContextType>;
|
|
830
|
+
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
831
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
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>;
|
|
806
839
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
807
840
|
};
|
|
808
841
|
export type IProjectCommunityVoteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectCommunityVote'] = IResolversParentTypes['ProjectCommunityVote']> = {
|
|
@@ -877,6 +910,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
877
910
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
878
911
|
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
879
912
|
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType>;
|
|
913
|
+
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType>;
|
|
880
914
|
fetchMonitorsCounter?: Resolver<Maybe<IResolversTypes['MonitorsCounter']>, ParentType, ContextType>;
|
|
881
915
|
};
|
|
882
916
|
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
@@ -886,6 +920,7 @@ export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IRe
|
|
|
886
920
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
887
921
|
};
|
|
888
922
|
export type IResolvers<ContextType = any> = {
|
|
923
|
+
AlertSubscription?: IAlertSubscriptionResolvers<ContextType>;
|
|
889
924
|
Brand?: IBrandResolvers<ContextType>;
|
|
890
925
|
Category?: ICategoryResolvers<ContextType>;
|
|
891
926
|
CommunityVoteDetails?: ICommunityVoteDetailsResolvers<ContextType>;
|
|
@@ -900,6 +935,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
900
935
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
901
936
|
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
902
937
|
Project?: IProjectResolvers<ContextType>;
|
|
938
|
+
ProjectAlerting?: IProjectAlertingResolvers<ContextType>;
|
|
903
939
|
ProjectCommunityVote?: IProjectCommunityVoteResolvers<ContextType>;
|
|
904
940
|
ProjectMonitoring?: IProjectMonitoringResolvers<ContextType>;
|
|
905
941
|
ProjectReactions?: IProjectReactionsResolvers<ContextType>;
|
|
@@ -969,6 +1005,10 @@ export type IRegisterNewProjectMutation = {
|
|
|
969
1005
|
project?: Maybe<Pick<IProject, 'contract' | 'name' | 'slug' | 'symbol' | 'verified'>>;
|
|
970
1006
|
});
|
|
971
1007
|
};
|
|
1008
|
+
export type ISubscribeOnAlertsMutationVariables = Exact<{
|
|
1009
|
+
input: IAlertsSubscriptionInput;
|
|
1010
|
+
}>;
|
|
1011
|
+
export type ISubscribeOnAlertsMutation = Pick<IMutation, 'subscribeOnAlerts'>;
|
|
972
1012
|
export type IFetchAirdropRegistrationsCsvQueryVariables = Exact<{
|
|
973
1013
|
opportunityId: Scalars['ID'];
|
|
974
1014
|
}>;
|
|
@@ -1040,11 +1080,23 @@ export type IFetchProjectQuery = {
|
|
|
1040
1080
|
status?: Maybe<Pick<IProjectStatus, 'monitored' | 'removalReason' | 'removalDate'>>;
|
|
1041
1081
|
})>;
|
|
1042
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
|
+
};
|
|
1043
1095
|
export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
1044
1096
|
slug: Scalars['String'];
|
|
1045
1097
|
}>;
|
|
1046
1098
|
export type IFetchProjectBySlugQuery = {
|
|
1047
|
-
fetchProjectBySlug: (Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'mediaUrl' | 'originalMediaUrl' | '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' | 'shareLink' | 'userReaction' | 'communityVote' | 'hideDiagrams'> & {
|
|
1048
1100
|
publisher?: Maybe<Pick<IPublisher, 'userId' | 'username' | 'userpic' | 'rank'>>;
|
|
1049
1101
|
status?: Maybe<Pick<IProjectStatus, 'monitored' | 'removalReason' | 'removalDate'>>;
|
|
1050
1102
|
snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>>;
|
|
@@ -1379,6 +1431,31 @@ export declare function useRegisterNewProjectMutation(baseOptions?: Apollo.Mutat
|
|
|
1379
1431
|
export type RegisterNewProjectMutationHookResult = ReturnType<typeof useRegisterNewProjectMutation>;
|
|
1380
1432
|
export type RegisterNewProjectMutationResult = Apollo.MutationResult<IRegisterNewProjectMutation>;
|
|
1381
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>;
|
|
1382
1459
|
export declare const FetchAirdropRegistrationsCsvDocument: Apollo.DocumentNode;
|
|
1383
1460
|
/**
|
|
1384
1461
|
* __useFetchAirdropRegistrationsCsvQuery__
|
|
@@ -1639,6 +1716,31 @@ export declare function useFetchProjectLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
1639
1716
|
export type FetchProjectQueryHookResult = ReturnType<typeof useFetchProjectQuery>;
|
|
1640
1717
|
export type FetchProjectLazyQueryHookResult = ReturnType<typeof useFetchProjectLazyQuery>;
|
|
1641
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>;
|
|
1642
1744
|
export declare const FetchProjectBySlugDocument: Apollo.DocumentNode;
|
|
1643
1745
|
/**
|
|
1644
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) {
|
|
@@ -1164,6 +1245,7 @@ exports.FetchProjectBySlugDocument = (0, client_1.gql) `
|
|
|
1164
1245
|
holders
|
|
1165
1246
|
ludoRank
|
|
1166
1247
|
}
|
|
1248
|
+
shareLink
|
|
1167
1249
|
reactions {
|
|
1168
1250
|
likes
|
|
1169
1251
|
neutrals
|
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<{
|