@ludo.ninja/api 2.8.72 → 2.8.73

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.
@@ -368,6 +368,7 @@ export type IMutation = {
368
368
  triggerOpportunityNotification: Scalars['Boolean'];
369
369
  updateTier: Scalars['Boolean'];
370
370
  createTier: Scalars['Boolean'];
371
+ updateTierArchivedStatus: Scalars['Boolean'];
371
372
  updateProfileStatus: Scalars['Boolean'];
372
373
  removeSuggestedOpportunity: Scalars['Boolean'];
373
374
  addSuggestedOpportunity: Scalars['Boolean'];
@@ -432,6 +433,10 @@ export type IMutationUpdateTierArgs = {
432
433
  export type IMutationCreateTierArgs = {
433
434
  input: ITierInput;
434
435
  };
436
+ export type IMutationUpdateTierArchivedStatusArgs = {
437
+ id: Scalars['ID'];
438
+ isArchived: Scalars['Boolean'];
439
+ };
435
440
  export type IMutationUpdateProfileStatusArgs = {
436
441
  userId: Scalars['ID'];
437
442
  isActive: Scalars['Boolean'];
@@ -657,6 +662,7 @@ export type ITier = {
657
662
  name: Scalars['String'];
658
663
  description?: Maybe<Scalars['String']>;
659
664
  fee?: Maybe<Scalars['Float']>;
665
+ archived?: Maybe<Scalars['Boolean']>;
660
666
  };
661
667
  export type ITierInput = {
662
668
  name: Scalars['String'];
@@ -1195,6 +1201,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
1195
1201
  triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
1196
1202
  updateTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateTierArgs, 'id' | 'input'>>;
1197
1203
  createTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateTierArgs, 'input'>>;
1204
+ updateTierArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateTierArchivedStatusArgs, 'id' | 'isArchived'>>;
1198
1205
  updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
1199
1206
  removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
1200
1207
  addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
@@ -1261,6 +1268,7 @@ export type ITierResolvers<ContextType = any, ParentType extends IResolversParen
1261
1268
  name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1262
1269
  description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1263
1270
  fee?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
1271
+ archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
1264
1272
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1265
1273
  };
1266
1274
  export type ITiersPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['TiersPage'] = IResolversParentTypes['TiersPage']> = {
@@ -0,0 +1,525 @@
1
+ import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
2
+ import * as Apollo from '@apollo/client';
3
+ export type Maybe<T> = T | null;
4
+ export type Exact<T extends {
5
+ [key: string]: unknown;
6
+ }> = {
7
+ [K in keyof T]: T[K];
8
+ };
9
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
10
+ [SubKey in K]?: Maybe<T[SubKey]>;
11
+ };
12
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
13
+ [SubKey in K]: Maybe<T[SubKey]>;
14
+ };
15
+ export type RequireFields<T, K extends keyof T> = Omit<T, K> & {
16
+ [P in K]-?: NonNullable<T[P]>;
17
+ };
18
+ /** All built-in and custom scalars, mapped to their actual values */
19
+ export type Scalars = {
20
+ ID: string;
21
+ String: string;
22
+ Boolean: boolean;
23
+ Int: number;
24
+ Float: number;
25
+ /** A 64-bit signed integer */
26
+ Long: any;
27
+ };
28
+ export type IActiveInviteCode = {
29
+ code: Scalars['String'];
30
+ usedTimes: Scalars['Int'];
31
+ maxUsagesLimit: Scalars['Int'];
32
+ };
33
+ export type IFarmingTask = {
34
+ taskId: Scalars['ID'];
35
+ status: Scalars['String'];
36
+ startedAt: Scalars['Long'];
37
+ };
38
+ export type IFrensData = {
39
+ activeInviteCodes: Array<IActiveInviteCode>;
40
+ joinedFriends: Array<IFriend>;
41
+ };
42
+ export type IFriend = {
43
+ userId: Scalars['ID'];
44
+ ludoUsername?: Maybe<Scalars['String']>;
45
+ isAPlayer: Scalars['Boolean'];
46
+ coins?: Maybe<Scalars['Int']>;
47
+ };
48
+ export type IMutation = {
49
+ setDummy: Scalars['String'];
50
+ startFarming: Scalars['Boolean'];
51
+ claimFarmingReward: Scalars['Boolean'];
52
+ confirmStreakNotificationHasBeenRead: Scalars['Boolean'];
53
+ markNotificationAsShown: Scalars['Boolean'];
54
+ markNotificationAsRead: Scalars['Boolean'];
55
+ markNotificationAsNew: Scalars['Boolean'];
56
+ };
57
+ export type IMutationConfirmStreakNotificationHasBeenReadArgs = {
58
+ streakId: Scalars['ID'];
59
+ };
60
+ export type IMutationMarkNotificationAsShownArgs = {
61
+ notificationId: Scalars['ID'];
62
+ };
63
+ export type IMutationMarkNotificationAsReadArgs = {
64
+ notificationId: Scalars['ID'];
65
+ };
66
+ export type IMutationMarkNotificationAsNewArgs = {
67
+ notificationId: Scalars['ID'];
68
+ };
69
+ export type INotification = {
70
+ notificationId: Scalars['ID'];
71
+ status: Scalars['String'];
72
+ text: Scalars['String'];
73
+ createdAt: Scalars['Long'];
74
+ };
75
+ export type IPlayerState = {
76
+ userId: Scalars['ID'];
77
+ coins: Scalars['Int'];
78
+ farmingTask?: Maybe<IFarmingTask>;
79
+ playingStreaks: Array<IPlayingStreak>;
80
+ notifications: Array<INotification>;
81
+ };
82
+ export type IPlayingStreak = {
83
+ streakId: Scalars['ID'];
84
+ status: Scalars['String'];
85
+ type: Scalars['String'];
86
+ startedAt: Scalars['Long'];
87
+ };
88
+ export type IQuery = {
89
+ getDummy: Scalars['String'];
90
+ fetchPlayerState: IPlayerState;
91
+ fetchFrensData: IFrensData;
92
+ };
93
+ export type ISubscription = {
94
+ onDummy: Scalars['String'];
95
+ onPlayerStateUpdated: IPlayerState;
96
+ };
97
+ export type ISubscriptionOnPlayerStateUpdatedArgs = {
98
+ authToken: Scalars['String'];
99
+ };
100
+ export type ResolverTypeWrapper<T> = Promise<T> | T;
101
+ export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
102
+ resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
103
+ };
104
+ export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
105
+ export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
106
+ export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
107
+ export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
108
+ export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
109
+ subscribe: SubscriptionSubscribeFn<{
110
+ [key in TKey]: TResult;
111
+ }, TParent, TContext, TArgs>;
112
+ resolve?: SubscriptionResolveFn<TResult, {
113
+ [key in TKey]: TResult;
114
+ }, TContext, TArgs>;
115
+ }
116
+ export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
117
+ subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
118
+ resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
119
+ }
120
+ export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
121
+ export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
122
+ export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
123
+ export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
124
+ export type NextResolverFn<T> = () => Promise<T>;
125
+ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
126
+ /** Mapping between all available schema types and the resolvers types */
127
+ export type IResolversTypes = {
128
+ ActiveInviteCode: ResolverTypeWrapper<IActiveInviteCode>;
129
+ String: ResolverTypeWrapper<Scalars['String']>;
130
+ Int: ResolverTypeWrapper<Scalars['Int']>;
131
+ FarmingTask: ResolverTypeWrapper<IFarmingTask>;
132
+ ID: ResolverTypeWrapper<Scalars['ID']>;
133
+ FrensData: ResolverTypeWrapper<IFrensData>;
134
+ Friend: ResolverTypeWrapper<IFriend>;
135
+ Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
136
+ Long: ResolverTypeWrapper<Scalars['Long']>;
137
+ Mutation: ResolverTypeWrapper<{}>;
138
+ Notification: ResolverTypeWrapper<INotification>;
139
+ PlayerState: ResolverTypeWrapper<IPlayerState>;
140
+ PlayingStreak: ResolverTypeWrapper<IPlayingStreak>;
141
+ Query: ResolverTypeWrapper<{}>;
142
+ Subscription: ResolverTypeWrapper<{}>;
143
+ };
144
+ /** Mapping between all available schema types and the resolvers parents */
145
+ export type IResolversParentTypes = {
146
+ ActiveInviteCode: IActiveInviteCode;
147
+ String: Scalars['String'];
148
+ Int: Scalars['Int'];
149
+ FarmingTask: IFarmingTask;
150
+ ID: Scalars['ID'];
151
+ FrensData: IFrensData;
152
+ Friend: IFriend;
153
+ Boolean: Scalars['Boolean'];
154
+ Long: Scalars['Long'];
155
+ Mutation: {};
156
+ Notification: INotification;
157
+ PlayerState: IPlayerState;
158
+ PlayingStreak: IPlayingStreak;
159
+ Query: {};
160
+ Subscription: {};
161
+ };
162
+ export type IOneOfDirectiveArgs = {};
163
+ export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
164
+ export type IActiveInviteCodeResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActiveInviteCode'] = IResolversParentTypes['ActiveInviteCode']> = {
165
+ code?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
166
+ usedTimes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
167
+ maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
168
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
169
+ };
170
+ export type IFarmingTaskResolvers<ContextType = any, ParentType extends IResolversParentTypes['FarmingTask'] = IResolversParentTypes['FarmingTask']> = {
171
+ taskId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
172
+ status?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
173
+ startedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
174
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
175
+ };
176
+ export type IFrensDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['FrensData'] = IResolversParentTypes['FrensData']> = {
177
+ activeInviteCodes?: Resolver<Array<IResolversTypes['ActiveInviteCode']>, ParentType, ContextType>;
178
+ joinedFriends?: Resolver<Array<IResolversTypes['Friend']>, ParentType, ContextType>;
179
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
180
+ };
181
+ export type IFriendResolvers<ContextType = any, ParentType extends IResolversParentTypes['Friend'] = IResolversParentTypes['Friend']> = {
182
+ userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
183
+ ludoUsername?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
184
+ isAPlayer?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
185
+ coins?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
186
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
187
+ };
188
+ export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
189
+ name: 'Long';
190
+ }
191
+ export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
192
+ setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
193
+ startFarming?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
194
+ claimFarmingReward?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
195
+ confirmStreakNotificationHasBeenRead?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationConfirmStreakNotificationHasBeenReadArgs, 'streakId'>>;
196
+ markNotificationAsShown?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsShownArgs, 'notificationId'>>;
197
+ markNotificationAsRead?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsReadArgs, 'notificationId'>>;
198
+ markNotificationAsNew?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsNewArgs, 'notificationId'>>;
199
+ };
200
+ export type INotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Notification'] = IResolversParentTypes['Notification']> = {
201
+ notificationId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
202
+ status?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
203
+ text?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
204
+ createdAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
205
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
206
+ };
207
+ export type IPlayerStateResolvers<ContextType = any, ParentType extends IResolversParentTypes['PlayerState'] = IResolversParentTypes['PlayerState']> = {
208
+ userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
209
+ coins?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
210
+ farmingTask?: Resolver<Maybe<IResolversTypes['FarmingTask']>, ParentType, ContextType>;
211
+ playingStreaks?: Resolver<Array<IResolversTypes['PlayingStreak']>, ParentType, ContextType>;
212
+ notifications?: Resolver<Array<IResolversTypes['Notification']>, ParentType, ContextType>;
213
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
214
+ };
215
+ export type IPlayingStreakResolvers<ContextType = any, ParentType extends IResolversParentTypes['PlayingStreak'] = IResolversParentTypes['PlayingStreak']> = {
216
+ streakId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
217
+ status?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
218
+ type?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
219
+ startedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
220
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
221
+ };
222
+ export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
223
+ getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
224
+ fetchPlayerState?: Resolver<IResolversTypes['PlayerState'], ParentType, ContextType>;
225
+ fetchFrensData?: Resolver<IResolversTypes['FrensData'], ParentType, ContextType>;
226
+ };
227
+ export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
228
+ onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
229
+ onPlayerStateUpdated?: SubscriptionResolver<IResolversTypes['PlayerState'], "onPlayerStateUpdated", ParentType, ContextType, RequireFields<ISubscriptionOnPlayerStateUpdatedArgs, 'authToken'>>;
230
+ };
231
+ export type IResolvers<ContextType = any> = {
232
+ ActiveInviteCode?: IActiveInviteCodeResolvers<ContextType>;
233
+ FarmingTask?: IFarmingTaskResolvers<ContextType>;
234
+ FrensData?: IFrensDataResolvers<ContextType>;
235
+ Friend?: IFriendResolvers<ContextType>;
236
+ Long?: GraphQLScalarType;
237
+ Mutation?: IMutationResolvers<ContextType>;
238
+ Notification?: INotificationResolvers<ContextType>;
239
+ PlayerState?: IPlayerStateResolvers<ContextType>;
240
+ PlayingStreak?: IPlayingStreakResolvers<ContextType>;
241
+ Query?: IQueryResolvers<ContextType>;
242
+ Subscription?: ISubscriptionResolvers<ContextType>;
243
+ };
244
+ export type IDirectiveResolvers<ContextType = any> = {
245
+ oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
246
+ };
247
+ export type IClaimFarmingRewardMutationVariables = Exact<{
248
+ [key: string]: never;
249
+ }>;
250
+ export type IClaimFarmingRewardMutation = Pick<IMutation, 'claimFarmingReward'>;
251
+ export type IConfirmStreakNotificationHasBeenReadMutationVariables = Exact<{
252
+ streakId: Scalars['ID'];
253
+ }>;
254
+ export type IConfirmStreakNotificationHasBeenReadMutation = Pick<IMutation, 'confirmStreakNotificationHasBeenRead'>;
255
+ export type IMarkNotificationAsNewMutationVariables = Exact<{
256
+ notificationId: Scalars['ID'];
257
+ }>;
258
+ export type IMarkNotificationAsNewMutation = Pick<IMutation, 'markNotificationAsNew'>;
259
+ export type IMarkNotificationAsReadMutationVariables = Exact<{
260
+ notificationId: Scalars['ID'];
261
+ }>;
262
+ export type IMarkNotificationAsReadMutation = Pick<IMutation, 'markNotificationAsRead'>;
263
+ export type IMarkNotificationAsShownMutationVariables = Exact<{
264
+ notificationId: Scalars['ID'];
265
+ }>;
266
+ export type IMarkNotificationAsShownMutation = Pick<IMutation, 'markNotificationAsShown'>;
267
+ export type IStartFarmingMutationVariables = Exact<{
268
+ [key: string]: never;
269
+ }>;
270
+ export type IStartFarmingMutation = Pick<IMutation, 'startFarming'>;
271
+ export type IFetchFrensDataQueryVariables = Exact<{
272
+ [key: string]: never;
273
+ }>;
274
+ export type IFetchFrensDataQuery = {
275
+ fetchFrensData: {
276
+ activeInviteCodes: Array<Pick<IActiveInviteCode, 'code' | 'usedTimes' | 'maxUsagesLimit'>>;
277
+ joinedFriends: Array<Pick<IFriend, 'userId' | 'ludoUsername' | 'isAPlayer' | 'coins'>>;
278
+ };
279
+ };
280
+ export type IFetchPlayerStateQueryVariables = Exact<{
281
+ [key: string]: never;
282
+ }>;
283
+ export type IFetchPlayerStateQuery = {
284
+ fetchPlayerState: (Pick<IPlayerState, 'userId' | 'coins'> & {
285
+ farmingTask?: Maybe<Pick<IFarmingTask, 'taskId' | 'status' | 'startedAt'>>;
286
+ playingStreaks: Array<Pick<IPlayingStreak, 'streakId' | 'status' | 'type' | 'startedAt'>>;
287
+ notifications: Array<Pick<INotification, 'notificationId' | 'status' | 'text' | 'createdAt'>>;
288
+ });
289
+ };
290
+ export type IOnPlayerStateUpdatedSubscriptionVariables = Exact<{
291
+ authToken: Scalars['String'];
292
+ }>;
293
+ export type IOnPlayerStateUpdatedSubscription = {
294
+ onPlayerStateUpdated: (Pick<IPlayerState, 'userId' | 'coins'> & {
295
+ farmingTask?: Maybe<Pick<IFarmingTask, 'taskId' | 'status' | 'startedAt'>>;
296
+ playingStreaks: Array<Pick<IPlayingStreak, 'streakId' | 'status' | 'type' | 'startedAt'>>;
297
+ notifications: Array<Pick<INotification, 'notificationId' | 'status' | 'text' | 'createdAt'>>;
298
+ });
299
+ };
300
+ export declare const ClaimFarmingRewardDocument: Apollo.DocumentNode;
301
+ export type IClaimFarmingRewardMutationFn = Apollo.MutationFunction<IClaimFarmingRewardMutation, IClaimFarmingRewardMutationVariables>;
302
+ /**
303
+ * __useClaimFarmingRewardMutation__
304
+ *
305
+ * To run a mutation, you first call `useClaimFarmingRewardMutation` within a React component and pass it any options that fit your needs.
306
+ * When your component renders, `useClaimFarmingRewardMutation` returns a tuple that includes:
307
+ * - A mutate function that you can call at any time to execute the mutation
308
+ * - An object with fields that represent the current status of the mutation's execution
309
+ *
310
+ * @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;
311
+ *
312
+ * @example
313
+ * const [claimFarmingRewardMutation, { data, loading, error }] = useClaimFarmingRewardMutation({
314
+ * variables: {
315
+ * },
316
+ * });
317
+ */
318
+ export declare function useClaimFarmingRewardMutation(baseOptions?: Apollo.MutationHookOptions<IClaimFarmingRewardMutation, IClaimFarmingRewardMutationVariables>): Apollo.MutationTuple<IClaimFarmingRewardMutation, Exact<{
319
+ [key: string]: never;
320
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
321
+ export type ClaimFarmingRewardMutationHookResult = ReturnType<typeof useClaimFarmingRewardMutation>;
322
+ export type ClaimFarmingRewardMutationResult = Apollo.MutationResult<IClaimFarmingRewardMutation>;
323
+ export type ClaimFarmingRewardMutationOptions = Apollo.BaseMutationOptions<IClaimFarmingRewardMutation, IClaimFarmingRewardMutationVariables>;
324
+ export declare const ConfirmStreakNotificationHasBeenReadDocument: Apollo.DocumentNode;
325
+ export type IConfirmStreakNotificationHasBeenReadMutationFn = Apollo.MutationFunction<IConfirmStreakNotificationHasBeenReadMutation, IConfirmStreakNotificationHasBeenReadMutationVariables>;
326
+ /**
327
+ * __useConfirmStreakNotificationHasBeenReadMutation__
328
+ *
329
+ * To run a mutation, you first call `useConfirmStreakNotificationHasBeenReadMutation` within a React component and pass it any options that fit your needs.
330
+ * When your component renders, `useConfirmStreakNotificationHasBeenReadMutation` returns a tuple that includes:
331
+ * - A mutate function that you can call at any time to execute the mutation
332
+ * - An object with fields that represent the current status of the mutation's execution
333
+ *
334
+ * @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;
335
+ *
336
+ * @example
337
+ * const [confirmStreakNotificationHasBeenReadMutation, { data, loading, error }] = useConfirmStreakNotificationHasBeenReadMutation({
338
+ * variables: {
339
+ * streakId: // value for 'streakId'
340
+ * },
341
+ * });
342
+ */
343
+ export declare function useConfirmStreakNotificationHasBeenReadMutation(baseOptions?: Apollo.MutationHookOptions<IConfirmStreakNotificationHasBeenReadMutation, IConfirmStreakNotificationHasBeenReadMutationVariables>): Apollo.MutationTuple<IConfirmStreakNotificationHasBeenReadMutation, Exact<{
344
+ streakId: string;
345
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
346
+ export type ConfirmStreakNotificationHasBeenReadMutationHookResult = ReturnType<typeof useConfirmStreakNotificationHasBeenReadMutation>;
347
+ export type ConfirmStreakNotificationHasBeenReadMutationResult = Apollo.MutationResult<IConfirmStreakNotificationHasBeenReadMutation>;
348
+ export type ConfirmStreakNotificationHasBeenReadMutationOptions = Apollo.BaseMutationOptions<IConfirmStreakNotificationHasBeenReadMutation, IConfirmStreakNotificationHasBeenReadMutationVariables>;
349
+ export declare const MarkNotificationAsNewDocument: Apollo.DocumentNode;
350
+ export type IMarkNotificationAsNewMutationFn = Apollo.MutationFunction<IMarkNotificationAsNewMutation, IMarkNotificationAsNewMutationVariables>;
351
+ /**
352
+ * __useMarkNotificationAsNewMutation__
353
+ *
354
+ * To run a mutation, you first call `useMarkNotificationAsNewMutation` within a React component and pass it any options that fit your needs.
355
+ * When your component renders, `useMarkNotificationAsNewMutation` returns a tuple that includes:
356
+ * - A mutate function that you can call at any time to execute the mutation
357
+ * - An object with fields that represent the current status of the mutation's execution
358
+ *
359
+ * @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;
360
+ *
361
+ * @example
362
+ * const [markNotificationAsNewMutation, { data, loading, error }] = useMarkNotificationAsNewMutation({
363
+ * variables: {
364
+ * notificationId: // value for 'notificationId'
365
+ * },
366
+ * });
367
+ */
368
+ export declare function useMarkNotificationAsNewMutation(baseOptions?: Apollo.MutationHookOptions<IMarkNotificationAsNewMutation, IMarkNotificationAsNewMutationVariables>): Apollo.MutationTuple<IMarkNotificationAsNewMutation, Exact<{
369
+ notificationId: string;
370
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
371
+ export type MarkNotificationAsNewMutationHookResult = ReturnType<typeof useMarkNotificationAsNewMutation>;
372
+ export type MarkNotificationAsNewMutationResult = Apollo.MutationResult<IMarkNotificationAsNewMutation>;
373
+ export type MarkNotificationAsNewMutationOptions = Apollo.BaseMutationOptions<IMarkNotificationAsNewMutation, IMarkNotificationAsNewMutationVariables>;
374
+ export declare const MarkNotificationAsReadDocument: Apollo.DocumentNode;
375
+ export type IMarkNotificationAsReadMutationFn = Apollo.MutationFunction<IMarkNotificationAsReadMutation, IMarkNotificationAsReadMutationVariables>;
376
+ /**
377
+ * __useMarkNotificationAsReadMutation__
378
+ *
379
+ * To run a mutation, you first call `useMarkNotificationAsReadMutation` within a React component and pass it any options that fit your needs.
380
+ * When your component renders, `useMarkNotificationAsReadMutation` returns a tuple that includes:
381
+ * - A mutate function that you can call at any time to execute the mutation
382
+ * - An object with fields that represent the current status of the mutation's execution
383
+ *
384
+ * @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;
385
+ *
386
+ * @example
387
+ * const [markNotificationAsReadMutation, { data, loading, error }] = useMarkNotificationAsReadMutation({
388
+ * variables: {
389
+ * notificationId: // value for 'notificationId'
390
+ * },
391
+ * });
392
+ */
393
+ export declare function useMarkNotificationAsReadMutation(baseOptions?: Apollo.MutationHookOptions<IMarkNotificationAsReadMutation, IMarkNotificationAsReadMutationVariables>): Apollo.MutationTuple<IMarkNotificationAsReadMutation, Exact<{
394
+ notificationId: string;
395
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
396
+ export type MarkNotificationAsReadMutationHookResult = ReturnType<typeof useMarkNotificationAsReadMutation>;
397
+ export type MarkNotificationAsReadMutationResult = Apollo.MutationResult<IMarkNotificationAsReadMutation>;
398
+ export type MarkNotificationAsReadMutationOptions = Apollo.BaseMutationOptions<IMarkNotificationAsReadMutation, IMarkNotificationAsReadMutationVariables>;
399
+ export declare const MarkNotificationAsShownDocument: Apollo.DocumentNode;
400
+ export type IMarkNotificationAsShownMutationFn = Apollo.MutationFunction<IMarkNotificationAsShownMutation, IMarkNotificationAsShownMutationVariables>;
401
+ /**
402
+ * __useMarkNotificationAsShownMutation__
403
+ *
404
+ * To run a mutation, you first call `useMarkNotificationAsShownMutation` within a React component and pass it any options that fit your needs.
405
+ * When your component renders, `useMarkNotificationAsShownMutation` returns a tuple that includes:
406
+ * - A mutate function that you can call at any time to execute the mutation
407
+ * - An object with fields that represent the current status of the mutation's execution
408
+ *
409
+ * @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;
410
+ *
411
+ * @example
412
+ * const [markNotificationAsShownMutation, { data, loading, error }] = useMarkNotificationAsShownMutation({
413
+ * variables: {
414
+ * notificationId: // value for 'notificationId'
415
+ * },
416
+ * });
417
+ */
418
+ export declare function useMarkNotificationAsShownMutation(baseOptions?: Apollo.MutationHookOptions<IMarkNotificationAsShownMutation, IMarkNotificationAsShownMutationVariables>): Apollo.MutationTuple<IMarkNotificationAsShownMutation, Exact<{
419
+ notificationId: string;
420
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
421
+ export type MarkNotificationAsShownMutationHookResult = ReturnType<typeof useMarkNotificationAsShownMutation>;
422
+ export type MarkNotificationAsShownMutationResult = Apollo.MutationResult<IMarkNotificationAsShownMutation>;
423
+ export type MarkNotificationAsShownMutationOptions = Apollo.BaseMutationOptions<IMarkNotificationAsShownMutation, IMarkNotificationAsShownMutationVariables>;
424
+ export declare const StartFarmingDocument: Apollo.DocumentNode;
425
+ export type IStartFarmingMutationFn = Apollo.MutationFunction<IStartFarmingMutation, IStartFarmingMutationVariables>;
426
+ /**
427
+ * __useStartFarmingMutation__
428
+ *
429
+ * To run a mutation, you first call `useStartFarmingMutation` within a React component and pass it any options that fit your needs.
430
+ * When your component renders, `useStartFarmingMutation` returns a tuple that includes:
431
+ * - A mutate function that you can call at any time to execute the mutation
432
+ * - An object with fields that represent the current status of the mutation's execution
433
+ *
434
+ * @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;
435
+ *
436
+ * @example
437
+ * const [startFarmingMutation, { data, loading, error }] = useStartFarmingMutation({
438
+ * variables: {
439
+ * },
440
+ * });
441
+ */
442
+ export declare function useStartFarmingMutation(baseOptions?: Apollo.MutationHookOptions<IStartFarmingMutation, IStartFarmingMutationVariables>): Apollo.MutationTuple<IStartFarmingMutation, Exact<{
443
+ [key: string]: never;
444
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
445
+ export type StartFarmingMutationHookResult = ReturnType<typeof useStartFarmingMutation>;
446
+ export type StartFarmingMutationResult = Apollo.MutationResult<IStartFarmingMutation>;
447
+ export type StartFarmingMutationOptions = Apollo.BaseMutationOptions<IStartFarmingMutation, IStartFarmingMutationVariables>;
448
+ export declare const FetchFrensDataDocument: Apollo.DocumentNode;
449
+ /**
450
+ * __useFetchFrensDataQuery__
451
+ *
452
+ * To run a query within a React component, call `useFetchFrensDataQuery` and pass it any options that fit your needs.
453
+ * When your component renders, `useFetchFrensDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
454
+ * you can use to render your UI.
455
+ *
456
+ * @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;
457
+ *
458
+ * @example
459
+ * const { data, loading, error } = useFetchFrensDataQuery({
460
+ * variables: {
461
+ * },
462
+ * });
463
+ */
464
+ export declare function useFetchFrensDataQuery(baseOptions?: Apollo.QueryHookOptions<IFetchFrensDataQuery, IFetchFrensDataQueryVariables>): Apollo.QueryResult<IFetchFrensDataQuery, Exact<{
465
+ [key: string]: never;
466
+ }>>;
467
+ export declare function useFetchFrensDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchFrensDataQuery, IFetchFrensDataQueryVariables>): Apollo.LazyQueryResultTuple<IFetchFrensDataQuery, Exact<{
468
+ [key: string]: never;
469
+ }>>;
470
+ export type FetchFrensDataQueryHookResult = ReturnType<typeof useFetchFrensDataQuery>;
471
+ export type FetchFrensDataLazyQueryHookResult = ReturnType<typeof useFetchFrensDataLazyQuery>;
472
+ export type FetchFrensDataQueryResult = Apollo.QueryResult<IFetchFrensDataQuery, IFetchFrensDataQueryVariables>;
473
+ export declare const FetchPlayerStateDocument: Apollo.DocumentNode;
474
+ /**
475
+ * __useFetchPlayerStateQuery__
476
+ *
477
+ * To run a query within a React component, call `useFetchPlayerStateQuery` and pass it any options that fit your needs.
478
+ * When your component renders, `useFetchPlayerStateQuery` returns an object from Apollo Client that contains loading, error, and data properties
479
+ * you can use to render your UI.
480
+ *
481
+ * @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;
482
+ *
483
+ * @example
484
+ * const { data, loading, error } = useFetchPlayerStateQuery({
485
+ * variables: {
486
+ * },
487
+ * });
488
+ */
489
+ export declare function useFetchPlayerStateQuery(baseOptions?: Apollo.QueryHookOptions<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>): Apollo.QueryResult<IFetchPlayerStateQuery, Exact<{
490
+ [key: string]: never;
491
+ }>>;
492
+ export declare function useFetchPlayerStateLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>): Apollo.LazyQueryResultTuple<IFetchPlayerStateQuery, Exact<{
493
+ [key: string]: never;
494
+ }>>;
495
+ export type FetchPlayerStateQueryHookResult = ReturnType<typeof useFetchPlayerStateQuery>;
496
+ export type FetchPlayerStateLazyQueryHookResult = ReturnType<typeof useFetchPlayerStateLazyQuery>;
497
+ export type FetchPlayerStateQueryResult = Apollo.QueryResult<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>;
498
+ export declare const OnPlayerStateUpdatedDocument: Apollo.DocumentNode;
499
+ /**
500
+ * __useOnPlayerStateUpdatedSubscription__
501
+ *
502
+ * To run a query within a React component, call `useOnPlayerStateUpdatedSubscription` and pass it any options that fit your needs.
503
+ * When your component renders, `useOnPlayerStateUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
504
+ * you can use to render your UI.
505
+ *
506
+ * @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
507
+ *
508
+ * @example
509
+ * const { data, loading, error } = useOnPlayerStateUpdatedSubscription({
510
+ * variables: {
511
+ * authToken: // value for 'authToken'
512
+ * },
513
+ * });
514
+ */
515
+ export declare function useOnPlayerStateUpdatedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnPlayerStateUpdatedSubscription, IOnPlayerStateUpdatedSubscriptionVariables>): {
516
+ restart(): void;
517
+ loading: boolean;
518
+ data?: IOnPlayerStateUpdatedSubscription | undefined;
519
+ error?: Apollo.ApolloError | undefined;
520
+ variables?: Exact<{
521
+ authToken: string;
522
+ }> | undefined;
523
+ };
524
+ export type OnPlayerStateUpdatedSubscriptionHookResult = ReturnType<typeof useOnPlayerStateUpdatedSubscription>;
525
+ export type OnPlayerStateUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnPlayerStateUpdatedSubscription>;