@ludo.ninja/api 2.8.39 → 2.8.41
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__/identityHost/schema.d.ts +87 -0
- package/build/graphql_tools/__generated__/identityHost/schema.js +68 -1
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +3 -1
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +1 -0
- package/build/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/identityHost/schema.ts +130 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +4 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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) {
|
|
@@ -175,6 +175,7 @@ export type IOpportunityV2 = {
|
|
|
175
175
|
createdAt?: Maybe<Scalars['Long']>;
|
|
176
176
|
minWalletValue?: Maybe<Scalars['Float']>;
|
|
177
177
|
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
178
|
+
shareLink?: Maybe<Scalars['String']>;
|
|
178
179
|
};
|
|
179
180
|
/** scalar Upload */
|
|
180
181
|
export type IQuery = {
|
|
@@ -367,6 +368,7 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
367
368
|
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
368
369
|
minWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
369
370
|
maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
371
|
+
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
370
372
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
371
373
|
};
|
|
372
374
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
@@ -405,7 +407,7 @@ export type IFetchOpportunitiesForProfileQueryVariables = Exact<{
|
|
|
405
407
|
[key: string]: never;
|
|
406
408
|
}>;
|
|
407
409
|
export type IFetchOpportunitiesForProfileQuery = {
|
|
408
|
-
fetchOpportunitiesForProfile: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue'>>>;
|
|
410
|
+
fetchOpportunitiesForProfile: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink'>>>;
|
|
409
411
|
};
|
|
410
412
|
export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
411
413
|
domain?: Maybe<Scalars['String']>;
|
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;
|
package/package.json
CHANGED
|
@@ -238,6 +238,30 @@ export type IMutationUnfollowProfileArgs = {
|
|
|
238
238
|
followingUserId: Scalars['ID'];
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
+
export type IMyProfile = {
|
|
242
|
+
userId: Scalars['ID'];
|
|
243
|
+
username?: Maybe<Scalars['String']>;
|
|
244
|
+
about?: Maybe<Scalars['String']>;
|
|
245
|
+
userpic?: Maybe<Scalars['String']>;
|
|
246
|
+
following?: Maybe<Scalars['Boolean']>;
|
|
247
|
+
followings?: Maybe<Scalars['Int']>;
|
|
248
|
+
followers?: Maybe<Scalars['Int']>;
|
|
249
|
+
social?: Maybe<ISocial>;
|
|
250
|
+
views?: Maybe<Scalars['Int']>;
|
|
251
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
252
|
+
deletedAt?: Maybe<Scalars['Long']>;
|
|
253
|
+
visible?: Maybe<Scalars['Boolean']>;
|
|
254
|
+
deleted?: Maybe<Scalars['Boolean']>;
|
|
255
|
+
showNsfw?: Maybe<Scalars['Boolean']>;
|
|
256
|
+
rank?: Maybe<Scalars['Float']>;
|
|
257
|
+
wallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
258
|
+
xps?: Maybe<Scalars['Int']>;
|
|
259
|
+
level?: Maybe<Scalars['Int']>;
|
|
260
|
+
levelMinXps?: Maybe<Scalars['Int']>;
|
|
261
|
+
levelMaxXps?: Maybe<Scalars['Int']>;
|
|
262
|
+
inviteCodes?: Maybe<Array<Maybe<IUserInviteCode>>>;
|
|
263
|
+
};
|
|
264
|
+
|
|
241
265
|
export type IProfile = {
|
|
242
266
|
userId: Scalars['ID'];
|
|
243
267
|
username?: Maybe<Scalars['String']>;
|
|
@@ -265,6 +289,7 @@ export type IQuery = {
|
|
|
265
289
|
fetchMultiversxAudit?: Maybe<IMultiversxAudit>;
|
|
266
290
|
isInviteCodeAvailable: Scalars['Boolean'];
|
|
267
291
|
getMyInviteCodes: Array<IUserInviteCode>;
|
|
292
|
+
fetchMyProfile: IMyProfile;
|
|
268
293
|
fetchProfile: IProfile;
|
|
269
294
|
fetchFollowingStatus: IFollowingStatus;
|
|
270
295
|
fetchFollowingStatuses: Array<Maybe<IFollowingStatus>>;
|
|
@@ -422,6 +447,7 @@ export type IResolversTypes = {
|
|
|
422
447
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
423
448
|
MultiversxAudit: ResolverTypeWrapper<IMultiversxAudit>;
|
|
424
449
|
Mutation: ResolverTypeWrapper<{}>;
|
|
450
|
+
MyProfile: ResolverTypeWrapper<IMyProfile>;
|
|
425
451
|
Profile: ResolverTypeWrapper<IProfile>;
|
|
426
452
|
Query: ResolverTypeWrapper<{}>;
|
|
427
453
|
Role: IRole;
|
|
@@ -449,6 +475,7 @@ export type IResolversParentTypes = {
|
|
|
449
475
|
Long: Scalars['Long'];
|
|
450
476
|
MultiversxAudit: IMultiversxAudit;
|
|
451
477
|
Mutation: {};
|
|
478
|
+
MyProfile: IMyProfile;
|
|
452
479
|
Profile: IProfile;
|
|
453
480
|
Query: {};
|
|
454
481
|
Social: ISocial;
|
|
@@ -568,6 +595,31 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
568
595
|
unfollowProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUnfollowProfileArgs, 'followingUserId'>>;
|
|
569
596
|
};
|
|
570
597
|
|
|
598
|
+
export type IMyProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['MyProfile'] = IResolversParentTypes['MyProfile']> = {
|
|
599
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
600
|
+
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
601
|
+
about?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
602
|
+
userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
603
|
+
following?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
604
|
+
followings?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
605
|
+
followers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
606
|
+
social?: Resolver<Maybe<IResolversTypes['Social']>, ParentType, ContextType>;
|
|
607
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
608
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
609
|
+
deletedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
610
|
+
visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
611
|
+
deleted?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
612
|
+
showNsfw?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
613
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
614
|
+
wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
615
|
+
xps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
616
|
+
level?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
617
|
+
levelMinXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
618
|
+
levelMaxXps?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
619
|
+
inviteCodes?: Resolver<Maybe<Array<Maybe<IResolversTypes['UserInviteCode']>>>, ParentType, ContextType>;
|
|
620
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
621
|
+
};
|
|
622
|
+
|
|
571
623
|
export type IProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['Profile'] = IResolversParentTypes['Profile']> = {
|
|
572
624
|
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
573
625
|
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -596,6 +648,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
596
648
|
fetchMultiversxAudit?: Resolver<Maybe<IResolversTypes['MultiversxAudit']>, ParentType, ContextType, RequireFields<IQueryFetchMultiversxAuditArgs, 'wallet'>>;
|
|
597
649
|
isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
|
|
598
650
|
getMyInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType>;
|
|
651
|
+
fetchMyProfile?: Resolver<IResolversTypes['MyProfile'], ParentType, ContextType>;
|
|
599
652
|
fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
|
|
600
653
|
fetchFollowingStatus?: Resolver<IResolversTypes['FollowingStatus'], ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusArgs, 'userId'>>;
|
|
601
654
|
fetchFollowingStatuses?: Resolver<Array<Maybe<IResolversTypes['FollowingStatus']>>, ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusesArgs, 'userIds'>>;
|
|
@@ -648,6 +701,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
648
701
|
Long?: GraphQLScalarType;
|
|
649
702
|
MultiversxAudit?: IMultiversxAuditResolvers<ContextType>;
|
|
650
703
|
Mutation?: IMutationResolvers<ContextType>;
|
|
704
|
+
MyProfile?: IMyProfileResolvers<ContextType>;
|
|
651
705
|
Profile?: IProfileResolvers<ContextType>;
|
|
652
706
|
Query?: IQueryResolvers<ContextType>;
|
|
653
707
|
Social?: ISocialResolvers<ContextType>;
|
|
@@ -849,6 +903,14 @@ export type IFetchMultiversXAuditQuery = { fetchMultiversxAudit?: Maybe<(
|
|
|
849
903
|
)> }
|
|
850
904
|
)> };
|
|
851
905
|
|
|
906
|
+
export type IFetchMyProfileQueryVariables = Exact<{ [key: string]: never; }>;
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
export type IFetchMyProfileQuery = { fetchMyProfile: (
|
|
910
|
+
Pick<IMyProfile, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'deleted' | 'showNsfw' | 'rank' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'>
|
|
911
|
+
& { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>>, inviteCodes?: Maybe<Array<Maybe<Pick<IUserInviteCode, 'inviteCode' | 'inviteeId' | 'isUsed' | 'usedAt'>>>> }
|
|
912
|
+
) };
|
|
913
|
+
|
|
852
914
|
export type IFetchProfileQueryVariables = Exact<{
|
|
853
915
|
userId: Scalars['ID'];
|
|
854
916
|
}>;
|
|
@@ -1592,6 +1654,74 @@ export function useFetchMultiversXAuditLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
1592
1654
|
export type FetchMultiversXAuditQueryHookResult = ReturnType<typeof useFetchMultiversXAuditQuery>;
|
|
1593
1655
|
export type FetchMultiversXAuditLazyQueryHookResult = ReturnType<typeof useFetchMultiversXAuditLazyQuery>;
|
|
1594
1656
|
export type FetchMultiversXAuditQueryResult = Apollo.QueryResult<IFetchMultiversXAuditQuery, IFetchMultiversXAuditQueryVariables>;
|
|
1657
|
+
export const FetchMyProfileDocument = gql`
|
|
1658
|
+
query FetchMyProfile {
|
|
1659
|
+
fetchMyProfile {
|
|
1660
|
+
userId
|
|
1661
|
+
username
|
|
1662
|
+
about
|
|
1663
|
+
userpic
|
|
1664
|
+
following
|
|
1665
|
+
followings
|
|
1666
|
+
followers
|
|
1667
|
+
social {
|
|
1668
|
+
facebook
|
|
1669
|
+
twitter
|
|
1670
|
+
instagram
|
|
1671
|
+
website
|
|
1672
|
+
}
|
|
1673
|
+
views
|
|
1674
|
+
createdAt
|
|
1675
|
+
deletedAt
|
|
1676
|
+
visible
|
|
1677
|
+
deleted
|
|
1678
|
+
showNsfw
|
|
1679
|
+
rank
|
|
1680
|
+
wallets {
|
|
1681
|
+
userId
|
|
1682
|
+
address
|
|
1683
|
+
walletName
|
|
1684
|
+
blockchain
|
|
1685
|
+
chainId
|
|
1686
|
+
}
|
|
1687
|
+
xps
|
|
1688
|
+
level
|
|
1689
|
+
levelMinXps
|
|
1690
|
+
levelMaxXps
|
|
1691
|
+
inviteCodes {
|
|
1692
|
+
inviteCode
|
|
1693
|
+
inviteeId
|
|
1694
|
+
isUsed
|
|
1695
|
+
usedAt
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
`;
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* __useFetchMyProfileQuery__
|
|
1703
|
+
*
|
|
1704
|
+
* To run a query within a React component, call `useFetchMyProfileQuery` and pass it any options that fit your needs.
|
|
1705
|
+
* When your component renders, `useFetchMyProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1706
|
+
* you can use to render your UI.
|
|
1707
|
+
*
|
|
1708
|
+
* @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;
|
|
1709
|
+
*
|
|
1710
|
+
* @example
|
|
1711
|
+
* const { data, loading, error } = useFetchMyProfileQuery({
|
|
1712
|
+
* variables: {
|
|
1713
|
+
* },
|
|
1714
|
+
* });
|
|
1715
|
+
*/
|
|
1716
|
+
export function useFetchMyProfileQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>) {
|
|
1717
|
+
return Apollo.useQuery<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>(FetchMyProfileDocument, baseOptions);
|
|
1718
|
+
}
|
|
1719
|
+
export function useFetchMyProfileLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>) {
|
|
1720
|
+
return Apollo.useLazyQuery<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>(FetchMyProfileDocument, baseOptions);
|
|
1721
|
+
}
|
|
1722
|
+
export type FetchMyProfileQueryHookResult = ReturnType<typeof useFetchMyProfileQuery>;
|
|
1723
|
+
export type FetchMyProfileLazyQueryHookResult = ReturnType<typeof useFetchMyProfileLazyQuery>;
|
|
1724
|
+
export type FetchMyProfileQueryResult = Apollo.QueryResult<IFetchMyProfileQuery, IFetchMyProfileQueryVariables>;
|
|
1595
1725
|
export const FetchProfileDocument = gql`
|
|
1596
1726
|
query FetchProfile($userId: ID!) {
|
|
1597
1727
|
fetchProfile(userId: $userId) {
|
|
@@ -194,6 +194,7 @@ export type IOpportunityV2 = {
|
|
|
194
194
|
createdAt?: Maybe<Scalars['Long']>;
|
|
195
195
|
minWalletValue?: Maybe<Scalars['Float']>;
|
|
196
196
|
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
197
|
+
shareLink?: Maybe<Scalars['String']>;
|
|
197
198
|
};
|
|
198
199
|
|
|
199
200
|
/** scalar Upload */
|
|
@@ -447,6 +448,7 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
447
448
|
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
448
449
|
minWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
449
450
|
maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
451
|
+
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
450
452
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
451
453
|
};
|
|
452
454
|
|
|
@@ -494,7 +496,7 @@ export type IOpenOpportunityMutation = Pick<IMutation, 'openOpportunity'>;
|
|
|
494
496
|
export type IFetchOpportunitiesForProfileQueryVariables = Exact<{ [key: string]: never; }>;
|
|
495
497
|
|
|
496
498
|
|
|
497
|
-
export type IFetchOpportunitiesForProfileQuery = { fetchOpportunitiesForProfile: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue'>>> };
|
|
499
|
+
export type IFetchOpportunitiesForProfileQuery = { fetchOpportunitiesForProfile: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink'>>> };
|
|
498
500
|
|
|
499
501
|
export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
500
502
|
domain?: Maybe<Scalars['String']>;
|
|
@@ -598,6 +600,7 @@ export const FetchOpportunitiesForProfileDocument = gql`
|
|
|
598
600
|
createdAt
|
|
599
601
|
minWalletValue
|
|
600
602
|
maxWalletValue
|
|
603
|
+
shareLink
|
|
601
604
|
}
|
|
602
605
|
}
|
|
603
606
|
`;
|