@ludo.ninja/api 2.8.24 → 2.8.26

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.
Files changed (49) hide show
  1. package/build/config/index.js +4 -4
  2. package/build/graphql_tools/__generated__/schema.d.ts +8936 -0
  3. package/build/graphql_tools/__generated__/schema.js +5431 -0
  4. package/build/hosts/index.d.ts +3 -0
  5. package/build/hosts/index.js +4 -1
  6. package/build/index.d.ts +2 -13
  7. package/build/index.js +3 -25
  8. package/package.json +1 -1
  9. package/src/config/index.ts +50 -50
  10. package/src/graphql_tools/__generated__/schema.ts +12028 -0
  11. package/src/hosts/index.ts +6 -0
  12. package/src/index.ts +2 -29
  13. package/tsconfig.tsbuildinfo +1 -1
  14. package/build/graphql_tools/__generated__/adminHost/schema.d.ts +0 -1406
  15. package/build/graphql_tools/__generated__/adminHost/schema.js +0 -683
  16. package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +0 -392
  17. package/build/graphql_tools/__generated__/assetsHost/schema.js +0 -80
  18. package/build/graphql_tools/__generated__/authHost/schema.d.ts +0 -238
  19. package/build/graphql_tools/__generated__/authHost/schema.js +0 -85
  20. package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +0 -455
  21. package/build/graphql_tools/__generated__/collectionsHost/schema.js +0 -80
  22. package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +0 -356
  23. package/build/graphql_tools/__generated__/experiencesHost/schema.js +0 -191
  24. package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +0 -808
  25. package/build/graphql_tools/__generated__/extensionHost/schema.js +0 -449
  26. package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +0 -794
  27. package/build/graphql_tools/__generated__/galleriesHost/schema.js +0 -575
  28. package/build/graphql_tools/__generated__/identityHost/schema.d.ts +0 -1201
  29. package/build/graphql_tools/__generated__/identityHost/schema.js +0 -757
  30. package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +0 -242
  31. package/build/graphql_tools/__generated__/mediasHost/schema.js +0 -110
  32. package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +0 -486
  33. package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +0 -148
  34. package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +0 -604
  35. package/build/graphql_tools/__generated__/preferencesHost/schema.js +0 -411
  36. package/build/graphql_tools/__generated__/searchHost/schema.d.ts +0 -1304
  37. package/build/graphql_tools/__generated__/searchHost/schema.js +0 -1191
  38. package/src/graphql_tools/__generated__/adminHost/schema.ts +0 -1777
  39. package/src/graphql_tools/__generated__/assetsHost/schema.ts +0 -482
  40. package/src/graphql_tools/__generated__/authHost/schema.ts +0 -317
  41. package/src/graphql_tools/__generated__/collectionsHost/schema.ts +0 -554
  42. package/src/graphql_tools/__generated__/experiencesHost/schema.ts +0 -478
  43. package/src/graphql_tools/__generated__/extensionHost/schema.ts +0 -1074
  44. package/src/graphql_tools/__generated__/galleriesHost/schema.ts +0 -1090
  45. package/src/graphql_tools/__generated__/identityHost/schema.ts +0 -1580
  46. package/src/graphql_tools/__generated__/mediasHost/schema.ts +0 -333
  47. package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +0 -629
  48. package/src/graphql_tools/__generated__/preferencesHost/schema.ts +0 -772
  49. package/src/graphql_tools/__generated__/searchHost/schema.ts +0 -2137
@@ -1,683 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = exports.useFetchAdminOpportunitiesPageQuery = exports.FetchAdminOpportunitiesPageDocument = exports.useFetchAdminInvitesPageLazyQuery = exports.useFetchAdminInvitesPageQuery = exports.FetchAdminInvitesPageDocument = exports.useFetchAdminCategoriesPageLazyQuery = exports.useFetchAdminCategoriesPageQuery = exports.FetchAdminCategoriesPageDocument = exports.useFetchAdminCategoriesLazyQuery = exports.useFetchAdminCategoriesQuery = exports.FetchAdminCategoriesDocument = exports.useFetchAdminBrandsPageLazyQuery = exports.useFetchAdminBrandsPageQuery = exports.FetchAdminBrandsPageDocument = exports.useFetchAdminBrandsLazyQuery = exports.useFetchAdminBrandsQuery = exports.FetchAdminBrandsDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useRemoveInviteCodeMutation = exports.RemoveInviteCodeDocument = exports.useAddInviteCodesMutation = exports.AddInviteCodesDocument = exports.useCreateAdminOpportunityMutation = exports.CreateAdminOpportunityDocument = exports.useCreateBrandMutation = exports.CreateBrandDocument = exports.useCreateCategoryMutation = exports.CreateCategoryDocument = exports.useChangeXpPointsMutation = exports.ChangeXpPointsDocument = exports.ISortDirection = void 0;
27
- const client_1 = require("@apollo/client");
28
- const Apollo = __importStar(require("@apollo/client"));
29
- /** front-end asked for lower case values */
30
- var ISortDirection;
31
- (function (ISortDirection) {
32
- ISortDirection["Asc"] = "asc";
33
- ISortDirection["Desc"] = "desc";
34
- })(ISortDirection || (exports.ISortDirection = ISortDirection = {}));
35
- exports.ChangeXpPointsDocument = (0, client_1.gql) `
36
- mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
37
- changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)
38
- }
39
- `;
40
- /**
41
- * __useChangeXpPointsMutation__
42
- *
43
- * To run a mutation, you first call `useChangeXpPointsMutation` within a React component and pass it any options that fit your needs.
44
- * When your component renders, `useChangeXpPointsMutation` returns a tuple that includes:
45
- * - A mutate function that you can call at any time to execute the mutation
46
- * - An object with fields that represent the current status of the mutation's execution
47
- *
48
- * @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;
49
- *
50
- * @example
51
- * const [changeXpPointsMutation, { data, loading, error }] = useChangeXpPointsMutation({
52
- * variables: {
53
- * userId: // value for 'userId'
54
- * pointsDiff: // value for 'pointsDiff'
55
- * },
56
- * });
57
- */
58
- function useChangeXpPointsMutation(baseOptions) {
59
- return Apollo.useMutation(exports.ChangeXpPointsDocument, baseOptions);
60
- }
61
- exports.useChangeXpPointsMutation = useChangeXpPointsMutation;
62
- exports.CreateCategoryDocument = (0, client_1.gql) `
63
- mutation CreateCategory($name: String!, $matchingWords: [String!]!) {
64
- createCategory(name: $name, matchingWords: $matchingWords)
65
- }
66
- `;
67
- /**
68
- * __useCreateCategoryMutation__
69
- *
70
- * To run a mutation, you first call `useCreateCategoryMutation` within a React component and pass it any options that fit your needs.
71
- * When your component renders, `useCreateCategoryMutation` returns a tuple that includes:
72
- * - A mutate function that you can call at any time to execute the mutation
73
- * - An object with fields that represent the current status of the mutation's execution
74
- *
75
- * @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;
76
- *
77
- * @example
78
- * const [createCategoryMutation, { data, loading, error }] = useCreateCategoryMutation({
79
- * variables: {
80
- * name: // value for 'name'
81
- * matchingWords: // value for 'matchingWords'
82
- * },
83
- * });
84
- */
85
- function useCreateCategoryMutation(baseOptions) {
86
- return Apollo.useMutation(exports.CreateCategoryDocument, baseOptions);
87
- }
88
- exports.useCreateCategoryMutation = useCreateCategoryMutation;
89
- exports.CreateBrandDocument = (0, client_1.gql) `
90
- mutation CreateBrand($brand: BrandInput!, $file: Upload) {
91
- createBrand(brand: $brand, file: $file)
92
- }
93
- `;
94
- /**
95
- * __useCreateBrandMutation__
96
- *
97
- * To run a mutation, you first call `useCreateBrandMutation` within a React component and pass it any options that fit your needs.
98
- * When your component renders, `useCreateBrandMutation` returns a tuple that includes:
99
- * - A mutate function that you can call at any time to execute the mutation
100
- * - An object with fields that represent the current status of the mutation's execution
101
- *
102
- * @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;
103
- *
104
- * @example
105
- * const [createBrandMutation, { data, loading, error }] = useCreateBrandMutation({
106
- * variables: {
107
- * brand: // value for 'brand'
108
- * file: // value for 'file'
109
- * },
110
- * });
111
- */
112
- function useCreateBrandMutation(baseOptions) {
113
- return Apollo.useMutation(exports.CreateBrandDocument, baseOptions);
114
- }
115
- exports.useCreateBrandMutation = useCreateBrandMutation;
116
- exports.CreateAdminOpportunityDocument = (0, client_1.gql) `
117
- mutation createAdminOpportunity($file: Upload, $input: AdminOpportunityInput!) {
118
- createAdminOpportunity(file: $file, input: $input)
119
- }
120
- `;
121
- /**
122
- * __useCreateAdminOpportunityMutation__
123
- *
124
- * To run a mutation, you first call `useCreateAdminOpportunityMutation` within a React component and pass it any options that fit your needs.
125
- * When your component renders, `useCreateAdminOpportunityMutation` returns a tuple that includes:
126
- * - A mutate function that you can call at any time to execute the mutation
127
- * - An object with fields that represent the current status of the mutation's execution
128
- *
129
- * @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;
130
- *
131
- * @example
132
- * const [createAdminOpportunityMutation, { data, loading, error }] = useCreateAdminOpportunityMutation({
133
- * variables: {
134
- * file: // value for 'file'
135
- * input: // value for 'input'
136
- * },
137
- * });
138
- */
139
- function useCreateAdminOpportunityMutation(baseOptions) {
140
- return Apollo.useMutation(exports.CreateAdminOpportunityDocument, baseOptions);
141
- }
142
- exports.useCreateAdminOpportunityMutation = useCreateAdminOpportunityMutation;
143
- exports.AddInviteCodesDocument = (0, client_1.gql) `
144
- mutation AddInviteCodes($userId: String!, $codesNum: Int!) {
145
- addInviteCodes(userId: $userId, codesNum: $codesNum)
146
- }
147
- `;
148
- /**
149
- * __useAddInviteCodesMutation__
150
- *
151
- * To run a mutation, you first call `useAddInviteCodesMutation` within a React component and pass it any options that fit your needs.
152
- * When your component renders, `useAddInviteCodesMutation` returns a tuple that includes:
153
- * - A mutate function that you can call at any time to execute the mutation
154
- * - An object with fields that represent the current status of the mutation's execution
155
- *
156
- * @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;
157
- *
158
- * @example
159
- * const [addInviteCodesMutation, { data, loading, error }] = useAddInviteCodesMutation({
160
- * variables: {
161
- * userId: // value for 'userId'
162
- * codesNum: // value for 'codesNum'
163
- * },
164
- * });
165
- */
166
- function useAddInviteCodesMutation(baseOptions) {
167
- return Apollo.useMutation(exports.AddInviteCodesDocument, baseOptions);
168
- }
169
- exports.useAddInviteCodesMutation = useAddInviteCodesMutation;
170
- exports.RemoveInviteCodeDocument = (0, client_1.gql) `
171
- mutation RemoveInviteCode($inviteCode: String!) {
172
- removeInviteCode(inviteCode: $inviteCode)
173
- }
174
- `;
175
- /**
176
- * __useRemoveInviteCodeMutation__
177
- *
178
- * To run a mutation, you first call `useRemoveInviteCodeMutation` within a React component and pass it any options that fit your needs.
179
- * When your component renders, `useRemoveInviteCodeMutation` returns a tuple that includes:
180
- * - A mutate function that you can call at any time to execute the mutation
181
- * - An object with fields that represent the current status of the mutation's execution
182
- *
183
- * @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;
184
- *
185
- * @example
186
- * const [removeInviteCodeMutation, { data, loading, error }] = useRemoveInviteCodeMutation({
187
- * variables: {
188
- * inviteCode: // value for 'inviteCode'
189
- * },
190
- * });
191
- */
192
- function useRemoveInviteCodeMutation(baseOptions) {
193
- return Apollo.useMutation(exports.RemoveInviteCodeDocument, baseOptions);
194
- }
195
- exports.useRemoveInviteCodeMutation = useRemoveInviteCodeMutation;
196
- exports.UpdateProfileStatusDocument = (0, client_1.gql) `
197
- mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
198
- updateProfileStatus(userId: $userId, isActive: $isActive)
199
- }
200
- `;
201
- /**
202
- * __useUpdateProfileStatusMutation__
203
- *
204
- * To run a mutation, you first call `useUpdateProfileStatusMutation` within a React component and pass it any options that fit your needs.
205
- * When your component renders, `useUpdateProfileStatusMutation` returns a tuple that includes:
206
- * - A mutate function that you can call at any time to execute the mutation
207
- * - An object with fields that represent the current status of the mutation's execution
208
- *
209
- * @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;
210
- *
211
- * @example
212
- * const [updateProfileStatusMutation, { data, loading, error }] = useUpdateProfileStatusMutation({
213
- * variables: {
214
- * userId: // value for 'userId'
215
- * isActive: // value for 'isActive'
216
- * },
217
- * });
218
- */
219
- function useUpdateProfileStatusMutation(baseOptions) {
220
- return Apollo.useMutation(exports.UpdateProfileStatusDocument, baseOptions);
221
- }
222
- exports.useUpdateProfileStatusMutation = useUpdateProfileStatusMutation;
223
- exports.FetchAdminBrandsDocument = (0, client_1.gql) `
224
- query FetchAdminBrands {
225
- fetchAdminBrands {
226
- id
227
- name
228
- }
229
- }
230
- `;
231
- /**
232
- * __useFetchAdminBrandsQuery__
233
- *
234
- * To run a query within a React component, call `useFetchAdminBrandsQuery` and pass it any options that fit your needs.
235
- * When your component renders, `useFetchAdminBrandsQuery` returns an object from Apollo Client that contains loading, error, and data properties
236
- * you can use to render your UI.
237
- *
238
- * @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;
239
- *
240
- * @example
241
- * const { data, loading, error } = useFetchAdminBrandsQuery({
242
- * variables: {
243
- * },
244
- * });
245
- */
246
- function useFetchAdminBrandsQuery(baseOptions) {
247
- return Apollo.useQuery(exports.FetchAdminBrandsDocument, baseOptions);
248
- }
249
- exports.useFetchAdminBrandsQuery = useFetchAdminBrandsQuery;
250
- function useFetchAdminBrandsLazyQuery(baseOptions) {
251
- return Apollo.useLazyQuery(exports.FetchAdminBrandsDocument, baseOptions);
252
- }
253
- exports.useFetchAdminBrandsLazyQuery = useFetchAdminBrandsLazyQuery;
254
- exports.FetchAdminBrandsPageDocument = (0, client_1.gql) `
255
- query FetchAdminBrandsPage($filter: BrandsFilterInput!, $sort: BrandsSortInput!, $page: AdminPageInput!) {
256
- fetchAdminBrandsPage(filter: $filter, sort: $sort, page: $page) {
257
- brands {
258
- description
259
- id
260
- industry
261
- link
262
- matchingWords
263
- media
264
- name
265
- }
266
- nextPage {
267
- num
268
- lastNum
269
- size
270
- elements
271
- }
272
- }
273
- }
274
- `;
275
- /**
276
- * __useFetchAdminBrandsPageQuery__
277
- *
278
- * To run a query within a React component, call `useFetchAdminBrandsPageQuery` and pass it any options that fit your needs.
279
- * When your component renders, `useFetchAdminBrandsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
280
- * you can use to render your UI.
281
- *
282
- * @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;
283
- *
284
- * @example
285
- * const { data, loading, error } = useFetchAdminBrandsPageQuery({
286
- * variables: {
287
- * filter: // value for 'filter'
288
- * sort: // value for 'sort'
289
- * page: // value for 'page'
290
- * },
291
- * });
292
- */
293
- function useFetchAdminBrandsPageQuery(baseOptions) {
294
- return Apollo.useQuery(exports.FetchAdminBrandsPageDocument, baseOptions);
295
- }
296
- exports.useFetchAdminBrandsPageQuery = useFetchAdminBrandsPageQuery;
297
- function useFetchAdminBrandsPageLazyQuery(baseOptions) {
298
- return Apollo.useLazyQuery(exports.FetchAdminBrandsPageDocument, baseOptions);
299
- }
300
- exports.useFetchAdminBrandsPageLazyQuery = useFetchAdminBrandsPageLazyQuery;
301
- exports.FetchAdminCategoriesDocument = (0, client_1.gql) `
302
- query FetchAdminCategories {
303
- fetchAdminCategories {
304
- id
305
- name
306
- }
307
- }
308
- `;
309
- /**
310
- * __useFetchAdminCategoriesQuery__
311
- *
312
- * To run a query within a React component, call `useFetchAdminCategoriesQuery` and pass it any options that fit your needs.
313
- * When your component renders, `useFetchAdminCategoriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
314
- * you can use to render your UI.
315
- *
316
- * @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;
317
- *
318
- * @example
319
- * const { data, loading, error } = useFetchAdminCategoriesQuery({
320
- * variables: {
321
- * },
322
- * });
323
- */
324
- function useFetchAdminCategoriesQuery(baseOptions) {
325
- return Apollo.useQuery(exports.FetchAdminCategoriesDocument, baseOptions);
326
- }
327
- exports.useFetchAdminCategoriesQuery = useFetchAdminCategoriesQuery;
328
- function useFetchAdminCategoriesLazyQuery(baseOptions) {
329
- return Apollo.useLazyQuery(exports.FetchAdminCategoriesDocument, baseOptions);
330
- }
331
- exports.useFetchAdminCategoriesLazyQuery = useFetchAdminCategoriesLazyQuery;
332
- exports.FetchAdminCategoriesPageDocument = (0, client_1.gql) `
333
- query FetchAdminCategoriesPage($filter: CategoriesFilterInput!, $sort: CategoriesSortInput!, $page: AdminPageInput!) {
334
- fetchAdminCategoriesPage(filter: $filter, sort: $sort, page: $page) {
335
- categories {
336
- id
337
- name
338
- matchingWords
339
- }
340
- nextPage {
341
- num
342
- lastNum
343
- size
344
- elements
345
- }
346
- }
347
- }
348
- `;
349
- /**
350
- * __useFetchAdminCategoriesPageQuery__
351
- *
352
- * To run a query within a React component, call `useFetchAdminCategoriesPageQuery` and pass it any options that fit your needs.
353
- * When your component renders, `useFetchAdminCategoriesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
354
- * you can use to render your UI.
355
- *
356
- * @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;
357
- *
358
- * @example
359
- * const { data, loading, error } = useFetchAdminCategoriesPageQuery({
360
- * variables: {
361
- * filter: // value for 'filter'
362
- * sort: // value for 'sort'
363
- * page: // value for 'page'
364
- * },
365
- * });
366
- */
367
- function useFetchAdminCategoriesPageQuery(baseOptions) {
368
- return Apollo.useQuery(exports.FetchAdminCategoriesPageDocument, baseOptions);
369
- }
370
- exports.useFetchAdminCategoriesPageQuery = useFetchAdminCategoriesPageQuery;
371
- function useFetchAdminCategoriesPageLazyQuery(baseOptions) {
372
- return Apollo.useLazyQuery(exports.FetchAdminCategoriesPageDocument, baseOptions);
373
- }
374
- exports.useFetchAdminCategoriesPageLazyQuery = useFetchAdminCategoriesPageLazyQuery;
375
- exports.FetchAdminInvitesPageDocument = (0, client_1.gql) `
376
- query fetchAdminInvitesPage($filter: InvitesFilterInput!, $sort: InvitesSortInput!, $page: AdminPageInput!) {
377
- fetchAdminInvitesPage(filter: $filter, sort: $sort, page: $page) {
378
- invites {
379
- userId
380
- username
381
- wallet {
382
- address
383
- blockchain
384
- chainId
385
- }
386
- activeInvites {
387
- inviteCode
388
- createdAt
389
- }
390
- referredUsers
391
- userXpLevel
392
- }
393
- nextPage {
394
- num
395
- lastNum
396
- size
397
- elements
398
- token
399
- }
400
- }
401
- }
402
- `;
403
- /**
404
- * __useFetchAdminInvitesPageQuery__
405
- *
406
- * To run a query within a React component, call `useFetchAdminInvitesPageQuery` and pass it any options that fit your needs.
407
- * When your component renders, `useFetchAdminInvitesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
408
- * you can use to render your UI.
409
- *
410
- * @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;
411
- *
412
- * @example
413
- * const { data, loading, error } = useFetchAdminInvitesPageQuery({
414
- * variables: {
415
- * filter: // value for 'filter'
416
- * sort: // value for 'sort'
417
- * page: // value for 'page'
418
- * },
419
- * });
420
- */
421
- function useFetchAdminInvitesPageQuery(baseOptions) {
422
- return Apollo.useQuery(exports.FetchAdminInvitesPageDocument, baseOptions);
423
- }
424
- exports.useFetchAdminInvitesPageQuery = useFetchAdminInvitesPageQuery;
425
- function useFetchAdminInvitesPageLazyQuery(baseOptions) {
426
- return Apollo.useLazyQuery(exports.FetchAdminInvitesPageDocument, baseOptions);
427
- }
428
- exports.useFetchAdminInvitesPageLazyQuery = useFetchAdminInvitesPageLazyQuery;
429
- exports.FetchAdminOpportunitiesPageDocument = (0, client_1.gql) `
430
- query FetchAdminOpportunitiesPage($filter: OpportunitiesFilterInput!, $sort: OpportunitiesSortInput!, $page: AdminPageInput!) {
431
- fetchAdminOpportunitiesPage(filter: $filter, sort: $sort, page: $page) {
432
- opportunities {
433
- opportunityId
434
- name
435
- brandName
436
- industry
437
- category
438
- ludoUrl
439
- projectUrl
440
- pushNotificationsEnabled
441
- status
442
- media
443
- description
444
- activeFrom
445
- activeUntil
446
- minXpLevel
447
- maxXpLevel
448
- minLudoRank
449
- maxLudoRank
450
- minWalletValue
451
- maxWalletValue
452
- clicks
453
- views
454
- }
455
- nextPage {
456
- elements
457
- lastNum
458
- num
459
- size
460
- token
461
- }
462
- }
463
- }
464
- `;
465
- /**
466
- * __useFetchAdminOpportunitiesPageQuery__
467
- *
468
- * To run a query within a React component, call `useFetchAdminOpportunitiesPageQuery` and pass it any options that fit your needs.
469
- * When your component renders, `useFetchAdminOpportunitiesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
470
- * you can use to render your UI.
471
- *
472
- * @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;
473
- *
474
- * @example
475
- * const { data, loading, error } = useFetchAdminOpportunitiesPageQuery({
476
- * variables: {
477
- * filter: // value for 'filter'
478
- * sort: // value for 'sort'
479
- * page: // value for 'page'
480
- * },
481
- * });
482
- */
483
- function useFetchAdminOpportunitiesPageQuery(baseOptions) {
484
- return Apollo.useQuery(exports.FetchAdminOpportunitiesPageDocument, baseOptions);
485
- }
486
- exports.useFetchAdminOpportunitiesPageQuery = useFetchAdminOpportunitiesPageQuery;
487
- function useFetchAdminOpportunitiesPageLazyQuery(baseOptions) {
488
- return Apollo.useLazyQuery(exports.FetchAdminOpportunitiesPageDocument, baseOptions);
489
- }
490
- exports.useFetchAdminOpportunitiesPageLazyQuery = useFetchAdminOpportunitiesPageLazyQuery;
491
- exports.FetchAdminReferralsPageDocument = (0, client_1.gql) `
492
- query FetchAdminReferralsPage($filter: ReferralsFilterInput!, $sort: ReferralsSortInput!, $page: AdminPageInput!) {
493
- fetchAdminReferralsPage(filter: $filter, sort: $sort, page: $page) {
494
- adminReferrals {
495
- userId
496
- username
497
- mainWallet {
498
- address
499
- blockchain
500
- chainId
501
- }
502
- referredUsersNum
503
- referrals {
504
- userRefUrl
505
- opportunityUrl
506
- referredUsersPerUrlNum
507
- }
508
- }
509
- nextPage {
510
- elements
511
- lastNum
512
- num
513
- size
514
- token
515
- }
516
- }
517
- }
518
- `;
519
- /**
520
- * __useFetchAdminReferralsPageQuery__
521
- *
522
- * To run a query within a React component, call `useFetchAdminReferralsPageQuery` and pass it any options that fit your needs.
523
- * When your component renders, `useFetchAdminReferralsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
524
- * you can use to render your UI.
525
- *
526
- * @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;
527
- *
528
- * @example
529
- * const { data, loading, error } = useFetchAdminReferralsPageQuery({
530
- * variables: {
531
- * filter: // value for 'filter'
532
- * sort: // value for 'sort'
533
- * page: // value for 'page'
534
- * },
535
- * });
536
- */
537
- function useFetchAdminReferralsPageQuery(baseOptions) {
538
- return Apollo.useQuery(exports.FetchAdminReferralsPageDocument, baseOptions);
539
- }
540
- exports.useFetchAdminReferralsPageQuery = useFetchAdminReferralsPageQuery;
541
- function useFetchAdminReferralsPageLazyQuery(baseOptions) {
542
- return Apollo.useLazyQuery(exports.FetchAdminReferralsPageDocument, baseOptions);
543
- }
544
- exports.useFetchAdminReferralsPageLazyQuery = useFetchAdminReferralsPageLazyQuery;
545
- exports.FetchAdminUsersPageDocument = (0, client_1.gql) `
546
- query fetchAdminUsersPage($filter: UsersFilterInput!, $sort: UsersSortInput!, $page: AdminPageInput!) {
547
- fetchAdminUsersPage(filter: $filter, sort: $sort, page: $page) {
548
- users {
549
- userId
550
- username
551
- wallets {
552
- address
553
- blockchain
554
- chainId
555
- }
556
- connectedBlockchains
557
- isActive
558
- createdAt
559
- topInterests
560
- walletsValue
561
- xpLevel
562
- ludoRank
563
- inviterId
564
- }
565
- nextPage {
566
- num
567
- lastNum
568
- size
569
- elements
570
- token
571
- }
572
- }
573
- }
574
- `;
575
- /**
576
- * __useFetchAdminUsersPageQuery__
577
- *
578
- * To run a query within a React component, call `useFetchAdminUsersPageQuery` and pass it any options that fit your needs.
579
- * When your component renders, `useFetchAdminUsersPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
580
- * you can use to render your UI.
581
- *
582
- * @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;
583
- *
584
- * @example
585
- * const { data, loading, error } = useFetchAdminUsersPageQuery({
586
- * variables: {
587
- * filter: // value for 'filter'
588
- * sort: // value for 'sort'
589
- * page: // value for 'page'
590
- * },
591
- * });
592
- */
593
- function useFetchAdminUsersPageQuery(baseOptions) {
594
- return Apollo.useQuery(exports.FetchAdminUsersPageDocument, baseOptions);
595
- }
596
- exports.useFetchAdminUsersPageQuery = useFetchAdminUsersPageQuery;
597
- function useFetchAdminUsersPageLazyQuery(baseOptions) {
598
- return Apollo.useLazyQuery(exports.FetchAdminUsersPageDocument, baseOptions);
599
- }
600
- exports.useFetchAdminUsersPageLazyQuery = useFetchAdminUsersPageLazyQuery;
601
- exports.FetchAdminXpPageDocument = (0, client_1.gql) `
602
- query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page: AdminPageInput!) {
603
- fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {
604
- xps {
605
- userId
606
- username
607
- mainWallet {
608
- address
609
- blockchain
610
- chainId
611
- }
612
- userXpLevel
613
- userXpPoints
614
- referredUsers
615
- referredUsersNum
616
- joinedOpportunityIds
617
- connectedWalletsNum
618
- suggestedOpportunityIds
619
- }
620
- nextPage {
621
- elements
622
- lastNum
623
- num
624
- size
625
- token
626
- }
627
- }
628
- }
629
- `;
630
- /**
631
- * __useFetchAdminXpPageQuery__
632
- *
633
- * To run a query within a React component, call `useFetchAdminXpPageQuery` and pass it any options that fit your needs.
634
- * When your component renders, `useFetchAdminXpPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
635
- * you can use to render your UI.
636
- *
637
- * @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;
638
- *
639
- * @example
640
- * const { data, loading, error } = useFetchAdminXpPageQuery({
641
- * variables: {
642
- * filter: // value for 'filter'
643
- * sort: // value for 'sort'
644
- * page: // value for 'page'
645
- * },
646
- * });
647
- */
648
- function useFetchAdminXpPageQuery(baseOptions) {
649
- return Apollo.useQuery(exports.FetchAdminXpPageDocument, baseOptions);
650
- }
651
- exports.useFetchAdminXpPageQuery = useFetchAdminXpPageQuery;
652
- function useFetchAdminXpPageLazyQuery(baseOptions) {
653
- return Apollo.useLazyQuery(exports.FetchAdminXpPageDocument, baseOptions);
654
- }
655
- exports.useFetchAdminXpPageLazyQuery = useFetchAdminXpPageLazyQuery;
656
- exports.FetchBlockchainsDocument = (0, client_1.gql) `
657
- query FetchBlockchains {
658
- fetchBlockchains
659
- }
660
- `;
661
- /**
662
- * __useFetchBlockchainsQuery__
663
- *
664
- * To run a query within a React component, call `useFetchBlockchainsQuery` and pass it any options that fit your needs.
665
- * When your component renders, `useFetchBlockchainsQuery` returns an object from Apollo Client that contains loading, error, and data properties
666
- * you can use to render your UI.
667
- *
668
- * @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;
669
- *
670
- * @example
671
- * const { data, loading, error } = useFetchBlockchainsQuery({
672
- * variables: {
673
- * },
674
- * });
675
- */
676
- function useFetchBlockchainsQuery(baseOptions) {
677
- return Apollo.useQuery(exports.FetchBlockchainsDocument, baseOptions);
678
- }
679
- exports.useFetchBlockchainsQuery = useFetchBlockchainsQuery;
680
- function useFetchBlockchainsLazyQuery(baseOptions) {
681
- return Apollo.useLazyQuery(exports.FetchBlockchainsDocument, baseOptions);
682
- }
683
- exports.useFetchBlockchainsLazyQuery = useFetchBlockchainsLazyQuery;