@ludo.ninja/api 2.8.85 → 2.8.87

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.
@@ -130,6 +130,7 @@ export type IMutation = {
130
130
  setDummy: Scalars['String'];
131
131
  likeCollection: Scalars['Boolean'];
132
132
  dislikeCollection: Scalars['Boolean'];
133
+ clearCaches: Scalars['Boolean'];
133
134
  };
134
135
  export type IMutationLikeCollectionArgs = {
135
136
  collectionId: Scalars['String'];
@@ -352,6 +353,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
352
353
  setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
353
354
  likeCollection?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeCollectionArgs, 'collectionId'>>;
354
355
  dislikeCollection?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeCollectionArgs, 'collectionId'>>;
356
+ clearCaches?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
355
357
  };
356
358
  export type IProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['Profile'] = IResolversParentTypes['Profile']> = {
357
359
  profileId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
@@ -145,31 +145,26 @@ export type IMutationSignInMetamaskArgs = {
145
145
  address: Scalars['String'];
146
146
  chainId: Scalars['String'];
147
147
  restore?: Maybe<Scalars['Boolean']>;
148
- inviteCode?: Maybe<Scalars['String']>;
149
148
  };
150
149
  export type IMutationSignInTezosArgs = {
151
150
  signature: Scalars['String'];
152
151
  pubkey: Scalars['String'];
153
152
  restore?: Maybe<Scalars['Boolean']>;
154
- inviteCode?: Maybe<Scalars['String']>;
155
153
  };
156
154
  export type IMutationSignInSolanaArgs = {
157
155
  signature: Scalars['String'];
158
156
  pubkey: Scalars['String'];
159
157
  restore?: Maybe<Scalars['Boolean']>;
160
- inviteCode?: Maybe<Scalars['String']>;
161
158
  };
162
159
  export type IMutationSignInElrondArgs = {
163
160
  signature: Scalars['String'];
164
161
  address: Scalars['String'];
165
162
  restore?: Maybe<Scalars['Boolean']>;
166
- inviteCode?: Maybe<Scalars['String']>;
167
163
  };
168
164
  export type IMutationSignInFlowArgs = {
169
165
  signature: Scalars['String'];
170
166
  address: Scalars['String'];
171
167
  restore?: Maybe<Scalars['Boolean']>;
172
- inviteCode?: Maybe<Scalars['String']>;
173
168
  };
174
169
  export type IMutationSignInTonArgs = {
175
170
  request: ICheckTonProofRequest;
@@ -284,7 +279,6 @@ export type IQuery = {
284
279
  getDummy: Scalars['String'];
285
280
  fetchUserWallets: Array<Maybe<IWallet>>;
286
281
  fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
287
- isInviteCodeAvailable: Scalars['Boolean'];
288
282
  fetchInviteCode: IInviteCode;
289
283
  fetchMyProfileV2: IMyProfileV2;
290
284
  fetchProfile: IProfile;
@@ -297,9 +291,6 @@ export type IQueryFetchUserWalletsArgs = {
297
291
  export type IQueryFetchMultiversxAuditArgs = {
298
292
  wallet: Scalars['String'];
299
293
  };
300
- export type IQueryIsInviteCodeAvailableArgs = {
301
- inviteCode: Scalars['String'];
302
- };
303
294
  export type IQueryFetchInviteCodeArgs = {
304
295
  inviteCode: Scalars['String'];
305
296
  };
@@ -602,7 +593,6 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
602
593
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
603
594
  fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
604
595
  fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
605
- isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
606
596
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
607
597
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
608
598
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
@@ -34,8 +34,13 @@ export declare enum IEventType {
34
34
  }
35
35
  export type IMutation = {
36
36
  setDummy: Scalars['String'];
37
+ readNotification: Scalars['Boolean'];
38
+ };
39
+ export type IMutationReadNotificationArgs = {
40
+ notificationId: Scalars['ID'];
37
41
  };
38
42
  export type INotification = {
43
+ notificationId: Scalars['ID'];
39
44
  notificationType: INotificationType;
40
45
  eventType: IEventType;
41
46
  createdAt: Scalars['Long'];
@@ -91,21 +96,23 @@ export type IResolversTypes = {
91
96
  Long: ResolverTypeWrapper<Scalars['Long']>;
92
97
  Mutation: ResolverTypeWrapper<{}>;
93
98
  String: ResolverTypeWrapper<Scalars['String']>;
99
+ Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
100
+ ID: ResolverTypeWrapper<Scalars['ID']>;
94
101
  Notification: ResolverTypeWrapper<INotification>;
95
102
  NotificationType: INotificationType;
96
103
  Query: ResolverTypeWrapper<{}>;
97
104
  Subscription: ResolverTypeWrapper<{}>;
98
- Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
99
105
  };
100
106
  /** Mapping between all available schema types and the resolvers parents */
101
107
  export type IResolversParentTypes = {
102
108
  Long: Scalars['Long'];
103
109
  Mutation: {};
104
110
  String: Scalars['String'];
111
+ Boolean: Scalars['Boolean'];
112
+ ID: Scalars['ID'];
105
113
  Notification: INotification;
106
114
  Query: {};
107
115
  Subscription: {};
108
- Boolean: Scalars['Boolean'];
109
116
  };
110
117
  export type IOneOfDirectiveArgs = {};
111
118
  export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
@@ -114,8 +121,10 @@ export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTyp
114
121
  }
115
122
  export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
116
123
  setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
124
+ readNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationReadNotificationArgs, 'notificationId'>>;
117
125
  };
118
126
  export type INotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Notification'] = IResolversParentTypes['Notification']> = {
127
+ notificationId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
119
128
  notificationType?: Resolver<IResolversTypes['NotificationType'], ParentType, ContextType>;
120
129
  eventType?: Resolver<IResolversTypes['EventType'], ParentType, ContextType>;
121
130
  createdAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
@@ -142,13 +151,42 @@ export type IResolvers<ContextType = any> = {
142
151
  export type IDirectiveResolvers<ContextType = any> = {
143
152
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
144
153
  };
154
+ export type IReadNotificationMutationVariables = Exact<{
155
+ notificationId: Scalars['ID'];
156
+ }>;
157
+ export type IReadNotificationMutation = Pick<IMutation, 'readNotification'>;
145
158
  export type IOnNotificationSubscriptionVariables = Exact<{
146
159
  authToken: Scalars['String'];
147
160
  notificationTypes: Array<INotificationType>;
148
161
  }>;
149
162
  export type IOnNotificationSubscription = {
150
- onNotification: Pick<INotification, 'notificationType' | 'eventType' | 'createdAt' | 'name' | 'description' | 'media' | 'link'>;
163
+ onNotification: Pick<INotification, 'notificationId' | 'notificationType' | 'eventType' | 'createdAt' | 'name' | 'description' | 'media' | 'link'>;
151
164
  };
165
+ export declare const ReadNotificationDocument: Apollo.DocumentNode;
166
+ export type IReadNotificationMutationFn = Apollo.MutationFunction<IReadNotificationMutation, IReadNotificationMutationVariables>;
167
+ /**
168
+ * __useReadNotificationMutation__
169
+ *
170
+ * To run a mutation, you first call `useReadNotificationMutation` within a React component and pass it any options that fit your needs.
171
+ * When your component renders, `useReadNotificationMutation` returns a tuple that includes:
172
+ * - A mutate function that you can call at any time to execute the mutation
173
+ * - An object with fields that represent the current status of the mutation's execution
174
+ *
175
+ * @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;
176
+ *
177
+ * @example
178
+ * const [readNotificationMutation, { data, loading, error }] = useReadNotificationMutation({
179
+ * variables: {
180
+ * notificationId: // value for 'notificationId'
181
+ * },
182
+ * });
183
+ */
184
+ export declare function useReadNotificationMutation(baseOptions?: Apollo.MutationHookOptions<IReadNotificationMutation, IReadNotificationMutationVariables>): Apollo.MutationTuple<IReadNotificationMutation, Exact<{
185
+ notificationId: Scalars["ID"];
186
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
187
+ export type ReadNotificationMutationHookResult = ReturnType<typeof useReadNotificationMutation>;
188
+ export type ReadNotificationMutationResult = Apollo.MutationResult<IReadNotificationMutation>;
189
+ export type ReadNotificationMutationOptions = Apollo.BaseMutationOptions<IReadNotificationMutation, IReadNotificationMutationVariables>;
152
190
  export declare const OnNotificationDocument: Apollo.DocumentNode;
153
191
  /**
154
192
  * __useOnNotificationSubscription__
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.OnNotificationDocument = exports.INotificationType = exports.IEventType = void 0;
26
+ exports.OnNotificationDocument = exports.ReadNotificationDocument = exports.INotificationType = exports.IEventType = void 0;
27
+ exports.useReadNotificationMutation = useReadNotificationMutation;
27
28
  exports.useOnNotificationSubscription = useOnNotificationSubscription;
28
29
  const client_1 = require("@apollo/client");
29
30
  const Apollo = __importStar(require("@apollo/client"));
@@ -40,9 +41,35 @@ var INotificationType;
40
41
  INotificationType["RedDot"] = "RED_DOT";
41
42
  INotificationType["Push"] = "PUSH";
42
43
  })(INotificationType || (exports.INotificationType = INotificationType = {}));
44
+ exports.ReadNotificationDocument = (0, client_1.gql) `
45
+ mutation ReadNotification($notificationId: ID!) {
46
+ readNotification(notificationId: $notificationId)
47
+ }
48
+ `;
49
+ /**
50
+ * __useReadNotificationMutation__
51
+ *
52
+ * To run a mutation, you first call `useReadNotificationMutation` within a React component and pass it any options that fit your needs.
53
+ * When your component renders, `useReadNotificationMutation` returns a tuple that includes:
54
+ * - A mutate function that you can call at any time to execute the mutation
55
+ * - An object with fields that represent the current status of the mutation's execution
56
+ *
57
+ * @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;
58
+ *
59
+ * @example
60
+ * const [readNotificationMutation, { data, loading, error }] = useReadNotificationMutation({
61
+ * variables: {
62
+ * notificationId: // value for 'notificationId'
63
+ * },
64
+ * });
65
+ */
66
+ function useReadNotificationMutation(baseOptions) {
67
+ return Apollo.useMutation(exports.ReadNotificationDocument, baseOptions);
68
+ }
43
69
  exports.OnNotificationDocument = (0, client_1.gql) `
44
70
  subscription OnNotification($authToken: String!, $notificationTypes: [NotificationType!]!) {
45
71
  onNotification(authToken: $authToken, notificationTypes: $notificationTypes) {
72
+ notificationId
46
73
  notificationType
47
74
  eventType
48
75
  createdAt
@@ -44,12 +44,14 @@ export type IFarmingTask = {
44
44
  export type IFrensData = {
45
45
  activeInviteCodes: Array<IActiveInviteCode>;
46
46
  joinedFriends: Array<IFriend>;
47
+ nextFriendJoinReward?: Maybe<Scalars['Int']>;
47
48
  };
48
49
  export type IFriend = {
49
50
  userId: Scalars['ID'];
50
51
  ludoUsername?: Maybe<Scalars['String']>;
51
52
  isAPlayer: Scalars['Boolean'];
52
53
  coins?: Maybe<Scalars['Int']>;
54
+ userpic?: Maybe<Scalars['String']>;
53
55
  };
54
56
  export type IMutation = {
55
57
  setDummy: Scalars['String'];
@@ -205,6 +207,7 @@ export type IFarmingTaskResolvers<ContextType = any, ParentType extends IResolve
205
207
  export type IFrensDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['FrensData'] = IResolversParentTypes['FrensData']> = {
206
208
  activeInviteCodes?: Resolver<Array<IResolversTypes['ActiveInviteCode']>, ParentType, ContextType>;
207
209
  joinedFriends?: Resolver<Array<IResolversTypes['Friend']>, ParentType, ContextType>;
210
+ nextFriendJoinReward?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
208
211
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
209
212
  };
210
213
  export type IFriendResolvers<ContextType = any, ParentType extends IResolversParentTypes['Friend'] = IResolversParentTypes['Friend']> = {
@@ -212,6 +215,7 @@ export type IFriendResolvers<ContextType = any, ParentType extends IResolversPar
212
215
  ludoUsername?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
213
216
  isAPlayer?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
214
217
  coins?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
218
+ userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
215
219
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
216
220
  };
217
221
  export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
@@ -301,10 +305,10 @@ export type IFetchFrensDataQueryVariables = Exact<{
301
305
  [key: string]: never;
302
306
  }>;
303
307
  export type IFetchFrensDataQuery = {
304
- fetchFrensData: {
308
+ fetchFrensData: (Pick<IFrensData, 'nextFriendJoinReward'> & {
305
309
  activeInviteCodes: Array<Pick<IActiveInviteCode, 'code' | 'usedTimes' | 'maxUsagesLimit'>>;
306
- joinedFriends: Array<Pick<IFriend, 'userId' | 'ludoUsername' | 'isAPlayer' | 'coins'>>;
307
- };
310
+ joinedFriends: Array<Pick<IFriend, 'userId' | 'ludoUsername' | 'isAPlayer' | 'coins' | 'userpic'>>;
311
+ });
308
312
  };
309
313
  export type IFetchPlayerStateQueryVariables = Exact<{
310
314
  [key: string]: never;
@@ -217,6 +217,7 @@ function useStartFarmingMutation(baseOptions) {
217
217
  exports.FetchFrensDataDocument = (0, client_1.gql) `
218
218
  query FetchFrensData {
219
219
  fetchFrensData {
220
+ nextFriendJoinReward
220
221
  activeInviteCodes {
221
222
  code
222
223
  usedTimes
@@ -227,6 +228,7 @@ exports.FetchFrensDataDocument = (0, client_1.gql) `
227
228
  ludoUsername
228
229
  isAPlayer
229
230
  coins
231
+ userpic
230
232
  }
231
233
  }
232
234
  }
package/build/index.d.ts CHANGED
@@ -17,6 +17,9 @@ import * as formsSchema from "./graphql_tools/__generated__/formsHost/schema";
17
17
  import * as tapsSchema from "./graphql_tools/__generated__/tapHost/schema";
18
18
  import * as notificationsSchema from "./graphql_tools/__generated__/notificationsHost/schema";
19
19
  declare const schema: {
20
+ useReadNotificationMutation(baseOptions?: import("@apollo/client").MutationHookOptions<notificationsSchema.IReadNotificationMutation, notificationsSchema.IReadNotificationMutationVariables>): import("@apollo/client").MutationTuple<notificationsSchema.IReadNotificationMutation, notificationsSchema.Exact<{
21
+ notificationId: notificationsSchema.Scalars["ID"];
22
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
20
23
  useOnNotificationSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<notificationsSchema.IOnNotificationSubscription, notificationsSchema.IOnNotificationSubscriptionVariables>): {
21
24
  restart(): void;
22
25
  loading: boolean;
@@ -29,6 +32,7 @@ declare const schema: {
29
32
  };
30
33
  IEventType: typeof notificationsSchema.IEventType;
31
34
  INotificationType: typeof notificationsSchema.INotificationType;
35
+ ReadNotificationDocument: import("graphql").DocumentNode;
32
36
  OnNotificationDocument: import("graphql").DocumentNode;
33
37
  useClaimFarmingRewardMutation(baseOptions?: import("@apollo/client").MutationHookOptions<tapsSchema.IClaimFarmingRewardMutation, tapsSchema.IClaimFarmingRewardMutationVariables>): import("@apollo/client").MutationTuple<tapsSchema.IClaimFarmingRewardMutation, tapsSchema.Exact<{
34
38
  [key: string]: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.8.85",
3
+ "version": "2.8.87",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -135,6 +135,7 @@ export type IMutation = {
135
135
  setDummy: Scalars['String'];
136
136
  likeCollection: Scalars['Boolean'];
137
137
  dislikeCollection: Scalars['Boolean'];
138
+ clearCaches: Scalars['Boolean'];
138
139
  };
139
140
 
140
141
 
@@ -429,6 +430,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
429
430
  setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
430
431
  likeCollection?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeCollectionArgs, 'collectionId'>>;
431
432
  dislikeCollection?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeCollectionArgs, 'collectionId'>>;
433
+ clearCaches?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
432
434
  };
433
435
 
434
436
  export type IProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['Profile'] = IResolversParentTypes['Profile']> = {
@@ -163,7 +163,6 @@ export type IMutationSignInMetamaskArgs = {
163
163
  address: Scalars['String'];
164
164
  chainId: Scalars['String'];
165
165
  restore?: Maybe<Scalars['Boolean']>;
166
- inviteCode?: Maybe<Scalars['String']>;
167
166
  };
168
167
 
169
168
 
@@ -171,7 +170,6 @@ export type IMutationSignInTezosArgs = {
171
170
  signature: Scalars['String'];
172
171
  pubkey: Scalars['String'];
173
172
  restore?: Maybe<Scalars['Boolean']>;
174
- inviteCode?: Maybe<Scalars['String']>;
175
173
  };
176
174
 
177
175
 
@@ -179,7 +177,6 @@ export type IMutationSignInSolanaArgs = {
179
177
  signature: Scalars['String'];
180
178
  pubkey: Scalars['String'];
181
179
  restore?: Maybe<Scalars['Boolean']>;
182
- inviteCode?: Maybe<Scalars['String']>;
183
180
  };
184
181
 
185
182
 
@@ -187,7 +184,6 @@ export type IMutationSignInElrondArgs = {
187
184
  signature: Scalars['String'];
188
185
  address: Scalars['String'];
189
186
  restore?: Maybe<Scalars['Boolean']>;
190
- inviteCode?: Maybe<Scalars['String']>;
191
187
  };
192
188
 
193
189
 
@@ -195,7 +191,6 @@ export type IMutationSignInFlowArgs = {
195
191
  signature: Scalars['String'];
196
192
  address: Scalars['String'];
197
193
  restore?: Maybe<Scalars['Boolean']>;
198
- inviteCode?: Maybe<Scalars['String']>;
199
194
  };
200
195
 
201
196
 
@@ -344,7 +339,6 @@ export type IQuery = {
344
339
  getDummy: Scalars['String'];
345
340
  fetchUserWallets: Array<Maybe<IWallet>>;
346
341
  fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
347
- isInviteCodeAvailable: Scalars['Boolean'];
348
342
  fetchInviteCode: IInviteCode;
349
343
  fetchMyProfileV2: IMyProfileV2;
350
344
  fetchProfile: IProfile;
@@ -363,11 +357,6 @@ export type IQueryFetchMultiversxAuditArgs = {
363
357
  };
364
358
 
365
359
 
366
- export type IQueryIsInviteCodeAvailableArgs = {
367
- inviteCode: Scalars['String'];
368
- };
369
-
370
-
371
360
  export type IQueryFetchInviteCodeArgs = {
372
361
  inviteCode: Scalars['String'];
373
362
  };
@@ -749,7 +738,6 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
749
738
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
750
739
  fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
751
740
  fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
752
- isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
753
741
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
754
742
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
755
743
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
@@ -30,9 +30,16 @@ export enum IEventType {
30
30
 
31
31
  export type IMutation = {
32
32
  setDummy: Scalars['String'];
33
+ readNotification: Scalars['Boolean'];
34
+ };
35
+
36
+
37
+ export type IMutationReadNotificationArgs = {
38
+ notificationId: Scalars['ID'];
33
39
  };
34
40
 
35
41
  export type INotification = {
42
+ notificationId: Scalars['ID'];
36
43
  notificationType: INotificationType;
37
44
  eventType: IEventType;
38
45
  createdAt: Scalars['Long'];
@@ -135,11 +142,12 @@ export type IResolversTypes = {
135
142
  Long: ResolverTypeWrapper<Scalars['Long']>;
136
143
  Mutation: ResolverTypeWrapper<{}>;
137
144
  String: ResolverTypeWrapper<Scalars['String']>;
145
+ Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
146
+ ID: ResolverTypeWrapper<Scalars['ID']>;
138
147
  Notification: ResolverTypeWrapper<INotification>;
139
148
  NotificationType: INotificationType;
140
149
  Query: ResolverTypeWrapper<{}>;
141
150
  Subscription: ResolverTypeWrapper<{}>;
142
- Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
143
151
  };
144
152
 
145
153
  /** Mapping between all available schema types and the resolvers parents */
@@ -147,10 +155,11 @@ export type IResolversParentTypes = {
147
155
  Long: Scalars['Long'];
148
156
  Mutation: {};
149
157
  String: Scalars['String'];
158
+ Boolean: Scalars['Boolean'];
159
+ ID: Scalars['ID'];
150
160
  Notification: INotification;
151
161
  Query: {};
152
162
  Subscription: {};
153
- Boolean: Scalars['Boolean'];
154
163
  };
155
164
 
156
165
  export type IOneOfDirectiveArgs = { };
@@ -163,9 +172,11 @@ export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTyp
163
172
 
164
173
  export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
165
174
  setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
175
+ readNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationReadNotificationArgs, 'notificationId'>>;
166
176
  };
167
177
 
168
178
  export type INotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Notification'] = IResolversParentTypes['Notification']> = {
179
+ notificationId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
169
180
  notificationType?: Resolver<IResolversTypes['NotificationType'], ParentType, ContextType>;
170
181
  eventType?: Resolver<IResolversTypes['EventType'], ParentType, ContextType>;
171
182
  createdAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
@@ -197,18 +208,56 @@ export type IDirectiveResolvers<ContextType = any> = {
197
208
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
198
209
  };
199
210
 
211
+ export type IReadNotificationMutationVariables = Exact<{
212
+ notificationId: Scalars['ID'];
213
+ }>;
214
+
215
+
216
+ export type IReadNotificationMutation = Pick<IMutation, 'readNotification'>;
217
+
200
218
  export type IOnNotificationSubscriptionVariables = Exact<{
201
219
  authToken: Scalars['String'];
202
220
  notificationTypes: Array<INotificationType>;
203
221
  }>;
204
222
 
205
223
 
206
- export type IOnNotificationSubscription = { onNotification: Pick<INotification, 'notificationType' | 'eventType' | 'createdAt' | 'name' | 'description' | 'media' | 'link'> };
224
+ export type IOnNotificationSubscription = { onNotification: Pick<INotification, 'notificationId' | 'notificationType' | 'eventType' | 'createdAt' | 'name' | 'description' | 'media' | 'link'> };
225
+
207
226
 
227
+ export const ReadNotificationDocument = gql`
228
+ mutation ReadNotification($notificationId: ID!) {
229
+ readNotification(notificationId: $notificationId)
230
+ }
231
+ `;
232
+ export type IReadNotificationMutationFn = Apollo.MutationFunction<IReadNotificationMutation, IReadNotificationMutationVariables>;
208
233
 
234
+ /**
235
+ * __useReadNotificationMutation__
236
+ *
237
+ * To run a mutation, you first call `useReadNotificationMutation` within a React component and pass it any options that fit your needs.
238
+ * When your component renders, `useReadNotificationMutation` returns a tuple that includes:
239
+ * - A mutate function that you can call at any time to execute the mutation
240
+ * - An object with fields that represent the current status of the mutation's execution
241
+ *
242
+ * @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;
243
+ *
244
+ * @example
245
+ * const [readNotificationMutation, { data, loading, error }] = useReadNotificationMutation({
246
+ * variables: {
247
+ * notificationId: // value for 'notificationId'
248
+ * },
249
+ * });
250
+ */
251
+ export function useReadNotificationMutation(baseOptions?: Apollo.MutationHookOptions<IReadNotificationMutation, IReadNotificationMutationVariables>) {
252
+ return Apollo.useMutation<IReadNotificationMutation, IReadNotificationMutationVariables>(ReadNotificationDocument, baseOptions);
253
+ }
254
+ export type ReadNotificationMutationHookResult = ReturnType<typeof useReadNotificationMutation>;
255
+ export type ReadNotificationMutationResult = Apollo.MutationResult<IReadNotificationMutation>;
256
+ export type ReadNotificationMutationOptions = Apollo.BaseMutationOptions<IReadNotificationMutation, IReadNotificationMutationVariables>;
209
257
  export const OnNotificationDocument = gql`
210
258
  subscription OnNotification($authToken: String!, $notificationTypes: [NotificationType!]!) {
211
259
  onNotification(authToken: $authToken, notificationTypes: $notificationTypes) {
260
+ notificationId
212
261
  notificationType
213
262
  eventType
214
263
  createdAt
@@ -41,6 +41,7 @@ export type IFarmingTask = {
41
41
  export type IFrensData = {
42
42
  activeInviteCodes: Array<IActiveInviteCode>;
43
43
  joinedFriends: Array<IFriend>;
44
+ nextFriendJoinReward?: Maybe<Scalars['Int']>;
44
45
  };
45
46
 
46
47
  export type IFriend = {
@@ -48,6 +49,7 @@ export type IFriend = {
48
49
  ludoUsername?: Maybe<Scalars['String']>;
49
50
  isAPlayer: Scalars['Boolean'];
50
51
  coins?: Maybe<Scalars['Int']>;
52
+ userpic?: Maybe<Scalars['String']>;
51
53
  };
52
54
 
53
55
 
@@ -271,6 +273,7 @@ export type IFarmingTaskResolvers<ContextType = any, ParentType extends IResolve
271
273
  export type IFrensDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['FrensData'] = IResolversParentTypes['FrensData']> = {
272
274
  activeInviteCodes?: Resolver<Array<IResolversTypes['ActiveInviteCode']>, ParentType, ContextType>;
273
275
  joinedFriends?: Resolver<Array<IResolversTypes['Friend']>, ParentType, ContextType>;
276
+ nextFriendJoinReward?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
274
277
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
275
278
  };
276
279
 
@@ -279,6 +282,7 @@ export type IFriendResolvers<ContextType = any, ParentType extends IResolversPar
279
282
  ludoUsername?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
280
283
  isAPlayer?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
281
284
  coins?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
285
+ userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
282
286
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
283
287
  };
284
288
 
@@ -391,7 +395,10 @@ export type IStartFarmingMutation = Pick<IMutation, 'startFarming'>;
391
395
  export type IFetchFrensDataQueryVariables = Exact<{ [key: string]: never; }>;
392
396
 
393
397
 
394
- export type IFetchFrensDataQuery = { fetchFrensData: { activeInviteCodes: Array<Pick<IActiveInviteCode, 'code' | 'usedTimes' | 'maxUsagesLimit'>>, joinedFriends: Array<Pick<IFriend, 'userId' | 'ludoUsername' | 'isAPlayer' | 'coins'>> } };
398
+ export type IFetchFrensDataQuery = { fetchFrensData: (
399
+ Pick<IFrensData, 'nextFriendJoinReward'>
400
+ & { activeInviteCodes: Array<Pick<IActiveInviteCode, 'code' | 'usedTimes' | 'maxUsagesLimit'>>, joinedFriends: Array<Pick<IFriend, 'userId' | 'ludoUsername' | 'isAPlayer' | 'coins' | 'userpic'>> }
401
+ ) };
395
402
 
396
403
  export type IFetchPlayerStateQueryVariables = Exact<{ [key: string]: never; }>;
397
404
 
@@ -593,6 +600,7 @@ export type StartFarmingMutationOptions = Apollo.BaseMutationOptions<IStartFarmi
593
600
  export const FetchFrensDataDocument = gql`
594
601
  query FetchFrensData {
595
602
  fetchFrensData {
603
+ nextFriendJoinReward
596
604
  activeInviteCodes {
597
605
  code
598
606
  usedTimes
@@ -603,6 +611,7 @@ export const FetchFrensDataDocument = gql`
603
611
  ludoUsername
604
612
  isAPlayer
605
613
  coins
614
+ userpic
606
615
  }
607
616
  }
608
617
  }