@ludo.ninja/api 3.0.92 → 3.0.94
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__/identityHost/schema.d.ts +69 -54
- package/build/graphql_tools/__generated__/identityHost/schema.js +36 -49
- package/build/index.d.ts +15 -10
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/identityHost/schema.ts +85 -79
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -127,6 +127,12 @@ export declare enum ILoginType {
|
|
|
127
127
|
Email = "EMAIL",
|
|
128
128
|
PhoneNumber = "PHONE_NUMBER"
|
|
129
129
|
}
|
|
130
|
+
export type ILudoNft = {
|
|
131
|
+
blockchain: Scalars['String'];
|
|
132
|
+
address: Scalars['String'];
|
|
133
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
134
|
+
tierId: Scalars['String'];
|
|
135
|
+
};
|
|
130
136
|
/** noinspection SpellCheckingInspection */
|
|
131
137
|
export type IMultiversxAudit = {
|
|
132
138
|
delegated?: Maybe<Scalars['Float']>;
|
|
@@ -147,7 +153,6 @@ export type IMutation = {
|
|
|
147
153
|
signInElrond: IIdentity;
|
|
148
154
|
signInFlow: IIdentity;
|
|
149
155
|
signInTon: IIdentity;
|
|
150
|
-
signInTonV2: IIdentity;
|
|
151
156
|
signInEthereum: IIdentity;
|
|
152
157
|
signInEthereumWeb3Auth: IIdentity;
|
|
153
158
|
addWalletMetamask: Scalars['Boolean'];
|
|
@@ -156,7 +161,6 @@ export type IMutation = {
|
|
|
156
161
|
addWalletElrond: Scalars['Boolean'];
|
|
157
162
|
addWalletFlow: Scalars['Boolean'];
|
|
158
163
|
addWalletTon: Scalars['Boolean'];
|
|
159
|
-
addWalletTonV2: Scalars['Boolean'];
|
|
160
164
|
removeWallet: Scalars['Boolean'];
|
|
161
165
|
setMainWallet: Scalars['Boolean'];
|
|
162
166
|
generateNewInviteCodes: Array<IUserInviteCode>;
|
|
@@ -212,11 +216,6 @@ export type IMutationSignInTonArgs = {
|
|
|
212
216
|
restore?: Maybe<Scalars['Boolean']>;
|
|
213
217
|
loginSource?: Maybe<ILoginSource>;
|
|
214
218
|
};
|
|
215
|
-
export type IMutationSignInTonV2Args = {
|
|
216
|
-
address: Scalars['String'];
|
|
217
|
-
restore?: Maybe<Scalars['Boolean']>;
|
|
218
|
-
loginSource?: Maybe<ILoginSource>;
|
|
219
|
-
};
|
|
220
219
|
export type IMutationSignInEthereumArgs = {
|
|
221
220
|
signInData: IEthereumSignInData;
|
|
222
221
|
loginSource?: Maybe<ILoginSource>;
|
|
@@ -251,9 +250,6 @@ export type IMutationAddWalletFlowArgs = {
|
|
|
251
250
|
export type IMutationAddWalletTonArgs = {
|
|
252
251
|
request: ICheckTonProofRequest;
|
|
253
252
|
};
|
|
254
|
-
export type IMutationAddWalletTonV2Args = {
|
|
255
|
-
address: Scalars['String'];
|
|
256
|
-
};
|
|
257
253
|
export type IMutationRemoveWalletArgs = {
|
|
258
254
|
blockchain: Scalars['String'];
|
|
259
255
|
address: Scalars['String'];
|
|
@@ -349,8 +345,11 @@ export type IProof = {
|
|
|
349
345
|
export type IQuery = {
|
|
350
346
|
getDummy: Scalars['String'];
|
|
351
347
|
fetchUserWallets: Array<Maybe<IWallet>>;
|
|
348
|
+
fetchExtendedUserWallets: Array<Maybe<IWallet>>;
|
|
352
349
|
fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
|
|
353
350
|
fetchAggregatedMultiversxAudit?: Maybe<IMultiversxAudit>;
|
|
351
|
+
fetchIsLudoNftMintable: Scalars['Boolean'];
|
|
352
|
+
fetchLudoNftForWallet?: Maybe<ILudoNft>;
|
|
354
353
|
fetchInviteCode: IInviteCode;
|
|
355
354
|
fetchMyProfileV2: IMyProfileV2;
|
|
356
355
|
fetchProfile: IProfile;
|
|
@@ -360,12 +359,23 @@ export type IQuery = {
|
|
|
360
359
|
export type IQueryFetchUserWalletsArgs = {
|
|
361
360
|
userId: Scalars['ID'];
|
|
362
361
|
};
|
|
362
|
+
export type IQueryFetchExtendedUserWalletsArgs = {
|
|
363
|
+
userId: Scalars['ID'];
|
|
364
|
+
};
|
|
363
365
|
export type IQueryFetchMultiversxAuditArgs = {
|
|
364
366
|
wallet: Scalars['String'];
|
|
365
367
|
};
|
|
366
368
|
export type IQueryFetchAggregatedMultiversxAuditArgs = {
|
|
367
369
|
userId: Scalars['ID'];
|
|
368
370
|
};
|
|
371
|
+
export type IQueryFetchIsLudoNftMintableArgs = {
|
|
372
|
+
blockchain: Scalars['String'];
|
|
373
|
+
address: Scalars['String'];
|
|
374
|
+
};
|
|
375
|
+
export type IQueryFetchLudoNftForWalletArgs = {
|
|
376
|
+
blockchain: Scalars['String'];
|
|
377
|
+
address: Scalars['String'];
|
|
378
|
+
};
|
|
369
379
|
export type IQueryFetchInviteCodeArgs = {
|
|
370
380
|
inviteCode: Scalars['String'];
|
|
371
381
|
};
|
|
@@ -476,6 +486,7 @@ export type IResolversTypes = {
|
|
|
476
486
|
LoginSource: ILoginSource;
|
|
477
487
|
LoginType: ILoginType;
|
|
478
488
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
489
|
+
LudoNft: ResolverTypeWrapper<ILudoNft>;
|
|
479
490
|
MultiversxAudit: ResolverTypeWrapper<IMultiversxAudit>;
|
|
480
491
|
Mutation: ResolverTypeWrapper<{}>;
|
|
481
492
|
MyProfileV2: ResolverTypeWrapper<IMyProfileV2>;
|
|
@@ -512,6 +523,7 @@ export type IResolversParentTypes = {
|
|
|
512
523
|
InviteCodeUser: IInviteCodeUser;
|
|
513
524
|
JSON: Scalars['JSON'];
|
|
514
525
|
Long: Scalars['Long'];
|
|
526
|
+
LudoNft: ILudoNft;
|
|
515
527
|
MultiversxAudit: IMultiversxAudit;
|
|
516
528
|
Mutation: {};
|
|
517
529
|
MyProfileV2: IMyProfileV2;
|
|
@@ -611,6 +623,13 @@ export interface IJsonScalarConfig extends GraphQLScalarTypeConfig<IResolversTyp
|
|
|
611
623
|
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
612
624
|
name: 'Long';
|
|
613
625
|
}
|
|
626
|
+
export type ILudoNftResolvers<ContextType = any, ParentType extends IResolversParentTypes['LudoNft'] = IResolversParentTypes['LudoNft']> = {
|
|
627
|
+
blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
628
|
+
address?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
629
|
+
tokenId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
630
|
+
tierId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
631
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
632
|
+
};
|
|
614
633
|
export type IMultiversxAuditResolvers<ContextType = any, ParentType extends IResolversParentTypes['MultiversxAudit'] = IResolversParentTypes['MultiversxAudit']> = {
|
|
615
634
|
delegated?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
616
635
|
interests?: Resolver<Maybe<Array<IResolversTypes['AuditInterest']>>, ParentType, ContextType>;
|
|
@@ -631,7 +650,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
631
650
|
signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
|
|
632
651
|
signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
|
|
633
652
|
signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
|
|
634
|
-
signInTonV2?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonV2Args, 'address'>>;
|
|
635
653
|
signInEthereum?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumArgs, 'signInData'>>;
|
|
636
654
|
signInEthereumWeb3Auth?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumWeb3AuthArgs, 'signInData' | 'loginType'>>;
|
|
637
655
|
addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
@@ -640,7 +658,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
640
658
|
addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
|
|
641
659
|
addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
|
|
642
660
|
addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'request'>>;
|
|
643
|
-
addWalletTonV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonV2Args, 'address'>>;
|
|
644
661
|
removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
|
|
645
662
|
setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
|
|
646
663
|
generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
|
|
@@ -711,8 +728,11 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
711
728
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
712
729
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
713
730
|
fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
|
|
731
|
+
fetchExtendedUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchExtendedUserWalletsArgs, 'userId'>>;
|
|
714
732
|
fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
|
|
715
733
|
fetchAggregatedMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchAggregatedMultiversxAuditArgs, 'userId'>>;
|
|
734
|
+
fetchIsLudoNftMintable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryFetchIsLudoNftMintableArgs, 'blockchain' | 'address'>>;
|
|
735
|
+
fetchLudoNftForWallet?: Resolver<Maybe<IResolversTypes['LudoNft']>, ParentType, ContextType, RequireFields<IQueryFetchLudoNftForWalletArgs, 'blockchain' | 'address'>>;
|
|
716
736
|
fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
|
|
717
737
|
fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
|
|
718
738
|
fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
|
|
@@ -766,6 +786,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
766
786
|
InviteCodeUser?: IInviteCodeUserResolvers<ContextType>;
|
|
767
787
|
JSON?: GraphQLScalarType;
|
|
768
788
|
Long?: GraphQLScalarType;
|
|
789
|
+
LudoNft?: ILudoNftResolvers<ContextType>;
|
|
769
790
|
MultiversxAudit?: IMultiversxAuditResolvers<ContextType>;
|
|
770
791
|
Mutation?: IMutationResolvers<ContextType>;
|
|
771
792
|
MyProfileV2?: IMyProfileV2Resolvers<ContextType>;
|
|
@@ -966,19 +987,6 @@ export type ISignInTonMutation = {
|
|
|
966
987
|
};
|
|
967
988
|
});
|
|
968
989
|
};
|
|
969
|
-
export type ISignInTonV2MutationVariables = Exact<{
|
|
970
|
-
address: Scalars['String'];
|
|
971
|
-
restore?: Maybe<Scalars['Boolean']>;
|
|
972
|
-
loginSource?: Maybe<ILoginSource>;
|
|
973
|
-
}>;
|
|
974
|
-
export type ISignInTonV2Mutation = {
|
|
975
|
-
signInTonV2: (Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role' | 'reftypeId' | 'reftypeName' | 'reftypeColor'> & {
|
|
976
|
-
tokens: {
|
|
977
|
-
portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
|
|
978
|
-
extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
|
|
979
|
-
};
|
|
980
|
-
});
|
|
981
|
-
};
|
|
982
990
|
export type IUpdateProfileMutationVariables = Exact<{
|
|
983
991
|
username?: Maybe<Scalars['String']>;
|
|
984
992
|
about?: Maybe<Scalars['String']>;
|
|
@@ -1026,6 +1034,13 @@ export type IFetchMyProfileV2Query = {
|
|
|
1026
1034
|
})>>>;
|
|
1027
1035
|
});
|
|
1028
1036
|
};
|
|
1037
|
+
export type IFetchLudoNftForWalletQueryVariables = Exact<{
|
|
1038
|
+
blockchain: Scalars['String'];
|
|
1039
|
+
address: Scalars['String'];
|
|
1040
|
+
}>;
|
|
1041
|
+
export type IFetchLudoNftForWalletQuery = {
|
|
1042
|
+
fetchLudoNftForWallet?: Maybe<Pick<ILudoNft, 'blockchain' | 'address' | 'tierId'>>;
|
|
1043
|
+
};
|
|
1029
1044
|
export type IFetchProfileQueryVariables = Exact<{
|
|
1030
1045
|
userId: Scalars['ID'];
|
|
1031
1046
|
}>;
|
|
@@ -1661,35 +1676,6 @@ export declare function useSignInTonMutation(baseOptions?: Apollo.MutationHookOp
|
|
|
1661
1676
|
export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation>;
|
|
1662
1677
|
export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
|
|
1663
1678
|
export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
|
|
1664
|
-
export declare const SignInTonV2Document: Apollo.DocumentNode;
|
|
1665
|
-
export type ISignInTonV2MutationFn = Apollo.MutationFunction<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
|
|
1666
|
-
/**
|
|
1667
|
-
* __useSignInTonV2Mutation__
|
|
1668
|
-
*
|
|
1669
|
-
* To run a mutation, you first call `useSignInTonV2Mutation` within a React component and pass it any options that fit your needs.
|
|
1670
|
-
* When your component renders, `useSignInTonV2Mutation` returns a tuple that includes:
|
|
1671
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
1672
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
1673
|
-
*
|
|
1674
|
-
* @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;
|
|
1675
|
-
*
|
|
1676
|
-
* @example
|
|
1677
|
-
* const [signInTonV2Mutation, { data, loading, error }] = useSignInTonV2Mutation({
|
|
1678
|
-
* variables: {
|
|
1679
|
-
* address: // value for 'address'
|
|
1680
|
-
* restore: // value for 'restore'
|
|
1681
|
-
* loginSource: // value for 'loginSource'
|
|
1682
|
-
* },
|
|
1683
|
-
* });
|
|
1684
|
-
*/
|
|
1685
|
-
export declare function useSignInTonV2Mutation(baseOptions?: Apollo.MutationHookOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>): Apollo.MutationTuple<ISignInTonV2Mutation, Exact<{
|
|
1686
|
-
address: string;
|
|
1687
|
-
restore?: Maybe<boolean> | undefined;
|
|
1688
|
-
loginSource?: Maybe<ILoginSource> | undefined;
|
|
1689
|
-
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1690
|
-
export type SignInTonV2MutationHookResult = ReturnType<typeof useSignInTonV2Mutation>;
|
|
1691
|
-
export type SignInTonV2MutationResult = Apollo.MutationResult<ISignInTonV2Mutation>;
|
|
1692
|
-
export type SignInTonV2MutationOptions = Apollo.BaseMutationOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
|
|
1693
1679
|
export declare const UpdateProfileDocument: Apollo.DocumentNode;
|
|
1694
1680
|
export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMutation, IUpdateProfileMutationVariables>;
|
|
1695
1681
|
/**
|
|
@@ -1810,6 +1796,35 @@ export declare function useFetchMyProfileV2LazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
1810
1796
|
export type FetchMyProfileV2QueryHookResult = ReturnType<typeof useFetchMyProfileV2Query>;
|
|
1811
1797
|
export type FetchMyProfileV2LazyQueryHookResult = ReturnType<typeof useFetchMyProfileV2LazyQuery>;
|
|
1812
1798
|
export type FetchMyProfileV2QueryResult = Apollo.QueryResult<IFetchMyProfileV2Query, IFetchMyProfileV2QueryVariables>;
|
|
1799
|
+
export declare const FetchLudoNftForWalletDocument: Apollo.DocumentNode;
|
|
1800
|
+
/**
|
|
1801
|
+
* __useFetchLudoNftForWalletQuery__
|
|
1802
|
+
*
|
|
1803
|
+
* To run a query within a React component, call `useFetchLudoNftForWalletQuery` and pass it any options that fit your needs.
|
|
1804
|
+
* When your component renders, `useFetchLudoNftForWalletQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1805
|
+
* you can use to render your UI.
|
|
1806
|
+
*
|
|
1807
|
+
* @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;
|
|
1808
|
+
*
|
|
1809
|
+
* @example
|
|
1810
|
+
* const { data, loading, error } = useFetchLudoNftForWalletQuery({
|
|
1811
|
+
* variables: {
|
|
1812
|
+
* blockchain: // value for 'blockchain'
|
|
1813
|
+
* address: // value for 'address'
|
|
1814
|
+
* },
|
|
1815
|
+
* });
|
|
1816
|
+
*/
|
|
1817
|
+
export declare function useFetchLudoNftForWalletQuery(baseOptions: Apollo.QueryHookOptions<IFetchLudoNftForWalletQuery, IFetchLudoNftForWalletQueryVariables>): Apollo.QueryResult<IFetchLudoNftForWalletQuery, Exact<{
|
|
1818
|
+
blockchain: string;
|
|
1819
|
+
address: string;
|
|
1820
|
+
}>>;
|
|
1821
|
+
export declare function useFetchLudoNftForWalletLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchLudoNftForWalletQuery, IFetchLudoNftForWalletQueryVariables>): Apollo.LazyQueryResultTuple<IFetchLudoNftForWalletQuery, Exact<{
|
|
1822
|
+
blockchain: string;
|
|
1823
|
+
address: string;
|
|
1824
|
+
}>>;
|
|
1825
|
+
export type FetchLudoNftForWalletQueryHookResult = ReturnType<typeof useFetchLudoNftForWalletQuery>;
|
|
1826
|
+
export type FetchLudoNftForWalletLazyQueryHookResult = ReturnType<typeof useFetchLudoNftForWalletLazyQuery>;
|
|
1827
|
+
export type FetchLudoNftForWalletQueryResult = Apollo.QueryResult<IFetchLudoNftForWalletQuery, IFetchLudoNftForWalletQueryVariables>;
|
|
1813
1828
|
export declare const FetchProfileDocument: Apollo.DocumentNode;
|
|
1814
1829
|
/**
|
|
1815
1830
|
* __useFetchProfileQuery__
|
|
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.
|
|
26
|
+
exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = 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.useCreateTonNonceMutation = exports.CreateTonNonceDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useCreateEvmNonceMutation = exports.CreateEvmNonceDocument = exports.useAddWalletTonMutation = exports.AddWalletTonDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.useSignInEthereumWeb3AuthMutation = exports.SignInEthereumWeb3AuthDocument = exports.IRole = exports.IReftypeColor = exports.ILoginType = exports.ILoginSource = void 0;
|
|
27
|
+
exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchLudoNftForWalletLazyQuery = exports.useFetchLudoNftForWalletQuery = exports.FetchLudoNftForWalletDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useFetchAggregatedMultiversxAuditLazyQuery = exports.useFetchAggregatedMultiversxAuditQuery = exports.FetchAggregatedMultiversxAuditDocument = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
/** Please sync with ApplicationType.java */
|
|
@@ -861,53 +861,6 @@ function useSignInTonMutation(baseOptions) {
|
|
|
861
861
|
return Apollo.useMutation(exports.SignInTonDocument, baseOptions);
|
|
862
862
|
}
|
|
863
863
|
exports.useSignInTonMutation = useSignInTonMutation;
|
|
864
|
-
exports.SignInTonV2Document = (0, client_1.gql) `
|
|
865
|
-
mutation SignInTonV2($address: String!, $restore: Boolean, $loginSource: LoginSource) {
|
|
866
|
-
signInTonV2(address: $address, restore: $restore, loginSource: $loginSource) {
|
|
867
|
-
userId
|
|
868
|
-
wallets
|
|
869
|
-
tokens {
|
|
870
|
-
portalTokenPair {
|
|
871
|
-
authToken
|
|
872
|
-
refreshToken
|
|
873
|
-
}
|
|
874
|
-
extensionTokenPair {
|
|
875
|
-
authToken
|
|
876
|
-
refreshToken
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
newUser
|
|
880
|
-
inviteCode
|
|
881
|
-
role
|
|
882
|
-
reftypeId
|
|
883
|
-
reftypeName
|
|
884
|
-
reftypeColor
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
`;
|
|
888
|
-
/**
|
|
889
|
-
* __useSignInTonV2Mutation__
|
|
890
|
-
*
|
|
891
|
-
* To run a mutation, you first call `useSignInTonV2Mutation` within a React component and pass it any options that fit your needs.
|
|
892
|
-
* When your component renders, `useSignInTonV2Mutation` returns a tuple that includes:
|
|
893
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
894
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
895
|
-
*
|
|
896
|
-
* @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;
|
|
897
|
-
*
|
|
898
|
-
* @example
|
|
899
|
-
* const [signInTonV2Mutation, { data, loading, error }] = useSignInTonV2Mutation({
|
|
900
|
-
* variables: {
|
|
901
|
-
* address: // value for 'address'
|
|
902
|
-
* restore: // value for 'restore'
|
|
903
|
-
* loginSource: // value for 'loginSource'
|
|
904
|
-
* },
|
|
905
|
-
* });
|
|
906
|
-
*/
|
|
907
|
-
function useSignInTonV2Mutation(baseOptions) {
|
|
908
|
-
return Apollo.useMutation(exports.SignInTonV2Document, baseOptions);
|
|
909
|
-
}
|
|
910
|
-
exports.useSignInTonV2Mutation = useSignInTonV2Mutation;
|
|
911
864
|
exports.UpdateProfileDocument = (0, client_1.gql) `
|
|
912
865
|
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $telegramLink: String) {
|
|
913
866
|
updateProfile(
|
|
@@ -1120,6 +1073,40 @@ function useFetchMyProfileV2LazyQuery(baseOptions) {
|
|
|
1120
1073
|
return Apollo.useLazyQuery(exports.FetchMyProfileV2Document, baseOptions);
|
|
1121
1074
|
}
|
|
1122
1075
|
exports.useFetchMyProfileV2LazyQuery = useFetchMyProfileV2LazyQuery;
|
|
1076
|
+
exports.FetchLudoNftForWalletDocument = (0, client_1.gql) `
|
|
1077
|
+
query FetchLudoNftForWallet($blockchain: String!, $address: String!) {
|
|
1078
|
+
fetchLudoNftForWallet(blockchain: $blockchain, address: $address) {
|
|
1079
|
+
blockchain
|
|
1080
|
+
address
|
|
1081
|
+
tierId
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
`;
|
|
1085
|
+
/**
|
|
1086
|
+
* __useFetchLudoNftForWalletQuery__
|
|
1087
|
+
*
|
|
1088
|
+
* To run a query within a React component, call `useFetchLudoNftForWalletQuery` and pass it any options that fit your needs.
|
|
1089
|
+
* When your component renders, `useFetchLudoNftForWalletQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1090
|
+
* you can use to render your UI.
|
|
1091
|
+
*
|
|
1092
|
+
* @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;
|
|
1093
|
+
*
|
|
1094
|
+
* @example
|
|
1095
|
+
* const { data, loading, error } = useFetchLudoNftForWalletQuery({
|
|
1096
|
+
* variables: {
|
|
1097
|
+
* blockchain: // value for 'blockchain'
|
|
1098
|
+
* address: // value for 'address'
|
|
1099
|
+
* },
|
|
1100
|
+
* });
|
|
1101
|
+
*/
|
|
1102
|
+
function useFetchLudoNftForWalletQuery(baseOptions) {
|
|
1103
|
+
return Apollo.useQuery(exports.FetchLudoNftForWalletDocument, baseOptions);
|
|
1104
|
+
}
|
|
1105
|
+
exports.useFetchLudoNftForWalletQuery = useFetchLudoNftForWalletQuery;
|
|
1106
|
+
function useFetchLudoNftForWalletLazyQuery(baseOptions) {
|
|
1107
|
+
return Apollo.useLazyQuery(exports.FetchLudoNftForWalletDocument, baseOptions);
|
|
1108
|
+
}
|
|
1109
|
+
exports.useFetchLudoNftForWalletLazyQuery = useFetchLudoNftForWalletLazyQuery;
|
|
1123
1110
|
exports.FetchProfileDocument = (0, client_1.gql) `
|
|
1124
1111
|
query FetchProfile($userId: ID!) {
|
|
1125
1112
|
fetchProfile(userId: $userId) {
|
package/build/index.d.ts
CHANGED
|
@@ -1102,15 +1102,6 @@ declare const schema: {
|
|
|
1102
1102
|
restore?: identitySchema.Maybe<boolean> | undefined;
|
|
1103
1103
|
loginSource?: identitySchema.Maybe<identitySchema.ILoginSource> | undefined;
|
|
1104
1104
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1105
|
-
useSignInTonV2Mutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.ISignInTonV2Mutation, identitySchema.Exact<{
|
|
1106
|
-
address: string;
|
|
1107
|
-
restore?: identitySchema.Maybe<boolean> | undefined;
|
|
1108
|
-
loginSource?: identitySchema.Maybe<identitySchema.ILoginSource> | undefined;
|
|
1109
|
-
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.ISignInTonV2Mutation, identitySchema.Exact<{
|
|
1110
|
-
address: string;
|
|
1111
|
-
restore?: identitySchema.Maybe<boolean> | undefined;
|
|
1112
|
-
loginSource?: identitySchema.Maybe<identitySchema.ILoginSource> | undefined;
|
|
1113
|
-
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1114
1105
|
useUpdateProfileMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IUpdateProfileMutation, identitySchema.Exact<{
|
|
1115
1106
|
username?: identitySchema.Maybe<string> | undefined;
|
|
1116
1107
|
about?: identitySchema.Maybe<string> | undefined;
|
|
@@ -1164,6 +1155,20 @@ declare const schema: {
|
|
|
1164
1155
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchMyProfileV2Query, identitySchema.Exact<{
|
|
1165
1156
|
[key: string]: never;
|
|
1166
1157
|
}>>;
|
|
1158
|
+
useFetchLudoNftForWalletQuery(baseOptions: import("@apollo/client").QueryHookOptions<identitySchema.IFetchLudoNftForWalletQuery, identitySchema.Exact<{
|
|
1159
|
+
blockchain: string;
|
|
1160
|
+
address: string;
|
|
1161
|
+
}>>): import("@apollo/client").QueryResult<identitySchema.IFetchLudoNftForWalletQuery, identitySchema.Exact<{
|
|
1162
|
+
blockchain: string;
|
|
1163
|
+
address: string;
|
|
1164
|
+
}>>;
|
|
1165
|
+
useFetchLudoNftForWalletLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<identitySchema.IFetchLudoNftForWalletQuery, identitySchema.Exact<{
|
|
1166
|
+
blockchain: string;
|
|
1167
|
+
address: string;
|
|
1168
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchLudoNftForWalletQuery, identitySchema.Exact<{
|
|
1169
|
+
blockchain: string;
|
|
1170
|
+
address: string;
|
|
1171
|
+
}>>;
|
|
1167
1172
|
useFetchProfileQuery(baseOptions: import("@apollo/client").QueryHookOptions<identitySchema.IFetchProfileQuery, identitySchema.Exact<{
|
|
1168
1173
|
userId: string;
|
|
1169
1174
|
}>>): import("@apollo/client").QueryResult<identitySchema.IFetchProfileQuery, identitySchema.Exact<{
|
|
@@ -1209,11 +1214,11 @@ declare const schema: {
|
|
|
1209
1214
|
SignInSolanaDocument: import("graphql").DocumentNode;
|
|
1210
1215
|
SignInTezosDocument: import("graphql").DocumentNode;
|
|
1211
1216
|
SignInTonDocument: import("graphql").DocumentNode;
|
|
1212
|
-
SignInTonV2Document: import("graphql").DocumentNode;
|
|
1213
1217
|
UpdateProfileDocument: import("graphql").DocumentNode;
|
|
1214
1218
|
FetchAggregatedMultiversxAuditDocument: import("graphql").DocumentNode;
|
|
1215
1219
|
FetchMultiversXAuditDocument: import("graphql").DocumentNode;
|
|
1216
1220
|
FetchMyProfileV2Document: import("graphql").DocumentNode;
|
|
1221
|
+
FetchLudoNftForWalletDocument: import("graphql").DocumentNode;
|
|
1217
1222
|
FetchProfileDocument: import("graphql").DocumentNode;
|
|
1218
1223
|
FetchUserWalletsDocument: import("graphql").DocumentNode;
|
|
1219
1224
|
useAddAssetsToGalleryV2Mutation(baseOptions?: import("@apollo/client").MutationHookOptions<galleriesSchema.IAddAssetsToGalleryV2Mutation, galleriesSchema.Exact<{
|