@ludo.ninja/api 2.8.40 → 2.8.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +126 -0
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +87 -0
- package/build/graphql_tools/__generated__/identityHost/schema.js +68 -1
- package/build/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +142 -0
- package/src/graphql_tools/__generated__/identityHost/schema.ts +130 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -49,6 +49,26 @@ export type IAdminCategory = {
|
|
|
49
49
|
archived?: Maybe<Scalars['Boolean']>;
|
|
50
50
|
addedBy?: Maybe<Scalars['String']>;
|
|
51
51
|
};
|
|
52
|
+
export type IAdminContactSupport = {
|
|
53
|
+
id: Scalars['String'];
|
|
54
|
+
userId?: Maybe<Scalars['String']>;
|
|
55
|
+
email?: Maybe<Scalars['String']>;
|
|
56
|
+
walletAddress?: Maybe<Scalars['String']>;
|
|
57
|
+
category?: Maybe<Scalars['String']>;
|
|
58
|
+
description?: Maybe<Scalars['String']>;
|
|
59
|
+
priority?: Maybe<Scalars['String']>;
|
|
60
|
+
};
|
|
61
|
+
export type IAdminContentReport = {
|
|
62
|
+
id: Scalars['String'];
|
|
63
|
+
userId?: Maybe<Scalars['String']>;
|
|
64
|
+
email?: Maybe<Scalars['String']>;
|
|
65
|
+
nameOfSubject?: Maybe<Scalars['String']>;
|
|
66
|
+
contentType?: Maybe<Scalars['String']>;
|
|
67
|
+
contentId?: Maybe<Scalars['String']>;
|
|
68
|
+
reportReason?: Maybe<Scalars['String']>;
|
|
69
|
+
description?: Maybe<Scalars['String']>;
|
|
70
|
+
evidenceFileUrl?: Maybe<Scalars['String']>;
|
|
71
|
+
};
|
|
52
72
|
export type IAdminInvite = {
|
|
53
73
|
userId: Scalars['String'];
|
|
54
74
|
username?: Maybe<Scalars['String']>;
|
|
@@ -188,6 +208,46 @@ export type ICategoryInput = {
|
|
|
188
208
|
name: Scalars['String'];
|
|
189
209
|
matchingWords: Array<Scalars['String']>;
|
|
190
210
|
};
|
|
211
|
+
export type IContactSupportFilterInput = {
|
|
212
|
+
idTerm?: Maybe<Scalars['String']>;
|
|
213
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
214
|
+
emailTerm?: Maybe<Scalars['String']>;
|
|
215
|
+
walletAddressTerm?: Maybe<Scalars['String']>;
|
|
216
|
+
categoryTerm?: Maybe<Scalars['String']>;
|
|
217
|
+
descriptionTerm?: Maybe<Scalars['String']>;
|
|
218
|
+
priorityTerm?: Maybe<Scalars['String']>;
|
|
219
|
+
};
|
|
220
|
+
export type IContactSupportPage = {
|
|
221
|
+
contactSupports: Array<IAdminContactSupport>;
|
|
222
|
+
nextPage?: Maybe<IAdminPage>;
|
|
223
|
+
};
|
|
224
|
+
export type IContactSupportSortInput = {
|
|
225
|
+
sortByEmail?: Maybe<ISort>;
|
|
226
|
+
sortByWallet?: Maybe<ISort>;
|
|
227
|
+
sortByCategory?: Maybe<ISort>;
|
|
228
|
+
sortByPriority?: Maybe<ISort>;
|
|
229
|
+
};
|
|
230
|
+
export type IContentReportFilterInput = {
|
|
231
|
+
idTerm?: Maybe<Scalars['String']>;
|
|
232
|
+
userIdTerm?: Maybe<Scalars['String']>;
|
|
233
|
+
emailTerm?: Maybe<Scalars['String']>;
|
|
234
|
+
nameOfSubjectTerm?: Maybe<Scalars['String']>;
|
|
235
|
+
contentTypeTerm?: Maybe<Scalars['String']>;
|
|
236
|
+
contentIdTerm?: Maybe<Scalars['String']>;
|
|
237
|
+
reportReasonTerm?: Maybe<Scalars['String']>;
|
|
238
|
+
};
|
|
239
|
+
export type IContentReportPage = {
|
|
240
|
+
contentReports: Array<IAdminContentReport>;
|
|
241
|
+
nextPage?: Maybe<IAdminPage>;
|
|
242
|
+
};
|
|
243
|
+
export type IContentReportSortInput = {
|
|
244
|
+
sortByUserId?: Maybe<ISort>;
|
|
245
|
+
sortByEmail?: Maybe<ISort>;
|
|
246
|
+
sortByNameOfSubject?: Maybe<ISort>;
|
|
247
|
+
sortByContentType?: Maybe<ISort>;
|
|
248
|
+
sortByContentId?: Maybe<ISort>;
|
|
249
|
+
sortByReportReason?: Maybe<ISort>;
|
|
250
|
+
};
|
|
191
251
|
export type IInvitesFilterInput = {
|
|
192
252
|
userIdTerm?: Maybe<Scalars['String']>;
|
|
193
253
|
usernameTerm?: Maybe<Scalars['String']>;
|
|
@@ -322,6 +382,8 @@ export type IOpportunitiesSortInput = {
|
|
|
322
382
|
};
|
|
323
383
|
export type IQuery = {
|
|
324
384
|
getDummy: Scalars['String'];
|
|
385
|
+
fetchContactSupportPage: IContactSupportPage;
|
|
386
|
+
fetchContentReportPage: IContentReportPage;
|
|
325
387
|
fetchAdminInvitesPage: IInvitesPage;
|
|
326
388
|
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
327
389
|
fetchAdminCategories: Array<IAdminCategory>;
|
|
@@ -333,6 +395,16 @@ export type IQuery = {
|
|
|
333
395
|
fetchAdminUsersPage: IUsersPage;
|
|
334
396
|
fetchAdminXpPage: IXpPage;
|
|
335
397
|
};
|
|
398
|
+
export type IQueryFetchContactSupportPageArgs = {
|
|
399
|
+
filter: IContactSupportFilterInput;
|
|
400
|
+
sort: IContactSupportSortInput;
|
|
401
|
+
page: IAdminPageInput;
|
|
402
|
+
};
|
|
403
|
+
export type IQueryFetchContentReportPageArgs = {
|
|
404
|
+
filter: IContentReportFilterInput;
|
|
405
|
+
sort: IContentReportSortInput;
|
|
406
|
+
page: IAdminPageInput;
|
|
407
|
+
};
|
|
336
408
|
export type IQueryFetchAdminInvitesPageArgs = {
|
|
337
409
|
filter: IInvitesFilterInput;
|
|
338
410
|
sort: IInvitesSortInput;
|
|
@@ -488,6 +560,8 @@ export type IResolversTypes = {
|
|
|
488
560
|
AdminBrand: ResolverTypeWrapper<IAdminBrand>;
|
|
489
561
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
490
562
|
AdminCategory: ResolverTypeWrapper<IAdminCategory>;
|
|
563
|
+
AdminContactSupport: ResolverTypeWrapper<IAdminContactSupport>;
|
|
564
|
+
AdminContentReport: ResolverTypeWrapper<IAdminContentReport>;
|
|
491
565
|
AdminInvite: ResolverTypeWrapper<IAdminInvite>;
|
|
492
566
|
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
493
567
|
AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
|
|
@@ -507,6 +581,12 @@ export type IResolversTypes = {
|
|
|
507
581
|
CategoriesPage: ResolverTypeWrapper<ICategoriesPage>;
|
|
508
582
|
CategoriesSortInput: ICategoriesSortInput;
|
|
509
583
|
CategoryInput: ICategoryInput;
|
|
584
|
+
ContactSupportFilterInput: IContactSupportFilterInput;
|
|
585
|
+
ContactSupportPage: ResolverTypeWrapper<IContactSupportPage>;
|
|
586
|
+
ContactSupportSortInput: IContactSupportSortInput;
|
|
587
|
+
ContentReportFilterInput: IContentReportFilterInput;
|
|
588
|
+
ContentReportPage: ResolverTypeWrapper<IContentReportPage>;
|
|
589
|
+
ContentReportSortInput: IContentReportSortInput;
|
|
510
590
|
InvitesFilterInput: IInvitesFilterInput;
|
|
511
591
|
InvitesPage: ResolverTypeWrapper<IInvitesPage>;
|
|
512
592
|
InvitesSortInput: IInvitesSortInput;
|
|
@@ -538,6 +618,8 @@ export type IResolversParentTypes = {
|
|
|
538
618
|
AdminBrand: IAdminBrand;
|
|
539
619
|
Boolean: Scalars['Boolean'];
|
|
540
620
|
AdminCategory: IAdminCategory;
|
|
621
|
+
AdminContactSupport: IAdminContactSupport;
|
|
622
|
+
AdminContentReport: IAdminContentReport;
|
|
541
623
|
AdminInvite: IAdminInvite;
|
|
542
624
|
Int: Scalars['Int'];
|
|
543
625
|
AdminOpportunity: IAdminOpportunity;
|
|
@@ -557,6 +639,12 @@ export type IResolversParentTypes = {
|
|
|
557
639
|
CategoriesPage: ICategoriesPage;
|
|
558
640
|
CategoriesSortInput: ICategoriesSortInput;
|
|
559
641
|
CategoryInput: ICategoryInput;
|
|
642
|
+
ContactSupportFilterInput: IContactSupportFilterInput;
|
|
643
|
+
ContactSupportPage: IContactSupportPage;
|
|
644
|
+
ContactSupportSortInput: IContactSupportSortInput;
|
|
645
|
+
ContentReportFilterInput: IContentReportFilterInput;
|
|
646
|
+
ContentReportPage: IContentReportPage;
|
|
647
|
+
ContentReportSortInput: IContentReportSortInput;
|
|
560
648
|
InvitesFilterInput: IInvitesFilterInput;
|
|
561
649
|
InvitesPage: IInvitesPage;
|
|
562
650
|
InvitesSortInput: IInvitesSortInput;
|
|
@@ -618,6 +706,28 @@ export type IAdminCategoryResolvers<ContextType = any, ParentType extends IResol
|
|
|
618
706
|
addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
619
707
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
620
708
|
};
|
|
709
|
+
export type IAdminContactSupportResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminContactSupport'] = IResolversParentTypes['AdminContactSupport']> = {
|
|
710
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
711
|
+
userId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
712
|
+
email?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
713
|
+
walletAddress?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
714
|
+
category?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
715
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
716
|
+
priority?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
717
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
718
|
+
};
|
|
719
|
+
export type IAdminContentReportResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminContentReport'] = IResolversParentTypes['AdminContentReport']> = {
|
|
720
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
721
|
+
userId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
722
|
+
email?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
723
|
+
nameOfSubject?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
724
|
+
contentType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
725
|
+
contentId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
726
|
+
reportReason?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
727
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
728
|
+
evidenceFileUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
729
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
730
|
+
};
|
|
621
731
|
export type IAdminInviteResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminInvite'] = IResolversParentTypes['AdminInvite']> = {
|
|
622
732
|
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
623
733
|
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -705,6 +815,16 @@ export type ICategoriesPageResolvers<ContextType = any, ParentType extends IReso
|
|
|
705
815
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
706
816
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
707
817
|
};
|
|
818
|
+
export type IContactSupportPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['ContactSupportPage'] = IResolversParentTypes['ContactSupportPage']> = {
|
|
819
|
+
contactSupports?: Resolver<Array<IResolversTypes['AdminContactSupport']>, ParentType, ContextType>;
|
|
820
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
821
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
822
|
+
};
|
|
823
|
+
export type IContentReportPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['ContentReportPage'] = IResolversParentTypes['ContentReportPage']> = {
|
|
824
|
+
contentReports?: Resolver<Array<IResolversTypes['AdminContentReport']>, ParentType, ContextType>;
|
|
825
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
826
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
827
|
+
};
|
|
708
828
|
export type IInvitesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['InvitesPage'] = IResolversParentTypes['InvitesPage']> = {
|
|
709
829
|
invites?: Resolver<Array<IResolversTypes['AdminInvite']>, ParentType, ContextType>;
|
|
710
830
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
@@ -738,6 +858,8 @@ export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IR
|
|
|
738
858
|
};
|
|
739
859
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
740
860
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
861
|
+
fetchContactSupportPage?: Resolver<IResolversTypes['ContactSupportPage'], ParentType, ContextType, RequireFields<IQueryFetchContactSupportPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
862
|
+
fetchContentReportPage?: Resolver<IResolversTypes['ContentReportPage'], ParentType, ContextType, RequireFields<IQueryFetchContentReportPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
741
863
|
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
742
864
|
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
743
865
|
fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
@@ -784,6 +906,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
784
906
|
ActiveInvite?: IActiveInviteResolvers<ContextType>;
|
|
785
907
|
AdminBrand?: IAdminBrandResolvers<ContextType>;
|
|
786
908
|
AdminCategory?: IAdminCategoryResolvers<ContextType>;
|
|
909
|
+
AdminContactSupport?: IAdminContactSupportResolvers<ContextType>;
|
|
910
|
+
AdminContentReport?: IAdminContentReportResolvers<ContextType>;
|
|
787
911
|
AdminInvite?: IAdminInviteResolvers<ContextType>;
|
|
788
912
|
AdminOpportunity?: IAdminOpportunityResolvers<ContextType>;
|
|
789
913
|
AdminPage?: IAdminPageResolvers<ContextType>;
|
|
@@ -792,6 +916,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
792
916
|
AdminXp?: IAdminXpResolvers<ContextType>;
|
|
793
917
|
BrandsPage?: IBrandsPageResolvers<ContextType>;
|
|
794
918
|
CategoriesPage?: ICategoriesPageResolvers<ContextType>;
|
|
919
|
+
ContactSupportPage?: IContactSupportPageResolvers<ContextType>;
|
|
920
|
+
ContentReportPage?: IContentReportPageResolvers<ContextType>;
|
|
795
921
|
InvitesPage?: IInvitesPageResolvers<ContextType>;
|
|
796
922
|
Long?: GraphQLScalarType;
|
|
797
923
|
Mutation?: IMutationResolvers<ContextType>;
|
|
@@ -190,6 +190,29 @@ export type IMutationFollowProfileArgs = {
|
|
|
190
190
|
export type IMutationUnfollowProfileArgs = {
|
|
191
191
|
followingUserId: Scalars['ID'];
|
|
192
192
|
};
|
|
193
|
+
export type IMyProfile = {
|
|
194
|
+
userId: Scalars['ID'];
|
|
195
|
+
username?: Maybe<Scalars['String']>;
|
|
196
|
+
about?: Maybe<Scalars['String']>;
|
|
197
|
+
userpic?: Maybe<Scalars['String']>;
|
|
198
|
+
following?: Maybe<Scalars['Boolean']>;
|
|
199
|
+
followings?: Maybe<Scalars['Int']>;
|
|
200
|
+
followers?: Maybe<Scalars['Int']>;
|
|
201
|
+
social?: Maybe<ISocial>;
|
|
202
|
+
views?: Maybe<Scalars['Int']>;
|
|
203
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
204
|
+
deletedAt?: Maybe<Scalars['Long']>;
|
|
205
|
+
visible?: Maybe<Scalars['Boolean']>;
|
|
206
|
+
deleted?: Maybe<Scalars['Boolean']>;
|
|
207
|
+
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
208
|
+
rank?: Maybe<Scalars['Float']>;
|
|
209
|
+
wallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
210
|
+
xps?: Maybe<Scalars['Int']>;
|
|
211
|
+
level?: Maybe<Scalars['Int']>;
|
|
212
|
+
levelMinXps?: Maybe<Scalars['Int']>;
|
|
213
|
+
levelMaxXps?: Maybe<Scalars['Int']>;
|
|
214
|
+
inviteCodes?: Maybe<Array<Maybe<IUserInviteCode>>>;
|
|
215
|
+
};
|
|
193
216
|
export type IProfile = {
|
|
194
217
|
userId: Scalars['ID'];
|
|
195
218
|
username?: Maybe<Scalars['String']>;
|
|
@@ -216,6 +239,7 @@ export type IQuery = {
|
|
|
216
239
|
fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
|
|
217
240
|
isInviteCodeAvailable: Scalars['Boolean'];
|
|
218
241
|
getMyInviteCodes: Array<IUserInviteCode>;
|
|
242
|
+
fetchMyProfile: IMyProfile;
|
|
219
243
|
fetchProfile: IProfile;
|
|
220
244
|
fetchFollowingStatus: IFollowingStatus;
|
|
221
245
|
fetchFollowingStatuses: Array<Maybe<IFollowingStatus>>;
|
|
@@ -313,6 +337,7 @@ export type IResolversTypes = {
|
|
|
313
337
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
314
338
|
MultiversxAudit: ResolverTypeWrapper<IMultiversxAudit>;
|
|
315
339
|
Mutation: ResolverTypeWrapper<{}>;
|
|
340
|
+
MyProfile: ResolverTypeWrapper<IMyProfile>;
|
|
316
341
|
Profile: ResolverTypeWrapper<IProfile>;
|
|
317
342
|
Query: ResolverTypeWrapper<{}>;
|
|
318
343
|
Role: IRole;
|
|
@@ -339,6 +364,7 @@ export type IResolversParentTypes = {
|
|
|
339
364
|
Long: Scalars['Long'];
|
|
340
365
|
MultiversxAudit: IMultiversxAudit;
|
|
341
366
|
Mutation: {};
|
|
367
|
+
MyProfile: IMyProfile;
|
|
342
368
|
Profile: IProfile;
|
|
343
369
|
Query: {};
|
|
344
370
|
Social: ISocial;
|
|
@@ -439,6 +465,30 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
439
465
|
followProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationFollowProfileArgs, 'followingUserId'>>;
|
|
440
466
|
unfollowProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUnfollowProfileArgs, 'followingUserId'>>;
|
|
441
467
|
};
|
|
468
|
+
export type IMyProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['MyProfile'] = IResolversParentTypes['MyProfile']> = {
|
|
469
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
470
|
+
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
471
|
+
about?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
472
|
+
userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
473
|
+
following?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
474
|
+
followings?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
475
|
+
followers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
476
|
+
social?: Resolver<Maybe<IResolversTypes['Social']>, ParentType, ContextType>;
|
|
477
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
478
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
479
|
+
deletedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
480
|
+
visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
481
|
+
deleted?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
482
|
+
showNsfw?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
483
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
484
|
+
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
485
|
+
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
486
|
+
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
487
|
+
levelMinXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
488
|
+
levelMaxXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
489
|
+
inviteCodes?: Resolver<Maybe<Array<Maybe<IResolversTypes['UserInviteCode']>>>, ParentType, ContextType>;
|
|
490
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
491
|
+
};
|
|
442
492
|
export type IProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['Profile'] = IResolversParentTypes['Profile']> = {
|
|
443
493
|
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
444
494
|
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -466,6 +516,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
466
516
|
fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
|
|
467
517
|
isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
|
|
468
518
|
getMyInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType>;
|
|
519
|
+
fetchMyProfile?: Resolver<IResolversTypes['MyProfile'], ParentType, ContextType>;
|
|
469
520
|
fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
|
|
470
521
|
fetchFollowingStatus?: Resolver<IResolversTypes['FollowingStatus'], ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusArgs, 'userId'>>;
|
|
471
522
|
fetchFollowingStatuses?: Resolver<Array<Maybe<IResolversTypes['FollowingStatus']>>, ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusesArgs, 'userIds'>>;
|
|
@@ -512,6 +563,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
512
563
|
Long?: GraphQLScalarType;
|
|
513
564
|
MultiversxAudit?: IMultiversxAuditResolvers<ContextType>;
|
|
514
565
|
Mutation?: IMutationResolvers<ContextType>;
|
|
566
|
+
MyProfile?: IMyProfileResolvers<ContextType>;
|
|
515
567
|
Profile?: IProfileResolvers<ContextType>;
|
|
516
568
|
Query?: IQueryResolvers<ContextType>;
|
|
517
569
|
Social?: ISocialResolvers<ContextType>;
|
|
@@ -681,6 +733,16 @@ export type IFetchMultiversXAuditQuery = {
|
|
|
681
733
|
})>;
|
|
682
734
|
})>;
|
|
683
735
|
};
|
|
736
|
+
export type IFetchMyProfileQueryVariables = Exact<{
|
|
737
|
+
[key: string]: never;
|
|
738
|
+
}>;
|
|
739
|
+
export type IFetchMyProfileQuery = {
|
|
740
|
+
fetchMyProfile: (Pick<IMyProfile, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'> & {
|
|
741
|
+
social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website'>>;
|
|
742
|
+
wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>>;
|
|
743
|
+
inviteCodes?: Maybe<Array<Maybe<Pick<IUserInviteCode, 'inviteCode' | 'inviteeId' | 'isUsed' | 'usedAt'>>>>;
|
|
744
|
+
});
|
|
745
|
+
};
|
|
684
746
|
export type IFetchProfileQueryVariables = Exact<{
|
|
685
747
|
userId: Scalars['ID'];
|
|
686
748
|
}>;
|
|
@@ -1232,6 +1294,31 @@ export declare function useFetchMultiversXAuditLazyQuery(baseOptions?: Apollo.La
|
|
|
1232
1294
|
export type FetchMultiversXAuditQueryHookResult = ReturnType<typeof useFetchMultiversXAuditQuery>;
|
|
1233
1295
|
export type FetchMultiversXAuditLazyQueryHookResult = ReturnType<typeof useFetchMultiversXAuditLazyQuery>;
|
|
1234
1296
|
export type FetchMultiversXAuditQueryResult = Apollo.QueryResult<IFetchMultiversXAuditQuery, IFetchMultiversXAuditQueryVariables>;
|
|
1297
|
+
export declare const FetchMyProfileDocument: Apollo.DocumentNode;
|
|
1298
|
+
/**
|
|
1299
|
+
* __useFetchMyProfileQuery__
|
|
1300
|
+
*
|
|
1301
|
+
* To run a query within a React component, call `useFetchMyProfileQuery` and pass it any options that fit your needs.
|
|
1302
|
+
* When your component renders, `useFetchMyProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1303
|
+
* you can use to render your UI.
|
|
1304
|
+
*
|
|
1305
|
+
* @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;
|
|
1306
|
+
*
|
|
1307
|
+
* @example
|
|
1308
|
+
* const { data, loading, error } = useFetchMyProfileQuery({
|
|
1309
|
+
* variables: {
|
|
1310
|
+
* },
|
|
1311
|
+
* });
|
|
1312
|
+
*/
|
|
1313
|
+
export declare function useFetchMyProfileQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>): Apollo.QueryResult<IFetchMyProfileQuery, Exact<{
|
|
1314
|
+
[key: string]: never;
|
|
1315
|
+
}>>;
|
|
1316
|
+
export declare function useFetchMyProfileLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>): Apollo.LazyQueryResultTuple<IFetchMyProfileQuery, Exact<{
|
|
1317
|
+
[key: string]: never;
|
|
1318
|
+
}>>;
|
|
1319
|
+
export type FetchMyProfileQueryHookResult = ReturnType<typeof useFetchMyProfileQuery>;
|
|
1320
|
+
export type FetchMyProfileLazyQueryHookResult = ReturnType<typeof useFetchMyProfileLazyQuery>;
|
|
1321
|
+
export type FetchMyProfileQueryResult = Apollo.QueryResult<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>;
|
|
1235
1322
|
export declare const FetchProfileDocument: Apollo.DocumentNode;
|
|
1236
1323
|
/**
|
|
1237
1324
|
* __useFetchProfileQuery__
|
|
@@ -23,7 +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.
|
|
26
|
+
exports.GetMyInviteCodesDocument = exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchMyProfileLazyQuery = exports.useFetchMyProfileQuery = exports.FetchMyProfileDocument = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = 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.useCreateNonceMutation = exports.CreateNonceDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.IRole = void 0;
|
|
27
|
+
exports.useGetMyInviteCodesLazyQuery = exports.useGetMyInviteCodesQuery = void 0;
|
|
27
28
|
const client_1 = require("@apollo/client");
|
|
28
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
30
|
var IRole;
|
|
@@ -677,6 +678,72 @@ function useFetchMultiversXAuditLazyQuery(baseOptions) {
|
|
|
677
678
|
return Apollo.useLazyQuery(exports.FetchMultiversXAuditDocument, baseOptions);
|
|
678
679
|
}
|
|
679
680
|
exports.useFetchMultiversXAuditLazyQuery = useFetchMultiversXAuditLazyQuery;
|
|
681
|
+
exports.FetchMyProfileDocument = (0, client_1.gql) `
|
|
682
|
+
query FetchMyProfile {
|
|
683
|
+
fetchMyProfile {
|
|
684
|
+
userId
|
|
685
|
+
username
|
|
686
|
+
about
|
|
687
|
+
userpic
|
|
688
|
+
following
|
|
689
|
+
followings
|
|
690
|
+
followers
|
|
691
|
+
social {
|
|
692
|
+
facebook
|
|
693
|
+
twitter
|
|
694
|
+
instagram
|
|
695
|
+
website
|
|
696
|
+
}
|
|
697
|
+
views
|
|
698
|
+
createdAt
|
|
699
|
+
deletedAt
|
|
700
|
+
visible
|
|
701
|
+
deleted
|
|
702
|
+
showNsfw
|
|
703
|
+
rank
|
|
704
|
+
wallets {
|
|
705
|
+
userId
|
|
706
|
+
address
|
|
707
|
+
walletName
|
|
708
|
+
blockchain
|
|
709
|
+
chainId
|
|
710
|
+
}
|
|
711
|
+
xps
|
|
712
|
+
level
|
|
713
|
+
levelMinXps
|
|
714
|
+
levelMaxXps
|
|
715
|
+
inviteCodes {
|
|
716
|
+
inviteCode
|
|
717
|
+
inviteeId
|
|
718
|
+
isUsed
|
|
719
|
+
usedAt
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
`;
|
|
724
|
+
/**
|
|
725
|
+
* __useFetchMyProfileQuery__
|
|
726
|
+
*
|
|
727
|
+
* To run a query within a React component, call `useFetchMyProfileQuery` and pass it any options that fit your needs.
|
|
728
|
+
* When your component renders, `useFetchMyProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
729
|
+
* you can use to render your UI.
|
|
730
|
+
*
|
|
731
|
+
* @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;
|
|
732
|
+
*
|
|
733
|
+
* @example
|
|
734
|
+
* const { data, loading, error } = useFetchMyProfileQuery({
|
|
735
|
+
* variables: {
|
|
736
|
+
* },
|
|
737
|
+
* });
|
|
738
|
+
*/
|
|
739
|
+
function useFetchMyProfileQuery(baseOptions) {
|
|
740
|
+
return Apollo.useQuery(exports.FetchMyProfileDocument, baseOptions);
|
|
741
|
+
}
|
|
742
|
+
exports.useFetchMyProfileQuery = useFetchMyProfileQuery;
|
|
743
|
+
function useFetchMyProfileLazyQuery(baseOptions) {
|
|
744
|
+
return Apollo.useLazyQuery(exports.FetchMyProfileDocument, baseOptions);
|
|
745
|
+
}
|
|
746
|
+
exports.useFetchMyProfileLazyQuery = useFetchMyProfileLazyQuery;
|
|
680
747
|
exports.FetchProfileDocument = (0, client_1.gql) `
|
|
681
748
|
query FetchProfile($userId: ID!) {
|
|
682
749
|
fetchProfile(userId: $userId) {
|
package/build/index.d.ts
CHANGED
|
@@ -616,6 +616,16 @@ declare const schema: {
|
|
|
616
616
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchMultiversXAuditQuery, identitySchema.Exact<{
|
|
617
617
|
wallet: string;
|
|
618
618
|
}>>;
|
|
619
|
+
useFetchMyProfileQuery(baseOptions?: import("@apollo/client").QueryHookOptions<identitySchema.IFetchMyProfileQuery, identitySchema.Exact<{
|
|
620
|
+
[key: string]: never;
|
|
621
|
+
}>> | undefined): import("@apollo/client").QueryResult<identitySchema.IFetchMyProfileQuery, identitySchema.Exact<{
|
|
622
|
+
[key: string]: never;
|
|
623
|
+
}>>;
|
|
624
|
+
useFetchMyProfileLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<identitySchema.IFetchMyProfileQuery, identitySchema.Exact<{
|
|
625
|
+
[key: string]: never;
|
|
626
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<identitySchema.IFetchMyProfileQuery, identitySchema.Exact<{
|
|
627
|
+
[key: string]: never;
|
|
628
|
+
}>>;
|
|
619
629
|
useFetchProfileQuery(baseOptions: import("@apollo/client").QueryHookOptions<identitySchema.IFetchProfileQuery, identitySchema.Exact<{
|
|
620
630
|
userId: string;
|
|
621
631
|
}>>): import("@apollo/client").QueryResult<identitySchema.IFetchProfileQuery, identitySchema.Exact<{
|
|
@@ -666,6 +676,7 @@ declare const schema: {
|
|
|
666
676
|
SignInTezosDocument: import("graphql").DocumentNode;
|
|
667
677
|
UpdateProfileDocument: import("graphql").DocumentNode;
|
|
668
678
|
FetchMultiversXAuditDocument: import("graphql").DocumentNode;
|
|
679
|
+
FetchMyProfileDocument: import("graphql").DocumentNode;
|
|
669
680
|
FetchProfileDocument: import("graphql").DocumentNode;
|
|
670
681
|
FetchUserWalletsDocument: import("graphql").DocumentNode;
|
|
671
682
|
GetMyInviteCodesDocument: import("graphql").DocumentNode;
|