@ludo.ninja/api 1.0.21 → 1.0.23
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/graphql_tools/__generated__/schema.d.ts +64 -39
- package/build/graphql_tools/__generated__/schema.js +55 -43
- package/package.json +1 -1
- package/src/documents/server-assets/queries/useFetchAsset/FetchAsset.graphql +1 -0
- package/src/documents/server-assets/queries/useFetchAssetByBlockchain/FetchAssetByBlockchain.graphql +1 -0
- package/src/documents/server-identities/mutations/useSignInElrond/SignInElrond.graphql +2 -2
- package/src/documents/server-identities/mutations/useSignInFlow/SignInFlow.graphql +2 -2
- package/src/documents/server-identities/mutations/useSignInMetamask/SignInMetamask.graphql +2 -2
- package/src/documents/server-identities/mutations/useSignInSolana/SignInSolana.graphql +2 -2
- package/src/documents/server-identities/mutations/useSignInTezos/SignInTezos.graphql +2 -2
- package/src/graphql_tools/__generated__/schema.graphql +10 -9
- package/src/graphql_tools/__generated__/schema.ts +84 -57
- package/src/graphql_tools/schemas/asset/type/asset.graphqls +1 -0
- package/src/graphql_tools/schemas/assets/asset/type/asset.graphqls +1 -0
- package/src/graphql_tools/schemas/identities/identity/mutation.graphqls +9 -9
- package/tsconfig.tsbuildinfo +1 -1
- package/src/documents/server-identities/mutations/SignInMetamask.graphql +0 -9
|
@@ -34,6 +34,7 @@ export type IAsset = {
|
|
|
34
34
|
blockTimestamp?: Maybe<Scalars['Long']>;
|
|
35
35
|
blockchain?: Maybe<Scalars['String']>;
|
|
36
36
|
blurred?: Maybe<Scalars['Boolean']>;
|
|
37
|
+
category?: Maybe<Scalars['String']>;
|
|
37
38
|
chainId?: Maybe<Scalars['String']>;
|
|
38
39
|
collectionId?: Maybe<Scalars['String']>;
|
|
39
40
|
collectionMedias?: Maybe<Array<Maybe<IMedia>>>;
|
|
@@ -1219,6 +1220,7 @@ export type IMutationSignInBitcoinArgs = {
|
|
|
1219
1220
|
signature: Scalars['String'];
|
|
1220
1221
|
address: Scalars['String'];
|
|
1221
1222
|
restore?: Maybe<Scalars['Boolean']>;
|
|
1223
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
1222
1224
|
};
|
|
1223
1225
|
|
|
1224
1226
|
|
|
@@ -1226,6 +1228,7 @@ export type IMutationSignInElrondArgs = {
|
|
|
1226
1228
|
signature: Scalars['String'];
|
|
1227
1229
|
address: Scalars['String'];
|
|
1228
1230
|
restore?: Maybe<Scalars['Boolean']>;
|
|
1231
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
1229
1232
|
};
|
|
1230
1233
|
|
|
1231
1234
|
|
|
@@ -1233,6 +1236,7 @@ export type IMutationSignInFlowArgs = {
|
|
|
1233
1236
|
signature: Scalars['String'];
|
|
1234
1237
|
address: Scalars['String'];
|
|
1235
1238
|
restore?: Maybe<Scalars['Boolean']>;
|
|
1239
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
1236
1240
|
};
|
|
1237
1241
|
|
|
1238
1242
|
|
|
@@ -1241,6 +1245,7 @@ export type IMutationSignInMetamaskArgs = {
|
|
|
1241
1245
|
address: Scalars['String'];
|
|
1242
1246
|
chainId?: Maybe<Scalars['String']>;
|
|
1243
1247
|
restore?: Maybe<Scalars['Boolean']>;
|
|
1248
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
1244
1249
|
};
|
|
1245
1250
|
|
|
1246
1251
|
|
|
@@ -1248,6 +1253,7 @@ export type IMutationSignInNearArgs = {
|
|
|
1248
1253
|
signature: Scalars['String'];
|
|
1249
1254
|
address: Scalars['String'];
|
|
1250
1255
|
restore?: Maybe<Scalars['Boolean']>;
|
|
1256
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
1251
1257
|
};
|
|
1252
1258
|
|
|
1253
1259
|
|
|
@@ -1255,6 +1261,7 @@ export type IMutationSignInSolanaArgs = {
|
|
|
1255
1261
|
signature: Scalars['String'];
|
|
1256
1262
|
pubkey: Scalars['String'];
|
|
1257
1263
|
restore?: Maybe<Scalars['Boolean']>;
|
|
1264
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
1258
1265
|
};
|
|
1259
1266
|
|
|
1260
1267
|
|
|
@@ -1262,6 +1269,7 @@ export type IMutationSignInTerraArgs = {
|
|
|
1262
1269
|
signature: Scalars['String'];
|
|
1263
1270
|
address: Scalars['String'];
|
|
1264
1271
|
restore?: Maybe<Scalars['Boolean']>;
|
|
1272
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
1265
1273
|
};
|
|
1266
1274
|
|
|
1267
1275
|
|
|
@@ -1269,6 +1277,7 @@ export type IMutationSignInTezosArgs = {
|
|
|
1269
1277
|
signature: Scalars['String'];
|
|
1270
1278
|
pubkey: Scalars['String'];
|
|
1271
1279
|
restore?: Maybe<Scalars['Boolean']>;
|
|
1280
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
1272
1281
|
};
|
|
1273
1282
|
|
|
1274
1283
|
|
|
@@ -1276,6 +1285,7 @@ export type IMutationSignInWalletConnectArgs = {
|
|
|
1276
1285
|
signature: Scalars['String'];
|
|
1277
1286
|
address: Scalars['String'];
|
|
1278
1287
|
restore?: Maybe<Scalars['Boolean']>;
|
|
1288
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
1279
1289
|
};
|
|
1280
1290
|
|
|
1281
1291
|
|
|
@@ -2328,7 +2338,7 @@ export type IFetchAssetQueryVariables = Exact<{
|
|
|
2328
2338
|
|
|
2329
2339
|
|
|
2330
2340
|
export type IFetchAssetQuery = { fetchAsset: (
|
|
2331
|
-
Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred'>
|
|
2341
|
+
Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred' | 'category'>
|
|
2332
2342
|
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'previewUrl'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
2333
2343
|
) };
|
|
2334
2344
|
|
|
@@ -2341,7 +2351,7 @@ export type IFetchAssetByBlockchainQueryVariables = Exact<{
|
|
|
2341
2351
|
|
|
2342
2352
|
|
|
2343
2353
|
export type IFetchAssetByBlockchainQuery = { fetchAssetByBlockchain: (
|
|
2344
|
-
Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred'>
|
|
2354
|
+
Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred' | 'category'>
|
|
2345
2355
|
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'previewUrl' | 'sizeRatio' | 'fileSize'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
2346
2356
|
) };
|
|
2347
2357
|
|
|
@@ -2771,15 +2781,6 @@ export type IFetchUserGalleriesV2Query = { fetchUserGalleriesV2: (
|
|
|
2771
2781
|
)>>> }
|
|
2772
2782
|
) };
|
|
2773
2783
|
|
|
2774
|
-
export type ISignInMetamaskMutationVariables = Exact<{
|
|
2775
|
-
signature: Scalars['String'];
|
|
2776
|
-
address: Scalars['String'];
|
|
2777
|
-
chainId: Scalars['String'];
|
|
2778
|
-
}>;
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
export type ISignInMetamaskMutation = { signInMetamask: Pick<IIdentity, 'userId' | 'wallets' | 'authToken' | 'refreshToken' | 'newUser'> };
|
|
2782
|
-
|
|
2783
2784
|
export type IAddWalletElrondMutationVariables = Exact<{
|
|
2784
2785
|
signature: Scalars['String'];
|
|
2785
2786
|
address: Scalars['String'];
|
|
@@ -2852,6 +2853,7 @@ export type IRevokeTokenMutation = Pick<IMutation, 'revokeToken'>;
|
|
|
2852
2853
|
export type ISignInElrondMutationVariables = Exact<{
|
|
2853
2854
|
signature: Scalars['String'];
|
|
2854
2855
|
address: Scalars['String'];
|
|
2856
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
2855
2857
|
}>;
|
|
2856
2858
|
|
|
2857
2859
|
|
|
@@ -2860,14 +2862,26 @@ export type ISignInElrondMutation = { signInElrond: Pick<IIdentity, 'userId' | '
|
|
|
2860
2862
|
export type ISignInFlowMutationVariables = Exact<{
|
|
2861
2863
|
signature: Scalars['String'];
|
|
2862
2864
|
address: Scalars['String'];
|
|
2865
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
2863
2866
|
}>;
|
|
2864
2867
|
|
|
2865
2868
|
|
|
2866
2869
|
export type ISignInFlowMutation = { signInFlow: Pick<IIdentity, 'userId' | 'wallets' | 'authToken' | 'refreshToken' | 'newUser'> };
|
|
2867
2870
|
|
|
2871
|
+
export type ISignInMetamaskMutationVariables = Exact<{
|
|
2872
|
+
signature: Scalars['String'];
|
|
2873
|
+
address: Scalars['String'];
|
|
2874
|
+
chainId: Scalars['String'];
|
|
2875
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
2876
|
+
}>;
|
|
2877
|
+
|
|
2878
|
+
|
|
2879
|
+
export type ISignInMetamaskMutation = { signInMetamask: Pick<IIdentity, 'userId' | 'wallets' | 'authToken' | 'refreshToken' | 'newUser'> };
|
|
2880
|
+
|
|
2868
2881
|
export type ISignInSolanaMutationVariables = Exact<{
|
|
2869
2882
|
signature: Scalars['String'];
|
|
2870
2883
|
pubkey: Scalars['String'];
|
|
2884
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
2871
2885
|
}>;
|
|
2872
2886
|
|
|
2873
2887
|
|
|
@@ -2876,6 +2890,7 @@ export type ISignInSolanaMutation = { signInSolana: Pick<IIdentity, 'userId' | '
|
|
|
2876
2890
|
export type ISignInTezosMutationVariables = Exact<{
|
|
2877
2891
|
signature: Scalars['String'];
|
|
2878
2892
|
pubkey: Scalars['String'];
|
|
2893
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
2879
2894
|
}>;
|
|
2880
2895
|
|
|
2881
2896
|
|
|
@@ -3305,6 +3320,7 @@ export const FetchAssetDocument = gql`
|
|
|
3305
3320
|
creatorsProfiles {
|
|
3306
3321
|
username
|
|
3307
3322
|
}
|
|
3323
|
+
category
|
|
3308
3324
|
}
|
|
3309
3325
|
}
|
|
3310
3326
|
`;
|
|
@@ -3419,6 +3435,7 @@ export const FetchAssetByBlockchainDocument = gql`
|
|
|
3419
3435
|
creatorsProfiles {
|
|
3420
3436
|
username
|
|
3421
3437
|
}
|
|
3438
|
+
category
|
|
3422
3439
|
}
|
|
3423
3440
|
}
|
|
3424
3441
|
`;
|
|
@@ -5382,44 +5399,6 @@ export function useFetchUserGalleriesV2LazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
5382
5399
|
export type FetchUserGalleriesV2QueryHookResult = ReturnType<typeof useFetchUserGalleriesV2Query>;
|
|
5383
5400
|
export type FetchUserGalleriesV2LazyQueryHookResult = ReturnType<typeof useFetchUserGalleriesV2LazyQuery>;
|
|
5384
5401
|
export type FetchUserGalleriesV2QueryResult = Apollo.QueryResult<IFetchUserGalleriesV2Query, IFetchUserGalleriesV2QueryVariables>;
|
|
5385
|
-
export const SignInMetamaskDocument = gql`
|
|
5386
|
-
mutation SignInMetamask($signature: String!, $address: String!, $chainId: String!) {
|
|
5387
|
-
signInMetamask(signature: $signature, address: $address, chainId: $chainId) {
|
|
5388
|
-
userId
|
|
5389
|
-
wallets
|
|
5390
|
-
authToken
|
|
5391
|
-
refreshToken
|
|
5392
|
-
newUser
|
|
5393
|
-
}
|
|
5394
|
-
}
|
|
5395
|
-
`;
|
|
5396
|
-
export type ISignInMetamaskMutationFn = Apollo.MutationFunction<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>;
|
|
5397
|
-
|
|
5398
|
-
/**
|
|
5399
|
-
* __useSignInMetamaskMutation__
|
|
5400
|
-
*
|
|
5401
|
-
* To run a mutation, you first call `useSignInMetamaskMutation` within a React component and pass it any options that fit your needs.
|
|
5402
|
-
* When your component renders, `useSignInMetamaskMutation` returns a tuple that includes:
|
|
5403
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
5404
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
5405
|
-
*
|
|
5406
|
-
* @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;
|
|
5407
|
-
*
|
|
5408
|
-
* @example
|
|
5409
|
-
* const [signInMetamaskMutation, { data, loading, error }] = useSignInMetamaskMutation({
|
|
5410
|
-
* variables: {
|
|
5411
|
-
* signature: // value for 'signature'
|
|
5412
|
-
* address: // value for 'address'
|
|
5413
|
-
* chainId: // value for 'chainId'
|
|
5414
|
-
* },
|
|
5415
|
-
* });
|
|
5416
|
-
*/
|
|
5417
|
-
export function useSignInMetamaskMutation(baseOptions?: Apollo.MutationHookOptions<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>) {
|
|
5418
|
-
return Apollo.useMutation<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>(SignInMetamaskDocument, baseOptions);
|
|
5419
|
-
}
|
|
5420
|
-
export type SignInMetamaskMutationHookResult = ReturnType<typeof useSignInMetamaskMutation>;
|
|
5421
|
-
export type SignInMetamaskMutationResult = Apollo.MutationResult<ISignInMetamaskMutation>;
|
|
5422
|
-
export type SignInMetamaskMutationOptions = Apollo.BaseMutationOptions<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>;
|
|
5423
5402
|
export const AddWalletElrondDocument = gql`
|
|
5424
5403
|
mutation AddWalletElrond($signature: String!, $address: String!) {
|
|
5425
5404
|
addWalletElrond(signature: $signature, address: $address)
|
|
@@ -5708,8 +5687,8 @@ export type RevokeTokenMutationHookResult = ReturnType<typeof useRevokeTokenMuta
|
|
|
5708
5687
|
export type RevokeTokenMutationResult = Apollo.MutationResult<IRevokeTokenMutation>;
|
|
5709
5688
|
export type RevokeTokenMutationOptions = Apollo.BaseMutationOptions<IRevokeTokenMutation, IRevokeTokenMutationVariables>;
|
|
5710
5689
|
export const SignInElrondDocument = gql`
|
|
5711
|
-
mutation SignInElrond($signature: String!, $address: String
|
|
5712
|
-
signInElrond(signature: $signature, address: $address) {
|
|
5690
|
+
mutation SignInElrond($signature: String!, $address: String!, $inviteCode: String) {
|
|
5691
|
+
signInElrond(signature: $signature, address: $address, inviteCode: $inviteCode) {
|
|
5713
5692
|
userId
|
|
5714
5693
|
wallets
|
|
5715
5694
|
authToken
|
|
@@ -5735,6 +5714,7 @@ export type ISignInElrondMutationFn = Apollo.MutationFunction<ISignInElrondMutat
|
|
|
5735
5714
|
* variables: {
|
|
5736
5715
|
* signature: // value for 'signature'
|
|
5737
5716
|
* address: // value for 'address'
|
|
5717
|
+
* inviteCode: // value for 'inviteCode'
|
|
5738
5718
|
* },
|
|
5739
5719
|
* });
|
|
5740
5720
|
*/
|
|
@@ -5745,8 +5725,8 @@ export type SignInElrondMutationHookResult = ReturnType<typeof useSignInElrondMu
|
|
|
5745
5725
|
export type SignInElrondMutationResult = Apollo.MutationResult<ISignInElrondMutation>;
|
|
5746
5726
|
export type SignInElrondMutationOptions = Apollo.BaseMutationOptions<ISignInElrondMutation, ISignInElrondMutationVariables>;
|
|
5747
5727
|
export const SignInFlowDocument = gql`
|
|
5748
|
-
mutation SignInFlow($signature: String!, $address: String
|
|
5749
|
-
signInFlow(signature: $signature, address: $address) {
|
|
5728
|
+
mutation SignInFlow($signature: String!, $address: String!, $inviteCode: String) {
|
|
5729
|
+
signInFlow(signature: $signature, address: $address, inviteCode: $inviteCode) {
|
|
5750
5730
|
userId
|
|
5751
5731
|
wallets
|
|
5752
5732
|
authToken
|
|
@@ -5772,6 +5752,7 @@ export type ISignInFlowMutationFn = Apollo.MutationFunction<ISignInFlowMutation,
|
|
|
5772
5752
|
* variables: {
|
|
5773
5753
|
* signature: // value for 'signature'
|
|
5774
5754
|
* address: // value for 'address'
|
|
5755
|
+
* inviteCode: // value for 'inviteCode'
|
|
5775
5756
|
* },
|
|
5776
5757
|
* });
|
|
5777
5758
|
*/
|
|
@@ -5781,9 +5762,53 @@ export function useSignInFlowMutation(baseOptions?: Apollo.MutationHookOptions<I
|
|
|
5781
5762
|
export type SignInFlowMutationHookResult = ReturnType<typeof useSignInFlowMutation>;
|
|
5782
5763
|
export type SignInFlowMutationResult = Apollo.MutationResult<ISignInFlowMutation>;
|
|
5783
5764
|
export type SignInFlowMutationOptions = Apollo.BaseMutationOptions<ISignInFlowMutation, ISignInFlowMutationVariables>;
|
|
5765
|
+
export const SignInMetamaskDocument = gql`
|
|
5766
|
+
mutation SignInMetamask($signature: String!, $address: String!, $chainId: String!, $inviteCode: String) {
|
|
5767
|
+
signInMetamask(
|
|
5768
|
+
signature: $signature
|
|
5769
|
+
address: $address
|
|
5770
|
+
chainId: $chainId
|
|
5771
|
+
inviteCode: $inviteCode
|
|
5772
|
+
) {
|
|
5773
|
+
userId
|
|
5774
|
+
wallets
|
|
5775
|
+
authToken
|
|
5776
|
+
refreshToken
|
|
5777
|
+
newUser
|
|
5778
|
+
}
|
|
5779
|
+
}
|
|
5780
|
+
`;
|
|
5781
|
+
export type ISignInMetamaskMutationFn = Apollo.MutationFunction<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>;
|
|
5782
|
+
|
|
5783
|
+
/**
|
|
5784
|
+
* __useSignInMetamaskMutation__
|
|
5785
|
+
*
|
|
5786
|
+
* To run a mutation, you first call `useSignInMetamaskMutation` within a React component and pass it any options that fit your needs.
|
|
5787
|
+
* When your component renders, `useSignInMetamaskMutation` returns a tuple that includes:
|
|
5788
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
5789
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
5790
|
+
*
|
|
5791
|
+
* @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;
|
|
5792
|
+
*
|
|
5793
|
+
* @example
|
|
5794
|
+
* const [signInMetamaskMutation, { data, loading, error }] = useSignInMetamaskMutation({
|
|
5795
|
+
* variables: {
|
|
5796
|
+
* signature: // value for 'signature'
|
|
5797
|
+
* address: // value for 'address'
|
|
5798
|
+
* chainId: // value for 'chainId'
|
|
5799
|
+
* inviteCode: // value for 'inviteCode'
|
|
5800
|
+
* },
|
|
5801
|
+
* });
|
|
5802
|
+
*/
|
|
5803
|
+
export function useSignInMetamaskMutation(baseOptions?: Apollo.MutationHookOptions<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>) {
|
|
5804
|
+
return Apollo.useMutation<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>(SignInMetamaskDocument, baseOptions);
|
|
5805
|
+
}
|
|
5806
|
+
export type SignInMetamaskMutationHookResult = ReturnType<typeof useSignInMetamaskMutation>;
|
|
5807
|
+
export type SignInMetamaskMutationResult = Apollo.MutationResult<ISignInMetamaskMutation>;
|
|
5808
|
+
export type SignInMetamaskMutationOptions = Apollo.BaseMutationOptions<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>;
|
|
5784
5809
|
export const SignInSolanaDocument = gql`
|
|
5785
|
-
mutation SignInSolana($signature: String!, $pubkey: String
|
|
5786
|
-
signInSolana(signature: $signature, pubkey: $pubkey) {
|
|
5810
|
+
mutation SignInSolana($signature: String!, $pubkey: String!, $inviteCode: String) {
|
|
5811
|
+
signInSolana(signature: $signature, pubkey: $pubkey, inviteCode: $inviteCode) {
|
|
5787
5812
|
userId
|
|
5788
5813
|
wallets
|
|
5789
5814
|
authToken
|
|
@@ -5809,6 +5834,7 @@ export type ISignInSolanaMutationFn = Apollo.MutationFunction<ISignInSolanaMutat
|
|
|
5809
5834
|
* variables: {
|
|
5810
5835
|
* signature: // value for 'signature'
|
|
5811
5836
|
* pubkey: // value for 'pubkey'
|
|
5837
|
+
* inviteCode: // value for 'inviteCode'
|
|
5812
5838
|
* },
|
|
5813
5839
|
* });
|
|
5814
5840
|
*/
|
|
@@ -5819,8 +5845,8 @@ export type SignInSolanaMutationHookResult = ReturnType<typeof useSignInSolanaMu
|
|
|
5819
5845
|
export type SignInSolanaMutationResult = Apollo.MutationResult<ISignInSolanaMutation>;
|
|
5820
5846
|
export type SignInSolanaMutationOptions = Apollo.BaseMutationOptions<ISignInSolanaMutation, ISignInSolanaMutationVariables>;
|
|
5821
5847
|
export const SignInTezosDocument = gql`
|
|
5822
|
-
mutation SignInTezos($signature: String!, $pubkey: String
|
|
5823
|
-
signInTezos(signature: $signature, pubkey: $pubkey) {
|
|
5848
|
+
mutation SignInTezos($signature: String!, $pubkey: String!, $inviteCode: String) {
|
|
5849
|
+
signInTezos(signature: $signature, pubkey: $pubkey, inviteCode: $inviteCode) {
|
|
5824
5850
|
userId
|
|
5825
5851
|
wallets
|
|
5826
5852
|
authToken
|
|
@@ -5846,6 +5872,7 @@ export type ISignInTezosMutationFn = Apollo.MutationFunction<ISignInTezosMutatio
|
|
|
5846
5872
|
* variables: {
|
|
5847
5873
|
* signature: // value for 'signature'
|
|
5848
5874
|
* pubkey: // value for 'pubkey'
|
|
5875
|
+
* inviteCode: // value for 'inviteCode'
|
|
5849
5876
|
* },
|
|
5850
5877
|
* });
|
|
5851
5878
|
*/
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
extend type Mutation {
|
|
2
2
|
createNonce(address: String!, blockchain: String!, chainId: String): String!
|
|
3
3
|
|
|
4
|
-
signInMetamask(signature: String!, address: String!, chainId: String, restore: Boolean): Identity!
|
|
4
|
+
signInMetamask(signature: String!, address: String!, chainId: String, restore: Boolean, inviteCode: String): Identity!
|
|
5
5
|
signInAdminMetamask(signature: String!, address: String!, chainId: String): Identity!
|
|
6
|
-
signInTezos(signature: String!, pubkey: String!, restore: Boolean): Identity!
|
|
7
|
-
signInSolana(signature: String!, pubkey: String!, restore: Boolean): Identity!
|
|
8
|
-
signInElrond(signature: String!, address: String!, restore: Boolean): Identity!
|
|
9
|
-
signInTerra(signature: String!, address: String!, restore: Boolean): Identity!
|
|
10
|
-
signInWalletConnect(signature: String!, address: String!, restore: Boolean): Identity!
|
|
11
|
-
signInFlow(signature: String!, address: String!, restore: Boolean): Identity!
|
|
12
|
-
signInBitcoin(signature: String!, address: String!, restore: Boolean): Identity!
|
|
13
|
-
signInNear(signature: String!, address: String!, restore: Boolean): Identity!
|
|
6
|
+
signInTezos(signature: String!, pubkey: String!, restore: Boolean, inviteCode: String): Identity!
|
|
7
|
+
signInSolana(signature: String!, pubkey: String!, restore: Boolean, inviteCode: String): Identity!
|
|
8
|
+
signInElrond(signature: String!, address: String!, restore: Boolean, inviteCode: String): Identity!
|
|
9
|
+
signInTerra(signature: String!, address: String!, restore: Boolean, inviteCode: String): Identity!
|
|
10
|
+
signInWalletConnect(signature: String!, address: String!, restore: Boolean, inviteCode: String): Identity!
|
|
11
|
+
signInFlow(signature: String!, address: String!, restore: Boolean, inviteCode: String): Identity!
|
|
12
|
+
signInBitcoin(signature: String!, address: String!, restore: Boolean, inviteCode: String): Identity!
|
|
13
|
+
signInNear(signature: String!, address: String!, restore: Boolean, inviteCode: String): Identity!
|
|
14
14
|
|
|
15
15
|
addWalletMetamask(signature: String!, address: String!, chainId: String): Boolean!
|
|
16
16
|
addWalletTezos(signature: String!, pubkey: String!): Boolean!
|