@ludo.ninja/api 3.0.92 → 3.0.93

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.
@@ -147,7 +147,6 @@ export type IMutation = {
147
147
  signInElrond: IIdentity;
148
148
  signInFlow: IIdentity;
149
149
  signInTon: IIdentity;
150
- signInTonV2: IIdentity;
151
150
  signInEthereum: IIdentity;
152
151
  signInEthereumWeb3Auth: IIdentity;
153
152
  addWalletMetamask: Scalars['Boolean'];
@@ -156,7 +155,6 @@ export type IMutation = {
156
155
  addWalletElrond: Scalars['Boolean'];
157
156
  addWalletFlow: Scalars['Boolean'];
158
157
  addWalletTon: Scalars['Boolean'];
159
- addWalletTonV2: Scalars['Boolean'];
160
158
  removeWallet: Scalars['Boolean'];
161
159
  setMainWallet: Scalars['Boolean'];
162
160
  generateNewInviteCodes: Array<IUserInviteCode>;
@@ -212,11 +210,6 @@ export type IMutationSignInTonArgs = {
212
210
  restore?: Maybe<Scalars['Boolean']>;
213
211
  loginSource?: Maybe<ILoginSource>;
214
212
  };
215
- export type IMutationSignInTonV2Args = {
216
- address: Scalars['String'];
217
- restore?: Maybe<Scalars['Boolean']>;
218
- loginSource?: Maybe<ILoginSource>;
219
- };
220
213
  export type IMutationSignInEthereumArgs = {
221
214
  signInData: IEthereumSignInData;
222
215
  loginSource?: Maybe<ILoginSource>;
@@ -251,9 +244,6 @@ export type IMutationAddWalletFlowArgs = {
251
244
  export type IMutationAddWalletTonArgs = {
252
245
  request: ICheckTonProofRequest;
253
246
  };
254
- export type IMutationAddWalletTonV2Args = {
255
- address: Scalars['String'];
256
- };
257
247
  export type IMutationRemoveWalletArgs = {
258
248
  blockchain: Scalars['String'];
259
249
  address: Scalars['String'];
@@ -349,8 +339,10 @@ export type IProof = {
349
339
  export type IQuery = {
350
340
  getDummy: Scalars['String'];
351
341
  fetchUserWallets: Array<Maybe<IWallet>>;
342
+ fetchExtendedUserWallets: Array<Maybe<IWallet>>;
352
343
  fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
353
344
  fetchAggregatedMultiversxAudit?: Maybe<IMultiversxAudit>;
345
+ fetchIsLudoNftMintable: Scalars['Boolean'];
354
346
  fetchInviteCode: IInviteCode;
355
347
  fetchMyProfileV2: IMyProfileV2;
356
348
  fetchProfile: IProfile;
@@ -360,12 +352,19 @@ export type IQuery = {
360
352
  export type IQueryFetchUserWalletsArgs = {
361
353
  userId: Scalars['ID'];
362
354
  };
355
+ export type IQueryFetchExtendedUserWalletsArgs = {
356
+ userId: Scalars['ID'];
357
+ };
363
358
  export type IQueryFetchMultiversxAuditArgs = {
364
359
  wallet: Scalars['String'];
365
360
  };
366
361
  export type IQueryFetchAggregatedMultiversxAuditArgs = {
367
362
  userId: Scalars['ID'];
368
363
  };
364
+ export type IQueryFetchIsLudoNftMintableArgs = {
365
+ blockchain: Scalars['String'];
366
+ address: Scalars['String'];
367
+ };
369
368
  export type IQueryFetchInviteCodeArgs = {
370
369
  inviteCode: Scalars['String'];
371
370
  };
@@ -631,7 +630,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
631
630
  signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
632
631
  signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
633
632
  signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
634
- signInTonV2?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonV2Args, 'address'>>;
635
633
  signInEthereum?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumArgs, 'signInData'>>;
636
634
  signInEthereumWeb3Auth?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumWeb3AuthArgs, 'signInData' | 'loginType'>>;
637
635
  addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
@@ -640,7 +638,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
640
638
  addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
641
639
  addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
642
640
  addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'request'>>;
643
- addWalletTonV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonV2Args, 'address'>>;
644
641
  removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
645
642
  setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
646
643
  generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
@@ -711,8 +708,10 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
711
708
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
712
709
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
713
710
  fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
711
+ fetchExtendedUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchExtendedUserWalletsArgs, 'userId'>>;
714
712
  fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
715
713
  fetchAggregatedMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchAggregatedMultiversxAuditArgs, 'userId'>>;
714
+ fetchIsLudoNftMintable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryFetchIsLudoNftMintableArgs, 'blockchain' | 'address'>>;
716
715
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
717
716
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
718
717
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
@@ -966,19 +965,6 @@ export type ISignInTonMutation = {
966
965
  };
967
966
  });
968
967
  };
969
- export type ISignInTonV2MutationVariables = Exact<{
970
- address: Scalars['String'];
971
- restore?: Maybe<Scalars['Boolean']>;
972
- loginSource?: Maybe<ILoginSource>;
973
- }>;
974
- export type ISignInTonV2Mutation = {
975
- signInTonV2: (Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role' | 'reftypeId' | 'reftypeName' | 'reftypeColor'> & {
976
- tokens: {
977
- portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
978
- extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>;
979
- };
980
- });
981
- };
982
968
  export type IUpdateProfileMutationVariables = Exact<{
983
969
  username?: Maybe<Scalars['String']>;
984
970
  about?: Maybe<Scalars['String']>;
@@ -1026,6 +1012,11 @@ export type IFetchMyProfileV2Query = {
1026
1012
  })>>>;
1027
1013
  });
1028
1014
  };
1015
+ export type IFetchIsLudoNftMintableQueryVariables = Exact<{
1016
+ blockchain: Scalars['String'];
1017
+ address: Scalars['String'];
1018
+ }>;
1019
+ export type IFetchIsLudoNftMintableQuery = Pick<IQuery, 'fetchIsLudoNftMintable'>;
1029
1020
  export type IFetchProfileQueryVariables = Exact<{
1030
1021
  userId: Scalars['ID'];
1031
1022
  }>;
@@ -1661,35 +1652,6 @@ export declare function useSignInTonMutation(baseOptions?: Apollo.MutationHookOp
1661
1652
  export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation>;
1662
1653
  export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
1663
1654
  export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
1664
- export declare const SignInTonV2Document: Apollo.DocumentNode;
1665
- export type ISignInTonV2MutationFn = Apollo.MutationFunction<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
1666
- /**
1667
- * __useSignInTonV2Mutation__
1668
- *
1669
- * To run a mutation, you first call `useSignInTonV2Mutation` within a React component and pass it any options that fit your needs.
1670
- * When your component renders, `useSignInTonV2Mutation` returns a tuple that includes:
1671
- * - A mutate function that you can call at any time to execute the mutation
1672
- * - An object with fields that represent the current status of the mutation's execution
1673
- *
1674
- * @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;
1675
- *
1676
- * @example
1677
- * const [signInTonV2Mutation, { data, loading, error }] = useSignInTonV2Mutation({
1678
- * variables: {
1679
- * address: // value for 'address'
1680
- * restore: // value for 'restore'
1681
- * loginSource: // value for 'loginSource'
1682
- * },
1683
- * });
1684
- */
1685
- export declare function useSignInTonV2Mutation(baseOptions?: Apollo.MutationHookOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>): Apollo.MutationTuple<ISignInTonV2Mutation, Exact<{
1686
- address: string;
1687
- restore?: Maybe<boolean> | undefined;
1688
- loginSource?: Maybe<ILoginSource> | undefined;
1689
- }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1690
- export type SignInTonV2MutationHookResult = ReturnType<typeof useSignInTonV2Mutation>;
1691
- export type SignInTonV2MutationResult = Apollo.MutationResult<ISignInTonV2Mutation>;
1692
- export type SignInTonV2MutationOptions = Apollo.BaseMutationOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
1693
1655
  export declare const UpdateProfileDocument: Apollo.DocumentNode;
1694
1656
  export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMutation, IUpdateProfileMutationVariables>;
1695
1657
  /**
@@ -1810,6 +1772,35 @@ export declare function useFetchMyProfileV2LazyQuery(baseOptions?: Apollo.LazyQu
1810
1772
  export type FetchMyProfileV2QueryHookResult = ReturnType<typeof useFetchMyProfileV2Query>;
1811
1773
  export type FetchMyProfileV2LazyQueryHookResult = ReturnType<typeof useFetchMyProfileV2LazyQuery>;
1812
1774
  export type FetchMyProfileV2QueryResult = Apollo.QueryResult<IFetchMyProfileV2Query, IFetchMyProfileV2QueryVariables>;
1775
+ export declare const FetchIsLudoNftMintableDocument: Apollo.DocumentNode;
1776
+ /**
1777
+ * __useFetchIsLudoNftMintableQuery__
1778
+ *
1779
+ * To run a query within a React component, call `useFetchIsLudoNftMintableQuery` and pass it any options that fit your needs.
1780
+ * When your component renders, `useFetchIsLudoNftMintableQuery` returns an object from Apollo Client that contains loading, error, and data properties
1781
+ * you can use to render your UI.
1782
+ *
1783
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1784
+ *
1785
+ * @example
1786
+ * const { data, loading, error } = useFetchIsLudoNftMintableQuery({
1787
+ * variables: {
1788
+ * blockchain: // value for 'blockchain'
1789
+ * address: // value for 'address'
1790
+ * },
1791
+ * });
1792
+ */
1793
+ export declare function useFetchIsLudoNftMintableQuery(baseOptions: Apollo.QueryHookOptions<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>): Apollo.QueryResult<IFetchIsLudoNftMintableQuery, Exact<{
1794
+ blockchain: string;
1795
+ address: string;
1796
+ }>>;
1797
+ export declare function useFetchIsLudoNftMintableLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>): Apollo.LazyQueryResultTuple<IFetchIsLudoNftMintableQuery, Exact<{
1798
+ blockchain: string;
1799
+ address: string;
1800
+ }>>;
1801
+ export type FetchIsLudoNftMintableQueryHookResult = ReturnType<typeof useFetchIsLudoNftMintableQuery>;
1802
+ export type FetchIsLudoNftMintableLazyQueryHookResult = ReturnType<typeof useFetchIsLudoNftMintableLazyQuery>;
1803
+ export type FetchIsLudoNftMintableQueryResult = Apollo.QueryResult<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>;
1813
1804
  export declare const FetchProfileDocument: Apollo.DocumentNode;
1814
1805
  /**
1815
1806
  * __useFetchProfileQuery__
@@ -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.useSignInTonV2Mutation = exports.SignInTonV2Document = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSignInAdminMetamaskMutation = exports.SignInAdminMetamaskDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useSaveEmailOfJoinerMutation = exports.SaveEmailOfJoinerDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateTonNonceMutation = exports.CreateTonNonceDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useCreateEvmNonceMutation = exports.CreateEvmNonceDocument = exports.useAddWalletTonMutation = exports.AddWalletTonDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.useSignInEthereumWeb3AuthMutation = exports.SignInEthereumWeb3AuthDocument = exports.IRole = exports.IReftypeColor = exports.ILoginType = exports.ILoginSource = void 0;
27
- exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useFetchAggregatedMultiversxAuditLazyQuery = exports.useFetchAggregatedMultiversxAuditQuery = exports.FetchAggregatedMultiversxAuditDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = void 0;
26
+ exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSignInAdminMetamaskMutation = exports.SignInAdminMetamaskDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useSaveEmailOfJoinerMutation = exports.SaveEmailOfJoinerDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateTonNonceMutation = exports.CreateTonNonceDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useCreateEvmNonceMutation = exports.CreateEvmNonceDocument = exports.useAddWalletTonMutation = exports.AddWalletTonDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.useSignInEthereumWeb3AuthMutation = exports.SignInEthereumWeb3AuthDocument = exports.IRole = exports.IReftypeColor = exports.ILoginType = exports.ILoginSource = void 0;
27
+ exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchIsLudoNftMintableLazyQuery = exports.useFetchIsLudoNftMintableQuery = exports.FetchIsLudoNftMintableDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useFetchAggregatedMultiversxAuditLazyQuery = exports.useFetchAggregatedMultiversxAuditQuery = exports.FetchAggregatedMultiversxAuditDocument = void 0;
28
28
  const client_1 = require("@apollo/client");
29
29
  const Apollo = __importStar(require("@apollo/client"));
30
30
  /** Please sync with ApplicationType.java */
@@ -861,53 +861,6 @@ function useSignInTonMutation(baseOptions) {
861
861
  return Apollo.useMutation(exports.SignInTonDocument, baseOptions);
862
862
  }
863
863
  exports.useSignInTonMutation = useSignInTonMutation;
864
- exports.SignInTonV2Document = (0, client_1.gql) `
865
- mutation SignInTonV2($address: String!, $restore: Boolean, $loginSource: LoginSource) {
866
- signInTonV2(address: $address, restore: $restore, loginSource: $loginSource) {
867
- userId
868
- wallets
869
- tokens {
870
- portalTokenPair {
871
- authToken
872
- refreshToken
873
- }
874
- extensionTokenPair {
875
- authToken
876
- refreshToken
877
- }
878
- }
879
- newUser
880
- inviteCode
881
- role
882
- reftypeId
883
- reftypeName
884
- reftypeColor
885
- }
886
- }
887
- `;
888
- /**
889
- * __useSignInTonV2Mutation__
890
- *
891
- * To run a mutation, you first call `useSignInTonV2Mutation` within a React component and pass it any options that fit your needs.
892
- * When your component renders, `useSignInTonV2Mutation` returns a tuple that includes:
893
- * - A mutate function that you can call at any time to execute the mutation
894
- * - An object with fields that represent the current status of the mutation's execution
895
- *
896
- * @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;
897
- *
898
- * @example
899
- * const [signInTonV2Mutation, { data, loading, error }] = useSignInTonV2Mutation({
900
- * variables: {
901
- * address: // value for 'address'
902
- * restore: // value for 'restore'
903
- * loginSource: // value for 'loginSource'
904
- * },
905
- * });
906
- */
907
- function useSignInTonV2Mutation(baseOptions) {
908
- return Apollo.useMutation(exports.SignInTonV2Document, baseOptions);
909
- }
910
- exports.useSignInTonV2Mutation = useSignInTonV2Mutation;
911
864
  exports.UpdateProfileDocument = (0, client_1.gql) `
912
865
  mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $telegramLink: String) {
913
866
  updateProfile(
@@ -1120,6 +1073,36 @@ function useFetchMyProfileV2LazyQuery(baseOptions) {
1120
1073
  return Apollo.useLazyQuery(exports.FetchMyProfileV2Document, baseOptions);
1121
1074
  }
1122
1075
  exports.useFetchMyProfileV2LazyQuery = useFetchMyProfileV2LazyQuery;
1076
+ exports.FetchIsLudoNftMintableDocument = (0, client_1.gql) `
1077
+ query FetchIsLudoNftMintable($blockchain: String!, $address: String!) {
1078
+ fetchIsLudoNftMintable(blockchain: $blockchain, address: $address)
1079
+ }
1080
+ `;
1081
+ /**
1082
+ * __useFetchIsLudoNftMintableQuery__
1083
+ *
1084
+ * To run a query within a React component, call `useFetchIsLudoNftMintableQuery` and pass it any options that fit your needs.
1085
+ * When your component renders, `useFetchIsLudoNftMintableQuery` returns an object from Apollo Client that contains loading, error, and data properties
1086
+ * you can use to render your UI.
1087
+ *
1088
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1089
+ *
1090
+ * @example
1091
+ * const { data, loading, error } = useFetchIsLudoNftMintableQuery({
1092
+ * variables: {
1093
+ * blockchain: // value for 'blockchain'
1094
+ * address: // value for 'address'
1095
+ * },
1096
+ * });
1097
+ */
1098
+ function useFetchIsLudoNftMintableQuery(baseOptions) {
1099
+ return Apollo.useQuery(exports.FetchIsLudoNftMintableDocument, baseOptions);
1100
+ }
1101
+ exports.useFetchIsLudoNftMintableQuery = useFetchIsLudoNftMintableQuery;
1102
+ function useFetchIsLudoNftMintableLazyQuery(baseOptions) {
1103
+ return Apollo.useLazyQuery(exports.FetchIsLudoNftMintableDocument, baseOptions);
1104
+ }
1105
+ exports.useFetchIsLudoNftMintableLazyQuery = useFetchIsLudoNftMintableLazyQuery;
1123
1106
  exports.FetchProfileDocument = (0, client_1.gql) `
1124
1107
  query FetchProfile($userId: ID!) {
1125
1108
  fetchProfile(userId: $userId) {
package/build/index.d.ts CHANGED
@@ -1102,15 +1102,6 @@ declare const schema: {
1102
1102
  restore?: identitySchema.Maybe<boolean> | undefined;
1103
1103
  loginSource?: identitySchema.Maybe<identitySchema.ILoginSource> | undefined;
1104
1104
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1105
- useSignInTonV2Mutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.ISignInTonV2Mutation, identitySchema.Exact<{
1106
- address: string;
1107
- restore?: identitySchema.Maybe<boolean> | undefined;
1108
- loginSource?: identitySchema.Maybe<identitySchema.ILoginSource> | undefined;
1109
- }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.ISignInTonV2Mutation, identitySchema.Exact<{
1110
- address: string;
1111
- restore?: identitySchema.Maybe<boolean> | undefined;
1112
- loginSource?: identitySchema.Maybe<identitySchema.ILoginSource> | undefined;
1113
- }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1114
1105
  useUpdateProfileMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.IUpdateProfileMutation, identitySchema.Exact<{
1115
1106
  username?: identitySchema.Maybe<string> | undefined;
1116
1107
  about?: identitySchema.Maybe<string> | undefined;
@@ -1164,6 +1155,20 @@ declare const schema: {
1164
1155
  }>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchMyProfileV2Query, identitySchema.Exact<{
1165
1156
  [key: string]: never;
1166
1157
  }>>;
1158
+ useFetchIsLudoNftMintableQuery(baseOptions: import("@apollo/client").QueryHookOptions<identitySchema.IFetchIsLudoNftMintableQuery, identitySchema.Exact<{
1159
+ blockchain: string;
1160
+ address: string;
1161
+ }>>): import("@apollo/client").QueryResult<identitySchema.IFetchIsLudoNftMintableQuery, identitySchema.Exact<{
1162
+ blockchain: string;
1163
+ address: string;
1164
+ }>>;
1165
+ useFetchIsLudoNftMintableLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<identitySchema.IFetchIsLudoNftMintableQuery, identitySchema.Exact<{
1166
+ blockchain: string;
1167
+ address: string;
1168
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchIsLudoNftMintableQuery, identitySchema.Exact<{
1169
+ blockchain: string;
1170
+ address: string;
1171
+ }>>;
1167
1172
  useFetchProfileQuery(baseOptions: import("@apollo/client").QueryHookOptions<identitySchema.IFetchProfileQuery, identitySchema.Exact<{
1168
1173
  userId: string;
1169
1174
  }>>): import("@apollo/client").QueryResult<identitySchema.IFetchProfileQuery, identitySchema.Exact<{
@@ -1209,11 +1214,11 @@ declare const schema: {
1209
1214
  SignInSolanaDocument: import("graphql").DocumentNode;
1210
1215
  SignInTezosDocument: import("graphql").DocumentNode;
1211
1216
  SignInTonDocument: import("graphql").DocumentNode;
1212
- SignInTonV2Document: import("graphql").DocumentNode;
1213
1217
  UpdateProfileDocument: import("graphql").DocumentNode;
1214
1218
  FetchAggregatedMultiversxAuditDocument: import("graphql").DocumentNode;
1215
1219
  FetchMultiversXAuditDocument: import("graphql").DocumentNode;
1216
1220
  FetchMyProfileV2Document: import("graphql").DocumentNode;
1221
+ FetchIsLudoNftMintableDocument: import("graphql").DocumentNode;
1217
1222
  FetchProfileDocument: import("graphql").DocumentNode;
1218
1223
  FetchUserWalletsDocument: import("graphql").DocumentNode;
1219
1224
  useAddAssetsToGalleryV2Mutation(baseOptions?: import("@apollo/client").MutationHookOptions<galleriesSchema.IAddAssetsToGalleryV2Mutation, galleriesSchema.Exact<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "3.0.92",
3
+ "version": "3.0.93",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -163,7 +163,6 @@ export type IMutation = {
163
163
  signInElrond: IIdentity;
164
164
  signInFlow: IIdentity;
165
165
  signInTon: IIdentity;
166
- signInTonV2: IIdentity;
167
166
  signInEthereum: IIdentity;
168
167
  signInEthereumWeb3Auth: IIdentity;
169
168
  addWalletMetamask: Scalars['Boolean'];
@@ -172,7 +171,6 @@ export type IMutation = {
172
171
  addWalletElrond: Scalars['Boolean'];
173
172
  addWalletFlow: Scalars['Boolean'];
174
173
  addWalletTon: Scalars['Boolean'];
175
- addWalletTonV2: Scalars['Boolean'];
176
174
  removeWallet: Scalars['Boolean'];
177
175
  setMainWallet: Scalars['Boolean'];
178
176
  generateNewInviteCodes: Array<IUserInviteCode>;
@@ -246,13 +244,6 @@ export type IMutationSignInTonArgs = {
246
244
  };
247
245
 
248
246
 
249
- export type IMutationSignInTonV2Args = {
250
- address: Scalars['String'];
251
- restore?: Maybe<Scalars['Boolean']>;
252
- loginSource?: Maybe<ILoginSource>;
253
- };
254
-
255
-
256
247
  export type IMutationSignInEthereumArgs = {
257
248
  signInData: IEthereumSignInData;
258
249
  loginSource?: Maybe<ILoginSource>;
@@ -303,11 +294,6 @@ export type IMutationAddWalletTonArgs = {
303
294
  };
304
295
 
305
296
 
306
- export type IMutationAddWalletTonV2Args = {
307
- address: Scalars['String'];
308
- };
309
-
310
-
311
297
  export type IMutationRemoveWalletArgs = {
312
298
  blockchain: Scalars['String'];
313
299
  address: Scalars['String'];
@@ -421,8 +407,10 @@ export type IProof = {
421
407
  export type IQuery = {
422
408
  getDummy: Scalars['String'];
423
409
  fetchUserWallets: Array<Maybe<IWallet>>;
410
+ fetchExtendedUserWallets: Array<Maybe<IWallet>>;
424
411
  fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
425
412
  fetchAggregatedMultiversxAudit?: Maybe<IMultiversxAudit>;
413
+ fetchIsLudoNftMintable: Scalars['Boolean'];
426
414
  fetchInviteCode: IInviteCode;
427
415
  fetchMyProfileV2: IMyProfileV2;
428
416
  fetchProfile: IProfile;
@@ -436,6 +424,11 @@ export type IQueryFetchUserWalletsArgs = {
436
424
  };
437
425
 
438
426
 
427
+ export type IQueryFetchExtendedUserWalletsArgs = {
428
+ userId: Scalars['ID'];
429
+ };
430
+
431
+
439
432
  export type IQueryFetchMultiversxAuditArgs = {
440
433
  wallet: Scalars['String'];
441
434
  };
@@ -446,6 +439,12 @@ export type IQueryFetchAggregatedMultiversxAuditArgs = {
446
439
  };
447
440
 
448
441
 
442
+ export type IQueryFetchIsLudoNftMintableArgs = {
443
+ blockchain: Scalars['String'];
444
+ address: Scalars['String'];
445
+ };
446
+
447
+
449
448
  export type IQueryFetchInviteCodeArgs = {
450
449
  inviteCode: Scalars['String'];
451
450
  };
@@ -789,7 +788,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
789
788
  signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
790
789
  signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
791
790
  signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
792
- signInTonV2?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonV2Args, 'address'>>;
793
791
  signInEthereum?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumArgs, 'signInData'>>;
794
792
  signInEthereumWeb3Auth?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumWeb3AuthArgs, 'signInData' | 'loginType'>>;
795
793
  addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
@@ -798,7 +796,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
798
796
  addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
799
797
  addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
800
798
  addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'request'>>;
801
- addWalletTonV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonV2Args, 'address'>>;
802
799
  removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
803
800
  setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
804
801
  generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
@@ -872,8 +869,10 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
872
869
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
873
870
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
874
871
  fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
872
+ fetchExtendedUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchExtendedUserWalletsArgs, 'userId'>>;
875
873
  fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
876
874
  fetchAggregatedMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchAggregatedMultiversxAuditArgs, 'userId'>>;
875
+ fetchIsLudoNftMintable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryFetchIsLudoNftMintableArgs, 'blockchain' | 'address'>>;
877
876
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
878
877
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
879
878
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
@@ -1163,18 +1162,6 @@ export type ISignInTonMutation = { signInTon: (
1163
1162
  & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
1164
1163
  ) };
1165
1164
 
1166
- export type ISignInTonV2MutationVariables = Exact<{
1167
- address: Scalars['String'];
1168
- restore?: Maybe<Scalars['Boolean']>;
1169
- loginSource?: Maybe<ILoginSource>;
1170
- }>;
1171
-
1172
-
1173
- export type ISignInTonV2Mutation = { signInTonV2: (
1174
- Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role' | 'reftypeId' | 'reftypeName' | 'reftypeColor'>
1175
- & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
1176
- ) };
1177
-
1178
1165
  export type IUpdateProfileMutationVariables = Exact<{
1179
1166
  username?: Maybe<Scalars['String']>;
1180
1167
  about?: Maybe<Scalars['String']>;
@@ -1228,6 +1215,14 @@ export type IFetchMyProfileV2Query = { fetchMyProfileV2: (
1228
1215
  )>>> }
1229
1216
  ) };
1230
1217
 
1218
+ export type IFetchIsLudoNftMintableQueryVariables = Exact<{
1219
+ blockchain: Scalars['String'];
1220
+ address: Scalars['String'];
1221
+ }>;
1222
+
1223
+
1224
+ export type IFetchIsLudoNftMintableQuery = Pick<IQuery, 'fetchIsLudoNftMintable'>;
1225
+
1231
1226
  export type IFetchProfileQueryVariables = Exact<{
1232
1227
  userId: Scalars['ID'];
1233
1228
  }>;
@@ -2128,57 +2123,6 @@ export function useSignInTonMutation(baseOptions?: Apollo.MutationHookOptions<IS
2128
2123
  export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation>;
2129
2124
  export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
2130
2125
  export type SignInTonMutationOptions = Apollo.BaseMutationOptions<ISignInTonMutation, ISignInTonMutationVariables>;
2131
- export const SignInTonV2Document = gql`
2132
- mutation SignInTonV2($address: String!, $restore: Boolean, $loginSource: LoginSource) {
2133
- signInTonV2(address: $address, restore: $restore, loginSource: $loginSource) {
2134
- userId
2135
- wallets
2136
- tokens {
2137
- portalTokenPair {
2138
- authToken
2139
- refreshToken
2140
- }
2141
- extensionTokenPair {
2142
- authToken
2143
- refreshToken
2144
- }
2145
- }
2146
- newUser
2147
- inviteCode
2148
- role
2149
- reftypeId
2150
- reftypeName
2151
- reftypeColor
2152
- }
2153
- }
2154
- `;
2155
- export type ISignInTonV2MutationFn = Apollo.MutationFunction<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
2156
-
2157
- /**
2158
- * __useSignInTonV2Mutation__
2159
- *
2160
- * To run a mutation, you first call `useSignInTonV2Mutation` within a React component and pass it any options that fit your needs.
2161
- * When your component renders, `useSignInTonV2Mutation` returns a tuple that includes:
2162
- * - A mutate function that you can call at any time to execute the mutation
2163
- * - An object with fields that represent the current status of the mutation's execution
2164
- *
2165
- * @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;
2166
- *
2167
- * @example
2168
- * const [signInTonV2Mutation, { data, loading, error }] = useSignInTonV2Mutation({
2169
- * variables: {
2170
- * address: // value for 'address'
2171
- * restore: // value for 'restore'
2172
- * loginSource: // value for 'loginSource'
2173
- * },
2174
- * });
2175
- */
2176
- export function useSignInTonV2Mutation(baseOptions?: Apollo.MutationHookOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>) {
2177
- return Apollo.useMutation<ISignInTonV2Mutation, ISignInTonV2MutationVariables>(SignInTonV2Document, baseOptions);
2178
- }
2179
- export type SignInTonV2MutationHookResult = ReturnType<typeof useSignInTonV2Mutation>;
2180
- export type SignInTonV2MutationResult = Apollo.MutationResult<ISignInTonV2Mutation>;
2181
- export type SignInTonV2MutationOptions = Apollo.BaseMutationOptions<ISignInTonV2Mutation, ISignInTonV2MutationVariables>;
2182
2126
  export const UpdateProfileDocument = gql`
2183
2127
  mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $telegramLink: String) {
2184
2128
  updateProfile(
@@ -2401,6 +2345,38 @@ export function useFetchMyProfileV2LazyQuery(baseOptions?: Apollo.LazyQueryHookO
2401
2345
  export type FetchMyProfileV2QueryHookResult = ReturnType<typeof useFetchMyProfileV2Query>;
2402
2346
  export type FetchMyProfileV2LazyQueryHookResult = ReturnType<typeof useFetchMyProfileV2LazyQuery>;
2403
2347
  export type FetchMyProfileV2QueryResult = Apollo.QueryResult<IFetchMyProfileV2Query, IFetchMyProfileV2QueryVariables>;
2348
+ export const FetchIsLudoNftMintableDocument = gql`
2349
+ query FetchIsLudoNftMintable($blockchain: String!, $address: String!) {
2350
+ fetchIsLudoNftMintable(blockchain: $blockchain, address: $address)
2351
+ }
2352
+ `;
2353
+
2354
+ /**
2355
+ * __useFetchIsLudoNftMintableQuery__
2356
+ *
2357
+ * To run a query within a React component, call `useFetchIsLudoNftMintableQuery` and pass it any options that fit your needs.
2358
+ * When your component renders, `useFetchIsLudoNftMintableQuery` returns an object from Apollo Client that contains loading, error, and data properties
2359
+ * you can use to render your UI.
2360
+ *
2361
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
2362
+ *
2363
+ * @example
2364
+ * const { data, loading, error } = useFetchIsLudoNftMintableQuery({
2365
+ * variables: {
2366
+ * blockchain: // value for 'blockchain'
2367
+ * address: // value for 'address'
2368
+ * },
2369
+ * });
2370
+ */
2371
+ export function useFetchIsLudoNftMintableQuery(baseOptions: Apollo.QueryHookOptions<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>) {
2372
+ return Apollo.useQuery<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>(FetchIsLudoNftMintableDocument, baseOptions);
2373
+ }
2374
+ export function useFetchIsLudoNftMintableLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>) {
2375
+ return Apollo.useLazyQuery<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>(FetchIsLudoNftMintableDocument, baseOptions);
2376
+ }
2377
+ export type FetchIsLudoNftMintableQueryHookResult = ReturnType<typeof useFetchIsLudoNftMintableQuery>;
2378
+ export type FetchIsLudoNftMintableLazyQueryHookResult = ReturnType<typeof useFetchIsLudoNftMintableLazyQuery>;
2379
+ export type FetchIsLudoNftMintableQueryResult = Apollo.QueryResult<IFetchIsLudoNftMintableQuery, IFetchIsLudoNftMintableQueryVariables>;
2404
2380
  export const FetchProfileDocument = gql`
2405
2381
  query FetchProfile($userId: ID!) {
2406
2382
  fetchProfile(userId: $userId) {