@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,449 @@
|
|
|
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.useFetchWalletRanksLazyQuery = exports.useFetchWalletRanksQuery = exports.FetchWalletRanksDocument = exports.useFetchNftRanksLazyQuery = exports.useFetchNftRanksQuery = exports.FetchNftRanksDocument = exports.useFetchNftDataLazyQuery = exports.useFetchNftDataQuery = exports.FetchNftDataDocument = exports.useFetchExtensionOpportunitiesV2LazyQuery = exports.useFetchExtensionOpportunitiesV2Query = exports.FetchExtensionOpportunitiesV2Document = exports.useFetchExtensionCategoriesLazyQuery = exports.useFetchExtensionCategoriesQuery = exports.FetchExtensionCategoriesDocument = exports.useFetchExtensionBrandsLazyQuery = exports.useFetchExtensionBrandsQuery = exports.FetchExtensionBrandsDocument = exports.useFetchCollectionRanksLazyQuery = exports.useFetchCollectionRanksQuery = exports.FetchCollectionRanksDocument = exports.useVisitPageV2Mutation = exports.VisitPageV2Document = exports.useOpenOpportunityV2Mutation = exports.OpenOpportunityV2Document = exports.useHideOpportunityV2Mutation = exports.HideOpportunityV2Document = void 0;
|
|
27
|
+
const client_1 = require("@apollo/client");
|
|
28
|
+
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
+
exports.HideOpportunityV2Document = (0, client_1.gql) `
|
|
30
|
+
mutation HideOpportunityV2($opportunityId: ID!) {
|
|
31
|
+
hideOpportunityV2(opportunityId: $opportunityId)
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
/**
|
|
35
|
+
* __useHideOpportunityV2Mutation__
|
|
36
|
+
*
|
|
37
|
+
* To run a mutation, you first call `useHideOpportunityV2Mutation` within a React component and pass it any options that fit your needs.
|
|
38
|
+
* When your component renders, `useHideOpportunityV2Mutation` returns a tuple that includes:
|
|
39
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
40
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
41
|
+
*
|
|
42
|
+
* @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;
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* const [hideOpportunityV2Mutation, { data, loading, error }] = useHideOpportunityV2Mutation({
|
|
46
|
+
* variables: {
|
|
47
|
+
* opportunityId: // value for 'opportunityId'
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
*/
|
|
51
|
+
function useHideOpportunityV2Mutation(baseOptions) {
|
|
52
|
+
return Apollo.useMutation(exports.HideOpportunityV2Document, baseOptions);
|
|
53
|
+
}
|
|
54
|
+
exports.useHideOpportunityV2Mutation = useHideOpportunityV2Mutation;
|
|
55
|
+
exports.OpenOpportunityV2Document = (0, client_1.gql) `
|
|
56
|
+
mutation OpenOpportunityV2($opportunityId: ID!) {
|
|
57
|
+
openOpportunityV2(opportunityId: $opportunityId)
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
/**
|
|
61
|
+
* __useOpenOpportunityV2Mutation__
|
|
62
|
+
*
|
|
63
|
+
* To run a mutation, you first call `useOpenOpportunityV2Mutation` within a React component and pass it any options that fit your needs.
|
|
64
|
+
* When your component renders, `useOpenOpportunityV2Mutation` returns a tuple that includes:
|
|
65
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
66
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
67
|
+
*
|
|
68
|
+
* @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;
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* const [openOpportunityV2Mutation, { data, loading, error }] = useOpenOpportunityV2Mutation({
|
|
72
|
+
* variables: {
|
|
73
|
+
* opportunityId: // value for 'opportunityId'
|
|
74
|
+
* },
|
|
75
|
+
* });
|
|
76
|
+
*/
|
|
77
|
+
function useOpenOpportunityV2Mutation(baseOptions) {
|
|
78
|
+
return Apollo.useMutation(exports.OpenOpportunityV2Document, baseOptions);
|
|
79
|
+
}
|
|
80
|
+
exports.useOpenOpportunityV2Mutation = useOpenOpportunityV2Mutation;
|
|
81
|
+
exports.VisitPageV2Document = (0, client_1.gql) `
|
|
82
|
+
mutation VisitPageV2($domain: String!, $title: String!, $description: String, $tags: [String], $brandId: String, $category: String) {
|
|
83
|
+
visitPageV2(
|
|
84
|
+
domain: $domain
|
|
85
|
+
title: $title
|
|
86
|
+
description: $description
|
|
87
|
+
tags: $tags
|
|
88
|
+
brandId: $brandId
|
|
89
|
+
category: $category
|
|
90
|
+
) {
|
|
91
|
+
opportunityId
|
|
92
|
+
brandId
|
|
93
|
+
categoryId
|
|
94
|
+
opportunityStatus
|
|
95
|
+
opportunityType
|
|
96
|
+
notificationType
|
|
97
|
+
name
|
|
98
|
+
brandName
|
|
99
|
+
brandDescription
|
|
100
|
+
brandMedia
|
|
101
|
+
brandUrl
|
|
102
|
+
brandIndustry
|
|
103
|
+
categoryName
|
|
104
|
+
description
|
|
105
|
+
ludoUrl
|
|
106
|
+
projectUrl
|
|
107
|
+
activeFrom
|
|
108
|
+
activeUntil
|
|
109
|
+
media
|
|
110
|
+
reportLink
|
|
111
|
+
shareLink
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
`;
|
|
115
|
+
/**
|
|
116
|
+
* __useVisitPageV2Mutation__
|
|
117
|
+
*
|
|
118
|
+
* To run a mutation, you first call `useVisitPageV2Mutation` within a React component and pass it any options that fit your needs.
|
|
119
|
+
* When your component renders, `useVisitPageV2Mutation` returns a tuple that includes:
|
|
120
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
121
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
122
|
+
*
|
|
123
|
+
* @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;
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* const [visitPageV2Mutation, { data, loading, error }] = useVisitPageV2Mutation({
|
|
127
|
+
* variables: {
|
|
128
|
+
* domain: // value for 'domain'
|
|
129
|
+
* title: // value for 'title'
|
|
130
|
+
* description: // value for 'description'
|
|
131
|
+
* tags: // value for 'tags'
|
|
132
|
+
* brandId: // value for 'brandId'
|
|
133
|
+
* category: // value for 'category'
|
|
134
|
+
* },
|
|
135
|
+
* });
|
|
136
|
+
*/
|
|
137
|
+
function useVisitPageV2Mutation(baseOptions) {
|
|
138
|
+
return Apollo.useMutation(exports.VisitPageV2Document, baseOptions);
|
|
139
|
+
}
|
|
140
|
+
exports.useVisitPageV2Mutation = useVisitPageV2Mutation;
|
|
141
|
+
exports.FetchCollectionRanksDocument = (0, client_1.gql) `
|
|
142
|
+
query FetchCollectionRanks($collectionKeys: [CollectionKey!]!) {
|
|
143
|
+
fetchCollectionRanks(collectionKeys: $collectionKeys) {
|
|
144
|
+
blockchain
|
|
145
|
+
address
|
|
146
|
+
tokenId
|
|
147
|
+
id
|
|
148
|
+
collectionTitle
|
|
149
|
+
rank
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
`;
|
|
153
|
+
/**
|
|
154
|
+
* __useFetchCollectionRanksQuery__
|
|
155
|
+
*
|
|
156
|
+
* To run a query within a React component, call `useFetchCollectionRanksQuery` and pass it any options that fit your needs.
|
|
157
|
+
* When your component renders, `useFetchCollectionRanksQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
158
|
+
* you can use to render your UI.
|
|
159
|
+
*
|
|
160
|
+
* @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;
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* const { data, loading, error } = useFetchCollectionRanksQuery({
|
|
164
|
+
* variables: {
|
|
165
|
+
* collectionKeys: // value for 'collectionKeys'
|
|
166
|
+
* },
|
|
167
|
+
* });
|
|
168
|
+
*/
|
|
169
|
+
function useFetchCollectionRanksQuery(baseOptions) {
|
|
170
|
+
return Apollo.useQuery(exports.FetchCollectionRanksDocument, baseOptions);
|
|
171
|
+
}
|
|
172
|
+
exports.useFetchCollectionRanksQuery = useFetchCollectionRanksQuery;
|
|
173
|
+
function useFetchCollectionRanksLazyQuery(baseOptions) {
|
|
174
|
+
return Apollo.useLazyQuery(exports.FetchCollectionRanksDocument, baseOptions);
|
|
175
|
+
}
|
|
176
|
+
exports.useFetchCollectionRanksLazyQuery = useFetchCollectionRanksLazyQuery;
|
|
177
|
+
exports.FetchExtensionBrandsDocument = (0, client_1.gql) `
|
|
178
|
+
query FetchExtensionBrands {
|
|
179
|
+
fetchExtensionBrands {
|
|
180
|
+
brandId
|
|
181
|
+
name
|
|
182
|
+
matchingWords
|
|
183
|
+
description
|
|
184
|
+
industry
|
|
185
|
+
link
|
|
186
|
+
media
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
`;
|
|
190
|
+
/**
|
|
191
|
+
* __useFetchExtensionBrandsQuery__
|
|
192
|
+
*
|
|
193
|
+
* To run a query within a React component, call `useFetchExtensionBrandsQuery` and pass it any options that fit your needs.
|
|
194
|
+
* When your component renders, `useFetchExtensionBrandsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
195
|
+
* you can use to render your UI.
|
|
196
|
+
*
|
|
197
|
+
* @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;
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* const { data, loading, error } = useFetchExtensionBrandsQuery({
|
|
201
|
+
* variables: {
|
|
202
|
+
* },
|
|
203
|
+
* });
|
|
204
|
+
*/
|
|
205
|
+
function useFetchExtensionBrandsQuery(baseOptions) {
|
|
206
|
+
return Apollo.useQuery(exports.FetchExtensionBrandsDocument, baseOptions);
|
|
207
|
+
}
|
|
208
|
+
exports.useFetchExtensionBrandsQuery = useFetchExtensionBrandsQuery;
|
|
209
|
+
function useFetchExtensionBrandsLazyQuery(baseOptions) {
|
|
210
|
+
return Apollo.useLazyQuery(exports.FetchExtensionBrandsDocument, baseOptions);
|
|
211
|
+
}
|
|
212
|
+
exports.useFetchExtensionBrandsLazyQuery = useFetchExtensionBrandsLazyQuery;
|
|
213
|
+
exports.FetchExtensionCategoriesDocument = (0, client_1.gql) `
|
|
214
|
+
query FetchExtensionCategories {
|
|
215
|
+
fetchExtensionCategories {
|
|
216
|
+
categoryId
|
|
217
|
+
name
|
|
218
|
+
matchingWords
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
`;
|
|
222
|
+
/**
|
|
223
|
+
* __useFetchExtensionCategoriesQuery__
|
|
224
|
+
*
|
|
225
|
+
* To run a query within a React component, call `useFetchExtensionCategoriesQuery` and pass it any options that fit your needs.
|
|
226
|
+
* When your component renders, `useFetchExtensionCategoriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
227
|
+
* you can use to render your UI.
|
|
228
|
+
*
|
|
229
|
+
* @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;
|
|
230
|
+
*
|
|
231
|
+
* @example
|
|
232
|
+
* const { data, loading, error } = useFetchExtensionCategoriesQuery({
|
|
233
|
+
* variables: {
|
|
234
|
+
* },
|
|
235
|
+
* });
|
|
236
|
+
*/
|
|
237
|
+
function useFetchExtensionCategoriesQuery(baseOptions) {
|
|
238
|
+
return Apollo.useQuery(exports.FetchExtensionCategoriesDocument, baseOptions);
|
|
239
|
+
}
|
|
240
|
+
exports.useFetchExtensionCategoriesQuery = useFetchExtensionCategoriesQuery;
|
|
241
|
+
function useFetchExtensionCategoriesLazyQuery(baseOptions) {
|
|
242
|
+
return Apollo.useLazyQuery(exports.FetchExtensionCategoriesDocument, baseOptions);
|
|
243
|
+
}
|
|
244
|
+
exports.useFetchExtensionCategoriesLazyQuery = useFetchExtensionCategoriesLazyQuery;
|
|
245
|
+
exports.FetchExtensionOpportunitiesV2Document = (0, client_1.gql) `
|
|
246
|
+
query FetchExtensionOpportunitiesV2($domain: String!, $brandId: String, $categoryId: String) {
|
|
247
|
+
fetchExtensionOpportunitiesV2(
|
|
248
|
+
domain: $domain
|
|
249
|
+
brandId: $brandId
|
|
250
|
+
categoryId: $categoryId
|
|
251
|
+
) {
|
|
252
|
+
currentOpportunities {
|
|
253
|
+
opportunityId
|
|
254
|
+
brandId
|
|
255
|
+
categoryId
|
|
256
|
+
opportunityStatus
|
|
257
|
+
opportunityType
|
|
258
|
+
notificationType
|
|
259
|
+
name
|
|
260
|
+
brandName
|
|
261
|
+
brandDescription
|
|
262
|
+
brandMedia
|
|
263
|
+
brandUrl
|
|
264
|
+
brandIndustry
|
|
265
|
+
categoryName
|
|
266
|
+
description
|
|
267
|
+
ludoUrl
|
|
268
|
+
projectUrl
|
|
269
|
+
activeFrom
|
|
270
|
+
activeUntil
|
|
271
|
+
media
|
|
272
|
+
reportLink
|
|
273
|
+
shareLink
|
|
274
|
+
}
|
|
275
|
+
similarOpportunities {
|
|
276
|
+
opportunityId
|
|
277
|
+
brandId
|
|
278
|
+
categoryId
|
|
279
|
+
opportunityStatus
|
|
280
|
+
opportunityType
|
|
281
|
+
notificationType
|
|
282
|
+
name
|
|
283
|
+
brandName
|
|
284
|
+
brandDescription
|
|
285
|
+
brandMedia
|
|
286
|
+
brandUrl
|
|
287
|
+
brandIndustry
|
|
288
|
+
categoryName
|
|
289
|
+
description
|
|
290
|
+
ludoUrl
|
|
291
|
+
projectUrl
|
|
292
|
+
activeFrom
|
|
293
|
+
activeUntil
|
|
294
|
+
media
|
|
295
|
+
reportLink
|
|
296
|
+
shareLink
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
`;
|
|
301
|
+
/**
|
|
302
|
+
* __useFetchExtensionOpportunitiesV2Query__
|
|
303
|
+
*
|
|
304
|
+
* To run a query within a React component, call `useFetchExtensionOpportunitiesV2Query` and pass it any options that fit your needs.
|
|
305
|
+
* When your component renders, `useFetchExtensionOpportunitiesV2Query` returns an object from Apollo Client that contains loading, error, and data properties
|
|
306
|
+
* you can use to render your UI.
|
|
307
|
+
*
|
|
308
|
+
* @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;
|
|
309
|
+
*
|
|
310
|
+
* @example
|
|
311
|
+
* const { data, loading, error } = useFetchExtensionOpportunitiesV2Query({
|
|
312
|
+
* variables: {
|
|
313
|
+
* domain: // value for 'domain'
|
|
314
|
+
* brandId: // value for 'brandId'
|
|
315
|
+
* categoryId: // value for 'categoryId'
|
|
316
|
+
* },
|
|
317
|
+
* });
|
|
318
|
+
*/
|
|
319
|
+
function useFetchExtensionOpportunitiesV2Query(baseOptions) {
|
|
320
|
+
return Apollo.useQuery(exports.FetchExtensionOpportunitiesV2Document, baseOptions);
|
|
321
|
+
}
|
|
322
|
+
exports.useFetchExtensionOpportunitiesV2Query = useFetchExtensionOpportunitiesV2Query;
|
|
323
|
+
function useFetchExtensionOpportunitiesV2LazyQuery(baseOptions) {
|
|
324
|
+
return Apollo.useLazyQuery(exports.FetchExtensionOpportunitiesV2Document, baseOptions);
|
|
325
|
+
}
|
|
326
|
+
exports.useFetchExtensionOpportunitiesV2LazyQuery = useFetchExtensionOpportunitiesV2LazyQuery;
|
|
327
|
+
exports.FetchNftDataDocument = (0, client_1.gql) `
|
|
328
|
+
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
329
|
+
fetchNFTData(
|
|
330
|
+
blockchain: $blockchain
|
|
331
|
+
contractAddress: $contractAddress
|
|
332
|
+
tokenId: $tokenId
|
|
333
|
+
elrondId: $elrondId
|
|
334
|
+
) {
|
|
335
|
+
blockchain
|
|
336
|
+
contractAddress
|
|
337
|
+
tokenId
|
|
338
|
+
elrondId
|
|
339
|
+
collectionData {
|
|
340
|
+
collectionId
|
|
341
|
+
title
|
|
342
|
+
rank
|
|
343
|
+
createdAt
|
|
344
|
+
itemsNum
|
|
345
|
+
holdersNum
|
|
346
|
+
floorPrice
|
|
347
|
+
}
|
|
348
|
+
assetData {
|
|
349
|
+
assetId
|
|
350
|
+
rank
|
|
351
|
+
}
|
|
352
|
+
userRank
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
`;
|
|
356
|
+
/**
|
|
357
|
+
* __useFetchNftDataQuery__
|
|
358
|
+
*
|
|
359
|
+
* To run a query within a React component, call `useFetchNftDataQuery` and pass it any options that fit your needs.
|
|
360
|
+
* When your component renders, `useFetchNftDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
361
|
+
* you can use to render your UI.
|
|
362
|
+
*
|
|
363
|
+
* @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;
|
|
364
|
+
*
|
|
365
|
+
* @example
|
|
366
|
+
* const { data, loading, error } = useFetchNftDataQuery({
|
|
367
|
+
* variables: {
|
|
368
|
+
* blockchain: // value for 'blockchain'
|
|
369
|
+
* contractAddress: // value for 'contractAddress'
|
|
370
|
+
* tokenId: // value for 'tokenId'
|
|
371
|
+
* elrondId: // value for 'elrondId'
|
|
372
|
+
* },
|
|
373
|
+
* });
|
|
374
|
+
*/
|
|
375
|
+
function useFetchNftDataQuery(baseOptions) {
|
|
376
|
+
return Apollo.useQuery(exports.FetchNftDataDocument, baseOptions);
|
|
377
|
+
}
|
|
378
|
+
exports.useFetchNftDataQuery = useFetchNftDataQuery;
|
|
379
|
+
function useFetchNftDataLazyQuery(baseOptions) {
|
|
380
|
+
return Apollo.useLazyQuery(exports.FetchNftDataDocument, baseOptions);
|
|
381
|
+
}
|
|
382
|
+
exports.useFetchNftDataLazyQuery = useFetchNftDataLazyQuery;
|
|
383
|
+
exports.FetchNftRanksDocument = (0, client_1.gql) `
|
|
384
|
+
query FetchNFTRanks($nftKeys: [NFTKey!]!) {
|
|
385
|
+
fetchNFTRanks(nftKeys: $nftKeys) {
|
|
386
|
+
blockchain
|
|
387
|
+
address
|
|
388
|
+
tokenId
|
|
389
|
+
id
|
|
390
|
+
rank
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
`;
|
|
394
|
+
/**
|
|
395
|
+
* __useFetchNftRanksQuery__
|
|
396
|
+
*
|
|
397
|
+
* To run a query within a React component, call `useFetchNftRanksQuery` and pass it any options that fit your needs.
|
|
398
|
+
* When your component renders, `useFetchNftRanksQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
399
|
+
* you can use to render your UI.
|
|
400
|
+
*
|
|
401
|
+
* @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;
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
* const { data, loading, error } = useFetchNftRanksQuery({
|
|
405
|
+
* variables: {
|
|
406
|
+
* nftKeys: // value for 'nftKeys'
|
|
407
|
+
* },
|
|
408
|
+
* });
|
|
409
|
+
*/
|
|
410
|
+
function useFetchNftRanksQuery(baseOptions) {
|
|
411
|
+
return Apollo.useQuery(exports.FetchNftRanksDocument, baseOptions);
|
|
412
|
+
}
|
|
413
|
+
exports.useFetchNftRanksQuery = useFetchNftRanksQuery;
|
|
414
|
+
function useFetchNftRanksLazyQuery(baseOptions) {
|
|
415
|
+
return Apollo.useLazyQuery(exports.FetchNftRanksDocument, baseOptions);
|
|
416
|
+
}
|
|
417
|
+
exports.useFetchNftRanksLazyQuery = useFetchNftRanksLazyQuery;
|
|
418
|
+
exports.FetchWalletRanksDocument = (0, client_1.gql) `
|
|
419
|
+
query FetchWalletRanks($wallets: [String!]!) {
|
|
420
|
+
fetchWalletRanks(wallets: $wallets) {
|
|
421
|
+
wallet
|
|
422
|
+
rank
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
`;
|
|
426
|
+
/**
|
|
427
|
+
* __useFetchWalletRanksQuery__
|
|
428
|
+
*
|
|
429
|
+
* To run a query within a React component, call `useFetchWalletRanksQuery` and pass it any options that fit your needs.
|
|
430
|
+
* When your component renders, `useFetchWalletRanksQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
431
|
+
* you can use to render your UI.
|
|
432
|
+
*
|
|
433
|
+
* @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;
|
|
434
|
+
*
|
|
435
|
+
* @example
|
|
436
|
+
* const { data, loading, error } = useFetchWalletRanksQuery({
|
|
437
|
+
* variables: {
|
|
438
|
+
* wallets: // value for 'wallets'
|
|
439
|
+
* },
|
|
440
|
+
* });
|
|
441
|
+
*/
|
|
442
|
+
function useFetchWalletRanksQuery(baseOptions) {
|
|
443
|
+
return Apollo.useQuery(exports.FetchWalletRanksDocument, baseOptions);
|
|
444
|
+
}
|
|
445
|
+
exports.useFetchWalletRanksQuery = useFetchWalletRanksQuery;
|
|
446
|
+
function useFetchWalletRanksLazyQuery(baseOptions) {
|
|
447
|
+
return Apollo.useLazyQuery(exports.FetchWalletRanksDocument, baseOptions);
|
|
448
|
+
}
|
|
449
|
+
exports.useFetchWalletRanksLazyQuery = useFetchWalletRanksLazyQuery;
|