@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.
- package/build/config/index.js +4 -4
- package/build/graphql_tools/__generated__/schema.d.ts +8936 -0
- package/build/graphql_tools/__generated__/schema.js +5431 -0
- package/build/hosts/index.d.ts +3 -0
- package/build/hosts/index.js +4 -1
- package/build/index.d.ts +2 -13
- package/build/index.js +3 -25
- package/package.json +1 -1
- package/src/config/index.ts +50 -50
- package/src/graphql_tools/__generated__/schema.ts +12028 -0
- package/src/hosts/index.ts +6 -0
- package/src/index.ts +2 -29
- package/tsconfig.tsbuildinfo +1 -1
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +0 -1406
- package/build/graphql_tools/__generated__/adminHost/schema.js +0 -683
- package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +0 -392
- package/build/graphql_tools/__generated__/assetsHost/schema.js +0 -80
- package/build/graphql_tools/__generated__/authHost/schema.d.ts +0 -238
- package/build/graphql_tools/__generated__/authHost/schema.js +0 -85
- package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +0 -455
- package/build/graphql_tools/__generated__/collectionsHost/schema.js +0 -80
- package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +0 -356
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +0 -191
- package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +0 -808
- package/build/graphql_tools/__generated__/extensionHost/schema.js +0 -449
- package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +0 -794
- package/build/graphql_tools/__generated__/galleriesHost/schema.js +0 -575
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +0 -1201
- package/build/graphql_tools/__generated__/identityHost/schema.js +0 -757
- package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +0 -242
- package/build/graphql_tools/__generated__/mediasHost/schema.js +0 -110
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +0 -486
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +0 -148
- package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +0 -604
- package/build/graphql_tools/__generated__/preferencesHost/schema.js +0 -411
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +0 -1304
- package/build/graphql_tools/__generated__/searchHost/schema.js +0 -1191
- package/src/graphql_tools/__generated__/adminHost/schema.ts +0 -1777
- package/src/graphql_tools/__generated__/assetsHost/schema.ts +0 -482
- package/src/graphql_tools/__generated__/authHost/schema.ts +0 -317
- package/src/graphql_tools/__generated__/collectionsHost/schema.ts +0 -554
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +0 -478
- package/src/graphql_tools/__generated__/extensionHost/schema.ts +0 -1074
- package/src/graphql_tools/__generated__/galleriesHost/schema.ts +0 -1090
- package/src/graphql_tools/__generated__/identityHost/schema.ts +0 -1580
- package/src/graphql_tools/__generated__/mediasHost/schema.ts +0 -333
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +0 -629
- package/src/graphql_tools/__generated__/preferencesHost/schema.ts +0 -772
- package/src/graphql_tools/__generated__/searchHost/schema.ts +0 -2137
|
@@ -1,757 +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.useGetMyInviteCodesLazyQuery = exports.useGetMyInviteCodesQuery = exports.GetMyInviteCodesDocument = exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSignInAdminMetamaskMutation = exports.SignInAdminMetamaskDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useSaveEmailOfJoinerMutation = exports.SaveEmailOfJoinerDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.IRole = void 0;
|
|
27
|
-
const client_1 = require("@apollo/client");
|
|
28
|
-
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
-
var IRole;
|
|
30
|
-
(function (IRole) {
|
|
31
|
-
IRole["Admin"] = "admin";
|
|
32
|
-
IRole["Plain"] = "plain";
|
|
33
|
-
})(IRole || (exports.IRole = IRole = {}));
|
|
34
|
-
exports.AddWalletElrondDocument = (0, client_1.gql) `
|
|
35
|
-
mutation AddWalletElrond($signature: String!, $address: String!) {
|
|
36
|
-
addWalletElrond(signature: $signature, address: $address)
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
/**
|
|
40
|
-
* __useAddWalletElrondMutation__
|
|
41
|
-
*
|
|
42
|
-
* To run a mutation, you first call `useAddWalletElrondMutation` within a React component and pass it any options that fit your needs.
|
|
43
|
-
* When your component renders, `useAddWalletElrondMutation` returns a tuple that includes:
|
|
44
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
45
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
46
|
-
*
|
|
47
|
-
* @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;
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* const [addWalletElrondMutation, { data, loading, error }] = useAddWalletElrondMutation({
|
|
51
|
-
* variables: {
|
|
52
|
-
* signature: // value for 'signature'
|
|
53
|
-
* address: // value for 'address'
|
|
54
|
-
* },
|
|
55
|
-
* });
|
|
56
|
-
*/
|
|
57
|
-
function useAddWalletElrondMutation(baseOptions) {
|
|
58
|
-
return Apollo.useMutation(exports.AddWalletElrondDocument, baseOptions);
|
|
59
|
-
}
|
|
60
|
-
exports.useAddWalletElrondMutation = useAddWalletElrondMutation;
|
|
61
|
-
exports.AddWalletFlowDocument = (0, client_1.gql) `
|
|
62
|
-
mutation AddWalletFlow($signature: String!, $address: String!) {
|
|
63
|
-
addWalletFlow(signature: $signature, address: $address)
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
/**
|
|
67
|
-
* __useAddWalletFlowMutation__
|
|
68
|
-
*
|
|
69
|
-
* To run a mutation, you first call `useAddWalletFlowMutation` within a React component and pass it any options that fit your needs.
|
|
70
|
-
* When your component renders, `useAddWalletFlowMutation` returns a tuple that includes:
|
|
71
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
72
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
73
|
-
*
|
|
74
|
-
* @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;
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* const [addWalletFlowMutation, { data, loading, error }] = useAddWalletFlowMutation({
|
|
78
|
-
* variables: {
|
|
79
|
-
* signature: // value for 'signature'
|
|
80
|
-
* address: // value for 'address'
|
|
81
|
-
* },
|
|
82
|
-
* });
|
|
83
|
-
*/
|
|
84
|
-
function useAddWalletFlowMutation(baseOptions) {
|
|
85
|
-
return Apollo.useMutation(exports.AddWalletFlowDocument, baseOptions);
|
|
86
|
-
}
|
|
87
|
-
exports.useAddWalletFlowMutation = useAddWalletFlowMutation;
|
|
88
|
-
exports.AddWalletMetamaskDocument = (0, client_1.gql) `
|
|
89
|
-
mutation AddWalletMetamask($signature: String!, $address: String!, $chainId: String!) {
|
|
90
|
-
addWalletMetamask(signature: $signature, address: $address, chainId: $chainId)
|
|
91
|
-
}
|
|
92
|
-
`;
|
|
93
|
-
/**
|
|
94
|
-
* __useAddWalletMetamaskMutation__
|
|
95
|
-
*
|
|
96
|
-
* To run a mutation, you first call `useAddWalletMetamaskMutation` within a React component and pass it any options that fit your needs.
|
|
97
|
-
* When your component renders, `useAddWalletMetamaskMutation` returns a tuple that includes:
|
|
98
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
99
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
100
|
-
*
|
|
101
|
-
* @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;
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* const [addWalletMetamaskMutation, { data, loading, error }] = useAddWalletMetamaskMutation({
|
|
105
|
-
* variables: {
|
|
106
|
-
* signature: // value for 'signature'
|
|
107
|
-
* address: // value for 'address'
|
|
108
|
-
* chainId: // value for 'chainId'
|
|
109
|
-
* },
|
|
110
|
-
* });
|
|
111
|
-
*/
|
|
112
|
-
function useAddWalletMetamaskMutation(baseOptions) {
|
|
113
|
-
return Apollo.useMutation(exports.AddWalletMetamaskDocument, baseOptions);
|
|
114
|
-
}
|
|
115
|
-
exports.useAddWalletMetamaskMutation = useAddWalletMetamaskMutation;
|
|
116
|
-
exports.AddWalletSolanaDocument = (0, client_1.gql) `
|
|
117
|
-
mutation AddWalletSolana($signature: String!, $pubkey: String!) {
|
|
118
|
-
addWalletSolana(signature: $signature, pubkey: $pubkey)
|
|
119
|
-
}
|
|
120
|
-
`;
|
|
121
|
-
/**
|
|
122
|
-
* __useAddWalletSolanaMutation__
|
|
123
|
-
*
|
|
124
|
-
* To run a mutation, you first call `useAddWalletSolanaMutation` within a React component and pass it any options that fit your needs.
|
|
125
|
-
* When your component renders, `useAddWalletSolanaMutation` 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 [addWalletSolanaMutation, { data, loading, error }] = useAddWalletSolanaMutation({
|
|
133
|
-
* variables: {
|
|
134
|
-
* signature: // value for 'signature'
|
|
135
|
-
* pubkey: // value for 'pubkey'
|
|
136
|
-
* },
|
|
137
|
-
* });
|
|
138
|
-
*/
|
|
139
|
-
function useAddWalletSolanaMutation(baseOptions) {
|
|
140
|
-
return Apollo.useMutation(exports.AddWalletSolanaDocument, baseOptions);
|
|
141
|
-
}
|
|
142
|
-
exports.useAddWalletSolanaMutation = useAddWalletSolanaMutation;
|
|
143
|
-
exports.AddWalletTezosDocument = (0, client_1.gql) `
|
|
144
|
-
mutation AddWalletTezos($signature: String!, $pubkey: String!) {
|
|
145
|
-
addWalletTezos(signature: $signature, pubkey: $pubkey)
|
|
146
|
-
}
|
|
147
|
-
`;
|
|
148
|
-
/**
|
|
149
|
-
* __useAddWalletTezosMutation__
|
|
150
|
-
*
|
|
151
|
-
* To run a mutation, you first call `useAddWalletTezosMutation` within a React component and pass it any options that fit your needs.
|
|
152
|
-
* When your component renders, `useAddWalletTezosMutation` 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 [addWalletTezosMutation, { data, loading, error }] = useAddWalletTezosMutation({
|
|
160
|
-
* variables: {
|
|
161
|
-
* signature: // value for 'signature'
|
|
162
|
-
* pubkey: // value for 'pubkey'
|
|
163
|
-
* },
|
|
164
|
-
* });
|
|
165
|
-
*/
|
|
166
|
-
function useAddWalletTezosMutation(baseOptions) {
|
|
167
|
-
return Apollo.useMutation(exports.AddWalletTezosDocument, baseOptions);
|
|
168
|
-
}
|
|
169
|
-
exports.useAddWalletTezosMutation = useAddWalletTezosMutation;
|
|
170
|
-
exports.CreateNonceDocument = (0, client_1.gql) `
|
|
171
|
-
mutation CreateNonce($address: String!, $blockchain: String!, $chainId: String) {
|
|
172
|
-
createNonce(address: $address, blockchain: $blockchain, chainId: $chainId)
|
|
173
|
-
}
|
|
174
|
-
`;
|
|
175
|
-
/**
|
|
176
|
-
* __useCreateNonceMutation__
|
|
177
|
-
*
|
|
178
|
-
* To run a mutation, you first call `useCreateNonceMutation` within a React component and pass it any options that fit your needs.
|
|
179
|
-
* When your component renders, `useCreateNonceMutation` 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 [createNonceMutation, { data, loading, error }] = useCreateNonceMutation({
|
|
187
|
-
* variables: {
|
|
188
|
-
* address: // value for 'address'
|
|
189
|
-
* blockchain: // value for 'blockchain'
|
|
190
|
-
* chainId: // value for 'chainId'
|
|
191
|
-
* },
|
|
192
|
-
* });
|
|
193
|
-
*/
|
|
194
|
-
function useCreateNonceMutation(baseOptions) {
|
|
195
|
-
return Apollo.useMutation(exports.CreateNonceDocument, baseOptions);
|
|
196
|
-
}
|
|
197
|
-
exports.useCreateNonceMutation = useCreateNonceMutation;
|
|
198
|
-
exports.GenerateNewInviteCodesDocument = (0, client_1.gql) `
|
|
199
|
-
mutation GenerateNewInviteCodes($codesNum: Int!) {
|
|
200
|
-
generateNewInviteCodes(codesNum: $codesNum) {
|
|
201
|
-
inviteCode
|
|
202
|
-
inviteeId
|
|
203
|
-
isUsed
|
|
204
|
-
usedAt
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
`;
|
|
208
|
-
/**
|
|
209
|
-
* __useGenerateNewInviteCodesMutation__
|
|
210
|
-
*
|
|
211
|
-
* To run a mutation, you first call `useGenerateNewInviteCodesMutation` within a React component and pass it any options that fit your needs.
|
|
212
|
-
* When your component renders, `useGenerateNewInviteCodesMutation` returns a tuple that includes:
|
|
213
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
214
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
215
|
-
*
|
|
216
|
-
* @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;
|
|
217
|
-
*
|
|
218
|
-
* @example
|
|
219
|
-
* const [generateNewInviteCodesMutation, { data, loading, error }] = useGenerateNewInviteCodesMutation({
|
|
220
|
-
* variables: {
|
|
221
|
-
* codesNum: // value for 'codesNum'
|
|
222
|
-
* },
|
|
223
|
-
* });
|
|
224
|
-
*/
|
|
225
|
-
function useGenerateNewInviteCodesMutation(baseOptions) {
|
|
226
|
-
return Apollo.useMutation(exports.GenerateNewInviteCodesDocument, baseOptions);
|
|
227
|
-
}
|
|
228
|
-
exports.useGenerateNewInviteCodesMutation = useGenerateNewInviteCodesMutation;
|
|
229
|
-
exports.UseInviteCodeDocument = (0, client_1.gql) `
|
|
230
|
-
mutation UseInviteCode($inviteCode: String!) {
|
|
231
|
-
useInviteCode(inviteCode: $inviteCode)
|
|
232
|
-
}
|
|
233
|
-
`;
|
|
234
|
-
/**
|
|
235
|
-
* __useUseInviteCodeMutation__
|
|
236
|
-
*
|
|
237
|
-
* To run a mutation, you first call `useUseInviteCodeMutation` within a React component and pass it any options that fit your needs.
|
|
238
|
-
* When your component renders, `useUseInviteCodeMutation` returns a tuple that includes:
|
|
239
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
240
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
241
|
-
*
|
|
242
|
-
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
243
|
-
*
|
|
244
|
-
* @example
|
|
245
|
-
* const [useInviteCodeMutation, { data, loading, error }] = useUseInviteCodeMutation({
|
|
246
|
-
* variables: {
|
|
247
|
-
* inviteCode: // value for 'inviteCode'
|
|
248
|
-
* },
|
|
249
|
-
* });
|
|
250
|
-
*/
|
|
251
|
-
function useUseInviteCodeMutation(baseOptions) {
|
|
252
|
-
return Apollo.useMutation(exports.UseInviteCodeDocument, baseOptions);
|
|
253
|
-
}
|
|
254
|
-
exports.useUseInviteCodeMutation = useUseInviteCodeMutation;
|
|
255
|
-
exports.RemoveWalletDocument = (0, client_1.gql) `
|
|
256
|
-
mutation RemoveWallet($blockchain: String!, $address: String!, $chainId: String) {
|
|
257
|
-
removeWallet(blockchain: $blockchain, address: $address, chainId: $chainId)
|
|
258
|
-
}
|
|
259
|
-
`;
|
|
260
|
-
/**
|
|
261
|
-
* __useRemoveWalletMutation__
|
|
262
|
-
*
|
|
263
|
-
* To run a mutation, you first call `useRemoveWalletMutation` within a React component and pass it any options that fit your needs.
|
|
264
|
-
* When your component renders, `useRemoveWalletMutation` returns a tuple that includes:
|
|
265
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
266
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
267
|
-
*
|
|
268
|
-
* @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;
|
|
269
|
-
*
|
|
270
|
-
* @example
|
|
271
|
-
* const [removeWalletMutation, { data, loading, error }] = useRemoveWalletMutation({
|
|
272
|
-
* variables: {
|
|
273
|
-
* blockchain: // value for 'blockchain'
|
|
274
|
-
* address: // value for 'address'
|
|
275
|
-
* chainId: // value for 'chainId'
|
|
276
|
-
* },
|
|
277
|
-
* });
|
|
278
|
-
*/
|
|
279
|
-
function useRemoveWalletMutation(baseOptions) {
|
|
280
|
-
return Apollo.useMutation(exports.RemoveWalletDocument, baseOptions);
|
|
281
|
-
}
|
|
282
|
-
exports.useRemoveWalletMutation = useRemoveWalletMutation;
|
|
283
|
-
exports.SaveEmailOfJoinerDocument = (0, client_1.gql) `
|
|
284
|
-
mutation SaveEmailOfJoiner($email: String!, $isSubscribed: Boolean!) {
|
|
285
|
-
saveEmailOfJoiner(email: $email, isSubscribed: $isSubscribed)
|
|
286
|
-
}
|
|
287
|
-
`;
|
|
288
|
-
/**
|
|
289
|
-
* __useSaveEmailOfJoinerMutation__
|
|
290
|
-
*
|
|
291
|
-
* To run a mutation, you first call `useSaveEmailOfJoinerMutation` within a React component and pass it any options that fit your needs.
|
|
292
|
-
* When your component renders, `useSaveEmailOfJoinerMutation` returns a tuple that includes:
|
|
293
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
294
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
295
|
-
*
|
|
296
|
-
* @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;
|
|
297
|
-
*
|
|
298
|
-
* @example
|
|
299
|
-
* const [saveEmailOfJoinerMutation, { data, loading, error }] = useSaveEmailOfJoinerMutation({
|
|
300
|
-
* variables: {
|
|
301
|
-
* email: // value for 'email'
|
|
302
|
-
* isSubscribed: // value for 'isSubscribed'
|
|
303
|
-
* },
|
|
304
|
-
* });
|
|
305
|
-
*/
|
|
306
|
-
function useSaveEmailOfJoinerMutation(baseOptions) {
|
|
307
|
-
return Apollo.useMutation(exports.SaveEmailOfJoinerDocument, baseOptions);
|
|
308
|
-
}
|
|
309
|
-
exports.useSaveEmailOfJoinerMutation = useSaveEmailOfJoinerMutation;
|
|
310
|
-
exports.SetMainWalletDocument = (0, client_1.gql) `
|
|
311
|
-
mutation SetMainWallet($blockchain: String!, $address: String!, $chainId: String) {
|
|
312
|
-
setMainWallet(blockchain: $blockchain, address: $address, chainId: $chainId)
|
|
313
|
-
}
|
|
314
|
-
`;
|
|
315
|
-
/**
|
|
316
|
-
* __useSetMainWalletMutation__
|
|
317
|
-
*
|
|
318
|
-
* To run a mutation, you first call `useSetMainWalletMutation` within a React component and pass it any options that fit your needs.
|
|
319
|
-
* When your component renders, `useSetMainWalletMutation` returns a tuple that includes:
|
|
320
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
321
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
322
|
-
*
|
|
323
|
-
* @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;
|
|
324
|
-
*
|
|
325
|
-
* @example
|
|
326
|
-
* const [setMainWalletMutation, { data, loading, error }] = useSetMainWalletMutation({
|
|
327
|
-
* variables: {
|
|
328
|
-
* blockchain: // value for 'blockchain'
|
|
329
|
-
* address: // value for 'address'
|
|
330
|
-
* chainId: // value for 'chainId'
|
|
331
|
-
* },
|
|
332
|
-
* });
|
|
333
|
-
*/
|
|
334
|
-
function useSetMainWalletMutation(baseOptions) {
|
|
335
|
-
return Apollo.useMutation(exports.SetMainWalletDocument, baseOptions);
|
|
336
|
-
}
|
|
337
|
-
exports.useSetMainWalletMutation = useSetMainWalletMutation;
|
|
338
|
-
exports.SignInAdminMetamaskDocument = (0, client_1.gql) `
|
|
339
|
-
mutation SignInAdminMetamask($signature: String!, $address: String!, $chainId: String!) {
|
|
340
|
-
signInAdminMetamask(signature: $signature, address: $address, chainId: $chainId) {
|
|
341
|
-
userId
|
|
342
|
-
wallets
|
|
343
|
-
tokens {
|
|
344
|
-
portalTokenPair {
|
|
345
|
-
authToken
|
|
346
|
-
refreshToken
|
|
347
|
-
}
|
|
348
|
-
extensionTokenPair {
|
|
349
|
-
authToken
|
|
350
|
-
refreshToken
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
newUser
|
|
354
|
-
inviteCode
|
|
355
|
-
role
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
`;
|
|
359
|
-
/**
|
|
360
|
-
* __useSignInAdminMetamaskMutation__
|
|
361
|
-
*
|
|
362
|
-
* To run a mutation, you first call `useSignInAdminMetamaskMutation` within a React component and pass it any options that fit your needs.
|
|
363
|
-
* When your component renders, `useSignInAdminMetamaskMutation` returns a tuple that includes:
|
|
364
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
365
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
366
|
-
*
|
|
367
|
-
* @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;
|
|
368
|
-
*
|
|
369
|
-
* @example
|
|
370
|
-
* const [signInAdminMetamaskMutation, { data, loading, error }] = useSignInAdminMetamaskMutation({
|
|
371
|
-
* variables: {
|
|
372
|
-
* signature: // value for 'signature'
|
|
373
|
-
* address: // value for 'address'
|
|
374
|
-
* chainId: // value for 'chainId'
|
|
375
|
-
* },
|
|
376
|
-
* });
|
|
377
|
-
*/
|
|
378
|
-
function useSignInAdminMetamaskMutation(baseOptions) {
|
|
379
|
-
return Apollo.useMutation(exports.SignInAdminMetamaskDocument, baseOptions);
|
|
380
|
-
}
|
|
381
|
-
exports.useSignInAdminMetamaskMutation = useSignInAdminMetamaskMutation;
|
|
382
|
-
exports.SignInElrondDocument = (0, client_1.gql) `
|
|
383
|
-
mutation SignInElrond($signature: String!, $address: String!) {
|
|
384
|
-
signInElrond(signature: $signature, address: $address) {
|
|
385
|
-
userId
|
|
386
|
-
wallets
|
|
387
|
-
tokens {
|
|
388
|
-
portalTokenPair {
|
|
389
|
-
authToken
|
|
390
|
-
refreshToken
|
|
391
|
-
}
|
|
392
|
-
extensionTokenPair {
|
|
393
|
-
authToken
|
|
394
|
-
refreshToken
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
newUser
|
|
398
|
-
inviteCode
|
|
399
|
-
role
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
`;
|
|
403
|
-
/**
|
|
404
|
-
* __useSignInElrondMutation__
|
|
405
|
-
*
|
|
406
|
-
* To run a mutation, you first call `useSignInElrondMutation` within a React component and pass it any options that fit your needs.
|
|
407
|
-
* When your component renders, `useSignInElrondMutation` returns a tuple that includes:
|
|
408
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
409
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
410
|
-
*
|
|
411
|
-
* @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;
|
|
412
|
-
*
|
|
413
|
-
* @example
|
|
414
|
-
* const [signInElrondMutation, { data, loading, error }] = useSignInElrondMutation({
|
|
415
|
-
* variables: {
|
|
416
|
-
* signature: // value for 'signature'
|
|
417
|
-
* address: // value for 'address'
|
|
418
|
-
* },
|
|
419
|
-
* });
|
|
420
|
-
*/
|
|
421
|
-
function useSignInElrondMutation(baseOptions) {
|
|
422
|
-
return Apollo.useMutation(exports.SignInElrondDocument, baseOptions);
|
|
423
|
-
}
|
|
424
|
-
exports.useSignInElrondMutation = useSignInElrondMutation;
|
|
425
|
-
exports.SignInFlowDocument = (0, client_1.gql) `
|
|
426
|
-
mutation SignInFlow($signature: String!, $address: String!) {
|
|
427
|
-
signInFlow(signature: $signature, address: $address) {
|
|
428
|
-
userId
|
|
429
|
-
wallets
|
|
430
|
-
tokens {
|
|
431
|
-
portalTokenPair {
|
|
432
|
-
authToken
|
|
433
|
-
refreshToken
|
|
434
|
-
}
|
|
435
|
-
extensionTokenPair {
|
|
436
|
-
authToken
|
|
437
|
-
refreshToken
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
newUser
|
|
441
|
-
inviteCode
|
|
442
|
-
role
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
`;
|
|
446
|
-
/**
|
|
447
|
-
* __useSignInFlowMutation__
|
|
448
|
-
*
|
|
449
|
-
* To run a mutation, you first call `useSignInFlowMutation` within a React component and pass it any options that fit your needs.
|
|
450
|
-
* When your component renders, `useSignInFlowMutation` returns a tuple that includes:
|
|
451
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
452
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
453
|
-
*
|
|
454
|
-
* @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;
|
|
455
|
-
*
|
|
456
|
-
* @example
|
|
457
|
-
* const [signInFlowMutation, { data, loading, error }] = useSignInFlowMutation({
|
|
458
|
-
* variables: {
|
|
459
|
-
* signature: // value for 'signature'
|
|
460
|
-
* address: // value for 'address'
|
|
461
|
-
* },
|
|
462
|
-
* });
|
|
463
|
-
*/
|
|
464
|
-
function useSignInFlowMutation(baseOptions) {
|
|
465
|
-
return Apollo.useMutation(exports.SignInFlowDocument, baseOptions);
|
|
466
|
-
}
|
|
467
|
-
exports.useSignInFlowMutation = useSignInFlowMutation;
|
|
468
|
-
exports.SignInMetamaskDocument = (0, client_1.gql) `
|
|
469
|
-
mutation SignInMetamask($signature: String!, $address: String!, $chainId: String!) {
|
|
470
|
-
signInMetamask(signature: $signature, address: $address, chainId: $chainId) {
|
|
471
|
-
userId
|
|
472
|
-
wallets
|
|
473
|
-
tokens {
|
|
474
|
-
portalTokenPair {
|
|
475
|
-
authToken
|
|
476
|
-
refreshToken
|
|
477
|
-
}
|
|
478
|
-
extensionTokenPair {
|
|
479
|
-
authToken
|
|
480
|
-
refreshToken
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
newUser
|
|
484
|
-
inviteCode
|
|
485
|
-
role
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
`;
|
|
489
|
-
/**
|
|
490
|
-
* __useSignInMetamaskMutation__
|
|
491
|
-
*
|
|
492
|
-
* To run a mutation, you first call `useSignInMetamaskMutation` within a React component and pass it any options that fit your needs.
|
|
493
|
-
* When your component renders, `useSignInMetamaskMutation` returns a tuple that includes:
|
|
494
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
495
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
496
|
-
*
|
|
497
|
-
* @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;
|
|
498
|
-
*
|
|
499
|
-
* @example
|
|
500
|
-
* const [signInMetamaskMutation, { data, loading, error }] = useSignInMetamaskMutation({
|
|
501
|
-
* variables: {
|
|
502
|
-
* signature: // value for 'signature'
|
|
503
|
-
* address: // value for 'address'
|
|
504
|
-
* chainId: // value for 'chainId'
|
|
505
|
-
* },
|
|
506
|
-
* });
|
|
507
|
-
*/
|
|
508
|
-
function useSignInMetamaskMutation(baseOptions) {
|
|
509
|
-
return Apollo.useMutation(exports.SignInMetamaskDocument, baseOptions);
|
|
510
|
-
}
|
|
511
|
-
exports.useSignInMetamaskMutation = useSignInMetamaskMutation;
|
|
512
|
-
exports.SignInSolanaDocument = (0, client_1.gql) `
|
|
513
|
-
mutation SignInSolana($signature: String!, $pubkey: String!) {
|
|
514
|
-
signInSolana(signature: $signature, pubkey: $pubkey) {
|
|
515
|
-
userId
|
|
516
|
-
wallets
|
|
517
|
-
tokens {
|
|
518
|
-
portalTokenPair {
|
|
519
|
-
authToken
|
|
520
|
-
refreshToken
|
|
521
|
-
}
|
|
522
|
-
extensionTokenPair {
|
|
523
|
-
authToken
|
|
524
|
-
refreshToken
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
newUser
|
|
528
|
-
inviteCode
|
|
529
|
-
role
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
`;
|
|
533
|
-
/**
|
|
534
|
-
* __useSignInSolanaMutation__
|
|
535
|
-
*
|
|
536
|
-
* To run a mutation, you first call `useSignInSolanaMutation` within a React component and pass it any options that fit your needs.
|
|
537
|
-
* When your component renders, `useSignInSolanaMutation` returns a tuple that includes:
|
|
538
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
539
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
540
|
-
*
|
|
541
|
-
* @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;
|
|
542
|
-
*
|
|
543
|
-
* @example
|
|
544
|
-
* const [signInSolanaMutation, { data, loading, error }] = useSignInSolanaMutation({
|
|
545
|
-
* variables: {
|
|
546
|
-
* signature: // value for 'signature'
|
|
547
|
-
* pubkey: // value for 'pubkey'
|
|
548
|
-
* },
|
|
549
|
-
* });
|
|
550
|
-
*/
|
|
551
|
-
function useSignInSolanaMutation(baseOptions) {
|
|
552
|
-
return Apollo.useMutation(exports.SignInSolanaDocument, baseOptions);
|
|
553
|
-
}
|
|
554
|
-
exports.useSignInSolanaMutation = useSignInSolanaMutation;
|
|
555
|
-
exports.SignInTezosDocument = (0, client_1.gql) `
|
|
556
|
-
mutation SignInTezos($signature: String!, $pubkey: String!) {
|
|
557
|
-
signInTezos(signature: $signature, pubkey: $pubkey) {
|
|
558
|
-
userId
|
|
559
|
-
wallets
|
|
560
|
-
tokens {
|
|
561
|
-
portalTokenPair {
|
|
562
|
-
authToken
|
|
563
|
-
refreshToken
|
|
564
|
-
}
|
|
565
|
-
extensionTokenPair {
|
|
566
|
-
authToken
|
|
567
|
-
refreshToken
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
newUser
|
|
571
|
-
inviteCode
|
|
572
|
-
role
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
`;
|
|
576
|
-
/**
|
|
577
|
-
* __useSignInTezosMutation__
|
|
578
|
-
*
|
|
579
|
-
* To run a mutation, you first call `useSignInTezosMutation` within a React component and pass it any options that fit your needs.
|
|
580
|
-
* When your component renders, `useSignInTezosMutation` returns a tuple that includes:
|
|
581
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
582
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
583
|
-
*
|
|
584
|
-
* @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;
|
|
585
|
-
*
|
|
586
|
-
* @example
|
|
587
|
-
* const [signInTezosMutation, { data, loading, error }] = useSignInTezosMutation({
|
|
588
|
-
* variables: {
|
|
589
|
-
* signature: // value for 'signature'
|
|
590
|
-
* pubkey: // value for 'pubkey'
|
|
591
|
-
* },
|
|
592
|
-
* });
|
|
593
|
-
*/
|
|
594
|
-
function useSignInTezosMutation(baseOptions) {
|
|
595
|
-
return Apollo.useMutation(exports.SignInTezosDocument, baseOptions);
|
|
596
|
-
}
|
|
597
|
-
exports.useSignInTezosMutation = useSignInTezosMutation;
|
|
598
|
-
exports.UpdateProfileDocument = (0, client_1.gql) `
|
|
599
|
-
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean) {
|
|
600
|
-
updateProfile(
|
|
601
|
-
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website}}
|
|
602
|
-
)
|
|
603
|
-
}
|
|
604
|
-
`;
|
|
605
|
-
/**
|
|
606
|
-
* __useUpdateProfileMutation__
|
|
607
|
-
*
|
|
608
|
-
* To run a mutation, you first call `useUpdateProfileMutation` within a React component and pass it any options that fit your needs.
|
|
609
|
-
* When your component renders, `useUpdateProfileMutation` returns a tuple that includes:
|
|
610
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
611
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
612
|
-
*
|
|
613
|
-
* @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;
|
|
614
|
-
*
|
|
615
|
-
* @example
|
|
616
|
-
* const [updateProfileMutation, { data, loading, error }] = useUpdateProfileMutation({
|
|
617
|
-
* variables: {
|
|
618
|
-
* username: // value for 'username'
|
|
619
|
-
* about: // value for 'about'
|
|
620
|
-
* facebook: // value for 'facebook'
|
|
621
|
-
* twitter: // value for 'twitter'
|
|
622
|
-
* instagram: // value for 'instagram'
|
|
623
|
-
* website: // value for 'website'
|
|
624
|
-
* showNsfw: // value for 'showNsfw'
|
|
625
|
-
* },
|
|
626
|
-
* });
|
|
627
|
-
*/
|
|
628
|
-
function useUpdateProfileMutation(baseOptions) {
|
|
629
|
-
return Apollo.useMutation(exports.UpdateProfileDocument, baseOptions);
|
|
630
|
-
}
|
|
631
|
-
exports.useUpdateProfileMutation = useUpdateProfileMutation;
|
|
632
|
-
exports.FetchProfileDocument = (0, client_1.gql) `
|
|
633
|
-
query FetchProfile($userId: ID!) {
|
|
634
|
-
fetchProfile(userId: $userId) {
|
|
635
|
-
userId
|
|
636
|
-
username
|
|
637
|
-
about
|
|
638
|
-
userpic
|
|
639
|
-
following
|
|
640
|
-
followings
|
|
641
|
-
followers
|
|
642
|
-
rank
|
|
643
|
-
social {
|
|
644
|
-
facebook
|
|
645
|
-
twitter
|
|
646
|
-
instagram
|
|
647
|
-
website
|
|
648
|
-
}
|
|
649
|
-
views
|
|
650
|
-
createdAt
|
|
651
|
-
deletedAt
|
|
652
|
-
visible
|
|
653
|
-
deleted
|
|
654
|
-
showNsfw
|
|
655
|
-
wallets {
|
|
656
|
-
userId
|
|
657
|
-
address
|
|
658
|
-
walletName
|
|
659
|
-
blockchain
|
|
660
|
-
chainId
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
`;
|
|
665
|
-
/**
|
|
666
|
-
* __useFetchProfileQuery__
|
|
667
|
-
*
|
|
668
|
-
* To run a query within a React component, call `useFetchProfileQuery` and pass it any options that fit your needs.
|
|
669
|
-
* When your component renders, `useFetchProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
670
|
-
* you can use to render your UI.
|
|
671
|
-
*
|
|
672
|
-
* @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;
|
|
673
|
-
*
|
|
674
|
-
* @example
|
|
675
|
-
* const { data, loading, error } = useFetchProfileQuery({
|
|
676
|
-
* variables: {
|
|
677
|
-
* userId: // value for 'userId'
|
|
678
|
-
* },
|
|
679
|
-
* });
|
|
680
|
-
*/
|
|
681
|
-
function useFetchProfileQuery(baseOptions) {
|
|
682
|
-
return Apollo.useQuery(exports.FetchProfileDocument, baseOptions);
|
|
683
|
-
}
|
|
684
|
-
exports.useFetchProfileQuery = useFetchProfileQuery;
|
|
685
|
-
function useFetchProfileLazyQuery(baseOptions) {
|
|
686
|
-
return Apollo.useLazyQuery(exports.FetchProfileDocument, baseOptions);
|
|
687
|
-
}
|
|
688
|
-
exports.useFetchProfileLazyQuery = useFetchProfileLazyQuery;
|
|
689
|
-
exports.FetchUserWalletsDocument = (0, client_1.gql) `
|
|
690
|
-
query FetchUserWallets($userId: ID!) {
|
|
691
|
-
fetchUserWallets(userId: $userId) {
|
|
692
|
-
userId
|
|
693
|
-
address
|
|
694
|
-
walletName
|
|
695
|
-
blockchain
|
|
696
|
-
chainId
|
|
697
|
-
mainWallet
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
`;
|
|
701
|
-
/**
|
|
702
|
-
* __useFetchUserWalletsQuery__
|
|
703
|
-
*
|
|
704
|
-
* To run a query within a React component, call `useFetchUserWalletsQuery` and pass it any options that fit your needs.
|
|
705
|
-
* When your component renders, `useFetchUserWalletsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
706
|
-
* you can use to render your UI.
|
|
707
|
-
*
|
|
708
|
-
* @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;
|
|
709
|
-
*
|
|
710
|
-
* @example
|
|
711
|
-
* const { data, loading, error } = useFetchUserWalletsQuery({
|
|
712
|
-
* variables: {
|
|
713
|
-
* userId: // value for 'userId'
|
|
714
|
-
* },
|
|
715
|
-
* });
|
|
716
|
-
*/
|
|
717
|
-
function useFetchUserWalletsQuery(baseOptions) {
|
|
718
|
-
return Apollo.useQuery(exports.FetchUserWalletsDocument, baseOptions);
|
|
719
|
-
}
|
|
720
|
-
exports.useFetchUserWalletsQuery = useFetchUserWalletsQuery;
|
|
721
|
-
function useFetchUserWalletsLazyQuery(baseOptions) {
|
|
722
|
-
return Apollo.useLazyQuery(exports.FetchUserWalletsDocument, baseOptions);
|
|
723
|
-
}
|
|
724
|
-
exports.useFetchUserWalletsLazyQuery = useFetchUserWalletsLazyQuery;
|
|
725
|
-
exports.GetMyInviteCodesDocument = (0, client_1.gql) `
|
|
726
|
-
query GetMyInviteCodes {
|
|
727
|
-
getMyInviteCodes {
|
|
728
|
-
inviteCode
|
|
729
|
-
inviteeId
|
|
730
|
-
isUsed
|
|
731
|
-
usedAt
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
`;
|
|
735
|
-
/**
|
|
736
|
-
* __useGetMyInviteCodesQuery__
|
|
737
|
-
*
|
|
738
|
-
* To run a query within a React component, call `useGetMyInviteCodesQuery` and pass it any options that fit your needs.
|
|
739
|
-
* When your component renders, `useGetMyInviteCodesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
740
|
-
* you can use to render your UI.
|
|
741
|
-
*
|
|
742
|
-
* @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;
|
|
743
|
-
*
|
|
744
|
-
* @example
|
|
745
|
-
* const { data, loading, error } = useGetMyInviteCodesQuery({
|
|
746
|
-
* variables: {
|
|
747
|
-
* },
|
|
748
|
-
* });
|
|
749
|
-
*/
|
|
750
|
-
function useGetMyInviteCodesQuery(baseOptions) {
|
|
751
|
-
return Apollo.useQuery(exports.GetMyInviteCodesDocument, baseOptions);
|
|
752
|
-
}
|
|
753
|
-
exports.useGetMyInviteCodesQuery = useGetMyInviteCodesQuery;
|
|
754
|
-
function useGetMyInviteCodesLazyQuery(baseOptions) {
|
|
755
|
-
return Apollo.useLazyQuery(exports.GetMyInviteCodesDocument, baseOptions);
|
|
756
|
-
}
|
|
757
|
-
exports.useGetMyInviteCodesLazyQuery = useGetMyInviteCodesLazyQuery;
|