@ludo.ninja/api 3.0.64 → 3.0.65

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.
@@ -74,6 +74,7 @@ export type IMutation = {
74
74
  dislikeOpportunity: Scalars['Boolean'];
75
75
  registerForAirdrop: Scalars['Boolean'];
76
76
  copyOpportunityShareLink: Scalars['Boolean'];
77
+ registerNewProject: Scalars['Boolean'];
77
78
  };
78
79
  export type IMutationCreateBrandArgs = {
79
80
  input: IBrandInput;
@@ -116,6 +117,9 @@ export type IMutationRegisterForAirdropArgs = {
116
117
  export type IMutationCopyOpportunityShareLinkArgs = {
117
118
  opportunityId: Scalars['ID'];
118
119
  };
120
+ export type IMutationRegisterNewProjectArgs = {
121
+ input: IProjectRegistrationInput;
122
+ };
119
123
  export type IOpportunitiesPage = {
120
124
  currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
121
125
  similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
@@ -223,6 +227,43 @@ export type IProfileOpportunities = {
223
227
  newOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
224
228
  recentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
225
229
  };
230
+ export type IProject = {
231
+ blockchain: Scalars['String'];
232
+ contract: Scalars['String'];
233
+ name?: Maybe<Scalars['String']>;
234
+ slug?: Maybe<Scalars['String']>;
235
+ symbol?: Maybe<Scalars['String']>;
236
+ website?: Maybe<Scalars['String']>;
237
+ twitter?: Maybe<Scalars['String']>;
238
+ type?: Maybe<Scalars['String']>;
239
+ ludoRank?: Maybe<Scalars['Int']>;
240
+ investors?: Maybe<Scalars['Int']>;
241
+ holders?: Maybe<Scalars['Int']>;
242
+ volume?: Maybe<Scalars['Float']>;
243
+ marketCap?: Maybe<Scalars['Float']>;
244
+ liquidity?: Maybe<Scalars['Float']>;
245
+ price?: Maybe<Scalars['Float']>;
246
+ twitterFollowers?: Maybe<Scalars['Int']>;
247
+ twitterSentiment?: Maybe<Scalars['Int']>;
248
+ verified?: Maybe<Scalars['Boolean']>;
249
+ snapshots?: Maybe<Array<Maybe<IProjectSnapshot>>>;
250
+ };
251
+ export type IProjectRegistrationInput = {
252
+ blockchain: Scalars['String'];
253
+ contract: Scalars['String'];
254
+ };
255
+ export type IProjectSnapshot = {
256
+ date?: Maybe<Scalars['Long']>;
257
+ contract: Scalars['String'];
258
+ blockchain: Scalars['String'];
259
+ volume?: Maybe<Scalars['Float']>;
260
+ marketCap?: Maybe<Scalars['Float']>;
261
+ price?: Maybe<Scalars['Float']>;
262
+ liquidity?: Maybe<Scalars['Float']>;
263
+ xFollowers?: Maybe<Scalars['Int']>;
264
+ holders?: Maybe<Scalars['Int']>;
265
+ ludoRank?: Maybe<Scalars['Float']>;
266
+ };
226
267
  export type IQuery = {
227
268
  getDummy: Scalars['String'];
228
269
  fetchBrands?: Maybe<Array<Maybe<IBrand>>>;
@@ -238,6 +279,7 @@ export type IQuery = {
238
279
  fetchOpportunitiesByIds: Array<IOpportunityV2>;
239
280
  fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
240
281
  fetchAirdropRegistrationsCsv: Scalars['String'];
282
+ fetchProjectBySlug: IProject;
241
283
  };
242
284
  export type IQueryFetchBrandArgs = {
243
285
  brandId: Scalars['ID'];
@@ -264,6 +306,9 @@ export type IQueryFetchOpportunitiesForWalletArgs = {
264
306
  export type IQueryFetchAirdropRegistrationsCsvArgs = {
265
307
  opportunityId: Scalars['ID'];
266
308
  };
309
+ export type IQueryFetchProjectBySlugArgs = {
310
+ slug: Scalars['String'];
311
+ };
267
312
  export type ResolverTypeWrapper<T> = Promise<T> | T;
268
313
  export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
269
314
  resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
@@ -309,6 +354,9 @@ export type IResolversTypes = {
309
354
  OpportunityType: IOpportunityType;
310
355
  OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
311
356
  ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
357
+ Project: ResolverTypeWrapper<IProject>;
358
+ ProjectRegistrationInput: IProjectRegistrationInput;
359
+ ProjectSnapshot: ResolverTypeWrapper<IProjectSnapshot>;
312
360
  Query: ResolverTypeWrapper<{}>;
313
361
  };
314
362
  /** Mapping between all available schema types and the resolvers parents */
@@ -329,6 +377,9 @@ export type IResolversParentTypes = {
329
377
  Float: Scalars['Float'];
330
378
  OpportunityV2: IOpportunityV2;
331
379
  ProfileOpportunities: IProfileOpportunities;
380
+ Project: IProject;
381
+ ProjectRegistrationInput: IProjectRegistrationInput;
382
+ ProjectSnapshot: IProjectSnapshot;
332
383
  Query: {};
333
384
  };
334
385
  export type IOneOfDirectiveArgs = {};
@@ -376,6 +427,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
376
427
  dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
377
428
  registerForAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdropArgs, 'opportunityId' | 'blockchain' | 'address'>>;
378
429
  copyOpportunityShareLink?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCopyOpportunityShareLinkArgs, 'opportunityId'>>;
430
+ registerNewProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterNewProjectArgs, 'input'>>;
379
431
  };
380
432
  export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
381
433
  currentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['Opportunity']>>>, ParentType, ContextType>;
@@ -460,6 +512,41 @@ export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends
460
512
  recentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
461
513
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
462
514
  };
515
+ export type IProjectResolvers<ContextType = any, ParentType extends IResolversParentTypes['Project'] = IResolversParentTypes['Project']> = {
516
+ blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
517
+ contract?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
518
+ name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
519
+ slug?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
520
+ symbol?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
521
+ website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
522
+ twitter?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
523
+ type?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
524
+ ludoRank?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
525
+ investors?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
526
+ holders?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
527
+ volume?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
528
+ marketCap?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
529
+ liquidity?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
530
+ price?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
531
+ twitterFollowers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
532
+ twitterSentiment?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
533
+ verified?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
534
+ snapshots?: Resolver<Maybe<Array<Maybe<IResolversTypes['ProjectSnapshot']>>>, ParentType, ContextType>;
535
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
536
+ };
537
+ export type IProjectSnapshotResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectSnapshot'] = IResolversParentTypes['ProjectSnapshot']> = {
538
+ date?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
539
+ contract?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
540
+ blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
541
+ volume?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
542
+ marketCap?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
543
+ price?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
544
+ liquidity?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
545
+ xFollowers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
546
+ holders?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
547
+ ludoRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
548
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
549
+ };
463
550
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
464
551
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
465
552
  fetchBrands?: Resolver<Maybe<Array<Maybe<IResolversTypes['Brand']>>>, ParentType, ContextType>;
@@ -475,6 +562,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
475
562
  fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
476
563
  fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
477
564
  fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
565
+ fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
478
566
  };
479
567
  export type IResolvers<ContextType = any> = {
480
568
  Brand?: IBrandResolvers<ContextType>;
@@ -485,6 +573,8 @@ export type IResolvers<ContextType = any> = {
485
573
  Opportunity?: IOpportunityResolvers<ContextType>;
486
574
  OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
487
575
  ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
576
+ Project?: IProjectResolvers<ContextType>;
577
+ ProjectSnapshot?: IProjectSnapshotResolvers<ContextType>;
488
578
  Query?: IQueryResolvers<ContextType>;
489
579
  };
490
580
  export type IDirectiveResolvers<ContextType = any> = {
@@ -516,6 +606,10 @@ export type IRegisterForAirdropMutationVariables = Exact<{
516
606
  address: Scalars['String'];
517
607
  }>;
518
608
  export type IRegisterForAirdropMutation = Pick<IMutation, 'registerForAirdrop'>;
609
+ export type IRegisterNewProjectMutationVariables = Exact<{
610
+ input: IProjectRegistrationInput;
611
+ }>;
612
+ export type IRegisterNewProjectMutation = Pick<IMutation, 'registerNewProject'>;
519
613
  export type IFetchAirdropRegistrationsCsvQueryVariables = Exact<{
520
614
  opportunityId: Scalars['ID'];
521
615
  }>;
@@ -567,6 +661,14 @@ export type IFetchProfileOpportunitiesQuery = {
567
661
  recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'brandLudoUrl'>>>>;
568
662
  };
569
663
  };
664
+ export type IFetchProjectBySlugQueryVariables = Exact<{
665
+ slug: Scalars['String'];
666
+ }>;
667
+ export type IFetchProjectBySlugQuery = {
668
+ fetchProjectBySlug: (Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified'> & {
669
+ snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>>;
670
+ });
671
+ };
570
672
  export declare const DislikeOpportunityDocument: Apollo.DocumentNode;
571
673
  export type IDislikeOpportunityMutationFn = Apollo.MutationFunction<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>;
572
674
  /**
@@ -721,6 +823,31 @@ export declare function useRegisterForAirdropMutation(baseOptions?: Apollo.Mutat
721
823
  export type RegisterForAirdropMutationHookResult = ReturnType<typeof useRegisterForAirdropMutation>;
722
824
  export type RegisterForAirdropMutationResult = Apollo.MutationResult<IRegisterForAirdropMutation>;
723
825
  export type RegisterForAirdropMutationOptions = Apollo.BaseMutationOptions<IRegisterForAirdropMutation, IRegisterForAirdropMutationVariables>;
826
+ export declare const RegisterNewProjectDocument: Apollo.DocumentNode;
827
+ export type IRegisterNewProjectMutationFn = Apollo.MutationFunction<IRegisterNewProjectMutation, IRegisterNewProjectMutationVariables>;
828
+ /**
829
+ * __useRegisterNewProjectMutation__
830
+ *
831
+ * To run a mutation, you first call `useRegisterNewProjectMutation` within a React component and pass it any options that fit your needs.
832
+ * When your component renders, `useRegisterNewProjectMutation` returns a tuple that includes:
833
+ * - A mutate function that you can call at any time to execute the mutation
834
+ * - An object with fields that represent the current status of the mutation's execution
835
+ *
836
+ * @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;
837
+ *
838
+ * @example
839
+ * const [registerNewProjectMutation, { data, loading, error }] = useRegisterNewProjectMutation({
840
+ * variables: {
841
+ * input: // value for 'input'
842
+ * },
843
+ * });
844
+ */
845
+ export declare function useRegisterNewProjectMutation(baseOptions?: Apollo.MutationHookOptions<IRegisterNewProjectMutation, IRegisterNewProjectMutationVariables>): Apollo.MutationTuple<IRegisterNewProjectMutation, Exact<{
846
+ input: IProjectRegistrationInput;
847
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
848
+ export type RegisterNewProjectMutationHookResult = ReturnType<typeof useRegisterNewProjectMutation>;
849
+ export type RegisterNewProjectMutationResult = Apollo.MutationResult<IRegisterNewProjectMutation>;
850
+ export type RegisterNewProjectMutationOptions = Apollo.BaseMutationOptions<IRegisterNewProjectMutation, IRegisterNewProjectMutationVariables>;
724
851
  export declare const FetchAirdropRegistrationsCsvDocument: Apollo.DocumentNode;
725
852
  /**
726
853
  * __useFetchAirdropRegistrationsCsvQuery__
@@ -901,3 +1028,29 @@ export declare function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apol
901
1028
  export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
902
1029
  export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
903
1030
  export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
1031
+ export declare const FetchProjectBySlugDocument: Apollo.DocumentNode;
1032
+ /**
1033
+ * __useFetchProjectBySlugQuery__
1034
+ *
1035
+ * To run a query within a React component, call `useFetchProjectBySlugQuery` and pass it any options that fit your needs.
1036
+ * When your component renders, `useFetchProjectBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
1037
+ * you can use to render your UI.
1038
+ *
1039
+ * @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;
1040
+ *
1041
+ * @example
1042
+ * const { data, loading, error } = useFetchProjectBySlugQuery({
1043
+ * variables: {
1044
+ * slug: // value for 'slug'
1045
+ * },
1046
+ * });
1047
+ */
1048
+ export declare function useFetchProjectBySlugQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectBySlugQuery, IFetchProjectBySlugQueryVariables>): Apollo.QueryResult<IFetchProjectBySlugQuery, Exact<{
1049
+ slug: string;
1050
+ }>>;
1051
+ export declare function useFetchProjectBySlugLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectBySlugQuery, IFetchProjectBySlugQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectBySlugQuery, Exact<{
1052
+ slug: string;
1053
+ }>>;
1054
+ export type FetchProjectBySlugQueryHookResult = ReturnType<typeof useFetchProjectBySlugQuery>;
1055
+ export type FetchProjectBySlugLazyQueryHookResult = ReturnType<typeof useFetchProjectBySlugLazyQuery>;
1056
+ export type FetchProjectBySlugQueryResult = Apollo.QueryResult<IFetchProjectBySlugQuery, IFetchProjectBySlugQueryVariables>;
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchBrandBySlugLazyQuery = exports.useFetchBrandBySlugQuery = exports.FetchBrandBySlugDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useFetchAirdropRegistrationsCsvLazyQuery = exports.useFetchAirdropRegistrationsCsvQuery = exports.FetchAirdropRegistrationsCsvDocument = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = exports.IOpportunityType = void 0;
26
+ exports.useFetchProjectBySlugLazyQuery = exports.useFetchProjectBySlugQuery = exports.FetchProjectBySlugDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchBrandBySlugLazyQuery = exports.useFetchBrandBySlugQuery = exports.FetchBrandBySlugDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useFetchAirdropRegistrationsCsvLazyQuery = exports.useFetchAirdropRegistrationsCsvQuery = exports.FetchAirdropRegistrationsCsvDocument = exports.useRegisterNewProjectMutation = exports.RegisterNewProjectDocument = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = exports.IOpportunityType = void 0;
27
27
  const client_1 = require("@apollo/client");
28
28
  const Apollo = __importStar(require("@apollo/client"));
29
29
  var IOpportunityType;
@@ -194,6 +194,32 @@ function useRegisterForAirdropMutation(baseOptions) {
194
194
  return Apollo.useMutation(exports.RegisterForAirdropDocument, baseOptions);
195
195
  }
196
196
  exports.useRegisterForAirdropMutation = useRegisterForAirdropMutation;
197
+ exports.RegisterNewProjectDocument = (0, client_1.gql) `
198
+ mutation RegisterNewProject($input: ProjectRegistrationInput!) {
199
+ registerNewProject(input: $input)
200
+ }
201
+ `;
202
+ /**
203
+ * __useRegisterNewProjectMutation__
204
+ *
205
+ * To run a mutation, you first call `useRegisterNewProjectMutation` within a React component and pass it any options that fit your needs.
206
+ * When your component renders, `useRegisterNewProjectMutation` returns a tuple that includes:
207
+ * - A mutate function that you can call at any time to execute the mutation
208
+ * - An object with fields that represent the current status of the mutation's execution
209
+ *
210
+ * @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;
211
+ *
212
+ * @example
213
+ * const [registerNewProjectMutation, { data, loading, error }] = useRegisterNewProjectMutation({
214
+ * variables: {
215
+ * input: // value for 'input'
216
+ * },
217
+ * });
218
+ */
219
+ function useRegisterNewProjectMutation(baseOptions) {
220
+ return Apollo.useMutation(exports.RegisterNewProjectDocument, baseOptions);
221
+ }
222
+ exports.useRegisterNewProjectMutation = useRegisterNewProjectMutation;
197
223
  exports.FetchAirdropRegistrationsCsvDocument = (0, client_1.gql) `
198
224
  query FetchAirdropRegistrationsCsv($opportunityId: ID!) {
199
225
  fetchAirdropRegistrationsCsv(opportunityId: $opportunityId)
@@ -708,3 +734,63 @@ function useFetchProfileOpportunitiesLazyQuery(baseOptions) {
708
734
  return Apollo.useLazyQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
709
735
  }
710
736
  exports.useFetchProfileOpportunitiesLazyQuery = useFetchProfileOpportunitiesLazyQuery;
737
+ exports.FetchProjectBySlugDocument = (0, client_1.gql) `
738
+ query FetchProjectBySlug($slug: String!) {
739
+ fetchProjectBySlug(slug: $slug) {
740
+ blockchain
741
+ contract
742
+ name
743
+ slug
744
+ symbol
745
+ website
746
+ twitter
747
+ type
748
+ ludoRank
749
+ investors
750
+ holders
751
+ volume
752
+ marketCap
753
+ liquidity
754
+ price
755
+ twitterFollowers
756
+ twitterSentiment
757
+ verified
758
+ snapshots {
759
+ date
760
+ contract
761
+ blockchain
762
+ volume
763
+ marketCap
764
+ price
765
+ liquidity
766
+ xFollowers
767
+ holders
768
+ ludoRank
769
+ }
770
+ }
771
+ }
772
+ `;
773
+ /**
774
+ * __useFetchProjectBySlugQuery__
775
+ *
776
+ * To run a query within a React component, call `useFetchProjectBySlugQuery` and pass it any options that fit your needs.
777
+ * When your component renders, `useFetchProjectBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
778
+ * you can use to render your UI.
779
+ *
780
+ * @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;
781
+ *
782
+ * @example
783
+ * const { data, loading, error } = useFetchProjectBySlugQuery({
784
+ * variables: {
785
+ * slug: // value for 'slug'
786
+ * },
787
+ * });
788
+ */
789
+ function useFetchProjectBySlugQuery(baseOptions) {
790
+ return Apollo.useQuery(exports.FetchProjectBySlugDocument, baseOptions);
791
+ }
792
+ exports.useFetchProjectBySlugQuery = useFetchProjectBySlugQuery;
793
+ function useFetchProjectBySlugLazyQuery(baseOptions) {
794
+ return Apollo.useLazyQuery(exports.FetchProjectBySlugDocument, baseOptions);
795
+ }
796
+ exports.useFetchProjectBySlugLazyQuery = useFetchProjectBySlugLazyQuery;
package/build/index.d.ts CHANGED
@@ -721,6 +721,11 @@ declare const schema: {
721
721
  blockchain: string;
722
722
  address: string;
723
723
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
724
+ useRegisterNewProjectMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.IRegisterNewProjectMutation, opportunitiesSchema.Exact<{
725
+ input: opportunitiesSchema.IProjectRegistrationInput;
726
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IRegisterNewProjectMutation, opportunitiesSchema.Exact<{
727
+ input: opportunitiesSchema.IProjectRegistrationInput;
728
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
724
729
  useFetchAirdropRegistrationsCsvQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchAirdropRegistrationsCsvQuery, opportunitiesSchema.Exact<{
725
730
  opportunityId: string;
726
731
  }>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchAirdropRegistrationsCsvQuery, opportunitiesSchema.Exact<{
@@ -771,6 +776,16 @@ declare const schema: {
771
776
  }>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
772
777
  opportunityId: string;
773
778
  }>>;
779
+ useFetchProjectBySlugQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
780
+ slug: string;
781
+ }>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
782
+ slug: string;
783
+ }>>;
784
+ useFetchProjectBySlugLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
785
+ slug: string;
786
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
787
+ slug: string;
788
+ }>>;
774
789
  IOpportunityType: typeof opportunitiesSchema.IOpportunityType;
775
790
  DislikeOpportunityDocument: import("graphql").DocumentNode;
776
791
  LikeOpportunityDocument: import("graphql").DocumentNode;
@@ -778,11 +793,13 @@ declare const schema: {
778
793
  CreateOpportunityDocument: import("graphql").DocumentNode;
779
794
  OpenOpportunityDocument: import("graphql").DocumentNode;
780
795
  RegisterForAirdropDocument: import("graphql").DocumentNode;
796
+ RegisterNewProjectDocument: import("graphql").DocumentNode;
781
797
  FetchAirdropRegistrationsCsvDocument: import("graphql").DocumentNode;
782
798
  FetchOpportunitiesByIdsDocument: import("graphql").DocumentNode;
783
799
  FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
784
800
  FetchBrandBySlugDocument: import("graphql").DocumentNode;
785
801
  FetchOpportunityDocument: import("graphql").DocumentNode;
802
+ FetchProjectBySlugDocument: import("graphql").DocumentNode;
786
803
  useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
787
804
  galleryId: string;
788
805
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "3.0.64",
3
+ "version": "3.0.65",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",