@ludo.ninja/api 3.2.46 → 3.2.48
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 +52 -15
- package/build/graphql_tools/__generated__/identityHost/schema.js +38 -7
- package/build/index.d.ts +9 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/identityHost/schema.ts +66 -20
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -56,6 +56,10 @@ export declare enum IBlockchains {
|
|
|
56
56
|
TonTestnet = "TON_TESTNET",
|
|
57
57
|
TonMainnet = "TON_MAINNET"
|
|
58
58
|
}
|
|
59
|
+
export declare enum IBoostType {
|
|
60
|
+
Educator = "EDUCATOR",
|
|
61
|
+
Ambassador = "AMBASSADOR"
|
|
62
|
+
}
|
|
59
63
|
export type ICheckTonProofRequest = {
|
|
60
64
|
address: Scalars['String'];
|
|
61
65
|
network?: Maybe<Scalars['String']>;
|
|
@@ -108,6 +112,7 @@ export type IInputSocial = {
|
|
|
108
112
|
discordNickname?: Maybe<Scalars['String']>;
|
|
109
113
|
discordServer?: Maybe<Scalars['String']>;
|
|
110
114
|
telegramLink?: Maybe<Scalars['String']>;
|
|
115
|
+
discordId?: Maybe<Scalars['String']>;
|
|
111
116
|
};
|
|
112
117
|
export type IInviteCode = {
|
|
113
118
|
inviteCode: Scalars['String'];
|
|
@@ -183,6 +188,7 @@ export type IMutation = {
|
|
|
183
188
|
generateNewInviteCodes: Array<IUserInviteCode>;
|
|
184
189
|
saveEmailOfJoiner: Scalars['Boolean'];
|
|
185
190
|
useInviteCode: Scalars['Boolean'];
|
|
191
|
+
useRefcode: Scalars['Boolean'];
|
|
186
192
|
updateProfile: Scalars['Boolean'];
|
|
187
193
|
followProfile: Scalars['Boolean'];
|
|
188
194
|
unfollowProfile: Scalars['Boolean'];
|
|
@@ -297,6 +303,9 @@ export type IMutationSaveEmailOfJoinerArgs = {
|
|
|
297
303
|
export type IMutationUseInviteCodeArgs = {
|
|
298
304
|
inviteCode: Scalars['String'];
|
|
299
305
|
};
|
|
306
|
+
export type IMutationUseRefcodeArgs = {
|
|
307
|
+
refcode: Scalars['String'];
|
|
308
|
+
};
|
|
300
309
|
export type IMutationUpdateProfileArgs = {
|
|
301
310
|
profile?: Maybe<IInputProfile>;
|
|
302
311
|
};
|
|
@@ -325,9 +334,6 @@ export type IMyProfileV2 = {
|
|
|
325
334
|
rank?: Maybe<Scalars['Float']>;
|
|
326
335
|
wallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
327
336
|
xps?: Maybe<Scalars['Int']>;
|
|
328
|
-
level?: Maybe<Scalars['Int']>;
|
|
329
|
-
levelMinXps?: Maybe<Scalars['Int']>;
|
|
330
|
-
levelMaxXps?: Maybe<Scalars['Int']>;
|
|
331
337
|
inviteCodes?: Maybe<Array<Maybe<IInviteCode>>>;
|
|
332
338
|
referralTypeId?: Maybe<Scalars['ID']>;
|
|
333
339
|
referralTypeName?: Maybe<Scalars['String']>;
|
|
@@ -335,7 +341,7 @@ export type IMyProfileV2 = {
|
|
|
335
341
|
tierId?: Maybe<Scalars['String']>;
|
|
336
342
|
tierName?: Maybe<Scalars['String']>;
|
|
337
343
|
shareLink?: Maybe<Scalars['String']>;
|
|
338
|
-
boost?: Maybe<
|
|
344
|
+
boost?: Maybe<IBoostType>;
|
|
339
345
|
};
|
|
340
346
|
export type INonce = {
|
|
341
347
|
nonce: Scalars['String'];
|
|
@@ -360,13 +366,12 @@ export type IProfile = {
|
|
|
360
366
|
rank?: Maybe<Scalars['Float']>;
|
|
361
367
|
wallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
362
368
|
xps?: Maybe<Scalars['Int']>;
|
|
363
|
-
level?: Maybe<Scalars['Int']>;
|
|
364
369
|
referralTypeId?: Maybe<Scalars['ID']>;
|
|
365
370
|
referralTypeName?: Maybe<Scalars['String']>;
|
|
366
371
|
referralTypeColor?: Maybe<IReftypeColor>;
|
|
367
372
|
tierId?: Maybe<Scalars['String']>;
|
|
368
373
|
tierName?: Maybe<Scalars['String']>;
|
|
369
|
-
boost?: Maybe<
|
|
374
|
+
boost?: Maybe<IBoostType>;
|
|
370
375
|
};
|
|
371
376
|
export type IProof = {
|
|
372
377
|
timestamp?: Maybe<Scalars['Long']>;
|
|
@@ -445,6 +450,7 @@ export type ISocial = {
|
|
|
445
450
|
website?: Maybe<Scalars['String']>;
|
|
446
451
|
discordNickname?: Maybe<Scalars['String']>;
|
|
447
452
|
discordServer?: Maybe<Scalars['String']>;
|
|
453
|
+
discordId?: Maybe<Scalars['String']>;
|
|
448
454
|
telegramLink?: Maybe<Scalars['String']>;
|
|
449
455
|
telegramId?: Maybe<Scalars['Long']>;
|
|
450
456
|
};
|
|
@@ -505,6 +511,7 @@ export type IResolversTypes = {
|
|
|
505
511
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
506
512
|
AuditNFTBalance: ResolverTypeWrapper<IAuditNftBalance>;
|
|
507
513
|
Blockchains: IBlockchains;
|
|
514
|
+
BoostType: IBoostType;
|
|
508
515
|
CheckTonProofRequest: ICheckTonProofRequest;
|
|
509
516
|
Domain: IDomain;
|
|
510
517
|
EthereumSignInData: IEthereumSignInData;
|
|
@@ -712,6 +719,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
712
719
|
generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
|
|
713
720
|
saveEmailOfJoiner?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSaveEmailOfJoinerArgs, 'email' | 'isSubscribed'>>;
|
|
714
721
|
useInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUseInviteCodeArgs, 'inviteCode'>>;
|
|
722
|
+
useRefcode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUseRefcodeArgs, 'refcode'>>;
|
|
715
723
|
updateProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, Partial<IMutationUpdateProfileArgs>>;
|
|
716
724
|
followProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationFollowProfileArgs, 'followingUserId'>>;
|
|
717
725
|
unfollowProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUnfollowProfileArgs, 'followingUserId'>>;
|
|
@@ -736,9 +744,6 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
736
744
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
737
745
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
738
746
|
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
739
|
-
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
740
|
-
levelMinXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
741
|
-
levelMaxXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
742
747
|
inviteCodes?: Resolver<Maybe<Array<Maybe<IResolversTypes['InviteCode']>>>, ParentType, ContextType>;
|
|
743
748
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
744
749
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -746,7 +751,7 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
746
751
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
747
752
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
748
753
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
749
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
754
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
750
755
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
751
756
|
};
|
|
752
757
|
export type INonceResolvers<ContextType = any, ParentType extends IResolversParentTypes['Nonce'] = IResolversParentTypes['Nonce']> = {
|
|
@@ -773,13 +778,12 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
773
778
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
774
779
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
775
780
|
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
776
|
-
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
777
781
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
778
782
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
779
783
|
referralTypeColor?: Resolver<Maybe<IResolversTypes['ReftypeColor']>, ParentType, ContextType>;
|
|
780
784
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
781
785
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
782
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
786
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
783
787
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
784
788
|
};
|
|
785
789
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
@@ -803,6 +807,7 @@ export type ISocialResolvers<ContextType = any, ParentType extends IResolversPar
|
|
|
803
807
|
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
804
808
|
discordNickname?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
805
809
|
discordServer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
810
|
+
discordId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
806
811
|
telegramLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
807
812
|
telegramId?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
808
813
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -946,6 +951,10 @@ export type IUseInviteCodeMutationVariables = Exact<{
|
|
|
946
951
|
inviteCode: Scalars['String'];
|
|
947
952
|
}>;
|
|
948
953
|
export type IUseInviteCodeMutation = Pick<IMutation, 'useInviteCode'>;
|
|
954
|
+
export type IUseRefcodeMutationVariables = Exact<{
|
|
955
|
+
refcode: Scalars['String'];
|
|
956
|
+
}>;
|
|
957
|
+
export type IUseRefcodeMutation = Pick<IMutation, 'useRefcode'>;
|
|
949
958
|
export type IRemoveWalletMutationVariables = Exact<{
|
|
950
959
|
blockchain: Scalars['String'];
|
|
951
960
|
address: Scalars['String'];
|
|
@@ -1075,6 +1084,7 @@ export type IUpdateProfileMutationVariables = Exact<{
|
|
|
1075
1084
|
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
1076
1085
|
discordNickname?: Maybe<Scalars['String']>;
|
|
1077
1086
|
discordServer?: Maybe<Scalars['String']>;
|
|
1087
|
+
discordId?: Maybe<Scalars['String']>;
|
|
1078
1088
|
telegramLink?: Maybe<Scalars['String']>;
|
|
1079
1089
|
}>;
|
|
1080
1090
|
export type IUpdateProfileMutation = Pick<IMutation, 'updateProfile'>;
|
|
@@ -1108,8 +1118,8 @@ export type IFetchMyProfileV2QueryVariables = Exact<{
|
|
|
1108
1118
|
[key: string]: never;
|
|
1109
1119
|
}>;
|
|
1110
1120
|
export type IFetchMyProfileV2Query = {
|
|
1111
|
-
fetchMyProfileV2: (Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'boost' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | '
|
|
1112
|
-
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname' | 'telegramLink' | 'telegramId'>>;
|
|
1121
|
+
fetchMyProfileV2: (Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'boost' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor' | 'shareLink'> & {
|
|
1122
|
+
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname' | 'discordId' | 'telegramLink' | 'telegramId'>>;
|
|
1113
1123
|
wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>;
|
|
1114
1124
|
inviteCodes?: Maybe<Array<Maybe<(Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'> & {
|
|
1115
1125
|
codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>>;
|
|
@@ -1128,7 +1138,7 @@ export type IFetchProfileQueryVariables = Exact<{
|
|
|
1128
1138
|
}>;
|
|
1129
1139
|
export type IFetchProfileQuery = {
|
|
1130
1140
|
fetchProfile: (Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'boost' | 'following' | 'followings' | 'followers' | 'rank' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor' | 'xps'> & {
|
|
1131
|
-
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer' | 'telegramLink' | 'telegramId'>>;
|
|
1141
|
+
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer' | 'discordId' | 'telegramLink' | 'telegramId'>>;
|
|
1132
1142
|
wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>;
|
|
1133
1143
|
});
|
|
1134
1144
|
};
|
|
@@ -1511,6 +1521,31 @@ export declare function useUseInviteCodeMutation(baseOptions?: Apollo.MutationHo
|
|
|
1511
1521
|
export type UseInviteCodeMutationHookResult = ReturnType<typeof useUseInviteCodeMutation>;
|
|
1512
1522
|
export type UseInviteCodeMutationResult = Apollo.MutationResult<IUseInviteCodeMutation>;
|
|
1513
1523
|
export type UseInviteCodeMutationOptions = Apollo.BaseMutationOptions<IUseInviteCodeMutation, IUseInviteCodeMutationVariables>;
|
|
1524
|
+
export declare const UseRefcodeDocument: Apollo.DocumentNode;
|
|
1525
|
+
export type IUseRefcodeMutationFn = Apollo.MutationFunction<IUseRefcodeMutation, IUseRefcodeMutationVariables>;
|
|
1526
|
+
/**
|
|
1527
|
+
* __useUseRefcodeMutation__
|
|
1528
|
+
*
|
|
1529
|
+
* To run a mutation, you first call `useUseRefcodeMutation` within a React component and pass it any options that fit your needs.
|
|
1530
|
+
* When your component renders, `useUseRefcodeMutation` returns a tuple that includes:
|
|
1531
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1532
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1533
|
+
*
|
|
1534
|
+
* @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;
|
|
1535
|
+
*
|
|
1536
|
+
* @example
|
|
1537
|
+
* const [useRefcodeMutation, { data, loading, error }] = useUseRefcodeMutation({
|
|
1538
|
+
* variables: {
|
|
1539
|
+
* refcode: // value for 'refcode'
|
|
1540
|
+
* },
|
|
1541
|
+
* });
|
|
1542
|
+
*/
|
|
1543
|
+
export declare function useUseRefcodeMutation(baseOptions?: Apollo.MutationHookOptions<IUseRefcodeMutation, IUseRefcodeMutationVariables>): Apollo.MutationTuple<IUseRefcodeMutation, Exact<{
|
|
1544
|
+
refcode: string;
|
|
1545
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1546
|
+
export type UseRefcodeMutationHookResult = ReturnType<typeof useUseRefcodeMutation>;
|
|
1547
|
+
export type UseRefcodeMutationResult = Apollo.MutationResult<IUseRefcodeMutation>;
|
|
1548
|
+
export type UseRefcodeMutationOptions = Apollo.BaseMutationOptions<IUseRefcodeMutation, IUseRefcodeMutationVariables>;
|
|
1514
1549
|
export declare const RemoveWalletDocument: Apollo.DocumentNode;
|
|
1515
1550
|
export type IRemoveWalletMutationFn = Apollo.MutationFunction<IRemoveWalletMutation, IRemoveWalletMutationVariables>;
|
|
1516
1551
|
/**
|
|
@@ -1861,6 +1896,7 @@ export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMut
|
|
|
1861
1896
|
* showNsfw: // value for 'showNsfw'
|
|
1862
1897
|
* discordNickname: // value for 'discordNickname'
|
|
1863
1898
|
* discordServer: // value for 'discordServer'
|
|
1899
|
+
* discordId: // value for 'discordId'
|
|
1864
1900
|
* telegramLink: // value for 'telegramLink'
|
|
1865
1901
|
* },
|
|
1866
1902
|
* });
|
|
@@ -1875,6 +1911,7 @@ export declare function useUpdateProfileMutation(baseOptions?: Apollo.MutationHo
|
|
|
1875
1911
|
showNsfw?: Maybe<boolean> | undefined;
|
|
1876
1912
|
discordNickname?: Maybe<string> | undefined;
|
|
1877
1913
|
discordServer?: Maybe<string> | undefined;
|
|
1914
|
+
discordId?: Maybe<string> | undefined;
|
|
1878
1915
|
telegramLink?: Maybe<string> | undefined;
|
|
1879
1916
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1880
1917
|
export type UpdateProfileMutationHookResult = ReturnType<typeof useUpdateProfileMutation>;
|
|
@@ -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.useFetchLudoNftForWalletLazyQuery = exports.useFetchLudoNftForWalletQuery = exports.FetchLudoNftForWalletDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useFetchAggregatedMultiversxAuditLazyQuery = exports.useFetchAggregatedMultiversxAuditQuery = exports.FetchAggregatedMultiversxAuditDocument = exports.useVerifyMfaSecretMutation = exports.VerifyMfaSecretDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = void 0;
|
|
26
|
+
exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSignInAdminMetamaskMutation = exports.SignInAdminMetamaskDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useSetEducatorBoostMutation = exports.SetEducatorBoostDocument = exports.useSaveEmailOfJoinerMutation = exports.SaveEmailOfJoinerDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useUseRefcodeMutation = exports.UseRefcodeDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateTonNonceMutation = exports.CreateTonNonceDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useCreateMfaSecretMutation = exports.CreateMfaSecretDocument = exports.useCreateEvmNonceMutation = exports.CreateEvmNonceDocument = exports.useCreateAdminNonceMutation = exports.CreateAdminNonceDocument = 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 = exports.IBoostType = exports.IBlockchains = 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 = exports.useVerifyMfaSecretMutation = exports.VerifyMfaSecretDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var IBlockchains;
|
|
@@ -40,6 +40,11 @@ var IBlockchains;
|
|
|
40
40
|
IBlockchains["TonTestnet"] = "TON_TESTNET";
|
|
41
41
|
IBlockchains["TonMainnet"] = "TON_MAINNET";
|
|
42
42
|
})(IBlockchains || (exports.IBlockchains = IBlockchains = {}));
|
|
43
|
+
var IBoostType;
|
|
44
|
+
(function (IBoostType) {
|
|
45
|
+
IBoostType["Educator"] = "EDUCATOR";
|
|
46
|
+
IBoostType["Ambassador"] = "AMBASSADOR";
|
|
47
|
+
})(IBoostType || (exports.IBoostType = IBoostType = {}));
|
|
43
48
|
/** Please sync with ApplicationType.java */
|
|
44
49
|
var ILoginSource;
|
|
45
50
|
(function (ILoginSource) {
|
|
@@ -486,6 +491,32 @@ function useUseInviteCodeMutation(baseOptions) {
|
|
|
486
491
|
return Apollo.useMutation(exports.UseInviteCodeDocument, baseOptions);
|
|
487
492
|
}
|
|
488
493
|
exports.useUseInviteCodeMutation = useUseInviteCodeMutation;
|
|
494
|
+
exports.UseRefcodeDocument = (0, client_1.gql) `
|
|
495
|
+
mutation UseRefcode($refcode: String!) {
|
|
496
|
+
useRefcode(refcode: $refcode)
|
|
497
|
+
}
|
|
498
|
+
`;
|
|
499
|
+
/**
|
|
500
|
+
* __useUseRefcodeMutation__
|
|
501
|
+
*
|
|
502
|
+
* To run a mutation, you first call `useUseRefcodeMutation` within a React component and pass it any options that fit your needs.
|
|
503
|
+
* When your component renders, `useUseRefcodeMutation` returns a tuple that includes:
|
|
504
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
505
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
506
|
+
*
|
|
507
|
+
* @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;
|
|
508
|
+
*
|
|
509
|
+
* @example
|
|
510
|
+
* const [useRefcodeMutation, { data, loading, error }] = useUseRefcodeMutation({
|
|
511
|
+
* variables: {
|
|
512
|
+
* refcode: // value for 'refcode'
|
|
513
|
+
* },
|
|
514
|
+
* });
|
|
515
|
+
*/
|
|
516
|
+
function useUseRefcodeMutation(baseOptions) {
|
|
517
|
+
return Apollo.useMutation(exports.UseRefcodeDocument, baseOptions);
|
|
518
|
+
}
|
|
519
|
+
exports.useUseRefcodeMutation = useUseRefcodeMutation;
|
|
489
520
|
exports.RemoveWalletDocument = (0, client_1.gql) `
|
|
490
521
|
mutation RemoveWallet($blockchain: String!, $address: String!, $chainId: String) {
|
|
491
522
|
removeWallet(blockchain: $blockchain, address: $address, chainId: $chainId)
|
|
@@ -962,9 +993,9 @@ function useSignInTonMutation(baseOptions) {
|
|
|
962
993
|
}
|
|
963
994
|
exports.useSignInTonMutation = useSignInTonMutation;
|
|
964
995
|
exports.UpdateProfileDocument = (0, client_1.gql) `
|
|
965
|
-
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $telegramLink: String) {
|
|
996
|
+
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $discordId: String, $telegramLink: String) {
|
|
966
997
|
updateProfile(
|
|
967
|
-
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordServer: $discordServer, telegramLink: $telegramLink}}
|
|
998
|
+
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordId: $discordId, discordServer: $discordServer, telegramLink: $telegramLink}}
|
|
968
999
|
)
|
|
969
1000
|
}
|
|
970
1001
|
`;
|
|
@@ -990,6 +1021,7 @@ exports.UpdateProfileDocument = (0, client_1.gql) `
|
|
|
990
1021
|
* showNsfw: // value for 'showNsfw'
|
|
991
1022
|
* discordNickname: // value for 'discordNickname'
|
|
992
1023
|
* discordServer: // value for 'discordServer'
|
|
1024
|
+
* discordId: // value for 'discordId'
|
|
993
1025
|
* telegramLink: // value for 'telegramLink'
|
|
994
1026
|
* },
|
|
995
1027
|
* });
|
|
@@ -1138,6 +1170,7 @@ exports.FetchMyProfileV2Document = (0, client_1.gql) `
|
|
|
1138
1170
|
website
|
|
1139
1171
|
discordServer
|
|
1140
1172
|
discordNickname
|
|
1173
|
+
discordId
|
|
1141
1174
|
telegramLink
|
|
1142
1175
|
telegramId
|
|
1143
1176
|
}
|
|
@@ -1158,9 +1191,6 @@ exports.FetchMyProfileV2Document = (0, client_1.gql) `
|
|
|
1158
1191
|
mainWallet
|
|
1159
1192
|
}
|
|
1160
1193
|
xps
|
|
1161
|
-
level
|
|
1162
|
-
levelMinXps
|
|
1163
|
-
levelMaxXps
|
|
1164
1194
|
inviteCodes {
|
|
1165
1195
|
inviteCode
|
|
1166
1196
|
isUsed
|
|
@@ -1257,6 +1287,7 @@ exports.FetchProfileDocument = (0, client_1.gql) `
|
|
|
1257
1287
|
website
|
|
1258
1288
|
discordNickname
|
|
1259
1289
|
discordServer
|
|
1290
|
+
discordId
|
|
1260
1291
|
telegramLink
|
|
1261
1292
|
telegramId
|
|
1262
1293
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -1124,6 +1124,11 @@ declare const schema: {
|
|
|
1124
1124
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.IUseInviteCodeMutation, identitySchema.Exact<{
|
|
1125
1125
|
inviteCode: string;
|
|
1126
1126
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1127
|
+
useUseRefcodeMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IUseRefcodeMutation, identitySchema.Exact<{
|
|
1128
|
+
refcode: string;
|
|
1129
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.IUseRefcodeMutation, identitySchema.Exact<{
|
|
1130
|
+
refcode: string;
|
|
1131
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1127
1132
|
useRemoveWalletMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IRemoveWalletMutation, identitySchema.Exact<{
|
|
1128
1133
|
blockchain: string;
|
|
1129
1134
|
address: string;
|
|
@@ -1241,6 +1246,7 @@ declare const schema: {
|
|
|
1241
1246
|
showNsfw?: identitySchema.Maybe<boolean> | undefined;
|
|
1242
1247
|
discordNickname?: identitySchema.Maybe<string> | undefined;
|
|
1243
1248
|
discordServer?: identitySchema.Maybe<string> | undefined;
|
|
1249
|
+
discordId?: identitySchema.Maybe<string> | undefined;
|
|
1244
1250
|
telegramLink?: identitySchema.Maybe<string> | undefined;
|
|
1245
1251
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.IUpdateProfileMutation, identitySchema.Exact<{
|
|
1246
1252
|
username?: identitySchema.Maybe<string> | undefined;
|
|
@@ -1252,6 +1258,7 @@ declare const schema: {
|
|
|
1252
1258
|
showNsfw?: identitySchema.Maybe<boolean> | undefined;
|
|
1253
1259
|
discordNickname?: identitySchema.Maybe<string> | undefined;
|
|
1254
1260
|
discordServer?: identitySchema.Maybe<string> | undefined;
|
|
1261
|
+
discordId?: identitySchema.Maybe<string> | undefined;
|
|
1255
1262
|
telegramLink?: identitySchema.Maybe<string> | undefined;
|
|
1256
1263
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1257
1264
|
useVerifyMfaSecretMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IVerifyMfaSecretMutation, identitySchema.Exact<{
|
|
@@ -1323,6 +1330,7 @@ declare const schema: {
|
|
|
1323
1330
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchUserWalletsQuery, identitySchema.Exact<{
|
|
1324
1331
|
userId: string;
|
|
1325
1332
|
}>>;
|
|
1333
|
+
IBoostType: typeof identitySchema.IBoostType;
|
|
1326
1334
|
ILoginSource: typeof identitySchema.ILoginSource;
|
|
1327
1335
|
ILoginType: typeof identitySchema.ILoginType;
|
|
1328
1336
|
IRole: typeof identitySchema.IRole;
|
|
@@ -1340,6 +1348,7 @@ declare const schema: {
|
|
|
1340
1348
|
CreateTonNonceDocument: import("graphql").DocumentNode;
|
|
1341
1349
|
GenerateNewInviteCodesDocument: import("graphql").DocumentNode;
|
|
1342
1350
|
UseInviteCodeDocument: import("graphql").DocumentNode;
|
|
1351
|
+
UseRefcodeDocument: import("graphql").DocumentNode;
|
|
1343
1352
|
RemoveWalletDocument: import("graphql").DocumentNode;
|
|
1344
1353
|
SaveEmailOfJoinerDocument: import("graphql").DocumentNode;
|
|
1345
1354
|
SetEducatorBoostDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -60,6 +60,11 @@ export enum IBlockchains {
|
|
|
60
60
|
TonMainnet = 'TON_MAINNET'
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
export enum IBoostType {
|
|
64
|
+
Educator = 'EDUCATOR',
|
|
65
|
+
Ambassador = 'AMBASSADOR'
|
|
66
|
+
}
|
|
67
|
+
|
|
63
68
|
export type ICheckTonProofRequest = {
|
|
64
69
|
address: Scalars['String'];
|
|
65
70
|
network?: Maybe<Scalars['String']>;
|
|
@@ -119,6 +124,7 @@ export type IInputSocial = {
|
|
|
119
124
|
discordNickname?: Maybe<Scalars['String']>;
|
|
120
125
|
discordServer?: Maybe<Scalars['String']>;
|
|
121
126
|
telegramLink?: Maybe<Scalars['String']>;
|
|
127
|
+
discordId?: Maybe<Scalars['String']>;
|
|
122
128
|
};
|
|
123
129
|
|
|
124
130
|
export type IInviteCode = {
|
|
@@ -203,6 +209,7 @@ export type IMutation = {
|
|
|
203
209
|
generateNewInviteCodes: Array<IUserInviteCode>;
|
|
204
210
|
saveEmailOfJoiner: Scalars['Boolean'];
|
|
205
211
|
useInviteCode: Scalars['Boolean'];
|
|
212
|
+
useRefcode: Scalars['Boolean'];
|
|
206
213
|
updateProfile: Scalars['Boolean'];
|
|
207
214
|
followProfile: Scalars['Boolean'];
|
|
208
215
|
unfollowProfile: Scalars['Boolean'];
|
|
@@ -365,6 +372,11 @@ export type IMutationUseInviteCodeArgs = {
|
|
|
365
372
|
};
|
|
366
373
|
|
|
367
374
|
|
|
375
|
+
export type IMutationUseRefcodeArgs = {
|
|
376
|
+
refcode: Scalars['String'];
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
|
|
368
380
|
export type IMutationUpdateProfileArgs = {
|
|
369
381
|
profile?: Maybe<IInputProfile>;
|
|
370
382
|
};
|
|
@@ -398,9 +410,6 @@ export type IMyProfileV2 = {
|
|
|
398
410
|
rank?: Maybe<Scalars['Float']>;
|
|
399
411
|
wallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
400
412
|
xps?: Maybe<Scalars['Int']>;
|
|
401
|
-
level?: Maybe<Scalars['Int']>;
|
|
402
|
-
levelMinXps?: Maybe<Scalars['Int']>;
|
|
403
|
-
levelMaxXps?: Maybe<Scalars['Int']>;
|
|
404
413
|
inviteCodes?: Maybe<Array<Maybe<IInviteCode>>>;
|
|
405
414
|
referralTypeId?: Maybe<Scalars['ID']>;
|
|
406
415
|
referralTypeName?: Maybe<Scalars['String']>;
|
|
@@ -408,7 +417,7 @@ export type IMyProfileV2 = {
|
|
|
408
417
|
tierId?: Maybe<Scalars['String']>;
|
|
409
418
|
tierName?: Maybe<Scalars['String']>;
|
|
410
419
|
shareLink?: Maybe<Scalars['String']>;
|
|
411
|
-
boost?: Maybe<
|
|
420
|
+
boost?: Maybe<IBoostType>;
|
|
412
421
|
};
|
|
413
422
|
|
|
414
423
|
export type INonce = {
|
|
@@ -435,13 +444,12 @@ export type IProfile = {
|
|
|
435
444
|
rank?: Maybe<Scalars['Float']>;
|
|
436
445
|
wallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
437
446
|
xps?: Maybe<Scalars['Int']>;
|
|
438
|
-
level?: Maybe<Scalars['Int']>;
|
|
439
447
|
referralTypeId?: Maybe<Scalars['ID']>;
|
|
440
448
|
referralTypeName?: Maybe<Scalars['String']>;
|
|
441
449
|
referralTypeColor?: Maybe<IReftypeColor>;
|
|
442
450
|
tierId?: Maybe<Scalars['String']>;
|
|
443
451
|
tierName?: Maybe<Scalars['String']>;
|
|
444
|
-
boost?: Maybe<
|
|
452
|
+
boost?: Maybe<IBoostType>;
|
|
445
453
|
};
|
|
446
454
|
|
|
447
455
|
export type IProof = {
|
|
@@ -545,6 +553,7 @@ export type ISocial = {
|
|
|
545
553
|
website?: Maybe<Scalars['String']>;
|
|
546
554
|
discordNickname?: Maybe<Scalars['String']>;
|
|
547
555
|
discordServer?: Maybe<Scalars['String']>;
|
|
556
|
+
discordId?: Maybe<Scalars['String']>;
|
|
548
557
|
telegramLink?: Maybe<Scalars['String']>;
|
|
549
558
|
telegramId?: Maybe<Scalars['Long']>;
|
|
550
559
|
};
|
|
@@ -651,6 +660,7 @@ export type IResolversTypes = {
|
|
|
651
660
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
652
661
|
AuditNFTBalance: ResolverTypeWrapper<IAuditNftBalance>;
|
|
653
662
|
Blockchains: IBlockchains;
|
|
663
|
+
BoostType: IBoostType;
|
|
654
664
|
CheckTonProofRequest: ICheckTonProofRequest;
|
|
655
665
|
Domain: IDomain;
|
|
656
666
|
EthereumSignInData: IEthereumSignInData;
|
|
@@ -886,6 +896,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
886
896
|
generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
|
|
887
897
|
saveEmailOfJoiner?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSaveEmailOfJoinerArgs, 'email' | 'isSubscribed'>>;
|
|
888
898
|
useInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUseInviteCodeArgs, 'inviteCode'>>;
|
|
899
|
+
useRefcode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUseRefcodeArgs, 'refcode'>>;
|
|
889
900
|
updateProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, Partial<IMutationUpdateProfileArgs>>;
|
|
890
901
|
followProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationFollowProfileArgs, 'followingUserId'>>;
|
|
891
902
|
unfollowProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUnfollowProfileArgs, 'followingUserId'>>;
|
|
@@ -911,9 +922,6 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
911
922
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
912
923
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
913
924
|
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
914
|
-
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
915
|
-
levelMinXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
916
|
-
levelMaxXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
917
925
|
inviteCodes?: Resolver<Maybe<Array<Maybe<IResolversTypes['InviteCode']>>>, ParentType, ContextType>;
|
|
918
926
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
919
927
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -921,7 +929,7 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
921
929
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
922
930
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
923
931
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
924
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
932
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
925
933
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
926
934
|
};
|
|
927
935
|
|
|
@@ -950,13 +958,12 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
950
958
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
951
959
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
952
960
|
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
953
|
-
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
954
961
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
955
962
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
956
963
|
referralTypeColor?: Resolver<Maybe<IResolversTypes['ReftypeColor']>, ParentType, ContextType>;
|
|
957
964
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
958
965
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
959
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
966
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
960
967
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
961
968
|
};
|
|
962
969
|
|
|
@@ -982,6 +989,7 @@ export type ISocialResolvers<ContextType = any, ParentType extends IResolversPar
|
|
|
982
989
|
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
983
990
|
discordNickname?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
984
991
|
discordServer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
992
|
+
discordId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
985
993
|
telegramLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
986
994
|
telegramId?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
987
995
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -1160,6 +1168,13 @@ export type IUseInviteCodeMutationVariables = Exact<{
|
|
|
1160
1168
|
|
|
1161
1169
|
export type IUseInviteCodeMutation = Pick<IMutation, 'useInviteCode'>;
|
|
1162
1170
|
|
|
1171
|
+
export type IUseRefcodeMutationVariables = Exact<{
|
|
1172
|
+
refcode: Scalars['String'];
|
|
1173
|
+
}>;
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
export type IUseRefcodeMutation = Pick<IMutation, 'useRefcode'>;
|
|
1177
|
+
|
|
1163
1178
|
export type IRemoveWalletMutationVariables = Exact<{
|
|
1164
1179
|
blockchain: Scalars['String'];
|
|
1165
1180
|
address: Scalars['String'];
|
|
@@ -1292,6 +1307,7 @@ export type IUpdateProfileMutationVariables = Exact<{
|
|
|
1292
1307
|
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
1293
1308
|
discordNickname?: Maybe<Scalars['String']>;
|
|
1294
1309
|
discordServer?: Maybe<Scalars['String']>;
|
|
1310
|
+
discordId?: Maybe<Scalars['String']>;
|
|
1295
1311
|
telegramLink?: Maybe<Scalars['String']>;
|
|
1296
1312
|
}>;
|
|
1297
1313
|
|
|
@@ -1335,8 +1351,8 @@ export type IFetchMyProfileV2QueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
1335
1351
|
|
|
1336
1352
|
|
|
1337
1353
|
export type IFetchMyProfileV2Query = { fetchMyProfileV2: (
|
|
1338
|
-
Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'boost' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | '
|
|
1339
|
-
& { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname' | 'telegramLink' | 'telegramId'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>, inviteCodes?: Maybe<Array<Maybe<(
|
|
1354
|
+
Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'boost' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor' | 'shareLink'>
|
|
1355
|
+
& { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname' | 'discordId' | 'telegramLink' | 'telegramId'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>, inviteCodes?: Maybe<Array<Maybe<(
|
|
1340
1356
|
Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'>
|
|
1341
1357
|
& { codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>> }
|
|
1342
1358
|
)>>> }
|
|
@@ -1357,7 +1373,7 @@ export type IFetchProfileQueryVariables = Exact<{
|
|
|
1357
1373
|
|
|
1358
1374
|
export type IFetchProfileQuery = { fetchProfile: (
|
|
1359
1375
|
Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'boost' | 'following' | 'followings' | 'followers' | 'rank' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor' | 'xps'>
|
|
1360
|
-
& { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer' | 'telegramLink' | 'telegramId'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>> }
|
|
1376
|
+
& { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer' | 'discordId' | 'telegramLink' | 'telegramId'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>> }
|
|
1361
1377
|
) };
|
|
1362
1378
|
|
|
1363
1379
|
export type IFetchUserWalletsQueryVariables = Exact<{
|
|
@@ -1830,6 +1846,36 @@ export function useUseInviteCodeMutation(baseOptions?: Apollo.MutationHookOption
|
|
|
1830
1846
|
export type UseInviteCodeMutationHookResult = ReturnType<typeof useUseInviteCodeMutation>;
|
|
1831
1847
|
export type UseInviteCodeMutationResult = Apollo.MutationResult<IUseInviteCodeMutation>;
|
|
1832
1848
|
export type UseInviteCodeMutationOptions = Apollo.BaseMutationOptions<IUseInviteCodeMutation, IUseInviteCodeMutationVariables>;
|
|
1849
|
+
export const UseRefcodeDocument = gql`
|
|
1850
|
+
mutation UseRefcode($refcode: String!) {
|
|
1851
|
+
useRefcode(refcode: $refcode)
|
|
1852
|
+
}
|
|
1853
|
+
`;
|
|
1854
|
+
export type IUseRefcodeMutationFn = Apollo.MutationFunction<IUseRefcodeMutation, IUseRefcodeMutationVariables>;
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* __useUseRefcodeMutation__
|
|
1858
|
+
*
|
|
1859
|
+
* To run a mutation, you first call `useUseRefcodeMutation` within a React component and pass it any options that fit your needs.
|
|
1860
|
+
* When your component renders, `useUseRefcodeMutation` returns a tuple that includes:
|
|
1861
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1862
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1863
|
+
*
|
|
1864
|
+
* @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;
|
|
1865
|
+
*
|
|
1866
|
+
* @example
|
|
1867
|
+
* const [useRefcodeMutation, { data, loading, error }] = useUseRefcodeMutation({
|
|
1868
|
+
* variables: {
|
|
1869
|
+
* refcode: // value for 'refcode'
|
|
1870
|
+
* },
|
|
1871
|
+
* });
|
|
1872
|
+
*/
|
|
1873
|
+
export function useUseRefcodeMutation(baseOptions?: Apollo.MutationHookOptions<IUseRefcodeMutation, IUseRefcodeMutationVariables>) {
|
|
1874
|
+
return Apollo.useMutation<IUseRefcodeMutation, IUseRefcodeMutationVariables>(UseRefcodeDocument, baseOptions);
|
|
1875
|
+
}
|
|
1876
|
+
export type UseRefcodeMutationHookResult = ReturnType<typeof useUseRefcodeMutation>;
|
|
1877
|
+
export type UseRefcodeMutationResult = Apollo.MutationResult<IUseRefcodeMutation>;
|
|
1878
|
+
export type UseRefcodeMutationOptions = Apollo.BaseMutationOptions<IUseRefcodeMutation, IUseRefcodeMutationVariables>;
|
|
1833
1879
|
export const RemoveWalletDocument = gql`
|
|
1834
1880
|
mutation RemoveWallet($blockchain: String!, $address: String!, $chainId: String) {
|
|
1835
1881
|
removeWallet(blockchain: $blockchain, address: $address, chainId: $chainId)
|
|
@@ -2350,9 +2396,9 @@ export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation
|
|
|
2350
2396
|
export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
|
|
2351
2397
|
export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
|
|
2352
2398
|
export const UpdateProfileDocument = gql`
|
|
2353
|
-
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $telegramLink: String) {
|
|
2399
|
+
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $discordId: String, $telegramLink: String) {
|
|
2354
2400
|
updateProfile(
|
|
2355
|
-
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordServer: $discordServer, telegramLink: $telegramLink}}
|
|
2401
|
+
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordId: $discordId, discordServer: $discordServer, telegramLink: $telegramLink}}
|
|
2356
2402
|
)
|
|
2357
2403
|
}
|
|
2358
2404
|
`;
|
|
@@ -2380,6 +2426,7 @@ export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMut
|
|
|
2380
2426
|
* showNsfw: // value for 'showNsfw'
|
|
2381
2427
|
* discordNickname: // value for 'discordNickname'
|
|
2382
2428
|
* discordServer: // value for 'discordServer'
|
|
2429
|
+
* discordId: // value for 'discordId'
|
|
2383
2430
|
* telegramLink: // value for 'telegramLink'
|
|
2384
2431
|
* },
|
|
2385
2432
|
* });
|
|
@@ -2538,6 +2585,7 @@ export const FetchMyProfileV2Document = gql`
|
|
|
2538
2585
|
website
|
|
2539
2586
|
discordServer
|
|
2540
2587
|
discordNickname
|
|
2588
|
+
discordId
|
|
2541
2589
|
telegramLink
|
|
2542
2590
|
telegramId
|
|
2543
2591
|
}
|
|
@@ -2558,9 +2606,6 @@ export const FetchMyProfileV2Document = gql`
|
|
|
2558
2606
|
mainWallet
|
|
2559
2607
|
}
|
|
2560
2608
|
xps
|
|
2561
|
-
level
|
|
2562
|
-
levelMinXps
|
|
2563
|
-
levelMaxXps
|
|
2564
2609
|
inviteCodes {
|
|
2565
2610
|
inviteCode
|
|
2566
2611
|
isUsed
|
|
@@ -2661,6 +2706,7 @@ export const FetchProfileDocument = gql`
|
|
|
2661
2706
|
website
|
|
2662
2707
|
discordNickname
|
|
2663
2708
|
discordServer
|
|
2709
|
+
discordId
|
|
2664
2710
|
telegramLink
|
|
2665
2711
|
telegramId
|
|
2666
2712
|
}
|