@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.
Files changed (48) hide show
  1. package/build/config/index.js +4 -4
  2. package/build/graphql_tools/__generated__/adminHost/schema.d.ts +1434 -0
  3. package/build/graphql_tools/__generated__/adminHost/schema.js +688 -0
  4. package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +392 -0
  5. package/build/graphql_tools/__generated__/assetsHost/schema.js +80 -0
  6. package/build/graphql_tools/__generated__/authHost/schema.d.ts +238 -0
  7. package/build/graphql_tools/__generated__/authHost/schema.js +85 -0
  8. package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +455 -0
  9. package/build/graphql_tools/__generated__/collectionsHost/schema.js +80 -0
  10. package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +356 -0
  11. package/build/graphql_tools/__generated__/experiencesHost/schema.js +191 -0
  12. package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +808 -0
  13. package/build/graphql_tools/__generated__/extensionHost/schema.js +449 -0
  14. package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +794 -0
  15. package/build/graphql_tools/__generated__/galleriesHost/schema.js +575 -0
  16. package/build/graphql_tools/__generated__/identityHost/schema.d.ts +1205 -0
  17. package/build/graphql_tools/__generated__/identityHost/schema.js +757 -0
  18. package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +242 -0
  19. package/build/graphql_tools/__generated__/mediasHost/schema.js +110 -0
  20. package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +486 -0
  21. package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +148 -0
  22. package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +604 -0
  23. package/build/graphql_tools/__generated__/preferencesHost/schema.js +411 -0
  24. package/build/graphql_tools/__generated__/schema.d.ts +1 -0
  25. package/build/graphql_tools/__generated__/searchHost/schema.d.ts +1304 -0
  26. package/build/graphql_tools/__generated__/searchHost/schema.js +1191 -0
  27. package/build/hosts/index.d.ts +0 -3
  28. package/build/hosts/index.js +1 -4
  29. package/build/index.d.ts +13 -2
  30. package/build/index.js +25 -3
  31. package/package.json +1 -1
  32. package/src/config/index.ts +50 -50
  33. package/src/graphql_tools/__generated__/adminHost/schema.ts +1814 -0
  34. package/src/graphql_tools/__generated__/assetsHost/schema.ts +482 -0
  35. package/src/graphql_tools/__generated__/authHost/schema.ts +317 -0
  36. package/src/graphql_tools/__generated__/collectionsHost/schema.ts +554 -0
  37. package/src/graphql_tools/__generated__/experiencesHost/schema.ts +478 -0
  38. package/src/graphql_tools/__generated__/extensionHost/schema.ts +1074 -0
  39. package/src/graphql_tools/__generated__/galleriesHost/schema.ts +1090 -0
  40. package/src/graphql_tools/__generated__/identityHost/schema.ts +1584 -0
  41. package/src/graphql_tools/__generated__/mediasHost/schema.ts +333 -0
  42. package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +629 -0
  43. package/src/graphql_tools/__generated__/preferencesHost/schema.ts +772 -0
  44. package/src/graphql_tools/__generated__/schema.ts +1 -0
  45. package/src/graphql_tools/__generated__/searchHost/schema.ts +2137 -0
  46. package/src/hosts/index.ts +0 -6
  47. package/src/index.ts +29 -2
  48. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,688 @@
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
+ archived
266
+ addedBy
267
+ }
268
+ nextPage {
269
+ num
270
+ lastNum
271
+ size
272
+ elements
273
+ }
274
+ }
275
+ }
276
+ `;
277
+ /**
278
+ * __useFetchAdminBrandsPageQuery__
279
+ *
280
+ * To run a query within a React component, call `useFetchAdminBrandsPageQuery` and pass it any options that fit your needs.
281
+ * When your component renders, `useFetchAdminBrandsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
282
+ * you can use to render your UI.
283
+ *
284
+ * @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;
285
+ *
286
+ * @example
287
+ * const { data, loading, error } = useFetchAdminBrandsPageQuery({
288
+ * variables: {
289
+ * filter: // value for 'filter'
290
+ * sort: // value for 'sort'
291
+ * page: // value for 'page'
292
+ * },
293
+ * });
294
+ */
295
+ function useFetchAdminBrandsPageQuery(baseOptions) {
296
+ return Apollo.useQuery(exports.FetchAdminBrandsPageDocument, baseOptions);
297
+ }
298
+ exports.useFetchAdminBrandsPageQuery = useFetchAdminBrandsPageQuery;
299
+ function useFetchAdminBrandsPageLazyQuery(baseOptions) {
300
+ return Apollo.useLazyQuery(exports.FetchAdminBrandsPageDocument, baseOptions);
301
+ }
302
+ exports.useFetchAdminBrandsPageLazyQuery = useFetchAdminBrandsPageLazyQuery;
303
+ exports.FetchAdminCategoriesDocument = (0, client_1.gql) `
304
+ query FetchAdminCategories {
305
+ fetchAdminCategories {
306
+ id
307
+ name
308
+ }
309
+ }
310
+ `;
311
+ /**
312
+ * __useFetchAdminCategoriesQuery__
313
+ *
314
+ * To run a query within a React component, call `useFetchAdminCategoriesQuery` and pass it any options that fit your needs.
315
+ * When your component renders, `useFetchAdminCategoriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
316
+ * you can use to render your UI.
317
+ *
318
+ * @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;
319
+ *
320
+ * @example
321
+ * const { data, loading, error } = useFetchAdminCategoriesQuery({
322
+ * variables: {
323
+ * },
324
+ * });
325
+ */
326
+ function useFetchAdminCategoriesQuery(baseOptions) {
327
+ return Apollo.useQuery(exports.FetchAdminCategoriesDocument, baseOptions);
328
+ }
329
+ exports.useFetchAdminCategoriesQuery = useFetchAdminCategoriesQuery;
330
+ function useFetchAdminCategoriesLazyQuery(baseOptions) {
331
+ return Apollo.useLazyQuery(exports.FetchAdminCategoriesDocument, baseOptions);
332
+ }
333
+ exports.useFetchAdminCategoriesLazyQuery = useFetchAdminCategoriesLazyQuery;
334
+ exports.FetchAdminCategoriesPageDocument = (0, client_1.gql) `
335
+ query FetchAdminCategoriesPage($filter: CategoriesFilterInput!, $sort: CategoriesSortInput!, $page: AdminPageInput!) {
336
+ fetchAdminCategoriesPage(filter: $filter, sort: $sort, page: $page) {
337
+ categories {
338
+ id
339
+ name
340
+ matchingWords
341
+ archived
342
+ addedBy
343
+ }
344
+ nextPage {
345
+ num
346
+ lastNum
347
+ size
348
+ elements
349
+ }
350
+ }
351
+ }
352
+ `;
353
+ /**
354
+ * __useFetchAdminCategoriesPageQuery__
355
+ *
356
+ * To run a query within a React component, call `useFetchAdminCategoriesPageQuery` and pass it any options that fit your needs.
357
+ * When your component renders, `useFetchAdminCategoriesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
358
+ * you can use to render your UI.
359
+ *
360
+ * @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;
361
+ *
362
+ * @example
363
+ * const { data, loading, error } = useFetchAdminCategoriesPageQuery({
364
+ * variables: {
365
+ * filter: // value for 'filter'
366
+ * sort: // value for 'sort'
367
+ * page: // value for 'page'
368
+ * },
369
+ * });
370
+ */
371
+ function useFetchAdminCategoriesPageQuery(baseOptions) {
372
+ return Apollo.useQuery(exports.FetchAdminCategoriesPageDocument, baseOptions);
373
+ }
374
+ exports.useFetchAdminCategoriesPageQuery = useFetchAdminCategoriesPageQuery;
375
+ function useFetchAdminCategoriesPageLazyQuery(baseOptions) {
376
+ return Apollo.useLazyQuery(exports.FetchAdminCategoriesPageDocument, baseOptions);
377
+ }
378
+ exports.useFetchAdminCategoriesPageLazyQuery = useFetchAdminCategoriesPageLazyQuery;
379
+ exports.FetchAdminInvitesPageDocument = (0, client_1.gql) `
380
+ query fetchAdminInvitesPage($filter: InvitesFilterInput!, $sort: InvitesSortInput!, $page: AdminPageInput!) {
381
+ fetchAdminInvitesPage(filter: $filter, sort: $sort, page: $page) {
382
+ invites {
383
+ userId
384
+ username
385
+ wallet {
386
+ address
387
+ blockchain
388
+ chainId
389
+ }
390
+ activeInvites {
391
+ inviteCode
392
+ createdAt
393
+ }
394
+ referredUsers
395
+ userXpLevel
396
+ }
397
+ nextPage {
398
+ num
399
+ lastNum
400
+ size
401
+ elements
402
+ token
403
+ }
404
+ }
405
+ }
406
+ `;
407
+ /**
408
+ * __useFetchAdminInvitesPageQuery__
409
+ *
410
+ * To run a query within a React component, call `useFetchAdminInvitesPageQuery` and pass it any options that fit your needs.
411
+ * When your component renders, `useFetchAdminInvitesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
412
+ * you can use to render your UI.
413
+ *
414
+ * @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;
415
+ *
416
+ * @example
417
+ * const { data, loading, error } = useFetchAdminInvitesPageQuery({
418
+ * variables: {
419
+ * filter: // value for 'filter'
420
+ * sort: // value for 'sort'
421
+ * page: // value for 'page'
422
+ * },
423
+ * });
424
+ */
425
+ function useFetchAdminInvitesPageQuery(baseOptions) {
426
+ return Apollo.useQuery(exports.FetchAdminInvitesPageDocument, baseOptions);
427
+ }
428
+ exports.useFetchAdminInvitesPageQuery = useFetchAdminInvitesPageQuery;
429
+ function useFetchAdminInvitesPageLazyQuery(baseOptions) {
430
+ return Apollo.useLazyQuery(exports.FetchAdminInvitesPageDocument, baseOptions);
431
+ }
432
+ exports.useFetchAdminInvitesPageLazyQuery = useFetchAdminInvitesPageLazyQuery;
433
+ exports.FetchAdminOpportunitiesPageDocument = (0, client_1.gql) `
434
+ query FetchAdminOpportunitiesPage($filter: OpportunitiesFilterInput!, $sort: OpportunitiesSortInput!, $page: AdminPageInput!) {
435
+ fetchAdminOpportunitiesPage(filter: $filter, sort: $sort, page: $page) {
436
+ opportunities {
437
+ opportunityId
438
+ name
439
+ brandName
440
+ industry
441
+ category
442
+ ludoUrl
443
+ projectUrl
444
+ pushNotificationsEnabled
445
+ status
446
+ media
447
+ description
448
+ activeFrom
449
+ activeUntil
450
+ minXpLevel
451
+ maxXpLevel
452
+ minLudoRank
453
+ maxLudoRank
454
+ minWalletValue
455
+ maxWalletValue
456
+ clicks
457
+ views
458
+ addedBy
459
+ }
460
+ nextPage {
461
+ elements
462
+ lastNum
463
+ num
464
+ size
465
+ token
466
+ }
467
+ }
468
+ }
469
+ `;
470
+ /**
471
+ * __useFetchAdminOpportunitiesPageQuery__
472
+ *
473
+ * To run a query within a React component, call `useFetchAdminOpportunitiesPageQuery` and pass it any options that fit your needs.
474
+ * When your component renders, `useFetchAdminOpportunitiesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
475
+ * you can use to render your UI.
476
+ *
477
+ * @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;
478
+ *
479
+ * @example
480
+ * const { data, loading, error } = useFetchAdminOpportunitiesPageQuery({
481
+ * variables: {
482
+ * filter: // value for 'filter'
483
+ * sort: // value for 'sort'
484
+ * page: // value for 'page'
485
+ * },
486
+ * });
487
+ */
488
+ function useFetchAdminOpportunitiesPageQuery(baseOptions) {
489
+ return Apollo.useQuery(exports.FetchAdminOpportunitiesPageDocument, baseOptions);
490
+ }
491
+ exports.useFetchAdminOpportunitiesPageQuery = useFetchAdminOpportunitiesPageQuery;
492
+ function useFetchAdminOpportunitiesPageLazyQuery(baseOptions) {
493
+ return Apollo.useLazyQuery(exports.FetchAdminOpportunitiesPageDocument, baseOptions);
494
+ }
495
+ exports.useFetchAdminOpportunitiesPageLazyQuery = useFetchAdminOpportunitiesPageLazyQuery;
496
+ exports.FetchAdminReferralsPageDocument = (0, client_1.gql) `
497
+ query FetchAdminReferralsPage($filter: ReferralsFilterInput!, $sort: ReferralsSortInput!, $page: AdminPageInput!) {
498
+ fetchAdminReferralsPage(filter: $filter, sort: $sort, page: $page) {
499
+ adminReferrals {
500
+ userId
501
+ username
502
+ mainWallet {
503
+ address
504
+ blockchain
505
+ chainId
506
+ }
507
+ referredUsersNum
508
+ referrals {
509
+ userRefUrl
510
+ opportunityUrl
511
+ referredUsersPerUrlNum
512
+ }
513
+ }
514
+ nextPage {
515
+ elements
516
+ lastNum
517
+ num
518
+ size
519
+ token
520
+ }
521
+ }
522
+ }
523
+ `;
524
+ /**
525
+ * __useFetchAdminReferralsPageQuery__
526
+ *
527
+ * To run a query within a React component, call `useFetchAdminReferralsPageQuery` and pass it any options that fit your needs.
528
+ * When your component renders, `useFetchAdminReferralsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
529
+ * you can use to render your UI.
530
+ *
531
+ * @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;
532
+ *
533
+ * @example
534
+ * const { data, loading, error } = useFetchAdminReferralsPageQuery({
535
+ * variables: {
536
+ * filter: // value for 'filter'
537
+ * sort: // value for 'sort'
538
+ * page: // value for 'page'
539
+ * },
540
+ * });
541
+ */
542
+ function useFetchAdminReferralsPageQuery(baseOptions) {
543
+ return Apollo.useQuery(exports.FetchAdminReferralsPageDocument, baseOptions);
544
+ }
545
+ exports.useFetchAdminReferralsPageQuery = useFetchAdminReferralsPageQuery;
546
+ function useFetchAdminReferralsPageLazyQuery(baseOptions) {
547
+ return Apollo.useLazyQuery(exports.FetchAdminReferralsPageDocument, baseOptions);
548
+ }
549
+ exports.useFetchAdminReferralsPageLazyQuery = useFetchAdminReferralsPageLazyQuery;
550
+ exports.FetchAdminUsersPageDocument = (0, client_1.gql) `
551
+ query fetchAdminUsersPage($filter: UsersFilterInput!, $sort: UsersSortInput!, $page: AdminPageInput!) {
552
+ fetchAdminUsersPage(filter: $filter, sort: $sort, page: $page) {
553
+ users {
554
+ userId
555
+ username
556
+ wallets {
557
+ address
558
+ blockchain
559
+ chainId
560
+ }
561
+ connectedBlockchains
562
+ isActive
563
+ createdAt
564
+ topInterests
565
+ walletsValue
566
+ xpLevel
567
+ ludoRank
568
+ inviterId
569
+ }
570
+ nextPage {
571
+ num
572
+ lastNum
573
+ size
574
+ elements
575
+ token
576
+ }
577
+ }
578
+ }
579
+ `;
580
+ /**
581
+ * __useFetchAdminUsersPageQuery__
582
+ *
583
+ * To run a query within a React component, call `useFetchAdminUsersPageQuery` and pass it any options that fit your needs.
584
+ * When your component renders, `useFetchAdminUsersPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
585
+ * you can use to render your UI.
586
+ *
587
+ * @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;
588
+ *
589
+ * @example
590
+ * const { data, loading, error } = useFetchAdminUsersPageQuery({
591
+ * variables: {
592
+ * filter: // value for 'filter'
593
+ * sort: // value for 'sort'
594
+ * page: // value for 'page'
595
+ * },
596
+ * });
597
+ */
598
+ function useFetchAdminUsersPageQuery(baseOptions) {
599
+ return Apollo.useQuery(exports.FetchAdminUsersPageDocument, baseOptions);
600
+ }
601
+ exports.useFetchAdminUsersPageQuery = useFetchAdminUsersPageQuery;
602
+ function useFetchAdminUsersPageLazyQuery(baseOptions) {
603
+ return Apollo.useLazyQuery(exports.FetchAdminUsersPageDocument, baseOptions);
604
+ }
605
+ exports.useFetchAdminUsersPageLazyQuery = useFetchAdminUsersPageLazyQuery;
606
+ exports.FetchAdminXpPageDocument = (0, client_1.gql) `
607
+ query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page: AdminPageInput!) {
608
+ fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {
609
+ xps {
610
+ userId
611
+ username
612
+ mainWallet {
613
+ address
614
+ blockchain
615
+ chainId
616
+ }
617
+ userXpLevel
618
+ userXpPoints
619
+ referredUsers
620
+ referredUsersNum
621
+ joinedOpportunityIds
622
+ connectedWalletsNum
623
+ suggestedOpportunityIds
624
+ }
625
+ nextPage {
626
+ elements
627
+ lastNum
628
+ num
629
+ size
630
+ token
631
+ }
632
+ }
633
+ }
634
+ `;
635
+ /**
636
+ * __useFetchAdminXpPageQuery__
637
+ *
638
+ * To run a query within a React component, call `useFetchAdminXpPageQuery` and pass it any options that fit your needs.
639
+ * When your component renders, `useFetchAdminXpPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
640
+ * you can use to render your UI.
641
+ *
642
+ * @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;
643
+ *
644
+ * @example
645
+ * const { data, loading, error } = useFetchAdminXpPageQuery({
646
+ * variables: {
647
+ * filter: // value for 'filter'
648
+ * sort: // value for 'sort'
649
+ * page: // value for 'page'
650
+ * },
651
+ * });
652
+ */
653
+ function useFetchAdminXpPageQuery(baseOptions) {
654
+ return Apollo.useQuery(exports.FetchAdminXpPageDocument, baseOptions);
655
+ }
656
+ exports.useFetchAdminXpPageQuery = useFetchAdminXpPageQuery;
657
+ function useFetchAdminXpPageLazyQuery(baseOptions) {
658
+ return Apollo.useLazyQuery(exports.FetchAdminXpPageDocument, baseOptions);
659
+ }
660
+ exports.useFetchAdminXpPageLazyQuery = useFetchAdminXpPageLazyQuery;
661
+ exports.FetchBlockchainsDocument = (0, client_1.gql) `
662
+ query FetchBlockchains {
663
+ fetchBlockchains
664
+ }
665
+ `;
666
+ /**
667
+ * __useFetchBlockchainsQuery__
668
+ *
669
+ * To run a query within a React component, call `useFetchBlockchainsQuery` and pass it any options that fit your needs.
670
+ * When your component renders, `useFetchBlockchainsQuery` returns an object from Apollo Client that contains loading, error, and data properties
671
+ * you can use to render your UI.
672
+ *
673
+ * @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;
674
+ *
675
+ * @example
676
+ * const { data, loading, error } = useFetchBlockchainsQuery({
677
+ * variables: {
678
+ * },
679
+ * });
680
+ */
681
+ function useFetchBlockchainsQuery(baseOptions) {
682
+ return Apollo.useQuery(exports.FetchBlockchainsDocument, baseOptions);
683
+ }
684
+ exports.useFetchBlockchainsQuery = useFetchBlockchainsQuery;
685
+ function useFetchBlockchainsLazyQuery(baseOptions) {
686
+ return Apollo.useLazyQuery(exports.FetchBlockchainsDocument, baseOptions);
687
+ }
688
+ exports.useFetchBlockchainsLazyQuery = useFetchBlockchainsLazyQuery;