@ludo.ninja/api 2.8.71 → 2.8.73
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 +183 -0
- package/build/graphql_tools/__generated__/adminHost/schema.js +133 -2
- package/build/graphql_tools/__generated__/tapHost/schema.d.ts +525 -0
- package/build/graphql_tools/__generated__/tapHost/schema.js +315 -0
- package/build/index.d.ts +44 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +230 -0
- package/src/graphql_tools/__generated__/tapHost/schema.ts +698 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -367,6 +367,8 @@ export type IMutation = {
|
|
|
367
367
|
updateOpportunity: Scalars['Boolean'];
|
|
368
368
|
triggerOpportunityNotification: Scalars['Boolean'];
|
|
369
369
|
updateTier: Scalars['Boolean'];
|
|
370
|
+
createTier: Scalars['Boolean'];
|
|
371
|
+
updateTierArchivedStatus: Scalars['Boolean'];
|
|
370
372
|
updateProfileStatus: Scalars['Boolean'];
|
|
371
373
|
removeSuggestedOpportunity: Scalars['Boolean'];
|
|
372
374
|
addSuggestedOpportunity: Scalars['Boolean'];
|
|
@@ -428,6 +430,13 @@ export type IMutationUpdateTierArgs = {
|
|
|
428
430
|
id: Scalars['ID'];
|
|
429
431
|
input: ITierInput;
|
|
430
432
|
};
|
|
433
|
+
export type IMutationCreateTierArgs = {
|
|
434
|
+
input: ITierInput;
|
|
435
|
+
};
|
|
436
|
+
export type IMutationUpdateTierArchivedStatusArgs = {
|
|
437
|
+
id: Scalars['ID'];
|
|
438
|
+
isArchived: Scalars['Boolean'];
|
|
439
|
+
};
|
|
431
440
|
export type IMutationUpdateProfileStatusArgs = {
|
|
432
441
|
userId: Scalars['ID'];
|
|
433
442
|
isActive: Scalars['Boolean'];
|
|
@@ -517,6 +526,7 @@ export type IQuery = {
|
|
|
517
526
|
fetchBlockchains: Array<Scalars['String']>;
|
|
518
527
|
fetchAdminReferralsPage: IReferralsPage;
|
|
519
528
|
fetchTiers: Array<ITier>;
|
|
529
|
+
fetchTiersPage: ITiersPage;
|
|
520
530
|
fetchAdminUsersPage: IUsersPage;
|
|
521
531
|
fetchAdminXpPage: IXpPage;
|
|
522
532
|
};
|
|
@@ -583,6 +593,11 @@ export type IQueryFetchAdminReferralsPageArgs = {
|
|
|
583
593
|
sort: IReferralsSortInput;
|
|
584
594
|
page: IAdminPageInput;
|
|
585
595
|
};
|
|
596
|
+
export type IQueryFetchTiersPageArgs = {
|
|
597
|
+
filter: ITiersFilterInput;
|
|
598
|
+
sort: ITiersSortInput;
|
|
599
|
+
page: IAdminPageInput;
|
|
600
|
+
};
|
|
586
601
|
export type IQueryFetchAdminUsersPageArgs = {
|
|
587
602
|
filter: IUsersFilterInput;
|
|
588
603
|
sort: IUsersSortInput;
|
|
@@ -646,10 +661,26 @@ export type ITier = {
|
|
|
646
661
|
id: Scalars['String'];
|
|
647
662
|
name: Scalars['String'];
|
|
648
663
|
description?: Maybe<Scalars['String']>;
|
|
664
|
+
fee?: Maybe<Scalars['Float']>;
|
|
665
|
+
archived?: Maybe<Scalars['Boolean']>;
|
|
649
666
|
};
|
|
650
667
|
export type ITierInput = {
|
|
651
668
|
name: Scalars['String'];
|
|
652
669
|
description?: Maybe<Scalars['String']>;
|
|
670
|
+
fee?: Maybe<Scalars['Float']>;
|
|
671
|
+
};
|
|
672
|
+
export type ITiersFilterInput = {
|
|
673
|
+
nameTerm?: Maybe<Scalars['String']>;
|
|
674
|
+
descriptionTerm?: Maybe<Scalars['String']>;
|
|
675
|
+
feeTerm?: Maybe<Scalars['String']>;
|
|
676
|
+
};
|
|
677
|
+
export type ITiersPage = {
|
|
678
|
+
tiers: Array<ITier>;
|
|
679
|
+
nextPage?: Maybe<IAdminPage>;
|
|
680
|
+
};
|
|
681
|
+
export type ITiersSortInput = {
|
|
682
|
+
sortByName?: Maybe<ISort>;
|
|
683
|
+
sortByFee?: Maybe<ISort>;
|
|
653
684
|
};
|
|
654
685
|
export type IUserFeedback = {
|
|
655
686
|
id: Scalars['String'];
|
|
@@ -830,6 +861,9 @@ export type IResolversTypes = {
|
|
|
830
861
|
SortDirection: ISortDirection;
|
|
831
862
|
Tier: ResolverTypeWrapper<ITier>;
|
|
832
863
|
TierInput: ITierInput;
|
|
864
|
+
TiersFilterInput: ITiersFilterInput;
|
|
865
|
+
TiersPage: ResolverTypeWrapper<ITiersPage>;
|
|
866
|
+
TiersSortInput: ITiersSortInput;
|
|
833
867
|
Upload: ResolverTypeWrapper<Scalars['Upload']>;
|
|
834
868
|
UserFeedback: ResolverTypeWrapper<IUserFeedback>;
|
|
835
869
|
UserFeedbackFilterInput: IUserFeedbackFilterInput;
|
|
@@ -910,6 +944,9 @@ export type IResolversParentTypes = {
|
|
|
910
944
|
Sort: ISort;
|
|
911
945
|
Tier: ITier;
|
|
912
946
|
TierInput: ITierInput;
|
|
947
|
+
TiersFilterInput: ITiersFilterInput;
|
|
948
|
+
TiersPage: ITiersPage;
|
|
949
|
+
TiersSortInput: ITiersSortInput;
|
|
913
950
|
Upload: Scalars['Upload'];
|
|
914
951
|
UserFeedback: IUserFeedback;
|
|
915
952
|
UserFeedbackFilterInput: IUserFeedbackFilterInput;
|
|
@@ -1163,6 +1200,8 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1163
1200
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1164
1201
|
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1165
1202
|
updateTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateTierArgs, 'id' | 'input'>>;
|
|
1203
|
+
createTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateTierArgs, 'input'>>;
|
|
1204
|
+
updateTierArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateTierArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1166
1205
|
updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
|
|
1167
1206
|
removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
1168
1207
|
addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
@@ -1197,6 +1236,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1197
1236
|
fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1198
1237
|
fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1199
1238
|
fetchTiers?: Resolver<Array<IResolversTypes['Tier']>, ParentType, ContextType>;
|
|
1239
|
+
fetchTiersPage?: Resolver<IResolversTypes['TiersPage'], ParentType, ContextType, RequireFields<IQueryFetchTiersPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1200
1240
|
fetchAdminUsersPage?: Resolver<IResolversTypes['UsersPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminUsersPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1201
1241
|
fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1202
1242
|
};
|
|
@@ -1227,6 +1267,13 @@ export type ITierResolvers<ContextType = any, ParentType extends IResolversParen
|
|
|
1227
1267
|
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1228
1268
|
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1229
1269
|
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1270
|
+
fee?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1271
|
+
archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1272
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1273
|
+
};
|
|
1274
|
+
export type ITiersPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['TiersPage'] = IResolversParentTypes['TiersPage']> = {
|
|
1275
|
+
tiers?: Resolver<Array<IResolversTypes['Tier']>, ParentType, ContextType>;
|
|
1276
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1230
1277
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1231
1278
|
};
|
|
1232
1279
|
export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
|
|
@@ -1299,6 +1346,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1299
1346
|
RegistrationInvite?: IRegistrationInviteResolvers<ContextType>;
|
|
1300
1347
|
RegistrationInvitePage?: IRegistrationInvitePageResolvers<ContextType>;
|
|
1301
1348
|
Tier?: ITierResolvers<ContextType>;
|
|
1349
|
+
TiersPage?: ITiersPageResolvers<ContextType>;
|
|
1302
1350
|
Upload?: GraphQLScalarType;
|
|
1303
1351
|
UserFeedback?: IUserFeedbackResolvers<ContextType>;
|
|
1304
1352
|
UserFeedbackPage?: IUserFeedbackPageResolvers<ContextType>;
|
|
@@ -1311,6 +1359,10 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
1311
1359
|
Range?: IRangeDirectiveResolver<any, any, ContextType>;
|
|
1312
1360
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
1313
1361
|
};
|
|
1362
|
+
export type ICreateTierMutationVariables = Exact<{
|
|
1363
|
+
input: ITierInput;
|
|
1364
|
+
}>;
|
|
1365
|
+
export type ICreateTierMutation = Pick<IMutation, 'createTier'>;
|
|
1314
1366
|
export type ITriggerOpportunityNotificationMutationVariables = Exact<{
|
|
1315
1367
|
opportunityId: Scalars['ID'];
|
|
1316
1368
|
}>;
|
|
@@ -1325,6 +1377,11 @@ export type IUpdateOpportunityPushStatusMutationVariables = Exact<{
|
|
|
1325
1377
|
isActive: Scalars['Boolean'];
|
|
1326
1378
|
}>;
|
|
1327
1379
|
export type IUpdateOpportunityPushStatusMutation = Pick<IMutation, 'updateOpportunityPushStatus'>;
|
|
1380
|
+
export type IUpdateTierMutationVariables = Exact<{
|
|
1381
|
+
id: Scalars['ID'];
|
|
1382
|
+
input: ITierInput;
|
|
1383
|
+
}>;
|
|
1384
|
+
export type IUpdateTierMutation = Pick<IMutation, 'updateTier'>;
|
|
1328
1385
|
export type IChangeXpPointsMutationVariables = Exact<{
|
|
1329
1386
|
userId: Scalars['ID'];
|
|
1330
1387
|
pointsDiff: Scalars['Int'];
|
|
@@ -1458,6 +1515,23 @@ export type IFetchRegistrationInvitePageQuery = {
|
|
|
1458
1515
|
nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
|
|
1459
1516
|
};
|
|
1460
1517
|
};
|
|
1518
|
+
export type IFetchTiersQueryVariables = Exact<{
|
|
1519
|
+
[key: string]: never;
|
|
1520
|
+
}>;
|
|
1521
|
+
export type IFetchTiersQuery = {
|
|
1522
|
+
fetchTiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>>;
|
|
1523
|
+
};
|
|
1524
|
+
export type IFetchTiersPageQueryVariables = Exact<{
|
|
1525
|
+
filter: ITiersFilterInput;
|
|
1526
|
+
sort: ITiersSortInput;
|
|
1527
|
+
page: IAdminPageInput;
|
|
1528
|
+
}>;
|
|
1529
|
+
export type IFetchTiersPageQuery = {
|
|
1530
|
+
fetchTiersPage: {
|
|
1531
|
+
tiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>>;
|
|
1532
|
+
nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
|
|
1533
|
+
};
|
|
1534
|
+
};
|
|
1461
1535
|
export type IFetchUserFeedbackPageQueryVariables = Exact<{
|
|
1462
1536
|
filter: IUserFeedbackFilterInput;
|
|
1463
1537
|
sort: IUserFeedbackSortInput;
|
|
@@ -1572,6 +1646,31 @@ export type IFetchBlockchainsQueryVariables = Exact<{
|
|
|
1572
1646
|
[key: string]: never;
|
|
1573
1647
|
}>;
|
|
1574
1648
|
export type IFetchBlockchainsQuery = Pick<IQuery, 'fetchBlockchains'>;
|
|
1649
|
+
export declare const CreateTierDocument: Apollo.DocumentNode;
|
|
1650
|
+
export type ICreateTierMutationFn = Apollo.MutationFunction<ICreateTierMutation, ICreateTierMutationVariables>;
|
|
1651
|
+
/**
|
|
1652
|
+
* __useCreateTierMutation__
|
|
1653
|
+
*
|
|
1654
|
+
* To run a mutation, you first call `useCreateTierMutation` within a React component and pass it any options that fit your needs.
|
|
1655
|
+
* When your component renders, `useCreateTierMutation` returns a tuple that includes:
|
|
1656
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1657
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1658
|
+
*
|
|
1659
|
+
* @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;
|
|
1660
|
+
*
|
|
1661
|
+
* @example
|
|
1662
|
+
* const [createTierMutation, { data, loading, error }] = useCreateTierMutation({
|
|
1663
|
+
* variables: {
|
|
1664
|
+
* input: // value for 'input'
|
|
1665
|
+
* },
|
|
1666
|
+
* });
|
|
1667
|
+
*/
|
|
1668
|
+
export declare function useCreateTierMutation(baseOptions?: Apollo.MutationHookOptions<ICreateTierMutation, ICreateTierMutationVariables>): Apollo.MutationTuple<ICreateTierMutation, Exact<{
|
|
1669
|
+
input: ITierInput;
|
|
1670
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1671
|
+
export type CreateTierMutationHookResult = ReturnType<typeof useCreateTierMutation>;
|
|
1672
|
+
export type CreateTierMutationResult = Apollo.MutationResult<ICreateTierMutation>;
|
|
1673
|
+
export type CreateTierMutationOptions = Apollo.BaseMutationOptions<ICreateTierMutation, ICreateTierMutationVariables>;
|
|
1575
1674
|
export declare const TriggerOpportunityNotificationDocument: Apollo.DocumentNode;
|
|
1576
1675
|
export type ITriggerOpportunityNotificationMutationFn = Apollo.MutationFunction<ITriggerOpportunityNotificationMutation, ITriggerOpportunityNotificationMutationVariables>;
|
|
1577
1676
|
/**
|
|
@@ -1651,6 +1750,33 @@ export declare function useUpdateOpportunityPushStatusMutation(baseOptions?: Apo
|
|
|
1651
1750
|
export type UpdateOpportunityPushStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityPushStatusMutation>;
|
|
1652
1751
|
export type UpdateOpportunityPushStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityPushStatusMutation>;
|
|
1653
1752
|
export type UpdateOpportunityPushStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityPushStatusMutation, IUpdateOpportunityPushStatusMutationVariables>;
|
|
1753
|
+
export declare const UpdateTierDocument: Apollo.DocumentNode;
|
|
1754
|
+
export type IUpdateTierMutationFn = Apollo.MutationFunction<IUpdateTierMutation, IUpdateTierMutationVariables>;
|
|
1755
|
+
/**
|
|
1756
|
+
* __useUpdateTierMutation__
|
|
1757
|
+
*
|
|
1758
|
+
* To run a mutation, you first call `useUpdateTierMutation` within a React component and pass it any options that fit your needs.
|
|
1759
|
+
* When your component renders, `useUpdateTierMutation` returns a tuple that includes:
|
|
1760
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1761
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1762
|
+
*
|
|
1763
|
+
* @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;
|
|
1764
|
+
*
|
|
1765
|
+
* @example
|
|
1766
|
+
* const [updateTierMutation, { data, loading, error }] = useUpdateTierMutation({
|
|
1767
|
+
* variables: {
|
|
1768
|
+
* id: // value for 'id'
|
|
1769
|
+
* input: // value for 'input'
|
|
1770
|
+
* },
|
|
1771
|
+
* });
|
|
1772
|
+
*/
|
|
1773
|
+
export declare function useUpdateTierMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateTierMutation, IUpdateTierMutationVariables>): Apollo.MutationTuple<IUpdateTierMutation, Exact<{
|
|
1774
|
+
id: string;
|
|
1775
|
+
input: ITierInput;
|
|
1776
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1777
|
+
export type UpdateTierMutationHookResult = ReturnType<typeof useUpdateTierMutation>;
|
|
1778
|
+
export type UpdateTierMutationResult = Apollo.MutationResult<IUpdateTierMutation>;
|
|
1779
|
+
export type UpdateTierMutationOptions = Apollo.BaseMutationOptions<IUpdateTierMutation, IUpdateTierMutationVariables>;
|
|
1654
1780
|
export declare const ChangeXpPointsDocument: Apollo.DocumentNode;
|
|
1655
1781
|
export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
1656
1782
|
/**
|
|
@@ -2195,6 +2321,63 @@ export declare function useFetchRegistrationInvitePageLazyQuery(baseOptions?: Ap
|
|
|
2195
2321
|
export type FetchRegistrationInvitePageQueryHookResult = ReturnType<typeof useFetchRegistrationInvitePageQuery>;
|
|
2196
2322
|
export type FetchRegistrationInvitePageLazyQueryHookResult = ReturnType<typeof useFetchRegistrationInvitePageLazyQuery>;
|
|
2197
2323
|
export type FetchRegistrationInvitePageQueryResult = Apollo.QueryResult<IFetchRegistrationInvitePageQuery, IFetchRegistrationInvitePageQueryVariables>;
|
|
2324
|
+
export declare const FetchTiersDocument: Apollo.DocumentNode;
|
|
2325
|
+
/**
|
|
2326
|
+
* __useFetchTiersQuery__
|
|
2327
|
+
*
|
|
2328
|
+
* To run a query within a React component, call `useFetchTiersQuery` and pass it any options that fit your needs.
|
|
2329
|
+
* When your component renders, `useFetchTiersQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2330
|
+
* you can use to render your UI.
|
|
2331
|
+
*
|
|
2332
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2333
|
+
*
|
|
2334
|
+
* @example
|
|
2335
|
+
* const { data, loading, error } = useFetchTiersQuery({
|
|
2336
|
+
* variables: {
|
|
2337
|
+
* },
|
|
2338
|
+
* });
|
|
2339
|
+
*/
|
|
2340
|
+
export declare function useFetchTiersQuery(baseOptions?: Apollo.QueryHookOptions<IFetchTiersQuery, IFetchTiersQueryVariables>): Apollo.QueryResult<IFetchTiersQuery, Exact<{
|
|
2341
|
+
[key: string]: never;
|
|
2342
|
+
}>>;
|
|
2343
|
+
export declare function useFetchTiersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchTiersQuery, IFetchTiersQueryVariables>): Apollo.LazyQueryResultTuple<IFetchTiersQuery, Exact<{
|
|
2344
|
+
[key: string]: never;
|
|
2345
|
+
}>>;
|
|
2346
|
+
export type FetchTiersQueryHookResult = ReturnType<typeof useFetchTiersQuery>;
|
|
2347
|
+
export type FetchTiersLazyQueryHookResult = ReturnType<typeof useFetchTiersLazyQuery>;
|
|
2348
|
+
export type FetchTiersQueryResult = Apollo.QueryResult<IFetchTiersQuery, IFetchTiersQueryVariables>;
|
|
2349
|
+
export declare const FetchTiersPageDocument: Apollo.DocumentNode;
|
|
2350
|
+
/**
|
|
2351
|
+
* __useFetchTiersPageQuery__
|
|
2352
|
+
*
|
|
2353
|
+
* To run a query within a React component, call `useFetchTiersPageQuery` and pass it any options that fit your needs.
|
|
2354
|
+
* When your component renders, `useFetchTiersPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2355
|
+
* you can use to render your UI.
|
|
2356
|
+
*
|
|
2357
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
2358
|
+
*
|
|
2359
|
+
* @example
|
|
2360
|
+
* const { data, loading, error } = useFetchTiersPageQuery({
|
|
2361
|
+
* variables: {
|
|
2362
|
+
* filter: // value for 'filter'
|
|
2363
|
+
* sort: // value for 'sort'
|
|
2364
|
+
* page: // value for 'page'
|
|
2365
|
+
* },
|
|
2366
|
+
* });
|
|
2367
|
+
*/
|
|
2368
|
+
export declare function useFetchTiersPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>): Apollo.QueryResult<IFetchTiersPageQuery, Exact<{
|
|
2369
|
+
filter: ITiersFilterInput;
|
|
2370
|
+
sort: ITiersSortInput;
|
|
2371
|
+
page: IAdminPageInput;
|
|
2372
|
+
}>>;
|
|
2373
|
+
export declare function useFetchTiersPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>): Apollo.LazyQueryResultTuple<IFetchTiersPageQuery, Exact<{
|
|
2374
|
+
filter: ITiersFilterInput;
|
|
2375
|
+
sort: ITiersSortInput;
|
|
2376
|
+
page: IAdminPageInput;
|
|
2377
|
+
}>>;
|
|
2378
|
+
export type FetchTiersPageQueryHookResult = ReturnType<typeof useFetchTiersPageQuery>;
|
|
2379
|
+
export type FetchTiersPageLazyQueryHookResult = ReturnType<typeof useFetchTiersPageLazyQuery>;
|
|
2380
|
+
export type FetchTiersPageQueryResult = Apollo.QueryResult<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>;
|
|
2198
2381
|
export declare const FetchUserFeedbackPageDocument: Apollo.DocumentNode;
|
|
2199
2382
|
/**
|
|
2200
2383
|
* __useFetchUserFeedbackPageQuery__
|
|
@@ -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.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 = 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.useFetchRegistrationInvitePageLazyQuery = exports.useFetchRegistrationInvitePageQuery = void 0;
|
|
26
|
+
exports.useFetchInvestorInquiryPageLazyQuery = exports.useFetchInvestorInquiryPageQuery = exports.FetchInvestorInquiryPageDocument = exports.useFetchFormOpportunityPageLazyQuery = exports.useFetchFormOpportunityPageQuery = exports.FetchFormOpportunityPageDocument = exports.useFetchContentReportPageLazyQuery = exports.useFetchContentReportPageQuery = exports.FetchContentReportPageDocument = exports.useFetchContactSupportPageLazyQuery = exports.useFetchContactSupportPageQuery = exports.FetchContactSupportPageDocument = exports.useCheckInviteCodeLazyQuery = exports.useCheckInviteCodeQuery = exports.CheckInviteCodeDocument = exports.useUpdateProfileStatusMutation = exports.UpdateProfileStatusDocument = 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.useUpdateTierMutation = exports.UpdateTierDocument = exports.useUpdateOpportunityPushStatusMutation = exports.UpdateOpportunityPushStatusDocument = exports.useUpdateInviteCodeUsagesLimitMutation = exports.UpdateInviteCodeUsagesLimitDocument = exports.useTriggerOpportunityNotificationMutation = exports.TriggerOpportunityNotificationDocument = exports.useCreateTierMutation = exports.CreateTierDocument = exports.ISortDirection = void 0;
|
|
27
|
+
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 = 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.useFetchPartnershipInquiryPageLazyQuery = exports.useFetchPartnershipInquiryPageQuery = exports.FetchPartnershipInquiryPageDocument = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
/** front-end asked for lower case values */
|
|
@@ -33,6 +33,32 @@ var ISortDirection;
|
|
|
33
33
|
ISortDirection["Asc"] = "asc";
|
|
34
34
|
ISortDirection["Desc"] = "desc";
|
|
35
35
|
})(ISortDirection || (exports.ISortDirection = ISortDirection = {}));
|
|
36
|
+
exports.CreateTierDocument = (0, client_1.gql) `
|
|
37
|
+
mutation CreateTier($input: TierInput!) {
|
|
38
|
+
createTier(input: $input)
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
/**
|
|
42
|
+
* __useCreateTierMutation__
|
|
43
|
+
*
|
|
44
|
+
* To run a mutation, you first call `useCreateTierMutation` within a React component and pass it any options that fit your needs.
|
|
45
|
+
* When your component renders, `useCreateTierMutation` returns a tuple that includes:
|
|
46
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
47
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
48
|
+
*
|
|
49
|
+
* @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;
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* const [createTierMutation, { data, loading, error }] = useCreateTierMutation({
|
|
53
|
+
* variables: {
|
|
54
|
+
* input: // value for 'input'
|
|
55
|
+
* },
|
|
56
|
+
* });
|
|
57
|
+
*/
|
|
58
|
+
function useCreateTierMutation(baseOptions) {
|
|
59
|
+
return Apollo.useMutation(exports.CreateTierDocument, baseOptions);
|
|
60
|
+
}
|
|
61
|
+
exports.useCreateTierMutation = useCreateTierMutation;
|
|
36
62
|
exports.TriggerOpportunityNotificationDocument = (0, client_1.gql) `
|
|
37
63
|
mutation TriggerOpportunityNotification($opportunityId: ID!) {
|
|
38
64
|
triggerOpportunityNotification(opportunityId: $opportunityId)
|
|
@@ -113,6 +139,33 @@ function useUpdateOpportunityPushStatusMutation(baseOptions) {
|
|
|
113
139
|
return Apollo.useMutation(exports.UpdateOpportunityPushStatusDocument, baseOptions);
|
|
114
140
|
}
|
|
115
141
|
exports.useUpdateOpportunityPushStatusMutation = useUpdateOpportunityPushStatusMutation;
|
|
142
|
+
exports.UpdateTierDocument = (0, client_1.gql) `
|
|
143
|
+
mutation UpdateTier($id: ID!, $input: TierInput!) {
|
|
144
|
+
updateTier(id: $id, input: $input)
|
|
145
|
+
}
|
|
146
|
+
`;
|
|
147
|
+
/**
|
|
148
|
+
* __useUpdateTierMutation__
|
|
149
|
+
*
|
|
150
|
+
* To run a mutation, you first call `useUpdateTierMutation` within a React component and pass it any options that fit your needs.
|
|
151
|
+
* When your component renders, `useUpdateTierMutation` returns a tuple that includes:
|
|
152
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
153
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
154
|
+
*
|
|
155
|
+
* @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;
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* const [updateTierMutation, { data, loading, error }] = useUpdateTierMutation({
|
|
159
|
+
* variables: {
|
|
160
|
+
* id: // value for 'id'
|
|
161
|
+
* input: // value for 'input'
|
|
162
|
+
* },
|
|
163
|
+
* });
|
|
164
|
+
*/
|
|
165
|
+
function useUpdateTierMutation(baseOptions) {
|
|
166
|
+
return Apollo.useMutation(exports.UpdateTierDocument, baseOptions);
|
|
167
|
+
}
|
|
168
|
+
exports.useUpdateTierMutation = useUpdateTierMutation;
|
|
116
169
|
exports.ChangeXpPointsDocument = (0, client_1.gql) `
|
|
117
170
|
mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
|
|
118
171
|
changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)
|
|
@@ -766,6 +819,84 @@ function useFetchRegistrationInvitePageLazyQuery(baseOptions) {
|
|
|
766
819
|
return Apollo.useLazyQuery(exports.FetchRegistrationInvitePageDocument, baseOptions);
|
|
767
820
|
}
|
|
768
821
|
exports.useFetchRegistrationInvitePageLazyQuery = useFetchRegistrationInvitePageLazyQuery;
|
|
822
|
+
exports.FetchTiersDocument = (0, client_1.gql) `
|
|
823
|
+
query FetchTiers {
|
|
824
|
+
fetchTiers {
|
|
825
|
+
id
|
|
826
|
+
name
|
|
827
|
+
description
|
|
828
|
+
fee
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
`;
|
|
832
|
+
/**
|
|
833
|
+
* __useFetchTiersQuery__
|
|
834
|
+
*
|
|
835
|
+
* To run a query within a React component, call `useFetchTiersQuery` and pass it any options that fit your needs.
|
|
836
|
+
* When your component renders, `useFetchTiersQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
837
|
+
* you can use to render your UI.
|
|
838
|
+
*
|
|
839
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
840
|
+
*
|
|
841
|
+
* @example
|
|
842
|
+
* const { data, loading, error } = useFetchTiersQuery({
|
|
843
|
+
* variables: {
|
|
844
|
+
* },
|
|
845
|
+
* });
|
|
846
|
+
*/
|
|
847
|
+
function useFetchTiersQuery(baseOptions) {
|
|
848
|
+
return Apollo.useQuery(exports.FetchTiersDocument, baseOptions);
|
|
849
|
+
}
|
|
850
|
+
exports.useFetchTiersQuery = useFetchTiersQuery;
|
|
851
|
+
function useFetchTiersLazyQuery(baseOptions) {
|
|
852
|
+
return Apollo.useLazyQuery(exports.FetchTiersDocument, baseOptions);
|
|
853
|
+
}
|
|
854
|
+
exports.useFetchTiersLazyQuery = useFetchTiersLazyQuery;
|
|
855
|
+
exports.FetchTiersPageDocument = (0, client_1.gql) `
|
|
856
|
+
query FetchTiersPage($filter: TiersFilterInput!, $sort: TiersSortInput!, $page: AdminPageInput!) {
|
|
857
|
+
fetchTiersPage(filter: $filter, sort: $sort, page: $page) {
|
|
858
|
+
tiers {
|
|
859
|
+
id
|
|
860
|
+
name
|
|
861
|
+
description
|
|
862
|
+
fee
|
|
863
|
+
}
|
|
864
|
+
nextPage {
|
|
865
|
+
elements
|
|
866
|
+
lastNum
|
|
867
|
+
num
|
|
868
|
+
size
|
|
869
|
+
token
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
`;
|
|
874
|
+
/**
|
|
875
|
+
* __useFetchTiersPageQuery__
|
|
876
|
+
*
|
|
877
|
+
* To run a query within a React component, call `useFetchTiersPageQuery` and pass it any options that fit your needs.
|
|
878
|
+
* When your component renders, `useFetchTiersPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
879
|
+
* you can use to render your UI.
|
|
880
|
+
*
|
|
881
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
882
|
+
*
|
|
883
|
+
* @example
|
|
884
|
+
* const { data, loading, error } = useFetchTiersPageQuery({
|
|
885
|
+
* variables: {
|
|
886
|
+
* filter: // value for 'filter'
|
|
887
|
+
* sort: // value for 'sort'
|
|
888
|
+
* page: // value for 'page'
|
|
889
|
+
* },
|
|
890
|
+
* });
|
|
891
|
+
*/
|
|
892
|
+
function useFetchTiersPageQuery(baseOptions) {
|
|
893
|
+
return Apollo.useQuery(exports.FetchTiersPageDocument, baseOptions);
|
|
894
|
+
}
|
|
895
|
+
exports.useFetchTiersPageQuery = useFetchTiersPageQuery;
|
|
896
|
+
function useFetchTiersPageLazyQuery(baseOptions) {
|
|
897
|
+
return Apollo.useLazyQuery(exports.FetchTiersPageDocument, baseOptions);
|
|
898
|
+
}
|
|
899
|
+
exports.useFetchTiersPageLazyQuery = useFetchTiersPageLazyQuery;
|
|
769
900
|
exports.FetchUserFeedbackPageDocument = (0, client_1.gql) `
|
|
770
901
|
query FetchUserFeedbackPage($filter: UserFeedbackFilterInput!, $sort: UserFeedbackSortInput!, $page: AdminPageInput!) {
|
|
771
902
|
fetchUserFeedbackPage(filter: $filter, sort: $sort, page: $page) {
|