@ludo.ninja/api 2.9.0 → 2.9.1
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 +63 -0
- package/build/graphql_tools/__generated__/adminHost/schema.js +35 -3
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +0 -7
- package/build/graphql_tools/__generated__/tapHost/schema.d.ts +27 -2
- package/build/index.d.ts +9 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +77 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +0 -9
- package/src/graphql_tools/__generated__/tapHost/schema.ts +31 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -127,6 +127,7 @@ export type IAdminOpportunity = {
|
|
|
127
127
|
clicks?: Maybe<Scalars['Int']>;
|
|
128
128
|
views?: Maybe<Scalars['Int']>;
|
|
129
129
|
addedBy?: Maybe<Scalars['String']>;
|
|
130
|
+
archived?: Maybe<Scalars['Boolean']>;
|
|
130
131
|
};
|
|
131
132
|
export type IAdminOpportunityInput = {
|
|
132
133
|
brandId: Scalars['String'];
|
|
@@ -354,6 +355,14 @@ export type IInvitesSortInput = {
|
|
|
354
355
|
sortByActiveInvites?: Maybe<ISort>;
|
|
355
356
|
sortByReferredUsers?: Maybe<ISort>;
|
|
356
357
|
};
|
|
358
|
+
export type ILocation = {
|
|
359
|
+
name: Scalars['String'];
|
|
360
|
+
type: ILocationType;
|
|
361
|
+
};
|
|
362
|
+
export declare enum ILocationType {
|
|
363
|
+
Continent = "CONTINENT",
|
|
364
|
+
Country = "COUNTRY"
|
|
365
|
+
}
|
|
357
366
|
export type IMutation = {
|
|
358
367
|
setDummy: Scalars['String'];
|
|
359
368
|
removeInviteCode: Scalars['Boolean'];
|
|
@@ -368,6 +377,7 @@ export type IMutation = {
|
|
|
368
377
|
updateCategoryArchivedStatus: Scalars['Boolean'];
|
|
369
378
|
createAdminOpportunity: Scalars['Boolean'];
|
|
370
379
|
updateOpportunity: Scalars['Boolean'];
|
|
380
|
+
updateOpportunityArchivedStatus: Scalars['Boolean'];
|
|
371
381
|
triggerOpportunityNotification: Scalars['Boolean'];
|
|
372
382
|
createReferralType?: Maybe<Scalars['Boolean']>;
|
|
373
383
|
updateReferralType: Scalars['Boolean'];
|
|
@@ -430,6 +440,10 @@ export type IMutationUpdateOpportunityArgs = {
|
|
|
430
440
|
input: IAdminOpportunityInput;
|
|
431
441
|
file?: Maybe<Scalars['Upload']>;
|
|
432
442
|
};
|
|
443
|
+
export type IMutationUpdateOpportunityArchivedStatusArgs = {
|
|
444
|
+
id: Scalars['ID'];
|
|
445
|
+
isArchived: Scalars['Boolean'];
|
|
446
|
+
};
|
|
433
447
|
export type IMutationTriggerOpportunityNotificationArgs = {
|
|
434
448
|
opportunityId: Scalars['ID'];
|
|
435
449
|
};
|
|
@@ -473,6 +487,7 @@ export type IMutationChangeXpPointsArgs = {
|
|
|
473
487
|
};
|
|
474
488
|
export type IOpportunitiesFilterInput = {
|
|
475
489
|
opportunityIdTerm?: Maybe<Scalars['String']>;
|
|
490
|
+
opportunityNameTerm?: Maybe<Scalars['String']>;
|
|
476
491
|
industryTerm?: Maybe<Scalars['String']>;
|
|
477
492
|
categoryTerm?: Maybe<Scalars['String']>;
|
|
478
493
|
opportunityLudoUrlTerm?: Maybe<Scalars['String']>;
|
|
@@ -536,6 +551,7 @@ export type IQuery = {
|
|
|
536
551
|
fetchRegistrationInvitePage: IRegistrationInvitePage;
|
|
537
552
|
fetchAdminInvitesPage: IInvitesPage;
|
|
538
553
|
checkInviteCode: ICheckInviteCodeData;
|
|
554
|
+
fetchLocations?: Maybe<Array<Maybe<ILocation>>>;
|
|
539
555
|
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
540
556
|
fetchAdminCategories: Array<IAdminCategory>;
|
|
541
557
|
fetchAdminCategoriesPage: ICategoriesPage;
|
|
@@ -593,6 +609,9 @@ export type IQueryFetchAdminInvitesPageArgs = {
|
|
|
593
609
|
export type IQueryCheckInviteCodeArgs = {
|
|
594
610
|
code: Scalars['String'];
|
|
595
611
|
};
|
|
612
|
+
export type IQueryFetchLocationsArgs = {
|
|
613
|
+
term: Scalars['String'];
|
|
614
|
+
};
|
|
596
615
|
export type IQueryFetchAdminOpportunitiesPageArgs = {
|
|
597
616
|
filter: IOpportunitiesFilterInput;
|
|
598
617
|
sort: IOpportunitiesSortInput;
|
|
@@ -905,6 +924,8 @@ export type IResolversTypes = {
|
|
|
905
924
|
InvitesFilterInput: IInvitesFilterInput;
|
|
906
925
|
InvitesPage: ResolverTypeWrapper<IInvitesPage>;
|
|
907
926
|
InvitesSortInput: IInvitesSortInput;
|
|
927
|
+
Location: ResolverTypeWrapper<ILocation>;
|
|
928
|
+
LocationType: ILocationType;
|
|
908
929
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
909
930
|
Mutation: ResolverTypeWrapper<{}>;
|
|
910
931
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
@@ -995,6 +1016,7 @@ export type IResolversParentTypes = {
|
|
|
995
1016
|
InvitesFilterInput: IInvitesFilterInput;
|
|
996
1017
|
InvitesPage: IInvitesPage;
|
|
997
1018
|
InvitesSortInput: IInvitesSortInput;
|
|
1019
|
+
Location: ILocation;
|
|
998
1020
|
Long: Scalars['Long'];
|
|
999
1021
|
Mutation: {};
|
|
1000
1022
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
@@ -1158,6 +1180,7 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
|
|
|
1158
1180
|
clicks?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1159
1181
|
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1160
1182
|
addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1183
|
+
archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1161
1184
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1162
1185
|
};
|
|
1163
1186
|
export type IAdminPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPage'] = IResolversParentTypes['AdminPage']> = {
|
|
@@ -1260,6 +1283,11 @@ export type IInvitesPageResolvers<ContextType = any, ParentType extends IResolve
|
|
|
1260
1283
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1261
1284
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1262
1285
|
};
|
|
1286
|
+
export type ILocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Location'] = IResolversParentTypes['Location']> = {
|
|
1287
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1288
|
+
type?: Resolver<IResolversTypes['LocationType'], ParentType, ContextType>;
|
|
1289
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1290
|
+
};
|
|
1263
1291
|
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
1264
1292
|
name: 'Long';
|
|
1265
1293
|
}
|
|
@@ -1277,6 +1305,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1277
1305
|
updateCategoryArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateCategoryArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1278
1306
|
createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
|
|
1279
1307
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1308
|
+
updateOpportunityArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1280
1309
|
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1281
1310
|
createReferralType?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationCreateReferralTypeArgs, 'input'>>;
|
|
1282
1311
|
updateReferralType?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateReferralTypeArgs, 'id' | 'input'>>;
|
|
@@ -1310,6 +1339,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1310
1339
|
fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1311
1340
|
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1312
1341
|
checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
|
|
1342
|
+
fetchLocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Location']>>>, ParentType, ContextType, RequireFields<IQueryFetchLocationsArgs, 'term'>>;
|
|
1313
1343
|
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1314
1344
|
fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
1315
1345
|
fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1434,6 +1464,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1434
1464
|
FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
|
|
1435
1465
|
InvestorInquiryPage?: IInvestorInquiryPageResolvers<ContextType>;
|
|
1436
1466
|
InvitesPage?: IInvitesPageResolvers<ContextType>;
|
|
1467
|
+
Location?: ILocationResolvers<ContextType>;
|
|
1437
1468
|
Long?: GraphQLScalarType;
|
|
1438
1469
|
Mutation?: IMutationResolvers<ContextType>;
|
|
1439
1470
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
@@ -1558,6 +1589,11 @@ export type IUpdateOpportunityMutationVariables = Exact<{
|
|
|
1558
1589
|
file?: Maybe<Scalars['Upload']>;
|
|
1559
1590
|
}>;
|
|
1560
1591
|
export type IUpdateOpportunityMutation = Pick<IMutation, 'updateOpportunity'>;
|
|
1592
|
+
export type IUpdateOpportunityArchivedStatusMutationVariables = Exact<{
|
|
1593
|
+
id: Scalars['ID'];
|
|
1594
|
+
isArchived: Scalars['Boolean'];
|
|
1595
|
+
}>;
|
|
1596
|
+
export type IUpdateOpportunityArchivedStatusMutation = Pick<IMutation, 'updateOpportunityArchivedStatus'>;
|
|
1561
1597
|
export type IUpdateProfileStatusMutationVariables = Exact<{
|
|
1562
1598
|
userId: Scalars['ID'];
|
|
1563
1599
|
isActive: Scalars['Boolean'];
|
|
@@ -2321,6 +2357,33 @@ export declare function useUpdateOpportunityMutation(baseOptions?: Apollo.Mutati
|
|
|
2321
2357
|
export type UpdateOpportunityMutationHookResult = ReturnType<typeof useUpdateOpportunityMutation>;
|
|
2322
2358
|
export type UpdateOpportunityMutationResult = Apollo.MutationResult<IUpdateOpportunityMutation>;
|
|
2323
2359
|
export type UpdateOpportunityMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>;
|
|
2360
|
+
export declare const UpdateOpportunityArchivedStatusDocument: Apollo.DocumentNode;
|
|
2361
|
+
export type IUpdateOpportunityArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>;
|
|
2362
|
+
/**
|
|
2363
|
+
* __useUpdateOpportunityArchivedStatusMutation__
|
|
2364
|
+
*
|
|
2365
|
+
* To run a mutation, you first call `useUpdateOpportunityArchivedStatusMutation` within a React component and pass it any options that fit your needs.
|
|
2366
|
+
* When your component renders, `useUpdateOpportunityArchivedStatusMutation` returns a tuple that includes:
|
|
2367
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2368
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2369
|
+
*
|
|
2370
|
+
* @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;
|
|
2371
|
+
*
|
|
2372
|
+
* @example
|
|
2373
|
+
* const [updateOpportunityArchivedStatusMutation, { data, loading, error }] = useUpdateOpportunityArchivedStatusMutation({
|
|
2374
|
+
* variables: {
|
|
2375
|
+
* id: // value for 'id'
|
|
2376
|
+
* isArchived: // value for 'isArchived'
|
|
2377
|
+
* },
|
|
2378
|
+
* });
|
|
2379
|
+
*/
|
|
2380
|
+
export declare function useUpdateOpportunityArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>): Apollo.MutationTuple<IUpdateOpportunityArchivedStatusMutation, Exact<{
|
|
2381
|
+
id: string;
|
|
2382
|
+
isArchived: boolean;
|
|
2383
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
2384
|
+
export type UpdateOpportunityArchivedStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityArchivedStatusMutation>;
|
|
2385
|
+
export type UpdateOpportunityArchivedStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityArchivedStatusMutation>;
|
|
2386
|
+
export type UpdateOpportunityArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>;
|
|
2324
2387
|
export declare const UpdateProfileStatusDocument: Apollo.DocumentNode;
|
|
2325
2388
|
export type IUpdateProfileStatusMutationFn = Apollo.MutationFunction<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
|
|
2326
2389
|
/**
|
|
@@ -23,11 +23,16 @@ 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.
|
|
28
|
-
exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = void 0;
|
|
26
|
+
exports.useCheckInviteCodeLazyQuery = exports.useCheckInviteCodeQuery = exports.CheckInviteCodeDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = exports.useUpdateOpportunityArchivedStatusMutation = exports.UpdateOpportunityArchivedStatusDocument = exports.useUpdateOpportunityMutation = exports.UpdateOpportunityDocument = exports.useUpdateCategoryArchivedStatusMutation = exports.UpdateCategoryArchivedStatusDocument = exports.useUpdateCategoryMutation = exports.UpdateCategoryDocument = exports.useUpdateBrandArchivedStatusMutation = exports.UpdateBrandArchivedStatusDocument = exports.useUpdateBrandMutation = exports.UpdateBrandDocument = exports.useRemoveInviteCodeMutation = exports.RemoveInviteCodeDocument = exports.useAddInviteCodesMutation = exports.AddInviteCodesDocument = exports.useCreateAdminOpportunityMutation = exports.CreateAdminOpportunityDocument = exports.useCreateBrandMutation = exports.CreateBrandDocument = exports.useCreateCategoryMutation = exports.CreateCategoryDocument = exports.useChangeXpPointsMutation = exports.ChangeXpPointsDocument = exports.useUpdateTierArchivedStatusMutation = exports.UpdateTierArchivedStatusDocument = exports.useUpdateTierMutation = exports.UpdateTierDocument = exports.useUpdateReferralTypeArchivedStatusMutation = exports.UpdateReferralTypeArchivedStatusDocument = exports.useUpdateReferralTypeMutation = exports.UpdateReferralTypeDocument = exports.useUpdateOpportunityPushStatusMutation = exports.UpdateOpportunityPushStatusDocument = exports.useUpdateInviteCodeUsagesLimitMutation = exports.UpdateInviteCodeUsagesLimitDocument = exports.useTriggerOpportunityNotificationMutation = exports.TriggerOpportunityNotificationDocument = exports.useCreateTierMutation = exports.CreateTierDocument = exports.useCreateReferralTypeMutation = exports.CreateReferralTypeDocument = exports.ISortDirection = exports.IReftypeColor = exports.ILocationType = void 0;
|
|
27
|
+
exports.useFetchAdminOpportunitiesPageQuery = exports.FetchAdminOpportunitiesPageDocument = exports.useFetchAdminInvitesPageLazyQuery = exports.useFetchAdminInvitesPageQuery = exports.FetchAdminInvitesPageDocument = exports.useFetchAdminCategoriesPageLazyQuery = exports.useFetchAdminCategoriesPageQuery = exports.FetchAdminCategoriesPageDocument = exports.useFetchAdminCategoriesLazyQuery = exports.useFetchAdminCategoriesQuery = exports.FetchAdminCategoriesDocument = exports.useFetchAdminBrandsPageLazyQuery = exports.useFetchAdminBrandsPageQuery = exports.FetchAdminBrandsPageDocument = exports.useFetchAdminBrandsLazyQuery = exports.useFetchAdminBrandsQuery = exports.FetchAdminBrandsDocument = exports.useFetchUserFeedbackPageLazyQuery = exports.useFetchUserFeedbackPageQuery = exports.FetchUserFeedbackPageDocument = exports.useFetchTiersPageLazyQuery = exports.useFetchTiersPageQuery = exports.FetchTiersPageDocument = exports.useFetchTiersLazyQuery = exports.useFetchTiersQuery = exports.FetchTiersDocument = exports.useFetchRegistrationInvitePageLazyQuery = exports.useFetchRegistrationInvitePageQuery = exports.FetchRegistrationInvitePageDocument = exports.useFetchReferralTypesPageLazyQuery = exports.useFetchReferralTypesPageQuery = exports.FetchReferralTypesPageDocument = exports.useFetchUnarchivedReferralTypesLazyQuery = exports.useFetchUnarchivedReferralTypesQuery = exports.FetchUnarchivedReferralTypesDocument = exports.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = exports.useFetchInvestorInquiryPageLazyQuery = exports.useFetchInvestorInquiryPageQuery = exports.FetchInvestorInquiryPageDocument = exports.useFetchFormOpportunityPageLazyQuery = exports.useFetchFormOpportunityPageQuery = exports.FetchFormOpportunityPageDocument = exports.useFetchContentReportPageLazyQuery = exports.useFetchContentReportPageQuery = exports.FetchContentReportPageDocument = exports.useFetchContactSupportPageLazyQuery = exports.useFetchContactSupportPageQuery = exports.FetchContactSupportPageDocument = void 0;
|
|
28
|
+
exports.useFetchBlockchainsLazyQuery = exports.useFetchBlockchainsQuery = exports.FetchBlockchainsDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.useFetchAdminUsersPageLazyQuery = exports.useFetchAdminUsersPageQuery = exports.FetchAdminUsersPageDocument = exports.useFetchAdminReferralsPageLazyQuery = exports.useFetchAdminReferralsPageQuery = exports.FetchAdminReferralsPageDocument = exports.useFetchAdminOpportunitiesPageLazyQuery = void 0;
|
|
29
29
|
const client_1 = require("@apollo/client");
|
|
30
30
|
const Apollo = __importStar(require("@apollo/client"));
|
|
31
|
+
var ILocationType;
|
|
32
|
+
(function (ILocationType) {
|
|
33
|
+
ILocationType["Continent"] = "CONTINENT";
|
|
34
|
+
ILocationType["Country"] = "COUNTRY";
|
|
35
|
+
})(ILocationType || (exports.ILocationType = ILocationType = {}));
|
|
31
36
|
/** Sync with ReftypeColor.java */
|
|
32
37
|
var IReftypeColor;
|
|
33
38
|
(function (IReftypeColor) {
|
|
@@ -587,6 +592,33 @@ function useUpdateOpportunityMutation(baseOptions) {
|
|
|
587
592
|
return Apollo.useMutation(exports.UpdateOpportunityDocument, baseOptions);
|
|
588
593
|
}
|
|
589
594
|
exports.useUpdateOpportunityMutation = useUpdateOpportunityMutation;
|
|
595
|
+
exports.UpdateOpportunityArchivedStatusDocument = (0, client_1.gql) `
|
|
596
|
+
mutation UpdateOpportunityArchivedStatus($id: ID!, $isArchived: Boolean!) {
|
|
597
|
+
updateOpportunityArchivedStatus(id: $id, isArchived: $isArchived)
|
|
598
|
+
}
|
|
599
|
+
`;
|
|
600
|
+
/**
|
|
601
|
+
* __useUpdateOpportunityArchivedStatusMutation__
|
|
602
|
+
*
|
|
603
|
+
* To run a mutation, you first call `useUpdateOpportunityArchivedStatusMutation` within a React component and pass it any options that fit your needs.
|
|
604
|
+
* When your component renders, `useUpdateOpportunityArchivedStatusMutation` returns a tuple that includes:
|
|
605
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
606
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
607
|
+
*
|
|
608
|
+
* @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;
|
|
609
|
+
*
|
|
610
|
+
* @example
|
|
611
|
+
* const [updateOpportunityArchivedStatusMutation, { data, loading, error }] = useUpdateOpportunityArchivedStatusMutation({
|
|
612
|
+
* variables: {
|
|
613
|
+
* id: // value for 'id'
|
|
614
|
+
* isArchived: // value for 'isArchived'
|
|
615
|
+
* },
|
|
616
|
+
* });
|
|
617
|
+
*/
|
|
618
|
+
function useUpdateOpportunityArchivedStatusMutation(baseOptions) {
|
|
619
|
+
return Apollo.useMutation(exports.UpdateOpportunityArchivedStatusDocument, baseOptions);
|
|
620
|
+
}
|
|
621
|
+
exports.useUpdateOpportunityArchivedStatusMutation = useUpdateOpportunityArchivedStatusMutation;
|
|
590
622
|
exports.UpdateProfileStatusDocument = (0, client_1.gql) `
|
|
591
623
|
mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
|
|
592
624
|
updateProfileStatus(userId: $userId, isActive: $isActive)
|
|
@@ -62,7 +62,6 @@ export type IMutation = {
|
|
|
62
62
|
updateOpportunity: Scalars['Boolean'];
|
|
63
63
|
likeOpportunity: Scalars['Boolean'];
|
|
64
64
|
dislikeOpportunity: Scalars['Boolean'];
|
|
65
|
-
testNotifyUser: Scalars['Boolean'];
|
|
66
65
|
};
|
|
67
66
|
export type IMutationCreateBrandArgs = {
|
|
68
67
|
input: IBrandInput;
|
|
@@ -97,11 +96,6 @@ export type IMutationLikeOpportunityArgs = {
|
|
|
97
96
|
export type IMutationDislikeOpportunityArgs = {
|
|
98
97
|
opportunityId: Scalars['String'];
|
|
99
98
|
};
|
|
100
|
-
export type IMutationTestNotifyUserArgs = {
|
|
101
|
-
blockchain?: Maybe<Scalars['String']>;
|
|
102
|
-
address?: Maybe<Scalars['String']>;
|
|
103
|
-
opportunityId?: Maybe<Scalars['ID']>;
|
|
104
|
-
};
|
|
105
99
|
export type IOpportunitiesPage = {
|
|
106
100
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
107
101
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -321,7 +315,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
321
315
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'opportunityId' | 'input'>>;
|
|
322
316
|
likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
|
|
323
317
|
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
324
|
-
testNotifyUser?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, Partial<IMutationTestNotifyUserArgs>>;
|
|
325
318
|
};
|
|
326
319
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
327
320
|
currentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['Opportunity']>>>, ParentType, ContextType>;
|
|
@@ -30,6 +30,11 @@ export type IActiveInviteCode = {
|
|
|
30
30
|
usedTimes: Scalars['Int'];
|
|
31
31
|
maxUsagesLimit: Scalars['Int'];
|
|
32
32
|
};
|
|
33
|
+
export type IEnergy = {
|
|
34
|
+
availableTapsNum: Scalars['Int'];
|
|
35
|
+
fullEnergyTapsNum: Scalars['Int'];
|
|
36
|
+
refillSpeedTapsPerMs: Scalars['Float'];
|
|
37
|
+
};
|
|
33
38
|
/** Please, manually sync with FarmingStatus.java */
|
|
34
39
|
export declare enum IFarmingStatus {
|
|
35
40
|
InProgress = "IN_PROGRESS",
|
|
@@ -63,6 +68,7 @@ export type IMutation = {
|
|
|
63
68
|
markNotificationAsShown: Scalars['Boolean'];
|
|
64
69
|
markNotificationAsRead: Scalars['Boolean'];
|
|
65
70
|
markNotificationAsNew: Scalars['Boolean'];
|
|
71
|
+
registerTaps: IEnergy;
|
|
66
72
|
};
|
|
67
73
|
export type IMutationConfirmStreakNotificationHasBeenReadArgs = {
|
|
68
74
|
streakId: Scalars['ID'];
|
|
@@ -76,9 +82,12 @@ export type IMutationMarkNotificationAsReadArgs = {
|
|
|
76
82
|
export type IMutationMarkNotificationAsNewArgs = {
|
|
77
83
|
notificationId: Scalars['ID'];
|
|
78
84
|
};
|
|
85
|
+
export type IMutationRegisterTapsArgs = {
|
|
86
|
+
tapsNum?: Maybe<Scalars['Int']>;
|
|
87
|
+
};
|
|
79
88
|
export type INotification = {
|
|
80
89
|
notificationId: Scalars['ID'];
|
|
81
|
-
status:
|
|
90
|
+
status: INotificationStatus;
|
|
82
91
|
text: Scalars['String'];
|
|
83
92
|
createdAt: Scalars['Long'];
|
|
84
93
|
};
|
|
@@ -92,6 +101,7 @@ export type IPlayerState = {
|
|
|
92
101
|
userId: Scalars['ID'];
|
|
93
102
|
coins: Scalars['Int'];
|
|
94
103
|
farmingTask?: Maybe<IFarmingTask>;
|
|
104
|
+
energy: IEnergy;
|
|
95
105
|
playingStreaks: Array<IPlayingStreak>;
|
|
96
106
|
notifications: Array<INotification>;
|
|
97
107
|
};
|
|
@@ -121,6 +131,7 @@ export type IQuery = {
|
|
|
121
131
|
getDummy: Scalars['String'];
|
|
122
132
|
fetchPlayerState: IPlayerState;
|
|
123
133
|
fetchFrensData: IFrensData;
|
|
134
|
+
fetchEnergy: IEnergy;
|
|
124
135
|
};
|
|
125
136
|
export type ISubscription = {
|
|
126
137
|
onDummy: Scalars['String'];
|
|
@@ -160,6 +171,8 @@ export type IResolversTypes = {
|
|
|
160
171
|
ActiveInviteCode: ResolverTypeWrapper<IActiveInviteCode>;
|
|
161
172
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
162
173
|
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
174
|
+
Energy: ResolverTypeWrapper<IEnergy>;
|
|
175
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
163
176
|
FarmingStatus: IFarmingStatus;
|
|
164
177
|
FarmingTask: ResolverTypeWrapper<IFarmingTask>;
|
|
165
178
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
@@ -182,6 +195,8 @@ export type IResolversParentTypes = {
|
|
|
182
195
|
ActiveInviteCode: IActiveInviteCode;
|
|
183
196
|
String: Scalars['String'];
|
|
184
197
|
Int: Scalars['Int'];
|
|
198
|
+
Energy: IEnergy;
|
|
199
|
+
Float: Scalars['Float'];
|
|
185
200
|
FarmingTask: IFarmingTask;
|
|
186
201
|
ID: Scalars['ID'];
|
|
187
202
|
FrensData: IFrensData;
|
|
@@ -203,6 +218,12 @@ export type IActiveInviteCodeResolvers<ContextType = any, ParentType extends IRe
|
|
|
203
218
|
maxUsagesLimit?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
204
219
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
205
220
|
};
|
|
221
|
+
export type IEnergyResolvers<ContextType = any, ParentType extends IResolversParentTypes['Energy'] = IResolversParentTypes['Energy']> = {
|
|
222
|
+
availableTapsNum?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
223
|
+
fullEnergyTapsNum?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
224
|
+
refillSpeedTapsPerMs?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
|
|
225
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
226
|
+
};
|
|
206
227
|
export type IFarmingTaskResolvers<ContextType = any, ParentType extends IResolversParentTypes['FarmingTask'] = IResolversParentTypes['FarmingTask']> = {
|
|
207
228
|
taskId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
208
229
|
status?: Resolver<IResolversTypes['FarmingStatus'], ParentType, ContextType>;
|
|
@@ -236,10 +257,11 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
236
257
|
markNotificationAsShown?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsShownArgs, 'notificationId'>>;
|
|
237
258
|
markNotificationAsRead?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsReadArgs, 'notificationId'>>;
|
|
238
259
|
markNotificationAsNew?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationMarkNotificationAsNewArgs, 'notificationId'>>;
|
|
260
|
+
registerTaps?: Resolver<IResolversTypes['Energy'], ParentType, ContextType, Partial<IMutationRegisterTapsArgs>>;
|
|
239
261
|
};
|
|
240
262
|
export type INotificationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Notification'] = IResolversParentTypes['Notification']> = {
|
|
241
263
|
notificationId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
242
|
-
status?: Resolver<IResolversTypes['
|
|
264
|
+
status?: Resolver<IResolversTypes['NotificationStatus'], ParentType, ContextType>;
|
|
243
265
|
text?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
244
266
|
createdAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
245
267
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -248,6 +270,7 @@ export type IPlayerStateResolvers<ContextType = any, ParentType extends IResolve
|
|
|
248
270
|
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
249
271
|
coins?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
250
272
|
farmingTask?: Resolver<Maybe<IResolversTypes['FarmingTask']>, ParentType, ContextType>;
|
|
273
|
+
energy?: Resolver<IResolversTypes['Energy'], ParentType, ContextType>;
|
|
251
274
|
playingStreaks?: Resolver<Array<IResolversTypes['PlayingStreak']>, ParentType, ContextType>;
|
|
252
275
|
notifications?: Resolver<Array<IResolversTypes['Notification']>, ParentType, ContextType>;
|
|
253
276
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
@@ -266,6 +289,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
266
289
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
267
290
|
fetchPlayerState?: Resolver<IResolversTypes['PlayerState'], ParentType, ContextType>;
|
|
268
291
|
fetchFrensData?: Resolver<IResolversTypes['FrensData'], ParentType, ContextType>;
|
|
292
|
+
fetchEnergy?: Resolver<IResolversTypes['Energy'], ParentType, ContextType>;
|
|
269
293
|
};
|
|
270
294
|
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
271
295
|
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
@@ -273,6 +297,7 @@ export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolv
|
|
|
273
297
|
};
|
|
274
298
|
export type IResolvers<ContextType = any> = {
|
|
275
299
|
ActiveInviteCode?: IActiveInviteCodeResolvers<ContextType>;
|
|
300
|
+
Energy?: IEnergyResolvers<ContextType>;
|
|
276
301
|
FarmingTask?: IFarmingTaskResolvers<ContextType>;
|
|
277
302
|
FrensData?: IFrensDataResolvers<ContextType>;
|
|
278
303
|
Friend?: IFriendResolvers<ContextType>;
|
package/build/index.d.ts
CHANGED
|
@@ -1390,6 +1390,13 @@ declare const schema: {
|
|
|
1390
1390
|
input: adminSchema.IAdminOpportunityInput;
|
|
1391
1391
|
file?: any;
|
|
1392
1392
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1393
|
+
useUpdateOpportunityArchivedStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateOpportunityArchivedStatusMutation, adminSchema.Exact<{
|
|
1394
|
+
id: string;
|
|
1395
|
+
isArchived: boolean;
|
|
1396
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateOpportunityArchivedStatusMutation, adminSchema.Exact<{
|
|
1397
|
+
id: string;
|
|
1398
|
+
isArchived: boolean;
|
|
1399
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1393
1400
|
useUpdateProfileStatusMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateProfileStatusMutation, adminSchema.Exact<{
|
|
1394
1401
|
userId: string;
|
|
1395
1402
|
isActive: boolean;
|
|
@@ -1745,6 +1752,7 @@ declare const schema: {
|
|
|
1745
1752
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<adminSchema.IFetchBlockchainsQuery, adminSchema.Exact<{
|
|
1746
1753
|
[key: string]: never;
|
|
1747
1754
|
}>>;
|
|
1755
|
+
ILocationType: typeof adminSchema.ILocationType;
|
|
1748
1756
|
ISortDirection: typeof adminSchema.ISortDirection;
|
|
1749
1757
|
CreateReferralTypeDocument: import("graphql").DocumentNode;
|
|
1750
1758
|
CreateTierDocument: import("graphql").DocumentNode;
|
|
@@ -1766,6 +1774,7 @@ declare const schema: {
|
|
|
1766
1774
|
UpdateCategoryDocument: import("graphql").DocumentNode;
|
|
1767
1775
|
UpdateCategoryArchivedStatusDocument: import("graphql").DocumentNode;
|
|
1768
1776
|
UpdateOpportunityDocument: import("graphql").DocumentNode;
|
|
1777
|
+
UpdateOpportunityArchivedStatusDocument: import("graphql").DocumentNode;
|
|
1769
1778
|
UpdateProfileStatusDocument: import("graphql").DocumentNode;
|
|
1770
1779
|
CheckInviteCodeDocument: import("graphql").DocumentNode;
|
|
1771
1780
|
FetchContactSupportPageDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
|
@@ -131,6 +131,7 @@ export type IAdminOpportunity = {
|
|
|
131
131
|
clicks?: Maybe<Scalars['Int']>;
|
|
132
132
|
views?: Maybe<Scalars['Int']>;
|
|
133
133
|
addedBy?: Maybe<Scalars['String']>;
|
|
134
|
+
archived?: Maybe<Scalars['Boolean']>;
|
|
134
135
|
};
|
|
135
136
|
|
|
136
137
|
export type IAdminOpportunityInput = {
|
|
@@ -390,6 +391,16 @@ export type IInvitesSortInput = {
|
|
|
390
391
|
sortByReferredUsers?: Maybe<ISort>;
|
|
391
392
|
};
|
|
392
393
|
|
|
394
|
+
export type ILocation = {
|
|
395
|
+
name: Scalars['String'];
|
|
396
|
+
type: ILocationType;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
export enum ILocationType {
|
|
400
|
+
Continent = 'CONTINENT',
|
|
401
|
+
Country = 'COUNTRY'
|
|
402
|
+
}
|
|
403
|
+
|
|
393
404
|
|
|
394
405
|
export type IMutation = {
|
|
395
406
|
setDummy: Scalars['String'];
|
|
@@ -405,6 +416,7 @@ export type IMutation = {
|
|
|
405
416
|
updateCategoryArchivedStatus: Scalars['Boolean'];
|
|
406
417
|
createAdminOpportunity: Scalars['Boolean'];
|
|
407
418
|
updateOpportunity: Scalars['Boolean'];
|
|
419
|
+
updateOpportunityArchivedStatus: Scalars['Boolean'];
|
|
408
420
|
triggerOpportunityNotification: Scalars['Boolean'];
|
|
409
421
|
createReferralType?: Maybe<Scalars['Boolean']>;
|
|
410
422
|
updateReferralType: Scalars['Boolean'];
|
|
@@ -493,6 +505,12 @@ export type IMutationUpdateOpportunityArgs = {
|
|
|
493
505
|
};
|
|
494
506
|
|
|
495
507
|
|
|
508
|
+
export type IMutationUpdateOpportunityArchivedStatusArgs = {
|
|
509
|
+
id: Scalars['ID'];
|
|
510
|
+
isArchived: Scalars['Boolean'];
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
|
|
496
514
|
export type IMutationTriggerOpportunityNotificationArgs = {
|
|
497
515
|
opportunityId: Scalars['ID'];
|
|
498
516
|
};
|
|
@@ -557,6 +575,7 @@ export type IMutationChangeXpPointsArgs = {
|
|
|
557
575
|
|
|
558
576
|
export type IOpportunitiesFilterInput = {
|
|
559
577
|
opportunityIdTerm?: Maybe<Scalars['String']>;
|
|
578
|
+
opportunityNameTerm?: Maybe<Scalars['String']>;
|
|
560
579
|
industryTerm?: Maybe<Scalars['String']>;
|
|
561
580
|
categoryTerm?: Maybe<Scalars['String']>;
|
|
562
581
|
opportunityLudoUrlTerm?: Maybe<Scalars['String']>;
|
|
@@ -626,6 +645,7 @@ export type IQuery = {
|
|
|
626
645
|
fetchRegistrationInvitePage: IRegistrationInvitePage;
|
|
627
646
|
fetchAdminInvitesPage: IInvitesPage;
|
|
628
647
|
checkInviteCode: ICheckInviteCodeData;
|
|
648
|
+
fetchLocations?: Maybe<Array<Maybe<ILocation>>>;
|
|
629
649
|
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
630
650
|
fetchAdminCategories: Array<IAdminCategory>;
|
|
631
651
|
fetchAdminCategoriesPage: ICategoriesPage;
|
|
@@ -703,6 +723,11 @@ export type IQueryCheckInviteCodeArgs = {
|
|
|
703
723
|
};
|
|
704
724
|
|
|
705
725
|
|
|
726
|
+
export type IQueryFetchLocationsArgs = {
|
|
727
|
+
term: Scalars['String'];
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
|
|
706
731
|
export type IQueryFetchAdminOpportunitiesPageArgs = {
|
|
707
732
|
filter: IOpportunitiesFilterInput;
|
|
708
733
|
sort: IOpportunitiesSortInput;
|
|
@@ -1104,6 +1129,8 @@ export type IResolversTypes = {
|
|
|
1104
1129
|
InvitesFilterInput: IInvitesFilterInput;
|
|
1105
1130
|
InvitesPage: ResolverTypeWrapper<IInvitesPage>;
|
|
1106
1131
|
InvitesSortInput: IInvitesSortInput;
|
|
1132
|
+
Location: ResolverTypeWrapper<ILocation>;
|
|
1133
|
+
LocationType: ILocationType;
|
|
1107
1134
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
1108
1135
|
Mutation: ResolverTypeWrapper<{}>;
|
|
1109
1136
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
@@ -1195,6 +1222,7 @@ export type IResolversParentTypes = {
|
|
|
1195
1222
|
InvitesFilterInput: IInvitesFilterInput;
|
|
1196
1223
|
InvitesPage: IInvitesPage;
|
|
1197
1224
|
InvitesSortInput: IInvitesSortInput;
|
|
1225
|
+
Location: ILocation;
|
|
1198
1226
|
Long: Scalars['Long'];
|
|
1199
1227
|
Mutation: {};
|
|
1200
1228
|
OpportunitiesFilterInput: IOpportunitiesFilterInput;
|
|
@@ -1373,6 +1401,7 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
|
|
|
1373
1401
|
clicks?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1374
1402
|
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1375
1403
|
addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1404
|
+
archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1376
1405
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1377
1406
|
};
|
|
1378
1407
|
|
|
@@ -1489,6 +1518,12 @@ export type IInvitesPageResolvers<ContextType = any, ParentType extends IResolve
|
|
|
1489
1518
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1490
1519
|
};
|
|
1491
1520
|
|
|
1521
|
+
export type ILocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Location'] = IResolversParentTypes['Location']> = {
|
|
1522
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1523
|
+
type?: Resolver<IResolversTypes['LocationType'], ParentType, ContextType>;
|
|
1524
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1492
1527
|
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
1493
1528
|
name: 'Long';
|
|
1494
1529
|
}
|
|
@@ -1507,6 +1542,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1507
1542
|
updateCategoryArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateCategoryArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1508
1543
|
createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
|
|
1509
1544
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1545
|
+
updateOpportunityArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1510
1546
|
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1511
1547
|
createReferralType?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationCreateReferralTypeArgs, 'input'>>;
|
|
1512
1548
|
updateReferralType?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateReferralTypeArgs, 'id' | 'input'>>;
|
|
@@ -1543,6 +1579,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1543
1579
|
fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1544
1580
|
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1545
1581
|
checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
|
|
1582
|
+
fetchLocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Location']>>>, ParentType, ContextType, RequireFields<IQueryFetchLocationsArgs, 'term'>>;
|
|
1546
1583
|
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1547
1584
|
fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
|
|
1548
1585
|
fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1682,6 +1719,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1682
1719
|
FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
|
|
1683
1720
|
InvestorInquiryPage?: IInvestorInquiryPageResolvers<ContextType>;
|
|
1684
1721
|
InvitesPage?: IInvitesPageResolvers<ContextType>;
|
|
1722
|
+
Location?: ILocationResolvers<ContextType>;
|
|
1685
1723
|
Long?: GraphQLScalarType;
|
|
1686
1724
|
Mutation?: IMutationResolvers<ContextType>;
|
|
1687
1725
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
@@ -1868,6 +1906,14 @@ export type IUpdateOpportunityMutationVariables = Exact<{
|
|
|
1868
1906
|
|
|
1869
1907
|
export type IUpdateOpportunityMutation = Pick<IMutation, 'updateOpportunity'>;
|
|
1870
1908
|
|
|
1909
|
+
export type IUpdateOpportunityArchivedStatusMutationVariables = Exact<{
|
|
1910
|
+
id: Scalars['ID'];
|
|
1911
|
+
isArchived: Scalars['Boolean'];
|
|
1912
|
+
}>;
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
export type IUpdateOpportunityArchivedStatusMutation = Pick<IMutation, 'updateOpportunityArchivedStatus'>;
|
|
1916
|
+
|
|
1871
1917
|
export type IUpdateProfileStatusMutationVariables = Exact<{
|
|
1872
1918
|
userId: Scalars['ID'];
|
|
1873
1919
|
isActive: Scalars['Boolean'];
|
|
@@ -2684,6 +2730,37 @@ export function useUpdateOpportunityMutation(baseOptions?: Apollo.MutationHookOp
|
|
|
2684
2730
|
export type UpdateOpportunityMutationHookResult = ReturnType<typeof useUpdateOpportunityMutation>;
|
|
2685
2731
|
export type UpdateOpportunityMutationResult = Apollo.MutationResult<IUpdateOpportunityMutation>;
|
|
2686
2732
|
export type UpdateOpportunityMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>;
|
|
2733
|
+
export const UpdateOpportunityArchivedStatusDocument = gql`
|
|
2734
|
+
mutation UpdateOpportunityArchivedStatus($id: ID!, $isArchived: Boolean!) {
|
|
2735
|
+
updateOpportunityArchivedStatus(id: $id, isArchived: $isArchived)
|
|
2736
|
+
}
|
|
2737
|
+
`;
|
|
2738
|
+
export type IUpdateOpportunityArchivedStatusMutationFn = Apollo.MutationFunction<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>;
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* __useUpdateOpportunityArchivedStatusMutation__
|
|
2742
|
+
*
|
|
2743
|
+
* To run a mutation, you first call `useUpdateOpportunityArchivedStatusMutation` within a React component and pass it any options that fit your needs.
|
|
2744
|
+
* When your component renders, `useUpdateOpportunityArchivedStatusMutation` returns a tuple that includes:
|
|
2745
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2746
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2747
|
+
*
|
|
2748
|
+
* @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;
|
|
2749
|
+
*
|
|
2750
|
+
* @example
|
|
2751
|
+
* const [updateOpportunityArchivedStatusMutation, { data, loading, error }] = useUpdateOpportunityArchivedStatusMutation({
|
|
2752
|
+
* variables: {
|
|
2753
|
+
* id: // value for 'id'
|
|
2754
|
+
* isArchived: // value for 'isArchived'
|
|
2755
|
+
* },
|
|
2756
|
+
* });
|
|
2757
|
+
*/
|
|
2758
|
+
export function useUpdateOpportunityArchivedStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>) {
|
|
2759
|
+
return Apollo.useMutation<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>(UpdateOpportunityArchivedStatusDocument, baseOptions);
|
|
2760
|
+
}
|
|
2761
|
+
export type UpdateOpportunityArchivedStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityArchivedStatusMutation>;
|
|
2762
|
+
export type UpdateOpportunityArchivedStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityArchivedStatusMutation>;
|
|
2763
|
+
export type UpdateOpportunityArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityArchivedStatusMutation, IUpdateOpportunityArchivedStatusMutationVariables>;
|
|
2687
2764
|
export const UpdateProfileStatusDocument = gql`
|
|
2688
2765
|
mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
|
|
2689
2766
|
updateProfileStatus(userId: $userId, isActive: $isActive)
|
|
@@ -61,7 +61,6 @@ export type IMutation = {
|
|
|
61
61
|
updateOpportunity: Scalars['Boolean'];
|
|
62
62
|
likeOpportunity: Scalars['Boolean'];
|
|
63
63
|
dislikeOpportunity: Scalars['Boolean'];
|
|
64
|
-
testNotifyUser: Scalars['Boolean'];
|
|
65
64
|
};
|
|
66
65
|
|
|
67
66
|
|
|
@@ -117,13 +116,6 @@ export type IMutationDislikeOpportunityArgs = {
|
|
|
117
116
|
opportunityId: Scalars['String'];
|
|
118
117
|
};
|
|
119
118
|
|
|
120
|
-
|
|
121
|
-
export type IMutationTestNotifyUserArgs = {
|
|
122
|
-
blockchain?: Maybe<Scalars['String']>;
|
|
123
|
-
address?: Maybe<Scalars['String']>;
|
|
124
|
-
opportunityId?: Maybe<Scalars['ID']>;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
119
|
export type IOpportunitiesPage = {
|
|
128
120
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
129
121
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -408,7 +400,6 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
408
400
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'opportunityId' | 'input'>>;
|
|
409
401
|
likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
|
|
410
402
|
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
411
|
-
testNotifyUser?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, Partial<IMutationTestNotifyUserArgs>>;
|
|
412
403
|
};
|
|
413
404
|
|
|
414
405
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|