@ludo.ninja/api 2.8.28 → 2.8.30
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/config/index.js +4 -4
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +1434 -0
- package/build/graphql_tools/__generated__/adminHost/schema.js +688 -0
- package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +392 -0
- package/build/graphql_tools/__generated__/assetsHost/schema.js +80 -0
- package/build/graphql_tools/__generated__/authHost/schema.d.ts +238 -0
- package/build/graphql_tools/__generated__/authHost/schema.js +85 -0
- package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +455 -0
- package/build/graphql_tools/__generated__/collectionsHost/schema.js +80 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +356 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +191 -0
- package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +808 -0
- package/build/graphql_tools/__generated__/extensionHost/schema.js +449 -0
- package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +794 -0
- package/build/graphql_tools/__generated__/galleriesHost/schema.js +575 -0
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +1205 -0
- package/build/graphql_tools/__generated__/identityHost/schema.js +757 -0
- package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +242 -0
- package/build/graphql_tools/__generated__/mediasHost/schema.js +110 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +486 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +148 -0
- package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +604 -0
- package/build/graphql_tools/__generated__/preferencesHost/schema.js +411 -0
- package/build/graphql_tools/__generated__/schema.d.ts +1 -0
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +1304 -0
- package/build/graphql_tools/__generated__/searchHost/schema.js +1191 -0
- package/build/hosts/index.d.ts +0 -3
- package/build/hosts/index.js +1 -4
- package/build/index.d.ts +13 -2
- package/build/index.js +25 -3
- package/package.json +1 -1
- package/src/config/index.ts +50 -50
- package/src/graphql_tools/__generated__/adminHost/schema.ts +1814 -0
- package/src/graphql_tools/__generated__/assetsHost/schema.ts +482 -0
- package/src/graphql_tools/__generated__/authHost/schema.ts +317 -0
- package/src/graphql_tools/__generated__/collectionsHost/schema.ts +554 -0
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +478 -0
- package/src/graphql_tools/__generated__/extensionHost/schema.ts +1074 -0
- package/src/graphql_tools/__generated__/galleriesHost/schema.ts +1090 -0
- package/src/graphql_tools/__generated__/identityHost/schema.ts +1584 -0
- package/src/graphql_tools/__generated__/mediasHost/schema.ts +333 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +629 -0
- package/src/graphql_tools/__generated__/preferencesHost/schema.ts +772 -0
- package/src/graphql_tools/__generated__/schema.ts +1 -0
- package/src/graphql_tools/__generated__/searchHost/schema.ts +2137 -0
- package/src/hosts/index.ts +0 -6
- package/src/index.ts +29 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,1814 @@
|
|
|
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
|
+
/** A file part in a multipart request */
|
|
20
|
+
Upload: any;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export type IActiveInvite = {
|
|
27
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
28
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type IAdminBrand = {
|
|
32
|
+
id: Scalars['String'];
|
|
33
|
+
name: Scalars['String'];
|
|
34
|
+
matchingWords: Array<Scalars['String']>;
|
|
35
|
+
description: Scalars['String'];
|
|
36
|
+
industry?: Maybe<Scalars['String']>;
|
|
37
|
+
link?: Maybe<Scalars['String']>;
|
|
38
|
+
media?: Maybe<Scalars['String']>;
|
|
39
|
+
archived?: Maybe<Scalars['Boolean']>;
|
|
40
|
+
addedBy?: Maybe<Scalars['String']>;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type IAdminCategory = {
|
|
44
|
+
id: Scalars['String'];
|
|
45
|
+
name: Scalars['String'];
|
|
46
|
+
matchingWords: Array<Scalars['String']>;
|
|
47
|
+
archived?: Maybe<Scalars['Boolean']>;
|
|
48
|
+
addedBy?: Maybe<Scalars['String']>;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export type IAdminInvite = {
|
|
52
|
+
userId: Scalars['String'];
|
|
53
|
+
username?: Maybe<Scalars['String']>;
|
|
54
|
+
wallet?: Maybe<IWallet>;
|
|
55
|
+
activeInvites?: Maybe<Array<IActiveInvite>>;
|
|
56
|
+
referredUsers?: Maybe<Array<Scalars['String']>>;
|
|
57
|
+
userXpLevel?: Maybe<Scalars['Int']>;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type IAdminOpportunity = {
|
|
61
|
+
opportunityId: Scalars['ID'];
|
|
62
|
+
name?: Maybe<Scalars['String']>;
|
|
63
|
+
description?: Maybe<Scalars['String']>;
|
|
64
|
+
brandName?: Maybe<Scalars['String']>;
|
|
65
|
+
industry?: Maybe<Scalars['String']>;
|
|
66
|
+
category?: Maybe<Scalars['String']>;
|
|
67
|
+
ludoUrl?: Maybe<Scalars['String']>;
|
|
68
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
69
|
+
pushNotificationsEnabled?: Maybe<Scalars['Boolean']>;
|
|
70
|
+
status?: Maybe<Scalars['String']>;
|
|
71
|
+
activeFrom?: Maybe<Scalars['Long']>;
|
|
72
|
+
activeUntil?: Maybe<Scalars['Long']>;
|
|
73
|
+
minXpLevel?: Maybe<Scalars['Int']>;
|
|
74
|
+
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
75
|
+
minLudoRank?: Maybe<Scalars['Float']>;
|
|
76
|
+
maxLudoRank?: Maybe<Scalars['Float']>;
|
|
77
|
+
media?: Maybe<Scalars['String']>;
|
|
78
|
+
minWalletValue?: Maybe<Scalars['Float']>;
|
|
79
|
+
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
80
|
+
clicks?: Maybe<Scalars['Int']>;
|
|
81
|
+
views?: Maybe<Scalars['Int']>;
|
|
82
|
+
addedBy?: Maybe<Scalars['String']>;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type IAdminOpportunityInput = {
|
|
86
|
+
brandId: Scalars['String'];
|
|
87
|
+
categoryId: Scalars['String'];
|
|
88
|
+
status: Scalars['String'];
|
|
89
|
+
pushNotificationsEnabled: Scalars['Boolean'];
|
|
90
|
+
name: Scalars['String'];
|
|
91
|
+
description?: Maybe<Scalars['String']>;
|
|
92
|
+
ludoUrl?: Maybe<Scalars['String']>;
|
|
93
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
94
|
+
activeFrom?: Maybe<Scalars['Long']>;
|
|
95
|
+
activeUntil?: Maybe<Scalars['Long']>;
|
|
96
|
+
minXpLevel?: Maybe<Scalars['Int']>;
|
|
97
|
+
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
98
|
+
minLudoRank?: Maybe<Scalars['Float']>;
|
|
99
|
+
maxLudoRank?: Maybe<Scalars['Float']>;
|
|
100
|
+
minWalletValue?: Maybe<Scalars['Float']>;
|
|
101
|
+
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
102
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
103
|
+
collection?: Maybe<Scalars['String']>;
|
|
104
|
+
media?: Maybe<Scalars['String']>;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export type IAdminPage = {
|
|
108
|
+
num?: Maybe<Scalars['Int']>;
|
|
109
|
+
lastNum?: Maybe<Scalars['Int']>;
|
|
110
|
+
size?: Maybe<Scalars['Int']>;
|
|
111
|
+
elements?: Maybe<Scalars['Long']>;
|
|
112
|
+
token?: Maybe<Scalars['String']>;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export type IAdminPageInput = {
|
|
116
|
+
num: Scalars['Int'];
|
|
117
|
+
size: Scalars['Int'];
|
|
118
|
+
token?: Maybe<Scalars['String']>;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export type IAdminReferral = {
|
|
122
|
+
userId: Scalars['ID'];
|
|
123
|
+
username?: Maybe<Scalars['String']>;
|
|
124
|
+
mainWallet?: Maybe<IWallet>;
|
|
125
|
+
referredUsersNum?: Maybe<Scalars['Int']>;
|
|
126
|
+
referrals?: Maybe<Array<IReferredUsersInfo>>;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export type IAdminUser = {
|
|
130
|
+
userId: Scalars['ID'];
|
|
131
|
+
username?: Maybe<Scalars['String']>;
|
|
132
|
+
wallets?: Maybe<Array<IWallet>>;
|
|
133
|
+
connectedBlockchains?: Maybe<Array<Scalars['String']>>;
|
|
134
|
+
isActive?: Maybe<Scalars['Boolean']>;
|
|
135
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
136
|
+
topInterests?: Maybe<Array<Scalars['String']>>;
|
|
137
|
+
walletsValue?: Maybe<Scalars['Float']>;
|
|
138
|
+
xpLevel?: Maybe<Scalars['Int']>;
|
|
139
|
+
ludoRank?: Maybe<Scalars['Float']>;
|
|
140
|
+
inviterId?: Maybe<Scalars['String']>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export type IAdminXp = {
|
|
144
|
+
userId: Scalars['ID'];
|
|
145
|
+
username?: Maybe<Scalars['String']>;
|
|
146
|
+
mainWallet?: Maybe<IWallet>;
|
|
147
|
+
userXpLevel?: Maybe<Scalars['Int']>;
|
|
148
|
+
userXpPoints?: Maybe<Scalars['Int']>;
|
|
149
|
+
referredUsers?: Maybe<Array<Scalars['ID']>>;
|
|
150
|
+
referredUsersNum?: Maybe<Scalars['Int']>;
|
|
151
|
+
joinedOpportunityIds?: Maybe<Array<Scalars['String']>>;
|
|
152
|
+
connectedWalletsNum?: Maybe<Scalars['Int']>;
|
|
153
|
+
suggestedOpportunityIds?: Maybe<Array<Scalars['String']>>;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export type IBrandInput = {
|
|
157
|
+
name: Scalars['String'];
|
|
158
|
+
matchingWords: Array<Scalars['String']>;
|
|
159
|
+
description: Scalars['String'];
|
|
160
|
+
industry?: Maybe<Scalars['String']>;
|
|
161
|
+
link?: Maybe<Scalars['String']>;
|
|
162
|
+
media?: Maybe<Scalars['String']>;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export type IBrandsFilterInput = {
|
|
166
|
+
nameTerm?: Maybe<Scalars['String']>;
|
|
167
|
+
descriptionTerm?: Maybe<Scalars['String']>;
|
|
168
|
+
industryTerm?: Maybe<Scalars['String']>;
|
|
169
|
+
linkTerm?: Maybe<Scalars['String']>;
|
|
170
|
+
matchingWordsTerm?: Maybe<Scalars['String']>;
|
|
171
|
+
addedByTerm?: Maybe<Scalars['String']>;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
export type IBrandsPage = {
|
|
175
|
+
brands: Array<IAdminBrand>;
|
|
176
|
+
nextPage?: Maybe<IAdminPage>;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
export type IBrandsSortInput = {
|
|
180
|
+
sortByName?: Maybe<ISort>;
|
|
181
|
+
sortByIndustry?: Maybe<ISort>;
|
|
182
|
+
sortByAddedBy?: Maybe<ISort>;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export type ICategoriesFilterInput = {
|
|
186
|
+
nameTerm?: Maybe<Scalars['String']>;
|
|
187
|
+
matchingWordsTerm?: Maybe<Scalars['String']>;
|
|
188
|
+
addedByTerm?: Maybe<Scalars['String']>;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
export type ICategoriesPage = {
|
|
192
|
+
categories: Array<IAdminCategory>;
|
|
193
|
+
nextPage?: Maybe<IAdminPage>;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export type ICategoriesSortInput = {
|
|
197
|
+
sortByName?: Maybe<ISort>;
|
|
198
|
+
sortByAddedBy?: Maybe<ISort>;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
export type ICategoryInput = {
|
|
202
|
+
name: Scalars['String'];
|
|
203
|
+
matchingWords: Array<Scalars['String']>;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export type IInvitesFilterInput = {
|
|
207
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
208
|
+
usernameTerm?: Maybe<Scalars['String']>;
|
|
209
|
+
mainWalletTerm?: Maybe<Scalars['String']>;
|
|
210
|
+
userXpLevelTerm?: Maybe<Scalars['String']>;
|
|
211
|
+
activeInviteTerm?: Maybe<Scalars['String']>;
|
|
212
|
+
referredUserTerm?: Maybe<Scalars['String']>;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export type IInvitesPage = {
|
|
216
|
+
invites: Array<IAdminInvite>;
|
|
217
|
+
nextPage?: Maybe<IAdminPage>;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export type IInvitesSortInput = {
|
|
221
|
+
sortByUsername?: Maybe<ISort>;
|
|
222
|
+
sortByXpLevel?: Maybe<ISort>;
|
|
223
|
+
sortByActiveInvites?: Maybe<ISort>;
|
|
224
|
+
sortByReferredUsers?: Maybe<ISort>;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
export type IMutation = {
|
|
229
|
+
setDummy: Scalars['String'];
|
|
230
|
+
removeInviteCode: Scalars['Boolean'];
|
|
231
|
+
addInviteCodes: Scalars['Boolean'];
|
|
232
|
+
updateOpportunityPushStatus: Scalars['Boolean'];
|
|
233
|
+
createBrand: Scalars['Boolean'];
|
|
234
|
+
updateBrand: Scalars['Boolean'];
|
|
235
|
+
updateBrandArchivedStatus: Scalars['Boolean'];
|
|
236
|
+
createCategory: Scalars['Boolean'];
|
|
237
|
+
updateCategory: Scalars['Boolean'];
|
|
238
|
+
updateCategoryArchivedStatus: Scalars['Boolean'];
|
|
239
|
+
createAdminOpportunity: Scalars['Boolean'];
|
|
240
|
+
updateOpportunity: Scalars['Boolean'];
|
|
241
|
+
updateProfileStatus: Scalars['Boolean'];
|
|
242
|
+
removeSuggestedOpportunity: Scalars['Boolean'];
|
|
243
|
+
addSuggestedOpportunity: Scalars['Boolean'];
|
|
244
|
+
changeXpPoints: Scalars['Boolean'];
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
export type IMutationRemoveInviteCodeArgs = {
|
|
249
|
+
inviteCode: Scalars['String'];
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
export type IMutationAddInviteCodesArgs = {
|
|
254
|
+
userId: Scalars['String'];
|
|
255
|
+
codesNum: Scalars['Int'];
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
export type IMutationUpdateOpportunityPushStatusArgs = {
|
|
260
|
+
opportunityId: Scalars['ID'];
|
|
261
|
+
isActive: Scalars['Boolean'];
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
export type IMutationCreateBrandArgs = {
|
|
266
|
+
brand: IBrandInput;
|
|
267
|
+
file?: Maybe<Scalars['Upload']>;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
export type IMutationUpdateBrandArgs = {
|
|
272
|
+
id: Scalars['ID'];
|
|
273
|
+
input: IBrandInput;
|
|
274
|
+
file?: Maybe<Scalars['Upload']>;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
export type IMutationUpdateBrandArchivedStatusArgs = {
|
|
279
|
+
id: Scalars['ID'];
|
|
280
|
+
isArchived: Scalars['Boolean'];
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
export type IMutationCreateCategoryArgs = {
|
|
285
|
+
name: Scalars['String'];
|
|
286
|
+
matchingWords: Array<Scalars['String']>;
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
export type IMutationUpdateCategoryArgs = {
|
|
291
|
+
id: Scalars['ID'];
|
|
292
|
+
input: ICategoryInput;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
export type IMutationUpdateCategoryArchivedStatusArgs = {
|
|
297
|
+
id: Scalars['ID'];
|
|
298
|
+
isArchived: Scalars['Boolean'];
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
export type IMutationCreateAdminOpportunityArgs = {
|
|
303
|
+
input: IAdminOpportunityInput;
|
|
304
|
+
file?: Maybe<Scalars['Upload']>;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
export type IMutationUpdateOpportunityArgs = {
|
|
309
|
+
id: Scalars['ID'];
|
|
310
|
+
input: IAdminOpportunityInput;
|
|
311
|
+
file?: Maybe<Scalars['Upload']>;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
export type IMutationUpdateProfileStatusArgs = {
|
|
316
|
+
userId: Scalars['ID'];
|
|
317
|
+
isActive: Scalars['Boolean'];
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
export type IMutationRemoveSuggestedOpportunityArgs = {
|
|
322
|
+
userId: Scalars['ID'];
|
|
323
|
+
opportunityId: Scalars['String'];
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
export type IMutationAddSuggestedOpportunityArgs = {
|
|
328
|
+
userId: Scalars['ID'];
|
|
329
|
+
opportunityId: Scalars['String'];
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
export type IMutationChangeXpPointsArgs = {
|
|
334
|
+
userId: Scalars['ID'];
|
|
335
|
+
pointsDiff: Scalars['Int'];
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
export type IOpportunitiesFilterInput = {
|
|
339
|
+
opportunityIdTerm?: Maybe<Scalars['String']>;
|
|
340
|
+
industryTerm?: Maybe<Scalars['String']>;
|
|
341
|
+
categoryTerm?: Maybe<Scalars['String']>;
|
|
342
|
+
opportunityLudoUrlTerm?: Maybe<Scalars['String']>;
|
|
343
|
+
opportunityProjectUrlTerm?: Maybe<Scalars['String']>;
|
|
344
|
+
arePushNotificationsEnabled?: Maybe<Scalars['Boolean']>;
|
|
345
|
+
opportunityStatusTerm?: Maybe<Scalars['String']>;
|
|
346
|
+
activeFromTimestamp?: Maybe<Scalars['Long']>;
|
|
347
|
+
activeUntilTimestamp?: Maybe<Scalars['Long']>;
|
|
348
|
+
minXpLevel?: Maybe<Scalars['Int']>;
|
|
349
|
+
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
350
|
+
minLudoRank?: Maybe<Scalars['Float']>;
|
|
351
|
+
maxLudoRank?: Maybe<Scalars['Float']>;
|
|
352
|
+
minWalletValue?: Maybe<Scalars['Float']>;
|
|
353
|
+
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
354
|
+
clicks?: Maybe<Scalars['Int']>;
|
|
355
|
+
views?: Maybe<Scalars['Int']>;
|
|
356
|
+
addedByTerm?: Maybe<Scalars['String']>;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
export type IOpportunitiesPage = {
|
|
360
|
+
opportunities: Array<IAdminOpportunity>;
|
|
361
|
+
nextPage?: Maybe<IAdminPage>;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
export type IOpportunitiesSortInput = {
|
|
365
|
+
sortByOpportunityName?: Maybe<ISort>;
|
|
366
|
+
sortByBrandName?: Maybe<ISort>;
|
|
367
|
+
sortByCategory?: Maybe<ISort>;
|
|
368
|
+
sortByOpportunityStatus?: Maybe<ISort>;
|
|
369
|
+
sortByActiveFrom?: Maybe<ISort>;
|
|
370
|
+
sortByActiveUntil?: Maybe<ISort>;
|
|
371
|
+
sortByMinXpLevel?: Maybe<ISort>;
|
|
372
|
+
sortByMaxXpLevel?: Maybe<ISort>;
|
|
373
|
+
sortByAddedBy?: Maybe<ISort>;
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
export type IQuery = {
|
|
377
|
+
getDummy: Scalars['String'];
|
|
378
|
+
fetchAdminInvitesPage: IInvitesPage;
|
|
379
|
+
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
380
|
+
fetchAdminCategories: Array<IAdminCategory>;
|
|
381
|
+
fetchAdminCategoriesPage: ICategoriesPage;
|
|
382
|
+
fetchAdminBrands: Array<IAdminBrand>;
|
|
383
|
+
fetchAdminBrandsPage: IBrandsPage;
|
|
384
|
+
fetchBlockchains: Array<Scalars['String']>;
|
|
385
|
+
fetchAdminReferralsPage: IReferralsPage;
|
|
386
|
+
fetchAdminUsersPage: IUsersPage;
|
|
387
|
+
fetchAdminXpPage: IXpPage;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
export type IQueryFetchAdminInvitesPageArgs = {
|
|
392
|
+
filter: IInvitesFilterInput;
|
|
393
|
+
sort: IInvitesSortInput;
|
|
394
|
+
page: IAdminPageInput;
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
export type IQueryFetchAdminOpportunitiesPageArgs = {
|
|
399
|
+
filter: IOpportunitiesFilterInput;
|
|
400
|
+
sort: IOpportunitiesSortInput;
|
|
401
|
+
page: IAdminPageInput;
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
export type IQueryFetchAdminCategoriesPageArgs = {
|
|
406
|
+
filter: ICategoriesFilterInput;
|
|
407
|
+
sort: ICategoriesSortInput;
|
|
408
|
+
page: IAdminPageInput;
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
export type IQueryFetchAdminBrandsPageArgs = {
|
|
413
|
+
filter: IBrandsFilterInput;
|
|
414
|
+
sort: IBrandsSortInput;
|
|
415
|
+
page: IAdminPageInput;
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
export type IQueryFetchAdminReferralsPageArgs = {
|
|
420
|
+
filter: IReferralsFilterInput;
|
|
421
|
+
sort: IReferralsSortInput;
|
|
422
|
+
page: IAdminPageInput;
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
export type IQueryFetchAdminUsersPageArgs = {
|
|
427
|
+
filter: IUsersFilterInput;
|
|
428
|
+
sort: IUsersSortInput;
|
|
429
|
+
page: IAdminPageInput;
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
export type IQueryFetchAdminXpPageArgs = {
|
|
434
|
+
filter: IXpFilterInput;
|
|
435
|
+
sort: IXpSortInput;
|
|
436
|
+
page: IAdminPageInput;
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
export type IReferralsFilterInput = {
|
|
440
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
441
|
+
usernameTerm?: Maybe<Scalars['String']>;
|
|
442
|
+
mainWalletTerm?: Maybe<Scalars['String']>;
|
|
443
|
+
referredUsersNumTerm?: Maybe<Scalars['String']>;
|
|
444
|
+
userRefUrlTerm?: Maybe<Scalars['String']>;
|
|
445
|
+
opportunityUrlTerm?: Maybe<Scalars['String']>;
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
export type IReferralsPage = {
|
|
449
|
+
adminReferrals: Array<IAdminReferral>;
|
|
450
|
+
nextPage?: Maybe<IAdminPage>;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
export type IReferralsSortInput = {
|
|
454
|
+
sortByUsername?: Maybe<ISort>;
|
|
455
|
+
sortByReferredUsersNum?: Maybe<ISort>;
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
export type IReferredUsersInfo = {
|
|
459
|
+
userRefUrl: Scalars['String'];
|
|
460
|
+
opportunityUrl: Scalars['String'];
|
|
461
|
+
referredUsersPerUrlNum: Scalars['Int'];
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
export type ISort = {
|
|
465
|
+
enabled: Scalars['Boolean'];
|
|
466
|
+
direction?: Maybe<ISortDirection>;
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
/** front-end asked for lower case values */
|
|
470
|
+
export enum ISortDirection {
|
|
471
|
+
Asc = 'asc',
|
|
472
|
+
Desc = 'desc'
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
export type IUsersFilterInput = {
|
|
477
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
478
|
+
usernameTerm?: Maybe<Scalars['String']>;
|
|
479
|
+
walletsTerm?: Maybe<Scalars['String']>;
|
|
480
|
+
connectedBlockchainsTerm?: Maybe<Scalars['String']>;
|
|
481
|
+
isActiveAccount?: Maybe<Scalars['Boolean']>;
|
|
482
|
+
createdDateTimestamp?: Maybe<Scalars['Long']>;
|
|
483
|
+
interestTerm?: Maybe<Scalars['String']>;
|
|
484
|
+
walletsValue?: Maybe<Scalars['Float']>;
|
|
485
|
+
xpLevel?: Maybe<Scalars['Int']>;
|
|
486
|
+
ludoRank?: Maybe<Scalars['Float']>;
|
|
487
|
+
invitedByTerm?: Maybe<Scalars['String']>;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
export type IUsersPage = {
|
|
491
|
+
users: Array<IAdminUser>;
|
|
492
|
+
nextPage?: Maybe<IAdminPage>;
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
export type IUsersSortInput = {
|
|
496
|
+
sortByUsername?: Maybe<ISort>;
|
|
497
|
+
sortByAccountStatus?: Maybe<ISort>;
|
|
498
|
+
sortByCreatedDate?: Maybe<ISort>;
|
|
499
|
+
sortByWalletsValue?: Maybe<ISort>;
|
|
500
|
+
sortByXpLevel?: Maybe<ISort>;
|
|
501
|
+
sortByLudoRank?: Maybe<ISort>;
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
export type IWallet = {
|
|
505
|
+
address: Scalars['String'];
|
|
506
|
+
blockchain: Scalars['String'];
|
|
507
|
+
chainId?: Maybe<Scalars['String']>;
|
|
508
|
+
isMain?: Maybe<Scalars['Boolean']>;
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
export type IXpFilterInput = {
|
|
512
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
513
|
+
usernameTerm?: Maybe<Scalars['String']>;
|
|
514
|
+
mainWalletTerm?: Maybe<Scalars['String']>;
|
|
515
|
+
userXpLevelTerm?: Maybe<Scalars['String']>;
|
|
516
|
+
userXpPointsTerm?: Maybe<Scalars['String']>;
|
|
517
|
+
invitedUserTerm?: Maybe<Scalars['String']>;
|
|
518
|
+
referredUsersNumTerm?: Maybe<Scalars['String']>;
|
|
519
|
+
joinedOpportunityTerm?: Maybe<Scalars['String']>;
|
|
520
|
+
connectedWalletsNumTerm?: Maybe<Scalars['String']>;
|
|
521
|
+
suggestedOpportunityTerm?: Maybe<Scalars['String']>;
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
export type IXpPage = {
|
|
525
|
+
xps: Array<IAdminXp>;
|
|
526
|
+
nextPage?: Maybe<IAdminPage>;
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
export type IXpSortInput = {
|
|
530
|
+
sortByUsername?: Maybe<ISort>;
|
|
531
|
+
sortByXpLevel?: Maybe<ISort>;
|
|
532
|
+
sortByXpPoints?: Maybe<ISort>;
|
|
533
|
+
sortByInvitedUsers?: Maybe<ISort>;
|
|
534
|
+
sortByReferredUsersNum?: Maybe<ISort>;
|
|
535
|
+
sortByJoinedOpportunities?: Maybe<ISort>;
|
|
536
|
+
sortByConnectedWalletsNum?: Maybe<ISort>;
|
|
537
|
+
sortBySuggestedOpportunities?: Maybe<ISort>;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
546
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
547
|
+
};
|
|
548
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
549
|
+
|
|
550
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (
|
|
551
|
+
parent: TParent,
|
|
552
|
+
args: TArgs,
|
|
553
|
+
context: TContext,
|
|
554
|
+
info: GraphQLResolveInfo
|
|
555
|
+
) => Promise<TResult> | TResult;
|
|
556
|
+
|
|
557
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
|
|
558
|
+
parent: TParent,
|
|
559
|
+
args: TArgs,
|
|
560
|
+
context: TContext,
|
|
561
|
+
info: GraphQLResolveInfo
|
|
562
|
+
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
563
|
+
|
|
564
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
|
|
565
|
+
parent: TParent,
|
|
566
|
+
args: TArgs,
|
|
567
|
+
context: TContext,
|
|
568
|
+
info: GraphQLResolveInfo
|
|
569
|
+
) => TResult | Promise<TResult>;
|
|
570
|
+
|
|
571
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
572
|
+
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
|
|
573
|
+
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
577
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
578
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
|
|
582
|
+
| SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
|
|
583
|
+
| SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
584
|
+
|
|
585
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
|
|
586
|
+
| ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
|
|
587
|
+
| SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
588
|
+
|
|
589
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
|
|
590
|
+
parent: TParent,
|
|
591
|
+
context: TContext,
|
|
592
|
+
info: GraphQLResolveInfo
|
|
593
|
+
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
594
|
+
|
|
595
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
596
|
+
|
|
597
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
598
|
+
|
|
599
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
|
|
600
|
+
next: NextResolverFn<TResult>,
|
|
601
|
+
parent: TParent,
|
|
602
|
+
args: TArgs,
|
|
603
|
+
context: TContext,
|
|
604
|
+
info: GraphQLResolveInfo
|
|
605
|
+
) => TResult | Promise<TResult>;
|
|
606
|
+
|
|
607
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
608
|
+
export type IResolversTypes = {
|
|
609
|
+
ActiveInvite: ResolverTypeWrapper<IActiveInvite>;
|
|
610
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
611
|
+
AdminBrand: ResolverTypeWrapper<IAdminBrand>;
|
|
612
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
613
|
+
AdminCategory: ResolverTypeWrapper<IAdminCategory>;
|
|
614
|
+
AdminInvite: ResolverTypeWrapper<IAdminInvite>;
|
|
615
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
616
|
+
AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
|
|
617
|
+
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
618
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
619
|
+
AdminOpportunityInput: IAdminOpportunityInput;
|
|
620
|
+
AdminPage: ResolverTypeWrapper<IAdminPage>;
|
|
621
|
+
AdminPageInput: IAdminPageInput;
|
|
622
|
+
AdminReferral: ResolverTypeWrapper<IAdminReferral>;
|
|
623
|
+
AdminUser: ResolverTypeWrapper<IAdminUser>;
|
|
624
|
+
AdminXp: ResolverTypeWrapper<IAdminXp>;
|
|
625
|
+
BrandInput: IBrandInput;
|
|
626
|
+
BrandsFilterInput: IBrandsFilterInput;
|
|
627
|
+
BrandsPage: ResolverTypeWrapper<IBrandsPage>;
|
|
628
|
+
BrandsSortInput: IBrandsSortInput;
|
|
629
|
+
CategoriesFilterInput: ICategoriesFilterInput;
|
|
630
|
+
CategoriesPage: ResolverTypeWrapper<ICategoriesPage>;
|
|
631
|
+
CategoriesSortInput: ICategoriesSortInput;
|
|
632
|
+
CategoryInput: ICategoryInput;
|
|
633
|
+
InvitesFilterInput: IInvitesFilterInput;
|
|
634
|
+
InvitesPage: ResolverTypeWrapper<IInvitesPage>;
|
|
635
|
+
InvitesSortInput: IInvitesSortInput;
|
|
636
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
637
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
638
|
+
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
639
|
+
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
640
|
+
OpportunitiesSortInput: IOpportunitiesSortInput;
|
|
641
|
+
Query: ResolverTypeWrapper<{}>;
|
|
642
|
+
ReferralsFilterInput: IReferralsFilterInput;
|
|
643
|
+
ReferralsPage: ResolverTypeWrapper<IReferralsPage>;
|
|
644
|
+
ReferralsSortInput: IReferralsSortInput;
|
|
645
|
+
ReferredUsersInfo: ResolverTypeWrapper<IReferredUsersInfo>;
|
|
646
|
+
Sort: ISort;
|
|
647
|
+
SortDirection: ISortDirection;
|
|
648
|
+
Upload: ResolverTypeWrapper<Scalars['Upload']>;
|
|
649
|
+
UsersFilterInput: IUsersFilterInput;
|
|
650
|
+
UsersPage: ResolverTypeWrapper<IUsersPage>;
|
|
651
|
+
UsersSortInput: IUsersSortInput;
|
|
652
|
+
Wallet: ResolverTypeWrapper<IWallet>;
|
|
653
|
+
XpFilterInput: IXpFilterInput;
|
|
654
|
+
XpPage: ResolverTypeWrapper<IXpPage>;
|
|
655
|
+
XpSortInput: IXpSortInput;
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
659
|
+
export type IResolversParentTypes = {
|
|
660
|
+
ActiveInvite: IActiveInvite;
|
|
661
|
+
String: Scalars['String'];
|
|
662
|
+
AdminBrand: IAdminBrand;
|
|
663
|
+
Boolean: Scalars['Boolean'];
|
|
664
|
+
AdminCategory: IAdminCategory;
|
|
665
|
+
AdminInvite: IAdminInvite;
|
|
666
|
+
Int: Scalars['Int'];
|
|
667
|
+
AdminOpportunity: IAdminOpportunity;
|
|
668
|
+
ID: Scalars['ID'];
|
|
669
|
+
Float: Scalars['Float'];
|
|
670
|
+
AdminOpportunityInput: IAdminOpportunityInput;
|
|
671
|
+
AdminPage: IAdminPage;
|
|
672
|
+
AdminPageInput: IAdminPageInput;
|
|
673
|
+
AdminReferral: IAdminReferral;
|
|
674
|
+
AdminUser: IAdminUser;
|
|
675
|
+
AdminXp: IAdminXp;
|
|
676
|
+
BrandInput: IBrandInput;
|
|
677
|
+
BrandsFilterInput: IBrandsFilterInput;
|
|
678
|
+
BrandsPage: IBrandsPage;
|
|
679
|
+
BrandsSortInput: IBrandsSortInput;
|
|
680
|
+
CategoriesFilterInput: ICategoriesFilterInput;
|
|
681
|
+
CategoriesPage: ICategoriesPage;
|
|
682
|
+
CategoriesSortInput: ICategoriesSortInput;
|
|
683
|
+
CategoryInput: ICategoryInput;
|
|
684
|
+
InvitesFilterInput: IInvitesFilterInput;
|
|
685
|
+
InvitesPage: IInvitesPage;
|
|
686
|
+
InvitesSortInput: IInvitesSortInput;
|
|
687
|
+
Long: Scalars['Long'];
|
|
688
|
+
Mutation: {};
|
|
689
|
+
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
690
|
+
OpportunitiesPage: IOpportunitiesPage;
|
|
691
|
+
OpportunitiesSortInput: IOpportunitiesSortInput;
|
|
692
|
+
Query: {};
|
|
693
|
+
ReferralsFilterInput: IReferralsFilterInput;
|
|
694
|
+
ReferralsPage: IReferralsPage;
|
|
695
|
+
ReferralsSortInput: IReferralsSortInput;
|
|
696
|
+
ReferredUsersInfo: IReferredUsersInfo;
|
|
697
|
+
Sort: ISort;
|
|
698
|
+
Upload: Scalars['Upload'];
|
|
699
|
+
UsersFilterInput: IUsersFilterInput;
|
|
700
|
+
UsersPage: IUsersPage;
|
|
701
|
+
UsersSortInput: IUsersSortInput;
|
|
702
|
+
Wallet: IWallet;
|
|
703
|
+
XpFilterInput: IXpFilterInput;
|
|
704
|
+
XpPage: IXpPage;
|
|
705
|
+
XpSortInput: IXpSortInput;
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
export type IMinDirectiveArgs = {
|
|
709
|
+
value?: Maybe<Scalars['Int']>;
|
|
710
|
+
message?: Maybe<Scalars['String']>;
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
export type IMinDirectiveResolver<Result, Parent, ContextType = any, Args = IMinDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
714
|
+
|
|
715
|
+
export type IRangeDirectiveArgs = {
|
|
716
|
+
min?: Maybe<Scalars['Int']>;
|
|
717
|
+
max?: Maybe<Scalars['Int']>;
|
|
718
|
+
message?: Maybe<Scalars['String']>;
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
export type IRangeDirectiveResolver<Result, Parent, ContextType = any, Args = IRangeDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
722
|
+
|
|
723
|
+
export type IOneOfDirectiveArgs = { };
|
|
724
|
+
|
|
725
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
726
|
+
|
|
727
|
+
export type IActiveInviteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActiveInvite'] = IResolversParentTypes['ActiveInvite']> = {
|
|
728
|
+
inviteCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
729
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
730
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminBrand'] = IResolversParentTypes['AdminBrand']> = {
|
|
734
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
735
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
736
|
+
matchingWords?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
737
|
+
description?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
738
|
+
industry?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
739
|
+
link?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
740
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
741
|
+
archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
742
|
+
addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
743
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
export type IAdminCategoryResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminCategory'] = IResolversParentTypes['AdminCategory']> = {
|
|
747
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
748
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
749
|
+
matchingWords?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
750
|
+
archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
751
|
+
addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
752
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
export type IAdminInviteResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminInvite'] = IResolversParentTypes['AdminInvite']> = {
|
|
756
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
757
|
+
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
758
|
+
wallet?: Resolver<Maybe<IResolversTypes['Wallet']>, ParentType, ContextType>;
|
|
759
|
+
activeInvites?: Resolver<Maybe<Array<IResolversTypes['ActiveInvite']>>, ParentType, ContextType>;
|
|
760
|
+
referredUsers?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
761
|
+
userXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
762
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminOpportunity'] = IResolversParentTypes['AdminOpportunity']> = {
|
|
766
|
+
opportunityId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
767
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
768
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
769
|
+
brandName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
770
|
+
industry?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
771
|
+
category?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
772
|
+
ludoUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
773
|
+
projectUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
774
|
+
pushNotificationsEnabled?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
775
|
+
status?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
776
|
+
activeFrom?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
777
|
+
activeUntil?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
778
|
+
minXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
779
|
+
maxXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
780
|
+
minLudoRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
781
|
+
maxLudoRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
782
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
783
|
+
minWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
784
|
+
maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
785
|
+
clicks?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
786
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
787
|
+
addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
788
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
export type IAdminPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPage'] = IResolversParentTypes['AdminPage']> = {
|
|
792
|
+
num?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
793
|
+
lastNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
794
|
+
size?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
795
|
+
elements?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
796
|
+
token?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
797
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
export type IAdminReferralResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminReferral'] = IResolversParentTypes['AdminReferral']> = {
|
|
801
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
802
|
+
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
803
|
+
mainWallet?: Resolver<Maybe<IResolversTypes['Wallet']>, ParentType, ContextType>;
|
|
804
|
+
referredUsersNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
805
|
+
referrals?: Resolver<Maybe<Array<IResolversTypes['ReferredUsersInfo']>>, ParentType, ContextType>;
|
|
806
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
export type IAdminUserResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminUser'] = IResolversParentTypes['AdminUser']> = {
|
|
810
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
811
|
+
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
812
|
+
wallets?: Resolver<Maybe<Array<IResolversTypes['Wallet']>>, ParentType, ContextType>;
|
|
813
|
+
connectedBlockchains?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
814
|
+
isActive?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
815
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
816
|
+
topInterests?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
817
|
+
walletsValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
818
|
+
xpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
819
|
+
ludoRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
820
|
+
inviterId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
821
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
export type IAdminXpResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminXp'] = IResolversParentTypes['AdminXp']> = {
|
|
825
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
826
|
+
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
827
|
+
mainWallet?: Resolver<Maybe<IResolversTypes['Wallet']>, ParentType, ContextType>;
|
|
828
|
+
userXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
829
|
+
userXpPoints?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
830
|
+
referredUsers?: Resolver<Maybe<Array<IResolversTypes['ID']>>, ParentType, ContextType>;
|
|
831
|
+
referredUsersNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
832
|
+
joinedOpportunityIds?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
833
|
+
connectedWalletsNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
834
|
+
suggestedOpportunityIds?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
835
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
export type IBrandsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['BrandsPage'] = IResolversParentTypes['BrandsPage']> = {
|
|
839
|
+
brands?: Resolver<Array<IResolversTypes['AdminBrand']>, ParentType, ContextType>;
|
|
840
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
841
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
export type ICategoriesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['CategoriesPage'] = IResolversParentTypes['CategoriesPage']> = {
|
|
845
|
+
categories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
846
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
847
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
848
|
+
};
|
|
849
|
+
|
|
850
|
+
export type IInvitesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['InvitesPage'] = IResolversParentTypes['InvitesPage']> = {
|
|
851
|
+
invites?: Resolver<Array<IResolversTypes['AdminInvite']>, ParentType, ContextType>;
|
|
852
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
853
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
857
|
+
name: 'Long';
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
861
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
862
|
+
removeInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveInviteCodeArgs, 'inviteCode'>>;
|
|
863
|
+
addInviteCodes?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddInviteCodesArgs, 'userId' | 'codesNum'>>;
|
|
864
|
+
updateOpportunityPushStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityPushStatusArgs, 'opportunityId' | 'isActive'>>;
|
|
865
|
+
createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'brand'>>;
|
|
866
|
+
updateBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArgs, 'id' | 'input'>>;
|
|
867
|
+
updateBrandArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
868
|
+
createCategory?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateCategoryArgs, 'name' | 'matchingWords'>>;
|
|
869
|
+
updateCategory?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateCategoryArgs, 'id' | 'input'>>;
|
|
870
|
+
updateCategoryArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateCategoryArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
871
|
+
createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
|
|
872
|
+
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
873
|
+
updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
|
|
874
|
+
removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
875
|
+
addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
876
|
+
changeXpPoints?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationChangeXpPointsArgs, 'userId' | 'pointsDiff'>>;
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
880
|
+
opportunities?: Resolver<Array<IResolversTypes['AdminOpportunity']>, ParentType, ContextType>;
|
|
881
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
882
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
886
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
887
|
+
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
888
|
+
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
889
|
+
fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
890
|
+
fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
891
|
+
fetchAdminBrands?: Resolver<Array<IResolversTypes['AdminBrand']>, ParentType, ContextType>;
|
|
892
|
+
fetchAdminBrandsPage?: Resolver<IResolversTypes['BrandsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminBrandsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
893
|
+
fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
894
|
+
fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
895
|
+
fetchAdminUsersPage?: Resolver<IResolversTypes['UsersPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminUsersPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
896
|
+
fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
export type IReferralsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralsPage'] = IResolversParentTypes['ReferralsPage']> = {
|
|
900
|
+
adminReferrals?: Resolver<Array<IResolversTypes['AdminReferral']>, ParentType, ContextType>;
|
|
901
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
902
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
export type IReferredUsersInfoResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferredUsersInfo'] = IResolversParentTypes['ReferredUsersInfo']> = {
|
|
906
|
+
userRefUrl?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
907
|
+
opportunityUrl?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
908
|
+
referredUsersPerUrlNum?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
909
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
|
|
913
|
+
name: 'Upload';
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
export type IUsersPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['UsersPage'] = IResolversParentTypes['UsersPage']> = {
|
|
917
|
+
users?: Resolver<Array<IResolversTypes['AdminUser']>, ParentType, ContextType>;
|
|
918
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
919
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
920
|
+
};
|
|
921
|
+
|
|
922
|
+
export type IWalletResolvers<ContextType = any, ParentType extends IResolversParentTypes['Wallet'] = IResolversParentTypes['Wallet']> = {
|
|
923
|
+
address?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
924
|
+
blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
925
|
+
chainId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
926
|
+
isMain?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
927
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
export type IXpPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['XpPage'] = IResolversParentTypes['XpPage']> = {
|
|
931
|
+
xps?: Resolver<Array<IResolversTypes['AdminXp']>, ParentType, ContextType>;
|
|
932
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
933
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
export type IResolvers<ContextType = any> = {
|
|
937
|
+
ActiveInvite?: IActiveInviteResolvers<ContextType>;
|
|
938
|
+
AdminBrand?: IAdminBrandResolvers<ContextType>;
|
|
939
|
+
AdminCategory?: IAdminCategoryResolvers<ContextType>;
|
|
940
|
+
AdminInvite?: IAdminInviteResolvers<ContextType>;
|
|
941
|
+
AdminOpportunity?: IAdminOpportunityResolvers<ContextType>;
|
|
942
|
+
AdminPage?: IAdminPageResolvers<ContextType>;
|
|
943
|
+
AdminReferral?: IAdminReferralResolvers<ContextType>;
|
|
944
|
+
AdminUser?: IAdminUserResolvers<ContextType>;
|
|
945
|
+
AdminXp?: IAdminXpResolvers<ContextType>;
|
|
946
|
+
BrandsPage?: IBrandsPageResolvers<ContextType>;
|
|
947
|
+
CategoriesPage?: ICategoriesPageResolvers<ContextType>;
|
|
948
|
+
InvitesPage?: IInvitesPageResolvers<ContextType>;
|
|
949
|
+
Long?: GraphQLScalarType;
|
|
950
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
951
|
+
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
952
|
+
Query?: IQueryResolvers<ContextType>;
|
|
953
|
+
ReferralsPage?: IReferralsPageResolvers<ContextType>;
|
|
954
|
+
ReferredUsersInfo?: IReferredUsersInfoResolvers<ContextType>;
|
|
955
|
+
Upload?: GraphQLScalarType;
|
|
956
|
+
UsersPage?: IUsersPageResolvers<ContextType>;
|
|
957
|
+
Wallet?: IWalletResolvers<ContextType>;
|
|
958
|
+
XpPage?: IXpPageResolvers<ContextType>;
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
962
|
+
Min?: IMinDirectiveResolver<any, any, ContextType>;
|
|
963
|
+
Range?: IRangeDirectiveResolver<any, any, ContextType>;
|
|
964
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
965
|
+
};
|
|
966
|
+
|
|
967
|
+
export type IChangeXpPointsMutationVariables = Exact<{
|
|
968
|
+
userId: Scalars['ID'];
|
|
969
|
+
pointsDiff: Scalars['Int'];
|
|
970
|
+
}>;
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
export type IChangeXpPointsMutation = Pick<IMutation, 'changeXpPoints'>;
|
|
974
|
+
|
|
975
|
+
export type ICreateCategoryMutationVariables = Exact<{
|
|
976
|
+
name: Scalars['String'];
|
|
977
|
+
matchingWords: Array<Scalars['String']>;
|
|
978
|
+
}>;
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
export type ICreateCategoryMutation = Pick<IMutation, 'createCategory'>;
|
|
982
|
+
|
|
983
|
+
export type ICreateBrandMutationVariables = Exact<{
|
|
984
|
+
brand: IBrandInput;
|
|
985
|
+
file?: Maybe<Scalars['Upload']>;
|
|
986
|
+
}>;
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
export type ICreateBrandMutation = Pick<IMutation, 'createBrand'>;
|
|
990
|
+
|
|
991
|
+
export type ICreateAdminOpportunityMutationVariables = Exact<{
|
|
992
|
+
file?: Maybe<Scalars['Upload']>;
|
|
993
|
+
input: IAdminOpportunityInput;
|
|
994
|
+
}>;
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
export type ICreateAdminOpportunityMutation = Pick<IMutation, 'createAdminOpportunity'>;
|
|
998
|
+
|
|
999
|
+
export type IAddInviteCodesMutationVariables = Exact<{
|
|
1000
|
+
userId: Scalars['String'];
|
|
1001
|
+
codesNum: Scalars['Int'];
|
|
1002
|
+
}>;
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
export type IAddInviteCodesMutation = Pick<IMutation, 'addInviteCodes'>;
|
|
1006
|
+
|
|
1007
|
+
export type IRemoveInviteCodeMutationVariables = Exact<{
|
|
1008
|
+
inviteCode: Scalars['String'];
|
|
1009
|
+
}>;
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
|
|
1013
|
+
|
|
1014
|
+
export type IUpdateProfileStatusMutationVariables = Exact<{
|
|
1015
|
+
userId: Scalars['ID'];
|
|
1016
|
+
isActive: Scalars['Boolean'];
|
|
1017
|
+
}>;
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
export type IUpdateProfileStatusMutation = Pick<IMutation, 'updateProfileStatus'>;
|
|
1021
|
+
|
|
1022
|
+
export type IFetchAdminBrandsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
export type IFetchAdminBrandsQuery = { fetchAdminBrands: Array<Pick<IAdminBrand, 'id' | 'name'>> };
|
|
1026
|
+
|
|
1027
|
+
export type IFetchAdminBrandsPageQueryVariables = Exact<{
|
|
1028
|
+
filter: IBrandsFilterInput;
|
|
1029
|
+
sort: IBrandsSortInput;
|
|
1030
|
+
page: IAdminPageInput;
|
|
1031
|
+
}>;
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
export type IFetchAdminBrandsPageQuery = { fetchAdminBrandsPage: { brands: Array<Pick<IAdminBrand, 'description' | 'id' | 'industry' | 'link' | 'matchingWords' | 'media' | 'name' | 'archived' | 'addedBy'>>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements'>> } };
|
|
1035
|
+
|
|
1036
|
+
export type IFetchAdminCategoriesQueryVariables = Exact<{ [key: string]: never; }>;
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
export type IFetchAdminCategoriesQuery = { fetchAdminCategories: Array<Pick<IAdminCategory, 'id' | 'name'>> };
|
|
1040
|
+
|
|
1041
|
+
export type IFetchAdminCategoriesPageQueryVariables = Exact<{
|
|
1042
|
+
filter: ICategoriesFilterInput;
|
|
1043
|
+
sort: ICategoriesSortInput;
|
|
1044
|
+
page: IAdminPageInput;
|
|
1045
|
+
}>;
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
export type IFetchAdminCategoriesPageQuery = { fetchAdminCategoriesPage: { categories: Array<Pick<IAdminCategory, 'id' | 'name' | 'matchingWords' | 'archived' | 'addedBy'>>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements'>> } };
|
|
1049
|
+
|
|
1050
|
+
export type IFetchAdminInvitesPageQueryVariables = Exact<{
|
|
1051
|
+
filter: IInvitesFilterInput;
|
|
1052
|
+
sort: IInvitesSortInput;
|
|
1053
|
+
page: IAdminPageInput;
|
|
1054
|
+
}>;
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
export type IFetchAdminInvitesPageQuery = { fetchAdminInvitesPage: { invites: Array<(
|
|
1058
|
+
Pick<IAdminInvite, 'userId' | 'username' | 'referredUsers' | 'userXpLevel'>
|
|
1059
|
+
& { wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt'>>> }
|
|
1060
|
+
)>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
|
|
1061
|
+
|
|
1062
|
+
export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
|
|
1063
|
+
filter: IOpportunitiesFilterInput;
|
|
1064
|
+
sort: IOpportunitiesSortInput;
|
|
1065
|
+
page: IAdminPageInput;
|
|
1066
|
+
}>;
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
export type IFetchAdminOpportunitiesPageQuery = { fetchAdminOpportunitiesPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'brandName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views' | 'addedBy'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
1070
|
+
|
|
1071
|
+
export type IFetchAdminReferralsPageQueryVariables = Exact<{
|
|
1072
|
+
filter: IReferralsFilterInput;
|
|
1073
|
+
sort: IReferralsSortInput;
|
|
1074
|
+
page: IAdminPageInput;
|
|
1075
|
+
}>;
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
export type IFetchAdminReferralsPageQuery = { fetchAdminReferralsPage: { adminReferrals: Array<(
|
|
1079
|
+
Pick<IAdminReferral, 'userId' | 'username' | 'referredUsersNum'>
|
|
1080
|
+
& { mainWallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, referrals?: Maybe<Array<Pick<IReferredUsersInfo, 'userRefUrl' | 'opportunityUrl' | 'referredUsersPerUrlNum'>>> }
|
|
1081
|
+
)>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
1082
|
+
|
|
1083
|
+
export type IFetchAdminUsersPageQueryVariables = Exact<{
|
|
1084
|
+
filter: IUsersFilterInput;
|
|
1085
|
+
sort: IUsersSortInput;
|
|
1086
|
+
page: IAdminPageInput;
|
|
1087
|
+
}>;
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
export type IFetchAdminUsersPageQuery = { fetchAdminUsersPage: { users: Array<(
|
|
1091
|
+
Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId'>
|
|
1092
|
+
& { wallets?: Maybe<Array<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>> }
|
|
1093
|
+
)>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
|
|
1094
|
+
|
|
1095
|
+
export type IFetchAdminXpPageQueryVariables = Exact<{
|
|
1096
|
+
filter: IXpFilterInput;
|
|
1097
|
+
sort: IXpSortInput;
|
|
1098
|
+
page: IAdminPageInput;
|
|
1099
|
+
}>;
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
export type IFetchAdminXpPageQuery = { fetchAdminXpPage: { xps: Array<(
|
|
1103
|
+
Pick<IAdminXp, 'userId' | 'username' | 'userXpLevel' | 'userXpPoints' | 'referredUsers' | 'referredUsersNum' | 'joinedOpportunityIds' | 'connectedWalletsNum' | 'suggestedOpportunityIds'>
|
|
1104
|
+
& { mainWallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>> }
|
|
1105
|
+
)>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
1106
|
+
|
|
1107
|
+
export type IFetchBlockchainsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
export type IFetchBlockchainsQuery = Pick<IQuery, 'fetchBlockchains'>;
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
export const ChangeXpPointsDocument = gql`
|
|
1114
|
+
mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
|
|
1115
|
+
changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)
|
|
1116
|
+
}
|
|
1117
|
+
`;
|
|
1118
|
+
export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* __useChangeXpPointsMutation__
|
|
1122
|
+
*
|
|
1123
|
+
* To run a mutation, you first call `useChangeXpPointsMutation` within a React component and pass it any options that fit your needs.
|
|
1124
|
+
* When your component renders, `useChangeXpPointsMutation` returns a tuple that includes:
|
|
1125
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1126
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1127
|
+
*
|
|
1128
|
+
* @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;
|
|
1129
|
+
*
|
|
1130
|
+
* @example
|
|
1131
|
+
* const [changeXpPointsMutation, { data, loading, error }] = useChangeXpPointsMutation({
|
|
1132
|
+
* variables: {
|
|
1133
|
+
* userId: // value for 'userId'
|
|
1134
|
+
* pointsDiff: // value for 'pointsDiff'
|
|
1135
|
+
* },
|
|
1136
|
+
* });
|
|
1137
|
+
*/
|
|
1138
|
+
export function useChangeXpPointsMutation(baseOptions?: Apollo.MutationHookOptions<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>) {
|
|
1139
|
+
return Apollo.useMutation<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>(ChangeXpPointsDocument, baseOptions);
|
|
1140
|
+
}
|
|
1141
|
+
export type ChangeXpPointsMutationHookResult = ReturnType<typeof useChangeXpPointsMutation>;
|
|
1142
|
+
export type ChangeXpPointsMutationResult = Apollo.MutationResult<IChangeXpPointsMutation>;
|
|
1143
|
+
export type ChangeXpPointsMutationOptions = Apollo.BaseMutationOptions<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
1144
|
+
export const CreateCategoryDocument = gql`
|
|
1145
|
+
mutation CreateCategory($name: String!, $matchingWords: [String!]!) {
|
|
1146
|
+
createCategory(name: $name, matchingWords: $matchingWords)
|
|
1147
|
+
}
|
|
1148
|
+
`;
|
|
1149
|
+
export type ICreateCategoryMutationFn = Apollo.MutationFunction<ICreateCategoryMutation, ICreateCategoryMutationVariables>;
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* __useCreateCategoryMutation__
|
|
1153
|
+
*
|
|
1154
|
+
* To run a mutation, you first call `useCreateCategoryMutation` within a React component and pass it any options that fit your needs.
|
|
1155
|
+
* When your component renders, `useCreateCategoryMutation` returns a tuple that includes:
|
|
1156
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1157
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1158
|
+
*
|
|
1159
|
+
* @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;
|
|
1160
|
+
*
|
|
1161
|
+
* @example
|
|
1162
|
+
* const [createCategoryMutation, { data, loading, error }] = useCreateCategoryMutation({
|
|
1163
|
+
* variables: {
|
|
1164
|
+
* name: // value for 'name'
|
|
1165
|
+
* matchingWords: // value for 'matchingWords'
|
|
1166
|
+
* },
|
|
1167
|
+
* });
|
|
1168
|
+
*/
|
|
1169
|
+
export function useCreateCategoryMutation(baseOptions?: Apollo.MutationHookOptions<ICreateCategoryMutation, ICreateCategoryMutationVariables>) {
|
|
1170
|
+
return Apollo.useMutation<ICreateCategoryMutation, ICreateCategoryMutationVariables>(CreateCategoryDocument, baseOptions);
|
|
1171
|
+
}
|
|
1172
|
+
export type CreateCategoryMutationHookResult = ReturnType<typeof useCreateCategoryMutation>;
|
|
1173
|
+
export type CreateCategoryMutationResult = Apollo.MutationResult<ICreateCategoryMutation>;
|
|
1174
|
+
export type CreateCategoryMutationOptions = Apollo.BaseMutationOptions<ICreateCategoryMutation, ICreateCategoryMutationVariables>;
|
|
1175
|
+
export const CreateBrandDocument = gql`
|
|
1176
|
+
mutation CreateBrand($brand: BrandInput!, $file: Upload) {
|
|
1177
|
+
createBrand(brand: $brand, file: $file)
|
|
1178
|
+
}
|
|
1179
|
+
`;
|
|
1180
|
+
export type ICreateBrandMutationFn = Apollo.MutationFunction<ICreateBrandMutation, ICreateBrandMutationVariables>;
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* __useCreateBrandMutation__
|
|
1184
|
+
*
|
|
1185
|
+
* To run a mutation, you first call `useCreateBrandMutation` within a React component and pass it any options that fit your needs.
|
|
1186
|
+
* When your component renders, `useCreateBrandMutation` returns a tuple that includes:
|
|
1187
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1188
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1189
|
+
*
|
|
1190
|
+
* @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;
|
|
1191
|
+
*
|
|
1192
|
+
* @example
|
|
1193
|
+
* const [createBrandMutation, { data, loading, error }] = useCreateBrandMutation({
|
|
1194
|
+
* variables: {
|
|
1195
|
+
* brand: // value for 'brand'
|
|
1196
|
+
* file: // value for 'file'
|
|
1197
|
+
* },
|
|
1198
|
+
* });
|
|
1199
|
+
*/
|
|
1200
|
+
export function useCreateBrandMutation(baseOptions?: Apollo.MutationHookOptions<ICreateBrandMutation, ICreateBrandMutationVariables>) {
|
|
1201
|
+
return Apollo.useMutation<ICreateBrandMutation, ICreateBrandMutationVariables>(CreateBrandDocument, baseOptions);
|
|
1202
|
+
}
|
|
1203
|
+
export type CreateBrandMutationHookResult = ReturnType<typeof useCreateBrandMutation>;
|
|
1204
|
+
export type CreateBrandMutationResult = Apollo.MutationResult<ICreateBrandMutation>;
|
|
1205
|
+
export type CreateBrandMutationOptions = Apollo.BaseMutationOptions<ICreateBrandMutation, ICreateBrandMutationVariables>;
|
|
1206
|
+
export const CreateAdminOpportunityDocument = gql`
|
|
1207
|
+
mutation createAdminOpportunity($file: Upload, $input: AdminOpportunityInput!) {
|
|
1208
|
+
createAdminOpportunity(file: $file, input: $input)
|
|
1209
|
+
}
|
|
1210
|
+
`;
|
|
1211
|
+
export type ICreateAdminOpportunityMutationFn = Apollo.MutationFunction<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>;
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* __useCreateAdminOpportunityMutation__
|
|
1215
|
+
*
|
|
1216
|
+
* To run a mutation, you first call `useCreateAdminOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
1217
|
+
* When your component renders, `useCreateAdminOpportunityMutation` returns a tuple that includes:
|
|
1218
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1219
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1220
|
+
*
|
|
1221
|
+
* @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;
|
|
1222
|
+
*
|
|
1223
|
+
* @example
|
|
1224
|
+
* const [createAdminOpportunityMutation, { data, loading, error }] = useCreateAdminOpportunityMutation({
|
|
1225
|
+
* variables: {
|
|
1226
|
+
* file: // value for 'file'
|
|
1227
|
+
* input: // value for 'input'
|
|
1228
|
+
* },
|
|
1229
|
+
* });
|
|
1230
|
+
*/
|
|
1231
|
+
export function useCreateAdminOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>) {
|
|
1232
|
+
return Apollo.useMutation<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>(CreateAdminOpportunityDocument, baseOptions);
|
|
1233
|
+
}
|
|
1234
|
+
export type CreateAdminOpportunityMutationHookResult = ReturnType<typeof useCreateAdminOpportunityMutation>;
|
|
1235
|
+
export type CreateAdminOpportunityMutationResult = Apollo.MutationResult<ICreateAdminOpportunityMutation>;
|
|
1236
|
+
export type CreateAdminOpportunityMutationOptions = Apollo.BaseMutationOptions<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>;
|
|
1237
|
+
export const AddInviteCodesDocument = gql`
|
|
1238
|
+
mutation AddInviteCodes($userId: String!, $codesNum: Int!) {
|
|
1239
|
+
addInviteCodes(userId: $userId, codesNum: $codesNum)
|
|
1240
|
+
}
|
|
1241
|
+
`;
|
|
1242
|
+
export type IAddInviteCodesMutationFn = Apollo.MutationFunction<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>;
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* __useAddInviteCodesMutation__
|
|
1246
|
+
*
|
|
1247
|
+
* To run a mutation, you first call `useAddInviteCodesMutation` within a React component and pass it any options that fit your needs.
|
|
1248
|
+
* When your component renders, `useAddInviteCodesMutation` returns a tuple that includes:
|
|
1249
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1250
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1251
|
+
*
|
|
1252
|
+
* @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;
|
|
1253
|
+
*
|
|
1254
|
+
* @example
|
|
1255
|
+
* const [addInviteCodesMutation, { data, loading, error }] = useAddInviteCodesMutation({
|
|
1256
|
+
* variables: {
|
|
1257
|
+
* userId: // value for 'userId'
|
|
1258
|
+
* codesNum: // value for 'codesNum'
|
|
1259
|
+
* },
|
|
1260
|
+
* });
|
|
1261
|
+
*/
|
|
1262
|
+
export function useAddInviteCodesMutation(baseOptions?: Apollo.MutationHookOptions<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>) {
|
|
1263
|
+
return Apollo.useMutation<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>(AddInviteCodesDocument, baseOptions);
|
|
1264
|
+
}
|
|
1265
|
+
export type AddInviteCodesMutationHookResult = ReturnType<typeof useAddInviteCodesMutation>;
|
|
1266
|
+
export type AddInviteCodesMutationResult = Apollo.MutationResult<IAddInviteCodesMutation>;
|
|
1267
|
+
export type AddInviteCodesMutationOptions = Apollo.BaseMutationOptions<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>;
|
|
1268
|
+
export const RemoveInviteCodeDocument = gql`
|
|
1269
|
+
mutation RemoveInviteCode($inviteCode: String!) {
|
|
1270
|
+
removeInviteCode(inviteCode: $inviteCode)
|
|
1271
|
+
}
|
|
1272
|
+
`;
|
|
1273
|
+
export type IRemoveInviteCodeMutationFn = Apollo.MutationFunction<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
|
|
1274
|
+
|
|
1275
|
+
/**
|
|
1276
|
+
* __useRemoveInviteCodeMutation__
|
|
1277
|
+
*
|
|
1278
|
+
* To run a mutation, you first call `useRemoveInviteCodeMutation` within a React component and pass it any options that fit your needs.
|
|
1279
|
+
* When your component renders, `useRemoveInviteCodeMutation` returns a tuple that includes:
|
|
1280
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1281
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1282
|
+
*
|
|
1283
|
+
* @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;
|
|
1284
|
+
*
|
|
1285
|
+
* @example
|
|
1286
|
+
* const [removeInviteCodeMutation, { data, loading, error }] = useRemoveInviteCodeMutation({
|
|
1287
|
+
* variables: {
|
|
1288
|
+
* inviteCode: // value for 'inviteCode'
|
|
1289
|
+
* },
|
|
1290
|
+
* });
|
|
1291
|
+
*/
|
|
1292
|
+
export function useRemoveInviteCodeMutation(baseOptions?: Apollo.MutationHookOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>) {
|
|
1293
|
+
return Apollo.useMutation<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>(RemoveInviteCodeDocument, baseOptions);
|
|
1294
|
+
}
|
|
1295
|
+
export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
|
|
1296
|
+
export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
|
|
1297
|
+
export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
|
|
1298
|
+
export const UpdateProfileStatusDocument = gql`
|
|
1299
|
+
mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
|
|
1300
|
+
updateProfileStatus(userId: $userId, isActive: $isActive)
|
|
1301
|
+
}
|
|
1302
|
+
`;
|
|
1303
|
+
export type IUpdateProfileStatusMutationFn = Apollo.MutationFunction<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* __useUpdateProfileStatusMutation__
|
|
1307
|
+
*
|
|
1308
|
+
* To run a mutation, you first call `useUpdateProfileStatusMutation` within a React component and pass it any options that fit your needs.
|
|
1309
|
+
* When your component renders, `useUpdateProfileStatusMutation` returns a tuple that includes:
|
|
1310
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1311
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1312
|
+
*
|
|
1313
|
+
* @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;
|
|
1314
|
+
*
|
|
1315
|
+
* @example
|
|
1316
|
+
* const [updateProfileStatusMutation, { data, loading, error }] = useUpdateProfileStatusMutation({
|
|
1317
|
+
* variables: {
|
|
1318
|
+
* userId: // value for 'userId'
|
|
1319
|
+
* isActive: // value for 'isActive'
|
|
1320
|
+
* },
|
|
1321
|
+
* });
|
|
1322
|
+
*/
|
|
1323
|
+
export function useUpdateProfileStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>) {
|
|
1324
|
+
return Apollo.useMutation<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>(UpdateProfileStatusDocument, baseOptions);
|
|
1325
|
+
}
|
|
1326
|
+
export type UpdateProfileStatusMutationHookResult = ReturnType<typeof useUpdateProfileStatusMutation>;
|
|
1327
|
+
export type UpdateProfileStatusMutationResult = Apollo.MutationResult<IUpdateProfileStatusMutation>;
|
|
1328
|
+
export type UpdateProfileStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
|
|
1329
|
+
export const FetchAdminBrandsDocument = gql`
|
|
1330
|
+
query FetchAdminBrands {
|
|
1331
|
+
fetchAdminBrands {
|
|
1332
|
+
id
|
|
1333
|
+
name
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
`;
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* __useFetchAdminBrandsQuery__
|
|
1340
|
+
*
|
|
1341
|
+
* To run a query within a React component, call `useFetchAdminBrandsQuery` and pass it any options that fit your needs.
|
|
1342
|
+
* When your component renders, `useFetchAdminBrandsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1343
|
+
* you can use to render your UI.
|
|
1344
|
+
*
|
|
1345
|
+
* @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;
|
|
1346
|
+
*
|
|
1347
|
+
* @example
|
|
1348
|
+
* const { data, loading, error } = useFetchAdminBrandsQuery({
|
|
1349
|
+
* variables: {
|
|
1350
|
+
* },
|
|
1351
|
+
* });
|
|
1352
|
+
*/
|
|
1353
|
+
export function useFetchAdminBrandsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAdminBrandsQuery, IFetchAdminBrandsQueryVariables>) {
|
|
1354
|
+
return Apollo.useQuery<IFetchAdminBrandsQuery, IFetchAdminBrandsQueryVariables>(FetchAdminBrandsDocument, baseOptions);
|
|
1355
|
+
}
|
|
1356
|
+
export function useFetchAdminBrandsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminBrandsQuery, IFetchAdminBrandsQueryVariables>) {
|
|
1357
|
+
return Apollo.useLazyQuery<IFetchAdminBrandsQuery, IFetchAdminBrandsQueryVariables>(FetchAdminBrandsDocument, baseOptions);
|
|
1358
|
+
}
|
|
1359
|
+
export type FetchAdminBrandsQueryHookResult = ReturnType<typeof useFetchAdminBrandsQuery>;
|
|
1360
|
+
export type FetchAdminBrandsLazyQueryHookResult = ReturnType<typeof useFetchAdminBrandsLazyQuery>;
|
|
1361
|
+
export type FetchAdminBrandsQueryResult = Apollo.QueryResult<IFetchAdminBrandsQuery, IFetchAdminBrandsQueryVariables>;
|
|
1362
|
+
export const FetchAdminBrandsPageDocument = gql`
|
|
1363
|
+
query FetchAdminBrandsPage($filter: BrandsFilterInput!, $sort: BrandsSortInput!, $page: AdminPageInput!) {
|
|
1364
|
+
fetchAdminBrandsPage(filter: $filter, sort: $sort, page: $page) {
|
|
1365
|
+
brands {
|
|
1366
|
+
description
|
|
1367
|
+
id
|
|
1368
|
+
industry
|
|
1369
|
+
link
|
|
1370
|
+
matchingWords
|
|
1371
|
+
media
|
|
1372
|
+
name
|
|
1373
|
+
archived
|
|
1374
|
+
addedBy
|
|
1375
|
+
}
|
|
1376
|
+
nextPage {
|
|
1377
|
+
num
|
|
1378
|
+
lastNum
|
|
1379
|
+
size
|
|
1380
|
+
elements
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
`;
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* __useFetchAdminBrandsPageQuery__
|
|
1388
|
+
*
|
|
1389
|
+
* To run a query within a React component, call `useFetchAdminBrandsPageQuery` and pass it any options that fit your needs.
|
|
1390
|
+
* When your component renders, `useFetchAdminBrandsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1391
|
+
* you can use to render your UI.
|
|
1392
|
+
*
|
|
1393
|
+
* @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;
|
|
1394
|
+
*
|
|
1395
|
+
* @example
|
|
1396
|
+
* const { data, loading, error } = useFetchAdminBrandsPageQuery({
|
|
1397
|
+
* variables: {
|
|
1398
|
+
* filter: // value for 'filter'
|
|
1399
|
+
* sort: // value for 'sort'
|
|
1400
|
+
* page: // value for 'page'
|
|
1401
|
+
* },
|
|
1402
|
+
* });
|
|
1403
|
+
*/
|
|
1404
|
+
export function useFetchAdminBrandsPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminBrandsPageQuery, IFetchAdminBrandsPageQueryVariables>) {
|
|
1405
|
+
return Apollo.useQuery<IFetchAdminBrandsPageQuery, IFetchAdminBrandsPageQueryVariables>(FetchAdminBrandsPageDocument, baseOptions);
|
|
1406
|
+
}
|
|
1407
|
+
export function useFetchAdminBrandsPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminBrandsPageQuery, IFetchAdminBrandsPageQueryVariables>) {
|
|
1408
|
+
return Apollo.useLazyQuery<IFetchAdminBrandsPageQuery, IFetchAdminBrandsPageQueryVariables>(FetchAdminBrandsPageDocument, baseOptions);
|
|
1409
|
+
}
|
|
1410
|
+
export type FetchAdminBrandsPageQueryHookResult = ReturnType<typeof useFetchAdminBrandsPageQuery>;
|
|
1411
|
+
export type FetchAdminBrandsPageLazyQueryHookResult = ReturnType<typeof useFetchAdminBrandsPageLazyQuery>;
|
|
1412
|
+
export type FetchAdminBrandsPageQueryResult = Apollo.QueryResult<IFetchAdminBrandsPageQuery, IFetchAdminBrandsPageQueryVariables>;
|
|
1413
|
+
export const FetchAdminCategoriesDocument = gql`
|
|
1414
|
+
query FetchAdminCategories {
|
|
1415
|
+
fetchAdminCategories {
|
|
1416
|
+
id
|
|
1417
|
+
name
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
`;
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* __useFetchAdminCategoriesQuery__
|
|
1424
|
+
*
|
|
1425
|
+
* To run a query within a React component, call `useFetchAdminCategoriesQuery` and pass it any options that fit your needs.
|
|
1426
|
+
* When your component renders, `useFetchAdminCategoriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1427
|
+
* you can use to render your UI.
|
|
1428
|
+
*
|
|
1429
|
+
* @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;
|
|
1430
|
+
*
|
|
1431
|
+
* @example
|
|
1432
|
+
* const { data, loading, error } = useFetchAdminCategoriesQuery({
|
|
1433
|
+
* variables: {
|
|
1434
|
+
* },
|
|
1435
|
+
* });
|
|
1436
|
+
*/
|
|
1437
|
+
export function useFetchAdminCategoriesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAdminCategoriesQuery, IFetchAdminCategoriesQueryVariables>) {
|
|
1438
|
+
return Apollo.useQuery<IFetchAdminCategoriesQuery, IFetchAdminCategoriesQueryVariables>(FetchAdminCategoriesDocument, baseOptions);
|
|
1439
|
+
}
|
|
1440
|
+
export function useFetchAdminCategoriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminCategoriesQuery, IFetchAdminCategoriesQueryVariables>) {
|
|
1441
|
+
return Apollo.useLazyQuery<IFetchAdminCategoriesQuery, IFetchAdminCategoriesQueryVariables>(FetchAdminCategoriesDocument, baseOptions);
|
|
1442
|
+
}
|
|
1443
|
+
export type FetchAdminCategoriesQueryHookResult = ReturnType<typeof useFetchAdminCategoriesQuery>;
|
|
1444
|
+
export type FetchAdminCategoriesLazyQueryHookResult = ReturnType<typeof useFetchAdminCategoriesLazyQuery>;
|
|
1445
|
+
export type FetchAdminCategoriesQueryResult = Apollo.QueryResult<IFetchAdminCategoriesQuery, IFetchAdminCategoriesQueryVariables>;
|
|
1446
|
+
export const FetchAdminCategoriesPageDocument = gql`
|
|
1447
|
+
query FetchAdminCategoriesPage($filter: CategoriesFilterInput!, $sort: CategoriesSortInput!, $page: AdminPageInput!) {
|
|
1448
|
+
fetchAdminCategoriesPage(filter: $filter, sort: $sort, page: $page) {
|
|
1449
|
+
categories {
|
|
1450
|
+
id
|
|
1451
|
+
name
|
|
1452
|
+
matchingWords
|
|
1453
|
+
archived
|
|
1454
|
+
addedBy
|
|
1455
|
+
}
|
|
1456
|
+
nextPage {
|
|
1457
|
+
num
|
|
1458
|
+
lastNum
|
|
1459
|
+
size
|
|
1460
|
+
elements
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
`;
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* __useFetchAdminCategoriesPageQuery__
|
|
1468
|
+
*
|
|
1469
|
+
* To run a query within a React component, call `useFetchAdminCategoriesPageQuery` and pass it any options that fit your needs.
|
|
1470
|
+
* When your component renders, `useFetchAdminCategoriesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1471
|
+
* you can use to render your UI.
|
|
1472
|
+
*
|
|
1473
|
+
* @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;
|
|
1474
|
+
*
|
|
1475
|
+
* @example
|
|
1476
|
+
* const { data, loading, error } = useFetchAdminCategoriesPageQuery({
|
|
1477
|
+
* variables: {
|
|
1478
|
+
* filter: // value for 'filter'
|
|
1479
|
+
* sort: // value for 'sort'
|
|
1480
|
+
* page: // value for 'page'
|
|
1481
|
+
* },
|
|
1482
|
+
* });
|
|
1483
|
+
*/
|
|
1484
|
+
export function useFetchAdminCategoriesPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminCategoriesPageQuery, IFetchAdminCategoriesPageQueryVariables>) {
|
|
1485
|
+
return Apollo.useQuery<IFetchAdminCategoriesPageQuery, IFetchAdminCategoriesPageQueryVariables>(FetchAdminCategoriesPageDocument, baseOptions);
|
|
1486
|
+
}
|
|
1487
|
+
export function useFetchAdminCategoriesPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminCategoriesPageQuery, IFetchAdminCategoriesPageQueryVariables>) {
|
|
1488
|
+
return Apollo.useLazyQuery<IFetchAdminCategoriesPageQuery, IFetchAdminCategoriesPageQueryVariables>(FetchAdminCategoriesPageDocument, baseOptions);
|
|
1489
|
+
}
|
|
1490
|
+
export type FetchAdminCategoriesPageQueryHookResult = ReturnType<typeof useFetchAdminCategoriesPageQuery>;
|
|
1491
|
+
export type FetchAdminCategoriesPageLazyQueryHookResult = ReturnType<typeof useFetchAdminCategoriesPageLazyQuery>;
|
|
1492
|
+
export type FetchAdminCategoriesPageQueryResult = Apollo.QueryResult<IFetchAdminCategoriesPageQuery, IFetchAdminCategoriesPageQueryVariables>;
|
|
1493
|
+
export const FetchAdminInvitesPageDocument = gql`
|
|
1494
|
+
query fetchAdminInvitesPage($filter: InvitesFilterInput!, $sort: InvitesSortInput!, $page: AdminPageInput!) {
|
|
1495
|
+
fetchAdminInvitesPage(filter: $filter, sort: $sort, page: $page) {
|
|
1496
|
+
invites {
|
|
1497
|
+
userId
|
|
1498
|
+
username
|
|
1499
|
+
wallet {
|
|
1500
|
+
address
|
|
1501
|
+
blockchain
|
|
1502
|
+
chainId
|
|
1503
|
+
}
|
|
1504
|
+
activeInvites {
|
|
1505
|
+
inviteCode
|
|
1506
|
+
createdAt
|
|
1507
|
+
}
|
|
1508
|
+
referredUsers
|
|
1509
|
+
userXpLevel
|
|
1510
|
+
}
|
|
1511
|
+
nextPage {
|
|
1512
|
+
num
|
|
1513
|
+
lastNum
|
|
1514
|
+
size
|
|
1515
|
+
elements
|
|
1516
|
+
token
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
`;
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* __useFetchAdminInvitesPageQuery__
|
|
1524
|
+
*
|
|
1525
|
+
* To run a query within a React component, call `useFetchAdminInvitesPageQuery` and pass it any options that fit your needs.
|
|
1526
|
+
* When your component renders, `useFetchAdminInvitesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1527
|
+
* you can use to render your UI.
|
|
1528
|
+
*
|
|
1529
|
+
* @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;
|
|
1530
|
+
*
|
|
1531
|
+
* @example
|
|
1532
|
+
* const { data, loading, error } = useFetchAdminInvitesPageQuery({
|
|
1533
|
+
* variables: {
|
|
1534
|
+
* filter: // value for 'filter'
|
|
1535
|
+
* sort: // value for 'sort'
|
|
1536
|
+
* page: // value for 'page'
|
|
1537
|
+
* },
|
|
1538
|
+
* });
|
|
1539
|
+
*/
|
|
1540
|
+
export function useFetchAdminInvitesPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>) {
|
|
1541
|
+
return Apollo.useQuery<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>(FetchAdminInvitesPageDocument, baseOptions);
|
|
1542
|
+
}
|
|
1543
|
+
export function useFetchAdminInvitesPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>) {
|
|
1544
|
+
return Apollo.useLazyQuery<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>(FetchAdminInvitesPageDocument, baseOptions);
|
|
1545
|
+
}
|
|
1546
|
+
export type FetchAdminInvitesPageQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageQuery>;
|
|
1547
|
+
export type FetchAdminInvitesPageLazyQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageLazyQuery>;
|
|
1548
|
+
export type FetchAdminInvitesPageQueryResult = Apollo.QueryResult<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>;
|
|
1549
|
+
export const FetchAdminOpportunitiesPageDocument = gql`
|
|
1550
|
+
query FetchAdminOpportunitiesPage($filter: OpportunitiesFilterInput!, $sort: OpportunitiesSortInput!, $page: AdminPageInput!) {
|
|
1551
|
+
fetchAdminOpportunitiesPage(filter: $filter, sort: $sort, page: $page) {
|
|
1552
|
+
opportunities {
|
|
1553
|
+
opportunityId
|
|
1554
|
+
name
|
|
1555
|
+
brandName
|
|
1556
|
+
industry
|
|
1557
|
+
category
|
|
1558
|
+
ludoUrl
|
|
1559
|
+
projectUrl
|
|
1560
|
+
pushNotificationsEnabled
|
|
1561
|
+
status
|
|
1562
|
+
media
|
|
1563
|
+
description
|
|
1564
|
+
activeFrom
|
|
1565
|
+
activeUntil
|
|
1566
|
+
minXpLevel
|
|
1567
|
+
maxXpLevel
|
|
1568
|
+
minLudoRank
|
|
1569
|
+
maxLudoRank
|
|
1570
|
+
minWalletValue
|
|
1571
|
+
maxWalletValue
|
|
1572
|
+
clicks
|
|
1573
|
+
views
|
|
1574
|
+
addedBy
|
|
1575
|
+
}
|
|
1576
|
+
nextPage {
|
|
1577
|
+
elements
|
|
1578
|
+
lastNum
|
|
1579
|
+
num
|
|
1580
|
+
size
|
|
1581
|
+
token
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
`;
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* __useFetchAdminOpportunitiesPageQuery__
|
|
1589
|
+
*
|
|
1590
|
+
* To run a query within a React component, call `useFetchAdminOpportunitiesPageQuery` and pass it any options that fit your needs.
|
|
1591
|
+
* When your component renders, `useFetchAdminOpportunitiesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1592
|
+
* you can use to render your UI.
|
|
1593
|
+
*
|
|
1594
|
+
* @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;
|
|
1595
|
+
*
|
|
1596
|
+
* @example
|
|
1597
|
+
* const { data, loading, error } = useFetchAdminOpportunitiesPageQuery({
|
|
1598
|
+
* variables: {
|
|
1599
|
+
* filter: // value for 'filter'
|
|
1600
|
+
* sort: // value for 'sort'
|
|
1601
|
+
* page: // value for 'page'
|
|
1602
|
+
* },
|
|
1603
|
+
* });
|
|
1604
|
+
*/
|
|
1605
|
+
export function useFetchAdminOpportunitiesPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminOpportunitiesPageQuery, IFetchAdminOpportunitiesPageQueryVariables>) {
|
|
1606
|
+
return Apollo.useQuery<IFetchAdminOpportunitiesPageQuery, IFetchAdminOpportunitiesPageQueryVariables>(FetchAdminOpportunitiesPageDocument, baseOptions);
|
|
1607
|
+
}
|
|
1608
|
+
export function useFetchAdminOpportunitiesPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminOpportunitiesPageQuery, IFetchAdminOpportunitiesPageQueryVariables>) {
|
|
1609
|
+
return Apollo.useLazyQuery<IFetchAdminOpportunitiesPageQuery, IFetchAdminOpportunitiesPageQueryVariables>(FetchAdminOpportunitiesPageDocument, baseOptions);
|
|
1610
|
+
}
|
|
1611
|
+
export type FetchAdminOpportunitiesPageQueryHookResult = ReturnType<typeof useFetchAdminOpportunitiesPageQuery>;
|
|
1612
|
+
export type FetchAdminOpportunitiesPageLazyQueryHookResult = ReturnType<typeof useFetchAdminOpportunitiesPageLazyQuery>;
|
|
1613
|
+
export type FetchAdminOpportunitiesPageQueryResult = Apollo.QueryResult<IFetchAdminOpportunitiesPageQuery, IFetchAdminOpportunitiesPageQueryVariables>;
|
|
1614
|
+
export const FetchAdminReferralsPageDocument = gql`
|
|
1615
|
+
query FetchAdminReferralsPage($filter: ReferralsFilterInput!, $sort: ReferralsSortInput!, $page: AdminPageInput!) {
|
|
1616
|
+
fetchAdminReferralsPage(filter: $filter, sort: $sort, page: $page) {
|
|
1617
|
+
adminReferrals {
|
|
1618
|
+
userId
|
|
1619
|
+
username
|
|
1620
|
+
mainWallet {
|
|
1621
|
+
address
|
|
1622
|
+
blockchain
|
|
1623
|
+
chainId
|
|
1624
|
+
}
|
|
1625
|
+
referredUsersNum
|
|
1626
|
+
referrals {
|
|
1627
|
+
userRefUrl
|
|
1628
|
+
opportunityUrl
|
|
1629
|
+
referredUsersPerUrlNum
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
nextPage {
|
|
1633
|
+
elements
|
|
1634
|
+
lastNum
|
|
1635
|
+
num
|
|
1636
|
+
size
|
|
1637
|
+
token
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
`;
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* __useFetchAdminReferralsPageQuery__
|
|
1645
|
+
*
|
|
1646
|
+
* To run a query within a React component, call `useFetchAdminReferralsPageQuery` and pass it any options that fit your needs.
|
|
1647
|
+
* When your component renders, `useFetchAdminReferralsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1648
|
+
* you can use to render your UI.
|
|
1649
|
+
*
|
|
1650
|
+
* @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;
|
|
1651
|
+
*
|
|
1652
|
+
* @example
|
|
1653
|
+
* const { data, loading, error } = useFetchAdminReferralsPageQuery({
|
|
1654
|
+
* variables: {
|
|
1655
|
+
* filter: // value for 'filter'
|
|
1656
|
+
* sort: // value for 'sort'
|
|
1657
|
+
* page: // value for 'page'
|
|
1658
|
+
* },
|
|
1659
|
+
* });
|
|
1660
|
+
*/
|
|
1661
|
+
export function useFetchAdminReferralsPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminReferralsPageQuery, IFetchAdminReferralsPageQueryVariables>) {
|
|
1662
|
+
return Apollo.useQuery<IFetchAdminReferralsPageQuery, IFetchAdminReferralsPageQueryVariables>(FetchAdminReferralsPageDocument, baseOptions);
|
|
1663
|
+
}
|
|
1664
|
+
export function useFetchAdminReferralsPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminReferralsPageQuery, IFetchAdminReferralsPageQueryVariables>) {
|
|
1665
|
+
return Apollo.useLazyQuery<IFetchAdminReferralsPageQuery, IFetchAdminReferralsPageQueryVariables>(FetchAdminReferralsPageDocument, baseOptions);
|
|
1666
|
+
}
|
|
1667
|
+
export type FetchAdminReferralsPageQueryHookResult = ReturnType<typeof useFetchAdminReferralsPageQuery>;
|
|
1668
|
+
export type FetchAdminReferralsPageLazyQueryHookResult = ReturnType<typeof useFetchAdminReferralsPageLazyQuery>;
|
|
1669
|
+
export type FetchAdminReferralsPageQueryResult = Apollo.QueryResult<IFetchAdminReferralsPageQuery, IFetchAdminReferralsPageQueryVariables>;
|
|
1670
|
+
export const FetchAdminUsersPageDocument = gql`
|
|
1671
|
+
query fetchAdminUsersPage($filter: UsersFilterInput!, $sort: UsersSortInput!, $page: AdminPageInput!) {
|
|
1672
|
+
fetchAdminUsersPage(filter: $filter, sort: $sort, page: $page) {
|
|
1673
|
+
users {
|
|
1674
|
+
userId
|
|
1675
|
+
username
|
|
1676
|
+
wallets {
|
|
1677
|
+
address
|
|
1678
|
+
blockchain
|
|
1679
|
+
chainId
|
|
1680
|
+
}
|
|
1681
|
+
connectedBlockchains
|
|
1682
|
+
isActive
|
|
1683
|
+
createdAt
|
|
1684
|
+
topInterests
|
|
1685
|
+
walletsValue
|
|
1686
|
+
xpLevel
|
|
1687
|
+
ludoRank
|
|
1688
|
+
inviterId
|
|
1689
|
+
}
|
|
1690
|
+
nextPage {
|
|
1691
|
+
num
|
|
1692
|
+
lastNum
|
|
1693
|
+
size
|
|
1694
|
+
elements
|
|
1695
|
+
token
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
`;
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* __useFetchAdminUsersPageQuery__
|
|
1703
|
+
*
|
|
1704
|
+
* To run a query within a React component, call `useFetchAdminUsersPageQuery` and pass it any options that fit your needs.
|
|
1705
|
+
* When your component renders, `useFetchAdminUsersPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1706
|
+
* you can use to render your UI.
|
|
1707
|
+
*
|
|
1708
|
+
* @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;
|
|
1709
|
+
*
|
|
1710
|
+
* @example
|
|
1711
|
+
* const { data, loading, error } = useFetchAdminUsersPageQuery({
|
|
1712
|
+
* variables: {
|
|
1713
|
+
* filter: // value for 'filter'
|
|
1714
|
+
* sort: // value for 'sort'
|
|
1715
|
+
* page: // value for 'page'
|
|
1716
|
+
* },
|
|
1717
|
+
* });
|
|
1718
|
+
*/
|
|
1719
|
+
export function useFetchAdminUsersPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>) {
|
|
1720
|
+
return Apollo.useQuery<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>(FetchAdminUsersPageDocument, baseOptions);
|
|
1721
|
+
}
|
|
1722
|
+
export function useFetchAdminUsersPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>) {
|
|
1723
|
+
return Apollo.useLazyQuery<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>(FetchAdminUsersPageDocument, baseOptions);
|
|
1724
|
+
}
|
|
1725
|
+
export type FetchAdminUsersPageQueryHookResult = ReturnType<typeof useFetchAdminUsersPageQuery>;
|
|
1726
|
+
export type FetchAdminUsersPageLazyQueryHookResult = ReturnType<typeof useFetchAdminUsersPageLazyQuery>;
|
|
1727
|
+
export type FetchAdminUsersPageQueryResult = Apollo.QueryResult<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>;
|
|
1728
|
+
export const FetchAdminXpPageDocument = gql`
|
|
1729
|
+
query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page: AdminPageInput!) {
|
|
1730
|
+
fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {
|
|
1731
|
+
xps {
|
|
1732
|
+
userId
|
|
1733
|
+
username
|
|
1734
|
+
mainWallet {
|
|
1735
|
+
address
|
|
1736
|
+
blockchain
|
|
1737
|
+
chainId
|
|
1738
|
+
}
|
|
1739
|
+
userXpLevel
|
|
1740
|
+
userXpPoints
|
|
1741
|
+
referredUsers
|
|
1742
|
+
referredUsersNum
|
|
1743
|
+
joinedOpportunityIds
|
|
1744
|
+
connectedWalletsNum
|
|
1745
|
+
suggestedOpportunityIds
|
|
1746
|
+
}
|
|
1747
|
+
nextPage {
|
|
1748
|
+
elements
|
|
1749
|
+
lastNum
|
|
1750
|
+
num
|
|
1751
|
+
size
|
|
1752
|
+
token
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
`;
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* __useFetchAdminXpPageQuery__
|
|
1760
|
+
*
|
|
1761
|
+
* To run a query within a React component, call `useFetchAdminXpPageQuery` and pass it any options that fit your needs.
|
|
1762
|
+
* When your component renders, `useFetchAdminXpPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1763
|
+
* you can use to render your UI.
|
|
1764
|
+
*
|
|
1765
|
+
* @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;
|
|
1766
|
+
*
|
|
1767
|
+
* @example
|
|
1768
|
+
* const { data, loading, error } = useFetchAdminXpPageQuery({
|
|
1769
|
+
* variables: {
|
|
1770
|
+
* filter: // value for 'filter'
|
|
1771
|
+
* sort: // value for 'sort'
|
|
1772
|
+
* page: // value for 'page'
|
|
1773
|
+
* },
|
|
1774
|
+
* });
|
|
1775
|
+
*/
|
|
1776
|
+
export function useFetchAdminXpPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>) {
|
|
1777
|
+
return Apollo.useQuery<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>(FetchAdminXpPageDocument, baseOptions);
|
|
1778
|
+
}
|
|
1779
|
+
export function useFetchAdminXpPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>) {
|
|
1780
|
+
return Apollo.useLazyQuery<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>(FetchAdminXpPageDocument, baseOptions);
|
|
1781
|
+
}
|
|
1782
|
+
export type FetchAdminXpPageQueryHookResult = ReturnType<typeof useFetchAdminXpPageQuery>;
|
|
1783
|
+
export type FetchAdminXpPageLazyQueryHookResult = ReturnType<typeof useFetchAdminXpPageLazyQuery>;
|
|
1784
|
+
export type FetchAdminXpPageQueryResult = Apollo.QueryResult<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>;
|
|
1785
|
+
export const FetchBlockchainsDocument = gql`
|
|
1786
|
+
query FetchBlockchains {
|
|
1787
|
+
fetchBlockchains
|
|
1788
|
+
}
|
|
1789
|
+
`;
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* __useFetchBlockchainsQuery__
|
|
1793
|
+
*
|
|
1794
|
+
* To run a query within a React component, call `useFetchBlockchainsQuery` and pass it any options that fit your needs.
|
|
1795
|
+
* When your component renders, `useFetchBlockchainsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1796
|
+
* you can use to render your UI.
|
|
1797
|
+
*
|
|
1798
|
+
* @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;
|
|
1799
|
+
*
|
|
1800
|
+
* @example
|
|
1801
|
+
* const { data, loading, error } = useFetchBlockchainsQuery({
|
|
1802
|
+
* variables: {
|
|
1803
|
+
* },
|
|
1804
|
+
* });
|
|
1805
|
+
*/
|
|
1806
|
+
export function useFetchBlockchainsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>) {
|
|
1807
|
+
return Apollo.useQuery<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>(FetchBlockchainsDocument, baseOptions);
|
|
1808
|
+
}
|
|
1809
|
+
export function useFetchBlockchainsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>) {
|
|
1810
|
+
return Apollo.useLazyQuery<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>(FetchBlockchainsDocument, baseOptions);
|
|
1811
|
+
}
|
|
1812
|
+
export type FetchBlockchainsQueryHookResult = ReturnType<typeof useFetchBlockchainsQuery>;
|
|
1813
|
+
export type FetchBlockchainsLazyQueryHookResult = ReturnType<typeof useFetchBlockchainsLazyQuery>;
|
|
1814
|
+
export type FetchBlockchainsQueryResult = Apollo.QueryResult<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>;
|