@ludo.ninja/api 2.9.6 → 2.9.8
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 +53 -7
- package/build/graphql_tools/__generated__/identityHost/schema.js +53 -4
- package/build/index.d.ts +10 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/identityHost/schema.ts +80 -11
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -88,6 +88,7 @@ export type IInputSocial = {
|
|
|
88
88
|
website?: Maybe<Scalars['String']>;
|
|
89
89
|
discordNickname?: Maybe<Scalars['String']>;
|
|
90
90
|
discordServer?: Maybe<Scalars['String']>;
|
|
91
|
+
telegramLink?: Maybe<Scalars['String']>;
|
|
91
92
|
};
|
|
92
93
|
export type IInviteCode = {
|
|
93
94
|
inviteCode: Scalars['String'];
|
|
@@ -120,6 +121,7 @@ export type IMutation = {
|
|
|
120
121
|
signInElrond: IIdentity;
|
|
121
122
|
signInFlow: IIdentity;
|
|
122
123
|
signInTon: IIdentity;
|
|
124
|
+
signInTonV2: IIdentity;
|
|
123
125
|
addWalletMetamask: Scalars['Boolean'];
|
|
124
126
|
addWalletTezos: Scalars['Boolean'];
|
|
125
127
|
addWalletSolana: Scalars['Boolean'];
|
|
@@ -175,6 +177,10 @@ export type IMutationSignInTonArgs = {
|
|
|
175
177
|
request: ICheckTonProofRequest;
|
|
176
178
|
restore?: Maybe<Scalars['Boolean']>;
|
|
177
179
|
};
|
|
180
|
+
export type IMutationSignInTonV2Args = {
|
|
181
|
+
address: Scalars['String'];
|
|
182
|
+
restore?: Maybe<Scalars['Boolean']>;
|
|
183
|
+
};
|
|
178
184
|
export type IMutationAddWalletMetamaskArgs = {
|
|
179
185
|
signature: Scalars['String'];
|
|
180
186
|
address: Scalars['String'];
|
|
@@ -298,7 +304,6 @@ export type IQuery = {
|
|
|
298
304
|
fetchInviteCode: IInviteCode;
|
|
299
305
|
fetchMyProfileV2: IMyProfileV2;
|
|
300
306
|
fetchProfile: IProfile;
|
|
301
|
-
fetchProfileV2: IMyProfileV2;
|
|
302
307
|
fetchFollowingStatus: IFollowingStatus;
|
|
303
308
|
fetchFollowingStatuses: Array<Maybe<IFollowingStatus>>;
|
|
304
309
|
};
|
|
@@ -317,9 +322,6 @@ export type IQueryFetchInviteCodeArgs = {
|
|
|
317
322
|
export type IQueryFetchProfileArgs = {
|
|
318
323
|
userId: Scalars['ID'];
|
|
319
324
|
};
|
|
320
|
-
export type IQueryFetchProfileV2Args = {
|
|
321
|
-
userId: Scalars['ID'];
|
|
322
|
-
};
|
|
323
325
|
export type IQueryFetchFollowingStatusArgs = {
|
|
324
326
|
userId: Scalars['ID'];
|
|
325
327
|
};
|
|
@@ -350,6 +352,7 @@ export type ISocial = {
|
|
|
350
352
|
website?: Maybe<Scalars['String']>;
|
|
351
353
|
discordNickname?: Maybe<Scalars['String']>;
|
|
352
354
|
discordServer?: Maybe<Scalars['String']>;
|
|
355
|
+
telegramLink?: Maybe<Scalars['String']>;
|
|
353
356
|
};
|
|
354
357
|
export type ITokenPair = {
|
|
355
358
|
authToken: Scalars['String'];
|
|
@@ -569,6 +572,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
569
572
|
signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
|
|
570
573
|
signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
|
|
571
574
|
signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
|
|
575
|
+
signInTonV2?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonV2Args, 'address'>>;
|
|
572
576
|
addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
573
577
|
addWalletTezos?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTezosArgs, 'signature' | 'pubkey'>>;
|
|
574
578
|
addWalletSolana?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletSolanaArgs, 'signature' | 'pubkey'>>;
|
|
@@ -649,7 +653,6 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
649
653
|
fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
|
|
650
654
|
fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
|
|
651
655
|
fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
|
|
652
|
-
fetchProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType, RequireFields<IQueryFetchProfileV2Args, 'userId'>>;
|
|
653
656
|
fetchFollowingStatus?: Resolver<IResolversTypes['FollowingStatus'], ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusArgs, 'userId'>>;
|
|
654
657
|
fetchFollowingStatuses?: Resolver<Array<Maybe<IResolversTypes['FollowingStatus']>>, ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusesArgs, 'userIds'>>;
|
|
655
658
|
};
|
|
@@ -660,6 +663,7 @@ export type ISocialResolvers<ContextType = any, ParentType extends IResolversPar
|
|
|
660
663
|
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
661
664
|
discordNickname?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
662
665
|
discordServer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
666
|
+
telegramLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
663
667
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
664
668
|
};
|
|
665
669
|
export type ITokenPairResolvers<ContextType = any, ParentType extends IResolversParentTypes['TokenPair'] = IResolversParentTypes['TokenPair']> = {
|
|
@@ -873,6 +877,18 @@ export type ISignInTonMutation = {
|
|
|
873
877
|
};
|
|
874
878
|
});
|
|
875
879
|
};
|
|
880
|
+
export type ISignInTonV2MutationVariables = Exact<{
|
|
881
|
+
address: Scalars['String'];
|
|
882
|
+
restore?: Maybe<Scalars['Boolean']>;
|
|
883
|
+
}>;
|
|
884
|
+
export type ISignInTonV2Mutation = {
|
|
885
|
+
signInTonV2: (Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role' | 'reftypeId' | 'reftypeName' | 'reftypeColor'> & {
|
|
886
|
+
tokens: {
|
|
887
|
+
portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
|
|
888
|
+
extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
|
|
889
|
+
};
|
|
890
|
+
});
|
|
891
|
+
};
|
|
876
892
|
export type IUpdateProfileMutationVariables = Exact<{
|
|
877
893
|
username?: Maybe<Scalars['String']>;
|
|
878
894
|
about?: Maybe<Scalars['String']>;
|
|
@@ -883,6 +899,7 @@ export type IUpdateProfileMutationVariables = Exact<{
|
|
|
883
899
|
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
884
900
|
discordNickname?: Maybe<Scalars['String']>;
|
|
885
901
|
discordServer?: Maybe<Scalars['String']>;
|
|
902
|
+
telegramLink?: Maybe<Scalars['String']>;
|
|
886
903
|
}>;
|
|
887
904
|
export type IUpdateProfileMutation = Pick<IMutation, 'updateProfile'>;
|
|
888
905
|
export type IFetchAggregatedMultiversxAuditQueryVariables = Exact<{
|
|
@@ -912,7 +929,7 @@ export type IFetchMyProfileV2QueryVariables = Exact<{
|
|
|
912
929
|
}>;
|
|
913
930
|
export type IFetchMyProfileV2Query = {
|
|
914
931
|
fetchMyProfileV2: (Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor'> & {
|
|
915
|
-
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname'>>;
|
|
932
|
+
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname' | 'telegramLink'>>;
|
|
916
933
|
wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>;
|
|
917
934
|
inviteCodes?: Maybe<Array<Maybe<(Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'> & {
|
|
918
935
|
codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>>;
|
|
@@ -924,7 +941,7 @@ export type IFetchProfileQueryVariables = Exact<{
|
|
|
924
941
|
}>;
|
|
925
942
|
export type IFetchProfileQuery = {
|
|
926
943
|
fetchProfile: (Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'rank' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor'> & {
|
|
927
|
-
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer'>>;
|
|
944
|
+
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer' | 'telegramLink'>>;
|
|
928
945
|
wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>;
|
|
929
946
|
});
|
|
930
947
|
};
|
|
@@ -1501,6 +1518,33 @@ export declare function useSignInTonMutation(baseOptions?: Apollo.MutationHookOp
|
|
|
1501
1518
|
export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation>;
|
|
1502
1519
|
export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
|
|
1503
1520
|
export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
|
|
1521
|
+
export declare const SignInTonV2Document: Apollo.DocumentNode;
|
|
1522
|
+
export type ISignInTonV2MutationFn = Apollo.MutationFunction<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
|
|
1523
|
+
/**
|
|
1524
|
+
* __useSignInTonV2Mutation__
|
|
1525
|
+
*
|
|
1526
|
+
* To run a mutation, you first call `useSignInTonV2Mutation` within a React component and pass it any options that fit your needs.
|
|
1527
|
+
* When your component renders, `useSignInTonV2Mutation` returns a tuple that includes:
|
|
1528
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1529
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1530
|
+
*
|
|
1531
|
+
* @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;
|
|
1532
|
+
*
|
|
1533
|
+
* @example
|
|
1534
|
+
* const [signInTonV2Mutation, { data, loading, error }] = useSignInTonV2Mutation({
|
|
1535
|
+
* variables: {
|
|
1536
|
+
* address: // value for 'address'
|
|
1537
|
+
* restore: // value for 'restore'
|
|
1538
|
+
* },
|
|
1539
|
+
* });
|
|
1540
|
+
*/
|
|
1541
|
+
export declare function useSignInTonV2Mutation(baseOptions?: Apollo.MutationHookOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>): Apollo.MutationTuple<ISignInTonV2Mutation, Exact<{
|
|
1542
|
+
address: string;
|
|
1543
|
+
restore?: Maybe<boolean> | undefined;
|
|
1544
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1545
|
+
export type SignInTonV2MutationHookResult = ReturnType<typeof useSignInTonV2Mutation>;
|
|
1546
|
+
export type SignInTonV2MutationResult = Apollo.MutationResult<ISignInTonV2Mutation>;
|
|
1547
|
+
export type SignInTonV2MutationOptions = Apollo.BaseMutationOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
|
|
1504
1548
|
export declare const UpdateProfileDocument: Apollo.DocumentNode;
|
|
1505
1549
|
export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMutation, IUpdateProfileMutationVariables>;
|
|
1506
1550
|
/**
|
|
@@ -1525,6 +1569,7 @@ export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMut
|
|
|
1525
1569
|
* showNsfw: // value for 'showNsfw'
|
|
1526
1570
|
* discordNickname: // value for 'discordNickname'
|
|
1527
1571
|
* discordServer: // value for 'discordServer'
|
|
1572
|
+
* telegramLink: // value for 'telegramLink'
|
|
1528
1573
|
* },
|
|
1529
1574
|
* });
|
|
1530
1575
|
*/
|
|
@@ -1538,6 +1583,7 @@ export declare function useUpdateProfileMutation(baseOptions?: Apollo.MutationHo
|
|
|
1538
1583
|
showNsfw?: Maybe<boolean> | undefined;
|
|
1539
1584
|
discordNickname?: Maybe<string> | undefined;
|
|
1540
1585
|
discordServer?: Maybe<string> | undefined;
|
|
1586
|
+
telegramLink?: Maybe<string> | undefined;
|
|
1541
1587
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1542
1588
|
export type UpdateProfileMutationHookResult = ReturnType<typeof useUpdateProfileMutation>;
|
|
1543
1589
|
export type UpdateProfileMutationResult = Apollo.MutationResult<IUpdateProfileMutation>;
|
|
@@ -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.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = void 0;
|
|
26
|
+
exports.useFetchAggregatedMultiversxAuditQuery = exports.FetchAggregatedMultiversxAuditDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonV2Mutation = exports.SignInTonV2Document = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSignInAdminMetamaskMutation = exports.SignInAdminMetamaskDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useSaveEmailOfJoinerMutation = exports.SaveEmailOfJoinerDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateTonNonceMutation = exports.CreateTonNonceDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useCreateEvmNonceMutation = exports.CreateEvmNonceDocument = exports.useAddWalletTonMutation = exports.AddWalletTonDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.IRole = exports.IReftypeColor = void 0;
|
|
27
|
+
exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useFetchAggregatedMultiversxAuditLazyQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
/** Sync with ReftypeColor.java */
|
|
@@ -750,10 +750,56 @@ function useSignInTonMutation(baseOptions) {
|
|
|
750
750
|
return Apollo.useMutation(exports.SignInTonDocument, baseOptions);
|
|
751
751
|
}
|
|
752
752
|
exports.useSignInTonMutation = useSignInTonMutation;
|
|
753
|
+
exports.SignInTonV2Document = (0, client_1.gql) `
|
|
754
|
+
mutation SignInTonV2($address: String!, $restore: Boolean) {
|
|
755
|
+
signInTonV2(address: $address, restore: $restore) {
|
|
756
|
+
userId
|
|
757
|
+
wallets
|
|
758
|
+
tokens {
|
|
759
|
+
portalTokenPair {
|
|
760
|
+
authToken
|
|
761
|
+
refreshToken
|
|
762
|
+
}
|
|
763
|
+
extensionTokenPair {
|
|
764
|
+
authToken
|
|
765
|
+
refreshToken
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
newUser
|
|
769
|
+
inviteCode
|
|
770
|
+
role
|
|
771
|
+
reftypeId
|
|
772
|
+
reftypeName
|
|
773
|
+
reftypeColor
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
`;
|
|
777
|
+
/**
|
|
778
|
+
* __useSignInTonV2Mutation__
|
|
779
|
+
*
|
|
780
|
+
* To run a mutation, you first call `useSignInTonV2Mutation` within a React component and pass it any options that fit your needs.
|
|
781
|
+
* When your component renders, `useSignInTonV2Mutation` returns a tuple that includes:
|
|
782
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
783
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
784
|
+
*
|
|
785
|
+
* @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;
|
|
786
|
+
*
|
|
787
|
+
* @example
|
|
788
|
+
* const [signInTonV2Mutation, { data, loading, error }] = useSignInTonV2Mutation({
|
|
789
|
+
* variables: {
|
|
790
|
+
* address: // value for 'address'
|
|
791
|
+
* restore: // value for 'restore'
|
|
792
|
+
* },
|
|
793
|
+
* });
|
|
794
|
+
*/
|
|
795
|
+
function useSignInTonV2Mutation(baseOptions) {
|
|
796
|
+
return Apollo.useMutation(exports.SignInTonV2Document, baseOptions);
|
|
797
|
+
}
|
|
798
|
+
exports.useSignInTonV2Mutation = useSignInTonV2Mutation;
|
|
753
799
|
exports.UpdateProfileDocument = (0, client_1.gql) `
|
|
754
|
-
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String) {
|
|
800
|
+
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $telegramLink: String) {
|
|
755
801
|
updateProfile(
|
|
756
|
-
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordServer: $discordServer}}
|
|
802
|
+
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordServer: $discordServer, telegramLink: $telegramLink}}
|
|
757
803
|
)
|
|
758
804
|
}
|
|
759
805
|
`;
|
|
@@ -779,6 +825,7 @@ exports.UpdateProfileDocument = (0, client_1.gql) `
|
|
|
779
825
|
* showNsfw: // value for 'showNsfw'
|
|
780
826
|
* discordNickname: // value for 'discordNickname'
|
|
781
827
|
* discordServer: // value for 'discordServer'
|
|
828
|
+
* telegramLink: // value for 'telegramLink'
|
|
782
829
|
* },
|
|
783
830
|
* });
|
|
784
831
|
*/
|
|
@@ -899,6 +946,7 @@ exports.FetchMyProfileV2Document = (0, client_1.gql) `
|
|
|
899
946
|
website
|
|
900
947
|
discordServer
|
|
901
948
|
discordNickname
|
|
949
|
+
telegramLink
|
|
902
950
|
}
|
|
903
951
|
views
|
|
904
952
|
createdAt
|
|
@@ -977,6 +1025,7 @@ exports.FetchProfileDocument = (0, client_1.gql) `
|
|
|
977
1025
|
website
|
|
978
1026
|
discordNickname
|
|
979
1027
|
discordServer
|
|
1028
|
+
telegramLink
|
|
980
1029
|
}
|
|
981
1030
|
views
|
|
982
1031
|
createdAt
|
package/build/index.d.ts
CHANGED
|
@@ -745,6 +745,13 @@ declare const schema: {
|
|
|
745
745
|
request: identitySchema.ICheckTonProofRequest;
|
|
746
746
|
restore?: identitySchema.Maybe<boolean> | undefined;
|
|
747
747
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
748
|
+
useSignInTonV2Mutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.ISignInTonV2Mutation, identitySchema.Exact<{
|
|
749
|
+
address: string;
|
|
750
|
+
restore?: identitySchema.Maybe<boolean> | undefined;
|
|
751
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.ISignInTonV2Mutation, identitySchema.Exact<{
|
|
752
|
+
address: string;
|
|
753
|
+
restore?: identitySchema.Maybe<boolean> | undefined;
|
|
754
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
748
755
|
useUpdateProfileMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IUpdateProfileMutation, identitySchema.Exact<{
|
|
749
756
|
username?: identitySchema.Maybe<string> | undefined;
|
|
750
757
|
about?: identitySchema.Maybe<string> | undefined;
|
|
@@ -755,6 +762,7 @@ declare const schema: {
|
|
|
755
762
|
showNsfw?: identitySchema.Maybe<boolean> | undefined;
|
|
756
763
|
discordNickname?: identitySchema.Maybe<string> | undefined;
|
|
757
764
|
discordServer?: identitySchema.Maybe<string> | undefined;
|
|
765
|
+
telegramLink?: identitySchema.Maybe<string> | undefined;
|
|
758
766
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.IUpdateProfileMutation, identitySchema.Exact<{
|
|
759
767
|
username?: identitySchema.Maybe<string> | undefined;
|
|
760
768
|
about?: identitySchema.Maybe<string> | undefined;
|
|
@@ -765,6 +773,7 @@ declare const schema: {
|
|
|
765
773
|
showNsfw?: identitySchema.Maybe<boolean> | undefined;
|
|
766
774
|
discordNickname?: identitySchema.Maybe<string> | undefined;
|
|
767
775
|
discordServer?: identitySchema.Maybe<string> | undefined;
|
|
776
|
+
telegramLink?: identitySchema.Maybe<string> | undefined;
|
|
768
777
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
769
778
|
useFetchAggregatedMultiversxAuditQuery(baseOptions: import("@apollo/client").QueryHookOptions<identitySchema.IFetchAggregatedMultiversxAuditQuery, identitySchema.Exact<{
|
|
770
779
|
userId: string;
|
|
@@ -838,6 +847,7 @@ declare const schema: {
|
|
|
838
847
|
SignInSolanaDocument: import("graphql").DocumentNode;
|
|
839
848
|
SignInTezosDocument: import("graphql").DocumentNode;
|
|
840
849
|
SignInTonDocument: import("graphql").DocumentNode;
|
|
850
|
+
SignInTonV2Document: import("graphql").DocumentNode;
|
|
841
851
|
UpdateProfileDocument: import("graphql").DocumentNode;
|
|
842
852
|
FetchAggregatedMultiversxAuditDocument: import("graphql").DocumentNode;
|
|
843
853
|
FetchMultiversXAuditDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -95,6 +95,7 @@ export type IInputSocial = {
|
|
|
95
95
|
website?: Maybe<Scalars['String']>;
|
|
96
96
|
discordNickname?: Maybe<Scalars['String']>;
|
|
97
97
|
discordServer?: Maybe<Scalars['String']>;
|
|
98
|
+
telegramLink?: Maybe<Scalars['String']>;
|
|
98
99
|
};
|
|
99
100
|
|
|
100
101
|
export type IInviteCode = {
|
|
@@ -132,6 +133,7 @@ export type IMutation = {
|
|
|
132
133
|
signInElrond: IIdentity;
|
|
133
134
|
signInFlow: IIdentity;
|
|
134
135
|
signInTon: IIdentity;
|
|
136
|
+
signInTonV2: IIdentity;
|
|
135
137
|
addWalletMetamask: Scalars['Boolean'];
|
|
136
138
|
addWalletTezos: Scalars['Boolean'];
|
|
137
139
|
addWalletSolana: Scalars['Boolean'];
|
|
@@ -205,6 +207,12 @@ export type IMutationSignInTonArgs = {
|
|
|
205
207
|
};
|
|
206
208
|
|
|
207
209
|
|
|
210
|
+
export type IMutationSignInTonV2Args = {
|
|
211
|
+
address: Scalars['String'];
|
|
212
|
+
restore?: Maybe<Scalars['Boolean']>;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
|
|
208
216
|
export type IMutationAddWalletMetamaskArgs = {
|
|
209
217
|
signature: Scalars['String'];
|
|
210
218
|
address: Scalars['String'];
|
|
@@ -358,7 +366,6 @@ export type IQuery = {
|
|
|
358
366
|
fetchInviteCode: IInviteCode;
|
|
359
367
|
fetchMyProfileV2: IMyProfileV2;
|
|
360
368
|
fetchProfile: IProfile;
|
|
361
|
-
fetchProfileV2: IMyProfileV2;
|
|
362
369
|
fetchFollowingStatus: IFollowingStatus;
|
|
363
370
|
fetchFollowingStatuses: Array<Maybe<IFollowingStatus>>;
|
|
364
371
|
};
|
|
@@ -389,11 +396,6 @@ export type IQueryFetchProfileArgs = {
|
|
|
389
396
|
};
|
|
390
397
|
|
|
391
398
|
|
|
392
|
-
export type IQueryFetchProfileV2Args = {
|
|
393
|
-
userId: Scalars['ID'];
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
|
|
397
399
|
export type IQueryFetchFollowingStatusArgs = {
|
|
398
400
|
userId: Scalars['ID'];
|
|
399
401
|
};
|
|
@@ -429,6 +431,7 @@ export type ISocial = {
|
|
|
429
431
|
website?: Maybe<Scalars['String']>;
|
|
430
432
|
discordNickname?: Maybe<Scalars['String']>;
|
|
431
433
|
discordServer?: Maybe<Scalars['String']>;
|
|
434
|
+
telegramLink?: Maybe<Scalars['String']>;
|
|
432
435
|
};
|
|
433
436
|
|
|
434
437
|
export type ITokenPair = {
|
|
@@ -716,6 +719,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
716
719
|
signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
|
|
717
720
|
signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
|
|
718
721
|
signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
|
|
722
|
+
signInTonV2?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonV2Args, 'address'>>;
|
|
719
723
|
addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
720
724
|
addWalletTezos?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTezosArgs, 'signature' | 'pubkey'>>;
|
|
721
725
|
addWalletSolana?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletSolanaArgs, 'signature' | 'pubkey'>>;
|
|
@@ -799,7 +803,6 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
799
803
|
fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
|
|
800
804
|
fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
|
|
801
805
|
fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
|
|
802
|
-
fetchProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType, RequireFields<IQueryFetchProfileV2Args, 'userId'>>;
|
|
803
806
|
fetchFollowingStatus?: Resolver<IResolversTypes['FollowingStatus'], ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusArgs, 'userId'>>;
|
|
804
807
|
fetchFollowingStatuses?: Resolver<Array<Maybe<IResolversTypes['FollowingStatus']>>, ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusesArgs, 'userIds'>>;
|
|
805
808
|
};
|
|
@@ -811,6 +814,7 @@ export type ISocialResolvers<ContextType = any, ParentType extends IResolversPar
|
|
|
811
814
|
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
812
815
|
discordNickname?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
813
816
|
discordServer?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
817
|
+
telegramLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
814
818
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
815
819
|
};
|
|
816
820
|
|
|
@@ -1060,6 +1064,17 @@ export type ISignInTonMutation = { signInTon: (
|
|
|
1060
1064
|
& { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
|
|
1061
1065
|
) };
|
|
1062
1066
|
|
|
1067
|
+
export type ISignInTonV2MutationVariables = Exact<{
|
|
1068
|
+
address: Scalars['String'];
|
|
1069
|
+
restore?: Maybe<Scalars['Boolean']>;
|
|
1070
|
+
}>;
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
export type ISignInTonV2Mutation = { signInTonV2: (
|
|
1074
|
+
Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role' | 'reftypeId' | 'reftypeName' | 'reftypeColor'>
|
|
1075
|
+
& { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
|
|
1076
|
+
) };
|
|
1077
|
+
|
|
1063
1078
|
export type IUpdateProfileMutationVariables = Exact<{
|
|
1064
1079
|
username?: Maybe<Scalars['String']>;
|
|
1065
1080
|
about?: Maybe<Scalars['String']>;
|
|
@@ -1070,6 +1085,7 @@ export type IUpdateProfileMutationVariables = Exact<{
|
|
|
1070
1085
|
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
1071
1086
|
discordNickname?: Maybe<Scalars['String']>;
|
|
1072
1087
|
discordServer?: Maybe<Scalars['String']>;
|
|
1088
|
+
telegramLink?: Maybe<Scalars['String']>;
|
|
1073
1089
|
}>;
|
|
1074
1090
|
|
|
1075
1091
|
|
|
@@ -1106,7 +1122,7 @@ export type IFetchMyProfileV2QueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
1106
1122
|
|
|
1107
1123
|
export type IFetchMyProfileV2Query = { fetchMyProfileV2: (
|
|
1108
1124
|
Pick<IMyProfileV2, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor'>
|
|
1109
|
-
& { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordServer' | 'discordNickname'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>>, inviteCodes?: Maybe<Array<Maybe<(
|
|
1125
|
+
& { 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<(
|
|
1110
1126
|
Pick<IInviteCode, 'inviteCode' | 'isUsed' | 'maxUsagesLimit' | 'codeUsersNum'>
|
|
1111
1127
|
& { codeUsers: Array<Pick<IInviteCodeUser, 'inviteeId' | 'usedAt'>> }
|
|
1112
1128
|
)>>> }
|
|
@@ -1119,7 +1135,7 @@ export type IFetchProfileQueryVariables = Exact<{
|
|
|
1119
1135
|
|
|
1120
1136
|
export type IFetchProfileQuery = { fetchProfile: (
|
|
1121
1137
|
Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'rank' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'active' | 'deleted' | 'showNsfw' | 'referralTypeId' | 'referralTypeName' | 'referralTypeColor'>
|
|
1122
|
-
& { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>> }
|
|
1138
|
+
& { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website' | 'discordNickname' | 'discordServer' | 'telegramLink'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>> }
|
|
1123
1139
|
) };
|
|
1124
1140
|
|
|
1125
1141
|
export type IFetchUserWalletsQueryVariables = Exact<{
|
|
@@ -1918,10 +1934,60 @@ export function useSignInTonMutation(baseOptions?: Apollo.MutationHookOptions<IS
|
|
|
1918
1934
|
export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation>;
|
|
1919
1935
|
export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
|
|
1920
1936
|
export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
|
|
1937
|
+
export const SignInTonV2Document = gql`
|
|
1938
|
+
mutation SignInTonV2($address: String!, $restore: Boolean) {
|
|
1939
|
+
signInTonV2(address: $address, restore: $restore) {
|
|
1940
|
+
userId
|
|
1941
|
+
wallets
|
|
1942
|
+
tokens {
|
|
1943
|
+
portalTokenPair {
|
|
1944
|
+
authToken
|
|
1945
|
+
refreshToken
|
|
1946
|
+
}
|
|
1947
|
+
extensionTokenPair {
|
|
1948
|
+
authToken
|
|
1949
|
+
refreshToken
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
newUser
|
|
1953
|
+
inviteCode
|
|
1954
|
+
role
|
|
1955
|
+
reftypeId
|
|
1956
|
+
reftypeName
|
|
1957
|
+
reftypeColor
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
`;
|
|
1961
|
+
export type ISignInTonV2MutationFn = Apollo.MutationFunction<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
|
|
1962
|
+
|
|
1963
|
+
/**
|
|
1964
|
+
* __useSignInTonV2Mutation__
|
|
1965
|
+
*
|
|
1966
|
+
* To run a mutation, you first call `useSignInTonV2Mutation` within a React component and pass it any options that fit your needs.
|
|
1967
|
+
* When your component renders, `useSignInTonV2Mutation` returns a tuple that includes:
|
|
1968
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1969
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1970
|
+
*
|
|
1971
|
+
* @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;
|
|
1972
|
+
*
|
|
1973
|
+
* @example
|
|
1974
|
+
* const [signInTonV2Mutation, { data, loading, error }] = useSignInTonV2Mutation({
|
|
1975
|
+
* variables: {
|
|
1976
|
+
* address: // value for 'address'
|
|
1977
|
+
* restore: // value for 'restore'
|
|
1978
|
+
* },
|
|
1979
|
+
* });
|
|
1980
|
+
*/
|
|
1981
|
+
export function useSignInTonV2Mutation(baseOptions?: Apollo.MutationHookOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>) {
|
|
1982
|
+
return Apollo.useMutation<ISignInTonV2Mutation, ISignInTonV2MutationVariables>(SignInTonV2Document, baseOptions);
|
|
1983
|
+
}
|
|
1984
|
+
export type SignInTonV2MutationHookResult = ReturnType<typeof useSignInTonV2Mutation>;
|
|
1985
|
+
export type SignInTonV2MutationResult = Apollo.MutationResult<ISignInTonV2Mutation>;
|
|
1986
|
+
export type SignInTonV2MutationOptions = Apollo.BaseMutationOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
|
|
1921
1987
|
export const UpdateProfileDocument = gql`
|
|
1922
|
-
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String) {
|
|
1988
|
+
mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $telegramLink: String) {
|
|
1923
1989
|
updateProfile(
|
|
1924
|
-
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordServer: $discordServer}}
|
|
1990
|
+
profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website, discordNickname: $discordNickname, discordServer: $discordServer, telegramLink: $telegramLink}}
|
|
1925
1991
|
)
|
|
1926
1992
|
}
|
|
1927
1993
|
`;
|
|
@@ -1949,6 +2015,7 @@ export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMut
|
|
|
1949
2015
|
* showNsfw: // value for 'showNsfw'
|
|
1950
2016
|
* discordNickname: // value for 'discordNickname'
|
|
1951
2017
|
* discordServer: // value for 'discordServer'
|
|
2018
|
+
* telegramLink: // value for 'telegramLink'
|
|
1952
2019
|
* },
|
|
1953
2020
|
* });
|
|
1954
2021
|
*/
|
|
@@ -2075,6 +2142,7 @@ export const FetchMyProfileV2Document = gql`
|
|
|
2075
2142
|
website
|
|
2076
2143
|
discordServer
|
|
2077
2144
|
discordNickname
|
|
2145
|
+
telegramLink
|
|
2078
2146
|
}
|
|
2079
2147
|
views
|
|
2080
2148
|
createdAt
|
|
@@ -2155,6 +2223,7 @@ export const FetchProfileDocument = gql`
|
|
|
2155
2223
|
website
|
|
2156
2224
|
discordNickname
|
|
2157
2225
|
discordServer
|
|
2226
|
+
telegramLink
|
|
2158
2227
|
}
|
|
2159
2228
|
views
|
|
2160
2229
|
createdAt
|