@ludo.ninja/api 2.8.71 → 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.
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +183 -0
- package/build/graphql_tools/__generated__/adminHost/schema.js +133 -2
- package/build/graphql_tools/__generated__/tapHost/schema.d.ts +525 -0
- package/build/graphql_tools/__generated__/tapHost/schema.js +315 -0
- package/build/index.d.ts +44 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +230 -0
- package/src/graphql_tools/__generated__/tapHost/schema.ts +698 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,698 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
|
3
|
+
import { gql } from '@apollo/client';
|
|
4
|
+
import * as Apollo from '@apollo/client';
|
|
5
|
+
export type Maybe<T> = T | null;
|
|
6
|
+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
7
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
8
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
9
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };
|
|
10
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
11
|
+
export type Scalars = {
|
|
12
|
+
ID: string;
|
|
13
|
+
String: string;
|
|
14
|
+
Boolean: boolean;
|
|
15
|
+
Int: number;
|
|
16
|
+
Float: number;
|
|
17
|
+
/** A 64-bit signed integer */
|
|
18
|
+
Long: any;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export type IActiveInviteCode = {
|
|
23
|
+
code: Scalars['String'];
|
|
24
|
+
usedTimes: Scalars['Int'];
|
|
25
|
+
maxUsagesLimit: Scalars['Int'];
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type IFarmingTask = {
|
|
29
|
+
taskId: Scalars['ID'];
|
|
30
|
+
status: Scalars['String'];
|
|
31
|
+
startedAt: Scalars['Long'];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type IFrensData = {
|
|
35
|
+
activeInviteCodes: Array<IActiveInviteCode>;
|
|
36
|
+
joinedFriends: Array<IFriend>;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type IFriend = {
|
|
40
|
+
userId: Scalars['ID'];
|
|
41
|
+
ludoUsername?: Maybe<Scalars['String']>;
|
|
42
|
+
isAPlayer: Scalars['Boolean'];
|
|
43
|
+
coins?: Maybe<Scalars['Int']>;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
export type IMutation = {
|
|
48
|
+
setDummy: Scalars['String'];
|
|
49
|
+
startFarming: Scalars['Boolean'];
|
|
50
|
+
claimFarmingReward: Scalars['Boolean'];
|
|
51
|
+
confirmStreakNotificationHasBeenRead: Scalars['Boolean'];
|
|
52
|
+
markNotificationAsShown: Scalars['Boolean'];
|
|
53
|
+
markNotificationAsRead: Scalars['Boolean'];
|
|
54
|
+
markNotificationAsNew: Scalars['Boolean'];
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
export type IMutationConfirmStreakNotificationHasBeenReadArgs = {
|
|
59
|
+
streakId: Scalars['ID'];
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
export type IMutationMarkNotificationAsShownArgs = {
|
|
64
|
+
notificationId: Scalars['ID'];
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
export type IMutationMarkNotificationAsReadArgs = {
|
|
69
|
+
notificationId: Scalars['ID'];
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
export type IMutationMarkNotificationAsNewArgs = {
|
|
74
|
+
notificationId: Scalars['ID'];
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export type INotification = {
|
|
78
|
+
notificationId: Scalars['ID'];
|
|
79
|
+
status: Scalars['String'];
|
|
80
|
+
text: Scalars['String'];
|
|
81
|
+
createdAt: Scalars['Long'];
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type IPlayerState = {
|
|
85
|
+
userId: Scalars['ID'];
|
|
86
|
+
coins: Scalars['Int'];
|
|
87
|
+
farmingTask?: Maybe<IFarmingTask>;
|
|
88
|
+
playingStreaks: Array<IPlayingStreak>;
|
|
89
|
+
notifications: Array<INotification>;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export type IPlayingStreak = {
|
|
93
|
+
streakId: Scalars['ID'];
|
|
94
|
+
status: Scalars['String'];
|
|
95
|
+
type: Scalars['String'];
|
|
96
|
+
startedAt: Scalars['Long'];
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export type IQuery = {
|
|
100
|
+
getDummy: Scalars['String'];
|
|
101
|
+
fetchPlayerState: IPlayerState;
|
|
102
|
+
fetchFrensData: IFrensData;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export type ISubscription = {
|
|
106
|
+
onDummy: Scalars['String'];
|
|
107
|
+
onPlayerStateUpdated: IPlayerState;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
export type ISubscriptionOnPlayerStateUpdatedArgs = {
|
|
112
|
+
authToken: Scalars['String'];
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
121
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
122
|
+
};
|
|
123
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
124
|
+
|
|
125
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (
|
|
126
|
+
parent: TParent,
|
|
127
|
+
args: TArgs,
|
|
128
|
+
context: TContext,
|
|
129
|
+
info: GraphQLResolveInfo
|
|
130
|
+
) => Promise<TResult> | TResult;
|
|
131
|
+
|
|
132
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
|
|
133
|
+
parent: TParent,
|
|
134
|
+
args: TArgs,
|
|
135
|
+
context: TContext,
|
|
136
|
+
info: GraphQLResolveInfo
|
|
137
|
+
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
138
|
+
|
|
139
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
|
|
140
|
+
parent: TParent,
|
|
141
|
+
args: TArgs,
|
|
142
|
+
context: TContext,
|
|
143
|
+
info: GraphQLResolveInfo
|
|
144
|
+
) => TResult | Promise<TResult>;
|
|
145
|
+
|
|
146
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
147
|
+
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
|
|
148
|
+
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
152
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
153
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
|
|
157
|
+
| SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
|
|
158
|
+
| SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
159
|
+
|
|
160
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
|
|
161
|
+
| ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
|
|
162
|
+
| SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
163
|
+
|
|
164
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
|
|
165
|
+
parent: TParent,
|
|
166
|
+
context: TContext,
|
|
167
|
+
info: GraphQLResolveInfo
|
|
168
|
+
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
169
|
+
|
|
170
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
171
|
+
|
|
172
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
173
|
+
|
|
174
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
|
|
175
|
+
next: NextResolverFn<TResult>,
|
|
176
|
+
parent: TParent,
|
|
177
|
+
args: TArgs,
|
|
178
|
+
context: TContext,
|
|
179
|
+
info: GraphQLResolveInfo
|
|
180
|
+
) => TResult | Promise<TResult>;
|
|
181
|
+
|
|
182
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
183
|
+
export type IResolversTypes = {
|
|
184
|
+
ActiveInviteCode: ResolverTypeWrapper<IActiveInviteCode>;
|
|
185
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
186
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
187
|
+
FarmingTask: ResolverTypeWrapper<IFarmingTask>;
|
|
188
|
+
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
189
|
+
FrensData: ResolverTypeWrapper<IFrensData>;
|
|
190
|
+
Friend: ResolverTypeWrapper<IFriend>;
|
|
191
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
192
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
193
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
194
|
+
Notification: ResolverTypeWrapper<INotification>;
|
|
195
|
+
PlayerState: ResolverTypeWrapper<IPlayerState>;
|
|
196
|
+
PlayingStreak: ResolverTypeWrapper<IPlayingStreak>;
|
|
197
|
+
Query: ResolverTypeWrapper<{}>;
|
|
198
|
+
Subscription: ResolverTypeWrapper<{}>;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
202
|
+
export type IResolversParentTypes = {
|
|
203
|
+
ActiveInviteCode: IActiveInviteCode;
|
|
204
|
+
String: Scalars['String'];
|
|
205
|
+
Int: Scalars['Int'];
|
|
206
|
+
FarmingTask: IFarmingTask;
|
|
207
|
+
ID: Scalars['ID'];
|
|
208
|
+
FrensData: IFrensData;
|
|
209
|
+
Friend: IFriend;
|
|
210
|
+
Boolean: Scalars['Boolean'];
|
|
211
|
+
Long: Scalars['Long'];
|
|
212
|
+
Mutation: {};
|
|
213
|
+
Notification: INotification;
|
|
214
|
+
PlayerState: IPlayerState;
|
|
215
|
+
PlayingStreak: IPlayingStreak;
|
|
216
|
+
Query: {};
|
|
217
|
+
Subscription: {};
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export type IOneOfDirectiveArgs = { };
|
|
221
|
+
|
|
222
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
223
|
+
|
|
224
|
+
export type IActiveInviteCodeResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActiveInviteCode'] = IResolversParentTypes['ActiveInviteCode']> = {
|
|
225
|
+
code?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
226
|
+
usedTimes?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
227
|
+
maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
228
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export type IFarmingTaskResolvers<ContextType = any, ParentType extends IResolversParentTypes['FarmingTask'] = IResolversParentTypes['FarmingTask']> = {
|
|
232
|
+
taskId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
233
|
+
status?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
234
|
+
startedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
235
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
export type IFrensDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['FrensData'] = IResolversParentTypes['FrensData']> = {
|
|
239
|
+
activeInviteCodes?: Resolver<Array<IResolversTypes['ActiveInviteCode']>, ParentType, ContextType>;
|
|
240
|
+
joinedFriends?: Resolver<Array<IResolversTypes['Friend']>, ParentType, ContextType>;
|
|
241
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
export type IFriendResolvers<ContextType = any, ParentType extends IResolversParentTypes['Friend'] = IResolversParentTypes['Friend']> = {
|
|
245
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
246
|
+
ludoUsername?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
247
|
+
isAPlayer?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
248
|
+
coins?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
249
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
253
|
+
name: 'Long';
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
257
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
258
|
+
startFarming?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
259
|
+
claimFarmingReward?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
260
|
+
confirmStreakNotificationHasBeenRead?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationConfirmStreakNotificationHasBeenReadArgs, 'streakId'>>;
|
|
261
|
+
markNotificationAsShown?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsShownArgs, 'notificationId'>>;
|
|
262
|
+
markNotificationAsRead?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsReadArgs, 'notificationId'>>;
|
|
263
|
+
markNotificationAsNew?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsNewArgs, 'notificationId'>>;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
export type INotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Notification'] = IResolversParentTypes['Notification']> = {
|
|
267
|
+
notificationId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
268
|
+
status?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
269
|
+
text?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
270
|
+
createdAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
271
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
export type IPlayerStateResolvers<ContextType = any, ParentType extends IResolversParentTypes['PlayerState'] = IResolversParentTypes['PlayerState']> = {
|
|
275
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
276
|
+
coins?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
277
|
+
farmingTask?: Resolver<Maybe<IResolversTypes['FarmingTask']>, ParentType, ContextType>;
|
|
278
|
+
playingStreaks?: Resolver<Array<IResolversTypes['PlayingStreak']>, ParentType, ContextType>;
|
|
279
|
+
notifications?: Resolver<Array<IResolversTypes['Notification']>, ParentType, ContextType>;
|
|
280
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
export type IPlayingStreakResolvers<ContextType = any, ParentType extends IResolversParentTypes['PlayingStreak'] = IResolversParentTypes['PlayingStreak']> = {
|
|
284
|
+
streakId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
285
|
+
status?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
286
|
+
type?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
287
|
+
startedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
288
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
292
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
293
|
+
fetchPlayerState?: Resolver<IResolversTypes['PlayerState'], ParentType, ContextType>;
|
|
294
|
+
fetchFrensData?: Resolver<IResolversTypes['FrensData'], ParentType, ContextType>;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
298
|
+
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
299
|
+
onPlayerStateUpdated?: SubscriptionResolver<IResolversTypes['PlayerState'], "onPlayerStateUpdated", ParentType, ContextType, RequireFields<ISubscriptionOnPlayerStateUpdatedArgs, 'authToken'>>;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
export type IResolvers<ContextType = any> = {
|
|
303
|
+
ActiveInviteCode?: IActiveInviteCodeResolvers<ContextType>;
|
|
304
|
+
FarmingTask?: IFarmingTaskResolvers<ContextType>;
|
|
305
|
+
FrensData?: IFrensDataResolvers<ContextType>;
|
|
306
|
+
Friend?: IFriendResolvers<ContextType>;
|
|
307
|
+
Long?: GraphQLScalarType;
|
|
308
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
309
|
+
Notification?: INotificationResolvers<ContextType>;
|
|
310
|
+
PlayerState?: IPlayerStateResolvers<ContextType>;
|
|
311
|
+
PlayingStreak?: IPlayingStreakResolvers<ContextType>;
|
|
312
|
+
Query?: IQueryResolvers<ContextType>;
|
|
313
|
+
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
317
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
export type IClaimFarmingRewardMutationVariables = Exact<{ [key: string]: never; }>;
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
export type IClaimFarmingRewardMutation = Pick<IMutation, 'claimFarmingReward'>;
|
|
324
|
+
|
|
325
|
+
export type IConfirmStreakNotificationHasBeenReadMutationVariables = Exact<{
|
|
326
|
+
streakId: Scalars['ID'];
|
|
327
|
+
}>;
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
export type IConfirmStreakNotificationHasBeenReadMutation = Pick<IMutation, 'confirmStreakNotificationHasBeenRead'>;
|
|
331
|
+
|
|
332
|
+
export type IMarkNotificationAsNewMutationVariables = Exact<{
|
|
333
|
+
notificationId: Scalars['ID'];
|
|
334
|
+
}>;
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
export type IMarkNotificationAsNewMutation = Pick<IMutation, 'markNotificationAsNew'>;
|
|
338
|
+
|
|
339
|
+
export type IMarkNotificationAsReadMutationVariables = Exact<{
|
|
340
|
+
notificationId: Scalars['ID'];
|
|
341
|
+
}>;
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
export type IMarkNotificationAsReadMutation = Pick<IMutation, 'markNotificationAsRead'>;
|
|
345
|
+
|
|
346
|
+
export type IMarkNotificationAsShownMutationVariables = Exact<{
|
|
347
|
+
notificationId: Scalars['ID'];
|
|
348
|
+
}>;
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
export type IMarkNotificationAsShownMutation = Pick<IMutation, 'markNotificationAsShown'>;
|
|
352
|
+
|
|
353
|
+
export type IStartFarmingMutationVariables = Exact<{ [key: string]: never; }>;
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
export type IStartFarmingMutation = Pick<IMutation, 'startFarming'>;
|
|
357
|
+
|
|
358
|
+
export type IFetchFrensDataQueryVariables = Exact<{ [key: string]: never; }>;
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
export type IFetchFrensDataQuery = { fetchFrensData: { activeInviteCodes: Array<Pick<IActiveInviteCode, 'code' | 'usedTimes' | 'maxUsagesLimit'>>, joinedFriends: Array<Pick<IFriend, 'userId' | 'ludoUsername' | 'isAPlayer' | 'coins'>> } };
|
|
362
|
+
|
|
363
|
+
export type IFetchPlayerStateQueryVariables = Exact<{ [key: string]: never; }>;
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
export type IFetchPlayerStateQuery = { fetchPlayerState: (
|
|
367
|
+
Pick<IPlayerState, 'userId' | 'coins'>
|
|
368
|
+
& { farmingTask?: Maybe<Pick<IFarmingTask, 'taskId' | 'status' | 'startedAt'>>, playingStreaks: Array<Pick<IPlayingStreak, 'streakId' | 'status' | 'type' | 'startedAt'>>, notifications: Array<Pick<INotification, 'notificationId' | 'status' | 'text' | 'createdAt'>> }
|
|
369
|
+
) };
|
|
370
|
+
|
|
371
|
+
export type IOnPlayerStateUpdatedSubscriptionVariables = Exact<{
|
|
372
|
+
authToken: Scalars['String'];
|
|
373
|
+
}>;
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
export type IOnPlayerStateUpdatedSubscription = { onPlayerStateUpdated: (
|
|
377
|
+
Pick<IPlayerState, 'userId' | 'coins'>
|
|
378
|
+
& { farmingTask?: Maybe<Pick<IFarmingTask, 'taskId' | 'status' | 'startedAt'>>, playingStreaks: Array<Pick<IPlayingStreak, 'streakId' | 'status' | 'type' | 'startedAt'>>, notifications: Array<Pick<INotification, 'notificationId' | 'status' | 'text' | 'createdAt'>> }
|
|
379
|
+
) };
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
export const ClaimFarmingRewardDocument = gql`
|
|
383
|
+
mutation ClaimFarmingReward {
|
|
384
|
+
claimFarmingReward
|
|
385
|
+
}
|
|
386
|
+
`;
|
|
387
|
+
export type IClaimFarmingRewardMutationFn = Apollo.MutationFunction<IClaimFarmingRewardMutation, IClaimFarmingRewardMutationVariables>;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* __useClaimFarmingRewardMutation__
|
|
391
|
+
*
|
|
392
|
+
* To run a mutation, you first call `useClaimFarmingRewardMutation` within a React component and pass it any options that fit your needs.
|
|
393
|
+
* When your component renders, `useClaimFarmingRewardMutation` returns a tuple that includes:
|
|
394
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
395
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
396
|
+
*
|
|
397
|
+
* @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;
|
|
398
|
+
*
|
|
399
|
+
* @example
|
|
400
|
+
* const [claimFarmingRewardMutation, { data, loading, error }] = useClaimFarmingRewardMutation({
|
|
401
|
+
* variables: {
|
|
402
|
+
* },
|
|
403
|
+
* });
|
|
404
|
+
*/
|
|
405
|
+
export function useClaimFarmingRewardMutation(baseOptions?: Apollo.MutationHookOptions<IClaimFarmingRewardMutation, IClaimFarmingRewardMutationVariables>) {
|
|
406
|
+
return Apollo.useMutation<IClaimFarmingRewardMutation, IClaimFarmingRewardMutationVariables>(ClaimFarmingRewardDocument, baseOptions);
|
|
407
|
+
}
|
|
408
|
+
export type ClaimFarmingRewardMutationHookResult = ReturnType<typeof useClaimFarmingRewardMutation>;
|
|
409
|
+
export type ClaimFarmingRewardMutationResult = Apollo.MutationResult<IClaimFarmingRewardMutation>;
|
|
410
|
+
export type ClaimFarmingRewardMutationOptions = Apollo.BaseMutationOptions<IClaimFarmingRewardMutation, IClaimFarmingRewardMutationVariables>;
|
|
411
|
+
export const ConfirmStreakNotificationHasBeenReadDocument = gql`
|
|
412
|
+
mutation ConfirmStreakNotificationHasBeenRead($streakId: ID!) {
|
|
413
|
+
confirmStreakNotificationHasBeenRead(streakId: $streakId)
|
|
414
|
+
}
|
|
415
|
+
`;
|
|
416
|
+
export type IConfirmStreakNotificationHasBeenReadMutationFn = Apollo.MutationFunction<IConfirmStreakNotificationHasBeenReadMutation, IConfirmStreakNotificationHasBeenReadMutationVariables>;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* __useConfirmStreakNotificationHasBeenReadMutation__
|
|
420
|
+
*
|
|
421
|
+
* To run a mutation, you first call `useConfirmStreakNotificationHasBeenReadMutation` within a React component and pass it any options that fit your needs.
|
|
422
|
+
* When your component renders, `useConfirmStreakNotificationHasBeenReadMutation` returns a tuple that includes:
|
|
423
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
424
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
425
|
+
*
|
|
426
|
+
* @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;
|
|
427
|
+
*
|
|
428
|
+
* @example
|
|
429
|
+
* const [confirmStreakNotificationHasBeenReadMutation, { data, loading, error }] = useConfirmStreakNotificationHasBeenReadMutation({
|
|
430
|
+
* variables: {
|
|
431
|
+
* streakId: // value for 'streakId'
|
|
432
|
+
* },
|
|
433
|
+
* });
|
|
434
|
+
*/
|
|
435
|
+
export function useConfirmStreakNotificationHasBeenReadMutation(baseOptions?: Apollo.MutationHookOptions<IConfirmStreakNotificationHasBeenReadMutation, IConfirmStreakNotificationHasBeenReadMutationVariables>) {
|
|
436
|
+
return Apollo.useMutation<IConfirmStreakNotificationHasBeenReadMutation, IConfirmStreakNotificationHasBeenReadMutationVariables>(ConfirmStreakNotificationHasBeenReadDocument, baseOptions);
|
|
437
|
+
}
|
|
438
|
+
export type ConfirmStreakNotificationHasBeenReadMutationHookResult = ReturnType<typeof useConfirmStreakNotificationHasBeenReadMutation>;
|
|
439
|
+
export type ConfirmStreakNotificationHasBeenReadMutationResult = Apollo.MutationResult<IConfirmStreakNotificationHasBeenReadMutation>;
|
|
440
|
+
export type ConfirmStreakNotificationHasBeenReadMutationOptions = Apollo.BaseMutationOptions<IConfirmStreakNotificationHasBeenReadMutation, IConfirmStreakNotificationHasBeenReadMutationVariables>;
|
|
441
|
+
export const MarkNotificationAsNewDocument = gql`
|
|
442
|
+
mutation MarkNotificationAsNew($notificationId: ID!) {
|
|
443
|
+
markNotificationAsNew(notificationId: $notificationId)
|
|
444
|
+
}
|
|
445
|
+
`;
|
|
446
|
+
export type IMarkNotificationAsNewMutationFn = Apollo.MutationFunction<IMarkNotificationAsNewMutation, IMarkNotificationAsNewMutationVariables>;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* __useMarkNotificationAsNewMutation__
|
|
450
|
+
*
|
|
451
|
+
* To run a mutation, you first call `useMarkNotificationAsNewMutation` within a React component and pass it any options that fit your needs.
|
|
452
|
+
* When your component renders, `useMarkNotificationAsNewMutation` returns a tuple that includes:
|
|
453
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
454
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
455
|
+
*
|
|
456
|
+
* @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;
|
|
457
|
+
*
|
|
458
|
+
* @example
|
|
459
|
+
* const [markNotificationAsNewMutation, { data, loading, error }] = useMarkNotificationAsNewMutation({
|
|
460
|
+
* variables: {
|
|
461
|
+
* notificationId: // value for 'notificationId'
|
|
462
|
+
* },
|
|
463
|
+
* });
|
|
464
|
+
*/
|
|
465
|
+
export function useMarkNotificationAsNewMutation(baseOptions?: Apollo.MutationHookOptions<IMarkNotificationAsNewMutation, IMarkNotificationAsNewMutationVariables>) {
|
|
466
|
+
return Apollo.useMutation<IMarkNotificationAsNewMutation, IMarkNotificationAsNewMutationVariables>(MarkNotificationAsNewDocument, baseOptions);
|
|
467
|
+
}
|
|
468
|
+
export type MarkNotificationAsNewMutationHookResult = ReturnType<typeof useMarkNotificationAsNewMutation>;
|
|
469
|
+
export type MarkNotificationAsNewMutationResult = Apollo.MutationResult<IMarkNotificationAsNewMutation>;
|
|
470
|
+
export type MarkNotificationAsNewMutationOptions = Apollo.BaseMutationOptions<IMarkNotificationAsNewMutation, IMarkNotificationAsNewMutationVariables>;
|
|
471
|
+
export const MarkNotificationAsReadDocument = gql`
|
|
472
|
+
mutation MarkNotificationAsRead($notificationId: ID!) {
|
|
473
|
+
markNotificationAsRead(notificationId: $notificationId)
|
|
474
|
+
}
|
|
475
|
+
`;
|
|
476
|
+
export type IMarkNotificationAsReadMutationFn = Apollo.MutationFunction<IMarkNotificationAsReadMutation, IMarkNotificationAsReadMutationVariables>;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* __useMarkNotificationAsReadMutation__
|
|
480
|
+
*
|
|
481
|
+
* To run a mutation, you first call `useMarkNotificationAsReadMutation` within a React component and pass it any options that fit your needs.
|
|
482
|
+
* When your component renders, `useMarkNotificationAsReadMutation` returns a tuple that includes:
|
|
483
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
484
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
485
|
+
*
|
|
486
|
+
* @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;
|
|
487
|
+
*
|
|
488
|
+
* @example
|
|
489
|
+
* const [markNotificationAsReadMutation, { data, loading, error }] = useMarkNotificationAsReadMutation({
|
|
490
|
+
* variables: {
|
|
491
|
+
* notificationId: // value for 'notificationId'
|
|
492
|
+
* },
|
|
493
|
+
* });
|
|
494
|
+
*/
|
|
495
|
+
export function useMarkNotificationAsReadMutation(baseOptions?: Apollo.MutationHookOptions<IMarkNotificationAsReadMutation, IMarkNotificationAsReadMutationVariables>) {
|
|
496
|
+
return Apollo.useMutation<IMarkNotificationAsReadMutation, IMarkNotificationAsReadMutationVariables>(MarkNotificationAsReadDocument, baseOptions);
|
|
497
|
+
}
|
|
498
|
+
export type MarkNotificationAsReadMutationHookResult = ReturnType<typeof useMarkNotificationAsReadMutation>;
|
|
499
|
+
export type MarkNotificationAsReadMutationResult = Apollo.MutationResult<IMarkNotificationAsReadMutation>;
|
|
500
|
+
export type MarkNotificationAsReadMutationOptions = Apollo.BaseMutationOptions<IMarkNotificationAsReadMutation, IMarkNotificationAsReadMutationVariables>;
|
|
501
|
+
export const MarkNotificationAsShownDocument = gql`
|
|
502
|
+
mutation MarkNotificationAsShown($notificationId: ID!) {
|
|
503
|
+
markNotificationAsShown(notificationId: $notificationId)
|
|
504
|
+
}
|
|
505
|
+
`;
|
|
506
|
+
export type IMarkNotificationAsShownMutationFn = Apollo.MutationFunction<IMarkNotificationAsShownMutation, IMarkNotificationAsShownMutationVariables>;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* __useMarkNotificationAsShownMutation__
|
|
510
|
+
*
|
|
511
|
+
* To run a mutation, you first call `useMarkNotificationAsShownMutation` within a React component and pass it any options that fit your needs.
|
|
512
|
+
* When your component renders, `useMarkNotificationAsShownMutation` returns a tuple that includes:
|
|
513
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
514
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
515
|
+
*
|
|
516
|
+
* @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;
|
|
517
|
+
*
|
|
518
|
+
* @example
|
|
519
|
+
* const [markNotificationAsShownMutation, { data, loading, error }] = useMarkNotificationAsShownMutation({
|
|
520
|
+
* variables: {
|
|
521
|
+
* notificationId: // value for 'notificationId'
|
|
522
|
+
* },
|
|
523
|
+
* });
|
|
524
|
+
*/
|
|
525
|
+
export function useMarkNotificationAsShownMutation(baseOptions?: Apollo.MutationHookOptions<IMarkNotificationAsShownMutation, IMarkNotificationAsShownMutationVariables>) {
|
|
526
|
+
return Apollo.useMutation<IMarkNotificationAsShownMutation, IMarkNotificationAsShownMutationVariables>(MarkNotificationAsShownDocument, baseOptions);
|
|
527
|
+
}
|
|
528
|
+
export type MarkNotificationAsShownMutationHookResult = ReturnType<typeof useMarkNotificationAsShownMutation>;
|
|
529
|
+
export type MarkNotificationAsShownMutationResult = Apollo.MutationResult<IMarkNotificationAsShownMutation>;
|
|
530
|
+
export type MarkNotificationAsShownMutationOptions = Apollo.BaseMutationOptions<IMarkNotificationAsShownMutation, IMarkNotificationAsShownMutationVariables>;
|
|
531
|
+
export const StartFarmingDocument = gql`
|
|
532
|
+
mutation StartFarming {
|
|
533
|
+
startFarming
|
|
534
|
+
}
|
|
535
|
+
`;
|
|
536
|
+
export type IStartFarmingMutationFn = Apollo.MutationFunction<IStartFarmingMutation, IStartFarmingMutationVariables>;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* __useStartFarmingMutation__
|
|
540
|
+
*
|
|
541
|
+
* To run a mutation, you first call `useStartFarmingMutation` within a React component and pass it any options that fit your needs.
|
|
542
|
+
* When your component renders, `useStartFarmingMutation` returns a tuple that includes:
|
|
543
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
544
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
545
|
+
*
|
|
546
|
+
* @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;
|
|
547
|
+
*
|
|
548
|
+
* @example
|
|
549
|
+
* const [startFarmingMutation, { data, loading, error }] = useStartFarmingMutation({
|
|
550
|
+
* variables: {
|
|
551
|
+
* },
|
|
552
|
+
* });
|
|
553
|
+
*/
|
|
554
|
+
export function useStartFarmingMutation(baseOptions?: Apollo.MutationHookOptions<IStartFarmingMutation, IStartFarmingMutationVariables>) {
|
|
555
|
+
return Apollo.useMutation<IStartFarmingMutation, IStartFarmingMutationVariables>(StartFarmingDocument, baseOptions);
|
|
556
|
+
}
|
|
557
|
+
export type StartFarmingMutationHookResult = ReturnType<typeof useStartFarmingMutation>;
|
|
558
|
+
export type StartFarmingMutationResult = Apollo.MutationResult<IStartFarmingMutation>;
|
|
559
|
+
export type StartFarmingMutationOptions = Apollo.BaseMutationOptions<IStartFarmingMutation, IStartFarmingMutationVariables>;
|
|
560
|
+
export const FetchFrensDataDocument = gql`
|
|
561
|
+
query FetchFrensData {
|
|
562
|
+
fetchFrensData {
|
|
563
|
+
activeInviteCodes {
|
|
564
|
+
code
|
|
565
|
+
usedTimes
|
|
566
|
+
maxUsagesLimit
|
|
567
|
+
}
|
|
568
|
+
joinedFriends {
|
|
569
|
+
userId
|
|
570
|
+
ludoUsername
|
|
571
|
+
isAPlayer
|
|
572
|
+
coins
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
`;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* __useFetchFrensDataQuery__
|
|
580
|
+
*
|
|
581
|
+
* To run a query within a React component, call `useFetchFrensDataQuery` and pass it any options that fit your needs.
|
|
582
|
+
* When your component renders, `useFetchFrensDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
583
|
+
* you can use to render your UI.
|
|
584
|
+
*
|
|
585
|
+
* @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;
|
|
586
|
+
*
|
|
587
|
+
* @example
|
|
588
|
+
* const { data, loading, error } = useFetchFrensDataQuery({
|
|
589
|
+
* variables: {
|
|
590
|
+
* },
|
|
591
|
+
* });
|
|
592
|
+
*/
|
|
593
|
+
export function useFetchFrensDataQuery(baseOptions?: Apollo.QueryHookOptions<IFetchFrensDataQuery, IFetchFrensDataQueryVariables>) {
|
|
594
|
+
return Apollo.useQuery<IFetchFrensDataQuery, IFetchFrensDataQueryVariables>(FetchFrensDataDocument, baseOptions);
|
|
595
|
+
}
|
|
596
|
+
export function useFetchFrensDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchFrensDataQuery, IFetchFrensDataQueryVariables>) {
|
|
597
|
+
return Apollo.useLazyQuery<IFetchFrensDataQuery, IFetchFrensDataQueryVariables>(FetchFrensDataDocument, baseOptions);
|
|
598
|
+
}
|
|
599
|
+
export type FetchFrensDataQueryHookResult = ReturnType<typeof useFetchFrensDataQuery>;
|
|
600
|
+
export type FetchFrensDataLazyQueryHookResult = ReturnType<typeof useFetchFrensDataLazyQuery>;
|
|
601
|
+
export type FetchFrensDataQueryResult = Apollo.QueryResult<IFetchFrensDataQuery, IFetchFrensDataQueryVariables>;
|
|
602
|
+
export const FetchPlayerStateDocument = gql`
|
|
603
|
+
query FetchPlayerState {
|
|
604
|
+
fetchPlayerState {
|
|
605
|
+
userId
|
|
606
|
+
coins
|
|
607
|
+
farmingTask {
|
|
608
|
+
taskId
|
|
609
|
+
status
|
|
610
|
+
startedAt
|
|
611
|
+
}
|
|
612
|
+
playingStreaks {
|
|
613
|
+
streakId
|
|
614
|
+
status
|
|
615
|
+
type
|
|
616
|
+
startedAt
|
|
617
|
+
}
|
|
618
|
+
notifications {
|
|
619
|
+
notificationId
|
|
620
|
+
status
|
|
621
|
+
text
|
|
622
|
+
createdAt
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
`;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* __useFetchPlayerStateQuery__
|
|
630
|
+
*
|
|
631
|
+
* To run a query within a React component, call `useFetchPlayerStateQuery` and pass it any options that fit your needs.
|
|
632
|
+
* When your component renders, `useFetchPlayerStateQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
633
|
+
* you can use to render your UI.
|
|
634
|
+
*
|
|
635
|
+
* @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;
|
|
636
|
+
*
|
|
637
|
+
* @example
|
|
638
|
+
* const { data, loading, error } = useFetchPlayerStateQuery({
|
|
639
|
+
* variables: {
|
|
640
|
+
* },
|
|
641
|
+
* });
|
|
642
|
+
*/
|
|
643
|
+
export function useFetchPlayerStateQuery(baseOptions?: Apollo.QueryHookOptions<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>) {
|
|
644
|
+
return Apollo.useQuery<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>(FetchPlayerStateDocument, baseOptions);
|
|
645
|
+
}
|
|
646
|
+
export function useFetchPlayerStateLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>) {
|
|
647
|
+
return Apollo.useLazyQuery<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>(FetchPlayerStateDocument, baseOptions);
|
|
648
|
+
}
|
|
649
|
+
export type FetchPlayerStateQueryHookResult = ReturnType<typeof useFetchPlayerStateQuery>;
|
|
650
|
+
export type FetchPlayerStateLazyQueryHookResult = ReturnType<typeof useFetchPlayerStateLazyQuery>;
|
|
651
|
+
export type FetchPlayerStateQueryResult = Apollo.QueryResult<IFetchPlayerStateQuery, IFetchPlayerStateQueryVariables>;
|
|
652
|
+
export const OnPlayerStateUpdatedDocument = gql`
|
|
653
|
+
subscription OnPlayerStateUpdated($authToken: String!) {
|
|
654
|
+
onPlayerStateUpdated(authToken: $authToken) {
|
|
655
|
+
userId
|
|
656
|
+
coins
|
|
657
|
+
farmingTask {
|
|
658
|
+
taskId
|
|
659
|
+
status
|
|
660
|
+
startedAt
|
|
661
|
+
}
|
|
662
|
+
playingStreaks {
|
|
663
|
+
streakId
|
|
664
|
+
status
|
|
665
|
+
type
|
|
666
|
+
startedAt
|
|
667
|
+
}
|
|
668
|
+
notifications {
|
|
669
|
+
notificationId
|
|
670
|
+
status
|
|
671
|
+
text
|
|
672
|
+
createdAt
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
`;
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* __useOnPlayerStateUpdatedSubscription__
|
|
680
|
+
*
|
|
681
|
+
* To run a query within a React component, call `useOnPlayerStateUpdatedSubscription` and pass it any options that fit your needs.
|
|
682
|
+
* When your component renders, `useOnPlayerStateUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
683
|
+
* you can use to render your UI.
|
|
684
|
+
*
|
|
685
|
+
* @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;
|
|
686
|
+
*
|
|
687
|
+
* @example
|
|
688
|
+
* const { data, loading, error } = useOnPlayerStateUpdatedSubscription({
|
|
689
|
+
* variables: {
|
|
690
|
+
* authToken: // value for 'authToken'
|
|
691
|
+
* },
|
|
692
|
+
* });
|
|
693
|
+
*/
|
|
694
|
+
export function useOnPlayerStateUpdatedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnPlayerStateUpdatedSubscription, IOnPlayerStateUpdatedSubscriptionVariables>) {
|
|
695
|
+
return Apollo.useSubscription<IOnPlayerStateUpdatedSubscription, IOnPlayerStateUpdatedSubscriptionVariables>(OnPlayerStateUpdatedDocument, baseOptions);
|
|
696
|
+
}
|
|
697
|
+
export type OnPlayerStateUpdatedSubscriptionHookResult = ReturnType<typeof useOnPlayerStateUpdatedSubscription>;
|
|
698
|
+
export type OnPlayerStateUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnPlayerStateUpdatedSubscription>;
|