@ludo.ninja/api 3.0.4 → 3.0.6
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 +88 -2
- package/build/graphql_tools/__generated__/identityHost/schema.js +65 -2
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +31 -0
- package/build/graphql_tools/__generated__/searchHost/schema.js +30 -2
- package/build/index.d.ts +22 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/identityHost/schema.ts +123 -2
- package/src/graphql_tools/__generated__/searchHost/schema.ts +37 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -22,6 +22,8 @@ export type Scalars = {
|
|
|
22
22
|
Boolean: boolean;
|
|
23
23
|
Int: number;
|
|
24
24
|
Float: number;
|
|
25
|
+
/** A JSON scalar */
|
|
26
|
+
JSON: any;
|
|
25
27
|
/** A 64-bit signed integer */
|
|
26
28
|
Long: any;
|
|
27
29
|
};
|
|
@@ -52,6 +54,11 @@ export type IDomain = {
|
|
|
52
54
|
lengthBytes?: Maybe<Scalars['Long']>;
|
|
53
55
|
value?: Maybe<Scalars['String']>;
|
|
54
56
|
};
|
|
57
|
+
export type IEthereumSignInData = {
|
|
58
|
+
address: Scalars['String'];
|
|
59
|
+
signature: Scalars['String'];
|
|
60
|
+
restore: Scalars['Boolean'];
|
|
61
|
+
};
|
|
55
62
|
export type IFollower = {
|
|
56
63
|
userId: Scalars['ID'];
|
|
57
64
|
username?: Maybe<Scalars['String']>;
|
|
@@ -101,6 +108,17 @@ export type IInviteCodeUser = {
|
|
|
101
108
|
inviteeId: Scalars['ID'];
|
|
102
109
|
usedAt: Scalars['Long'];
|
|
103
110
|
};
|
|
111
|
+
/** Please sync with LoginType.java */
|
|
112
|
+
export declare enum ILoginType {
|
|
113
|
+
Google = "GOOGLE",
|
|
114
|
+
X = "X",
|
|
115
|
+
Discord = "DISCORD",
|
|
116
|
+
Facebook = "FACEBOOK",
|
|
117
|
+
Linkedin = "LINKEDIN",
|
|
118
|
+
Reddit = "REDDIT",
|
|
119
|
+
Email = "EMAIL",
|
|
120
|
+
PhoneNumber = "PHONE_NUMBER"
|
|
121
|
+
}
|
|
104
122
|
/** noinspection SpellCheckingInspection */
|
|
105
123
|
export type IMultiversxAudit = {
|
|
106
124
|
delegated?: Maybe<Scalars['Float']>;
|
|
@@ -122,12 +140,15 @@ export type IMutation = {
|
|
|
122
140
|
signInFlow: IIdentity;
|
|
123
141
|
signInTon: IIdentity;
|
|
124
142
|
signInTonV2: IIdentity;
|
|
143
|
+
signInEthereum: IIdentity;
|
|
144
|
+
signInEthereumWeb3Auth: IIdentity;
|
|
125
145
|
addWalletMetamask: Scalars['Boolean'];
|
|
126
146
|
addWalletTezos: Scalars['Boolean'];
|
|
127
147
|
addWalletSolana: Scalars['Boolean'];
|
|
128
148
|
addWalletElrond: Scalars['Boolean'];
|
|
129
149
|
addWalletFlow: Scalars['Boolean'];
|
|
130
150
|
addWalletTon: Scalars['Boolean'];
|
|
151
|
+
addWalletTonV2: Scalars['Boolean'];
|
|
131
152
|
removeWallet: Scalars['Boolean'];
|
|
132
153
|
setMainWallet: Scalars['Boolean'];
|
|
133
154
|
generateNewInviteCodes: Array<IUserInviteCode>;
|
|
@@ -181,6 +202,14 @@ export type IMutationSignInTonV2Args = {
|
|
|
181
202
|
address: Scalars['String'];
|
|
182
203
|
restore?: Maybe<Scalars['Boolean']>;
|
|
183
204
|
};
|
|
205
|
+
export type IMutationSignInEthereumArgs = {
|
|
206
|
+
signInData: IEthereumSignInData;
|
|
207
|
+
};
|
|
208
|
+
export type IMutationSignInEthereumWeb3AuthArgs = {
|
|
209
|
+
signInData: IEthereumSignInData;
|
|
210
|
+
loginType: ILoginType;
|
|
211
|
+
additionalMeta?: Maybe<Scalars['JSON']>;
|
|
212
|
+
};
|
|
184
213
|
export type IMutationAddWalletMetamaskArgs = {
|
|
185
214
|
signature: Scalars['String'];
|
|
186
215
|
address: Scalars['String'];
|
|
@@ -205,6 +234,9 @@ export type IMutationAddWalletFlowArgs = {
|
|
|
205
234
|
export type IMutationAddWalletTonArgs = {
|
|
206
235
|
request: ICheckTonProofRequest;
|
|
207
236
|
};
|
|
237
|
+
export type IMutationAddWalletTonV2Args = {
|
|
238
|
+
address: Scalars['String'];
|
|
239
|
+
};
|
|
208
240
|
export type IMutationRemoveWalletArgs = {
|
|
209
241
|
blockchain: Scalars['String'];
|
|
210
242
|
address: Scalars['String'];
|
|
@@ -412,15 +444,18 @@ export type IResolversTypes = {
|
|
|
412
444
|
AuditNFTBalance: ResolverTypeWrapper<IAuditNftBalance>;
|
|
413
445
|
CheckTonProofRequest: ICheckTonProofRequest;
|
|
414
446
|
Domain: IDomain;
|
|
447
|
+
EthereumSignInData: IEthereumSignInData;
|
|
448
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
415
449
|
Follower: ResolverTypeWrapper<IFollower>;
|
|
416
450
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
417
|
-
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
418
451
|
FollowingStatus: ResolverTypeWrapper<IFollowingStatus>;
|
|
419
452
|
Identity: ResolverTypeWrapper<IIdentity>;
|
|
420
453
|
InputProfile: IInputProfile;
|
|
421
454
|
InputSocial: IInputSocial;
|
|
422
455
|
InviteCode: ResolverTypeWrapper<IInviteCode>;
|
|
423
456
|
InviteCodeUser: ResolverTypeWrapper<IInviteCodeUser>;
|
|
457
|
+
JSON: ResolverTypeWrapper<Scalars['JSON']>;
|
|
458
|
+
LoginType: ILoginType;
|
|
424
459
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
425
460
|
MultiversxAudit: ResolverTypeWrapper<IMultiversxAudit>;
|
|
426
461
|
Mutation: ResolverTypeWrapper<{}>;
|
|
@@ -446,15 +481,17 @@ export type IResolversParentTypes = {
|
|
|
446
481
|
AuditNFTBalance: IAuditNftBalance;
|
|
447
482
|
CheckTonProofRequest: ICheckTonProofRequest;
|
|
448
483
|
Domain: IDomain;
|
|
484
|
+
EthereumSignInData: IEthereumSignInData;
|
|
485
|
+
Boolean: Scalars['Boolean'];
|
|
449
486
|
Follower: IFollower;
|
|
450
487
|
ID: Scalars['ID'];
|
|
451
|
-
Boolean: Scalars['Boolean'];
|
|
452
488
|
FollowingStatus: IFollowingStatus;
|
|
453
489
|
Identity: IIdentity;
|
|
454
490
|
InputProfile: IInputProfile;
|
|
455
491
|
InputSocial: IInputSocial;
|
|
456
492
|
InviteCode: IInviteCode;
|
|
457
493
|
InviteCodeUser: IInviteCodeUser;
|
|
494
|
+
JSON: Scalars['JSON'];
|
|
458
495
|
Long: Scalars['Long'];
|
|
459
496
|
MultiversxAudit: IMultiversxAudit;
|
|
460
497
|
Mutation: {};
|
|
@@ -549,6 +586,9 @@ export type IInviteCodeUserResolvers<ContextType = any, ParentType extends IReso
|
|
|
549
586
|
usedAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
550
587
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
551
588
|
};
|
|
589
|
+
export interface IJsonScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['JSON'], any> {
|
|
590
|
+
name: 'JSON';
|
|
591
|
+
}
|
|
552
592
|
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
553
593
|
name: 'Long';
|
|
554
594
|
}
|
|
@@ -573,12 +613,15 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
573
613
|
signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
|
|
574
614
|
signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
|
|
575
615
|
signInTonV2?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonV2Args, 'address'>>;
|
|
616
|
+
signInEthereum?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumArgs, 'signInData'>>;
|
|
617
|
+
signInEthereumWeb3Auth?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumWeb3AuthArgs, 'signInData' | 'loginType'>>;
|
|
576
618
|
addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
577
619
|
addWalletTezos?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTezosArgs, 'signature' | 'pubkey'>>;
|
|
578
620
|
addWalletSolana?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletSolanaArgs, 'signature' | 'pubkey'>>;
|
|
579
621
|
addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
|
|
580
622
|
addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
|
|
581
623
|
addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'request'>>;
|
|
624
|
+
addWalletTonV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonV2Args, 'address'>>;
|
|
582
625
|
removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
|
|
583
626
|
setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
|
|
584
627
|
generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
|
|
@@ -701,6 +744,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
701
744
|
Identity?: IIdentityResolvers<ContextType>;
|
|
702
745
|
InviteCode?: IInviteCodeResolvers<ContextType>;
|
|
703
746
|
InviteCodeUser?: IInviteCodeUserResolvers<ContextType>;
|
|
747
|
+
JSON?: GraphQLScalarType;
|
|
704
748
|
Long?: GraphQLScalarType;
|
|
705
749
|
MultiversxAudit?: IMultiversxAuditResolvers<ContextType>;
|
|
706
750
|
Mutation?: IMutationResolvers<ContextType>;
|
|
@@ -720,6 +764,19 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
720
764
|
connection?: IConnectionDirectiveResolver<any, any, ContextType>;
|
|
721
765
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
722
766
|
};
|
|
767
|
+
export type ISignInEthereumWeb3AuthMutationVariables = Exact<{
|
|
768
|
+
signInData: IEthereumSignInData;
|
|
769
|
+
loginType: ILoginType;
|
|
770
|
+
additionalMeta?: Maybe<Scalars['JSON']>;
|
|
771
|
+
}>;
|
|
772
|
+
export type ISignInEthereumWeb3AuthMutation = {
|
|
773
|
+
signInEthereumWeb3Auth: (Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role' | 'reftypeId' | 'reftypeName' | 'reftypeColor'> & {
|
|
774
|
+
tokens: {
|
|
775
|
+
portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
|
|
776
|
+
extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
|
|
777
|
+
};
|
|
778
|
+
});
|
|
779
|
+
};
|
|
723
780
|
export type IAddWalletElrondMutationVariables = Exact<{
|
|
724
781
|
signature: Scalars['String'];
|
|
725
782
|
address: Scalars['String'];
|
|
@@ -951,6 +1008,35 @@ export type IFetchUserWalletsQueryVariables = Exact<{
|
|
|
951
1008
|
export type IFetchUserWalletsQuery = {
|
|
952
1009
|
fetchUserWallets: Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>;
|
|
953
1010
|
};
|
|
1011
|
+
export declare const SignInEthereumWeb3AuthDocument: Apollo.DocumentNode;
|
|
1012
|
+
export type ISignInEthereumWeb3AuthMutationFn = Apollo.MutationFunction<ISignInEthereumWeb3AuthMutation, ISignInEthereumWeb3AuthMutationVariables>;
|
|
1013
|
+
/**
|
|
1014
|
+
* __useSignInEthereumWeb3AuthMutation__
|
|
1015
|
+
*
|
|
1016
|
+
* To run a mutation, you first call `useSignInEthereumWeb3AuthMutation` within a React component and pass it any options that fit your needs.
|
|
1017
|
+
* When your component renders, `useSignInEthereumWeb3AuthMutation` returns a tuple that includes:
|
|
1018
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1019
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1020
|
+
*
|
|
1021
|
+
* @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;
|
|
1022
|
+
*
|
|
1023
|
+
* @example
|
|
1024
|
+
* const [signInEthereumWeb3AuthMutation, { data, loading, error }] = useSignInEthereumWeb3AuthMutation({
|
|
1025
|
+
* variables: {
|
|
1026
|
+
* signInData: // value for 'signInData'
|
|
1027
|
+
* loginType: // value for 'loginType'
|
|
1028
|
+
* additionalMeta: // value for 'additionalMeta'
|
|
1029
|
+
* },
|
|
1030
|
+
* });
|
|
1031
|
+
*/
|
|
1032
|
+
export declare function useSignInEthereumWeb3AuthMutation(baseOptions?: Apollo.MutationHookOptions<ISignInEthereumWeb3AuthMutation, ISignInEthereumWeb3AuthMutationVariables>): Apollo.MutationTuple<ISignInEthereumWeb3AuthMutation, Exact<{
|
|
1033
|
+
signInData: IEthereumSignInData;
|
|
1034
|
+
loginType: ILoginType;
|
|
1035
|
+
additionalMeta?: any;
|
|
1036
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1037
|
+
export type SignInEthereumWeb3AuthMutationHookResult = ReturnType<typeof useSignInEthereumWeb3AuthMutation>;
|
|
1038
|
+
export type SignInEthereumWeb3AuthMutationResult = Apollo.MutationResult<ISignInEthereumWeb3AuthMutation>;
|
|
1039
|
+
export type SignInEthereumWeb3AuthMutationOptions = Apollo.BaseMutationOptions<ISignInEthereumWeb3AuthMutation, ISignInEthereumWeb3AuthMutationVariables>;
|
|
954
1040
|
export declare const AddWalletElrondDocument: Apollo.DocumentNode;
|
|
955
1041
|
export type IAddWalletElrondMutationFn = Apollo.MutationFunction<IAddWalletElrondMutation, IAddWalletElrondMutationVariables>;
|
|
956
1042
|
/**
|
|
@@ -23,10 +23,22 @@ 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.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useFetchAggregatedMultiversxAuditLazyQuery = void 0;
|
|
26
|
+
exports.UpdateProfileDocument = exports.useSignInTonV2Mutation = exports.SignInTonV2Document = 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 = void 0;
|
|
27
|
+
exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useFetchAggregatedMultiversxAuditLazyQuery = exports.useFetchAggregatedMultiversxAuditQuery = exports.FetchAggregatedMultiversxAuditDocument = exports.useUpdateProfileMutation = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
|
+
/** Please sync with LoginType.java */
|
|
31
|
+
var ILoginType;
|
|
32
|
+
(function (ILoginType) {
|
|
33
|
+
ILoginType["Google"] = "GOOGLE";
|
|
34
|
+
ILoginType["X"] = "X";
|
|
35
|
+
ILoginType["Discord"] = "DISCORD";
|
|
36
|
+
ILoginType["Facebook"] = "FACEBOOK";
|
|
37
|
+
ILoginType["Linkedin"] = "LINKEDIN";
|
|
38
|
+
ILoginType["Reddit"] = "REDDIT";
|
|
39
|
+
ILoginType["Email"] = "EMAIL";
|
|
40
|
+
ILoginType["PhoneNumber"] = "PHONE_NUMBER";
|
|
41
|
+
})(ILoginType || (exports.ILoginType = ILoginType = {}));
|
|
30
42
|
/** Sync with ReftypeColor.java */
|
|
31
43
|
var IReftypeColor;
|
|
32
44
|
(function (IReftypeColor) {
|
|
@@ -46,6 +58,57 @@ var IRole;
|
|
|
46
58
|
IRole["Admin"] = "admin";
|
|
47
59
|
IRole["Plain"] = "plain";
|
|
48
60
|
})(IRole || (exports.IRole = IRole = {}));
|
|
61
|
+
exports.SignInEthereumWeb3AuthDocument = (0, client_1.gql) `
|
|
62
|
+
mutation signInEthereumWeb3Auth($signInData: EthereumSignInData!, $loginType: LoginType!, $additionalMeta: JSON) {
|
|
63
|
+
signInEthereumWeb3Auth(
|
|
64
|
+
signInData: $signInData
|
|
65
|
+
loginType: $loginType
|
|
66
|
+
additionalMeta: $additionalMeta
|
|
67
|
+
) {
|
|
68
|
+
userId
|
|
69
|
+
wallets
|
|
70
|
+
tokens {
|
|
71
|
+
portalTokenPair {
|
|
72
|
+
authToken
|
|
73
|
+
refreshToken
|
|
74
|
+
}
|
|
75
|
+
extensionTokenPair {
|
|
76
|
+
authToken
|
|
77
|
+
refreshToken
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
newUser
|
|
81
|
+
inviteCode
|
|
82
|
+
role
|
|
83
|
+
reftypeId
|
|
84
|
+
reftypeName
|
|
85
|
+
reftypeColor
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
`;
|
|
89
|
+
/**
|
|
90
|
+
* __useSignInEthereumWeb3AuthMutation__
|
|
91
|
+
*
|
|
92
|
+
* To run a mutation, you first call `useSignInEthereumWeb3AuthMutation` within a React component and pass it any options that fit your needs.
|
|
93
|
+
* When your component renders, `useSignInEthereumWeb3AuthMutation` returns a tuple that includes:
|
|
94
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
95
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
96
|
+
*
|
|
97
|
+
* @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;
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* const [signInEthereumWeb3AuthMutation, { data, loading, error }] = useSignInEthereumWeb3AuthMutation({
|
|
101
|
+
* variables: {
|
|
102
|
+
* signInData: // value for 'signInData'
|
|
103
|
+
* loginType: // value for 'loginType'
|
|
104
|
+
* additionalMeta: // value for 'additionalMeta'
|
|
105
|
+
* },
|
|
106
|
+
* });
|
|
107
|
+
*/
|
|
108
|
+
function useSignInEthereumWeb3AuthMutation(baseOptions) {
|
|
109
|
+
return Apollo.useMutation(exports.SignInEthereumWeb3AuthDocument, baseOptions);
|
|
110
|
+
}
|
|
111
|
+
exports.useSignInEthereumWeb3AuthMutation = useSignInEthereumWeb3AuthMutation;
|
|
49
112
|
exports.AddWalletElrondDocument = (0, client_1.gql) `
|
|
50
113
|
mutation AddWalletElrond($signature: String!, $address: String!) {
|
|
51
114
|
addWalletElrond(signature: $signature, address: $address)
|
|
@@ -262,6 +262,7 @@ export type IQuery = {
|
|
|
262
262
|
findUserCreations: ICreationsPage;
|
|
263
263
|
findProfilesByName: IProfilePage;
|
|
264
264
|
fetchUserReferralsInfoPage: IUserReferralsInfoPage;
|
|
265
|
+
fetchUserReferralsInfoCsv: Scalars['String'];
|
|
265
266
|
};
|
|
266
267
|
export type IQueryFetchUserPortfolioArgs = {
|
|
267
268
|
ownerId: Scalars['String'];
|
|
@@ -726,6 +727,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
726
727
|
findUserCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserCreationsArgs, 'ownerId' | 'input'>>;
|
|
727
728
|
findProfilesByName?: Resolver<IResolversTypes['ProfilePage'], ParentType, ContextType, RequireFields<IQueryFindProfilesByNameArgs, 'name'>>;
|
|
728
729
|
fetchUserReferralsInfoPage?: Resolver<IResolversTypes['UserReferralsInfoPage'], ParentType, ContextType, RequireFields<IQueryFetchUserReferralsInfoPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
730
|
+
fetchUserReferralsInfoCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
729
731
|
};
|
|
730
732
|
export type ITopEntitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['TopEntitiesPage'] = IResolversParentTypes['TopEntitiesPage']> = {
|
|
731
733
|
assets?: Resolver<Array<Maybe<IResolversTypes['Asset']>>, ParentType, ContextType>;
|
|
@@ -943,6 +945,10 @@ export type IFetchUserPortfolioQueryVariables = Exact<{
|
|
|
943
945
|
export type IFetchUserPortfolioQuery = {
|
|
944
946
|
fetchUserPortfolio: Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>;
|
|
945
947
|
};
|
|
948
|
+
export type IFetchUserReferralsInfoCsvQueryVariables = Exact<{
|
|
949
|
+
[key: string]: never;
|
|
950
|
+
}>;
|
|
951
|
+
export type IFetchUserReferralsInfoCsvQuery = Pick<IQuery, 'fetchUserReferralsInfoCsv'>;
|
|
946
952
|
export type IFetchUserReferralsInfoPageQueryVariables = Exact<{
|
|
947
953
|
filter: IUserReferralsInfoFilterInput;
|
|
948
954
|
sort: IUserReferralsInfoSortInput;
|
|
@@ -1345,6 +1351,31 @@ export declare function useFetchUserPortfolioLazyQuery(baseOptions?: Apollo.Lazy
|
|
|
1345
1351
|
export type FetchUserPortfolioQueryHookResult = ReturnType<typeof useFetchUserPortfolioQuery>;
|
|
1346
1352
|
export type FetchUserPortfolioLazyQueryHookResult = ReturnType<typeof useFetchUserPortfolioLazyQuery>;
|
|
1347
1353
|
export type FetchUserPortfolioQueryResult = Apollo.QueryResult<IFetchUserPortfolioQuery, IFetchUserPortfolioQueryVariables>;
|
|
1354
|
+
export declare const FetchUserReferralsInfoCsvDocument: Apollo.DocumentNode;
|
|
1355
|
+
/**
|
|
1356
|
+
* __useFetchUserReferralsInfoCsvQuery__
|
|
1357
|
+
*
|
|
1358
|
+
* To run a query within a React component, call `useFetchUserReferralsInfoCsvQuery` and pass it any options that fit your needs.
|
|
1359
|
+
* When your component renders, `useFetchUserReferralsInfoCsvQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1360
|
+
* you can use to render your UI.
|
|
1361
|
+
*
|
|
1362
|
+
* @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;
|
|
1363
|
+
*
|
|
1364
|
+
* @example
|
|
1365
|
+
* const { data, loading, error } = useFetchUserReferralsInfoCsvQuery({
|
|
1366
|
+
* variables: {
|
|
1367
|
+
* },
|
|
1368
|
+
* });
|
|
1369
|
+
*/
|
|
1370
|
+
export declare function useFetchUserReferralsInfoCsvQuery(baseOptions?: Apollo.QueryHookOptions<IFetchUserReferralsInfoCsvQuery, IFetchUserReferralsInfoCsvQueryVariables>): Apollo.QueryResult<IFetchUserReferralsInfoCsvQuery, Exact<{
|
|
1371
|
+
[key: string]: never;
|
|
1372
|
+
}>>;
|
|
1373
|
+
export declare function useFetchUserReferralsInfoCsvLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUserReferralsInfoCsvQuery, IFetchUserReferralsInfoCsvQueryVariables>): Apollo.LazyQueryResultTuple<IFetchUserReferralsInfoCsvQuery, Exact<{
|
|
1374
|
+
[key: string]: never;
|
|
1375
|
+
}>>;
|
|
1376
|
+
export type FetchUserReferralsInfoCsvQueryHookResult = ReturnType<typeof useFetchUserReferralsInfoCsvQuery>;
|
|
1377
|
+
export type FetchUserReferralsInfoCsvLazyQueryHookResult = ReturnType<typeof useFetchUserReferralsInfoCsvLazyQuery>;
|
|
1378
|
+
export type FetchUserReferralsInfoCsvQueryResult = Apollo.QueryResult<IFetchUserReferralsInfoCsvQuery, IFetchUserReferralsInfoCsvQueryVariables>;
|
|
1348
1379
|
export declare const FetchUserReferralsInfoPageDocument: Apollo.DocumentNode;
|
|
1349
1380
|
/**
|
|
1350
1381
|
* __useFetchUserReferralsInfoPageQuery__
|
|
@@ -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.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = void 0;
|
|
26
|
+
exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserReferralsInfoPageLazyQuery = exports.useFetchUserReferralsInfoPageQuery = exports.FetchUserReferralsInfoPageDocument = exports.useFetchUserReferralsInfoCsvLazyQuery = exports.useFetchUserReferralsInfoCsvQuery = exports.FetchUserReferralsInfoCsvDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFindAllTopEntitiesByNameLazyQuery = exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchDynamicCollectionsDataLazyQuery = exports.useFetchDynamicCollectionsDataQuery = exports.FetchDynamicCollectionsDataDocument = exports.useFetchDynamicCollectionDataLazyQuery = exports.useFetchDynamicCollectionDataQuery = exports.FetchDynamicCollectionDataDocument = exports.useFetchDynamicAssetsLikesLazyQuery = exports.useFetchDynamicAssetsLikesQuery = exports.FetchDynamicAssetsLikesDocument = exports.useFetchDynamicAssetLikesLazyQuery = exports.useFetchDynamicAssetLikesQuery = exports.FetchDynamicAssetLikesDocument = exports.useFetchCreationsByTypeLazyQuery = exports.useFetchCreationsByTypeQuery = exports.FetchCreationsByTypeDocument = exports.useFetchCollectionsByIdsLazyQuery = exports.useFetchCollectionsByIdsQuery = exports.FetchCollectionsByIdsDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = exports.useFetchCollectionLazyQuery = exports.useFetchCollectionQuery = exports.FetchCollectionDocument = exports.useFetchAssetsLazyQuery = exports.useFetchAssetsQuery = exports.FetchAssetsDocument = exports.useFetchAssetByBlockchainLazyQuery = exports.useFetchAssetByBlockchainQuery = exports.FetchAssetByBlockchainDocument = exports.useFetchAllCreationsLazyQuery = exports.useFetchAllCreationsQuery = exports.FetchAllCreationsDocument = exports.ISortDirection = exports.IReftypeColor = void 0;
|
|
27
|
+
exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var IReftypeColor;
|
|
@@ -1054,6 +1054,34 @@ function useFetchUserPortfolioLazyQuery(baseOptions) {
|
|
|
1054
1054
|
return Apollo.useLazyQuery(exports.FetchUserPortfolioDocument, baseOptions);
|
|
1055
1055
|
}
|
|
1056
1056
|
exports.useFetchUserPortfolioLazyQuery = useFetchUserPortfolioLazyQuery;
|
|
1057
|
+
exports.FetchUserReferralsInfoCsvDocument = (0, client_1.gql) `
|
|
1058
|
+
query FetchUserReferralsInfoCsv {
|
|
1059
|
+
fetchUserReferralsInfoCsv
|
|
1060
|
+
}
|
|
1061
|
+
`;
|
|
1062
|
+
/**
|
|
1063
|
+
* __useFetchUserReferralsInfoCsvQuery__
|
|
1064
|
+
*
|
|
1065
|
+
* To run a query within a React component, call `useFetchUserReferralsInfoCsvQuery` and pass it any options that fit your needs.
|
|
1066
|
+
* When your component renders, `useFetchUserReferralsInfoCsvQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1067
|
+
* you can use to render your UI.
|
|
1068
|
+
*
|
|
1069
|
+
* @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;
|
|
1070
|
+
*
|
|
1071
|
+
* @example
|
|
1072
|
+
* const { data, loading, error } = useFetchUserReferralsInfoCsvQuery({
|
|
1073
|
+
* variables: {
|
|
1074
|
+
* },
|
|
1075
|
+
* });
|
|
1076
|
+
*/
|
|
1077
|
+
function useFetchUserReferralsInfoCsvQuery(baseOptions) {
|
|
1078
|
+
return Apollo.useQuery(exports.FetchUserReferralsInfoCsvDocument, baseOptions);
|
|
1079
|
+
}
|
|
1080
|
+
exports.useFetchUserReferralsInfoCsvQuery = useFetchUserReferralsInfoCsvQuery;
|
|
1081
|
+
function useFetchUserReferralsInfoCsvLazyQuery(baseOptions) {
|
|
1082
|
+
return Apollo.useLazyQuery(exports.FetchUserReferralsInfoCsvDocument, baseOptions);
|
|
1083
|
+
}
|
|
1084
|
+
exports.useFetchUserReferralsInfoCsvLazyQuery = useFetchUserReferralsInfoCsvLazyQuery;
|
|
1057
1085
|
exports.FetchUserReferralsInfoPageDocument = (0, client_1.gql) `
|
|
1058
1086
|
query FetchUserReferralsInfoPage($filter: UserReferralsInfoFilterInput!, $sort: UserReferralsInfoSortInput!, $page: PageInput!) {
|
|
1059
1087
|
fetchUserReferralsInfoPage(filter: $filter, sort: $sort, page: $page) {
|
package/build/index.d.ts
CHANGED
|
@@ -325,6 +325,16 @@ declare const schema: {
|
|
|
325
325
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchUserPortfolioQuery, searchSchema.Exact<{
|
|
326
326
|
ownerId: string;
|
|
327
327
|
}>>;
|
|
328
|
+
useFetchUserReferralsInfoCsvQuery(baseOptions?: import("@apollo/client").QueryHookOptions<searchSchema.IFetchUserReferralsInfoCsvQuery, searchSchema.Exact<{
|
|
329
|
+
[key: string]: never;
|
|
330
|
+
}>> | undefined): import("@apollo/client").QueryResult<searchSchema.IFetchUserReferralsInfoCsvQuery, searchSchema.Exact<{
|
|
331
|
+
[key: string]: never;
|
|
332
|
+
}>>;
|
|
333
|
+
useFetchUserReferralsInfoCsvLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<searchSchema.IFetchUserReferralsInfoCsvQuery, searchSchema.Exact<{
|
|
334
|
+
[key: string]: never;
|
|
335
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchUserReferralsInfoCsvQuery, searchSchema.Exact<{
|
|
336
|
+
[key: string]: never;
|
|
337
|
+
}>>;
|
|
328
338
|
useFetchUserReferralsInfoPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchUserReferralsInfoPageQuery, searchSchema.Exact<{
|
|
329
339
|
filter: searchSchema.IUserReferralsInfoFilterInput;
|
|
330
340
|
sort: searchSchema.IUserReferralsInfoSortInput;
|
|
@@ -408,6 +418,7 @@ declare const schema: {
|
|
|
408
418
|
FetchDynamicCollectionsDataDocument: import("graphql").DocumentNode;
|
|
409
419
|
FindAllTopEntitiesByNameDocument: import("graphql").DocumentNode;
|
|
410
420
|
FetchUserPortfolioDocument: import("graphql").DocumentNode;
|
|
421
|
+
FetchUserReferralsInfoCsvDocument: import("graphql").DocumentNode;
|
|
411
422
|
FetchUserReferralsInfoPageDocument: import("graphql").DocumentNode;
|
|
412
423
|
FindCreationsDocument: import("graphql").DocumentNode;
|
|
413
424
|
FindProfilesByNameDocument: import("graphql").DocumentNode;
|
|
@@ -616,6 +627,15 @@ declare const schema: {
|
|
|
616
627
|
DeleteGalleryBannerDocument: import("graphql").DocumentNode;
|
|
617
628
|
UploadGalleryBannerDocument: import("graphql").DocumentNode;
|
|
618
629
|
FetchUserpicDocument: import("graphql").DocumentNode;
|
|
630
|
+
useSignInEthereumWeb3AuthMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.ISignInEthereumWeb3AuthMutation, identitySchema.Exact<{
|
|
631
|
+
signInData: identitySchema.IEthereumSignInData;
|
|
632
|
+
loginType: identitySchema.ILoginType;
|
|
633
|
+
additionalMeta?: any;
|
|
634
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.ISignInEthereumWeb3AuthMutation, identitySchema.Exact<{
|
|
635
|
+
signInData: identitySchema.IEthereumSignInData;
|
|
636
|
+
loginType: identitySchema.ILoginType;
|
|
637
|
+
additionalMeta?: any;
|
|
638
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
619
639
|
useAddWalletElrondMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IAddWalletElrondMutation, identitySchema.Exact<{
|
|
620
640
|
signature: string;
|
|
621
641
|
address: string;
|
|
@@ -845,7 +865,9 @@ declare const schema: {
|
|
|
845
865
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchUserWalletsQuery, identitySchema.Exact<{
|
|
846
866
|
userId: string;
|
|
847
867
|
}>>;
|
|
868
|
+
ILoginType: typeof identitySchema.ILoginType;
|
|
848
869
|
IRole: typeof identitySchema.IRole;
|
|
870
|
+
SignInEthereumWeb3AuthDocument: import("graphql").DocumentNode;
|
|
849
871
|
AddWalletElrondDocument: import("graphql").DocumentNode;
|
|
850
872
|
AddWalletFlowDocument: import("graphql").DocumentNode;
|
|
851
873
|
AddWalletMetamaskDocument: import("graphql").DocumentNode;
|