@ludo.ninja/api 2.8.70 → 2.8.72
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 +203 -0
- package/build/graphql_tools/__generated__/adminHost/schema.js +133 -2
- package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +67 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +64 -1
- package/build/index.d.ts +68 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +253 -0
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +80 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -366,6 +366,8 @@ export type IMutation = {
|
|
|
366
366
|
createAdminOpportunity: Scalars['Boolean'];
|
|
367
367
|
updateOpportunity: Scalars['Boolean'];
|
|
368
368
|
triggerOpportunityNotification: Scalars['Boolean'];
|
|
369
|
+
updateTier: Scalars['Boolean'];
|
|
370
|
+
createTier: Scalars['Boolean'];
|
|
369
371
|
updateProfileStatus: Scalars['Boolean'];
|
|
370
372
|
removeSuggestedOpportunity: Scalars['Boolean'];
|
|
371
373
|
addSuggestedOpportunity: Scalars['Boolean'];
|
|
@@ -423,6 +425,13 @@ export type IMutationUpdateOpportunityArgs = {
|
|
|
423
425
|
export type IMutationTriggerOpportunityNotificationArgs = {
|
|
424
426
|
opportunityId: Scalars['ID'];
|
|
425
427
|
};
|
|
428
|
+
export type IMutationUpdateTierArgs = {
|
|
429
|
+
id: Scalars['ID'];
|
|
430
|
+
input: ITierInput;
|
|
431
|
+
};
|
|
432
|
+
export type IMutationCreateTierArgs = {
|
|
433
|
+
input: ITierInput;
|
|
434
|
+
};
|
|
426
435
|
export type IMutationUpdateProfileStatusArgs = {
|
|
427
436
|
userId: Scalars['ID'];
|
|
428
437
|
isActive: Scalars['Boolean'];
|
|
@@ -511,6 +520,8 @@ export type IQuery = {
|
|
|
511
520
|
fetchAdminBrandsPage: IBrandsPage;
|
|
512
521
|
fetchBlockchains: Array<Scalars['String']>;
|
|
513
522
|
fetchAdminReferralsPage: IReferralsPage;
|
|
523
|
+
fetchTiers: Array<ITier>;
|
|
524
|
+
fetchTiersPage: ITiersPage;
|
|
514
525
|
fetchAdminUsersPage: IUsersPage;
|
|
515
526
|
fetchAdminXpPage: IXpPage;
|
|
516
527
|
};
|
|
@@ -577,6 +588,11 @@ export type IQueryFetchAdminReferralsPageArgs = {
|
|
|
577
588
|
sort: IReferralsSortInput;
|
|
578
589
|
page: IAdminPageInput;
|
|
579
590
|
};
|
|
591
|
+
export type IQueryFetchTiersPageArgs = {
|
|
592
|
+
filter: ITiersFilterInput;
|
|
593
|
+
sort: ITiersSortInput;
|
|
594
|
+
page: IAdminPageInput;
|
|
595
|
+
};
|
|
580
596
|
export type IQueryFetchAdminUsersPageArgs = {
|
|
581
597
|
filter: IUsersFilterInput;
|
|
582
598
|
sort: IUsersSortInput;
|
|
@@ -636,6 +652,30 @@ export declare enum ISortDirection {
|
|
|
636
652
|
Asc = "asc",
|
|
637
653
|
Desc = "desc"
|
|
638
654
|
}
|
|
655
|
+
export type ITier = {
|
|
656
|
+
id: Scalars['String'];
|
|
657
|
+
name: Scalars['String'];
|
|
658
|
+
description?: Maybe<Scalars['String']>;
|
|
659
|
+
fee?: Maybe<Scalars['Float']>;
|
|
660
|
+
};
|
|
661
|
+
export type ITierInput = {
|
|
662
|
+
name: Scalars['String'];
|
|
663
|
+
description?: Maybe<Scalars['String']>;
|
|
664
|
+
fee?: Maybe<Scalars['Float']>;
|
|
665
|
+
};
|
|
666
|
+
export type ITiersFilterInput = {
|
|
667
|
+
nameTerm?: Maybe<Scalars['String']>;
|
|
668
|
+
descriptionTerm?: Maybe<Scalars['String']>;
|
|
669
|
+
feeTerm?: Maybe<Scalars['String']>;
|
|
670
|
+
};
|
|
671
|
+
export type ITiersPage = {
|
|
672
|
+
tiers: Array<ITier>;
|
|
673
|
+
nextPage?: Maybe<IAdminPage>;
|
|
674
|
+
};
|
|
675
|
+
export type ITiersSortInput = {
|
|
676
|
+
sortByName?: Maybe<ISort>;
|
|
677
|
+
sortByFee?: Maybe<ISort>;
|
|
678
|
+
};
|
|
639
679
|
export type IUserFeedback = {
|
|
640
680
|
id: Scalars['String'];
|
|
641
681
|
userId?: Maybe<Scalars['String']>;
|
|
@@ -813,6 +853,11 @@ export type IResolversTypes = {
|
|
|
813
853
|
RegistrationInviteSortInput: IRegistrationInviteSortInput;
|
|
814
854
|
Sort: ISort;
|
|
815
855
|
SortDirection: ISortDirection;
|
|
856
|
+
Tier: ResolverTypeWrapper<ITier>;
|
|
857
|
+
TierInput: ITierInput;
|
|
858
|
+
TiersFilterInput: ITiersFilterInput;
|
|
859
|
+
TiersPage: ResolverTypeWrapper<ITiersPage>;
|
|
860
|
+
TiersSortInput: ITiersSortInput;
|
|
816
861
|
Upload: ResolverTypeWrapper<Scalars['Upload']>;
|
|
817
862
|
UserFeedback: ResolverTypeWrapper<IUserFeedback>;
|
|
818
863
|
UserFeedbackFilterInput: IUserFeedbackFilterInput;
|
|
@@ -891,6 +936,11 @@ export type IResolversParentTypes = {
|
|
|
891
936
|
RegistrationInvitePage: IRegistrationInvitePage;
|
|
892
937
|
RegistrationInviteSortInput: IRegistrationInviteSortInput;
|
|
893
938
|
Sort: ISort;
|
|
939
|
+
Tier: ITier;
|
|
940
|
+
TierInput: ITierInput;
|
|
941
|
+
TiersFilterInput: ITiersFilterInput;
|
|
942
|
+
TiersPage: ITiersPage;
|
|
943
|
+
TiersSortInput: ITiersSortInput;
|
|
894
944
|
Upload: Scalars['Upload'];
|
|
895
945
|
UserFeedback: IUserFeedback;
|
|
896
946
|
UserFeedbackFilterInput: IUserFeedbackFilterInput;
|
|
@@ -1143,6 +1193,8 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1143
1193
|
createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
|
|
1144
1194
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1145
1195
|
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1196
|
+
updateTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateTierArgs, 'id' | 'input'>>;
|
|
1197
|
+
createTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateTierArgs, 'input'>>;
|
|
1146
1198
|
updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
|
|
1147
1199
|
removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
1148
1200
|
addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
|
|
@@ -1176,6 +1228,8 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1176
1228
|
fetchAdminBrandsPage?: Resolver<IResolversTypes['BrandsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminBrandsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1177
1229
|
fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1178
1230
|
fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1231
|
+
fetchTiers?: Resolver<Array<IResolversTypes['Tier']>, ParentType, ContextType>;
|
|
1232
|
+
fetchTiersPage?: Resolver<IResolversTypes['TiersPage'], ParentType, ContextType, RequireFields<IQueryFetchTiersPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1179
1233
|
fetchAdminUsersPage?: Resolver<IResolversTypes['UsersPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminUsersPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1180
1234
|
fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1181
1235
|
};
|
|
@@ -1202,6 +1256,18 @@ export type IRegistrationInvitePageResolvers<ContextType = any, ParentType exten
|
|
|
1202
1256
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1203
1257
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1204
1258
|
};
|
|
1259
|
+
export type ITierResolvers<ContextType = any, ParentType extends IResolversParentTypes['Tier'] = IResolversParentTypes['Tier']> = {
|
|
1260
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1261
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1262
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1263
|
+
fee?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1264
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1265
|
+
};
|
|
1266
|
+
export type ITiersPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['TiersPage'] = IResolversParentTypes['TiersPage']> = {
|
|
1267
|
+
tiers?: Resolver<Array<IResolversTypes['Tier']>, ParentType, ContextType>;
|
|
1268
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1269
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1270
|
+
};
|
|
1205
1271
|
export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
|
|
1206
1272
|
name: 'Upload';
|
|
1207
1273
|
}
|
|
@@ -1271,6 +1337,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
1271
1337
|
ReferredUsersInfo?: IReferredUsersInfoResolvers<ContextType>;
|
|
1272
1338
|
RegistrationInvite?: IRegistrationInviteResolvers<ContextType>;
|
|
1273
1339
|
RegistrationInvitePage?: IRegistrationInvitePageResolvers<ContextType>;
|
|
1340
|
+
Tier?: ITierResolvers<ContextType>;
|
|
1341
|
+
TiersPage?: ITiersPageResolvers<ContextType>;
|
|
1274
1342
|
Upload?: GraphQLScalarType;
|
|
1275
1343
|
UserFeedback?: IUserFeedbackResolvers<ContextType>;
|
|
1276
1344
|
UserFeedbackPage?: IUserFeedbackPageResolvers<ContextType>;
|
|
@@ -1283,6 +1351,10 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
1283
1351
|
Range?: IRangeDirectiveResolver<any, any, ContextType>;
|
|
1284
1352
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
1285
1353
|
};
|
|
1354
|
+
export type ICreateTierMutationVariables = Exact<{
|
|
1355
|
+
input: ITierInput;
|
|
1356
|
+
}>;
|
|
1357
|
+
export type ICreateTierMutation = Pick<IMutation, 'createTier'>;
|
|
1286
1358
|
export type ITriggerOpportunityNotificationMutationVariables = Exact<{
|
|
1287
1359
|
opportunityId: Scalars['ID'];
|
|
1288
1360
|
}>;
|
|
@@ -1297,6 +1369,11 @@ export type IUpdateOpportunityPushStatusMutationVariables = Exact<{
|
|
|
1297
1369
|
isActive: Scalars['Boolean'];
|
|
1298
1370
|
}>;
|
|
1299
1371
|
export type IUpdateOpportunityPushStatusMutation = Pick<IMutation, 'updateOpportunityPushStatus'>;
|
|
1372
|
+
export type IUpdateTierMutationVariables = Exact<{
|
|
1373
|
+
id: Scalars['ID'];
|
|
1374
|
+
input: ITierInput;
|
|
1375
|
+
}>;
|
|
1376
|
+
export type IUpdateTierMutation = Pick<IMutation, 'updateTier'>;
|
|
1300
1377
|
export type IChangeXpPointsMutationVariables = Exact<{
|
|
1301
1378
|
userId: Scalars['ID'];
|
|
1302
1379
|
pointsDiff: Scalars['Int'];
|
|
@@ -1430,6 +1507,23 @@ export type IFetchRegistrationInvitePageQuery = {
|
|
|
1430
1507
|
nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
|
|
1431
1508
|
};
|
|
1432
1509
|
};
|
|
1510
|
+
export type IFetchTiersQueryVariables = Exact<{
|
|
1511
|
+
[key: string]: never;
|
|
1512
|
+
}>;
|
|
1513
|
+
export type IFetchTiersQuery = {
|
|
1514
|
+
fetchTiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>>;
|
|
1515
|
+
};
|
|
1516
|
+
export type IFetchTiersPageQueryVariables = Exact<{
|
|
1517
|
+
filter: ITiersFilterInput;
|
|
1518
|
+
sort: ITiersSortInput;
|
|
1519
|
+
page: IAdminPageInput;
|
|
1520
|
+
}>;
|
|
1521
|
+
export type IFetchTiersPageQuery = {
|
|
1522
|
+
fetchTiersPage: {
|
|
1523
|
+
tiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>>;
|
|
1524
|
+
nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
|
|
1525
|
+
};
|
|
1526
|
+
};
|
|
1433
1527
|
export type IFetchUserFeedbackPageQueryVariables = Exact<{
|
|
1434
1528
|
filter: IUserFeedbackFilterInput;
|
|
1435
1529
|
sort: IUserFeedbackSortInput;
|
|
@@ -1544,6 +1638,31 @@ export type IFetchBlockchainsQueryVariables = Exact<{
|
|
|
1544
1638
|
[key: string]: never;
|
|
1545
1639
|
}>;
|
|
1546
1640
|
export type IFetchBlockchainsQuery = Pick<IQuery, 'fetchBlockchains'>;
|
|
1641
|
+
export declare const CreateTierDocument: Apollo.DocumentNode;
|
|
1642
|
+
export type ICreateTierMutationFn = Apollo.MutationFunction<ICreateTierMutation, ICreateTierMutationVariables>;
|
|
1643
|
+
/**
|
|
1644
|
+
* __useCreateTierMutation__
|
|
1645
|
+
*
|
|
1646
|
+
* To run a mutation, you first call `useCreateTierMutation` within a React component and pass it any options that fit your needs.
|
|
1647
|
+
* When your component renders, `useCreateTierMutation` returns a tuple that includes:
|
|
1648
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1649
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1650
|
+
*
|
|
1651
|
+
* @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;
|
|
1652
|
+
*
|
|
1653
|
+
* @example
|
|
1654
|
+
* const [createTierMutation, { data, loading, error }] = useCreateTierMutation({
|
|
1655
|
+
* variables: {
|
|
1656
|
+
* input: // value for 'input'
|
|
1657
|
+
* },
|
|
1658
|
+
* });
|
|
1659
|
+
*/
|
|
1660
|
+
export declare function useCreateTierMutation(baseOptions?: Apollo.MutationHookOptions<ICreateTierMutation, ICreateTierMutationVariables>): Apollo.MutationTuple<ICreateTierMutation, Exact<{
|
|
1661
|
+
input: ITierInput;
|
|
1662
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1663
|
+
export type CreateTierMutationHookResult = ReturnType<typeof useCreateTierMutation>;
|
|
1664
|
+
export type CreateTierMutationResult = Apollo.MutationResult<ICreateTierMutation>;
|
|
1665
|
+
export type CreateTierMutationOptions = Apollo.BaseMutationOptions<ICreateTierMutation, ICreateTierMutationVariables>;
|
|
1547
1666
|
export declare const TriggerOpportunityNotificationDocument: Apollo.DocumentNode;
|
|
1548
1667
|
export type ITriggerOpportunityNotificationMutationFn = Apollo.MutationFunction<ITriggerOpportunityNotificationMutation, ITriggerOpportunityNotificationMutationVariables>;
|
|
1549
1668
|
/**
|
|
@@ -1623,6 +1742,33 @@ export declare function useUpdateOpportunityPushStatusMutation(baseOptions?: Apo
|
|
|
1623
1742
|
export type UpdateOpportunityPushStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityPushStatusMutation>;
|
|
1624
1743
|
export type UpdateOpportunityPushStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityPushStatusMutation>;
|
|
1625
1744
|
export type UpdateOpportunityPushStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityPushStatusMutation, IUpdateOpportunityPushStatusMutationVariables>;
|
|
1745
|
+
export declare const UpdateTierDocument: Apollo.DocumentNode;
|
|
1746
|
+
export type IUpdateTierMutationFn = Apollo.MutationFunction<IUpdateTierMutation, IUpdateTierMutationVariables>;
|
|
1747
|
+
/**
|
|
1748
|
+
* __useUpdateTierMutation__
|
|
1749
|
+
*
|
|
1750
|
+
* To run a mutation, you first call `useUpdateTierMutation` within a React component and pass it any options that fit your needs.
|
|
1751
|
+
* When your component renders, `useUpdateTierMutation` returns a tuple that includes:
|
|
1752
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1753
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1754
|
+
*
|
|
1755
|
+
* @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;
|
|
1756
|
+
*
|
|
1757
|
+
* @example
|
|
1758
|
+
* const [updateTierMutation, { data, loading, error }] = useUpdateTierMutation({
|
|
1759
|
+
* variables: {
|
|
1760
|
+
* id: // value for 'id'
|
|
1761
|
+
* input: // value for 'input'
|
|
1762
|
+
* },
|
|
1763
|
+
* });
|
|
1764
|
+
*/
|
|
1765
|
+
export declare function useUpdateTierMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateTierMutation, IUpdateTierMutationVariables>): Apollo.MutationTuple<IUpdateTierMutation, Exact<{
|
|
1766
|
+
id: string;
|
|
1767
|
+
input: ITierInput;
|
|
1768
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1769
|
+
export type UpdateTierMutationHookResult = ReturnType<typeof useUpdateTierMutation>;
|
|
1770
|
+
export type UpdateTierMutationResult = Apollo.MutationResult<IUpdateTierMutation>;
|
|
1771
|
+
export type UpdateTierMutationOptions = Apollo.BaseMutationOptions<IUpdateTierMutation, IUpdateTierMutationVariables>;
|
|
1626
1772
|
export declare const ChangeXpPointsDocument: Apollo.DocumentNode;
|
|
1627
1773
|
export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
|
|
1628
1774
|
/**
|
|
@@ -2167,6 +2313,63 @@ export declare function useFetchRegistrationInvitePageLazyQuery(baseOptions?: Ap
|
|
|
2167
2313
|
export type FetchRegistrationInvitePageQueryHookResult = ReturnType<typeof useFetchRegistrationInvitePageQuery>;
|
|
2168
2314
|
export type FetchRegistrationInvitePageLazyQueryHookResult = ReturnType<typeof useFetchRegistrationInvitePageLazyQuery>;
|
|
2169
2315
|
export type FetchRegistrationInvitePageQueryResult = Apollo.QueryResult<IFetchRegistrationInvitePageQuery, IFetchRegistrationInvitePageQueryVariables>;
|
|
2316
|
+
export declare const FetchTiersDocument: Apollo.DocumentNode;
|
|
2317
|
+
/**
|
|
2318
|
+
* __useFetchTiersQuery__
|
|
2319
|
+
*
|
|
2320
|
+
* To run a query within a React component, call `useFetchTiersQuery` and pass it any options that fit your needs.
|
|
2321
|
+
* When your component renders, `useFetchTiersQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2322
|
+
* you can use to render your UI.
|
|
2323
|
+
*
|
|
2324
|
+
* @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;
|
|
2325
|
+
*
|
|
2326
|
+
* @example
|
|
2327
|
+
* const { data, loading, error } = useFetchTiersQuery({
|
|
2328
|
+
* variables: {
|
|
2329
|
+
* },
|
|
2330
|
+
* });
|
|
2331
|
+
*/
|
|
2332
|
+
export declare function useFetchTiersQuery(baseOptions?: Apollo.QueryHookOptions<IFetchTiersQuery, IFetchTiersQueryVariables>): Apollo.QueryResult<IFetchTiersQuery, Exact<{
|
|
2333
|
+
[key: string]: never;
|
|
2334
|
+
}>>;
|
|
2335
|
+
export declare function useFetchTiersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchTiersQuery, IFetchTiersQueryVariables>): Apollo.LazyQueryResultTuple<IFetchTiersQuery, Exact<{
|
|
2336
|
+
[key: string]: never;
|
|
2337
|
+
}>>;
|
|
2338
|
+
export type FetchTiersQueryHookResult = ReturnType<typeof useFetchTiersQuery>;
|
|
2339
|
+
export type FetchTiersLazyQueryHookResult = ReturnType<typeof useFetchTiersLazyQuery>;
|
|
2340
|
+
export type FetchTiersQueryResult = Apollo.QueryResult<IFetchTiersQuery, IFetchTiersQueryVariables>;
|
|
2341
|
+
export declare const FetchTiersPageDocument: Apollo.DocumentNode;
|
|
2342
|
+
/**
|
|
2343
|
+
* __useFetchTiersPageQuery__
|
|
2344
|
+
*
|
|
2345
|
+
* To run a query within a React component, call `useFetchTiersPageQuery` and pass it any options that fit your needs.
|
|
2346
|
+
* When your component renders, `useFetchTiersPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2347
|
+
* you can use to render your UI.
|
|
2348
|
+
*
|
|
2349
|
+
* @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;
|
|
2350
|
+
*
|
|
2351
|
+
* @example
|
|
2352
|
+
* const { data, loading, error } = useFetchTiersPageQuery({
|
|
2353
|
+
* variables: {
|
|
2354
|
+
* filter: // value for 'filter'
|
|
2355
|
+
* sort: // value for 'sort'
|
|
2356
|
+
* page: // value for 'page'
|
|
2357
|
+
* },
|
|
2358
|
+
* });
|
|
2359
|
+
*/
|
|
2360
|
+
export declare function useFetchTiersPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>): Apollo.QueryResult<IFetchTiersPageQuery, Exact<{
|
|
2361
|
+
filter: ITiersFilterInput;
|
|
2362
|
+
sort: ITiersSortInput;
|
|
2363
|
+
page: IAdminPageInput;
|
|
2364
|
+
}>>;
|
|
2365
|
+
export declare function useFetchTiersPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>): Apollo.LazyQueryResultTuple<IFetchTiersPageQuery, Exact<{
|
|
2366
|
+
filter: ITiersFilterInput;
|
|
2367
|
+
sort: ITiersSortInput;
|
|
2368
|
+
page: IAdminPageInput;
|
|
2369
|
+
}>>;
|
|
2370
|
+
export type FetchTiersPageQueryHookResult = ReturnType<typeof useFetchTiersPageQuery>;
|
|
2371
|
+
export type FetchTiersPageLazyQueryHookResult = ReturnType<typeof useFetchTiersPageLazyQuery>;
|
|
2372
|
+
export type FetchTiersPageQueryResult = Apollo.QueryResult<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>;
|
|
2170
2373
|
export declare const FetchUserFeedbackPageDocument: Apollo.DocumentNode;
|
|
2171
2374
|
/**
|
|
2172
2375
|
* __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) {
|
|
@@ -247,6 +247,12 @@ export type IFetchMyTasksQueryVariables = Exact<{
|
|
|
247
247
|
export type IFetchMyTasksQuery = {
|
|
248
248
|
fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>>;
|
|
249
249
|
};
|
|
250
|
+
export type IOnCommonOpportunityNotificationSubscriptionVariables = Exact<{
|
|
251
|
+
[key: string]: never;
|
|
252
|
+
}>;
|
|
253
|
+
export type IOnCommonOpportunityNotificationSubscription = {
|
|
254
|
+
onCommonOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'>;
|
|
255
|
+
};
|
|
250
256
|
export type IOnInviteCodeUsedSubscriptionVariables = Exact<{
|
|
251
257
|
authToken: Scalars['String'];
|
|
252
258
|
}>;
|
|
@@ -265,6 +271,12 @@ export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{
|
|
|
265
271
|
export type IOnMyExperienceUpdatedSubscription = {
|
|
266
272
|
onMyExperienceUpdated: Pick<IUserXp, 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'>;
|
|
267
273
|
};
|
|
274
|
+
export type IOnUserOpportunityNotificationSubscriptionVariables = Exact<{
|
|
275
|
+
authToken: Scalars['String'];
|
|
276
|
+
}>;
|
|
277
|
+
export type IOnUserOpportunityNotificationSubscription = {
|
|
278
|
+
onUserOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'>;
|
|
279
|
+
};
|
|
268
280
|
export declare const FetchMyExperienceV2Document: Apollo.DocumentNode;
|
|
269
281
|
/**
|
|
270
282
|
* __useFetchMyExperienceV2Query__
|
|
@@ -315,6 +327,33 @@ export declare function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
315
327
|
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
316
328
|
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
317
329
|
export type FetchMyTasksQueryResult = Apollo.QueryResult<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>;
|
|
330
|
+
export declare const OnCommonOpportunityNotificationDocument: Apollo.DocumentNode;
|
|
331
|
+
/**
|
|
332
|
+
* __useOnCommonOpportunityNotificationSubscription__
|
|
333
|
+
*
|
|
334
|
+
* To run a query within a React component, call `useOnCommonOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
335
|
+
* When your component renders, `useOnCommonOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
336
|
+
* you can use to render your UI.
|
|
337
|
+
*
|
|
338
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
* const { data, loading, error } = useOnCommonOpportunityNotificationSubscription({
|
|
342
|
+
* variables: {
|
|
343
|
+
* },
|
|
344
|
+
* });
|
|
345
|
+
*/
|
|
346
|
+
export declare function useOnCommonOpportunityNotificationSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnCommonOpportunityNotificationSubscription, IOnCommonOpportunityNotificationSubscriptionVariables>): {
|
|
347
|
+
restart(): void;
|
|
348
|
+
loading: boolean;
|
|
349
|
+
data?: IOnCommonOpportunityNotificationSubscription | undefined;
|
|
350
|
+
error?: Apollo.ApolloError | undefined;
|
|
351
|
+
variables?: Exact<{
|
|
352
|
+
[key: string]: never;
|
|
353
|
+
}> | undefined;
|
|
354
|
+
};
|
|
355
|
+
export type OnCommonOpportunityNotificationSubscriptionHookResult = ReturnType<typeof useOnCommonOpportunityNotificationSubscription>;
|
|
356
|
+
export type OnCommonOpportunityNotificationSubscriptionResult = Apollo.SubscriptionResult<IOnCommonOpportunityNotificationSubscription>;
|
|
318
357
|
export declare const OnInviteCodeUsedDocument: Apollo.DocumentNode;
|
|
319
358
|
/**
|
|
320
359
|
* __useOnInviteCodeUsedSubscription__
|
|
@@ -399,3 +438,31 @@ export declare function useOnMyExperienceUpdatedSubscription(baseOptions: Apollo
|
|
|
399
438
|
};
|
|
400
439
|
export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
|
|
401
440
|
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
441
|
+
export declare const OnUserOpportunityNotificationDocument: Apollo.DocumentNode;
|
|
442
|
+
/**
|
|
443
|
+
* __useOnUserOpportunityNotificationSubscription__
|
|
444
|
+
*
|
|
445
|
+
* To run a query within a React component, call `useOnUserOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
446
|
+
* When your component renders, `useOnUserOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
447
|
+
* you can use to render your UI.
|
|
448
|
+
*
|
|
449
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
450
|
+
*
|
|
451
|
+
* @example
|
|
452
|
+
* const { data, loading, error } = useOnUserOpportunityNotificationSubscription({
|
|
453
|
+
* variables: {
|
|
454
|
+
* authToken: // value for 'authToken'
|
|
455
|
+
* },
|
|
456
|
+
* });
|
|
457
|
+
*/
|
|
458
|
+
export declare function useOnUserOpportunityNotificationSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnUserOpportunityNotificationSubscription, IOnUserOpportunityNotificationSubscriptionVariables>): {
|
|
459
|
+
restart(): void;
|
|
460
|
+
loading: boolean;
|
|
461
|
+
data?: IOnUserOpportunityNotificationSubscription | undefined;
|
|
462
|
+
error?: Apollo.ApolloError | undefined;
|
|
463
|
+
variables?: Exact<{
|
|
464
|
+
authToken: string;
|
|
465
|
+
}> | undefined;
|
|
466
|
+
};
|
|
467
|
+
export type OnUserOpportunityNotificationSubscriptionHookResult = ReturnType<typeof useOnUserOpportunityNotificationSubscription>;
|
|
468
|
+
export type OnUserOpportunityNotificationSubscriptionResult = Apollo.SubscriptionResult<IOnUserOpportunityNotificationSubscription>;
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.useOnMyExperienceUpdatedSubscription = exports.OnMyExperienceUpdatedDocument = exports.useOnMyExperienceIncrementedSubscription = exports.OnMyExperienceIncrementedDocument = exports.useOnInviteCodeUsedSubscription = exports.OnInviteCodeUsedDocument = exports.useFetchMyTasksLazyQuery = exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyExperienceV2LazyQuery = exports.useFetchMyExperienceV2Query = exports.FetchMyExperienceV2Document = void 0;
|
|
26
|
+
exports.useOnUserOpportunityNotificationSubscription = exports.OnUserOpportunityNotificationDocument = exports.useOnMyExperienceUpdatedSubscription = exports.OnMyExperienceUpdatedDocument = exports.useOnMyExperienceIncrementedSubscription = exports.OnMyExperienceIncrementedDocument = exports.useOnInviteCodeUsedSubscription = exports.OnInviteCodeUsedDocument = exports.useOnCommonOpportunityNotificationSubscription = exports.OnCommonOpportunityNotificationDocument = exports.useFetchMyTasksLazyQuery = exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyExperienceV2LazyQuery = exports.useFetchMyExperienceV2Query = exports.FetchMyExperienceV2Document = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
exports.FetchMyExperienceV2Document = (0, client_1.gql) `
|
|
@@ -98,6 +98,37 @@ function useFetchMyTasksLazyQuery(baseOptions) {
|
|
|
98
98
|
return Apollo.useLazyQuery(exports.FetchMyTasksDocument, baseOptions);
|
|
99
99
|
}
|
|
100
100
|
exports.useFetchMyTasksLazyQuery = useFetchMyTasksLazyQuery;
|
|
101
|
+
exports.OnCommonOpportunityNotificationDocument = (0, client_1.gql) `
|
|
102
|
+
subscription OnCommonOpportunityNotification {
|
|
103
|
+
onCommonOpportunityNotification {
|
|
104
|
+
opportunityId
|
|
105
|
+
name
|
|
106
|
+
description
|
|
107
|
+
notificationType
|
|
108
|
+
media
|
|
109
|
+
projectUrl
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
113
|
+
/**
|
|
114
|
+
* __useOnCommonOpportunityNotificationSubscription__
|
|
115
|
+
*
|
|
116
|
+
* To run a query within a React component, call `useOnCommonOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
117
|
+
* When your component renders, `useOnCommonOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
118
|
+
* you can use to render your UI.
|
|
119
|
+
*
|
|
120
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* const { data, loading, error } = useOnCommonOpportunityNotificationSubscription({
|
|
124
|
+
* variables: {
|
|
125
|
+
* },
|
|
126
|
+
* });
|
|
127
|
+
*/
|
|
128
|
+
function useOnCommonOpportunityNotificationSubscription(baseOptions) {
|
|
129
|
+
return Apollo.useSubscription(exports.OnCommonOpportunityNotificationDocument, baseOptions);
|
|
130
|
+
}
|
|
131
|
+
exports.useOnCommonOpportunityNotificationSubscription = useOnCommonOpportunityNotificationSubscription;
|
|
101
132
|
exports.OnInviteCodeUsedDocument = (0, client_1.gql) `
|
|
102
133
|
subscription onInviteCodeUsed($authToken: String!) {
|
|
103
134
|
onInviteCodeUsed(authToken: $authToken) {
|
|
@@ -189,3 +220,35 @@ function useOnMyExperienceUpdatedSubscription(baseOptions) {
|
|
|
189
220
|
return Apollo.useSubscription(exports.OnMyExperienceUpdatedDocument, baseOptions);
|
|
190
221
|
}
|
|
191
222
|
exports.useOnMyExperienceUpdatedSubscription = useOnMyExperienceUpdatedSubscription;
|
|
223
|
+
exports.OnUserOpportunityNotificationDocument = (0, client_1.gql) `
|
|
224
|
+
subscription OnUserOpportunityNotification($authToken: String!) {
|
|
225
|
+
onUserOpportunityNotification(authToken: $authToken) {
|
|
226
|
+
opportunityId
|
|
227
|
+
name
|
|
228
|
+
description
|
|
229
|
+
notificationType
|
|
230
|
+
media
|
|
231
|
+
projectUrl
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
`;
|
|
235
|
+
/**
|
|
236
|
+
* __useOnUserOpportunityNotificationSubscription__
|
|
237
|
+
*
|
|
238
|
+
* To run a query within a React component, call `useOnUserOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
239
|
+
* When your component renders, `useOnUserOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
240
|
+
* you can use to render your UI.
|
|
241
|
+
*
|
|
242
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* const { data, loading, error } = useOnUserOpportunityNotificationSubscription({
|
|
246
|
+
* variables: {
|
|
247
|
+
* authToken: // value for 'authToken'
|
|
248
|
+
* },
|
|
249
|
+
* });
|
|
250
|
+
*/
|
|
251
|
+
function useOnUserOpportunityNotificationSubscription(baseOptions) {
|
|
252
|
+
return Apollo.useSubscription(exports.OnUserOpportunityNotificationDocument, baseOptions);
|
|
253
|
+
}
|
|
254
|
+
exports.useOnUserOpportunityNotificationSubscription = useOnUserOpportunityNotificationSubscription;
|