@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.
|
@@ -154,12 +154,17 @@ export declare enum IPlayingStreakType {
|
|
|
154
154
|
A_21Days = "A_21_DAYS",
|
|
155
155
|
A_90Days = "A_90_DAYS"
|
|
156
156
|
}
|
|
157
|
+
export type IProfileOpportunities = {
|
|
158
|
+
newOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
159
|
+
recentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
160
|
+
};
|
|
157
161
|
export type IQuery = {
|
|
158
162
|
getDummy: Scalars['String'];
|
|
159
163
|
fetchPlayerState: IPlayerState;
|
|
160
164
|
fetchFrensData: IFrensData;
|
|
161
165
|
fetchEnergy: IEnergy;
|
|
162
166
|
fetchOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
167
|
+
fetchProfileOpportunities: IProfileOpportunities;
|
|
163
168
|
};
|
|
164
169
|
export type ISubscription = {
|
|
165
170
|
onDummy: Scalars['String'];
|
|
@@ -216,6 +221,7 @@ export type IResolversTypes = {
|
|
|
216
221
|
PlayingStreak: ResolverTypeWrapper<IPlayingStreak>;
|
|
217
222
|
PlayingStreakStatus: IPlayingStreakStatus;
|
|
218
223
|
PlayingStreakType: IPlayingStreakType;
|
|
224
|
+
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
219
225
|
Query: ResolverTypeWrapper<{}>;
|
|
220
226
|
Subscription: ResolverTypeWrapper<{}>;
|
|
221
227
|
};
|
|
@@ -237,6 +243,7 @@ export type IResolversParentTypes = {
|
|
|
237
243
|
OpportunityV2: IOpportunityV2;
|
|
238
244
|
PlayerState: IPlayerState;
|
|
239
245
|
PlayingStreak: IPlayingStreak;
|
|
246
|
+
ProfileOpportunities: IProfileOpportunities;
|
|
240
247
|
Query: {};
|
|
241
248
|
Subscription: {};
|
|
242
249
|
};
|
|
@@ -340,12 +347,18 @@ export type IPlayingStreakResolvers<ContextType = any, ParentType extends IResol
|
|
|
340
347
|
totalDays?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
341
348
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
342
349
|
};
|
|
350
|
+
export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfileOpportunities'] = IResolversParentTypes['ProfileOpportunities']> = {
|
|
351
|
+
newOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
352
|
+
recentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
353
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
354
|
+
};
|
|
343
355
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
344
356
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
345
357
|
fetchPlayerState?: Resolver<IResolversTypes['PlayerState'], ParentType, ContextType>;
|
|
346
358
|
fetchFrensData?: Resolver<IResolversTypes['FrensData'], ParentType, ContextType>;
|
|
347
359
|
fetchEnergy?: Resolver<IResolversTypes['Energy'], ParentType, ContextType>;
|
|
348
360
|
fetchOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
361
|
+
fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
|
|
349
362
|
};
|
|
350
363
|
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
351
364
|
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
@@ -363,6 +376,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
363
376
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
364
377
|
PlayerState?: IPlayerStateResolvers<ContextType>;
|
|
365
378
|
PlayingStreak?: IPlayingStreakResolvers<ContextType>;
|
|
379
|
+
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
366
380
|
Query?: IQueryResolvers<ContextType>;
|
|
367
381
|
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
368
382
|
};
|
|
@@ -389,6 +403,12 @@ export type IMarkNotificationAsShownMutationVariables = Exact<{
|
|
|
389
403
|
notificationId: Scalars['ID'];
|
|
390
404
|
}>;
|
|
391
405
|
export type IMarkNotificationAsShownMutation = Pick<IMutation, 'markNotificationAsShown'>;
|
|
406
|
+
export type IRegisterTapsMutationVariables = Exact<{
|
|
407
|
+
tapsNum?: Maybe<Scalars['Int']>;
|
|
408
|
+
}>;
|
|
409
|
+
export type IRegisterTapsMutation = {
|
|
410
|
+
registerTaps: Pick<IEnergy, 'availableTapsNum' | 'fullEnergyTapsNum' | 'refillSpeedTapsPerMs'>;
|
|
411
|
+
};
|
|
392
412
|
export type IStartFarmingMutationVariables = Exact<{
|
|
393
413
|
[key: string]: never;
|
|
394
414
|
}>;
|
|
@@ -399,6 +419,12 @@ export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
|
399
419
|
export type IFetchOpportunitiesQuery = {
|
|
400
420
|
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'>>>>;
|
|
401
421
|
};
|
|
422
|
+
export type IFetchEnergyQueryVariables = Exact<{
|
|
423
|
+
[key: string]: never;
|
|
424
|
+
}>;
|
|
425
|
+
export type IFetchEnergyQuery = {
|
|
426
|
+
fetchEnergy: Pick<IEnergy, 'availableTapsNum' | 'fullEnergyTapsNum' | 'refillSpeedTapsPerMs'>;
|
|
427
|
+
};
|
|
402
428
|
export type IFetchFrensDataQueryVariables = Exact<{
|
|
403
429
|
[key: string]: never;
|
|
404
430
|
}>;
|
|
@@ -418,6 +444,15 @@ export type IFetchPlayerStateQuery = {
|
|
|
418
444
|
notifications: Array<Pick<INotification, 'notificationId' | 'status' | 'text' | 'createdAt'>>;
|
|
419
445
|
});
|
|
420
446
|
};
|
|
447
|
+
export type IFetchProfileOpportunitiesQueryVariables = Exact<{
|
|
448
|
+
[key: string]: never;
|
|
449
|
+
}>;
|
|
450
|
+
export type IFetchProfileOpportunitiesQuery = {
|
|
451
|
+
fetchProfileOpportunities: {
|
|
452
|
+
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'>>>>;
|
|
453
|
+
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'>>>>;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
421
456
|
export type IOnPlayerStateUpdatedSubscriptionVariables = Exact<{
|
|
422
457
|
authToken: Scalars['String'];
|
|
423
458
|
}>;
|
|
@@ -552,6 +587,31 @@ export declare function useMarkNotificationAsShownMutation(baseOptions?: Apollo.
|
|
|
552
587
|
export type MarkNotificationAsShownMutationHookResult = ReturnType<typeof useMarkNotificationAsShownMutation>;
|
|
553
588
|
export type MarkNotificationAsShownMutationResult = Apollo.MutationResult<IMarkNotificationAsShownMutation>;
|
|
554
589
|
export type MarkNotificationAsShownMutationOptions = Apollo.BaseMutationOptions<IMarkNotificationAsShownMutation, IMarkNotificationAsShownMutationVariables>;
|
|
590
|
+
export declare const RegisterTapsDocument: Apollo.DocumentNode;
|
|
591
|
+
export type IRegisterTapsMutationFn = Apollo.MutationFunction<IRegisterTapsMutation, IRegisterTapsMutationVariables>;
|
|
592
|
+
/**
|
|
593
|
+
* __useRegisterTapsMutation__
|
|
594
|
+
*
|
|
595
|
+
* To run a mutation, you first call `useRegisterTapsMutation` within a React component and pass it any options that fit your needs.
|
|
596
|
+
* When your component renders, `useRegisterTapsMutation` returns a tuple that includes:
|
|
597
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
598
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
599
|
+
*
|
|
600
|
+
* @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;
|
|
601
|
+
*
|
|
602
|
+
* @example
|
|
603
|
+
* const [registerTapsMutation, { data, loading, error }] = useRegisterTapsMutation({
|
|
604
|
+
* variables: {
|
|
605
|
+
* tapsNum: // value for 'tapsNum'
|
|
606
|
+
* },
|
|
607
|
+
* });
|
|
608
|
+
*/
|
|
609
|
+
export declare function useRegisterTapsMutation(baseOptions?: Apollo.MutationHookOptions<IRegisterTapsMutation, IRegisterTapsMutationVariables>): Apollo.MutationTuple<IRegisterTapsMutation, Exact<{
|
|
610
|
+
tapsNum?: Maybe<number> | undefined;
|
|
611
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
612
|
+
export type RegisterTapsMutationHookResult = ReturnType<typeof useRegisterTapsMutation>;
|
|
613
|
+
export type RegisterTapsMutationResult = Apollo.MutationResult<IRegisterTapsMutation>;
|
|
614
|
+
export type RegisterTapsMutationOptions = Apollo.BaseMutationOptions<IRegisterTapsMutation, IRegisterTapsMutationVariables>;
|
|
555
615
|
export declare const StartFarmingDocument: Apollo.DocumentNode;
|
|
556
616
|
export type IStartFarmingMutationFn = Apollo.MutationFunction<IStartFarmingMutation, IStartFarmingMutationVariables>;
|
|
557
617
|
/**
|
|
@@ -601,6 +661,31 @@ export declare function useFetchOpportunitiesLazyQuery(baseOptions?: Apollo.Lazy
|
|
|
601
661
|
export type FetchOpportunitiesQueryHookResult = ReturnType<typeof useFetchOpportunitiesQuery>;
|
|
602
662
|
export type FetchOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesLazyQuery>;
|
|
603
663
|
export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
|
|
664
|
+
export declare const FetchEnergyDocument: Apollo.DocumentNode;
|
|
665
|
+
/**
|
|
666
|
+
* __useFetchEnergyQuery__
|
|
667
|
+
*
|
|
668
|
+
* To run a query within a React component, call `useFetchEnergyQuery` and pass it any options that fit your needs.
|
|
669
|
+
* When your component renders, `useFetchEnergyQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
670
|
+
* you can use to render your UI.
|
|
671
|
+
*
|
|
672
|
+
* @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;
|
|
673
|
+
*
|
|
674
|
+
* @example
|
|
675
|
+
* const { data, loading, error } = useFetchEnergyQuery({
|
|
676
|
+
* variables: {
|
|
677
|
+
* },
|
|
678
|
+
* });
|
|
679
|
+
*/
|
|
680
|
+
export declare function useFetchEnergyQuery(baseOptions?: Apollo.QueryHookOptions<IFetchEnergyQuery, IFetchEnergyQueryVariables>): Apollo.QueryResult<IFetchEnergyQuery, Exact<{
|
|
681
|
+
[key: string]: never;
|
|
682
|
+
}>>;
|
|
683
|
+
export declare function useFetchEnergyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchEnergyQuery, IFetchEnergyQueryVariables>): Apollo.LazyQueryResultTuple<IFetchEnergyQuery, Exact<{
|
|
684
|
+
[key: string]: never;
|
|
685
|
+
}>>;
|
|
686
|
+
export type FetchEnergyQueryHookResult = ReturnType<typeof useFetchEnergyQuery>;
|
|
687
|
+
export type FetchEnergyLazyQueryHookResult = ReturnType<typeof useFetchEnergyLazyQuery>;
|
|
688
|
+
export type FetchEnergyQueryResult = Apollo.QueryResult<IFetchEnergyQuery, IFetchEnergyQueryVariables>;
|
|
604
689
|
export declare const FetchFrensDataDocument: Apollo.DocumentNode;
|
|
605
690
|
/**
|
|
606
691
|
* __useFetchFrensDataQuery__
|
|
@@ -651,6 +736,31 @@ export declare function useFetchPlayerStateLazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
651
736
|
export type FetchPlayerStateQueryHookResult = ReturnType<typeof useFetchPlayerStateQuery>;
|
|
652
737
|
export type FetchPlayerStateLazyQueryHookResult = ReturnType<typeof useFetchPlayerStateLazyQuery>;
|
|
653
738
|
export type FetchPlayerStateQueryResult = Apollo.QueryResult<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>;
|
|
739
|
+
export declare const FetchProfileOpportunitiesDocument: Apollo.DocumentNode;
|
|
740
|
+
/**
|
|
741
|
+
* __useFetchProfileOpportunitiesQuery__
|
|
742
|
+
*
|
|
743
|
+
* To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
|
|
744
|
+
* When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
745
|
+
* you can use to render your UI.
|
|
746
|
+
*
|
|
747
|
+
* @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;
|
|
748
|
+
*
|
|
749
|
+
* @example
|
|
750
|
+
* const { data, loading, error } = useFetchProfileOpportunitiesQuery({
|
|
751
|
+
* variables: {
|
|
752
|
+
* },
|
|
753
|
+
* });
|
|
754
|
+
*/
|
|
755
|
+
export declare function useFetchProfileOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>): Apollo.QueryResult<IFetchProfileOpportunitiesQuery, Exact<{
|
|
756
|
+
[key: string]: never;
|
|
757
|
+
}>>;
|
|
758
|
+
export declare function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProfileOpportunitiesQuery, Exact<{
|
|
759
|
+
[key: string]: never;
|
|
760
|
+
}>>;
|
|
761
|
+
export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
|
|
762
|
+
export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
|
|
763
|
+
export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
|
|
654
764
|
export declare const OnPlayerStateUpdatedDocument: Apollo.DocumentNode;
|
|
655
765
|
/**
|
|
656
766
|
* __useOnPlayerStateUpdatedSubscription__
|
|
@@ -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.useOnPlayerStateUpdatedSubscription = exports.OnPlayerStateUpdatedDocument = exports.useFetchPlayerStateLazyQuery = exports.useFetchPlayerStateQuery = exports.FetchPlayerStateDocument = exports.useFetchFrensDataLazyQuery = exports.useFetchFrensDataQuery = exports.FetchFrensDataDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useStartFarmingMutation = exports.StartFarmingDocument = exports.useMarkNotificationAsShownMutation = exports.MarkNotificationAsShownDocument = exports.useMarkNotificationAsReadMutation = exports.MarkNotificationAsReadDocument = exports.useMarkNotificationAsNewMutation = exports.MarkNotificationAsNewDocument = exports.useConfirmStreakNotificationHasBeenReadMutation = exports.ConfirmStreakNotificationHasBeenReadDocument = exports.useClaimFarmingRewardMutation = exports.ClaimFarmingRewardDocument = exports.IPlayingStreakType = exports.IPlayingStreakStatus = exports.INotificationStatus = exports.IFarmingStatus = void 0;
|
|
26
|
+
exports.useOnPlayerStateUpdatedSubscription = exports.OnPlayerStateUpdatedDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchPlayerStateLazyQuery = exports.useFetchPlayerStateQuery = exports.FetchPlayerStateDocument = exports.useFetchFrensDataLazyQuery = exports.useFetchFrensDataQuery = exports.FetchFrensDataDocument = exports.useFetchEnergyLazyQuery = exports.useFetchEnergyQuery = exports.FetchEnergyDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useStartFarmingMutation = exports.StartFarmingDocument = exports.useRegisterTapsMutation = exports.RegisterTapsDocument = exports.useMarkNotificationAsShownMutation = exports.MarkNotificationAsShownDocument = exports.useMarkNotificationAsReadMutation = exports.MarkNotificationAsReadDocument = exports.useMarkNotificationAsNewMutation = exports.MarkNotificationAsNewDocument = exports.useConfirmStreakNotificationHasBeenReadMutation = exports.ConfirmStreakNotificationHasBeenReadDocument = exports.useClaimFarmingRewardMutation = exports.ClaimFarmingRewardDocument = exports.IPlayingStreakType = exports.IPlayingStreakStatus = exports.INotificationStatus = exports.IFarmingStatus = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
/** Please, manually sync with FarmingStatus.java */
|
|
@@ -184,6 +184,36 @@ function useMarkNotificationAsShownMutation(baseOptions) {
|
|
|
184
184
|
return Apollo.useMutation(exports.MarkNotificationAsShownDocument, baseOptions);
|
|
185
185
|
}
|
|
186
186
|
exports.useMarkNotificationAsShownMutation = useMarkNotificationAsShownMutation;
|
|
187
|
+
exports.RegisterTapsDocument = (0, client_1.gql) `
|
|
188
|
+
mutation RegisterTaps($tapsNum: Int) {
|
|
189
|
+
registerTaps(tapsNum: $tapsNum) {
|
|
190
|
+
availableTapsNum
|
|
191
|
+
fullEnergyTapsNum
|
|
192
|
+
refillSpeedTapsPerMs
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
`;
|
|
196
|
+
/**
|
|
197
|
+
* __useRegisterTapsMutation__
|
|
198
|
+
*
|
|
199
|
+
* To run a mutation, you first call `useRegisterTapsMutation` within a React component and pass it any options that fit your needs.
|
|
200
|
+
* When your component renders, `useRegisterTapsMutation` returns a tuple that includes:
|
|
201
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
202
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
203
|
+
*
|
|
204
|
+
* @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;
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* const [registerTapsMutation, { data, loading, error }] = useRegisterTapsMutation({
|
|
208
|
+
* variables: {
|
|
209
|
+
* tapsNum: // value for 'tapsNum'
|
|
210
|
+
* },
|
|
211
|
+
* });
|
|
212
|
+
*/
|
|
213
|
+
function useRegisterTapsMutation(baseOptions) {
|
|
214
|
+
return Apollo.useMutation(exports.RegisterTapsDocument, baseOptions);
|
|
215
|
+
}
|
|
216
|
+
exports.useRegisterTapsMutation = useRegisterTapsMutation;
|
|
187
217
|
exports.StartFarmingDocument = (0, client_1.gql) `
|
|
188
218
|
mutation StartFarming {
|
|
189
219
|
startFarming
|
|
@@ -259,6 +289,38 @@ function useFetchOpportunitiesLazyQuery(baseOptions) {
|
|
|
259
289
|
return Apollo.useLazyQuery(exports.FetchOpportunitiesDocument, baseOptions);
|
|
260
290
|
}
|
|
261
291
|
exports.useFetchOpportunitiesLazyQuery = useFetchOpportunitiesLazyQuery;
|
|
292
|
+
exports.FetchEnergyDocument = (0, client_1.gql) `
|
|
293
|
+
query FetchEnergy {
|
|
294
|
+
fetchEnergy {
|
|
295
|
+
availableTapsNum
|
|
296
|
+
fullEnergyTapsNum
|
|
297
|
+
refillSpeedTapsPerMs
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
`;
|
|
301
|
+
/**
|
|
302
|
+
* __useFetchEnergyQuery__
|
|
303
|
+
*
|
|
304
|
+
* To run a query within a React component, call `useFetchEnergyQuery` and pass it any options that fit your needs.
|
|
305
|
+
* When your component renders, `useFetchEnergyQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
306
|
+
* you can use to render your UI.
|
|
307
|
+
*
|
|
308
|
+
* @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;
|
|
309
|
+
*
|
|
310
|
+
* @example
|
|
311
|
+
* const { data, loading, error } = useFetchEnergyQuery({
|
|
312
|
+
* variables: {
|
|
313
|
+
* },
|
|
314
|
+
* });
|
|
315
|
+
*/
|
|
316
|
+
function useFetchEnergyQuery(baseOptions) {
|
|
317
|
+
return Apollo.useQuery(exports.FetchEnergyDocument, baseOptions);
|
|
318
|
+
}
|
|
319
|
+
exports.useFetchEnergyQuery = useFetchEnergyQuery;
|
|
320
|
+
function useFetchEnergyLazyQuery(baseOptions) {
|
|
321
|
+
return Apollo.useLazyQuery(exports.FetchEnergyDocument, baseOptions);
|
|
322
|
+
}
|
|
323
|
+
exports.useFetchEnergyLazyQuery = useFetchEnergyLazyQuery;
|
|
262
324
|
exports.FetchFrensDataDocument = (0, client_1.gql) `
|
|
263
325
|
query FetchFrensData {
|
|
264
326
|
fetchFrensData {
|
|
@@ -354,6 +416,81 @@ function useFetchPlayerStateLazyQuery(baseOptions) {
|
|
|
354
416
|
return Apollo.useLazyQuery(exports.FetchPlayerStateDocument, baseOptions);
|
|
355
417
|
}
|
|
356
418
|
exports.useFetchPlayerStateLazyQuery = useFetchPlayerStateLazyQuery;
|
|
419
|
+
exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
|
|
420
|
+
query FetchProfileOpportunities {
|
|
421
|
+
fetchProfileOpportunities {
|
|
422
|
+
newOpportunities {
|
|
423
|
+
opportunityId
|
|
424
|
+
brandId
|
|
425
|
+
categoryId
|
|
426
|
+
opportunityStatus
|
|
427
|
+
opportunityType
|
|
428
|
+
notificationType
|
|
429
|
+
name
|
|
430
|
+
description
|
|
431
|
+
brandName
|
|
432
|
+
brandDescription
|
|
433
|
+
brandMedia
|
|
434
|
+
brandUrl
|
|
435
|
+
brandIndustry
|
|
436
|
+
categoryName
|
|
437
|
+
ludoUrl
|
|
438
|
+
projectUrl
|
|
439
|
+
activeFrom
|
|
440
|
+
activeUntil
|
|
441
|
+
media
|
|
442
|
+
reportLink
|
|
443
|
+
shareLink
|
|
444
|
+
}
|
|
445
|
+
recentOpportunities {
|
|
446
|
+
opportunityId
|
|
447
|
+
brandId
|
|
448
|
+
categoryId
|
|
449
|
+
opportunityStatus
|
|
450
|
+
opportunityType
|
|
451
|
+
notificationType
|
|
452
|
+
name
|
|
453
|
+
description
|
|
454
|
+
brandName
|
|
455
|
+
brandDescription
|
|
456
|
+
brandMedia
|
|
457
|
+
brandUrl
|
|
458
|
+
brandIndustry
|
|
459
|
+
categoryName
|
|
460
|
+
ludoUrl
|
|
461
|
+
projectUrl
|
|
462
|
+
activeFrom
|
|
463
|
+
activeUntil
|
|
464
|
+
media
|
|
465
|
+
reportLink
|
|
466
|
+
shareLink
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
`;
|
|
471
|
+
/**
|
|
472
|
+
* __useFetchProfileOpportunitiesQuery__
|
|
473
|
+
*
|
|
474
|
+
* To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
|
|
475
|
+
* When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
476
|
+
* you can use to render your UI.
|
|
477
|
+
*
|
|
478
|
+
* @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;
|
|
479
|
+
*
|
|
480
|
+
* @example
|
|
481
|
+
* const { data, loading, error } = useFetchProfileOpportunitiesQuery({
|
|
482
|
+
* variables: {
|
|
483
|
+
* },
|
|
484
|
+
* });
|
|
485
|
+
*/
|
|
486
|
+
function useFetchProfileOpportunitiesQuery(baseOptions) {
|
|
487
|
+
return Apollo.useQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
|
|
488
|
+
}
|
|
489
|
+
exports.useFetchProfileOpportunitiesQuery = useFetchProfileOpportunitiesQuery;
|
|
490
|
+
function useFetchProfileOpportunitiesLazyQuery(baseOptions) {
|
|
491
|
+
return Apollo.useLazyQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
|
|
492
|
+
}
|
|
493
|
+
exports.useFetchProfileOpportunitiesLazyQuery = useFetchProfileOpportunitiesLazyQuery;
|
|
357
494
|
exports.OnPlayerStateUpdatedDocument = (0, client_1.gql) `
|
|
358
495
|
subscription OnPlayerStateUpdated($authToken: String!) {
|
|
359
496
|
onPlayerStateUpdated(authToken: $authToken) {
|
package/build/index.d.ts
CHANGED
|
@@ -76,6 +76,11 @@ declare const schema: {
|
|
|
76
76
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<tapsSchema.IMarkNotificationAsShownMutation, tapsSchema.Exact<{
|
|
77
77
|
notificationId: string;
|
|
78
78
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
79
|
+
useRegisterTapsMutation(baseOptions?: import("@apollo/client").MutationHookOptions<tapsSchema.IRegisterTapsMutation, tapsSchema.Exact<{
|
|
80
|
+
tapsNum?: tapsSchema.Maybe<number> | undefined;
|
|
81
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<tapsSchema.IRegisterTapsMutation, tapsSchema.Exact<{
|
|
82
|
+
tapsNum?: tapsSchema.Maybe<number> | undefined;
|
|
83
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
79
84
|
useStartFarmingMutation(baseOptions?: import("@apollo/client").MutationHookOptions<tapsSchema.IStartFarmingMutation, tapsSchema.Exact<{
|
|
80
85
|
[key: string]: never;
|
|
81
86
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<tapsSchema.IStartFarmingMutation, tapsSchema.Exact<{
|
|
@@ -91,6 +96,16 @@ declare const schema: {
|
|
|
91
96
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<tapsSchema.IFetchOpportunitiesQuery, tapsSchema.Exact<{
|
|
92
97
|
[key: string]: never;
|
|
93
98
|
}>>;
|
|
99
|
+
useFetchEnergyQuery(baseOptions?: import("@apollo/client").QueryHookOptions<tapsSchema.IFetchEnergyQuery, tapsSchema.Exact<{
|
|
100
|
+
[key: string]: never;
|
|
101
|
+
}>> | undefined): import("@apollo/client").QueryResult<tapsSchema.IFetchEnergyQuery, tapsSchema.Exact<{
|
|
102
|
+
[key: string]: never;
|
|
103
|
+
}>>;
|
|
104
|
+
useFetchEnergyLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<tapsSchema.IFetchEnergyQuery, tapsSchema.Exact<{
|
|
105
|
+
[key: string]: never;
|
|
106
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<tapsSchema.IFetchEnergyQuery, tapsSchema.Exact<{
|
|
107
|
+
[key: string]: never;
|
|
108
|
+
}>>;
|
|
94
109
|
useFetchFrensDataQuery(baseOptions?: import("@apollo/client").QueryHookOptions<tapsSchema.IFetchFrensDataQuery, tapsSchema.Exact<{
|
|
95
110
|
[key: string]: never;
|
|
96
111
|
}>> | undefined): import("@apollo/client").QueryResult<tapsSchema.IFetchFrensDataQuery, tapsSchema.Exact<{
|
|
@@ -111,6 +126,16 @@ declare const schema: {
|
|
|
111
126
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<tapsSchema.IFetchPlayerStateQuery, tapsSchema.Exact<{
|
|
112
127
|
[key: string]: never;
|
|
113
128
|
}>>;
|
|
129
|
+
useFetchProfileOpportunitiesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<tapsSchema.IFetchProfileOpportunitiesQuery, tapsSchema.Exact<{
|
|
130
|
+
[key: string]: never;
|
|
131
|
+
}>> | undefined): import("@apollo/client").QueryResult<tapsSchema.IFetchProfileOpportunitiesQuery, tapsSchema.Exact<{
|
|
132
|
+
[key: string]: never;
|
|
133
|
+
}>>;
|
|
134
|
+
useFetchProfileOpportunitiesLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<tapsSchema.IFetchProfileOpportunitiesQuery, tapsSchema.Exact<{
|
|
135
|
+
[key: string]: never;
|
|
136
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<tapsSchema.IFetchProfileOpportunitiesQuery, tapsSchema.Exact<{
|
|
137
|
+
[key: string]: never;
|
|
138
|
+
}>>;
|
|
114
139
|
useOnPlayerStateUpdatedSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<tapsSchema.IOnPlayerStateUpdatedSubscription, tapsSchema.Exact<{
|
|
115
140
|
authToken: string;
|
|
116
141
|
}>>): {
|
|
@@ -131,10 +156,13 @@ declare const schema: {
|
|
|
131
156
|
MarkNotificationAsNewDocument: import("graphql").DocumentNode;
|
|
132
157
|
MarkNotificationAsReadDocument: import("graphql").DocumentNode;
|
|
133
158
|
MarkNotificationAsShownDocument: import("graphql").DocumentNode;
|
|
159
|
+
RegisterTapsDocument: import("graphql").DocumentNode;
|
|
134
160
|
StartFarmingDocument: import("graphql").DocumentNode;
|
|
135
161
|
FetchOpportunitiesDocument: import("graphql").DocumentNode;
|
|
162
|
+
FetchEnergyDocument: import("graphql").DocumentNode;
|
|
136
163
|
FetchFrensDataDocument: import("graphql").DocumentNode;
|
|
137
164
|
FetchPlayerStateDocument: import("graphql").DocumentNode;
|
|
165
|
+
FetchProfileOpportunitiesDocument: import("graphql").DocumentNode;
|
|
138
166
|
OnPlayerStateUpdatedDocument: import("graphql").DocumentNode;
|
|
139
167
|
useSubmitContactSupportMutation(baseOptions?: import("@apollo/client").MutationHookOptions<formsSchema.ISubmitContactSupportMutation, formsSchema.Exact<{
|
|
140
168
|
input: formsSchema.IContactSupportInput;
|
|
@@ -686,16 +714,6 @@ declare const schema: {
|
|
|
686
714
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
|
|
687
715
|
opportunityId: string;
|
|
688
716
|
}>>;
|
|
689
|
-
useFetchProfileOpportunitiesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
690
|
-
[key: string]: never;
|
|
691
|
-
}>> | undefined): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
692
|
-
[key: string]: never;
|
|
693
|
-
}>>;
|
|
694
|
-
useFetchProfileOpportunitiesLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
695
|
-
[key: string]: never;
|
|
696
|
-
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
697
|
-
[key: string]: never;
|
|
698
|
-
}>>;
|
|
699
717
|
IOpportunityType: typeof opportunitiesSchema.IOpportunityType;
|
|
700
718
|
DislikeOpportunityDocument: import("graphql").DocumentNode;
|
|
701
719
|
LikeOpportunityDocument: import("graphql").DocumentNode;
|
|
@@ -708,7 +726,6 @@ declare const schema: {
|
|
|
708
726
|
FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
|
|
709
727
|
FetchBrandBySlugDocument: import("graphql").DocumentNode;
|
|
710
728
|
FetchOpportunityDocument: import("graphql").DocumentNode;
|
|
711
|
-
FetchProfileOpportunitiesDocument: import("graphql").DocumentNode;
|
|
712
729
|
useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
|
713
730
|
galleryId: string;
|
|
714
731
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|