@ludo.ninja/api 3.2.45 → 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 +20 -15
- package/build/graphql_tools/__generated__/identityHost/schema.js +14 -7
- package/build/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/identityHost/schema.ts +26 -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,7 +446,9 @@ 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']>;
|
|
451
|
+
telegramId?: Maybe<Scalars['Long']>;
|
|
449
452
|
};
|
|
450
453
|
export type ITokenPair = {
|
|
451
454
|
authToken: Scalars['String'];
|
|
@@ -504,6 +507,7 @@ export type IResolversTypes = {
|
|
|
504
507
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
505
508
|
AuditNFTBalance: ResolverTypeWrapper<IAuditNftBalance>;
|
|
506
509
|
Blockchains: IBlockchains;
|
|
510
|
+
BoostType: IBoostType;
|
|
507
511
|
CheckTonProofRequest: ICheckTonProofRequest;
|
|
508
512
|
Domain: IDomain;
|
|
509
513
|
EthereumSignInData: IEthereumSignInData;
|
|
@@ -735,9 +739,6 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
735
739
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
736
740
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
737
741
|
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
738
|
-
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
739
|
-
levelMinXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
740
|
-
levelMaxXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
741
742
|
inviteCodes?: Resolver<Maybe<Array<Maybe<IResolversTypes['InviteCode']>>>, ParentType, ContextType>;
|
|
742
743
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
743
744
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -745,7 +746,7 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
745
746
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
746
747
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
747
748
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
748
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
749
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
749
750
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
750
751
|
};
|
|
751
752
|
export type INonceResolvers<ContextType = any, ParentType extends IResolversParentTypes['Nonce'] = IResolversParentTypes['Nonce']> = {
|
|
@@ -772,13 +773,12 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
772
773
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
773
774
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
774
775
|
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
775
|
-
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
776
776
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
777
777
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
778
778
|
referralTypeColor?: Resolver<Maybe<IResolversTypes['ReftypeColor']>, ParentType, ContextType>;
|
|
779
779
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
780
780
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
781
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
781
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
782
782
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
783
783
|
};
|
|
784
784
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
@@ -802,7 +802,9 @@ export type ISocialResolvers<ContextType = any, ParentType extends IResolversPar
|
|
|
802
802
|
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
803
803
|
discordNickname?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
804
804
|
discordServer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
805
|
+
discordId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
805
806
|
telegramLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
807
|
+
telegramId?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
806
808
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
807
809
|
};
|
|
808
810
|
export type ITokenPairResolvers<ContextType = any, ParentType extends IResolversParentTypes['TokenPair'] = IResolversParentTypes['TokenPair']> = {
|
|
@@ -1073,6 +1075,7 @@ export type IUpdateProfileMutationVariables = Exact<{
|
|
|
1073
1075
|
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
1074
1076
|
discordNickname?: Maybe<Scalars['String']>;
|
|
1075
1077
|
discordServer?: Maybe<Scalars['String']>;
|
|
1078
|
+
discordId?: Maybe<Scalars['String']>;
|
|
1076
1079
|
telegramLink?: Maybe<Scalars['String']>;
|
|
1077
1080
|
}>;
|
|
1078
1081
|
export type IUpdateProfileMutation = Pick<IMutation, 'updateProfile'>;
|
|
@@ -1106,8 +1109,8 @@ export type IFetchMyProfileV2QueryVariables = Exact<{
|
|
|
1106
1109
|
[key: string]: never;
|
|
1107
1110
|
}>;
|
|
1108
1111
|
export type IFetchMyProfileV2Query = {
|
|
1109
|
-
fetchMyProfileV2: (Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'boost' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | '
|
|
1110
|
-
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname' | 'telegramLink'>>;
|
|
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'>>;
|
|
1111
1114
|
wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>;
|
|
1112
1115
|
inviteCodes?: Maybe<Array<Maybe<(Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'> & {
|
|
1113
1116
|
codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>>;
|
|
@@ -1126,7 +1129,7 @@ export type IFetchProfileQueryVariables = Exact<{
|
|
|
1126
1129
|
}>;
|
|
1127
1130
|
export type IFetchProfileQuery = {
|
|
1128
1131
|
fetchProfile: (Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'boost' | 'following' | 'followings' | 'followers' | 'rank' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor' | 'xps'> & {
|
|
1129
|
-
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer' | 'telegramLink'>>;
|
|
1132
|
+
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer' | 'discordId' | 'telegramLink' | 'telegramId'>>;
|
|
1130
1133
|
wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>;
|
|
1131
1134
|
});
|
|
1132
1135
|
};
|
|
@@ -1859,6 +1862,7 @@ export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMut
|
|
|
1859
1862
|
* showNsfw: // value for 'showNsfw'
|
|
1860
1863
|
* discordNickname: // value for 'discordNickname'
|
|
1861
1864
|
* discordServer: // value for 'discordServer'
|
|
1865
|
+
* discordId: // value for 'discordId'
|
|
1862
1866
|
* telegramLink: // value for 'telegramLink'
|
|
1863
1867
|
* },
|
|
1864
1868
|
* });
|
|
@@ -1873,6 +1877,7 @@ export declare function useUpdateProfileMutation(baseOptions?: Apollo.MutationHo
|
|
|
1873
1877
|
showNsfw?: Maybe<boolean> | undefined;
|
|
1874
1878
|
discordNickname?: Maybe<string> | undefined;
|
|
1875
1879
|
discordServer?: Maybe<string> | undefined;
|
|
1880
|
+
discordId?: Maybe<string> | undefined;
|
|
1876
1881
|
telegramLink?: Maybe<string> | undefined;
|
|
1877
1882
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1878
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,7 +1144,9 @@ exports.FetchMyProfileV2Document = (0, client_1.gql) `
|
|
|
1138
1144
|
website
|
|
1139
1145
|
discordServer
|
|
1140
1146
|
discordNickname
|
|
1147
|
+
discordId
|
|
1141
1148
|
telegramLink
|
|
1149
|
+
telegramId
|
|
1142
1150
|
}
|
|
1143
1151
|
views
|
|
1144
1152
|
createdAt
|
|
@@ -1157,9 +1165,6 @@ exports.FetchMyProfileV2Document = (0, client_1.gql) `
|
|
|
1157
1165
|
mainWallet
|
|
1158
1166
|
}
|
|
1159
1167
|
xps
|
|
1160
|
-
level
|
|
1161
|
-
levelMinXps
|
|
1162
|
-
levelMaxXps
|
|
1163
1168
|
inviteCodes {
|
|
1164
1169
|
inviteCode
|
|
1165
1170
|
isUsed
|
|
@@ -1256,7 +1261,9 @@ exports.FetchProfileDocument = (0, client_1.gql) `
|
|
|
1256
1261
|
website
|
|
1257
1262
|
discordNickname
|
|
1258
1263
|
discordServer
|
|
1264
|
+
discordId
|
|
1259
1265
|
telegramLink
|
|
1266
|
+
telegramId
|
|
1260
1267
|
}
|
|
1261
1268
|
views
|
|
1262
1269
|
createdAt
|
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,7 +547,9 @@ 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']>;
|
|
552
|
+
telegramId?: Maybe<Scalars['Long']>;
|
|
549
553
|
};
|
|
550
554
|
|
|
551
555
|
export type ITokenPair = {
|
|
@@ -650,6 +654,7 @@ export type IResolversTypes = {
|
|
|
650
654
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
651
655
|
AuditNFTBalance: ResolverTypeWrapper<IAuditNftBalance>;
|
|
652
656
|
Blockchains: IBlockchains;
|
|
657
|
+
BoostType: IBoostType;
|
|
653
658
|
CheckTonProofRequest: ICheckTonProofRequest;
|
|
654
659
|
Domain: IDomain;
|
|
655
660
|
EthereumSignInData: IEthereumSignInData;
|
|
@@ -910,9 +915,6 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
910
915
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
911
916
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
912
917
|
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
913
|
-
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
914
|
-
levelMinXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
915
|
-
levelMaxXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
916
918
|
inviteCodes?: Resolver<Maybe<Array<Maybe<IResolversTypes['InviteCode']>>>, ParentType, ContextType>;
|
|
917
919
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
918
920
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -920,7 +922,7 @@ export type IMyProfileV2Resolvers<ContextType = any, ParentType extends IResolve
|
|
|
920
922
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
921
923
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
922
924
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
923
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
925
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
924
926
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
925
927
|
};
|
|
926
928
|
|
|
@@ -949,13 +951,12 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
949
951
|
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
950
952
|
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
951
953
|
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
952
|
-
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
953
954
|
referralTypeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
954
955
|
referralTypeName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
955
956
|
referralTypeColor?: Resolver<Maybe<IResolversTypes['ReftypeColor']>, ParentType, ContextType>;
|
|
956
957
|
tierId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
957
958
|
tierName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
958
|
-
boost?: Resolver<Maybe<IResolversTypes['
|
|
959
|
+
boost?: Resolver<Maybe<IResolversTypes['BoostType']>, ParentType, ContextType>;
|
|
959
960
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
960
961
|
};
|
|
961
962
|
|
|
@@ -981,7 +982,9 @@ export type ISocialResolvers<ContextType = any, ParentType extends IResolversPar
|
|
|
981
982
|
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
982
983
|
discordNickname?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
983
984
|
discordServer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
985
|
+
discordId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
984
986
|
telegramLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
987
|
+
telegramId?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
985
988
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
986
989
|
};
|
|
987
990
|
|
|
@@ -1290,6 +1293,7 @@ export type IUpdateProfileMutationVariables = Exact<{
|
|
|
1290
1293
|
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
1291
1294
|
discordNickname?: Maybe<Scalars['String']>;
|
|
1292
1295
|
discordServer?: Maybe<Scalars['String']>;
|
|
1296
|
+
discordId?: Maybe<Scalars['String']>;
|
|
1293
1297
|
telegramLink?: Maybe<Scalars['String']>;
|
|
1294
1298
|
}>;
|
|
1295
1299
|
|
|
@@ -1333,8 +1337,8 @@ export type IFetchMyProfileV2QueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
1333
1337
|
|
|
1334
1338
|
|
|
1335
1339
|
export type IFetchMyProfileV2Query = { fetchMyProfileV2: (
|
|
1336
|
-
Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'boost' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | '
|
|
1337
|
-
& { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname' | 'telegramLink'>>, 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<(
|
|
1338
1342
|
Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'>
|
|
1339
1343
|
& { codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>> }
|
|
1340
1344
|
)>>> }
|
|
@@ -1355,7 +1359,7 @@ export type IFetchProfileQueryVariables = Exact<{
|
|
|
1355
1359
|
|
|
1356
1360
|
export type IFetchProfileQuery = { fetchProfile: (
|
|
1357
1361
|
Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'boost' | 'following' | 'followings' | 'followers' | 'rank' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor' | 'xps'>
|
|
1358
|
-
& { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer' | 'telegramLink'>>, 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'>>>> }
|
|
1359
1363
|
) };
|
|
1360
1364
|
|
|
1361
1365
|
export type IFetchUserWalletsQueryVariables = Exact<{
|
|
@@ -2348,9 +2352,9 @@ export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation
|
|
|
2348
2352
|
export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
|
|
2349
2353
|
export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
|
|
2350
2354
|
export const UpdateProfileDocument = gql`
|
|
2351
|
-
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) {
|
|
2352
2356
|
updateProfile(
|
|
2353
|
-
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}}
|
|
2354
2358
|
)
|
|
2355
2359
|
}
|
|
2356
2360
|
`;
|
|
@@ -2378,6 +2382,7 @@ export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMut
|
|
|
2378
2382
|
* showNsfw: // value for 'showNsfw'
|
|
2379
2383
|
* discordNickname: // value for 'discordNickname'
|
|
2380
2384
|
* discordServer: // value for 'discordServer'
|
|
2385
|
+
* discordId: // value for 'discordId'
|
|
2381
2386
|
* telegramLink: // value for 'telegramLink'
|
|
2382
2387
|
* },
|
|
2383
2388
|
* });
|
|
@@ -2536,7 +2541,9 @@ export const FetchMyProfileV2Document = gql`
|
|
|
2536
2541
|
website
|
|
2537
2542
|
discordServer
|
|
2538
2543
|
discordNickname
|
|
2544
|
+
discordId
|
|
2539
2545
|
telegramLink
|
|
2546
|
+
telegramId
|
|
2540
2547
|
}
|
|
2541
2548
|
views
|
|
2542
2549
|
createdAt
|
|
@@ -2555,9 +2562,6 @@ export const FetchMyProfileV2Document = gql`
|
|
|
2555
2562
|
mainWallet
|
|
2556
2563
|
}
|
|
2557
2564
|
xps
|
|
2558
|
-
level
|
|
2559
|
-
levelMinXps
|
|
2560
|
-
levelMaxXps
|
|
2561
2565
|
inviteCodes {
|
|
2562
2566
|
inviteCode
|
|
2563
2567
|
isUsed
|
|
@@ -2658,7 +2662,9 @@ export const FetchProfileDocument = gql`
|
|
|
2658
2662
|
website
|
|
2659
2663
|
discordNickname
|
|
2660
2664
|
discordServer
|
|
2665
|
+
discordId
|
|
2661
2666
|
telegramLink
|
|
2667
|
+
telegramId
|
|
2662
2668
|
}
|
|
2663
2669
|
views
|
|
2664
2670
|
createdAt
|