@ludo.ninja/api 3.2.61 → 3.2.63

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.
@@ -56,6 +56,7 @@ export type IQuery = {
56
56
  fetchMyLatestExperienceIncrement?: Maybe<IUserXpIncrement>;
57
57
  fetchMyMonthReferralsXps: Scalars['Int'];
58
58
  fetchMyActivityStreak?: Maybe<IActivityStreak>;
59
+ fetchMintingReferralLink: Scalars['String'];
59
60
  };
60
61
  export type ISubscription = {
61
62
  onDummy: Scalars['String'];
@@ -180,6 +181,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
180
181
  fetchMyLatestExperienceIncrement?: Resolver<Maybe<IResolversTypes['UserXPIncrement']>, ParentType, ContextType>;
181
182
  fetchMyMonthReferralsXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
182
183
  fetchMyActivityStreak?: Resolver<Maybe<IResolversTypes['ActivityStreak']>, ParentType, ContextType>;
184
+ fetchMintingReferralLink?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
183
185
  };
184
186
  export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
185
187
  onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
@@ -217,6 +219,10 @@ export type IDirectiveResolvers<ContextType = any> = {
217
219
  experimental_disableErrorPropagation?: IExperimental_DisableErrorPropagationDirectiveResolver<any, any, ContextType>;
218
220
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
219
221
  };
222
+ export type IFetchMintingReferralLinkQueryVariables = Exact<{
223
+ [key: string]: never;
224
+ }>;
225
+ export type IFetchMintingReferralLinkQuery = Pick<IQuery, 'fetchMintingReferralLink'>;
220
226
  export type IFetchMyActivityStreakQueryVariables = Exact<{
221
227
  [key: string]: never;
222
228
  }>;
@@ -231,6 +237,31 @@ export type IFetchMyMonthReferralsXpsQueryVariables = Exact<{
231
237
  [key: string]: never;
232
238
  }>;
233
239
  export type IFetchMyMonthReferralsXpsQuery = Pick<IQuery, 'fetchMyMonthReferralsXps'>;
240
+ export declare const FetchMintingReferralLinkDocument: Apollo.DocumentNode;
241
+ /**
242
+ * __useFetchMintingReferralLinkQuery__
243
+ *
244
+ * To run a query within a React component, call `useFetchMintingReferralLinkQuery` and pass it any options that fit your needs.
245
+ * When your component renders, `useFetchMintingReferralLinkQuery` returns an object from Apollo Client that contains loading, error, and data properties
246
+ * you can use to render your UI.
247
+ *
248
+ * @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;
249
+ *
250
+ * @example
251
+ * const { data, loading, error } = useFetchMintingReferralLinkQuery({
252
+ * variables: {
253
+ * },
254
+ * });
255
+ */
256
+ export declare function useFetchMintingReferralLinkQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMintingReferralLinkQuery, IFetchMintingReferralLinkQueryVariables>): Apollo.QueryResult<IFetchMintingReferralLinkQuery, Exact<{
257
+ [key: string]: never;
258
+ }>>;
259
+ export declare function useFetchMintingReferralLinkLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMintingReferralLinkQuery, IFetchMintingReferralLinkQueryVariables>): Apollo.LazyQueryResultTuple<IFetchMintingReferralLinkQuery, Exact<{
260
+ [key: string]: never;
261
+ }>>;
262
+ export type FetchMintingReferralLinkQueryHookResult = ReturnType<typeof useFetchMintingReferralLinkQuery>;
263
+ export type FetchMintingReferralLinkLazyQueryHookResult = ReturnType<typeof useFetchMintingReferralLinkLazyQuery>;
264
+ export type FetchMintingReferralLinkQueryResult = Apollo.QueryResult<IFetchMintingReferralLinkQuery, IFetchMintingReferralLinkQueryVariables>;
234
265
  export declare const FetchMyActivityStreakDocument: Apollo.DocumentNode;
235
266
  /**
236
267
  * __useFetchMyActivityStreakQuery__
@@ -23,9 +23,37 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.useFetchMyMonthReferralsXpsLazyQuery = exports.useFetchMyMonthReferralsXpsQuery = exports.FetchMyMonthReferralsXpsDocument = exports.useFetchMyExperienceLazyQuery = exports.useFetchMyExperienceQuery = exports.FetchMyExperienceDocument = exports.useFetchMyActivityStreakLazyQuery = exports.useFetchMyActivityStreakQuery = exports.FetchMyActivityStreakDocument = void 0;
26
+ exports.useFetchMyMonthReferralsXpsLazyQuery = exports.useFetchMyMonthReferralsXpsQuery = exports.FetchMyMonthReferralsXpsDocument = exports.useFetchMyExperienceLazyQuery = exports.useFetchMyExperienceQuery = exports.FetchMyExperienceDocument = exports.useFetchMyActivityStreakLazyQuery = exports.useFetchMyActivityStreakQuery = exports.FetchMyActivityStreakDocument = exports.useFetchMintingReferralLinkLazyQuery = exports.useFetchMintingReferralLinkQuery = exports.FetchMintingReferralLinkDocument = void 0;
27
27
  const client_1 = require("@apollo/client");
28
28
  const Apollo = __importStar(require("@apollo/client"));
29
+ exports.FetchMintingReferralLinkDocument = (0, client_1.gql) `
30
+ query FetchMintingReferralLink {
31
+ fetchMintingReferralLink
32
+ }
33
+ `;
34
+ /**
35
+ * __useFetchMintingReferralLinkQuery__
36
+ *
37
+ * To run a query within a React component, call `useFetchMintingReferralLinkQuery` and pass it any options that fit your needs.
38
+ * When your component renders, `useFetchMintingReferralLinkQuery` returns an object from Apollo Client that contains loading, error, and data properties
39
+ * you can use to render your UI.
40
+ *
41
+ * @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;
42
+ *
43
+ * @example
44
+ * const { data, loading, error } = useFetchMintingReferralLinkQuery({
45
+ * variables: {
46
+ * },
47
+ * });
48
+ */
49
+ function useFetchMintingReferralLinkQuery(baseOptions) {
50
+ return Apollo.useQuery(exports.FetchMintingReferralLinkDocument, baseOptions);
51
+ }
52
+ exports.useFetchMintingReferralLinkQuery = useFetchMintingReferralLinkQuery;
53
+ function useFetchMintingReferralLinkLazyQuery(baseOptions) {
54
+ return Apollo.useLazyQuery(exports.FetchMintingReferralLinkDocument, baseOptions);
55
+ }
56
+ exports.useFetchMintingReferralLinkLazyQuery = useFetchMintingReferralLinkLazyQuery;
29
57
  exports.FetchMyActivityStreakDocument = (0, client_1.gql) `
30
58
  query FetchMyActivityStreak {
31
59
  fetchMyActivityStreak {
@@ -397,6 +397,7 @@ export type IQuery = {
397
397
  fetchAggregatedMultiversxAudit?: Maybe<IMultiversxAudit>;
398
398
  fetchIsLudoNftMintable: Scalars['Boolean'];
399
399
  fetchLudoNftForWallet?: Maybe<ILudoNft>;
400
+ fetchWalletTwitterRank: IWalletTwitterRank;
400
401
  fetchInviteCode: IInviteCode;
401
402
  fetchMyProfileV2: IMyProfileV2;
402
403
  fetchProfile: IProfile;
@@ -424,6 +425,10 @@ export type IQueryFetchLudoNftForWalletArgs = {
424
425
  blockchain: IBlockchains;
425
426
  address: Scalars['String'];
426
427
  };
428
+ export type IQueryFetchWalletTwitterRankArgs = {
429
+ wallet: Scalars['String'];
430
+ twitterUsername?: Maybe<Scalars['String']>;
431
+ };
427
432
  export type IQueryFetchInviteCodeArgs = {
428
433
  inviteCode: Scalars['String'];
429
434
  };
@@ -486,6 +491,11 @@ export type IWallet = {
486
491
  chainId?: Maybe<Scalars['String']>;
487
492
  mainWallet: Scalars['Boolean'];
488
493
  };
494
+ export type IWalletTwitterRank = {
495
+ walletRank: Scalars['Float'];
496
+ twitterScore: Scalars['Float'];
497
+ aggregatedRank: Scalars['Float'];
498
+ };
489
499
  export type ResolverTypeWrapper<T> = Promise<T> | T;
490
500
  export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
491
501
  resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
@@ -553,6 +563,7 @@ export type IResolversTypes = {
553
563
  TokenPairs: ResolverTypeWrapper<ITokenPairs>;
554
564
  UserInviteCode: ResolverTypeWrapper<IUserInviteCode>;
555
565
  Wallet: ResolverTypeWrapper<IWallet>;
566
+ WalletTwitterRank: ResolverTypeWrapper<IWalletTwitterRank>;
556
567
  };
557
568
  /** Mapping between all available schema types and the resolvers parents */
558
569
  export type IResolversParentTypes = {
@@ -589,6 +600,7 @@ export type IResolversParentTypes = {
589
600
  TokenPairs: ITokenPairs;
590
601
  UserInviteCode: IUserInviteCode;
591
602
  Wallet: IWallet;
603
+ WalletTwitterRank: IWalletTwitterRank;
592
604
  };
593
605
  export type IPatternDirectiveArgs = {
594
606
  regexp: Scalars['String'];
@@ -809,6 +821,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
809
821
  fetchAggregatedMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchAggregatedMultiversxAuditArgs, 'userId'>>;
810
822
  fetchIsLudoNftMintable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryFetchIsLudoNftMintableArgs, 'blockchain' | 'address'>>;
811
823
  fetchLudoNftForWallet?: Resolver<Maybe<IResolversTypes['LudoNft']>, ParentType, ContextType, RequireFields<IQueryFetchLudoNftForWalletArgs, 'blockchain' | 'address'>>;
824
+ fetchWalletTwitterRank?: Resolver<IResolversTypes['WalletTwitterRank'], ParentType, ContextType, RequireFields<IQueryFetchWalletTwitterRankArgs, 'wallet'>>;
812
825
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
813
826
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
814
827
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
@@ -854,6 +867,12 @@ export type IWalletResolvers<ContextType = any, ParentType extends IResolversPar
854
867
  mainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
855
868
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
856
869
  };
870
+ export type IWalletTwitterRankResolvers<ContextType = any, ParentType extends IResolversParentTypes['WalletTwitterRank'] = IResolversParentTypes['WalletTwitterRank']> = {
871
+ walletRank?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
872
+ twitterScore?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
873
+ aggregatedRank?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
874
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
875
+ };
857
876
  export type IResolvers<ContextType = any> = {
858
877
  AuditBalanceCollection?: IAuditBalanceCollectionResolvers<ContextType>;
859
878
  AuditInterest?: IAuditInterestResolvers<ContextType>;
@@ -877,6 +896,7 @@ export type IResolvers<ContextType = any> = {
877
896
  TokenPairs?: ITokenPairsResolvers<ContextType>;
878
897
  UserInviteCode?: IUserInviteCodeResolvers<ContextType>;
879
898
  Wallet?: IWalletResolvers<ContextType>;
899
+ WalletTwitterRank?: IWalletTwitterRankResolvers<ContextType>;
880
900
  };
881
901
  export type IDirectiveResolvers<ContextType = any> = {
882
902
  Pattern?: IPatternDirectiveResolver<any, any, ContextType>;
@@ -1172,6 +1192,13 @@ export type IFetchUserWalletsQueryVariables = Exact<{
1172
1192
  export type IFetchUserWalletsQuery = {
1173
1193
  fetchUserWallets: Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>>;
1174
1194
  };
1195
+ export type IFetchWalletTwitterRankQueryVariables = Exact<{
1196
+ wallet: Scalars['String'];
1197
+ twitterUsername?: Maybe<Scalars['String']>;
1198
+ }>;
1199
+ export type IFetchWalletTwitterRankQuery = {
1200
+ fetchWalletTwitterRank: Pick<IWalletTwitterRank, 'walletRank' | 'twitterScore' | 'aggregatedRank'>;
1201
+ };
1175
1202
  export declare const SignInEthereumWeb3AuthDocument: Apollo.DocumentNode;
1176
1203
  export type ISignInEthereumWeb3AuthMutationFn = Apollo.MutationFunction<ISignInEthereumWeb3AuthMutation, ISignInEthereumWeb3AuthMutationVariables>;
1177
1204
  /**
@@ -2173,3 +2200,32 @@ export declare function useFetchUserWalletsLazyQuery(baseOptions?: Apollo.LazyQu
2173
2200
  export type FetchUserWalletsQueryHookResult = ReturnType<typeof useFetchUserWalletsQuery>;
2174
2201
  export type FetchUserWalletsLazyQueryHookResult = ReturnType<typeof useFetchUserWalletsLazyQuery>;
2175
2202
  export type FetchUserWalletsQueryResult = Apollo.QueryResult<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>;
2203
+ export declare const FetchWalletTwitterRankDocument: Apollo.DocumentNode;
2204
+ /**
2205
+ * __useFetchWalletTwitterRankQuery__
2206
+ *
2207
+ * To run a query within a React component, call `useFetchWalletTwitterRankQuery` and pass it any options that fit your needs.
2208
+ * When your component renders, `useFetchWalletTwitterRankQuery` returns an object from Apollo Client that contains loading, error, and data properties
2209
+ * you can use to render your UI.
2210
+ *
2211
+ * @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;
2212
+ *
2213
+ * @example
2214
+ * const { data, loading, error } = useFetchWalletTwitterRankQuery({
2215
+ * variables: {
2216
+ * wallet: // value for 'wallet'
2217
+ * twitterUsername: // value for 'twitterUsername'
2218
+ * },
2219
+ * });
2220
+ */
2221
+ export declare function useFetchWalletTwitterRankQuery(baseOptions: Apollo.QueryHookOptions<IFetchWalletTwitterRankQuery, IFetchWalletTwitterRankQueryVariables>): Apollo.QueryResult<IFetchWalletTwitterRankQuery, Exact<{
2222
+ wallet: string;
2223
+ twitterUsername?: Maybe<string> | undefined;
2224
+ }>>;
2225
+ export declare function useFetchWalletTwitterRankLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchWalletTwitterRankQuery, IFetchWalletTwitterRankQueryVariables>): Apollo.LazyQueryResultTuple<IFetchWalletTwitterRankQuery, Exact<{
2226
+ wallet: string;
2227
+ twitterUsername?: Maybe<string> | undefined;
2228
+ }>>;
2229
+ export type FetchWalletTwitterRankQueryHookResult = ReturnType<typeof useFetchWalletTwitterRankQuery>;
2230
+ export type FetchWalletTwitterRankLazyQueryHookResult = ReturnType<typeof useFetchWalletTwitterRankLazyQuery>;
2231
+ export type FetchWalletTwitterRankQueryResult = Apollo.QueryResult<IFetchWalletTwitterRankQuery, IFetchWalletTwitterRankQueryVariables>;
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSignInAdminMetamaskMutation = exports.SignInAdminMetamaskDocument = exports.useSetShootingStarBoostMutation = exports.SetShootingStarBoostDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useSetEducatorBoostMutation = exports.SetEducatorBoostDocument = exports.useSaveEmailOfJoinerMutation = exports.SaveEmailOfJoinerDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useUseRefcodeMutation = exports.UseRefcodeDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateTonNonceMutation = exports.CreateTonNonceDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useCreateMfaSecretMutation = exports.CreateMfaSecretDocument = exports.useCreateEvmNonceMutation = exports.CreateEvmNonceDocument = exports.useCreateAdminNonceMutation = exports.CreateAdminNonceDocument = exports.useAddWalletTonMutation = exports.AddWalletTonDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.useSignInEthereumWeb3AuthMutation = exports.SignInEthereumWeb3AuthDocument = exports.IRole = exports.IReftypeColor = exports.ILoginType = exports.ILoginSource = exports.IBoostType = exports.IBlockchains = void 0;
27
- exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchLudoNftForWalletLazyQuery = exports.useFetchLudoNftForWalletQuery = exports.FetchLudoNftForWalletDocument = exports.useCheckDiscordSubscriptionLazyQuery = exports.useCheckDiscordSubscriptionQuery = exports.CheckDiscordSubscriptionDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useFetchAggregatedMultiversxAuditLazyQuery = exports.useFetchAggregatedMultiversxAuditQuery = exports.FetchAggregatedMultiversxAuditDocument = exports.useVerifyMfaSecretMutation = exports.VerifyMfaSecretDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = void 0;
27
+ exports.useFetchWalletTwitterRankLazyQuery = exports.useFetchWalletTwitterRankQuery = exports.FetchWalletTwitterRankDocument = exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchLudoNftForWalletLazyQuery = exports.useFetchLudoNftForWalletQuery = exports.FetchLudoNftForWalletDocument = exports.useCheckDiscordSubscriptionLazyQuery = exports.useCheckDiscordSubscriptionQuery = exports.CheckDiscordSubscriptionDocument = exports.useFetchMyProfileV2LazyQuery = exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useFetchAggregatedMultiversxAuditLazyQuery = exports.useFetchAggregatedMultiversxAuditQuery = exports.FetchAggregatedMultiversxAuditDocument = exports.useVerifyMfaSecretMutation = exports.VerifyMfaSecretDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = void 0;
28
28
  const client_1 = require("@apollo/client");
29
29
  const Apollo = __importStar(require("@apollo/client"));
30
30
  var IBlockchains;
@@ -1434,3 +1434,37 @@ function useFetchUserWalletsLazyQuery(baseOptions) {
1434
1434
  return Apollo.useLazyQuery(exports.FetchUserWalletsDocument, baseOptions);
1435
1435
  }
1436
1436
  exports.useFetchUserWalletsLazyQuery = useFetchUserWalletsLazyQuery;
1437
+ exports.FetchWalletTwitterRankDocument = (0, client_1.gql) `
1438
+ query FetchWalletTwitterRank($wallet: String!, $twitterUsername: String) {
1439
+ fetchWalletTwitterRank(wallet: $wallet, twitterUsername: $twitterUsername) {
1440
+ walletRank
1441
+ twitterScore
1442
+ aggregatedRank
1443
+ }
1444
+ }
1445
+ `;
1446
+ /**
1447
+ * __useFetchWalletTwitterRankQuery__
1448
+ *
1449
+ * To run a query within a React component, call `useFetchWalletTwitterRankQuery` and pass it any options that fit your needs.
1450
+ * When your component renders, `useFetchWalletTwitterRankQuery` returns an object from Apollo Client that contains loading, error, and data properties
1451
+ * you can use to render your UI.
1452
+ *
1453
+ * @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;
1454
+ *
1455
+ * @example
1456
+ * const { data, loading, error } = useFetchWalletTwitterRankQuery({
1457
+ * variables: {
1458
+ * wallet: // value for 'wallet'
1459
+ * twitterUsername: // value for 'twitterUsername'
1460
+ * },
1461
+ * });
1462
+ */
1463
+ function useFetchWalletTwitterRankQuery(baseOptions) {
1464
+ return Apollo.useQuery(exports.FetchWalletTwitterRankDocument, baseOptions);
1465
+ }
1466
+ exports.useFetchWalletTwitterRankQuery = useFetchWalletTwitterRankQuery;
1467
+ function useFetchWalletTwitterRankLazyQuery(baseOptions) {
1468
+ return Apollo.useLazyQuery(exports.FetchWalletTwitterRankDocument, baseOptions);
1469
+ }
1470
+ exports.useFetchWalletTwitterRankLazyQuery = useFetchWalletTwitterRankLazyQuery;
package/build/index.d.ts CHANGED
@@ -1383,6 +1383,20 @@ declare const schema: {
1383
1383
  }>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchUserWalletsQuery, identitySchema.Exact<{
1384
1384
  userId: string;
1385
1385
  }>>;
1386
+ useFetchWalletTwitterRankQuery(baseOptions: import("@apollo/client").QueryHookOptions<identitySchema.IFetchWalletTwitterRankQuery, identitySchema.Exact<{
1387
+ wallet: string;
1388
+ twitterUsername?: identitySchema.Maybe<string> | undefined;
1389
+ }>>): import("@apollo/client").QueryResult<identitySchema.IFetchWalletTwitterRankQuery, identitySchema.Exact<{
1390
+ wallet: string;
1391
+ twitterUsername?: identitySchema.Maybe<string> | undefined;
1392
+ }>>;
1393
+ useFetchWalletTwitterRankLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<identitySchema.IFetchWalletTwitterRankQuery, identitySchema.Exact<{
1394
+ wallet: string;
1395
+ twitterUsername?: identitySchema.Maybe<string> | undefined;
1396
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchWalletTwitterRankQuery, identitySchema.Exact<{
1397
+ wallet: string;
1398
+ twitterUsername?: identitySchema.Maybe<string> | undefined;
1399
+ }>>;
1386
1400
  ILoginSource: typeof identitySchema.ILoginSource;
1387
1401
  ILoginType: typeof identitySchema.ILoginType;
1388
1402
  IRole: typeof identitySchema.IRole;
@@ -1422,6 +1436,7 @@ declare const schema: {
1422
1436
  FetchLudoNftForWalletDocument: import("graphql").DocumentNode;
1423
1437
  FetchProfileDocument: import("graphql").DocumentNode;
1424
1438
  FetchUserWalletsDocument: import("graphql").DocumentNode;
1439
+ FetchWalletTwitterRankDocument: import("graphql").DocumentNode;
1425
1440
  useAddAssetsToGalleryV2Mutation(baseOptions?: import("@apollo/client").MutationHookOptions<galleriesSchema.IAddAssetsToGalleryV2Mutation, galleriesSchema.Exact<{
1426
1441
  galleryId: string;
1427
1442
  assetIds: string[];
@@ -1725,6 +1740,16 @@ declare const schema: {
1725
1740
  FetchNftRanksDocument: import("graphql").DocumentNode;
1726
1741
  FetchWalletRanksDocument: import("graphql").DocumentNode;
1727
1742
  FetchWalletRanksV2Document: import("graphql").DocumentNode;
1743
+ useFetchMintingReferralLinkQuery(baseOptions?: import("@apollo/client").QueryHookOptions<experiencesSchema.IFetchMintingReferralLinkQuery, experiencesSchema.Exact<{
1744
+ [key: string]: never;
1745
+ }>> | undefined): import("@apollo/client").QueryResult<experiencesSchema.IFetchMintingReferralLinkQuery, experiencesSchema.Exact<{
1746
+ [key: string]: never;
1747
+ }>>;
1748
+ useFetchMintingReferralLinkLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<experiencesSchema.IFetchMintingReferralLinkQuery, experiencesSchema.Exact<{
1749
+ [key: string]: never;
1750
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMintingReferralLinkQuery, experiencesSchema.Exact<{
1751
+ [key: string]: never;
1752
+ }>>;
1728
1753
  useFetchMyActivityStreakQuery(baseOptions?: import("@apollo/client").QueryHookOptions<experiencesSchema.IFetchMyActivityStreakQuery, experiencesSchema.Exact<{
1729
1754
  [key: string]: never;
1730
1755
  }>> | undefined): import("@apollo/client").QueryResult<experiencesSchema.IFetchMyActivityStreakQuery, experiencesSchema.Exact<{
@@ -1755,6 +1780,7 @@ declare const schema: {
1755
1780
  }>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMyMonthReferralsXpsQuery, experiencesSchema.Exact<{
1756
1781
  [key: string]: never;
1757
1782
  }>>;
1783
+ FetchMintingReferralLinkDocument: import("graphql").DocumentNode;
1758
1784
  FetchMyActivityStreakDocument: import("graphql").DocumentNode;
1759
1785
  FetchMyExperienceDocument: import("graphql").DocumentNode;
1760
1786
  FetchMyMonthReferralsXpsDocument: import("graphql").DocumentNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "3.2.61",
3
+ "version": "3.2.63",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -60,6 +60,7 @@ export type IQuery = {
60
60
  fetchMyLatestExperienceIncrement?: Maybe<IUserXpIncrement>;
61
61
  fetchMyMonthReferralsXps: Scalars['Int'];
62
62
  fetchMyActivityStreak?: Maybe<IActivityStreak>;
63
+ fetchMintingReferralLink: Scalars['String'];
63
64
  };
64
65
 
65
66
  export type ISubscription = {
@@ -243,6 +244,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
243
244
  fetchMyLatestExperienceIncrement?: Resolver<Maybe<IResolversTypes['UserXPIncrement']>, ParentType, ContextType>;
244
245
  fetchMyMonthReferralsXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
245
246
  fetchMyActivityStreak?: Resolver<Maybe<IResolversTypes['ActivityStreak']>, ParentType, ContextType>;
247
+ fetchMintingReferralLink?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
246
248
  };
247
249
 
248
250
  export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
@@ -287,6 +289,11 @@ export type IDirectiveResolvers<ContextType = any> = {
287
289
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
288
290
  };
289
291
 
292
+ export type IFetchMintingReferralLinkQueryVariables = Exact<{ [key: string]: never; }>;
293
+
294
+
295
+ export type IFetchMintingReferralLinkQuery = Pick<IQuery, 'fetchMintingReferralLink'>;
296
+
290
297
  export type IFetchMyActivityStreakQueryVariables = Exact<{ [key: string]: never; }>;
291
298
 
292
299
 
@@ -303,6 +310,36 @@ export type IFetchMyMonthReferralsXpsQueryVariables = Exact<{ [key: string]: nev
303
310
  export type IFetchMyMonthReferralsXpsQuery = Pick<IQuery, 'fetchMyMonthReferralsXps'>;
304
311
 
305
312
 
313
+ export const FetchMintingReferralLinkDocument = gql`
314
+ query FetchMintingReferralLink {
315
+ fetchMintingReferralLink
316
+ }
317
+ `;
318
+
319
+ /**
320
+ * __useFetchMintingReferralLinkQuery__
321
+ *
322
+ * To run a query within a React component, call `useFetchMintingReferralLinkQuery` and pass it any options that fit your needs.
323
+ * When your component renders, `useFetchMintingReferralLinkQuery` returns an object from Apollo Client that contains loading, error, and data properties
324
+ * you can use to render your UI.
325
+ *
326
+ * @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;
327
+ *
328
+ * @example
329
+ * const { data, loading, error } = useFetchMintingReferralLinkQuery({
330
+ * variables: {
331
+ * },
332
+ * });
333
+ */
334
+ export function useFetchMintingReferralLinkQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMintingReferralLinkQuery, IFetchMintingReferralLinkQueryVariables>) {
335
+ return Apollo.useQuery<IFetchMintingReferralLinkQuery, IFetchMintingReferralLinkQueryVariables>(FetchMintingReferralLinkDocument, baseOptions);
336
+ }
337
+ export function useFetchMintingReferralLinkLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMintingReferralLinkQuery, IFetchMintingReferralLinkQueryVariables>) {
338
+ return Apollo.useLazyQuery<IFetchMintingReferralLinkQuery, IFetchMintingReferralLinkQueryVariables>(FetchMintingReferralLinkDocument, baseOptions);
339
+ }
340
+ export type FetchMintingReferralLinkQueryHookResult = ReturnType<typeof useFetchMintingReferralLinkQuery>;
341
+ export type FetchMintingReferralLinkLazyQueryHookResult = ReturnType<typeof useFetchMintingReferralLinkLazyQuery>;
342
+ export type FetchMintingReferralLinkQueryResult = Apollo.QueryResult<IFetchMintingReferralLinkQuery, IFetchMintingReferralLinkQueryVariables>;
306
343
  export const FetchMyActivityStreakDocument = gql`
307
344
  query FetchMyActivityStreak {
308
345
  fetchMyActivityStreak {
@@ -477,6 +477,7 @@ export type IQuery = {
477
477
  fetchAggregatedMultiversxAudit?: Maybe<IMultiversxAudit>;
478
478
  fetchIsLudoNftMintable: Scalars['Boolean'];
479
479
  fetchLudoNftForWallet?: Maybe<ILudoNft>;
480
+ fetchWalletTwitterRank: IWalletTwitterRank;
480
481
  fetchInviteCode: IInviteCode;
481
482
  fetchMyProfileV2: IMyProfileV2;
482
483
  fetchProfile: IProfile;
@@ -518,6 +519,12 @@ export type IQueryFetchLudoNftForWalletArgs = {
518
519
  };
519
520
 
520
521
 
522
+ export type IQueryFetchWalletTwitterRankArgs = {
523
+ wallet: Scalars['String'];
524
+ twitterUsername?: Maybe<Scalars['String']>;
525
+ };
526
+
527
+
521
528
  export type IQueryFetchInviteCodeArgs = {
522
529
  inviteCode: Scalars['String'];
523
530
  };
@@ -594,6 +601,12 @@ export type IWallet = {
594
601
  mainWallet: Scalars['Boolean'];
595
602
  };
596
603
 
604
+ export type IWalletTwitterRank = {
605
+ walletRank: Scalars['Float'];
606
+ twitterScore: Scalars['Float'];
607
+ aggregatedRank: Scalars['Float'];
608
+ };
609
+
597
610
 
598
611
 
599
612
  export type ResolverTypeWrapper<T> = Promise<T> | T;
@@ -702,6 +715,7 @@ export type IResolversTypes = {
702
715
  TokenPairs: ResolverTypeWrapper<ITokenPairs>;
703
716
  UserInviteCode: ResolverTypeWrapper<IUserInviteCode>;
704
717
  Wallet: ResolverTypeWrapper<IWallet>;
718
+ WalletTwitterRank: ResolverTypeWrapper<IWalletTwitterRank>;
705
719
  };
706
720
 
707
721
  /** Mapping between all available schema types and the resolvers parents */
@@ -739,6 +753,7 @@ export type IResolversParentTypes = {
739
753
  TokenPairs: ITokenPairs;
740
754
  UserInviteCode: IUserInviteCode;
741
755
  Wallet: IWallet;
756
+ WalletTwitterRank: IWalletTwitterRank;
742
757
  };
743
758
 
744
759
  export type IPatternDirectiveArgs = {
@@ -990,6 +1005,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
990
1005
  fetchAggregatedMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchAggregatedMultiversxAuditArgs, 'userId'>>;
991
1006
  fetchIsLudoNftMintable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryFetchIsLudoNftMintableArgs, 'blockchain' | 'address'>>;
992
1007
  fetchLudoNftForWallet?: Resolver<Maybe<IResolversTypes['LudoNft']>, ParentType, ContextType, RequireFields<IQueryFetchLudoNftForWalletArgs, 'blockchain' | 'address'>>;
1008
+ fetchWalletTwitterRank?: Resolver<IResolversTypes['WalletTwitterRank'], ParentType, ContextType, RequireFields<IQueryFetchWalletTwitterRankArgs, 'wallet'>>;
993
1009
  fetchInviteCode?: Resolver<IResolversTypes['InviteCode'], ParentType, ContextType, RequireFields<IQueryFetchInviteCodeArgs, 'inviteCode'>>;
994
1010
  fetchMyProfileV2?: Resolver<IResolversTypes['MyProfileV2'], ParentType, ContextType>;
995
1011
  fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
@@ -1041,6 +1057,13 @@ export type IWalletResolvers<ContextType = any, ParentType extends IResolversPar
1041
1057
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1042
1058
  };
1043
1059
 
1060
+ export type IWalletTwitterRankResolvers<ContextType = any, ParentType extends IResolversParentTypes['WalletTwitterRank'] = IResolversParentTypes['WalletTwitterRank']> = {
1061
+ walletRank?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
1062
+ twitterScore?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
1063
+ aggregatedRank?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
1064
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1065
+ };
1066
+
1044
1067
  export type IResolvers<ContextType = any> = {
1045
1068
  AuditBalanceCollection?: IAuditBalanceCollectionResolvers<ContextType>;
1046
1069
  AuditInterest?: IAuditInterestResolvers<ContextType>;
@@ -1064,6 +1087,7 @@ export type IResolvers<ContextType = any> = {
1064
1087
  TokenPairs?: ITokenPairsResolvers<ContextType>;
1065
1088
  UserInviteCode?: IUserInviteCodeResolvers<ContextType>;
1066
1089
  Wallet?: IWalletResolvers<ContextType>;
1090
+ WalletTwitterRank?: IWalletTwitterRankResolvers<ContextType>;
1067
1091
  };
1068
1092
 
1069
1093
  export type IDirectiveResolvers<ContextType = any> = {
@@ -1409,6 +1433,14 @@ export type IFetchUserWalletsQueryVariables = Exact<{
1409
1433
 
1410
1434
  export type IFetchUserWalletsQuery = { fetchUserWallets: Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>> };
1411
1435
 
1436
+ export type IFetchWalletTwitterRankQueryVariables = Exact<{
1437
+ wallet: Scalars['String'];
1438
+ twitterUsername?: Maybe<Scalars['String']>;
1439
+ }>;
1440
+
1441
+
1442
+ export type IFetchWalletTwitterRankQuery = { fetchWalletTwitterRank: Pick<IWalletTwitterRank, 'walletRank' | 'twitterScore' | 'aggregatedRank'> };
1443
+
1412
1444
 
1413
1445
  export const SignInEthereumWeb3AuthDocument = gql`
1414
1446
  mutation signInEthereumWeb3Auth($signInData: EthereumSignInData!, $loginType: LoginType!, $additionalMeta: JSON, $loginSource: LoginSource) {
@@ -2884,4 +2916,40 @@ export function useFetchUserWalletsLazyQuery(baseOptions?: Apollo.LazyQueryHookO
2884
2916
  }
2885
2917
  export type FetchUserWalletsQueryHookResult = ReturnType<typeof useFetchUserWalletsQuery>;
2886
2918
  export type FetchUserWalletsLazyQueryHookResult = ReturnType<typeof useFetchUserWalletsLazyQuery>;
2887
- export type FetchUserWalletsQueryResult = Apollo.QueryResult<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>;
2919
+ export type FetchUserWalletsQueryResult = Apollo.QueryResult<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>;
2920
+ export const FetchWalletTwitterRankDocument = gql`
2921
+ query FetchWalletTwitterRank($wallet: String!, $twitterUsername: String) {
2922
+ fetchWalletTwitterRank(wallet: $wallet, twitterUsername: $twitterUsername) {
2923
+ walletRank
2924
+ twitterScore
2925
+ aggregatedRank
2926
+ }
2927
+ }
2928
+ `;
2929
+
2930
+ /**
2931
+ * __useFetchWalletTwitterRankQuery__
2932
+ *
2933
+ * To run a query within a React component, call `useFetchWalletTwitterRankQuery` and pass it any options that fit your needs.
2934
+ * When your component renders, `useFetchWalletTwitterRankQuery` returns an object from Apollo Client that contains loading, error, and data properties
2935
+ * you can use to render your UI.
2936
+ *
2937
+ * @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;
2938
+ *
2939
+ * @example
2940
+ * const { data, loading, error } = useFetchWalletTwitterRankQuery({
2941
+ * variables: {
2942
+ * wallet: // value for 'wallet'
2943
+ * twitterUsername: // value for 'twitterUsername'
2944
+ * },
2945
+ * });
2946
+ */
2947
+ export function useFetchWalletTwitterRankQuery(baseOptions: Apollo.QueryHookOptions<IFetchWalletTwitterRankQuery, IFetchWalletTwitterRankQueryVariables>) {
2948
+ return Apollo.useQuery<IFetchWalletTwitterRankQuery, IFetchWalletTwitterRankQueryVariables>(FetchWalletTwitterRankDocument, baseOptions);
2949
+ }
2950
+ export function useFetchWalletTwitterRankLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchWalletTwitterRankQuery, IFetchWalletTwitterRankQueryVariables>) {
2951
+ return Apollo.useLazyQuery<IFetchWalletTwitterRankQuery, IFetchWalletTwitterRankQueryVariables>(FetchWalletTwitterRankDocument, baseOptions);
2952
+ }
2953
+ export type FetchWalletTwitterRankQueryHookResult = ReturnType<typeof useFetchWalletTwitterRankQuery>;
2954
+ export type FetchWalletTwitterRankLazyQueryHookResult = ReturnType<typeof useFetchWalletTwitterRankLazyQuery>;
2955
+ export type FetchWalletTwitterRankQueryResult = Apollo.QueryResult<IFetchWalletTwitterRankQuery, IFetchWalletTwitterRankQueryVariables>;