@ludo.ninja/api 3.2.22 → 3.2.24

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.
@@ -362,6 +362,7 @@ export type IAdminReferral = {
362
362
  mainWallet?: Maybe<IWallet>;
363
363
  referredUsersNum?: Maybe<Scalars['Int']>;
364
364
  referrals?: Maybe<Array<IReferredUsersInfo>>;
365
+ referralLinks?: Maybe<Array<IReferralLink>>;
365
366
  };
366
367
 
367
368
  export type IAdminUser = {
@@ -592,6 +593,31 @@ export enum IDevicePlatform {
592
593
  Unknown = 'UNKNOWN'
593
594
  }
594
595
 
596
+ export type IFeaturePackPurchase = {
597
+ userId: Scalars['String'];
598
+ username?: Maybe<Scalars['String']>;
599
+ price: Scalars['Float'];
600
+ featurePackId: Scalars['String'];
601
+ featurePackName: Scalars['String'];
602
+ };
603
+
604
+ export type IFeaturePackPurchaseFilterInput = {
605
+ userIdTerm?: Maybe<Scalars['String']>;
606
+ usernameTerm?: Maybe<Scalars['String']>;
607
+ price?: Maybe<Scalars['Float']>;
608
+ featurePackId?: Maybe<Scalars['String']>;
609
+ };
610
+
611
+ export type IFeaturePackPurchasePage = {
612
+ purchases?: Maybe<Array<IFeaturePackPurchase>>;
613
+ nextPage?: Maybe<IAdminPage>;
614
+ };
615
+
616
+ export type IFeaturePackPurchaseSortInput = {
617
+ sortByUsername?: Maybe<ISort>;
618
+ sortByFeaturePack?: Maybe<ISort>;
619
+ };
620
+
595
621
  export type IFormOpportunityFilterInput = {
596
622
  idTerm?: Maybe<Scalars['String']>;
597
623
  userIdTerm?: Maybe<Scalars['String']>;
@@ -1086,6 +1112,7 @@ export type IPublisherInput = {
1086
1112
 
1087
1113
  export type IQuery = {
1088
1114
  getDummy: Scalars['String'];
1115
+ fetchFeaturePackPurchasePage: IFeaturePackPurchasePage;
1089
1116
  fetchContactSupportPage: IContactSupportPage;
1090
1117
  fetchContentReportPage: IContentReportPage;
1091
1118
  fetchInvestorInquiryPage: IInvestorInquiryPage;
@@ -1125,6 +1152,13 @@ export type IQuery = {
1125
1152
  };
1126
1153
 
1127
1154
 
1155
+ export type IQueryFetchFeaturePackPurchasePageArgs = {
1156
+ filter: IFeaturePackPurchaseFilterInput;
1157
+ sort: IFeaturePackPurchaseSortInput;
1158
+ page: IAdminPageInput;
1159
+ };
1160
+
1161
+
1128
1162
  export type IQueryFetchContactSupportPageArgs = {
1129
1163
  filter: IContactSupportFilterInput;
1130
1164
  sort: IContactSupportSortInput;
@@ -1332,6 +1366,7 @@ export type IRateLimitsInput = {
1332
1366
 
1333
1367
  export type IReferralLink = {
1334
1368
  referralUrl?: Maybe<Scalars['String']>;
1369
+ referralType?: Maybe<ITrafficReferralType>;
1335
1370
  numOfReferredIps?: Maybe<Scalars['Int']>;
1336
1371
  numOfReferredUsers?: Maybe<Scalars['Int']>;
1337
1372
  refcode?: Maybe<Scalars['String']>;
@@ -1497,6 +1532,13 @@ export type ITiersSortInput = {
1497
1532
  sortByFee?: Maybe<ISort>;
1498
1533
  };
1499
1534
 
1535
+ export enum ITrafficReferralType {
1536
+ Opportunity = 'OPPORTUNITY',
1537
+ Profile = 'PROFILE',
1538
+ Brand = 'BRAND',
1539
+ Project = 'PROJECT'
1540
+ }
1541
+
1500
1542
 
1501
1543
  export type IUserFeedback = {
1502
1544
  id: Scalars['String'];
@@ -1729,6 +1771,10 @@ export type IResolversTypes = {
1729
1771
  ContentReportSortInput: IContentReportSortInput;
1730
1772
  Country: ResolverTypeWrapper<ICountry>;
1731
1773
  DevicePlatform: IDevicePlatform;
1774
+ FeaturePackPurchase: ResolverTypeWrapper<IFeaturePackPurchase>;
1775
+ FeaturePackPurchaseFilterInput: IFeaturePackPurchaseFilterInput;
1776
+ FeaturePackPurchasePage: ResolverTypeWrapper<IFeaturePackPurchasePage>;
1777
+ FeaturePackPurchaseSortInput: IFeaturePackPurchaseSortInput;
1732
1778
  FormOpportunityFilterInput: IFormOpportunityFilterInput;
1733
1779
  FormOpportunityPage: ResolverTypeWrapper<IFormOpportunityPage>;
1734
1780
  FormOpportunitySortInput: IFormOpportunitySortInput;
@@ -1790,6 +1836,7 @@ export type IResolversTypes = {
1790
1836
  TiersFilterInput: ITiersFilterInput;
1791
1837
  TiersPage: ResolverTypeWrapper<ITiersPage>;
1792
1838
  TiersSortInput: ITiersSortInput;
1839
+ TrafficReferralType: ITrafficReferralType;
1793
1840
  Upload: ResolverTypeWrapper<Scalars['Upload']>;
1794
1841
  UserFeedback: ResolverTypeWrapper<IUserFeedback>;
1795
1842
  UserFeedbackFilterInput: IUserFeedbackFilterInput;
@@ -1864,6 +1911,10 @@ export type IResolversParentTypes = {
1864
1911
  ContentReportPage: IContentReportPage;
1865
1912
  ContentReportSortInput: IContentReportSortInput;
1866
1913
  Country: ICountry;
1914
+ FeaturePackPurchase: IFeaturePackPurchase;
1915
+ FeaturePackPurchaseFilterInput: IFeaturePackPurchaseFilterInput;
1916
+ FeaturePackPurchasePage: IFeaturePackPurchasePage;
1917
+ FeaturePackPurchaseSortInput: IFeaturePackPurchaseSortInput;
1867
1918
  FormOpportunityFilterInput: IFormOpportunityFilterInput;
1868
1919
  FormOpportunityPage: IFormOpportunityPage;
1869
1920
  FormOpportunitySortInput: IFormOpportunitySortInput;
@@ -2198,6 +2249,7 @@ export type IAdminReferralResolvers<ContextType = any, ParentType extends IResol
2198
2249
  mainWallet?: Resolver<Maybe<IResolversTypes['Wallet']>, ParentType, ContextType>;
2199
2250
  referredUsersNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
2200
2251
  referrals?: Resolver<Maybe<Array<IResolversTypes['ReferredUsersInfo']>>, ParentType, ContextType>;
2252
+ referralLinks?: Resolver<Maybe<Array<IResolversTypes['ReferralLink']>>, ParentType, ContextType>;
2201
2253
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
2202
2254
  };
2203
2255
 
@@ -2296,6 +2348,21 @@ export type ICountryResolvers<ContextType = any, ParentType extends IResolversPa
2296
2348
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
2297
2349
  };
2298
2350
 
2351
+ export type IFeaturePackPurchaseResolvers<ContextType = any, ParentType extends IResolversParentTypes['FeaturePackPurchase'] = IResolversParentTypes['FeaturePackPurchase']> = {
2352
+ userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
2353
+ username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
2354
+ price?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
2355
+ featurePackId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
2356
+ featurePackName?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
2357
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
2358
+ };
2359
+
2360
+ export type IFeaturePackPurchasePageResolvers<ContextType = any, ParentType extends IResolversParentTypes['FeaturePackPurchasePage'] = IResolversParentTypes['FeaturePackPurchasePage']> = {
2361
+ purchases?: Resolver<Maybe<Array<IResolversTypes['FeaturePackPurchase']>>, ParentType, ContextType>;
2362
+ nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
2363
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
2364
+ };
2365
+
2299
2366
  export type IFormOpportunityPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['FormOpportunityPage'] = IResolversParentTypes['FormOpportunityPage']> = {
2300
2367
  opportunities?: Resolver<Array<IResolversTypes['AdminFormOpportunity']>, ParentType, ContextType>;
2301
2368
  nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
@@ -2407,6 +2474,7 @@ export type IPartnershipInquiryPageResolvers<ContextType = any, ParentType exten
2407
2474
 
2408
2475
  export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
2409
2476
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
2477
+ fetchFeaturePackPurchasePage?: Resolver<IResolversTypes['FeaturePackPurchasePage'], ParentType, ContextType, RequireFields<IQueryFetchFeaturePackPurchasePageArgs, 'filter' | 'sort' | 'page'>>;
2410
2478
  fetchContactSupportPage?: Resolver<IResolversTypes['ContactSupportPage'], ParentType, ContextType, RequireFields<IQueryFetchContactSupportPageArgs, 'filter' | 'sort' | 'page'>>;
2411
2479
  fetchContentReportPage?: Resolver<IResolversTypes['ContentReportPage'], ParentType, ContextType, RequireFields<IQueryFetchContentReportPageArgs, 'filter' | 'sort' | 'page'>>;
2412
2480
  fetchInvestorInquiryPage?: Resolver<IResolversTypes['InvestorInquiryPage'], ParentType, ContextType, RequireFields<IQueryFetchInvestorInquiryPageArgs, 'filter' | 'sort' | 'page'>>;
@@ -2456,6 +2524,7 @@ export type IRateLimitsResolvers<ContextType = any, ParentType extends IResolver
2456
2524
 
2457
2525
  export type IReferralLinkResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralLink'] = IResolversParentTypes['ReferralLink']> = {
2458
2526
  referralUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
2527
+ referralType?: Resolver<Maybe<IResolversTypes['TrafficReferralType']>, ParentType, ContextType>;
2459
2528
  numOfReferredIps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
2460
2529
  numOfReferredUsers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
2461
2530
  refcode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
@@ -2603,6 +2672,8 @@ export type IResolvers<ContextType = any> = {
2603
2672
  ContactSupportPage?: IContactSupportPageResolvers<ContextType>;
2604
2673
  ContentReportPage?: IContentReportPageResolvers<ContextType>;
2605
2674
  Country?: ICountryResolvers<ContextType>;
2675
+ FeaturePackPurchase?: IFeaturePackPurchaseResolvers<ContextType>;
2676
+ FeaturePackPurchasePage?: IFeaturePackPurchasePageResolvers<ContextType>;
2606
2677
  FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
2607
2678
  InvestorInquiryPage?: IInvestorInquiryPageResolvers<ContextType>;
2608
2679
  InvitesPage?: IInvitesPageResolvers<ContextType>;
@@ -19,6 +19,8 @@ export type Scalars = {
19
19
  };
20
20
 
21
21
 
22
+
23
+
22
24
  export type IAttribute = {
23
25
  name?: Maybe<Scalars['String']>;
24
26
  value?: Maybe<Scalars['String']>;
@@ -306,6 +308,17 @@ export type IResolversParentTypes = {
306
308
  Query: {};
307
309
  };
308
310
 
311
+ export type IDeferDirectiveArgs = {
312
+ if?: Scalars['Boolean'];
313
+ label?: Maybe<Scalars['String']>;
314
+ };
315
+
316
+ export type IDeferDirectiveResolver<Result, Parent, ContextType = any, Args = IDeferDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
317
+
318
+ export type IExperimental_DisableErrorPropagationDirectiveArgs = { };
319
+
320
+ export type IExperimental_DisableErrorPropagationDirectiveResolver<Result, Parent, ContextType = any, Args = IExperimental_DisableErrorPropagationDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
321
+
309
322
  export type IOneOfDirectiveArgs = { };
310
323
 
311
324
  export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
@@ -470,6 +483,8 @@ export type IResolvers<ContextType = any> = {
470
483
  };
471
484
 
472
485
  export type IDirectiveResolvers<ContextType = any> = {
486
+ defer?: IDeferDirectiveResolver<any, any, ContextType>;
487
+ experimental_disableErrorPropagation?: IExperimental_DisableErrorPropagationDirectiveResolver<any, any, ContextType>;
473
488
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
474
489
  };
475
490
 
@@ -55,6 +55,7 @@ export type IQuery = {
55
55
  getDummy: Scalars['String'];
56
56
  fetchMintingInfo: IMintingInfo;
57
57
  fetchGasPrice: Scalars['Long'];
58
+ fetchNativeCoinPrice: Scalars['Float'];
58
59
  };
59
60
 
60
61
 
@@ -67,6 +68,11 @@ export type IQueryFetchGasPriceArgs = {
67
68
  chain: IBlockchains;
68
69
  };
69
70
 
71
+
72
+ export type IQueryFetchNativeCoinPriceArgs = {
73
+ chain: IBlockchains;
74
+ };
75
+
70
76
  export type ITier = {
71
77
  id: Scalars['String'];
72
78
  name: Scalars['String'];
@@ -204,6 +210,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
204
210
  getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
205
211
  fetchMintingInfo?: Resolver<IResolversTypes['MintingInfo'], ParentType, ContextType, RequireFields<IQueryFetchMintingInfoArgs, 'input'>>;
206
212
  fetchGasPrice?: Resolver<IResolversTypes['Long'], ParentType, ContextType, RequireFields<IQueryFetchGasPriceArgs, 'chain'>>;
213
+ fetchNativeCoinPrice?: Resolver<IResolversTypes['Float'], ParentType, ContextType, RequireFields<IQueryFetchNativeCoinPriceArgs, 'chain'>>;
207
214
  };
208
215
 
209
216
  export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
@@ -252,6 +259,13 @@ export type IFetchMintingInfoQuery = { fetchMintingInfo: (
252
259
  ) }
253
260
  ) };
254
261
 
262
+ export type IFetchNativeCoinPriceQueryVariables = Exact<{
263
+ chain: IBlockchains;
264
+ }>;
265
+
266
+
267
+ export type IFetchNativeCoinPriceQuery = Pick<IQuery, 'fetchNativeCoinPrice'>;
268
+
255
269
 
256
270
  export const FetchMintingInfoDocument = gql`
257
271
  query FetchMintingInfo($input: MintingInput!) {
@@ -295,4 +309,35 @@ export function useFetchMintingInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookO
295
309
  }
296
310
  export type FetchMintingInfoQueryHookResult = ReturnType<typeof useFetchMintingInfoQuery>;
297
311
  export type FetchMintingInfoLazyQueryHookResult = ReturnType<typeof useFetchMintingInfoLazyQuery>;
298
- export type FetchMintingInfoQueryResult = Apollo.QueryResult<IFetchMintingInfoQuery, IFetchMintingInfoQueryVariables>;
312
+ export type FetchMintingInfoQueryResult = Apollo.QueryResult<IFetchMintingInfoQuery, IFetchMintingInfoQueryVariables>;
313
+ export const FetchNativeCoinPriceDocument = gql`
314
+ query FetchNativeCoinPrice($chain: Blockchains!) {
315
+ fetchNativeCoinPrice(chain: $chain)
316
+ }
317
+ `;
318
+
319
+ /**
320
+ * __useFetchNativeCoinPriceQuery__
321
+ *
322
+ * To run a query within a React component, call `useFetchNativeCoinPriceQuery` and pass it any options that fit your needs.
323
+ * When your component renders, `useFetchNativeCoinPriceQuery` 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 } = useFetchNativeCoinPriceQuery({
330
+ * variables: {
331
+ * chain: // value for 'chain'
332
+ * },
333
+ * });
334
+ */
335
+ export function useFetchNativeCoinPriceQuery(baseOptions: Apollo.QueryHookOptions<IFetchNativeCoinPriceQuery, IFetchNativeCoinPriceQueryVariables>) {
336
+ return Apollo.useQuery<IFetchNativeCoinPriceQuery, IFetchNativeCoinPriceQueryVariables>(FetchNativeCoinPriceDocument, baseOptions);
337
+ }
338
+ export function useFetchNativeCoinPriceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchNativeCoinPriceQuery, IFetchNativeCoinPriceQueryVariables>) {
339
+ return Apollo.useLazyQuery<IFetchNativeCoinPriceQuery, IFetchNativeCoinPriceQueryVariables>(FetchNativeCoinPriceDocument, baseOptions);
340
+ }
341
+ export type FetchNativeCoinPriceQueryHookResult = ReturnType<typeof useFetchNativeCoinPriceQuery>;
342
+ export type FetchNativeCoinPriceLazyQueryHookResult = ReturnType<typeof useFetchNativeCoinPriceLazyQuery>;
343
+ export type FetchNativeCoinPriceQueryResult = Apollo.QueryResult<IFetchNativeCoinPriceQuery, IFetchNativeCoinPriceQueryVariables>;
@@ -1307,7 +1307,7 @@ export type IFetchProjectBySlugQueryVariables = Exact<{
1307
1307
 
1308
1308
 
1309
1309
  export type IFetchProjectBySlugQuery = { fetchProjectBySlug: (
1310
- Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'mediaUrl' | 'originalMediaUrl' | 'shareLink' | 'userReaction' | 'communityVote' | 'hideDiagrams'>
1310
+ Pick<IProject, 'blockchain' | 'contract' | 'name' | 'slug' | 'symbol' | 'website' | 'twitter' | 'type' | 'ludoRank' | 'investors' | 'holders' | 'volume' | 'marketCap' | 'liquidity' | 'price' | 'twitterFollowers' | 'twitterSentiment' | 'verified' | 'mediaUrl' | 'originalMediaUrl' | 'alertsSubscriptionIsActive' | 'shareLink' | 'userReaction' | 'communityVote' | 'hideDiagrams'>
1311
1311
  & { publisher?: Maybe<Pick<IPublisher, 'userId' | 'username' | 'userpic' | 'rank'>>, status?: Maybe<Pick<IProjectStatus, 'monitored' | 'removalReason' | 'removalDate'>>, snapshots?: Maybe<Array<Maybe<Pick<IProjectSnapshot, 'date' | 'contract' | 'blockchain' | 'volume' | 'marketCap' | 'price' | 'liquidity' | 'xFollowers' | 'holders' | 'ludoRank'>>>>, reactions: Pick<IProjectReactions, 'likes' | 'neutrals' | 'dislikes'>, votesGeo?: Maybe<Array<Maybe<Pick<IVotesGeolocation, 'country' | 'votes' | 'votesPercentage'>>>>, airdrops?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>, opportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>, communityVotes?: Maybe<Array<Maybe<Pick<IProjectCommunityVote, 'calculatedAt' | 'communityVote' | 'likesRating' | 'neutralsRating' | 'dislikesRating'>>>>, holdersGeo?: Maybe<Array<Maybe<Pick<IHoldersGeolocation, 'country' | 'holders' | 'percentage'>>>>, communityVoteDetails?: Maybe<Array<(
1312
1312
  Pick<ICommunityVoteDetails, 'projectId' | 'voteType' | 'avgUserRank' | 'avgWealth' | 'avgUserXps'>
1313
1313
  & { votesGeo?: Maybe<Array<Pick<IVotesGeolocation, 'country' | 'votes' | 'votesPercentage'>>> }
@@ -2568,6 +2568,7 @@ export const FetchProjectBySlugDocument = gql`
2568
2568
  verified
2569
2569
  mediaUrl
2570
2570
  originalMediaUrl
2571
+ alertsSubscriptionIsActive
2571
2572
  publisher {
2572
2573
  userId
2573
2574
  username