@ludo.ninja/api 3.0.17 → 3.0.19

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.
@@ -205,6 +205,10 @@ export type IOpportunityV2 = {
205
205
  brand: IBrand;
206
206
  subscribed?: Maybe<Scalars['Boolean']>;
207
207
  };
208
+ export type IProfileOpportunities = {
209
+ newOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
210
+ recentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
211
+ };
208
212
  export type IQuery = {
209
213
  getDummy: Scalars['String'];
210
214
  fetchBrands?: Maybe<Array<Maybe<IBrand>>>;
@@ -214,9 +218,11 @@ export type IQuery = {
214
218
  fetchOpportunities: IOpportunitiesPage;
215
219
  fetchOpportunitiesV2?: Maybe<Array<Maybe<IOpportunityV2>>>;
216
220
  fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
221
+ fetchProfileOpportunities: IProfileOpportunities;
217
222
  fetchOpportunity: IOpportunityV2;
218
223
  fetchOpportunitiesByIds: Array<IOpportunityV2>;
219
224
  fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
225
+ fetchAirdropRegistrationsCsv: Scalars['String'];
220
226
  };
221
227
  export type IQueryFetchBrandArgs = {
222
228
  brandId: Scalars['ID'];
@@ -237,6 +243,9 @@ export type IQueryFetchOpportunitiesForWalletArgs = {
237
243
  blockchain: Scalars['String'];
238
244
  wallet: Scalars['String'];
239
245
  };
246
+ export type IQueryFetchAirdropRegistrationsCsvArgs = {
247
+ opportunityId: Scalars['ID'];
248
+ };
240
249
  export type ResolverTypeWrapper<T> = Promise<T> | T;
241
250
  export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
242
251
  resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
@@ -280,6 +289,7 @@ export type IResolversTypes = {
280
289
  OpportunityInput: IOpportunityInput;
281
290
  Float: ResolverTypeWrapper<Scalars['Float']>;
282
291
  OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
292
+ ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
283
293
  Query: ResolverTypeWrapper<{}>;
284
294
  };
285
295
  /** Mapping between all available schema types and the resolvers parents */
@@ -299,6 +309,7 @@ export type IResolversParentTypes = {
299
309
  OpportunityInput: IOpportunityInput;
300
310
  Float: Scalars['Float'];
301
311
  OpportunityV2: IOpportunityV2;
312
+ ProfileOpportunities: IProfileOpportunities;
302
313
  Query: {};
303
314
  };
304
315
  export type IOneOfDirectiveArgs = {};
@@ -419,6 +430,11 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
419
430
  subscribed?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
420
431
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
421
432
  };
433
+ export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfileOpportunities'] = IResolversParentTypes['ProfileOpportunities']> = {
434
+ newOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
435
+ recentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
436
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
437
+ };
422
438
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
423
439
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
424
440
  fetchBrands?: Resolver<Maybe<Array<Maybe<IResolversTypes['Brand']>>>, ParentType, ContextType>;
@@ -428,9 +444,11 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
428
444
  fetchOpportunities?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, Partial<IQueryFetchOpportunitiesArgs>>;
429
445
  fetchOpportunitiesV2?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
430
446
  fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
447
+ fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
431
448
  fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
432
449
  fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
433
450
  fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
451
+ fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
434
452
  };
435
453
  export type IResolvers<ContextType = any> = {
436
454
  Brand?: IBrandResolvers<ContextType>;
@@ -440,6 +458,7 @@ export type IResolvers<ContextType = any> = {
440
458
  OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
441
459
  Opportunity?: IOpportunityResolvers<ContextType>;
442
460
  OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
461
+ ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
443
462
  Query?: IQueryResolvers<ContextType>;
444
463
  };
445
464
  export type IDirectiveResolvers<ContextType = any> = {
@@ -467,6 +486,10 @@ export type IRegisterForAirdropMutationVariables = Exact<{
467
486
  address: Scalars['String'];
468
487
  }>;
469
488
  export type IRegisterForAirdropMutation = Pick<IMutation, 'registerForAirdrop'>;
489
+ export type IFetchAirdropRegistrationsCsvQueryVariables = Exact<{
490
+ opportunityId: Scalars['ID'];
491
+ }>;
492
+ export type IFetchAirdropRegistrationsCsvQuery = Pick<IQuery, 'fetchAirdropRegistrationsCsv'>;
470
493
  export type IFetchOpportunitiesByIdsQueryVariables = Exact<{
471
494
  opportunityIds: Array<Scalars['ID']>;
472
495
  }>;
@@ -496,6 +519,15 @@ export type IFetchOpportunityQuery = {
496
519
  brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>;
497
520
  });
498
521
  };
522
+ export type IFetchProfileOpportunitiesQueryVariables = Exact<{
523
+ [key: string]: never;
524
+ }>;
525
+ export type IFetchProfileOpportunitiesQuery = {
526
+ fetchProfileOpportunities: {
527
+ newOpportunities?: 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'>>>>;
528
+ 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'>>>>;
529
+ };
530
+ };
499
531
  export declare const DislikeOpportunityDocument: Apollo.DocumentNode;
500
532
  export type IDislikeOpportunityMutationFn = Apollo.MutationFunction<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>;
501
533
  /**
@@ -625,6 +657,32 @@ export declare function useRegisterForAirdropMutation(baseOptions?: Apollo.Mutat
625
657
  export type RegisterForAirdropMutationHookResult = ReturnType<typeof useRegisterForAirdropMutation>;
626
658
  export type RegisterForAirdropMutationResult = Apollo.MutationResult<IRegisterForAirdropMutation>;
627
659
  export type RegisterForAirdropMutationOptions = Apollo.BaseMutationOptions<IRegisterForAirdropMutation, IRegisterForAirdropMutationVariables>;
660
+ export declare const FetchAirdropRegistrationsCsvDocument: Apollo.DocumentNode;
661
+ /**
662
+ * __useFetchAirdropRegistrationsCsvQuery__
663
+ *
664
+ * To run a query within a React component, call `useFetchAirdropRegistrationsCsvQuery` and pass it any options that fit your needs.
665
+ * When your component renders, `useFetchAirdropRegistrationsCsvQuery` returns an object from Apollo Client that contains loading, error, and data properties
666
+ * you can use to render your UI.
667
+ *
668
+ * @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;
669
+ *
670
+ * @example
671
+ * const { data, loading, error } = useFetchAirdropRegistrationsCsvQuery({
672
+ * variables: {
673
+ * opportunityId: // value for 'opportunityId'
674
+ * },
675
+ * });
676
+ */
677
+ export declare function useFetchAirdropRegistrationsCsvQuery(baseOptions: Apollo.QueryHookOptions<IFetchAirdropRegistrationsCsvQuery, IFetchAirdropRegistrationsCsvQueryVariables>): Apollo.QueryResult<IFetchAirdropRegistrationsCsvQuery, Exact<{
678
+ opportunityId: string;
679
+ }>>;
680
+ export declare function useFetchAirdropRegistrationsCsvLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAirdropRegistrationsCsvQuery, IFetchAirdropRegistrationsCsvQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAirdropRegistrationsCsvQuery, Exact<{
681
+ opportunityId: string;
682
+ }>>;
683
+ export type FetchAirdropRegistrationsCsvQueryHookResult = ReturnType<typeof useFetchAirdropRegistrationsCsvQuery>;
684
+ export type FetchAirdropRegistrationsCsvLazyQueryHookResult = ReturnType<typeof useFetchAirdropRegistrationsCsvLazyQuery>;
685
+ export type FetchAirdropRegistrationsCsvQueryResult = Apollo.QueryResult<IFetchAirdropRegistrationsCsvQuery, IFetchAirdropRegistrationsCsvQueryVariables>;
628
686
  export declare const FetchOpportunitiesByIdsDocument: Apollo.DocumentNode;
629
687
  /**
630
688
  * __useFetchOpportunitiesByIdsQuery__
@@ -728,3 +786,28 @@ export declare function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQu
728
786
  export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
729
787
  export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
730
788
  export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
789
+ export declare const FetchProfileOpportunitiesDocument: Apollo.DocumentNode;
790
+ /**
791
+ * __useFetchProfileOpportunitiesQuery__
792
+ *
793
+ * To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
794
+ * When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
795
+ * you can use to render your UI.
796
+ *
797
+ * @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;
798
+ *
799
+ * @example
800
+ * const { data, loading, error } = useFetchProfileOpportunitiesQuery({
801
+ * variables: {
802
+ * },
803
+ * });
804
+ */
805
+ export declare function useFetchProfileOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>): Apollo.QueryResult<IFetchProfileOpportunitiesQuery, Exact<{
806
+ [key: string]: never;
807
+ }>>;
808
+ export declare function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProfileOpportunitiesQuery, Exact<{
809
+ [key: string]: never;
810
+ }>>;
811
+ export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
812
+ export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
813
+ export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
@@ -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.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
26
+ exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = 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.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
27
27
  const client_1 = require("@apollo/client");
28
28
  const Apollo = __importStar(require("@apollo/client"));
29
29
  exports.DislikeOpportunityDocument = (0, client_1.gql) `
@@ -162,6 +162,35 @@ function useRegisterForAirdropMutation(baseOptions) {
162
162
  return Apollo.useMutation(exports.RegisterForAirdropDocument, baseOptions);
163
163
  }
164
164
  exports.useRegisterForAirdropMutation = useRegisterForAirdropMutation;
165
+ exports.FetchAirdropRegistrationsCsvDocument = (0, client_1.gql) `
166
+ query FetchAirdropRegistrationsCsv($opportunityId: ID!) {
167
+ fetchAirdropRegistrationsCsv(opportunityId: $opportunityId)
168
+ }
169
+ `;
170
+ /**
171
+ * __useFetchAirdropRegistrationsCsvQuery__
172
+ *
173
+ * To run a query within a React component, call `useFetchAirdropRegistrationsCsvQuery` and pass it any options that fit your needs.
174
+ * When your component renders, `useFetchAirdropRegistrationsCsvQuery` returns an object from Apollo Client that contains loading, error, and data properties
175
+ * you can use to render your UI.
176
+ *
177
+ * @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;
178
+ *
179
+ * @example
180
+ * const { data, loading, error } = useFetchAirdropRegistrationsCsvQuery({
181
+ * variables: {
182
+ * opportunityId: // value for 'opportunityId'
183
+ * },
184
+ * });
185
+ */
186
+ function useFetchAirdropRegistrationsCsvQuery(baseOptions) {
187
+ return Apollo.useQuery(exports.FetchAirdropRegistrationsCsvDocument, baseOptions);
188
+ }
189
+ exports.useFetchAirdropRegistrationsCsvQuery = useFetchAirdropRegistrationsCsvQuery;
190
+ function useFetchAirdropRegistrationsCsvLazyQuery(baseOptions) {
191
+ return Apollo.useLazyQuery(exports.FetchAirdropRegistrationsCsvDocument, baseOptions);
192
+ }
193
+ exports.useFetchAirdropRegistrationsCsvLazyQuery = useFetchAirdropRegistrationsCsvLazyQuery;
165
194
  exports.FetchOpportunitiesByIdsDocument = (0, client_1.gql) `
166
195
  query FetchOpportunitiesByIds($opportunityIds: [ID!]!) {
167
196
  fetchOpportunitiesByIds(opportunityIds: $opportunityIds) {
@@ -438,3 +467,102 @@ function useFetchOpportunityLazyQuery(baseOptions) {
438
467
  return Apollo.useLazyQuery(exports.FetchOpportunityDocument, baseOptions);
439
468
  }
440
469
  exports.useFetchOpportunityLazyQuery = useFetchOpportunityLazyQuery;
470
+ exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
471
+ query FetchProfileOpportunities {
472
+ fetchProfileOpportunities {
473
+ newOpportunities {
474
+ opportunityId
475
+ brandId
476
+ categoryId
477
+ opportunityStatus
478
+ opportunityType
479
+ notificationType
480
+ name
481
+ description
482
+ brandName
483
+ brandDescription
484
+ brandMedia
485
+ brandUrl
486
+ brandIndustry
487
+ categoryName
488
+ ludoUrl
489
+ projectUrl
490
+ activeFrom
491
+ activeUntil
492
+ minXpLevel
493
+ maxXpLevel
494
+ minRank
495
+ maxRank
496
+ media
497
+ reportLink
498
+ clicks
499
+ views
500
+ blockchain
501
+ collection
502
+ createdAt
503
+ minWalletValue
504
+ maxWalletValue
505
+ shareLink
506
+ liked
507
+ }
508
+ recentOpportunities {
509
+ opportunityId
510
+ brandId
511
+ categoryId
512
+ opportunityStatus
513
+ opportunityType
514
+ notificationType
515
+ name
516
+ description
517
+ brandName
518
+ brandDescription
519
+ brandMedia
520
+ brandUrl
521
+ brandIndustry
522
+ categoryName
523
+ ludoUrl
524
+ projectUrl
525
+ activeFrom
526
+ activeUntil
527
+ minXpLevel
528
+ maxXpLevel
529
+ minRank
530
+ maxRank
531
+ media
532
+ reportLink
533
+ clicks
534
+ views
535
+ blockchain
536
+ collection
537
+ createdAt
538
+ minWalletValue
539
+ maxWalletValue
540
+ shareLink
541
+ liked
542
+ }
543
+ }
544
+ }
545
+ `;
546
+ /**
547
+ * __useFetchProfileOpportunitiesQuery__
548
+ *
549
+ * To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
550
+ * When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
551
+ * you can use to render your UI.
552
+ *
553
+ * @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;
554
+ *
555
+ * @example
556
+ * const { data, loading, error } = useFetchProfileOpportunitiesQuery({
557
+ * variables: {
558
+ * },
559
+ * });
560
+ */
561
+ function useFetchProfileOpportunitiesQuery(baseOptions) {
562
+ return Apollo.useQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
563
+ }
564
+ exports.useFetchProfileOpportunitiesQuery = useFetchProfileOpportunitiesQuery;
565
+ function useFetchProfileOpportunitiesLazyQuery(baseOptions) {
566
+ return Apollo.useLazyQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
567
+ }
568
+ exports.useFetchProfileOpportunitiesLazyQuery = useFetchProfileOpportunitiesLazyQuery;
package/build/index.d.ts CHANGED
@@ -574,6 +574,16 @@ declare const schema: {
574
574
  blockchain: string;
575
575
  address: string;
576
576
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
577
+ useFetchAirdropRegistrationsCsvQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchAirdropRegistrationsCsvQuery, opportunitiesSchema.Exact<{
578
+ opportunityId: string;
579
+ }>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchAirdropRegistrationsCsvQuery, opportunitiesSchema.Exact<{
580
+ opportunityId: string;
581
+ }>>;
582
+ useFetchAirdropRegistrationsCsvLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchAirdropRegistrationsCsvQuery, opportunitiesSchema.Exact<{
583
+ opportunityId: string;
584
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchAirdropRegistrationsCsvQuery, opportunitiesSchema.Exact<{
585
+ opportunityId: string;
586
+ }>>;
577
587
  useFetchOpportunitiesByIdsQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchOpportunitiesByIdsQuery, opportunitiesSchema.Exact<{
578
588
  opportunityIds: string[];
579
589
  }>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchOpportunitiesByIdsQuery, opportunitiesSchema.Exact<{
@@ -614,15 +624,27 @@ declare const schema: {
614
624
  }>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
615
625
  opportunityId: string;
616
626
  }>>;
627
+ useFetchProfileOpportunitiesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
628
+ [key: string]: never;
629
+ }>> | undefined): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
630
+ [key: string]: never;
631
+ }>>;
632
+ useFetchProfileOpportunitiesLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
633
+ [key: string]: never;
634
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
635
+ [key: string]: never;
636
+ }>>;
617
637
  DislikeOpportunityDocument: import("graphql").DocumentNode;
618
638
  LikeOpportunityDocument: import("graphql").DocumentNode;
619
639
  CreateOpportunityDocument: import("graphql").DocumentNode;
620
640
  OpenOpportunityDocument: import("graphql").DocumentNode;
621
641
  RegisterForAirdropDocument: import("graphql").DocumentNode;
642
+ FetchAirdropRegistrationsCsvDocument: import("graphql").DocumentNode;
622
643
  FetchOpportunitiesByIdsDocument: import("graphql").DocumentNode;
623
644
  FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
624
645
  FetchOpportunitiesDocument: import("graphql").DocumentNode;
625
646
  FetchOpportunityDocument: import("graphql").DocumentNode;
647
+ FetchProfileOpportunitiesDocument: import("graphql").DocumentNode;
626
648
  useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
627
649
  galleryId: string;
628
650
  }>, 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.17",
3
+ "version": "3.0.19",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -231,6 +231,11 @@ export type IOpportunityV2 = {
231
231
  subscribed?: Maybe<Scalars['Boolean']>;
232
232
  };
233
233
 
234
+ export type IProfileOpportunities = {
235
+ newOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
236
+ recentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
237
+ };
238
+
234
239
  export type IQuery = {
235
240
  getDummy: Scalars['String'];
236
241
  fetchBrands?: Maybe<Array<Maybe<IBrand>>>;
@@ -240,9 +245,11 @@ export type IQuery = {
240
245
  fetchOpportunities: IOpportunitiesPage;
241
246
  fetchOpportunitiesV2?: Maybe<Array<Maybe<IOpportunityV2>>>;
242
247
  fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
248
+ fetchProfileOpportunities: IProfileOpportunities;
243
249
  fetchOpportunity: IOpportunityV2;
244
250
  fetchOpportunitiesByIds: Array<IOpportunityV2>;
245
251
  fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
252
+ fetchAirdropRegistrationsCsv: Scalars['String'];
246
253
  };
247
254
 
248
255
 
@@ -277,6 +284,11 @@ export type IQueryFetchOpportunitiesForWalletArgs = {
277
284
  };
278
285
 
279
286
 
287
+ export type IQueryFetchAirdropRegistrationsCsvArgs = {
288
+ opportunityId: Scalars['ID'];
289
+ };
290
+
291
+
280
292
 
281
293
  export type ResolverTypeWrapper<T> = Promise<T> | T;
282
294
 
@@ -360,6 +372,7 @@ export type IResolversTypes = {
360
372
  OpportunityInput: IOpportunityInput;
361
373
  Float: ResolverTypeWrapper<Scalars['Float']>;
362
374
  OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
375
+ ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
363
376
  Query: ResolverTypeWrapper<{}>;
364
377
  };
365
378
 
@@ -380,6 +393,7 @@ export type IResolversParentTypes = {
380
393
  OpportunityInput: IOpportunityInput;
381
394
  Float: Scalars['Float'];
382
395
  OpportunityV2: IOpportunityV2;
396
+ ProfileOpportunities: IProfileOpportunities;
383
397
  Query: {};
384
398
  };
385
399
 
@@ -510,6 +524,12 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
510
524
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
511
525
  };
512
526
 
527
+ export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfileOpportunities'] = IResolversParentTypes['ProfileOpportunities']> = {
528
+ newOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
529
+ recentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
530
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
531
+ };
532
+
513
533
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
514
534
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
515
535
  fetchBrands?: Resolver<Maybe<Array<Maybe<IResolversTypes['Brand']>>>, ParentType, ContextType>;
@@ -519,9 +539,11 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
519
539
  fetchOpportunities?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, Partial<IQueryFetchOpportunitiesArgs>>;
520
540
  fetchOpportunitiesV2?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
521
541
  fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
542
+ fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
522
543
  fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
523
544
  fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
524
545
  fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
546
+ fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
525
547
  };
526
548
 
527
549
  export type IResolvers<ContextType = any> = {
@@ -532,6 +554,7 @@ export type IResolvers<ContextType = any> = {
532
554
  OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
533
555
  Opportunity?: IOpportunityResolvers<ContextType>;
534
556
  OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
557
+ ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
535
558
  Query?: IQueryResolvers<ContextType>;
536
559
  };
537
560
 
@@ -576,6 +599,13 @@ export type IRegisterForAirdropMutationVariables = Exact<{
576
599
 
577
600
  export type IRegisterForAirdropMutation = Pick<IMutation, 'registerForAirdrop'>;
578
601
 
602
+ export type IFetchAirdropRegistrationsCsvQueryVariables = Exact<{
603
+ opportunityId: Scalars['ID'];
604
+ }>;
605
+
606
+
607
+ export type IFetchAirdropRegistrationsCsvQuery = Pick<IQuery, 'fetchAirdropRegistrationsCsv'>;
608
+
579
609
  export type IFetchOpportunitiesByIdsQueryVariables = Exact<{
580
610
  opportunityIds: Array<Scalars['ID']>;
581
611
  }>;
@@ -605,6 +635,11 @@ export type IFetchOpportunityQuery = { fetchOpportunity: (
605
635
  & { brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> }
606
636
  ) };
607
637
 
638
+ export type IFetchProfileOpportunitiesQueryVariables = Exact<{ [key: string]: never; }>;
639
+
640
+
641
+ export type IFetchProfileOpportunitiesQuery = { fetchProfileOpportunities: { newOpportunities?: 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'>>>>, 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'>>>> } };
642
+
608
643
 
609
644
  export const DislikeOpportunityDocument = gql`
610
645
  mutation DislikeOpportunity($opportunityId: String!) {
@@ -762,6 +797,37 @@ export function useRegisterForAirdropMutation(baseOptions?: Apollo.MutationHookO
762
797
  export type RegisterForAirdropMutationHookResult = ReturnType<typeof useRegisterForAirdropMutation>;
763
798
  export type RegisterForAirdropMutationResult = Apollo.MutationResult<IRegisterForAirdropMutation>;
764
799
  export type RegisterForAirdropMutationOptions = Apollo.BaseMutationOptions<IRegisterForAirdropMutation, IRegisterForAirdropMutationVariables>;
800
+ export const FetchAirdropRegistrationsCsvDocument = gql`
801
+ query FetchAirdropRegistrationsCsv($opportunityId: ID!) {
802
+ fetchAirdropRegistrationsCsv(opportunityId: $opportunityId)
803
+ }
804
+ `;
805
+
806
+ /**
807
+ * __useFetchAirdropRegistrationsCsvQuery__
808
+ *
809
+ * To run a query within a React component, call `useFetchAirdropRegistrationsCsvQuery` and pass it any options that fit your needs.
810
+ * When your component renders, `useFetchAirdropRegistrationsCsvQuery` returns an object from Apollo Client that contains loading, error, and data properties
811
+ * you can use to render your UI.
812
+ *
813
+ * @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;
814
+ *
815
+ * @example
816
+ * const { data, loading, error } = useFetchAirdropRegistrationsCsvQuery({
817
+ * variables: {
818
+ * opportunityId: // value for 'opportunityId'
819
+ * },
820
+ * });
821
+ */
822
+ export function useFetchAirdropRegistrationsCsvQuery(baseOptions: Apollo.QueryHookOptions<IFetchAirdropRegistrationsCsvQuery, IFetchAirdropRegistrationsCsvQueryVariables>) {
823
+ return Apollo.useQuery<IFetchAirdropRegistrationsCsvQuery, IFetchAirdropRegistrationsCsvQueryVariables>(FetchAirdropRegistrationsCsvDocument, baseOptions);
824
+ }
825
+ export function useFetchAirdropRegistrationsCsvLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAirdropRegistrationsCsvQuery, IFetchAirdropRegistrationsCsvQueryVariables>) {
826
+ return Apollo.useLazyQuery<IFetchAirdropRegistrationsCsvQuery, IFetchAirdropRegistrationsCsvQueryVariables>(FetchAirdropRegistrationsCsvDocument, baseOptions);
827
+ }
828
+ export type FetchAirdropRegistrationsCsvQueryHookResult = ReturnType<typeof useFetchAirdropRegistrationsCsvQuery>;
829
+ export type FetchAirdropRegistrationsCsvLazyQueryHookResult = ReturnType<typeof useFetchAirdropRegistrationsCsvLazyQuery>;
830
+ export type FetchAirdropRegistrationsCsvQueryResult = Apollo.QueryResult<IFetchAirdropRegistrationsCsvQuery, IFetchAirdropRegistrationsCsvQueryVariables>;
765
831
  export const FetchOpportunitiesByIdsDocument = gql`
766
832
  query FetchOpportunitiesByIds($opportunityIds: [ID!]!) {
767
833
  fetchOpportunitiesByIds(opportunityIds: $opportunityIds) {
@@ -1045,4 +1111,105 @@ export function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQueryHookO
1045
1111
  }
1046
1112
  export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
1047
1113
  export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
1048
- export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
1114
+ export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
1115
+ export const FetchProfileOpportunitiesDocument = gql`
1116
+ query FetchProfileOpportunities {
1117
+ fetchProfileOpportunities {
1118
+ newOpportunities {
1119
+ opportunityId
1120
+ brandId
1121
+ categoryId
1122
+ opportunityStatus
1123
+ opportunityType
1124
+ notificationType
1125
+ name
1126
+ description
1127
+ brandName
1128
+ brandDescription
1129
+ brandMedia
1130
+ brandUrl
1131
+ brandIndustry
1132
+ categoryName
1133
+ ludoUrl
1134
+ projectUrl
1135
+ activeFrom
1136
+ activeUntil
1137
+ minXpLevel
1138
+ maxXpLevel
1139
+ minRank
1140
+ maxRank
1141
+ media
1142
+ reportLink
1143
+ clicks
1144
+ views
1145
+ blockchain
1146
+ collection
1147
+ createdAt
1148
+ minWalletValue
1149
+ maxWalletValue
1150
+ shareLink
1151
+ liked
1152
+ }
1153
+ recentOpportunities {
1154
+ opportunityId
1155
+ brandId
1156
+ categoryId
1157
+ opportunityStatus
1158
+ opportunityType
1159
+ notificationType
1160
+ name
1161
+ description
1162
+ brandName
1163
+ brandDescription
1164
+ brandMedia
1165
+ brandUrl
1166
+ brandIndustry
1167
+ categoryName
1168
+ ludoUrl
1169
+ projectUrl
1170
+ activeFrom
1171
+ activeUntil
1172
+ minXpLevel
1173
+ maxXpLevel
1174
+ minRank
1175
+ maxRank
1176
+ media
1177
+ reportLink
1178
+ clicks
1179
+ views
1180
+ blockchain
1181
+ collection
1182
+ createdAt
1183
+ minWalletValue
1184
+ maxWalletValue
1185
+ shareLink
1186
+ liked
1187
+ }
1188
+ }
1189
+ }
1190
+ `;
1191
+
1192
+ /**
1193
+ * __useFetchProfileOpportunitiesQuery__
1194
+ *
1195
+ * To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
1196
+ * When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
1197
+ * you can use to render your UI.
1198
+ *
1199
+ * @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;
1200
+ *
1201
+ * @example
1202
+ * const { data, loading, error } = useFetchProfileOpportunitiesQuery({
1203
+ * variables: {
1204
+ * },
1205
+ * });
1206
+ */
1207
+ export function useFetchProfileOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>) {
1208
+ return Apollo.useQuery<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>(FetchProfileOpportunitiesDocument, baseOptions);
1209
+ }
1210
+ export function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>) {
1211
+ return Apollo.useLazyQuery<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>(FetchProfileOpportunitiesDocument, baseOptions);
1212
+ }
1213
+ export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
1214
+ export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
1215
+ export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;