@ludo.ninja/api 2.8.43 → 2.8.45
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__/formsHost/schema.d.ts +1 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +71 -1
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +54 -1
- package/build/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/formsHost/schema.ts +1 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +92 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -32,6 +32,7 @@ export type IContactSupportInput = {
|
|
|
32
32
|
category?: Maybe<Scalars['String']>;
|
|
33
33
|
description?: Maybe<Scalars['String']>;
|
|
34
34
|
priority?: Maybe<Scalars['String']>;
|
|
35
|
+
recaptchaToken: Scalars['String'];
|
|
35
36
|
};
|
|
36
37
|
export type IContentReportInput = {
|
|
37
38
|
userId?: Maybe<Scalars['ID']>;
|
|
@@ -60,6 +60,8 @@ export type IMutation = {
|
|
|
60
60
|
hideOpportunity: Scalars['Boolean'];
|
|
61
61
|
createOpportunity: Scalars['Boolean'];
|
|
62
62
|
updateOpportunity: Scalars['Boolean'];
|
|
63
|
+
likeOpportunity: Scalars['Boolean'];
|
|
64
|
+
dislikeOpportunity: Scalars['Boolean'];
|
|
63
65
|
};
|
|
64
66
|
export type IMutationCreateBrandArgs = {
|
|
65
67
|
input: IBrandInput;
|
|
@@ -88,6 +90,12 @@ export type IMutationUpdateOpportunityArgs = {
|
|
|
88
90
|
opportunityId: Scalars['ID'];
|
|
89
91
|
input: IOpportunityInput;
|
|
90
92
|
};
|
|
93
|
+
export type IMutationLikeOpportunityArgs = {
|
|
94
|
+
opportunityId: Scalars['String'];
|
|
95
|
+
};
|
|
96
|
+
export type IMutationDislikeOpportunityArgs = {
|
|
97
|
+
opportunityId: Scalars['String'];
|
|
98
|
+
};
|
|
91
99
|
export type IOpportunitiesPage = {
|
|
92
100
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
93
101
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -176,6 +184,7 @@ export type IOpportunityV2 = {
|
|
|
176
184
|
minWalletValue?: Maybe<Scalars['Float']>;
|
|
177
185
|
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
178
186
|
shareLink?: Maybe<Scalars['String']>;
|
|
187
|
+
liked?: Maybe<Scalars['Boolean']>;
|
|
179
188
|
};
|
|
180
189
|
/** scalar Upload */
|
|
181
190
|
export type IQuery = {
|
|
@@ -300,6 +309,8 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
300
309
|
hideOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationHideOpportunityArgs, 'opportunityId'>>;
|
|
301
310
|
createOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateOpportunityArgs, 'input'>>;
|
|
302
311
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'opportunityId' | 'input'>>;
|
|
312
|
+
likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
|
|
313
|
+
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
303
314
|
};
|
|
304
315
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
305
316
|
currentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['Opportunity']>>>, ParentType, ContextType>;
|
|
@@ -369,6 +380,7 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
369
380
|
minWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
370
381
|
maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
371
382
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
383
|
+
liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
372
384
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
373
385
|
};
|
|
374
386
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
@@ -395,6 +407,14 @@ export type IResolvers<ContextType = any> = {
|
|
|
395
407
|
export type IDirectiveResolvers<ContextType = any> = {
|
|
396
408
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
397
409
|
};
|
|
410
|
+
export type IDislikeOpportunityMutationVariables = Exact<{
|
|
411
|
+
opportunityId: Scalars['String'];
|
|
412
|
+
}>;
|
|
413
|
+
export type IDislikeOpportunityMutation = Pick<IMutation, 'dislikeOpportunity'>;
|
|
414
|
+
export type ILikeOpportunityMutationVariables = Exact<{
|
|
415
|
+
opportunityId: Scalars['String'];
|
|
416
|
+
}>;
|
|
417
|
+
export type ILikeOpportunityMutation = Pick<IMutation, 'likeOpportunity'>;
|
|
398
418
|
export type ICreateOpportunityMutationVariables = Exact<{
|
|
399
419
|
input: IOpportunityInput;
|
|
400
420
|
}>;
|
|
@@ -407,7 +427,7 @@ export type IFetchOpportunitiesForProfileQueryVariables = Exact<{
|
|
|
407
427
|
[key: string]: never;
|
|
408
428
|
}>;
|
|
409
429
|
export type IFetchOpportunitiesForProfileQuery = {
|
|
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'>>>;
|
|
430
|
+
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' | 'liked'>>>;
|
|
411
431
|
};
|
|
412
432
|
export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
413
433
|
domain?: Maybe<Scalars['String']>;
|
|
@@ -418,6 +438,56 @@ export type IFetchOpportunitiesQuery = {
|
|
|
418
438
|
similarOpportunities?: Maybe<Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>>;
|
|
419
439
|
};
|
|
420
440
|
};
|
|
441
|
+
export declare const DislikeOpportunityDocument: Apollo.DocumentNode;
|
|
442
|
+
export type IDislikeOpportunityMutationFn = Apollo.MutationFunction<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>;
|
|
443
|
+
/**
|
|
444
|
+
* __useDislikeOpportunityMutation__
|
|
445
|
+
*
|
|
446
|
+
* To run a mutation, you first call `useDislikeOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
447
|
+
* When your component renders, `useDislikeOpportunityMutation` returns a tuple that includes:
|
|
448
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
449
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
450
|
+
*
|
|
451
|
+
* @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;
|
|
452
|
+
*
|
|
453
|
+
* @example
|
|
454
|
+
* const [dislikeOpportunityMutation, { data, loading, error }] = useDislikeOpportunityMutation({
|
|
455
|
+
* variables: {
|
|
456
|
+
* opportunityId: // value for 'opportunityId'
|
|
457
|
+
* },
|
|
458
|
+
* });
|
|
459
|
+
*/
|
|
460
|
+
export declare function useDislikeOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>): Apollo.MutationTuple<IDislikeOpportunityMutation, Exact<{
|
|
461
|
+
opportunityId: string;
|
|
462
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
463
|
+
export type DislikeOpportunityMutationHookResult = ReturnType<typeof useDislikeOpportunityMutation>;
|
|
464
|
+
export type DislikeOpportunityMutationResult = Apollo.MutationResult<IDislikeOpportunityMutation>;
|
|
465
|
+
export type DislikeOpportunityMutationOptions = Apollo.BaseMutationOptions<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>;
|
|
466
|
+
export declare const LikeOpportunityDocument: Apollo.DocumentNode;
|
|
467
|
+
export type ILikeOpportunityMutationFn = Apollo.MutationFunction<ILikeOpportunityMutation, ILikeOpportunityMutationVariables>;
|
|
468
|
+
/**
|
|
469
|
+
* __useLikeOpportunityMutation__
|
|
470
|
+
*
|
|
471
|
+
* To run a mutation, you first call `useLikeOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
472
|
+
* When your component renders, `useLikeOpportunityMutation` returns a tuple that includes:
|
|
473
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
474
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
475
|
+
*
|
|
476
|
+
* @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;
|
|
477
|
+
*
|
|
478
|
+
* @example
|
|
479
|
+
* const [likeOpportunityMutation, { data, loading, error }] = useLikeOpportunityMutation({
|
|
480
|
+
* variables: {
|
|
481
|
+
* opportunityId: // value for 'opportunityId'
|
|
482
|
+
* },
|
|
483
|
+
* });
|
|
484
|
+
*/
|
|
485
|
+
export declare function useLikeOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<ILikeOpportunityMutation, ILikeOpportunityMutationVariables>): Apollo.MutationTuple<ILikeOpportunityMutation, Exact<{
|
|
486
|
+
opportunityId: string;
|
|
487
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
488
|
+
export type LikeOpportunityMutationHookResult = ReturnType<typeof useLikeOpportunityMutation>;
|
|
489
|
+
export type LikeOpportunityMutationResult = Apollo.MutationResult<ILikeOpportunityMutation>;
|
|
490
|
+
export type LikeOpportunityMutationOptions = Apollo.BaseMutationOptions<ILikeOpportunityMutation, ILikeOpportunityMutationVariables>;
|
|
421
491
|
export declare const CreateOpportunityDocument: Apollo.DocumentNode;
|
|
422
492
|
export type ICreateOpportunityMutationFn = Apollo.MutationFunction<ICreateOpportunityMutation, ICreateOpportunityMutationVariables>;
|
|
423
493
|
/**
|
|
@@ -23,9 +23,61 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = void 0;
|
|
26
|
+
exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
+
exports.DislikeOpportunityDocument = (0, client_1.gql) `
|
|
30
|
+
mutation DislikeOpportunity($opportunityId: String!) {
|
|
31
|
+
dislikeOpportunity(opportunityId: $opportunityId)
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
/**
|
|
35
|
+
* __useDislikeOpportunityMutation__
|
|
36
|
+
*
|
|
37
|
+
* To run a mutation, you first call `useDislikeOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
38
|
+
* When your component renders, `useDislikeOpportunityMutation` returns a tuple that includes:
|
|
39
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
40
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
41
|
+
*
|
|
42
|
+
* @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;
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* const [dislikeOpportunityMutation, { data, loading, error }] = useDislikeOpportunityMutation({
|
|
46
|
+
* variables: {
|
|
47
|
+
* opportunityId: // value for 'opportunityId'
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
*/
|
|
51
|
+
function useDislikeOpportunityMutation(baseOptions) {
|
|
52
|
+
return Apollo.useMutation(exports.DislikeOpportunityDocument, baseOptions);
|
|
53
|
+
}
|
|
54
|
+
exports.useDislikeOpportunityMutation = useDislikeOpportunityMutation;
|
|
55
|
+
exports.LikeOpportunityDocument = (0, client_1.gql) `
|
|
56
|
+
mutation LikeOpportunity($opportunityId: String!) {
|
|
57
|
+
likeOpportunity(opportunityId: $opportunityId)
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
/**
|
|
61
|
+
* __useLikeOpportunityMutation__
|
|
62
|
+
*
|
|
63
|
+
* To run a mutation, you first call `useLikeOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
64
|
+
* When your component renders, `useLikeOpportunityMutation` returns a tuple that includes:
|
|
65
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
66
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
67
|
+
*
|
|
68
|
+
* @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;
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* const [likeOpportunityMutation, { data, loading, error }] = useLikeOpportunityMutation({
|
|
72
|
+
* variables: {
|
|
73
|
+
* opportunityId: // value for 'opportunityId'
|
|
74
|
+
* },
|
|
75
|
+
* });
|
|
76
|
+
*/
|
|
77
|
+
function useLikeOpportunityMutation(baseOptions) {
|
|
78
|
+
return Apollo.useMutation(exports.LikeOpportunityDocument, baseOptions);
|
|
79
|
+
}
|
|
80
|
+
exports.useLikeOpportunityMutation = useLikeOpportunityMutation;
|
|
29
81
|
exports.CreateOpportunityDocument = (0, client_1.gql) `
|
|
30
82
|
mutation CreateOpportunity($input: OpportunityInput!) {
|
|
31
83
|
createOpportunity(input: $input)
|
|
@@ -113,6 +165,7 @@ exports.FetchOpportunitiesForProfileDocument = (0, client_1.gql) `
|
|
|
113
165
|
minWalletValue
|
|
114
166
|
maxWalletValue
|
|
115
167
|
shareLink
|
|
168
|
+
liked
|
|
116
169
|
}
|
|
117
170
|
}
|
|
118
171
|
`;
|
package/build/index.d.ts
CHANGED
|
@@ -403,6 +403,16 @@ declare const schema: {
|
|
|
403
403
|
FetchSearchResultCategorySelectionsDocument: import("graphql").DocumentNode;
|
|
404
404
|
FetchSearchResultStatusSelectionsDocument: import("graphql").DocumentNode;
|
|
405
405
|
FetchSetsSearchResultTypeSelectionsDocument: import("graphql").DocumentNode;
|
|
406
|
+
useDislikeOpportunityMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.IDislikeOpportunityMutation, opportunitiesSchema.Exact<{
|
|
407
|
+
opportunityId: string;
|
|
408
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.IDislikeOpportunityMutation, opportunitiesSchema.Exact<{
|
|
409
|
+
opportunityId: string;
|
|
410
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
411
|
+
useLikeOpportunityMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.ILikeOpportunityMutation, opportunitiesSchema.Exact<{
|
|
412
|
+
opportunityId: string;
|
|
413
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.ILikeOpportunityMutation, opportunitiesSchema.Exact<{
|
|
414
|
+
opportunityId: string;
|
|
415
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
406
416
|
useCreateOpportunityMutation(baseOptions?: import("@apollo/client").MutationHookOptions<opportunitiesSchema.ICreateOpportunityMutation, opportunitiesSchema.Exact<{
|
|
407
417
|
input: opportunitiesSchema.IOpportunityInput;
|
|
408
418
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<opportunitiesSchema.ICreateOpportunityMutation, opportunitiesSchema.Exact<{
|
|
@@ -433,6 +443,8 @@ declare const schema: {
|
|
|
433
443
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
434
444
|
domain?: opportunitiesSchema.Maybe<string> | undefined;
|
|
435
445
|
}>>;
|
|
446
|
+
DislikeOpportunityDocument: import("graphql").DocumentNode;
|
|
447
|
+
LikeOpportunityDocument: import("graphql").DocumentNode;
|
|
436
448
|
CreateOpportunityDocument: import("graphql").DocumentNode;
|
|
437
449
|
OpenOpportunityDocument: import("graphql").DocumentNode;
|
|
438
450
|
FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -59,6 +59,8 @@ export type IMutation = {
|
|
|
59
59
|
hideOpportunity: Scalars['Boolean'];
|
|
60
60
|
createOpportunity: Scalars['Boolean'];
|
|
61
61
|
updateOpportunity: Scalars['Boolean'];
|
|
62
|
+
likeOpportunity: Scalars['Boolean'];
|
|
63
|
+
dislikeOpportunity: Scalars['Boolean'];
|
|
62
64
|
};
|
|
63
65
|
|
|
64
66
|
|
|
@@ -104,6 +106,16 @@ export type IMutationUpdateOpportunityArgs = {
|
|
|
104
106
|
input: IOpportunityInput;
|
|
105
107
|
};
|
|
106
108
|
|
|
109
|
+
|
|
110
|
+
export type IMutationLikeOpportunityArgs = {
|
|
111
|
+
opportunityId: Scalars['String'];
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
export type IMutationDislikeOpportunityArgs = {
|
|
116
|
+
opportunityId: Scalars['String'];
|
|
117
|
+
};
|
|
118
|
+
|
|
107
119
|
export type IOpportunitiesPage = {
|
|
108
120
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
109
121
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -195,6 +207,7 @@ export type IOpportunityV2 = {
|
|
|
195
207
|
minWalletValue?: Maybe<Scalars['Float']>;
|
|
196
208
|
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
197
209
|
shareLink?: Maybe<Scalars['String']>;
|
|
210
|
+
liked?: Maybe<Scalars['Boolean']>;
|
|
198
211
|
};
|
|
199
212
|
|
|
200
213
|
/** scalar Upload */
|
|
@@ -377,6 +390,8 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
377
390
|
hideOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationHideOpportunityArgs, 'opportunityId'>>;
|
|
378
391
|
createOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateOpportunityArgs, 'input'>>;
|
|
379
392
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'opportunityId' | 'input'>>;
|
|
393
|
+
likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
|
|
394
|
+
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
380
395
|
};
|
|
381
396
|
|
|
382
397
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
@@ -449,6 +464,7 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
449
464
|
minWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
450
465
|
maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
451
466
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
467
|
+
liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
452
468
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
453
469
|
};
|
|
454
470
|
|
|
@@ -479,6 +495,20 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
479
495
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
480
496
|
};
|
|
481
497
|
|
|
498
|
+
export type IDislikeOpportunityMutationVariables = Exact<{
|
|
499
|
+
opportunityId: Scalars['String'];
|
|
500
|
+
}>;
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
export type IDislikeOpportunityMutation = Pick<IMutation, 'dislikeOpportunity'>;
|
|
504
|
+
|
|
505
|
+
export type ILikeOpportunityMutationVariables = Exact<{
|
|
506
|
+
opportunityId: Scalars['String'];
|
|
507
|
+
}>;
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
export type ILikeOpportunityMutation = Pick<IMutation, 'likeOpportunity'>;
|
|
511
|
+
|
|
482
512
|
export type ICreateOpportunityMutationVariables = Exact<{
|
|
483
513
|
input: IOpportunityInput;
|
|
484
514
|
}>;
|
|
@@ -496,7 +526,7 @@ export type IOpenOpportunityMutation = Pick<IMutation, 'openOpportunity'>;
|
|
|
496
526
|
export type IFetchOpportunitiesForProfileQueryVariables = Exact<{ [key: string]: never; }>;
|
|
497
527
|
|
|
498
528
|
|
|
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'>>> };
|
|
529
|
+
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' | 'liked'>>> };
|
|
500
530
|
|
|
501
531
|
export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
502
532
|
domain?: Maybe<Scalars['String']>;
|
|
@@ -506,6 +536,66 @@ export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
|
506
536
|
export type IFetchOpportunitiesQuery = { fetchOpportunities: { currentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>>, similarOpportunities?: Maybe<Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>> } };
|
|
507
537
|
|
|
508
538
|
|
|
539
|
+
export const DislikeOpportunityDocument = gql`
|
|
540
|
+
mutation DislikeOpportunity($opportunityId: String!) {
|
|
541
|
+
dislikeOpportunity(opportunityId: $opportunityId)
|
|
542
|
+
}
|
|
543
|
+
`;
|
|
544
|
+
export type IDislikeOpportunityMutationFn = Apollo.MutationFunction<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* __useDislikeOpportunityMutation__
|
|
548
|
+
*
|
|
549
|
+
* To run a mutation, you first call `useDislikeOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
550
|
+
* When your component renders, `useDislikeOpportunityMutation` returns a tuple that includes:
|
|
551
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
552
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
553
|
+
*
|
|
554
|
+
* @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;
|
|
555
|
+
*
|
|
556
|
+
* @example
|
|
557
|
+
* const [dislikeOpportunityMutation, { data, loading, error }] = useDislikeOpportunityMutation({
|
|
558
|
+
* variables: {
|
|
559
|
+
* opportunityId: // value for 'opportunityId'
|
|
560
|
+
* },
|
|
561
|
+
* });
|
|
562
|
+
*/
|
|
563
|
+
export function useDislikeOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>) {
|
|
564
|
+
return Apollo.useMutation<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>(DislikeOpportunityDocument, baseOptions);
|
|
565
|
+
}
|
|
566
|
+
export type DislikeOpportunityMutationHookResult = ReturnType<typeof useDislikeOpportunityMutation>;
|
|
567
|
+
export type DislikeOpportunityMutationResult = Apollo.MutationResult<IDislikeOpportunityMutation>;
|
|
568
|
+
export type DislikeOpportunityMutationOptions = Apollo.BaseMutationOptions<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>;
|
|
569
|
+
export const LikeOpportunityDocument = gql`
|
|
570
|
+
mutation LikeOpportunity($opportunityId: String!) {
|
|
571
|
+
likeOpportunity(opportunityId: $opportunityId)
|
|
572
|
+
}
|
|
573
|
+
`;
|
|
574
|
+
export type ILikeOpportunityMutationFn = Apollo.MutationFunction<ILikeOpportunityMutation, ILikeOpportunityMutationVariables>;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* __useLikeOpportunityMutation__
|
|
578
|
+
*
|
|
579
|
+
* To run a mutation, you first call `useLikeOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
580
|
+
* When your component renders, `useLikeOpportunityMutation` returns a tuple that includes:
|
|
581
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
582
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
583
|
+
*
|
|
584
|
+
* @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;
|
|
585
|
+
*
|
|
586
|
+
* @example
|
|
587
|
+
* const [likeOpportunityMutation, { data, loading, error }] = useLikeOpportunityMutation({
|
|
588
|
+
* variables: {
|
|
589
|
+
* opportunityId: // value for 'opportunityId'
|
|
590
|
+
* },
|
|
591
|
+
* });
|
|
592
|
+
*/
|
|
593
|
+
export function useLikeOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<ILikeOpportunityMutation, ILikeOpportunityMutationVariables>) {
|
|
594
|
+
return Apollo.useMutation<ILikeOpportunityMutation, ILikeOpportunityMutationVariables>(LikeOpportunityDocument, baseOptions);
|
|
595
|
+
}
|
|
596
|
+
export type LikeOpportunityMutationHookResult = ReturnType<typeof useLikeOpportunityMutation>;
|
|
597
|
+
export type LikeOpportunityMutationResult = Apollo.MutationResult<ILikeOpportunityMutation>;
|
|
598
|
+
export type LikeOpportunityMutationOptions = Apollo.BaseMutationOptions<ILikeOpportunityMutation, ILikeOpportunityMutationVariables>;
|
|
509
599
|
export const CreateOpportunityDocument = gql`
|
|
510
600
|
mutation CreateOpportunity($input: OpportunityInput!) {
|
|
511
601
|
createOpportunity(input: $input)
|
|
@@ -601,6 +691,7 @@ export const FetchOpportunitiesForProfileDocument = gql`
|
|
|
601
691
|
minWalletValue
|
|
602
692
|
maxWalletValue
|
|
603
693
|
shareLink
|
|
694
|
+
liked
|
|
604
695
|
}
|
|
605
696
|
}
|
|
606
697
|
`;
|