@ludo.ninja/api 2.8.64 → 2.8.65
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 +5 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +27 -0
- package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +4 -4
- package/build/graphql_tools/__generated__/extensionHost/schema.js +3 -3
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +30 -0
- package/build/graphql_tools/__generated__/identityHost/schema.js +27 -2
- package/build/index.d.ts +8 -2
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +7 -0
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +31 -0
- package/src/graphql_tools/__generated__/extensionHost/schema.ts +5 -5
- package/src/graphql_tools/__generated__/identityHost/schema.ts +36 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -365,6 +365,7 @@ export type IMutation = {
|
|
|
365
365
|
updateCategoryArchivedStatus: Scalars['Boolean'];
|
|
366
366
|
createAdminOpportunity: Scalars['Boolean'];
|
|
367
367
|
updateOpportunity: Scalars['Boolean'];
|
|
368
|
+
triggerOpportunityNotification: Scalars['Boolean'];
|
|
368
369
|
updateProfileStatus: Scalars['Boolean'];
|
|
369
370
|
removeSuggestedOpportunity: Scalars['Boolean'];
|
|
370
371
|
addSuggestedOpportunity: Scalars['Boolean'];
|
|
@@ -419,6 +420,9 @@ export type IMutationUpdateOpportunityArgs = {
|
|
|
419
420
|
input: IAdminOpportunityInput;
|
|
420
421
|
file?: Maybe<Scalars['Upload']>;
|
|
421
422
|
};
|
|
423
|
+
export type IMutationTriggerOpportunityNotificationArgs = {
|
|
424
|
+
opportunityId: Scalars['ID'];
|
|
425
|
+
};
|
|
422
426
|
export type IMutationUpdateProfileStatusArgs = {
|
|
423
427
|
userId: Scalars['ID'];
|
|
424
428
|
isActive: Scalars['Boolean'];
|
|
@@ -1138,6 +1142,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1138
1142
|
updateCategoryArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateCategoryArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1139
1143
|
createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
|
|
1140
1144
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1145
|
+
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1141
1146
|
updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
|
|
1142
1147
|
removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
1143
1148
|
addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
@@ -28,6 +28,14 @@ export type Scalars = {
|
|
|
28
28
|
export type IMutation = {
|
|
29
29
|
setDummy: Scalars['String'];
|
|
30
30
|
};
|
|
31
|
+
export type IOpportunityNotification = {
|
|
32
|
+
opportunityId?: Maybe<Scalars['String']>;
|
|
33
|
+
name?: Maybe<Scalars['String']>;
|
|
34
|
+
description?: Maybe<Scalars['String']>;
|
|
35
|
+
notificationType?: Maybe<Scalars['String']>;
|
|
36
|
+
media?: Maybe<Scalars['String']>;
|
|
37
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
38
|
+
};
|
|
31
39
|
export type IQuery = {
|
|
32
40
|
getDummy: Scalars['String'];
|
|
33
41
|
fetchMyExperience: Scalars['Int'];
|
|
@@ -40,6 +48,8 @@ export type ISubscription = {
|
|
|
40
48
|
onMyExperienceUpdated: IUserXp;
|
|
41
49
|
onMyExperienceIncremented: IUserXpIncrement;
|
|
42
50
|
onInviteCodeUsed: IUsedInviteCode;
|
|
51
|
+
onCommonOpportunityNotification: IOpportunityNotification;
|
|
52
|
+
onUserOpportunityNotification: IOpportunityNotification;
|
|
43
53
|
};
|
|
44
54
|
export type ISubscriptionOnMyExperienceUpdatedArgs = {
|
|
45
55
|
authToken: Scalars['String'];
|
|
@@ -50,6 +60,9 @@ export type ISubscriptionOnMyExperienceIncrementedArgs = {
|
|
|
50
60
|
export type ISubscriptionOnInviteCodeUsedArgs = {
|
|
51
61
|
authToken: Scalars['String'];
|
|
52
62
|
};
|
|
63
|
+
export type ISubscriptionOnUserOpportunityNotificationArgs = {
|
|
64
|
+
authToken: Scalars['String'];
|
|
65
|
+
};
|
|
53
66
|
export type ITask = {
|
|
54
67
|
taskId?: Maybe<Scalars['ID']>;
|
|
55
68
|
userId?: Maybe<Scalars['ID']>;
|
|
@@ -113,6 +126,7 @@ export type IResolversTypes = {
|
|
|
113
126
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
114
127
|
Mutation: ResolverTypeWrapper<{}>;
|
|
115
128
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
129
|
+
OpportunityNotification: ResolverTypeWrapper<IOpportunityNotification>;
|
|
116
130
|
Query: ResolverTypeWrapper<{}>;
|
|
117
131
|
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
118
132
|
Subscription: ResolverTypeWrapper<{}>;
|
|
@@ -128,6 +142,7 @@ export type IResolversParentTypes = {
|
|
|
128
142
|
Long: Scalars['Long'];
|
|
129
143
|
Mutation: {};
|
|
130
144
|
String: Scalars['String'];
|
|
145
|
+
OpportunityNotification: IOpportunityNotification;
|
|
131
146
|
Query: {};
|
|
132
147
|
Int: Scalars['Int'];
|
|
133
148
|
Subscription: {};
|
|
@@ -146,6 +161,15 @@ export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTyp
|
|
|
146
161
|
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
147
162
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
148
163
|
};
|
|
164
|
+
export type IOpportunityNotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunityNotification'] = IResolversParentTypes['OpportunityNotification']> = {
|
|
165
|
+
opportunityId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
166
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
167
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
168
|
+
notificationType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
169
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
170
|
+
projectUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
171
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
172
|
+
};
|
|
149
173
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
150
174
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
151
175
|
fetchMyExperience?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
@@ -158,6 +182,8 @@ export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolv
|
|
|
158
182
|
onMyExperienceUpdated?: SubscriptionResolver<IResolversTypes['UserXP'], "onMyExperienceUpdated", ParentType, ContextType, RequireFields<ISubscriptionOnMyExperienceUpdatedArgs, 'authToken'>>;
|
|
159
183
|
onMyExperienceIncremented?: SubscriptionResolver<IResolversTypes['UserXPIncrement'], "onMyExperienceIncremented", ParentType, ContextType, RequireFields<ISubscriptionOnMyExperienceIncrementedArgs, 'authToken'>>;
|
|
160
184
|
onInviteCodeUsed?: SubscriptionResolver<IResolversTypes['UsedInviteCode'], "onInviteCodeUsed", ParentType, ContextType, RequireFields<ISubscriptionOnInviteCodeUsedArgs, 'authToken'>>;
|
|
185
|
+
onCommonOpportunityNotification?: SubscriptionResolver<IResolversTypes['OpportunityNotification'], "onCommonOpportunityNotification", ParentType, ContextType>;
|
|
186
|
+
onUserOpportunityNotification?: SubscriptionResolver<IResolversTypes['OpportunityNotification'], "onUserOpportunityNotification", ParentType, ContextType, RequireFields<ISubscriptionOnUserOpportunityNotificationArgs, 'authToken'>>;
|
|
161
187
|
};
|
|
162
188
|
export type ITaskResolvers<ContextType = any, ParentType extends IResolversParentTypes['Task'] = IResolversParentTypes['Task']> = {
|
|
163
189
|
taskId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
@@ -198,6 +224,7 @@ export type IUserXpIncrementResolvers<ContextType = any, ParentType extends IRes
|
|
|
198
224
|
export type IResolvers<ContextType = any> = {
|
|
199
225
|
Long?: GraphQLScalarType;
|
|
200
226
|
Mutation?: IMutationResolvers<ContextType>;
|
|
227
|
+
OpportunityNotification?: IOpportunityNotificationResolvers<ContextType>;
|
|
201
228
|
Query?: IQueryResolvers<ContextType>;
|
|
202
229
|
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
203
230
|
Task?: ITaskResolvers<ContextType>;
|
|
@@ -90,7 +90,7 @@ export type IMutationVisitPageV2Args = {
|
|
|
90
90
|
description?: Maybe<Scalars['String']>;
|
|
91
91
|
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
92
92
|
brandId?: Maybe<Scalars['String']>;
|
|
93
|
-
|
|
93
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
94
94
|
};
|
|
95
95
|
export type IMutationOpenOpportunityV2Args = {
|
|
96
96
|
opportunityId: Scalars['ID'];
|
|
@@ -468,7 +468,7 @@ export type IVisitPageV2MutationVariables = Exact<{
|
|
|
468
468
|
description?: Maybe<Scalars['String']>;
|
|
469
469
|
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
470
470
|
brandId?: Maybe<Scalars['String']>;
|
|
471
|
-
|
|
471
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
472
472
|
}>;
|
|
473
473
|
export type IVisitPageV2Mutation = {
|
|
474
474
|
visitPageV2?: Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'description' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'media' | 'reportLink' | 'shareLink'>>;
|
|
@@ -596,7 +596,7 @@ export type IVisitPageV2MutationFn = Apollo.MutationFunction<IVisitPageV2Mutatio
|
|
|
596
596
|
* description: // value for 'description'
|
|
597
597
|
* tags: // value for 'tags'
|
|
598
598
|
* brandId: // value for 'brandId'
|
|
599
|
-
*
|
|
599
|
+
* categoryId: // value for 'categoryId'
|
|
600
600
|
* },
|
|
601
601
|
* });
|
|
602
602
|
*/
|
|
@@ -606,7 +606,7 @@ export declare function useVisitPageV2Mutation(baseOptions?: Apollo.MutationHook
|
|
|
606
606
|
description?: Maybe<string> | undefined;
|
|
607
607
|
tags?: Maybe<Maybe<string>[]> | undefined;
|
|
608
608
|
brandId?: Maybe<string> | undefined;
|
|
609
|
-
|
|
609
|
+
categoryId?: Maybe<string> | undefined;
|
|
610
610
|
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
611
611
|
export type VisitPageV2MutationHookResult = ReturnType<typeof useVisitPageV2Mutation>;
|
|
612
612
|
export type VisitPageV2MutationResult = Apollo.MutationResult<IVisitPageV2Mutation>;
|
|
@@ -79,14 +79,14 @@ function useOpenOpportunityV2Mutation(baseOptions) {
|
|
|
79
79
|
}
|
|
80
80
|
exports.useOpenOpportunityV2Mutation = useOpenOpportunityV2Mutation;
|
|
81
81
|
exports.VisitPageV2Document = (0, client_1.gql) `
|
|
82
|
-
mutation VisitPageV2($domain: String!, $title: String!, $description: String, $tags: [String], $brandId: String, $
|
|
82
|
+
mutation VisitPageV2($domain: String!, $title: String!, $description: String, $tags: [String], $brandId: String, $categoryId: String) {
|
|
83
83
|
visitPageV2(
|
|
84
84
|
domain: $domain
|
|
85
85
|
title: $title
|
|
86
86
|
description: $description
|
|
87
87
|
tags: $tags
|
|
88
88
|
brandId: $brandId
|
|
89
|
-
|
|
89
|
+
categoryId: $categoryId
|
|
90
90
|
) {
|
|
91
91
|
opportunityId
|
|
92
92
|
brandId
|
|
@@ -130,7 +130,7 @@ exports.VisitPageV2Document = (0, client_1.gql) `
|
|
|
130
130
|
* description: // value for 'description'
|
|
131
131
|
* tags: // value for 'tags'
|
|
132
132
|
* brandId: // value for 'brandId'
|
|
133
|
-
*
|
|
133
|
+
* categoryId: // value for 'categoryId'
|
|
134
134
|
* },
|
|
135
135
|
* });
|
|
136
136
|
*/
|
|
@@ -101,6 +101,7 @@ export type IMutation = {
|
|
|
101
101
|
setDummy: Scalars['String'];
|
|
102
102
|
createNonce: Scalars['String'];
|
|
103
103
|
createTonNonce: Scalars['String'];
|
|
104
|
+
createEvmNonce: Scalars['String'];
|
|
104
105
|
signInAdminMetamask: IIdentity;
|
|
105
106
|
signInMetamask: IIdentity;
|
|
106
107
|
signInTezos: IIdentity;
|
|
@@ -510,6 +511,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
510
511
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
511
512
|
createNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationCreateNonceArgs, 'address' | 'blockchain'>>;
|
|
512
513
|
createTonNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
514
|
+
createEvmNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
513
515
|
signInAdminMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInAdminMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
514
516
|
signInMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
515
517
|
signInTezos?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTezosArgs, 'signature' | 'pubkey'>>;
|
|
@@ -678,6 +680,10 @@ export type IAddWalletTonMutationVariables = Exact<{
|
|
|
678
680
|
request: ICheckTonProofRequest;
|
|
679
681
|
}>;
|
|
680
682
|
export type IAddWalletTonMutation = Pick<IMutation, 'addWalletTon'>;
|
|
683
|
+
export type ICreateEvmNonceMutationVariables = Exact<{
|
|
684
|
+
[key: string]: never;
|
|
685
|
+
}>;
|
|
686
|
+
export type ICreateEvmNonceMutation = Pick<IMutation, 'createEvmNonce'>;
|
|
681
687
|
export type ICreateNonceMutationVariables = Exact<{
|
|
682
688
|
address: Scalars['String'];
|
|
683
689
|
blockchain: Scalars['String'];
|
|
@@ -1011,6 +1017,30 @@ export declare function useAddWalletTonMutation(baseOptions?: Apollo.MutationHoo
|
|
|
1011
1017
|
export type AddWalletTonMutationHookResult = ReturnType<typeof useAddWalletTonMutation>;
|
|
1012
1018
|
export type AddWalletTonMutationResult = Apollo.MutationResult<IAddWalletTonMutation>;
|
|
1013
1019
|
export type AddWalletTonMutationOptions = Apollo.BaseMutationOptions<IAddWalletTonMutation, IAddWalletTonMutationVariables>;
|
|
1020
|
+
export declare const CreateEvmNonceDocument: Apollo.DocumentNode;
|
|
1021
|
+
export type ICreateEvmNonceMutationFn = Apollo.MutationFunction<ICreateEvmNonceMutation, ICreateEvmNonceMutationVariables>;
|
|
1022
|
+
/**
|
|
1023
|
+
* __useCreateEvmNonceMutation__
|
|
1024
|
+
*
|
|
1025
|
+
* To run a mutation, you first call `useCreateEvmNonceMutation` within a React component and pass it any options that fit your needs.
|
|
1026
|
+
* When your component renders, `useCreateEvmNonceMutation` returns a tuple that includes:
|
|
1027
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1028
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1029
|
+
*
|
|
1030
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1031
|
+
*
|
|
1032
|
+
* @example
|
|
1033
|
+
* const [createEvmNonceMutation, { data, loading, error }] = useCreateEvmNonceMutation({
|
|
1034
|
+
* variables: {
|
|
1035
|
+
* },
|
|
1036
|
+
* });
|
|
1037
|
+
*/
|
|
1038
|
+
export declare function useCreateEvmNonceMutation(baseOptions?: Apollo.MutationHookOptions<ICreateEvmNonceMutation, ICreateEvmNonceMutationVariables>): Apollo.MutationTuple<ICreateEvmNonceMutation, Exact<{
|
|
1039
|
+
[key: string]: never;
|
|
1040
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1041
|
+
export type CreateEvmNonceMutationHookResult = ReturnType<typeof useCreateEvmNonceMutation>;
|
|
1042
|
+
export type CreateEvmNonceMutationResult = Apollo.MutationResult<ICreateEvmNonceMutation>;
|
|
1043
|
+
export type CreateEvmNonceMutationOptions = Apollo.BaseMutationOptions<ICreateEvmNonceMutation, ICreateEvmNonceMutationVariables>;
|
|
1014
1044
|
export declare const CreateNonceDocument: Apollo.DocumentNode;
|
|
1015
1045
|
export type ICreateNonceMutationFn = Apollo.MutationFunction<ICreateNonceMutation, ICreateNonceMutationVariables>;
|
|
1016
1046
|
/**
|
|
@@ -23,8 +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.
|
|
27
|
-
exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = void 0;
|
|
26
|
+
exports.useFetchMyProfileV2Query = exports.FetchMyProfileV2Document = exports.useFetchMultiversXAuditLazyQuery = exports.useFetchMultiversXAuditQuery = exports.FetchMultiversXAuditDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTonMutation = exports.SignInTonDocument = 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.useCreateTonNonceMutation = exports.CreateTonNonceDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useCreateEvmNonceMutation = exports.CreateEvmNonceDocument = 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.IRole = void 0;
|
|
27
|
+
exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useFetchMyProfileV2LazyQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var IRole;
|
|
@@ -194,6 +194,31 @@ function useAddWalletTonMutation(baseOptions) {
|
|
|
194
194
|
return Apollo.useMutation(exports.AddWalletTonDocument, baseOptions);
|
|
195
195
|
}
|
|
196
196
|
exports.useAddWalletTonMutation = useAddWalletTonMutation;
|
|
197
|
+
exports.CreateEvmNonceDocument = (0, client_1.gql) `
|
|
198
|
+
mutation CreateEvmNonce {
|
|
199
|
+
createEvmNonce
|
|
200
|
+
}
|
|
201
|
+
`;
|
|
202
|
+
/**
|
|
203
|
+
* __useCreateEvmNonceMutation__
|
|
204
|
+
*
|
|
205
|
+
* To run a mutation, you first call `useCreateEvmNonceMutation` within a React component and pass it any options that fit your needs.
|
|
206
|
+
* When your component renders, `useCreateEvmNonceMutation` returns a tuple that includes:
|
|
207
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
208
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
209
|
+
*
|
|
210
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* const [createEvmNonceMutation, { data, loading, error }] = useCreateEvmNonceMutation({
|
|
214
|
+
* variables: {
|
|
215
|
+
* },
|
|
216
|
+
* });
|
|
217
|
+
*/
|
|
218
|
+
function useCreateEvmNonceMutation(baseOptions) {
|
|
219
|
+
return Apollo.useMutation(exports.CreateEvmNonceDocument, baseOptions);
|
|
220
|
+
}
|
|
221
|
+
exports.useCreateEvmNonceMutation = useCreateEvmNonceMutation;
|
|
197
222
|
exports.CreateNonceDocument = (0, client_1.gql) `
|
|
198
223
|
mutation CreateNonce($address: String!, $blockchain: String!, $chainId: String) {
|
|
199
224
|
createNonce(address: $address, blockchain: $blockchain, chainId: $chainId)
|
package/build/index.d.ts
CHANGED
|
@@ -527,6 +527,11 @@ declare const schema: {
|
|
|
527
527
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.IAddWalletTonMutation, identitySchema.Exact<{
|
|
528
528
|
request: identitySchema.ICheckTonProofRequest;
|
|
529
529
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
530
|
+
useCreateEvmNonceMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.ICreateEvmNonceMutation, identitySchema.Exact<{
|
|
531
|
+
[key: string]: never;
|
|
532
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<identitySchema.ICreateEvmNonceMutation, identitySchema.Exact<{
|
|
533
|
+
[key: string]: never;
|
|
534
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
530
535
|
useCreateNonceMutation(baseOptions?: import("@apollo/client").MutationHookOptions<identitySchema.ICreateNonceMutation, identitySchema.Exact<{
|
|
531
536
|
address: string;
|
|
532
537
|
blockchain: string;
|
|
@@ -693,6 +698,7 @@ declare const schema: {
|
|
|
693
698
|
AddWalletSolanaDocument: import("graphql").DocumentNode;
|
|
694
699
|
AddWalletTezosDocument: import("graphql").DocumentNode;
|
|
695
700
|
AddWalletTonDocument: import("graphql").DocumentNode;
|
|
701
|
+
CreateEvmNonceDocument: import("graphql").DocumentNode;
|
|
696
702
|
CreateNonceDocument: import("graphql").DocumentNode;
|
|
697
703
|
CreateTonNonceDocument: import("graphql").DocumentNode;
|
|
698
704
|
GenerateNewInviteCodesDocument: import("graphql").DocumentNode;
|
|
@@ -895,14 +901,14 @@ declare const schema: {
|
|
|
895
901
|
description?: extensionSchema.Maybe<string> | undefined;
|
|
896
902
|
tags?: extensionSchema.Maybe<extensionSchema.Maybe<string>[]> | undefined;
|
|
897
903
|
brandId?: extensionSchema.Maybe<string> | undefined;
|
|
898
|
-
|
|
904
|
+
categoryId?: extensionSchema.Maybe<string> | undefined;
|
|
899
905
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<extensionSchema.IVisitPageV2Mutation, extensionSchema.Exact<{
|
|
900
906
|
domain: string;
|
|
901
907
|
title: string;
|
|
902
908
|
description?: extensionSchema.Maybe<string> | undefined;
|
|
903
909
|
tags?: extensionSchema.Maybe<extensionSchema.Maybe<string>[]> | undefined;
|
|
904
910
|
brandId?: extensionSchema.Maybe<string> | undefined;
|
|
905
|
-
|
|
911
|
+
categoryId?: extensionSchema.Maybe<string> | undefined;
|
|
906
912
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
907
913
|
useFetchCollectionRanksQuery(baseOptions: import("@apollo/client").QueryHookOptions<extensionSchema.IFetchCollectionRanksQuery, extensionSchema.Exact<{
|
|
908
914
|
collectionKeys: extensionSchema.ICollectionKey[];
|
package/package.json
CHANGED
|
@@ -402,6 +402,7 @@ export type IMutation = {
|
|
|
402
402
|
updateCategoryArchivedStatus: Scalars['Boolean'];
|
|
403
403
|
createAdminOpportunity: Scalars['Boolean'];
|
|
404
404
|
updateOpportunity: Scalars['Boolean'];
|
|
405
|
+
triggerOpportunityNotification: Scalars['Boolean'];
|
|
405
406
|
updateProfileStatus: Scalars['Boolean'];
|
|
406
407
|
removeSuggestedOpportunity: Scalars['Boolean'];
|
|
407
408
|
addSuggestedOpportunity: Scalars['Boolean'];
|
|
@@ -482,6 +483,11 @@ export type IMutationUpdateOpportunityArgs = {
|
|
|
482
483
|
};
|
|
483
484
|
|
|
484
485
|
|
|
486
|
+
export type IMutationTriggerOpportunityNotificationArgs = {
|
|
487
|
+
opportunityId: Scalars['ID'];
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
|
|
485
491
|
export type IMutationUpdateProfileStatusArgs = {
|
|
486
492
|
userId: Scalars['ID'];
|
|
487
493
|
isActive: Scalars['Boolean'];
|
|
@@ -1339,6 +1345,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1339
1345
|
updateCategoryArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateCategoryArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1340
1346
|
createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
|
|
1341
1347
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1348
|
+
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1342
1349
|
updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
|
|
1343
1350
|
removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
1344
1351
|
addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
@@ -24,6 +24,15 @@ export type IMutation = {
|
|
|
24
24
|
setDummy: Scalars['String'];
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
export type IOpportunityNotification = {
|
|
28
|
+
opportunityId?: Maybe<Scalars['String']>;
|
|
29
|
+
name?: Maybe<Scalars['String']>;
|
|
30
|
+
description?: Maybe<Scalars['String']>;
|
|
31
|
+
notificationType?: Maybe<Scalars['String']>;
|
|
32
|
+
media?: Maybe<Scalars['String']>;
|
|
33
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
34
|
+
};
|
|
35
|
+
|
|
27
36
|
export type IQuery = {
|
|
28
37
|
getDummy: Scalars['String'];
|
|
29
38
|
fetchMyExperience: Scalars['Int'];
|
|
@@ -37,6 +46,8 @@ export type ISubscription = {
|
|
|
37
46
|
onMyExperienceUpdated: IUserXp;
|
|
38
47
|
onMyExperienceIncremented: IUserXpIncrement;
|
|
39
48
|
onInviteCodeUsed: IUsedInviteCode;
|
|
49
|
+
onCommonOpportunityNotification: IOpportunityNotification;
|
|
50
|
+
onUserOpportunityNotification: IOpportunityNotification;
|
|
40
51
|
};
|
|
41
52
|
|
|
42
53
|
|
|
@@ -54,6 +65,11 @@ export type ISubscriptionOnInviteCodeUsedArgs = {
|
|
|
54
65
|
authToken: Scalars['String'];
|
|
55
66
|
};
|
|
56
67
|
|
|
68
|
+
|
|
69
|
+
export type ISubscriptionOnUserOpportunityNotificationArgs = {
|
|
70
|
+
authToken: Scalars['String'];
|
|
71
|
+
};
|
|
72
|
+
|
|
57
73
|
export type ITask = {
|
|
58
74
|
taskId?: Maybe<Scalars['ID']>;
|
|
59
75
|
userId?: Maybe<Scalars['ID']>;
|
|
@@ -162,6 +178,7 @@ export type IResolversTypes = {
|
|
|
162
178
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
163
179
|
Mutation: ResolverTypeWrapper<{}>;
|
|
164
180
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
181
|
+
OpportunityNotification: ResolverTypeWrapper<IOpportunityNotification>;
|
|
165
182
|
Query: ResolverTypeWrapper<{}>;
|
|
166
183
|
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
167
184
|
Subscription: ResolverTypeWrapper<{}>;
|
|
@@ -178,6 +195,7 @@ export type IResolversParentTypes = {
|
|
|
178
195
|
Long: Scalars['Long'];
|
|
179
196
|
Mutation: {};
|
|
180
197
|
String: Scalars['String'];
|
|
198
|
+
OpportunityNotification: IOpportunityNotification;
|
|
181
199
|
Query: {};
|
|
182
200
|
Int: Scalars['Int'];
|
|
183
201
|
Subscription: {};
|
|
@@ -201,6 +219,16 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
201
219
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
202
220
|
};
|
|
203
221
|
|
|
222
|
+
export type IOpportunityNotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunityNotification'] = IResolversParentTypes['OpportunityNotification']> = {
|
|
223
|
+
opportunityId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
224
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
225
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
226
|
+
notificationType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
227
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
228
|
+
projectUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
229
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
230
|
+
};
|
|
231
|
+
|
|
204
232
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
205
233
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
206
234
|
fetchMyExperience?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
@@ -214,6 +242,8 @@ export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolv
|
|
|
214
242
|
onMyExperienceUpdated?: SubscriptionResolver<IResolversTypes['UserXP'], "onMyExperienceUpdated", ParentType, ContextType, RequireFields<ISubscriptionOnMyExperienceUpdatedArgs, 'authToken'>>;
|
|
215
243
|
onMyExperienceIncremented?: SubscriptionResolver<IResolversTypes['UserXPIncrement'], "onMyExperienceIncremented", ParentType, ContextType, RequireFields<ISubscriptionOnMyExperienceIncrementedArgs, 'authToken'>>;
|
|
216
244
|
onInviteCodeUsed?: SubscriptionResolver<IResolversTypes['UsedInviteCode'], "onInviteCodeUsed", ParentType, ContextType, RequireFields<ISubscriptionOnInviteCodeUsedArgs, 'authToken'>>;
|
|
245
|
+
onCommonOpportunityNotification?: SubscriptionResolver<IResolversTypes['OpportunityNotification'], "onCommonOpportunityNotification", ParentType, ContextType>;
|
|
246
|
+
onUserOpportunityNotification?: SubscriptionResolver<IResolversTypes['OpportunityNotification'], "onUserOpportunityNotification", ParentType, ContextType, RequireFields<ISubscriptionOnUserOpportunityNotificationArgs, 'authToken'>>;
|
|
217
247
|
};
|
|
218
248
|
|
|
219
249
|
export type ITaskResolvers<ContextType = any, ParentType extends IResolversParentTypes['Task'] = IResolversParentTypes['Task']> = {
|
|
@@ -259,6 +289,7 @@ export type IUserXpIncrementResolvers<ContextType = any, ParentType extends IRes
|
|
|
259
289
|
export type IResolvers<ContextType = any> = {
|
|
260
290
|
Long?: GraphQLScalarType;
|
|
261
291
|
Mutation?: IMutationResolvers<ContextType>;
|
|
292
|
+
OpportunityNotification?: IOpportunityNotificationResolvers<ContextType>;
|
|
262
293
|
Query?: IQueryResolvers<ContextType>;
|
|
263
294
|
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
264
295
|
Task?: ITaskResolvers<ContextType>;
|
|
@@ -95,7 +95,7 @@ export type IMutationVisitPageV2Args = {
|
|
|
95
95
|
description?: Maybe<Scalars['String']>;
|
|
96
96
|
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
97
97
|
brandId?: Maybe<Scalars['String']>;
|
|
98
|
-
|
|
98
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
|
|
@@ -565,7 +565,7 @@ export type IVisitPageV2MutationVariables = Exact<{
|
|
|
565
565
|
description?: Maybe<Scalars['String']>;
|
|
566
566
|
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
567
567
|
brandId?: Maybe<Scalars['String']>;
|
|
568
|
-
|
|
568
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
569
569
|
}>;
|
|
570
570
|
|
|
571
571
|
|
|
@@ -686,14 +686,14 @@ export type OpenOpportunityV2MutationHookResult = ReturnType<typeof useOpenOppor
|
|
|
686
686
|
export type OpenOpportunityV2MutationResult = Apollo.MutationResult<IOpenOpportunityV2Mutation>;
|
|
687
687
|
export type OpenOpportunityV2MutationOptions = Apollo.BaseMutationOptions<IOpenOpportunityV2Mutation, IOpenOpportunityV2MutationVariables>;
|
|
688
688
|
export const VisitPageV2Document = gql`
|
|
689
|
-
mutation VisitPageV2($domain: String!, $title: String!, $description: String, $tags: [String], $brandId: String, $
|
|
689
|
+
mutation VisitPageV2($domain: String!, $title: String!, $description: String, $tags: [String], $brandId: String, $categoryId: String) {
|
|
690
690
|
visitPageV2(
|
|
691
691
|
domain: $domain
|
|
692
692
|
title: $title
|
|
693
693
|
description: $description
|
|
694
694
|
tags: $tags
|
|
695
695
|
brandId: $brandId
|
|
696
|
-
|
|
696
|
+
categoryId: $categoryId
|
|
697
697
|
) {
|
|
698
698
|
opportunityId
|
|
699
699
|
brandId
|
|
@@ -739,7 +739,7 @@ export type IVisitPageV2MutationFn = Apollo.MutationFunction<IVisitPageV2Mutatio
|
|
|
739
739
|
* description: // value for 'description'
|
|
740
740
|
* tags: // value for 'tags'
|
|
741
741
|
* brandId: // value for 'brandId'
|
|
742
|
-
*
|
|
742
|
+
* categoryId: // value for 'categoryId'
|
|
743
743
|
* },
|
|
744
744
|
* });
|
|
745
745
|
*/
|
|
@@ -112,6 +112,7 @@ export type IMutation = {
|
|
|
112
112
|
setDummy: Scalars['String'];
|
|
113
113
|
createNonce: Scalars['String'];
|
|
114
114
|
createTonNonce: Scalars['String'];
|
|
115
|
+
createEvmNonce: Scalars['String'];
|
|
115
116
|
signInAdminMetamask: IIdentity;
|
|
116
117
|
signInMetamask: IIdentity;
|
|
117
118
|
signInTezos: IIdentity;
|
|
@@ -652,6 +653,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
652
653
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
653
654
|
createNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationCreateNonceArgs, 'address' | 'blockchain'>>;
|
|
654
655
|
createTonNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
656
|
+
createEvmNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
655
657
|
signInAdminMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInAdminMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
656
658
|
signInMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
|
|
657
659
|
signInTezos?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTezosArgs, 'signature' | 'pubkey'>>;
|
|
@@ -849,6 +851,11 @@ export type IAddWalletTonMutationVariables = Exact<{
|
|
|
849
851
|
|
|
850
852
|
export type IAddWalletTonMutation = Pick<IMutation, 'addWalletTon'>;
|
|
851
853
|
|
|
854
|
+
export type ICreateEvmNonceMutationVariables = Exact<{ [key: string]: never; }>;
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
export type ICreateEvmNonceMutation = Pick<IMutation, 'createEvmNonce'>;
|
|
858
|
+
|
|
852
859
|
export type ICreateNonceMutationVariables = Exact<{
|
|
853
860
|
address: Scalars['String'];
|
|
854
861
|
blockchain: Scalars['String'];
|
|
@@ -1223,6 +1230,35 @@ export function useAddWalletTonMutation(baseOptions?: Apollo.MutationHookOptions
|
|
|
1223
1230
|
export type AddWalletTonMutationHookResult = ReturnType<typeof useAddWalletTonMutation>;
|
|
1224
1231
|
export type AddWalletTonMutationResult = Apollo.MutationResult<IAddWalletTonMutation>;
|
|
1225
1232
|
export type AddWalletTonMutationOptions = Apollo.BaseMutationOptions<IAddWalletTonMutation, IAddWalletTonMutationVariables>;
|
|
1233
|
+
export const CreateEvmNonceDocument = gql`
|
|
1234
|
+
mutation CreateEvmNonce {
|
|
1235
|
+
createEvmNonce
|
|
1236
|
+
}
|
|
1237
|
+
`;
|
|
1238
|
+
export type ICreateEvmNonceMutationFn = Apollo.MutationFunction<ICreateEvmNonceMutation, ICreateEvmNonceMutationVariables>;
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* __useCreateEvmNonceMutation__
|
|
1242
|
+
*
|
|
1243
|
+
* To run a mutation, you first call `useCreateEvmNonceMutation` within a React component and pass it any options that fit your needs.
|
|
1244
|
+
* When your component renders, `useCreateEvmNonceMutation` returns a tuple that includes:
|
|
1245
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1246
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1247
|
+
*
|
|
1248
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1249
|
+
*
|
|
1250
|
+
* @example
|
|
1251
|
+
* const [createEvmNonceMutation, { data, loading, error }] = useCreateEvmNonceMutation({
|
|
1252
|
+
* variables: {
|
|
1253
|
+
* },
|
|
1254
|
+
* });
|
|
1255
|
+
*/
|
|
1256
|
+
export function useCreateEvmNonceMutation(baseOptions?: Apollo.MutationHookOptions<ICreateEvmNonceMutation, ICreateEvmNonceMutationVariables>) {
|
|
1257
|
+
return Apollo.useMutation<ICreateEvmNonceMutation, ICreateEvmNonceMutationVariables>(CreateEvmNonceDocument, baseOptions);
|
|
1258
|
+
}
|
|
1259
|
+
export type CreateEvmNonceMutationHookResult = ReturnType<typeof useCreateEvmNonceMutation>;
|
|
1260
|
+
export type CreateEvmNonceMutationResult = Apollo.MutationResult<ICreateEvmNonceMutation>;
|
|
1261
|
+
export type CreateEvmNonceMutationOptions = Apollo.BaseMutationOptions<ICreateEvmNonceMutation, ICreateEvmNonceMutationVariables>;
|
|
1226
1262
|
export const CreateNonceDocument = gql`
|
|
1227
1263
|
mutation CreateNonce($address: String!, $blockchain: String!, $chainId: String) {
|
|
1228
1264
|
createNonce(address: $address, blockchain: $blockchain, chainId: $chainId)
|