@ludo.ninja/api 2.8.71 → 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.
@@ -367,6 +367,7 @@ export type IMutation = {
367
367
  updateOpportunity: Scalars['Boolean'];
368
368
  triggerOpportunityNotification: Scalars['Boolean'];
369
369
  updateTier: Scalars['Boolean'];
370
+ createTier: Scalars['Boolean'];
370
371
  updateProfileStatus: Scalars['Boolean'];
371
372
  removeSuggestedOpportunity: Scalars['Boolean'];
372
373
  addSuggestedOpportunity: Scalars['Boolean'];
@@ -428,6 +429,9 @@ export type IMutationUpdateTierArgs = {
428
429
  id: Scalars['ID'];
429
430
  input: ITierInput;
430
431
  };
432
+ export type IMutationCreateTierArgs = {
433
+ input: ITierInput;
434
+ };
431
435
  export type IMutationUpdateProfileStatusArgs = {
432
436
  userId: Scalars['ID'];
433
437
  isActive: Scalars['Boolean'];
@@ -517,6 +521,7 @@ export type IQuery = {
517
521
  fetchBlockchains: Array<Scalars['String']>;
518
522
  fetchAdminReferralsPage: IReferralsPage;
519
523
  fetchTiers: Array<ITier>;
524
+ fetchTiersPage: ITiersPage;
520
525
  fetchAdminUsersPage: IUsersPage;
521
526
  fetchAdminXpPage: IXpPage;
522
527
  };
@@ -583,6 +588,11 @@ export type IQueryFetchAdminReferralsPageArgs = {
583
588
  sort: IReferralsSortInput;
584
589
  page: IAdminPageInput;
585
590
  };
591
+ export type IQueryFetchTiersPageArgs = {
592
+ filter: ITiersFilterInput;
593
+ sort: ITiersSortInput;
594
+ page: IAdminPageInput;
595
+ };
586
596
  export type IQueryFetchAdminUsersPageArgs = {
587
597
  filter: IUsersFilterInput;
588
598
  sort: IUsersSortInput;
@@ -646,10 +656,25 @@ export type ITier = {
646
656
  id: Scalars['String'];
647
657
  name: Scalars['String'];
648
658
  description?: Maybe<Scalars['String']>;
659
+ fee?: Maybe<Scalars['Float']>;
649
660
  };
650
661
  export type ITierInput = {
651
662
  name: Scalars['String'];
652
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>;
653
678
  };
654
679
  export type IUserFeedback = {
655
680
  id: Scalars['String'];
@@ -830,6 +855,9 @@ export type IResolversTypes = {
830
855
  SortDirection: ISortDirection;
831
856
  Tier: ResolverTypeWrapper<ITier>;
832
857
  TierInput: ITierInput;
858
+ TiersFilterInput: ITiersFilterInput;
859
+ TiersPage: ResolverTypeWrapper<ITiersPage>;
860
+ TiersSortInput: ITiersSortInput;
833
861
  Upload: ResolverTypeWrapper<Scalars['Upload']>;
834
862
  UserFeedback: ResolverTypeWrapper<IUserFeedback>;
835
863
  UserFeedbackFilterInput: IUserFeedbackFilterInput;
@@ -910,6 +938,9 @@ export type IResolversParentTypes = {
910
938
  Sort: ISort;
911
939
  Tier: ITier;
912
940
  TierInput: ITierInput;
941
+ TiersFilterInput: ITiersFilterInput;
942
+ TiersPage: ITiersPage;
943
+ TiersSortInput: ITiersSortInput;
913
944
  Upload: Scalars['Upload'];
914
945
  UserFeedback: IUserFeedback;
915
946
  UserFeedbackFilterInput: IUserFeedbackFilterInput;
@@ -1163,6 +1194,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
1163
1194
  updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
1164
1195
  triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
1165
1196
  updateTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateTierArgs, 'id' | 'input'>>;
1197
+ createTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateTierArgs, 'input'>>;
1166
1198
  updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
1167
1199
  removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
1168
1200
  addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
@@ -1197,6 +1229,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1197
1229
  fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
1198
1230
  fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
1199
1231
  fetchTiers?: Resolver<Array<IResolversTypes['Tier']>, ParentType, ContextType>;
1232
+ fetchTiersPage?: Resolver<IResolversTypes['TiersPage'], ParentType, ContextType, RequireFields<IQueryFetchTiersPageArgs, 'filter' | 'sort' | 'page'>>;
1200
1233
  fetchAdminUsersPage?: Resolver<IResolversTypes['UsersPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminUsersPageArgs, 'filter' | 'sort' | 'page'>>;
1201
1234
  fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
1202
1235
  };
@@ -1227,6 +1260,12 @@ export type ITierResolvers<ContextType = any, ParentType extends IResolversParen
1227
1260
  id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1228
1261
  name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1229
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>;
1230
1269
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1231
1270
  };
1232
1271
  export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
@@ -1299,6 +1338,7 @@ export type IResolvers<ContextType = any> = {
1299
1338
  RegistrationInvite?: IRegistrationInviteResolvers<ContextType>;
1300
1339
  RegistrationInvitePage?: IRegistrationInvitePageResolvers<ContextType>;
1301
1340
  Tier?: ITierResolvers<ContextType>;
1341
+ TiersPage?: ITiersPageResolvers<ContextType>;
1302
1342
  Upload?: GraphQLScalarType;
1303
1343
  UserFeedback?: IUserFeedbackResolvers<ContextType>;
1304
1344
  UserFeedbackPage?: IUserFeedbackPageResolvers<ContextType>;
@@ -1311,6 +1351,10 @@ export type IDirectiveResolvers<ContextType = any> = {
1311
1351
  Range?: IRangeDirectiveResolver<any, any, ContextType>;
1312
1352
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
1313
1353
  };
1354
+ export type ICreateTierMutationVariables = Exact<{
1355
+ input: ITierInput;
1356
+ }>;
1357
+ export type ICreateTierMutation = Pick<IMutation, 'createTier'>;
1314
1358
  export type ITriggerOpportunityNotificationMutationVariables = Exact<{
1315
1359
  opportunityId: Scalars['ID'];
1316
1360
  }>;
@@ -1325,6 +1369,11 @@ export type IUpdateOpportunityPushStatusMutationVariables = Exact<{
1325
1369
  isActive: Scalars['Boolean'];
1326
1370
  }>;
1327
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'>;
1328
1377
  export type IChangeXpPointsMutationVariables = Exact<{
1329
1378
  userId: Scalars['ID'];
1330
1379
  pointsDiff: Scalars['Int'];
@@ -1458,6 +1507,23 @@ export type IFetchRegistrationInvitePageQuery = {
1458
1507
  nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
1459
1508
  };
1460
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
+ };
1461
1527
  export type IFetchUserFeedbackPageQueryVariables = Exact<{
1462
1528
  filter: IUserFeedbackFilterInput;
1463
1529
  sort: IUserFeedbackSortInput;
@@ -1572,6 +1638,31 @@ export type IFetchBlockchainsQueryVariables = Exact<{
1572
1638
  [key: string]: never;
1573
1639
  }>;
1574
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>;
1575
1666
  export declare const TriggerOpportunityNotificationDocument: Apollo.DocumentNode;
1576
1667
  export type ITriggerOpportunityNotificationMutationFn = Apollo.MutationFunction<ITriggerOpportunityNotificationMutation, ITriggerOpportunityNotificationMutationVariables>;
1577
1668
  /**
@@ -1651,6 +1742,33 @@ export declare function useUpdateOpportunityPushStatusMutation(baseOptions?: Apo
1651
1742
  export type UpdateOpportunityPushStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityPushStatusMutation>;
1652
1743
  export type UpdateOpportunityPushStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityPushStatusMutation>;
1653
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>;
1654
1772
  export declare const ChangeXpPointsDocument: Apollo.DocumentNode;
1655
1773
  export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
1656
1774
  /**
@@ -2195,6 +2313,63 @@ export declare function useFetchRegistrationInvitePageLazyQuery(baseOptions?: Ap
2195
2313
  export type FetchRegistrationInvitePageQueryHookResult = ReturnType<typeof useFetchRegistrationInvitePageQuery>;
2196
2314
  export type FetchRegistrationInvitePageLazyQueryHookResult = ReturnType<typeof useFetchRegistrationInvitePageLazyQuery>;
2197
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>;
2198
2373
  export declare const FetchUserFeedbackPageDocument: Apollo.DocumentNode;
2199
2374
  /**
2200
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.FetchRegistrationInvitePageDocument = 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 = 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.useUpdateOpportunityPushStatusMutation = exports.UpdateOpportunityPushStatusDocument = exports.useUpdateInviteCodeUsagesLimitMutation = exports.UpdateInviteCodeUsagesLimitDocument = exports.useTriggerOpportunityNotificationMutation = exports.TriggerOpportunityNotificationDocument = 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.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) {
package/build/index.d.ts CHANGED
@@ -1130,6 +1130,11 @@ declare const schema: {
1130
1130
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1131
1131
  DislikeAssetDocument: import("graphql").DocumentNode;
1132
1132
  LikeAssetDocument: import("graphql").DocumentNode;
1133
+ useCreateTierMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.ICreateTierMutation, adminSchema.Exact<{
1134
+ input: adminSchema.ITierInput;
1135
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.ICreateTierMutation, adminSchema.Exact<{
1136
+ input: adminSchema.ITierInput;
1137
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1133
1138
  useTriggerOpportunityNotificationMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.ITriggerOpportunityNotificationMutation, adminSchema.Exact<{
1134
1139
  opportunityId: string;
1135
1140
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.ITriggerOpportunityNotificationMutation, adminSchema.Exact<{
@@ -1149,6 +1154,13 @@ declare const schema: {
1149
1154
  opportunityId: string;
1150
1155
  isActive: boolean;
1151
1156
  }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1157
+ useUpdateTierMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IUpdateTierMutation, adminSchema.Exact<{
1158
+ id: string;
1159
+ input: adminSchema.ITierInput;
1160
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.IUpdateTierMutation, adminSchema.Exact<{
1161
+ id: string;
1162
+ input: adminSchema.ITierInput;
1163
+ }>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
1152
1164
  useChangeXpPointsMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.IChangeXpPointsMutation, adminSchema.Exact<{
1153
1165
  userId: string;
1154
1166
  pointsDiff: number;
@@ -1353,6 +1365,34 @@ declare const schema: {
1353
1365
  sort: adminSchema.IRegistrationInviteSortInput;
1354
1366
  page: adminSchema.IAdminPageInput;
1355
1367
  }>>;
1368
+ useFetchTiersQuery(baseOptions?: import("@apollo/client").QueryHookOptions<adminSchema.IFetchTiersQuery, adminSchema.Exact<{
1369
+ [key: string]: never;
1370
+ }>> | undefined): import("@apollo/client").QueryResult<adminSchema.IFetchTiersQuery, adminSchema.Exact<{
1371
+ [key: string]: never;
1372
+ }>>;
1373
+ useFetchTiersLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<adminSchema.IFetchTiersQuery, adminSchema.Exact<{
1374
+ [key: string]: never;
1375
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<adminSchema.IFetchTiersQuery, adminSchema.Exact<{
1376
+ [key: string]: never;
1377
+ }>>;
1378
+ useFetchTiersPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<adminSchema.IFetchTiersPageQuery, adminSchema.Exact<{
1379
+ filter: adminSchema.ITiersFilterInput;
1380
+ sort: adminSchema.ITiersSortInput;
1381
+ page: adminSchema.IAdminPageInput;
1382
+ }>>): import("@apollo/client").QueryResult<adminSchema.IFetchTiersPageQuery, adminSchema.Exact<{
1383
+ filter: adminSchema.ITiersFilterInput;
1384
+ sort: adminSchema.ITiersSortInput;
1385
+ page: adminSchema.IAdminPageInput;
1386
+ }>>;
1387
+ useFetchTiersPageLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<adminSchema.IFetchTiersPageQuery, adminSchema.Exact<{
1388
+ filter: adminSchema.ITiersFilterInput;
1389
+ sort: adminSchema.ITiersSortInput;
1390
+ page: adminSchema.IAdminPageInput;
1391
+ }>> | undefined): import("@apollo/client").LazyQueryResultTuple<adminSchema.IFetchTiersPageQuery, adminSchema.Exact<{
1392
+ filter: adminSchema.ITiersFilterInput;
1393
+ sort: adminSchema.ITiersSortInput;
1394
+ page: adminSchema.IAdminPageInput;
1395
+ }>>;
1356
1396
  useFetchUserFeedbackPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<adminSchema.IFetchUserFeedbackPageQuery, adminSchema.Exact<{
1357
1397
  filter: adminSchema.IUserFeedbackFilterInput;
1358
1398
  sort: adminSchema.IUserFeedbackSortInput;
@@ -1528,9 +1568,11 @@ declare const schema: {
1528
1568
  [key: string]: never;
1529
1569
  }>>;
1530
1570
  ISortDirection: typeof adminSchema.ISortDirection;
1571
+ CreateTierDocument: import("graphql").DocumentNode;
1531
1572
  TriggerOpportunityNotificationDocument: import("graphql").DocumentNode;
1532
1573
  UpdateInviteCodeUsagesLimitDocument: import("graphql").DocumentNode;
1533
1574
  UpdateOpportunityPushStatusDocument: import("graphql").DocumentNode;
1575
+ UpdateTierDocument: import("graphql").DocumentNode;
1534
1576
  ChangeXpPointsDocument: import("graphql").DocumentNode;
1535
1577
  CreateCategoryDocument: import("graphql").DocumentNode;
1536
1578
  CreateBrandDocument: import("graphql").DocumentNode;
@@ -1550,6 +1592,8 @@ declare const schema: {
1550
1592
  FetchInvestorInquiryPageDocument: import("graphql").DocumentNode;
1551
1593
  FetchPartnershipInquiryPageDocument: import("graphql").DocumentNode;
1552
1594
  FetchRegistrationInvitePageDocument: import("graphql").DocumentNode;
1595
+ FetchTiersDocument: import("graphql").DocumentNode;
1596
+ FetchTiersPageDocument: import("graphql").DocumentNode;
1553
1597
  FetchUserFeedbackPageDocument: import("graphql").DocumentNode;
1554
1598
  FetchAdminBrandsDocument: import("graphql").DocumentNode;
1555
1599
  FetchAdminBrandsPageDocument: import("graphql").DocumentNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.8.71",
3
+ "version": "2.8.72",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",