@ludo.ninja/api 3.0.92 → 3.0.94

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.
@@ -142,6 +142,13 @@ export enum ILoginType {
142
142
  }
143
143
 
144
144
 
145
+ export type ILudoNft = {
146
+ blockchain: Scalars['String'];
147
+ address: Scalars['String'];
148
+ tokenId?: Maybe<Scalars['String']>;
149
+ tierId: Scalars['String'];
150
+ };
151
+
145
152
  /** noinspection SpellCheckingInspection */
146
153
  export type IMultiversxAudit = {
147
154
  delegated?: Maybe<Scalars['Float']>;
@@ -163,7 +170,6 @@ export type IMutation = {
163
170
  signInElrond: IIdentity;
164
171
  signInFlow: IIdentity;
165
172
  signInTon: IIdentity;
166
- signInTonV2: IIdentity;
167
173
  signInEthereum: IIdentity;
168
174
  signInEthereumWeb3Auth: IIdentity;
169
175
  addWalletMetamask: Scalars['Boolean'];
@@ -172,7 +178,6 @@ export type IMutation = {
172
178
  addWalletElrond: Scalars['Boolean'];
173
179
  addWalletFlow: Scalars['Boolean'];
174
180
  addWalletTon: Scalars['Boolean'];
175
- addWalletTonV2: Scalars['Boolean'];
176
181
  removeWallet: Scalars['Boolean'];
177
182
  setMainWallet: Scalars['Boolean'];
178
183
  generateNewInviteCodes: Array<IUserInviteCode>;
@@ -246,13 +251,6 @@ export type IMutationSignInTonArgs = {
246
251
  };
247
252
 
248
253
 
249
- export type IMutationSignInTonV2Args = {
250
- address: Scalars['String'];
251
- restore?: Maybe<Scalars['Boolean']>;
252
- loginSource?: Maybe<ILoginSource>;
253
- };
254
-
255
-
256
254
  export type IMutationSignInEthereumArgs = {
257
255
  signInData: IEthereumSignInData;
258
256
  loginSource?: Maybe<ILoginSource>;
@@ -303,11 +301,6 @@ export type IMutationAddWalletTonArgs = {
303
301
  };
304
302
 
305
303
 
306
- export type IMutationAddWalletTonV2Args = {
307
- address: Scalars['String'];
308
- };
309
-
310
-
311
304
  export type IMutationRemoveWalletArgs = {
312
305
  blockchain: Scalars['String'];
313
306
  address: Scalars['String'];
@@ -421,8 +414,11 @@ export type IProof = {
421
414
  export type IQuery = {
422
415
  getDummy: Scalars['String'];
423
416
  fetchUserWallets: Array<Maybe<IWallet>>;
417
+ fetchExtendedUserWallets: Array<Maybe<IWallet>>;
424
418
  fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
425
419
  fetchAggregatedMultiversxAudit?: Maybe<IMultiversxAudit>;
420
+ fetchIsLudoNftMintable: Scalars['Boolean'];
421
+ fetchLudoNftForWallet?: Maybe<ILudoNft>;
426
422
  fetchInviteCode: IInviteCode;
427
423
  fetchMyProfileV2: IMyProfileV2;
428
424
  fetchProfile: IProfile;
@@ -436,6 +432,11 @@ export type IQueryFetchUserWalletsArgs = {
436
432
  };
437
433
 
438
434
 
435
+ export type IQueryFetchExtendedUserWalletsArgs = {
436
+ userId: Scalars['ID'];
437
+ };
438
+
439
+
439
440
  export type IQueryFetchMultiversxAuditArgs = {
440
441
  wallet: Scalars['String'];
441
442
  };
@@ -446,6 +447,18 @@ export type IQueryFetchAggregatedMultiversxAuditArgs = {
446
447
  };
447
448
 
448
449
 
450
+ export type IQueryFetchIsLudoNftMintableArgs = {
451
+ blockchain: Scalars['String'];
452
+ address: Scalars['String'];
453
+ };
454
+
455
+
456
+ export type IQueryFetchLudoNftForWalletArgs = {
457
+ blockchain: Scalars['String'];
458
+ address: Scalars['String'];
459
+ };
460
+
461
+
449
462
  export type IQueryFetchInviteCodeArgs = {
450
463
  inviteCode: Scalars['String'];
451
464
  };
@@ -611,6 +624,7 @@ export type IResolversTypes = {
611
624
  LoginSource: ILoginSource;
612
625
  LoginType: ILoginType;
613
626
  Long: ResolverTypeWrapper<Scalars['Long']>;
627
+ LudoNft: ResolverTypeWrapper<ILudoNft>;
614
628
  MultiversxAudit: ResolverTypeWrapper<IMultiversxAudit>;
615
629
  Mutation: ResolverTypeWrapper<{}>;
616
630
  MyProfileV2: ResolverTypeWrapper<IMyProfileV2>;
@@ -648,6 +662,7 @@ export type IResolversParentTypes = {
648
662
  InviteCodeUser: IInviteCodeUser;
649
663
  JSON: Scalars['JSON'];
650
664
  Long: Scalars['Long'];
665
+ LudoNft: ILudoNft;
651
666
  MultiversxAudit: IMultiversxAudit;
652
667
  Mutation: {};
653
668
  MyProfileV2: IMyProfileV2;
@@ -768,6 +783,14 @@ export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTyp
768
783
  name: 'Long';
769
784
  }
770
785
 
786
+ export type ILudoNftResolvers<ContextType = any, ParentType extends IResolversParentTypes['LudoNft'] = IResolversParentTypes['LudoNft']> = {
787
+ blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
788
+ address?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
789
+ tokenId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
790
+ tierId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
791
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
792
+ };
793
+
771
794
  export type IMultiversxAuditResolvers<ContextType = any, ParentType extends IResolversParentTypes['MultiversxAudit'] = IResolversParentTypes['MultiversxAudit']> = {
772
795
  delegated?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
773
796
  interests?: Resolver<Maybe<Array<IResolversTypes['AuditInterest']>>, ParentType, ContextType>;
@@ -789,7 +812,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
789
812
  signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
790
813
  signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
791
814
  signInTon?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonArgs, 'request'>>;
792
- signInTonV2?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTonV2Args, 'address'>>;
793
815
  signInEthereum?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumArgs, 'signInData'>>;
794
816
  signInEthereumWeb3Auth?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInEthereumWeb3AuthArgs, 'signInData' | 'loginType'>>;
795
817
  addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
@@ -798,7 +820,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
798
820
  addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
799
821
  addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
800
822
  addWalletTon?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonArgs, 'request'>>;
801
- addWalletTonV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTonV2Args, 'address'>>;
802
823
  removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
803
824
  setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
804
825
  generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
@@ -872,8 +893,11 @@ export type IProfileResolvers<ContextType = any, ParentType extends IResolversPa
872
893
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
873
894
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
874
895
  fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
896
+ fetchExtendedUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchExtendedUserWalletsArgs, 'userId'>>;
875
897
  fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
876
898
  fetchAggregatedMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchAggregatedMultiversxAuditArgs, 'userId'>>;
899
+ fetchIsLudoNftMintable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryFetchIsLudoNftMintableArgs, 'blockchain' | 'address'>>;
900
+ fetchLudoNftForWallet?: Resolver<Maybe<IResolversTypes['LudoNft']>, ParentType, ContextType, RequireFields<IQueryFetchLudoNftForWalletArgs, 'blockchain' | 'address'>>;
877
901
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
878
902
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
879
903
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
@@ -933,6 +957,7 @@ export type IResolvers<ContextType = any> = {
933
957
  InviteCodeUser?: IInviteCodeUserResolvers<ContextType>;
934
958
  JSON?: GraphQLScalarType;
935
959
  Long?: GraphQLScalarType;
960
+ LudoNft?: ILudoNftResolvers<ContextType>;
936
961
  MultiversxAudit?: IMultiversxAuditResolvers<ContextType>;
937
962
  Mutation?: IMutationResolvers<ContextType>;
938
963
  MyProfileV2?: IMyProfileV2Resolvers<ContextType>;
@@ -1163,18 +1188,6 @@ export type ISignInTonMutation = { signInTon: (
1163
1188
  & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
1164
1189
  ) };
1165
1190
 
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
1191
  export type IUpdateProfileMutationVariables = Exact<{
1179
1192
  username?: Maybe<Scalars['String']>;
1180
1193
  about?: Maybe<Scalars['String']>;
@@ -1228,6 +1241,14 @@ export type IFetchMyProfileV2Query = { fetchMyProfileV2: (
1228
1241
  )>>> }
1229
1242
  ) };
1230
1243
 
1244
+ export type IFetchLudoNftForWalletQueryVariables = Exact<{
1245
+ blockchain: Scalars['String'];
1246
+ address: Scalars['String'];
1247
+ }>;
1248
+
1249
+
1250
+ export type IFetchLudoNftForWalletQuery = { fetchLudoNftForWallet?: Maybe<Pick<ILudoNft, 'blockchain' | 'address' | 'tierId'>> };
1251
+
1231
1252
  export type IFetchProfileQueryVariables = Exact<{
1232
1253
  userId: Scalars['ID'];
1233
1254
  }>;
@@ -2128,57 +2149,6 @@ export function useSignInTonMutation(baseOptions?: Apollo.MutationHookOptions<IS
2128
2149
  export type SignInTonMutationHookResult = ReturnType<typeof useSignInTonMutation>;
2129
2150
  export type SignInTonMutationResult = Apollo.MutationResult<ISignInTonMutation>;
2130
2151
  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
2152
  export const UpdateProfileDocument = gql`
2183
2153
  mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean, $discordNickname: String, $discordServer: String, $telegramLink: String) {
2184
2154
  updateProfile(
@@ -2401,6 +2371,42 @@ export function useFetchMyProfileV2LazyQuery(baseOptions?: Apollo.LazyQueryHookO
2401
2371
  export type FetchMyProfileV2QueryHookResult = ReturnType<typeof useFetchMyProfileV2Query>;
2402
2372
  export type FetchMyProfileV2LazyQueryHookResult = ReturnType<typeof useFetchMyProfileV2LazyQuery>;
2403
2373
  export type FetchMyProfileV2QueryResult = Apollo.QueryResult<IFetchMyProfileV2Query, IFetchMyProfileV2QueryVariables>;
2374
+ export const FetchLudoNftForWalletDocument = gql`
2375
+ query FetchLudoNftForWallet($blockchain: String!, $address: String!) {
2376
+ fetchLudoNftForWallet(blockchain: $blockchain, address: $address) {
2377
+ blockchain
2378
+ address
2379
+ tierId
2380
+ }
2381
+ }
2382
+ `;
2383
+
2384
+ /**
2385
+ * __useFetchLudoNftForWalletQuery__
2386
+ *
2387
+ * To run a query within a React component, call `useFetchLudoNftForWalletQuery` and pass it any options that fit your needs.
2388
+ * When your component renders, `useFetchLudoNftForWalletQuery` returns an object from Apollo Client that contains loading, error, and data properties
2389
+ * you can use to render your UI.
2390
+ *
2391
+ * @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;
2392
+ *
2393
+ * @example
2394
+ * const { data, loading, error } = useFetchLudoNftForWalletQuery({
2395
+ * variables: {
2396
+ * blockchain: // value for 'blockchain'
2397
+ * address: // value for 'address'
2398
+ * },
2399
+ * });
2400
+ */
2401
+ export function useFetchLudoNftForWalletQuery(baseOptions: Apollo.QueryHookOptions<IFetchLudoNftForWalletQuery, IFetchLudoNftForWalletQueryVariables>) {
2402
+ return Apollo.useQuery<IFetchLudoNftForWalletQuery, IFetchLudoNftForWalletQueryVariables>(FetchLudoNftForWalletDocument, baseOptions);
2403
+ }
2404
+ export function useFetchLudoNftForWalletLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchLudoNftForWalletQuery, IFetchLudoNftForWalletQueryVariables>) {
2405
+ return Apollo.useLazyQuery<IFetchLudoNftForWalletQuery, IFetchLudoNftForWalletQueryVariables>(FetchLudoNftForWalletDocument, baseOptions);
2406
+ }
2407
+ export type FetchLudoNftForWalletQueryHookResult = ReturnType<typeof useFetchLudoNftForWalletQuery>;
2408
+ export type FetchLudoNftForWalletLazyQueryHookResult = ReturnType<typeof useFetchLudoNftForWalletLazyQuery>;
2409
+ export type FetchLudoNftForWalletQueryResult = Apollo.QueryResult<IFetchLudoNftForWalletQuery, IFetchLudoNftForWalletQueryVariables>;
2404
2410
  export const FetchProfileDocument = gql`
2405
2411
  query FetchProfile($userId: ID!) {
2406
2412
  fetchProfile(userId: $userId) {