@ludo.ninja/api 3.2.46 → 3.2.47
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 +18 -15
- package/build/graphql_tools/__generated__/identityHost/schema.js +12 -7
- package/build/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/identityHost/schema.ts +22 -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'];
|
|
@@ -325,9 +330,6 @@ export type IMyProfileV2 = {
|
|
|
325
330
|
rank?: Maybe<Scalars['Float']>;
|
|
326
331
|
wallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
327
332
|
xps?: Maybe<Scalars['Int']>;
|
|
328
|
-
level?: Maybe<Scalars['Int']>;
|
|
329
|
-
levelMinXps?: Maybe<Scalars['Int']>;
|
|
330
|
-
levelMaxXps?: Maybe<Scalars['Int']>;
|
|
331
333
|
inviteCodes?: Maybe<Array<Maybe<IInviteCode>>>;
|
|
332
334
|
referralTypeId?: Maybe<Scalars['ID']>;
|
|
333
335
|
referralTypeName?: Maybe<Scalars['String']>;
|
|
@@ -335,7 +337,7 @@ export type IMyProfileV2 = {
|
|
|
335
337
|
tierId?: Maybe<Scalars['String']>;
|
|
336
338
|
tierName?: Maybe<Scalars['String']>;
|
|
337
339
|
shareLink?: Maybe<Scalars['String']>;
|
|
338
|
-
boost?: Maybe<
|
|
340
|
+
boost?: Maybe<IBoostType>;
|
|
339
341
|
};
|
|
340
342
|
export type INonce = {
|
|
341
343
|
nonce: Scalars['String'];
|
|
@@ -360,13 +362,12 @@ export type IProfile = {
|
|
|
360
362
|
rank?: Maybe<Scalars['Float']>;
|
|
361
363
|
wallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
362
364
|
xps?: Maybe<Scalars['Int']>;
|
|
363
|
-
level?: Maybe<Scalars['Int']>;
|
|
364
365
|
referralTypeId?: Maybe<Scalars['ID']>;
|
|
365
366
|
referralTypeName?: Maybe<Scalars['String']>;
|
|
366
367
|
referralTypeColor?: Maybe<IReftypeColor>;
|
|
367
368
|
tierId?: Maybe<Scalars['String']>;
|
|
368
369
|
tierName?: Maybe<Scalars['String']>;
|
|
369
|
-
boost?: Maybe<
|
|
370
|
+
boost?: Maybe<IBoostType>;
|
|
370
371
|
};
|
|
371
372
|
export type IProof = {
|
|
372
373
|
timestamp?: Maybe<Scalars['Long']>;
|
|
@@ -445,6 +446,7 @@ export type ISocial = {
|
|
|
445
446
|
website?: Maybe<Scalars['String']>;
|
|
446
447
|
discordNickname?: Maybe<Scalars['String']>;
|
|
447
448
|
discordServer?: Maybe<Scalars['String']>;
|
|
449
|
+
discordId?: Maybe<Scalars['String']>;
|
|
448
450
|
telegramLink?: Maybe<Scalars['String']>;
|
|
449
451
|
telegramId?: Maybe<Scalars['Long']>;
|
|
450
452
|
};
|
|
@@ -505,6 +507,7 @@ export type IResolversTypes = {
|
|
|
505
507
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
506
508
|
AuditNFTBalance: ResolverTypeWrapper<IAuditNftBalance>;
|
|
507
509
|
Blockchains: IBlockchains;
|
|
510
|
+
BoostType: IBoostType;
|
|
508
511
|
CheckTonProofRequest: ICheckTonProofRequest;
|
|
509
512
|
Domain: IDomain;
|
|
510
513
|
EthereumSignInData: IEthereumSignInData;
|
|
@@ -736,9 +739,6 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
736
739
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
737
740
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
738
741
|
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
742
|
inviteCodes?: Resolver<Maybe<Array<Maybe<IResolversTypes['InviteCode']>>>, ParentType, ContextType>;
|
|
743
743
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
744
744
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -746,7 +746,7 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
746
746
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
747
747
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
748
748
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
749
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
749
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
750
750
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
751
751
|
};
|
|
752
752
|
export type INonceResolvers<ContextType = any, ParentType extends IResolversParentTypes['Nonce'] = IResolversParentTypes['Nonce']> = {
|
|
@@ -773,13 +773,12 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
773
773
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
774
774
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
775
775
|
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
776
|
-
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
777
776
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
778
777
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
779
778
|
referralTypeColor?: Resolver<Maybe<IResolversTypes['ReftypeColor']>, ParentType, ContextType>;
|
|
780
779
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
781
780
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
782
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
781
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
783
782
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
784
783
|
};
|
|
785
784
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
@@ -803,6 +802,7 @@ export type ISocialResolvers<ContextType = any, ParentType extends IResolversPar
|
|
|
803
802
|
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
804
803
|
discordNickname?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
805
804
|
discordServer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
805
|
+
discordId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
806
806
|
telegramLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
807
807
|
telegramId?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
808
808
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -1075,6 +1075,7 @@ export type IUpdateProfileMutationVariables = Exact<{
|
|
|
1075
1075
|
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
1076
1076
|
discordNickname?: Maybe<Scalars['String']>;
|
|
1077
1077
|
discordServer?: Maybe<Scalars['String']>;
|
|
1078
|
+
discordId?: Maybe<Scalars['String']>;
|
|
1078
1079
|
telegramLink?: Maybe<Scalars['String']>;
|
|
1079
1080
|
}>;
|
|
1080
1081
|
export type IUpdateProfileMutation = Pick<IMutation, 'updateProfile'>;
|
|
@@ -1108,8 +1109,8 @@ export type IFetchMyProfileV2QueryVariables = Exact<{
|
|
|
1108
1109
|
[key: string]: never;
|
|
1109
1110
|
}>;
|
|
1110
1111
|
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'>>;
|
|
1112
|
+
fetchMyProfileV2: (Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'boost' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor' | 'shareLink'> & {
|
|
1113
|
+
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname' | 'discordId' | 'telegramLink' | 'telegramId'>>;
|
|
1113
1114
|
wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>;
|
|
1114
1115
|
inviteCodes?: Maybe<Array<Maybe<(Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'> & {
|
|
1115
1116
|
codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>>;
|
|
@@ -1128,7 +1129,7 @@ export type IFetchProfileQueryVariables = Exact<{
|
|
|
1128
1129
|
}>;
|
|
1129
1130
|
export type IFetchProfileQuery = {
|
|
1130
1131
|
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'>>;
|
|
1132
|
+
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer' | 'discordId' | 'telegramLink' | 'telegramId'>>;
|
|
1132
1133
|
wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>;
|
|
1133
1134
|
});
|
|
1134
1135
|
};
|
|
@@ -1861,6 +1862,7 @@ export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMut
|
|
|
1861
1862
|
* showNsfw: // value for 'showNsfw'
|
|
1862
1863
|
* discordNickname: // value for 'discordNickname'
|
|
1863
1864
|
* discordServer: // value for 'discordServer'
|
|
1865
|
+
* discordId: // value for 'discordId'
|
|
1864
1866
|
* telegramLink: // value for 'telegramLink'
|
|
1865
1867
|
* },
|
|
1866
1868
|
* });
|
|
@@ -1875,6 +1877,7 @@ export declare function useUpdateProfileMutation(baseOptions?: Apollo.MutationHo
|
|
|
1875
1877
|
showNsfw?: Maybe<boolean> | undefined;
|
|
1876
1878
|
discordNickname?: Maybe<string> | undefined;
|
|
1877
1879
|
discordServer?: Maybe<string> | undefined;
|
|
1880
|
+
discordId?: Maybe<string> | undefined;
|
|
1878
1881
|
telegramLink?: Maybe<string> | undefined;
|
|
1879
1882
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1880
1883
|
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.useSignInMetamaskMutation = exports.SignInMetamaskDocument = 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.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 = 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) {
|
|
@@ -962,9 +967,9 @@ function useSignInTonMutation(baseOptions) {
|
|
|
962
967
|
}
|
|
963
968
|
exports.useSignInTonMutation = useSignInTonMutation;
|
|
964
969
|
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) {
|
|
970
|
+
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
971
|
updateProfile(
|
|
967
|
-
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordServer: $discordServer, telegramLink: $telegramLink}}
|
|
972
|
+
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
973
|
)
|
|
969
974
|
}
|
|
970
975
|
`;
|
|
@@ -990,6 +995,7 @@ exports.UpdateProfileDocument = (0, client_1.gql) `
|
|
|
990
995
|
* showNsfw: // value for 'showNsfw'
|
|
991
996
|
* discordNickname: // value for 'discordNickname'
|
|
992
997
|
* discordServer: // value for 'discordServer'
|
|
998
|
+
* discordId: // value for 'discordId'
|
|
993
999
|
* telegramLink: // value for 'telegramLink'
|
|
994
1000
|
* },
|
|
995
1001
|
* });
|
|
@@ -1138,6 +1144,7 @@ exports.FetchMyProfileV2Document = (0, client_1.gql) `
|
|
|
1138
1144
|
website
|
|
1139
1145
|
discordServer
|
|
1140
1146
|
discordNickname
|
|
1147
|
+
discordId
|
|
1141
1148
|
telegramLink
|
|
1142
1149
|
telegramId
|
|
1143
1150
|
}
|
|
@@ -1158,9 +1165,6 @@ exports.FetchMyProfileV2Document = (0, client_1.gql) `
|
|
|
1158
1165
|
mainWallet
|
|
1159
1166
|
}
|
|
1160
1167
|
xps
|
|
1161
|
-
level
|
|
1162
|
-
levelMinXps
|
|
1163
|
-
levelMaxXps
|
|
1164
1168
|
inviteCodes {
|
|
1165
1169
|
inviteCode
|
|
1166
1170
|
isUsed
|
|
@@ -1257,6 +1261,7 @@ exports.FetchProfileDocument = (0, client_1.gql) `
|
|
|
1257
1261
|
website
|
|
1258
1262
|
discordNickname
|
|
1259
1263
|
discordServer
|
|
1264
|
+
discordId
|
|
1260
1265
|
telegramLink
|
|
1261
1266
|
telegramId
|
|
1262
1267
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -1241,6 +1241,7 @@ declare const schema: {
|
|
|
1241
1241
|
showNsfw?: identitySchema.Maybe<boolean> | undefined;
|
|
1242
1242
|
discordNickname?: identitySchema.Maybe<string> | undefined;
|
|
1243
1243
|
discordServer?: identitySchema.Maybe<string> | undefined;
|
|
1244
|
+
discordId?: identitySchema.Maybe<string> | undefined;
|
|
1244
1245
|
telegramLink?: identitySchema.Maybe<string> | undefined;
|
|
1245
1246
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.IUpdateProfileMutation, identitySchema.Exact<{
|
|
1246
1247
|
username?: identitySchema.Maybe<string> | undefined;
|
|
@@ -1252,6 +1253,7 @@ declare const schema: {
|
|
|
1252
1253
|
showNsfw?: identitySchema.Maybe<boolean> | undefined;
|
|
1253
1254
|
discordNickname?: identitySchema.Maybe<string> | undefined;
|
|
1254
1255
|
discordServer?: identitySchema.Maybe<string> | undefined;
|
|
1256
|
+
discordId?: identitySchema.Maybe<string> | undefined;
|
|
1255
1257
|
telegramLink?: identitySchema.Maybe<string> | undefined;
|
|
1256
1258
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1257
1259
|
useVerifyMfaSecretMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IVerifyMfaSecretMutation, identitySchema.Exact<{
|
|
@@ -1323,6 +1325,7 @@ declare const schema: {
|
|
|
1323
1325
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchUserWalletsQuery, identitySchema.Exact<{
|
|
1324
1326
|
userId: string;
|
|
1325
1327
|
}>>;
|
|
1328
|
+
IBoostType: typeof identitySchema.IBoostType;
|
|
1326
1329
|
ILoginSource: typeof identitySchema.ILoginSource;
|
|
1327
1330
|
ILoginType: typeof identitySchema.ILoginType;
|
|
1328
1331
|
IRole: typeof identitySchema.IRole;
|
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 = {
|
|
@@ -398,9 +404,6 @@ export type IMyProfileV2 = {
|
|
|
398
404
|
rank?: Maybe<Scalars['Float']>;
|
|
399
405
|
wallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
400
406
|
xps?: Maybe<Scalars['Int']>;
|
|
401
|
-
level?: Maybe<Scalars['Int']>;
|
|
402
|
-
levelMinXps?: Maybe<Scalars['Int']>;
|
|
403
|
-
levelMaxXps?: Maybe<Scalars['Int']>;
|
|
404
407
|
inviteCodes?: Maybe<Array<Maybe<IInviteCode>>>;
|
|
405
408
|
referralTypeId?: Maybe<Scalars['ID']>;
|
|
406
409
|
referralTypeName?: Maybe<Scalars['String']>;
|
|
@@ -408,7 +411,7 @@ export type IMyProfileV2 = {
|
|
|
408
411
|
tierId?: Maybe<Scalars['String']>;
|
|
409
412
|
tierName?: Maybe<Scalars['String']>;
|
|
410
413
|
shareLink?: Maybe<Scalars['String']>;
|
|
411
|
-
boost?: Maybe<
|
|
414
|
+
boost?: Maybe<IBoostType>;
|
|
412
415
|
};
|
|
413
416
|
|
|
414
417
|
export type INonce = {
|
|
@@ -435,13 +438,12 @@ export type IProfile = {
|
|
|
435
438
|
rank?: Maybe<Scalars['Float']>;
|
|
436
439
|
wallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
437
440
|
xps?: Maybe<Scalars['Int']>;
|
|
438
|
-
level?: Maybe<Scalars['Int']>;
|
|
439
441
|
referralTypeId?: Maybe<Scalars['ID']>;
|
|
440
442
|
referralTypeName?: Maybe<Scalars['String']>;
|
|
441
443
|
referralTypeColor?: Maybe<IReftypeColor>;
|
|
442
444
|
tierId?: Maybe<Scalars['String']>;
|
|
443
445
|
tierName?: Maybe<Scalars['String']>;
|
|
444
|
-
boost?: Maybe<
|
|
446
|
+
boost?: Maybe<IBoostType>;
|
|
445
447
|
};
|
|
446
448
|
|
|
447
449
|
export type IProof = {
|
|
@@ -545,6 +547,7 @@ export type ISocial = {
|
|
|
545
547
|
website?: Maybe<Scalars['String']>;
|
|
546
548
|
discordNickname?: Maybe<Scalars['String']>;
|
|
547
549
|
discordServer?: Maybe<Scalars['String']>;
|
|
550
|
+
discordId?: Maybe<Scalars['String']>;
|
|
548
551
|
telegramLink?: Maybe<Scalars['String']>;
|
|
549
552
|
telegramId?: Maybe<Scalars['Long']>;
|
|
550
553
|
};
|
|
@@ -651,6 +654,7 @@ export type IResolversTypes = {
|
|
|
651
654
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
652
655
|
AuditNFTBalance: ResolverTypeWrapper<IAuditNftBalance>;
|
|
653
656
|
Blockchains: IBlockchains;
|
|
657
|
+
BoostType: IBoostType;
|
|
654
658
|
CheckTonProofRequest: ICheckTonProofRequest;
|
|
655
659
|
Domain: IDomain;
|
|
656
660
|
EthereumSignInData: IEthereumSignInData;
|
|
@@ -911,9 +915,6 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
911
915
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
912
916
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
913
917
|
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
918
|
inviteCodes?: Resolver<Maybe<Array<Maybe<IResolversTypes['InviteCode']>>>, ParentType, ContextType>;
|
|
918
919
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
919
920
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -921,7 +922,7 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
921
922
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
922
923
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
923
924
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
924
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
925
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
925
926
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
926
927
|
};
|
|
927
928
|
|
|
@@ -950,13 +951,12 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
950
951
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
951
952
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
952
953
|
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
953
|
-
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
954
954
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
955
955
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
956
956
|
referralTypeColor?: Resolver<Maybe<IResolversTypes['ReftypeColor']>, ParentType, ContextType>;
|
|
957
957
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
958
958
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
959
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
959
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
960
960
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
961
961
|
};
|
|
962
962
|
|
|
@@ -982,6 +982,7 @@ export type ISocialResolvers<ContextType = any, ParentType extends IResolversPar
|
|
|
982
982
|
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
983
983
|
discordNickname?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
984
984
|
discordServer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
985
|
+
discordId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
985
986
|
telegramLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
986
987
|
telegramId?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
987
988
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -1292,6 +1293,7 @@ export type IUpdateProfileMutationVariables = Exact<{
|
|
|
1292
1293
|
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
1293
1294
|
discordNickname?: Maybe<Scalars['String']>;
|
|
1294
1295
|
discordServer?: Maybe<Scalars['String']>;
|
|
1296
|
+
discordId?: Maybe<Scalars['String']>;
|
|
1295
1297
|
telegramLink?: Maybe<Scalars['String']>;
|
|
1296
1298
|
}>;
|
|
1297
1299
|
|
|
@@ -1335,8 +1337,8 @@ export type IFetchMyProfileV2QueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
1335
1337
|
|
|
1336
1338
|
|
|
1337
1339
|
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<(
|
|
1340
|
+
Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'boost' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor' | 'shareLink'>
|
|
1341
|
+
& { 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
1342
|
Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'>
|
|
1341
1343
|
& { codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>> }
|
|
1342
1344
|
)>>> }
|
|
@@ -1357,7 +1359,7 @@ export type IFetchProfileQueryVariables = Exact<{
|
|
|
1357
1359
|
|
|
1358
1360
|
export type IFetchProfileQuery = { fetchProfile: (
|
|
1359
1361
|
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'>>>> }
|
|
1362
|
+
& { 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
1363
|
) };
|
|
1362
1364
|
|
|
1363
1365
|
export type IFetchUserWalletsQueryVariables = Exact<{
|
|
@@ -2350,9 +2352,9 @@ export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation
|
|
|
2350
2352
|
export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
|
|
2351
2353
|
export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
|
|
2352
2354
|
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) {
|
|
2355
|
+
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
2356
|
updateProfile(
|
|
2355
|
-
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordServer: $discordServer, telegramLink: $telegramLink}}
|
|
2357
|
+
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
2358
|
)
|
|
2357
2359
|
}
|
|
2358
2360
|
`;
|
|
@@ -2380,6 +2382,7 @@ export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMut
|
|
|
2380
2382
|
* showNsfw: // value for 'showNsfw'
|
|
2381
2383
|
* discordNickname: // value for 'discordNickname'
|
|
2382
2384
|
* discordServer: // value for 'discordServer'
|
|
2385
|
+
* discordId: // value for 'discordId'
|
|
2383
2386
|
* telegramLink: // value for 'telegramLink'
|
|
2384
2387
|
* },
|
|
2385
2388
|
* });
|
|
@@ -2538,6 +2541,7 @@ export const FetchMyProfileV2Document = gql`
|
|
|
2538
2541
|
website
|
|
2539
2542
|
discordServer
|
|
2540
2543
|
discordNickname
|
|
2544
|
+
discordId
|
|
2541
2545
|
telegramLink
|
|
2542
2546
|
telegramId
|
|
2543
2547
|
}
|
|
@@ -2558,9 +2562,6 @@ export const FetchMyProfileV2Document = gql`
|
|
|
2558
2562
|
mainWallet
|
|
2559
2563
|
}
|
|
2560
2564
|
xps
|
|
2561
|
-
level
|
|
2562
|
-
levelMinXps
|
|
2563
|
-
levelMaxXps
|
|
2564
2565
|
inviteCodes {
|
|
2565
2566
|
inviteCode
|
|
2566
2567
|
isUsed
|
|
@@ -2661,6 +2662,7 @@ export const FetchProfileDocument = gql`
|
|
|
2661
2662
|
website
|
|
2662
2663
|
discordNickname
|
|
2663
2664
|
discordServer
|
|
2665
|
+
discordId
|
|
2664
2666
|
telegramLink
|
|
2665
2667
|
telegramId
|
|
2666
2668
|
}
|