@ludo.ninja/api 3.0.40 → 3.0.42

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.
@@ -175,12 +175,18 @@ export enum IPlayingStreakType {
175
175
  A_90Days = 'A_90_DAYS'
176
176
  }
177
177
 
178
+ export type IProfileOpportunities = {
179
+ newOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
180
+ recentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
181
+ };
182
+
178
183
  export type IQuery = {
179
184
  getDummy: Scalars['String'];
180
185
  fetchPlayerState: IPlayerState;
181
186
  fetchFrensData: IFrensData;
182
187
  fetchEnergy: IEnergy;
183
188
  fetchOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
189
+ fetchProfileOpportunities: IProfileOpportunities;
184
190
  };
185
191
 
186
192
  export type ISubscription = {
@@ -282,6 +288,7 @@ export type IResolversTypes = {
282
288
  PlayingStreak: ResolverTypeWrapper<IPlayingStreak>;
283
289
  PlayingStreakStatus: IPlayingStreakStatus;
284
290
  PlayingStreakType: IPlayingStreakType;
291
+ ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
285
292
  Query: ResolverTypeWrapper<{}>;
286
293
  Subscription: ResolverTypeWrapper<{}>;
287
294
  };
@@ -304,6 +311,7 @@ export type IResolversParentTypes = {
304
311
  OpportunityV2: IOpportunityV2;
305
312
  PlayerState: IPlayerState;
306
313
  PlayingStreak: IPlayingStreak;
314
+ ProfileOpportunities: IProfileOpportunities;
307
315
  Query: {};
308
316
  Subscription: {};
309
317
  };
@@ -421,12 +429,19 @@ export type IPlayingStreakResolvers<ContextType = any, ParentType extends IResol
421
429
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
422
430
  };
423
431
 
432
+ export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfileOpportunities'] = IResolversParentTypes['ProfileOpportunities']> = {
433
+ newOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
434
+ recentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
435
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
436
+ };
437
+
424
438
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
425
439
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
426
440
  fetchPlayerState?: Resolver<IResolversTypes['PlayerState'], ParentType, ContextType>;
427
441
  fetchFrensData?: Resolver<IResolversTypes['FrensData'], ParentType, ContextType>;
428
442
  fetchEnergy?: Resolver<IResolversTypes['Energy'], ParentType, ContextType>;
429
443
  fetchOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
444
+ fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
430
445
  };
431
446
 
432
447
  export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
@@ -446,6 +461,7 @@ export type IResolvers<ContextType = any> = {
446
461
  OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
447
462
  PlayerState?: IPlayerStateResolvers<ContextType>;
448
463
  PlayingStreak?: IPlayingStreakResolvers<ContextType>;
464
+ ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
449
465
  Query?: IQueryResolvers<ContextType>;
450
466
  Subscription?: ISubscriptionResolvers<ContextType>;
451
467
  };
@@ -487,6 +503,13 @@ export type IMarkNotificationAsShownMutationVariables = Exact<{
487
503
 
488
504
  export type IMarkNotificationAsShownMutation = Pick<IMutation, 'markNotificationAsShown'>;
489
505
 
506
+ export type IRegisterTapsMutationVariables = Exact<{
507
+ tapsNum?: Maybe<Scalars['Int']>;
508
+ }>;
509
+
510
+
511
+ export type IRegisterTapsMutation = { registerTaps: Pick<IEnergy, 'availableTapsNum' | 'fullEnergyTapsNum' | 'refillSpeedTapsPerMs'> };
512
+
490
513
  export type IStartFarmingMutationVariables = Exact<{ [key: string]: never; }>;
491
514
 
492
515
 
@@ -497,6 +520,11 @@ export type IFetchOpportunitiesQueryVariables = Exact<{ [key: string]: never; }>
497
520
 
498
521
  export type IFetchOpportunitiesQuery = { fetchOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>>> };
499
522
 
523
+ export type IFetchEnergyQueryVariables = Exact<{ [key: string]: never; }>;
524
+
525
+
526
+ export type IFetchEnergyQuery = { fetchEnergy: Pick<IEnergy, 'availableTapsNum' | 'fullEnergyTapsNum' | 'refillSpeedTapsPerMs'> };
527
+
500
528
  export type IFetchFrensDataQueryVariables = Exact<{ [key: string]: never; }>;
501
529
 
502
530
 
@@ -513,6 +541,11 @@ export type IFetchPlayerStateQuery = { fetchPlayerState: (
513
541
  & { farmingTask?: Maybe<Pick<IFarmingTask, 'taskId' | 'status' | 'startedAt' | 'claimDelayMs' | 'rewardCoins'>>, playingStreaks: Array<Pick<IPlayingStreak, 'streakId' | 'status' | 'type' | 'startedAt' | 'reward' | 'endedAt' | 'totalDays'>>, notifications: Array<Pick<INotification, 'notificationId' | 'status' | 'text' | 'createdAt'>> }
514
542
  ) };
515
543
 
544
+ export type IFetchProfileOpportunitiesQueryVariables = Exact<{ [key: string]: never; }>;
545
+
546
+
547
+ 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' | 'media' | 'reportLink' | 'shareLink'>>>>, recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>>> } };
548
+
516
549
  export type IOnPlayerStateUpdatedSubscriptionVariables = Exact<{
517
550
  authToken: Scalars['String'];
518
551
  }>;
@@ -673,6 +706,40 @@ export function useMarkNotificationAsShownMutation(baseOptions?: Apollo.Mutation
673
706
  export type MarkNotificationAsShownMutationHookResult = ReturnType<typeof useMarkNotificationAsShownMutation>;
674
707
  export type MarkNotificationAsShownMutationResult = Apollo.MutationResult<IMarkNotificationAsShownMutation>;
675
708
  export type MarkNotificationAsShownMutationOptions = Apollo.BaseMutationOptions<IMarkNotificationAsShownMutation, IMarkNotificationAsShownMutationVariables>;
709
+ export const RegisterTapsDocument = gql`
710
+ mutation RegisterTaps($tapsNum: Int) {
711
+ registerTaps(tapsNum: $tapsNum) {
712
+ availableTapsNum
713
+ fullEnergyTapsNum
714
+ refillSpeedTapsPerMs
715
+ }
716
+ }
717
+ `;
718
+ export type IRegisterTapsMutationFn = Apollo.MutationFunction<IRegisterTapsMutation, IRegisterTapsMutationVariables>;
719
+
720
+ /**
721
+ * __useRegisterTapsMutation__
722
+ *
723
+ * To run a mutation, you first call `useRegisterTapsMutation` within a React component and pass it any options that fit your needs.
724
+ * When your component renders, `useRegisterTapsMutation` returns a tuple that includes:
725
+ * - A mutate function that you can call at any time to execute the mutation
726
+ * - An object with fields that represent the current status of the mutation's execution
727
+ *
728
+ * @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;
729
+ *
730
+ * @example
731
+ * const [registerTapsMutation, { data, loading, error }] = useRegisterTapsMutation({
732
+ * variables: {
733
+ * tapsNum: // value for 'tapsNum'
734
+ * },
735
+ * });
736
+ */
737
+ export function useRegisterTapsMutation(baseOptions?: Apollo.MutationHookOptions<IRegisterTapsMutation, IRegisterTapsMutationVariables>) {
738
+ return Apollo.useMutation<IRegisterTapsMutation, IRegisterTapsMutationVariables>(RegisterTapsDocument, baseOptions);
739
+ }
740
+ export type RegisterTapsMutationHookResult = ReturnType<typeof useRegisterTapsMutation>;
741
+ export type RegisterTapsMutationResult = Apollo.MutationResult<IRegisterTapsMutation>;
742
+ export type RegisterTapsMutationOptions = Apollo.BaseMutationOptions<IRegisterTapsMutation, IRegisterTapsMutationVariables>;
676
743
  export const StartFarmingDocument = gql`
677
744
  mutation StartFarming {
678
745
  startFarming
@@ -754,6 +821,40 @@ export function useFetchOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHoo
754
821
  export type FetchOpportunitiesQueryHookResult = ReturnType<typeof useFetchOpportunitiesQuery>;
755
822
  export type FetchOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesLazyQuery>;
756
823
  export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
824
+ export const FetchEnergyDocument = gql`
825
+ query FetchEnergy {
826
+ fetchEnergy {
827
+ availableTapsNum
828
+ fullEnergyTapsNum
829
+ refillSpeedTapsPerMs
830
+ }
831
+ }
832
+ `;
833
+
834
+ /**
835
+ * __useFetchEnergyQuery__
836
+ *
837
+ * To run a query within a React component, call `useFetchEnergyQuery` and pass it any options that fit your needs.
838
+ * When your component renders, `useFetchEnergyQuery` returns an object from Apollo Client that contains loading, error, and data properties
839
+ * you can use to render your UI.
840
+ *
841
+ * @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;
842
+ *
843
+ * @example
844
+ * const { data, loading, error } = useFetchEnergyQuery({
845
+ * variables: {
846
+ * },
847
+ * });
848
+ */
849
+ export function useFetchEnergyQuery(baseOptions?: Apollo.QueryHookOptions<IFetchEnergyQuery, IFetchEnergyQueryVariables>) {
850
+ return Apollo.useQuery<IFetchEnergyQuery, IFetchEnergyQueryVariables>(FetchEnergyDocument, baseOptions);
851
+ }
852
+ export function useFetchEnergyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchEnergyQuery, IFetchEnergyQueryVariables>) {
853
+ return Apollo.useLazyQuery<IFetchEnergyQuery, IFetchEnergyQueryVariables>(FetchEnergyDocument, baseOptions);
854
+ }
855
+ export type FetchEnergyQueryHookResult = ReturnType<typeof useFetchEnergyQuery>;
856
+ export type FetchEnergyLazyQueryHookResult = ReturnType<typeof useFetchEnergyLazyQuery>;
857
+ export type FetchEnergyQueryResult = Apollo.QueryResult<IFetchEnergyQuery, IFetchEnergyQueryVariables>;
757
858
  export const FetchFrensDataDocument = gql`
758
859
  query FetchFrensData {
759
860
  fetchFrensData {
@@ -853,6 +954,83 @@ export function useFetchPlayerStateLazyQuery(baseOptions?: Apollo.LazyQueryHookO
853
954
  export type FetchPlayerStateQueryHookResult = ReturnType<typeof useFetchPlayerStateQuery>;
854
955
  export type FetchPlayerStateLazyQueryHookResult = ReturnType<typeof useFetchPlayerStateLazyQuery>;
855
956
  export type FetchPlayerStateQueryResult = Apollo.QueryResult<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>;
957
+ export const FetchProfileOpportunitiesDocument = gql`
958
+ query FetchProfileOpportunities {
959
+ fetchProfileOpportunities {
960
+ newOpportunities {
961
+ opportunityId
962
+ brandId
963
+ categoryId
964
+ opportunityStatus
965
+ opportunityType
966
+ notificationType
967
+ name
968
+ description
969
+ brandName
970
+ brandDescription
971
+ brandMedia
972
+ brandUrl
973
+ brandIndustry
974
+ categoryName
975
+ ludoUrl
976
+ projectUrl
977
+ activeFrom
978
+ activeUntil
979
+ media
980
+ reportLink
981
+ shareLink
982
+ }
983
+ recentOpportunities {
984
+ opportunityId
985
+ brandId
986
+ categoryId
987
+ opportunityStatus
988
+ opportunityType
989
+ notificationType
990
+ name
991
+ description
992
+ brandName
993
+ brandDescription
994
+ brandMedia
995
+ brandUrl
996
+ brandIndustry
997
+ categoryName
998
+ ludoUrl
999
+ projectUrl
1000
+ activeFrom
1001
+ activeUntil
1002
+ media
1003
+ reportLink
1004
+ shareLink
1005
+ }
1006
+ }
1007
+ }
1008
+ `;
1009
+
1010
+ /**
1011
+ * __useFetchProfileOpportunitiesQuery__
1012
+ *
1013
+ * To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
1014
+ * When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
1015
+ * you can use to render your UI.
1016
+ *
1017
+ * @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;
1018
+ *
1019
+ * @example
1020
+ * const { data, loading, error } = useFetchProfileOpportunitiesQuery({
1021
+ * variables: {
1022
+ * },
1023
+ * });
1024
+ */
1025
+ export function useFetchProfileOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>) {
1026
+ return Apollo.useQuery<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>(FetchProfileOpportunitiesDocument, baseOptions);
1027
+ }
1028
+ export function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>) {
1029
+ return Apollo.useLazyQuery<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>(FetchProfileOpportunitiesDocument, baseOptions);
1030
+ }
1031
+ export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
1032
+ export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
1033
+ export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
856
1034
  export const OnPlayerStateUpdatedDocument = gql`
857
1035
  subscription OnPlayerStateUpdated($authToken: String!) {
858
1036
  onPlayerStateUpdated(authToken: $authToken) {