@bunnyapp/components 1.3.0-beta.4 → 1.3.0-beta.5

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.
Files changed (116) hide show
  1. package/dist/cjs/index.js +1342 -911
  2. package/dist/cjs/src/components/BillingDetails/BillingDetails.d.ts +1 -1
  3. package/dist/cjs/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +2 -2
  4. package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +2 -3
  5. package/dist/cjs/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -1
  6. package/dist/cjs/src/components/PlanManagerQuoteProvider.d.ts +19 -0
  7. package/dist/cjs/src/components/QuotePreviewProvider.d.ts +0 -2
  8. package/dist/cjs/src/components/Subscriptions/AddonIndentation.d.ts +8 -0
  9. package/dist/cjs/src/components/Subscriptions/AddonSubscriptionCards.d.ts +7 -0
  10. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +3 -3
  11. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +2 -3
  12. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -1
  13. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +1 -2
  14. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
  15. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +11 -0
  16. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +4 -3
  17. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -3
  18. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +1 -2
  19. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +2 -3
  20. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +3 -2
  21. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +2 -2
  22. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPrice.d.ts +2 -1
  23. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardTitle.d.ts +1 -1
  24. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -3
  25. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/{PriceListSelector.d.ts → priceListSelector/PriceListSelector.d.ts} +1 -2
  26. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector/PriceListSelectorContext.d.ts +9 -0
  27. package/dist/cjs/src/components/Subscriptions/QuotePreviewData.d.ts +6 -0
  28. package/dist/cjs/src/components/Subscriptions/SubscriptionRequests.d.ts +0 -1
  29. package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +2 -2
  30. package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +1 -1
  31. package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +2 -1
  32. package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -1
  33. package/dist/cjs/src/components/TaxationForm.d.ts +2 -2
  34. package/dist/cjs/src/graphql/QuoteRequests.d.ts +17 -1
  35. package/dist/cjs/src/graphql/mutations/quoteAddonCreate.d.ts +7 -0
  36. package/dist/cjs/src/graphql/mutations/quoteChangeCreate.d.ts +8 -0
  37. package/dist/cjs/src/graphql/mutations/quoteChangeDelete.d.ts +6 -0
  38. package/dist/cjs/src/graphql/mutations/quoteChargeDelete.d.ts +2 -1
  39. package/dist/cjs/src/graphql/mutations/quoteCompose.d.ts +0 -1
  40. package/dist/cjs/src/graphql/mutations/quoteCreate.d.ts +8 -0
  41. package/dist/cjs/src/graphql/mutations/quoteCreateWithDeal.d.ts +10 -0
  42. package/dist/cjs/src/graphql/mutations/subscriptionTrialConvert.d.ts +7 -0
  43. package/dist/cjs/src/graphql/queries/getCurrentUserData.d.ts +13 -0
  44. package/dist/cjs/src/graphql/queries/getFeatureUsage.d.ts +1 -4
  45. package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +2 -4
  46. package/dist/cjs/src/graphql/queries/getPriceListChangeOptions.d.ts +2 -1
  47. package/dist/cjs/src/graphql/queries/getQuote.d.ts +3 -1
  48. package/dist/cjs/src/hooks/quotes/useQuoteCreate.d.ts +12 -0
  49. package/dist/cjs/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +2 -3
  50. package/dist/cjs/src/hooks/useCurrentUserData.d.ts +10 -1
  51. package/dist/cjs/src/hooks/usePaymentPlugins.d.ts +2 -2
  52. package/dist/cjs/src/hooks/useToggleAddonQuoteChange.d.ts +7 -0
  53. package/dist/cjs/src/mocks/handlers.d.ts +1 -1
  54. package/dist/cjs/src/utils/addonPlanUtils.d.ts +4 -0
  55. package/dist/cjs/src/utils/couponUtils.d.ts +2 -0
  56. package/dist/esm/index.js +1343 -912
  57. package/dist/esm/src/components/BillingDetails/BillingDetails.d.ts +1 -1
  58. package/dist/esm/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +2 -2
  59. package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +2 -3
  60. package/dist/esm/src/components/PaymentForm/PaymentMethodDetails.d.ts +1 -1
  61. package/dist/esm/src/components/PlanManagerQuoteProvider.d.ts +19 -0
  62. package/dist/esm/src/components/QuotePreviewProvider.d.ts +0 -2
  63. package/dist/esm/src/components/Subscriptions/AddonIndentation.d.ts +8 -0
  64. package/dist/esm/src/components/Subscriptions/AddonSubscriptionCards.d.ts +7 -0
  65. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +3 -3
  66. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +2 -3
  67. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -1
  68. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +1 -2
  69. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
  70. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +11 -0
  71. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +4 -3
  72. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -3
  73. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +1 -2
  74. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +2 -3
  75. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +3 -2
  76. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +2 -2
  77. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPrice.d.ts +2 -1
  78. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardTitle.d.ts +1 -1
  79. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -3
  80. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/{PriceListSelector.d.ts → priceListSelector/PriceListSelector.d.ts} +1 -2
  81. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListSelector/PriceListSelectorContext.d.ts +9 -0
  82. package/dist/esm/src/components/Subscriptions/QuotePreviewData.d.ts +6 -0
  83. package/dist/esm/src/components/Subscriptions/SubscriptionRequests.d.ts +0 -1
  84. package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +2 -2
  85. package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +1 -1
  86. package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +2 -1
  87. package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -1
  88. package/dist/esm/src/components/TaxationForm.d.ts +2 -2
  89. package/dist/esm/src/graphql/QuoteRequests.d.ts +17 -1
  90. package/dist/esm/src/graphql/mutations/quoteAddonCreate.d.ts +7 -0
  91. package/dist/esm/src/graphql/mutations/quoteChangeCreate.d.ts +8 -0
  92. package/dist/esm/src/graphql/mutations/quoteChangeDelete.d.ts +6 -0
  93. package/dist/esm/src/graphql/mutations/quoteChargeDelete.d.ts +2 -1
  94. package/dist/esm/src/graphql/mutations/quoteCompose.d.ts +0 -1
  95. package/dist/esm/src/graphql/mutations/quoteCreate.d.ts +8 -0
  96. package/dist/esm/src/graphql/mutations/quoteCreateWithDeal.d.ts +10 -0
  97. package/dist/esm/src/graphql/mutations/subscriptionTrialConvert.d.ts +7 -0
  98. package/dist/esm/src/graphql/queries/getCurrentUserData.d.ts +13 -0
  99. package/dist/esm/src/graphql/queries/getFeatureUsage.d.ts +1 -4
  100. package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +2 -4
  101. package/dist/esm/src/graphql/queries/getPriceListChangeOptions.d.ts +2 -1
  102. package/dist/esm/src/graphql/queries/getQuote.d.ts +3 -1
  103. package/dist/esm/src/hooks/quotes/useQuoteCreate.d.ts +12 -0
  104. package/dist/esm/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +2 -3
  105. package/dist/esm/src/hooks/useCurrentUserData.d.ts +10 -1
  106. package/dist/esm/src/hooks/usePaymentPlugins.d.ts +2 -2
  107. package/dist/esm/src/hooks/useToggleAddonQuoteChange.d.ts +7 -0
  108. package/dist/esm/src/mocks/handlers.d.ts +1 -1
  109. package/dist/esm/src/utils/addonPlanUtils.d.ts +4 -0
  110. package/dist/esm/src/utils/couponUtils.d.ts +2 -0
  111. package/dist/index.d.ts +3 -4
  112. package/package.json +1 -1
  113. package/dist/cjs/src/components/UpgradeFromTrial.d.ts +0 -6
  114. package/dist/esm/src/components/UpgradeFromTrial.d.ts +0 -6
  115. /package/dist/cjs/src/components/icons/{iDeal.d.ts → IDeal.d.ts} +0 -0
  116. /package/dist/esm/src/components/icons/{iDeal.d.ts → IDeal.d.ts} +0 -0
@@ -11,6 +11,6 @@ declare const BillingDetails: ({ className, countryListFilter, hideBillingDetail
11
11
  isCardEnabled?: boolean | undefined;
12
12
  isUpgradeFromTrial?: boolean | undefined;
13
13
  shadow?: ShadowType | undefined;
14
- onSavePaymentMethod?: (() => void) | undefined;
14
+ onSavePaymentMethod?: ((paymentMethodData?: any) => void) | undefined;
15
15
  }) => import("react/jsx-runtime").JSX.Element;
16
16
  export default BillingDetails;
@@ -1,5 +1,5 @@
1
- import { PluginData } from "@bunnyapp/common";
2
- export declare const confirmPayment: ({ amount, currency, }: {
1
+ import { PluginData } from '@bunnyapp/common';
2
+ export declare const confirmPayment: ({ amount, currency }: {
3
3
  amount: number;
4
4
  currency: string;
5
5
  }) => {
@@ -1,15 +1,14 @@
1
1
  import { FormattedInvoice, Invoice, PluginData, Quote } from '@bunnyapp/common';
2
- export declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, entityId, overrideToken, customCheckoutFunction, currencyId: currencyIdFromProps, paymentHoldOptions, }: {
2
+ export declare const PaymentForm: ({ invoice, onFail, onPaymentSuccess, onPaymentHoldSuccess, quote, accountId, onSavePaymentMethod, onRemovePaymentMethod, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction, currencyId: currencyIdFromProps, paymentHoldOptions, }: {
3
3
  invoice?: FormattedInvoice | Invoice | undefined;
4
4
  quote?: Quote | undefined;
5
5
  onFail: (error: any) => void;
6
6
  onPaymentSuccess?: (() => void) | undefined;
7
7
  onPaymentHoldSuccess?: ((response: any) => void) | undefined;
8
- onSavePaymentMethod?: (() => void) | undefined;
8
+ onSavePaymentMethod?: ((response: any) => void) | undefined;
9
9
  onRemovePaymentMethod?: (() => void) | undefined;
10
10
  onSetDefaultPaymentMethod?: (() => void) | undefined;
11
11
  accountId?: string | undefined;
12
- entityId?: string | undefined;
13
12
  overrideToken?: string | undefined;
14
13
  customCheckoutFunction?: ((plugin: PluginData | undefined) => Promise<any>) | undefined;
15
14
  currencyId?: string | undefined;
@@ -2,6 +2,6 @@ import { PluginData } from '@bunnyapp/common';
2
2
  declare const PaymentMethodDetails: ({ onFail, plugin, onSavePaymentMethod, }: {
3
3
  onFail: (error: any) => void;
4
4
  plugin: PluginData;
5
- onSavePaymentMethod: () => void;
5
+ onSavePaymentMethod: (response: any) => void;
6
6
  }) => import("react/jsx-runtime").JSX.Element;
7
7
  export default PaymentMethodDetails;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { Quote } from '@bunnyapp/common';
3
+ import { EditingQuoteDataType } from './Subscriptions/SubscriptionsListContainer';
4
+ export type PlanManagerQuoteContextValues = {
5
+ quote: Quote | undefined;
6
+ isQuotePending: boolean;
7
+ isAddonPlanLoading: boolean;
8
+ setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>;
9
+ isFeatureAddonsLoading: boolean;
10
+ addFeatureAddonLoading: (featureAddonId: string) => void;
11
+ removeFeatureAddonLoading: (featureAddonId: string) => void;
12
+ };
13
+ export declare const PlanManagerQuoteContext: import("react").Context<PlanManagerQuoteContextValues>;
14
+ declare function PlanManagerQuoteProvider({ children, editingQuoteData, setEditingQuoteData, }: {
15
+ children: React.ReactNode;
16
+ editingQuoteData: EditingQuoteDataType | undefined;
17
+ setEditingQuoteData: React.Dispatch<React.SetStateAction<EditingQuoteDataType | undefined>>;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ export default PlanManagerQuoteProvider;
@@ -3,12 +3,10 @@ import { PriceList } from '@bunnyapp/common';
3
3
  export type QuotePreviewData = {
4
4
  priceList?: PriceList;
5
5
  quantity?: number;
6
- editingQuoteId?: string;
7
6
  };
8
7
  export type QuotePreviewContextValues = {
9
8
  quotePreviewData?: QuotePreviewData;
10
9
  setQuotePreviewData: React.Dispatch<React.SetStateAction<QuotePreviewData | undefined>>;
11
- handleSetEditingQuote: (editingQuoteId: string) => void;
12
10
  };
13
11
  export declare const QuotePreviewContext: import("react").Context<QuotePreviewContextValues>;
14
12
  declare function QuotePreviewProvider({ children }: {
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface AddonIndentationProps {
3
+ isLast: boolean;
4
+ indentation: number;
5
+ verticalMargin: string;
6
+ }
7
+ declare const AddonIndentation: React.FC<AddonIndentationProps>;
8
+ export default AddonIndentation;
@@ -0,0 +1,7 @@
1
+ import { Subscription } from '@bunnyapp/common';
2
+ export declare function AddonSubscriptionsCards({ onCancelSubscriptionClick, subscriptions, subscription, hideExpired, }: {
3
+ onCancelSubscriptionClick?: (subscription: Subscription) => void;
4
+ subscriptions: Subscription[];
5
+ subscription: Subscription;
6
+ hideExpired: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,8 +1,7 @@
1
- import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
1
+ import { PriceList, BillingPeriod, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
2
  import { Dispatch, SetStateAction } from 'react';
3
3
  type PriceListGridProps = {
4
4
  availablePriceLists: PriceList[];
5
- onChangePriceList: (selectedPriceList: PriceList) => void;
6
5
  priceListChangeOptions?: PriceListChangeOptions;
7
6
  selectedPriceList?: PriceList;
8
7
  selectedProduct?: Product;
@@ -10,6 +9,7 @@ type PriceListGridProps = {
10
9
  priceListStart: number;
11
10
  setPriceListStart: Dispatch<SetStateAction<number>>;
12
11
  upgradingSubscriptionState?: Subscription;
12
+ selectedBillingPeriod?: BillingPeriod | undefined;
13
13
  };
14
- declare const PriceListGrid: ({ availablePriceLists, onChangePriceList, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, upgradingSubscriptionState, }: PriceListGridProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const PriceListGrid: ({ availablePriceLists, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, upgradingSubscriptionState, selectedBillingPeriod, }: PriceListGridProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export default PriceListGrid;
@@ -1,7 +1,6 @@
1
- import { PriceList, Quote, Subscription } from '@bunnyapp/common';
2
- declare const CheckoutBarSummarySection: ({ open, quote, selectedPriceList, onClickCheckout, upgradingSubscription, }: {
1
+ import { PriceList, Subscription } from '@bunnyapp/common';
2
+ declare const CheckoutBarSummarySection: ({ open, selectedPriceList, onClickCheckout, upgradingSubscription, }: {
3
3
  open: boolean;
4
- quote?: Quote | undefined;
5
4
  selectedPriceList: PriceList;
6
5
  onClickCheckout: () => void;
7
6
  upgradingSubscription?: Subscription | undefined;
@@ -1,6 +1,7 @@
1
- declare const CheckoutButton: ({ checkoutButtonDisabled, onClickCheckout, loading, }: {
1
+ declare const CheckoutButton: ({ checkoutButtonDisabled, onClickCheckout, loading, tooltipText, }: {
2
2
  checkoutButtonDisabled: boolean;
3
3
  onClickCheckout: () => void;
4
4
  loading: boolean;
5
+ tooltipText?: string | undefined;
5
6
  }) => import("react/jsx-runtime").JSX.Element;
6
7
  export default CheckoutButton;
@@ -1,7 +1,6 @@
1
1
  import { EditingQuoteDataType } from '../../../Subscriptions';
2
- declare const PlanPickerCheckoutBarWrapper: ({ editingQuote, setEditingQuoteData, handlePortalErrors, onCheckoutSuccess, }: {
2
+ declare const PlanPickerCheckoutBarWrapper: ({ editingQuote, handlePortalErrors, onCheckoutSuccess, }: {
3
3
  editingQuote?: EditingQuoteDataType | undefined;
4
- setEditingQuoteData?: ((quoteId?: string, isTrial?: boolean) => void) | undefined;
5
4
  handlePortalErrors?: ((errors: any) => void) | undefined;
6
5
  onCheckoutSuccess: () => void;
7
6
  }) => import("react/jsx-runtime").JSX.Element | null;
@@ -59,9 +59,10 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
59
59
  trialLengthDays?: number | undefined;
60
60
  updatedAt: string;
61
61
  }[];
62
- declare const EverythingPlanFeatures: ({ displayPriceLists, selectedProduct, plansToDisplay, }: {
62
+ declare const EverythingPlanFeatures: ({ displayPriceLists, selectedProduct, plansToDisplay, hideBorder, }: {
63
63
  displayPriceLists: PriceList[];
64
64
  plansToDisplay: number;
65
65
  selectedProduct?: Product | undefined;
66
+ hideBorder?: boolean | undefined;
66
67
  }) => import("react/jsx-runtime").JSX.Element;
67
68
  export default EverythingPlanFeatures;
@@ -0,0 +1,11 @@
1
+ import { BillingPeriod, Plan, PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
+ type PlanAddonsCardProps = {
3
+ selectedPriceList: PriceList;
4
+ subscriptions: Subscription[];
5
+ addonPlans: Plan[];
6
+ selectedProduct: Product | undefined;
7
+ priceListChangeOptions: PriceListChangeOptions | undefined;
8
+ selectedBillingPeriod: BillingPeriod | undefined;
9
+ };
10
+ declare const PlanAddonsCard: ({ selectedPriceList, subscriptions, addonPlans, selectedProduct, priceListChangeOptions, selectedBillingPeriod, }: PlanAddonsCardProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default PlanAddonsCard;
@@ -1,13 +1,14 @@
1
1
  import { Feature, PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCardDesktop: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, priceList, subscriptionPlan, trialRemainingDays, }: {
2
+ declare const PriceListCardDesktop: ({ hideButton, description, disableSelectCurrentPlan, feature, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, trialRemainingDays, noBorder, }: {
3
+ hideButton?: boolean | undefined;
3
4
  description: string;
4
- disableOnClick: boolean;
5
+ disableSelectCurrentPlan: boolean;
5
6
  feature?: Feature | undefined;
6
7
  isPriceListCurrentSubscription: boolean;
7
8
  isSelected: boolean;
8
- onClick: (priceList: PriceList) => void;
9
9
  priceList: PriceList;
10
10
  subscriptionPlan?: Subscription | undefined;
11
11
  trialRemainingDays?: number | undefined;
12
+ noBorder?: boolean | undefined;
12
13
  }) => import("react/jsx-runtime").JSX.Element;
13
14
  export default PriceListCardDesktop;
@@ -1,8 +1,7 @@
1
- import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
1
+ import { BillingPeriod, PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
2
  import { Dispatch, SetStateAction } from 'react';
3
3
  type PriceListGridDesktopProps = {
4
4
  availablePriceLists: PriceList[];
5
- onChangePriceList: (selectedPriceList: PriceList) => void;
6
5
  priceListChangeOptions?: PriceListChangeOptions;
7
6
  priceListStart: number;
8
7
  selectedPriceList?: PriceList;
@@ -10,6 +9,7 @@ type PriceListGridDesktopProps = {
10
9
  setPriceListStart: Dispatch<SetStateAction<number>>;
11
10
  subscriptions: Subscription[];
12
11
  trialRemainingDays: number;
12
+ selectedBillingPeriod?: BillingPeriod | undefined;
13
13
  };
14
- declare const PriceListGridDesktop: ({ availablePriceLists, onChangePriceList, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, trialRemainingDays, }: PriceListGridDesktopProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const PriceListGridDesktop: ({ availablePriceLists, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, trialRemainingDays, selectedBillingPeriod, }: PriceListGridDesktopProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export default PriceListGridDesktop;
@@ -1,11 +1,10 @@
1
1
  import { Feature, PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCardMobile: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, priceList, subscriptionPlan, trialRemainingDays, }: {
2
+ declare const PriceListCardMobile: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, trialRemainingDays, }: {
3
3
  description: string;
4
4
  disableOnClick: boolean;
5
5
  feature?: Feature | undefined;
6
6
  isPriceListCurrentSubscription: boolean;
7
7
  isSelected: boolean;
8
- onClick: (priceList: PriceList) => void;
9
8
  priceList: PriceList;
10
9
  subscriptionPlan?: Subscription | undefined;
11
10
  trialRemainingDays?: number | undefined;
@@ -1,7 +1,6 @@
1
- import { PriceList, PriceListChangeOptions, Product, Subscription } from "@bunnyapp/common";
2
- declare const PriceListGridMobile: ({ availablePriceLists, onChangePriceList, priceListChangeOptions, selectedPriceList, selectedProduct, subscriptions, trialRemainingDays, }: {
1
+ import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
+ declare const PriceListGridMobile: ({ availablePriceLists, priceListChangeOptions, selectedPriceList, selectedProduct, subscriptions, trialRemainingDays, }: {
3
3
  availablePriceLists: PriceList[];
4
- onChangePriceList: (selectedPriceList: PriceList) => void;
5
4
  priceListChangeOptions?: PriceListChangeOptions | undefined;
6
5
  selectedPriceList?: PriceList | undefined;
7
6
  selectedProduct?: Product | undefined;
@@ -1,9 +1,10 @@
1
1
  import { PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCard: ({ isSelected, onClick, priceList, subscriptions, trialRemainingDays, }: {
2
+ declare const PriceListCard: ({ hideButton, isSelected, priceList, subscriptions, trialRemainingDays, noBorder, }: {
3
+ hideButton?: boolean | undefined;
3
4
  isSelected: boolean;
4
- onClick: (priceList: PriceList) => void;
5
5
  priceList: PriceList;
6
6
  subscriptions?: Subscription[] | undefined;
7
7
  trialRemainingDays?: number | undefined;
8
+ noBorder?: boolean | undefined;
8
9
  }) => import("react/jsx-runtime").JSX.Element | null;
9
10
  export default PriceListCard;
@@ -1,6 +1,6 @@
1
1
  import { PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCardButton: ({ disableOnClick, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, }: {
3
- disableOnClick: boolean;
2
+ declare const PriceListCardButton: ({ disableSelectCurrentPlan, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, }: {
3
+ disableSelectCurrentPlan: boolean;
4
4
  isPriceListCurrentSubscription: boolean;
5
5
  isSelected: boolean;
6
6
  priceList: PriceList;
@@ -1,5 +1,6 @@
1
1
  import { PriceList } from '@bunnyapp/common';
2
- declare const PriceListCardPrice: ({ priceList }: {
2
+ declare const PriceListCardPrice: ({ priceList, fontSize, }: {
3
3
  priceList: PriceList;
4
+ fontSize?: string | undefined;
4
5
  }) => import("react/jsx-runtime").JSX.Element;
5
6
  export default PriceListCardPrice;
@@ -1,4 +1,4 @@
1
- import { PriceList } from "@bunnyapp/common";
1
+ import { PriceList } from '@bunnyapp/common';
2
2
  declare const PriceListCardTitle: ({ priceList, isPriceListCurrentSubscription, trialRemainingDays, }: {
3
3
  priceList: PriceList;
4
4
  isPriceListCurrentSubscription: boolean;
@@ -3,9 +3,7 @@ export declare const createPlanDescription: (priceList: PriceList) => string;
3
3
  export declare const getActivePlanPriceData: (priceList?: PriceList, selectedPriceList?: PriceList) => {
4
4
  activeCharge: PriceListCharge | undefined;
5
5
  } | undefined;
6
- export declare const isPriceListDisabled: ({ priceList, subscriptions, upgradingSubscription, canPurchaseFeatureAddons, }: {
6
+ export declare const isPriceListDisabled: ({ priceList, upgradingSubscription, }: {
7
7
  priceList: PriceList;
8
- subscriptions?: Subscription[] | undefined;
9
8
  upgradingSubscription: Subscription | undefined;
10
- canPurchaseFeatureAddons: boolean;
11
9
  }) => boolean;
@@ -1,8 +1,7 @@
1
1
  import { PriceList, PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
- declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, onChangePriceList, priceListChangeOptions, selectedPriceList, subscriptions, }: {
2
+ declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, priceListChangeOptions, selectedPriceList, subscriptions, }: {
3
3
  arePlanChangeOptionsLoading: boolean;
4
4
  areSubscriptionsLoading: boolean;
5
- onChangePriceList: (selectedPriceList: PriceList) => void;
6
5
  priceListChangeOptions?: PriceListChangeOptions | undefined;
7
6
  selectedPriceList?: PriceList | undefined;
8
7
  subscriptions: Subscription[];
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { PriceList } from '@bunnyapp/common';
3
+ export type PriceListSelectorContextValues = {
4
+ onChangePriceList: (selectedPriceList: PriceList) => void;
5
+ };
6
+ export declare const PriceListSelectorContext: import("react").Context<PriceListSelectorContextValues>;
7
+ export declare function PriceListSelectorProvider({ children }: {
8
+ children: React.ReactNode;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Plan, PriceList } from '@bunnyapp/common';
2
+ export type QuotePreviewData = {
3
+ priceList?: PriceList;
4
+ quantity?: number;
5
+ addonPlans?: Plan[];
6
+ };
@@ -1,2 +1 @@
1
1
  export declare const useCancelSubscription: () => (subscriptionIds: string[], apiHost: string, token?: string) => Promise<any>;
2
- export declare const useSubscriptionTrialConvert: (handlePortalErrors: (errors: any) => void, apiHost: string) => (subscriptionId: string, token?: string, paymentId?: string) => Promise<any>;
@@ -1,7 +1,7 @@
1
1
  import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
2
  declare const SubscriptionCardActions: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, }: {
3
- onChangePlanClick: (subscription: Subscription) => void;
4
- onCancelSubscriptionClick: (subscription: Subscription) => void;
3
+ onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
4
+ onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
5
5
  priceListChangeOptions?: PriceListChangeOptions | undefined;
6
6
  subscription: Subscription;
7
7
  }) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { PriceListChangeOptions, Subscription } from "@bunnyapp/common";
1
+ import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
2
  declare const SubscriptionsList: ({ hideExpired, onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscriptions, }: {
3
3
  hideExpired: boolean;
4
4
  onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
@@ -1,8 +1,9 @@
1
1
  import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
- declare const SubscriptionCardDesktop: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, }: {
2
+ declare const SubscriptionCardDesktop: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, isAddon, }: {
3
3
  onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
4
4
  onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
5
5
  priceListChangeOptions?: PriceListChangeOptions | undefined;
6
6
  subscription: Subscription;
7
+ isAddon?: boolean | undefined;
7
8
  }) => import("react/jsx-runtime").JSX.Element;
8
9
  export default SubscriptionCardDesktop;
@@ -1,4 +1,4 @@
1
- import { Plan, Product, Quote, Subscription, SubscriptionCharge, QuoteChangeKind } from '@bunnyapp/common';
1
+ import { Plan, Product, Quote, QuoteChangeKind, Subscription, SubscriptionCharge } from '@bunnyapp/common';
2
2
  import { EditingSubscriptionType } from '../quantityChangeDrawer/QuantityInput';
3
3
  export declare const canShowQuantitiesInput: (charge: SubscriptionCharge, subscription: Subscription) => boolean | undefined;
4
4
  export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: number, editedSubscription?: EditingSubscriptionType) => {
@@ -11,6 +11,7 @@ export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: num
11
11
  export declare const canShowChangeQuantities: ({ subscriptions }: {
12
12
  subscriptions: Subscription[];
13
13
  }) => boolean;
14
+ export declare const canSubscriptionUpgradeFromTrial: (subscription: Subscription) => boolean;
14
15
  export declare const isSubscriptionNotActive: (subscription: Subscription) => boolean;
15
16
  export declare const productPlanName: ({ plan, product }: {
16
17
  plan: Plan;
@@ -1,5 +1,5 @@
1
- import { Account, Quote } from "@bunnyapp/common";
2
- declare const TaxationForm: ({ account, quote, }: {
1
+ import { Account, Quote } from '@bunnyapp/common';
2
+ declare const TaxationForm: ({ account, quote }: {
3
3
  account: Account;
4
4
  quote: Quote;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,23 @@
1
- export declare const useQuoteSubscriptionUpgrade: () => (subscriptionId: string, priceListId: string, apiHost: string, token?: string) => Promise<unknown>;
1
+ export declare const quoteSubscriptionUpgrade: ({ subscriptionId, priceListId, apiHost, token, }: {
2
+ subscriptionId: string;
3
+ priceListId: string;
4
+ apiHost: string;
5
+ token?: string | undefined;
6
+ }) => Promise<unknown>;
2
7
  export declare const useCreateSubscriptionQuote: () => (subscriptionIds: string[], apiHost: string, token?: string) => Promise<unknown>;
3
8
  export declare const useQuoteChangeUpdate: () => (charges: {
4
9
  id: string;
5
10
  quantity: number;
6
11
  }[], quoteChangeId: string, apiHost: string, token?: string) => Promise<unknown>;
7
12
  export declare const useQuoteDelete: () => (quoteId: string, apiHost: string, token?: string) => Promise<unknown>;
13
+ export declare const quoteSubscriptionAddon: ({ subscriptionId, priceListId, apiHost, token, }: {
14
+ subscriptionId: string;
15
+ priceListId?: string | undefined;
16
+ apiHost: string;
17
+ token?: string | undefined;
18
+ }) => Promise<unknown>;
19
+ export declare const quoteSubscriptionActivate: ({ subscriptionId, apiHost, token, }: {
20
+ subscriptionId: string;
21
+ apiHost: string;
22
+ token?: string | undefined;
23
+ }) => Promise<unknown>;
@@ -0,0 +1,7 @@
1
+ declare const quoteChangeCreate: ({ parentQuoteChangeId, priceListId, apiHost, token, }: {
2
+ parentQuoteChangeId: string | null;
3
+ priceListId: string | null;
4
+ apiHost: string;
5
+ token?: string | undefined;
6
+ }) => Promise<any>;
7
+ export default quoteChangeCreate;
@@ -0,0 +1,8 @@
1
+ declare const quoteChangeCreate: ({ parentQuoteChangeId, priceListId, apiHost, token, quoteId, }: {
2
+ parentQuoteChangeId: string | null;
3
+ priceListId: string | null;
4
+ apiHost: string;
5
+ token?: string | undefined;
6
+ quoteId: string;
7
+ }) => Promise<any>;
8
+ export default quoteChangeCreate;
@@ -0,0 +1,6 @@
1
+ declare const quoteChangeDelete: ({ id, apiHost, token, }: {
2
+ id: string;
3
+ apiHost: string;
4
+ token?: string | undefined;
5
+ }) => Promise<any>;
6
+ export default quoteChangeDelete;
@@ -1,7 +1,8 @@
1
+ import { QuoteCharge } from '@bunnyapp/common';
1
2
  type QuoteChargeDeleteProps = {
2
3
  apiHost: string;
3
4
  quoteChargeId: string;
4
5
  token?: string;
5
6
  };
6
- declare const quoteChargeDelete: ({ quoteChargeId, token, apiHost }: QuoteChargeDeleteProps) => Promise<unknown>;
7
+ declare const quoteChargeDelete: ({ quoteChargeId, token, apiHost }: QuoteChargeDeleteProps) => Promise<QuoteCharge>;
7
8
  export default quoteChargeDelete;
@@ -1,5 +1,4 @@
1
1
  import { Quote } from '@bunnyapp/common';
2
- export declare const QUOTE_FIELDS = "quote {\n formattedQuote {\n html\n }\n acceptedByName\n acceptedByTitle\n accountId\n amount\n amountDue\n applicationDate\n applied\n billingDay\n contactId\n createdAt\n credits\n currencyId\n dealId\n discount\n discountValue\n endDate\n evergreen\n expiresAt\n id\n invoiceUntil\n isPendingApprovalRequest\n kind\n message\n name\n netPaymentDays\n notes\n ownerId\n periodAmount\n poNumber\n requiresApproval\n startDate\n state\n subtotal\n taxAmount\n updatedAt\n uuid\n amountsByPeriod {\n amount\n id\n name\n }\n endDateOptions {\n endDate\n label\n }\n invoiceUntilOptions {\n endDate\n label\n }\n quoteChanges {\n currencyId\n id\n kind\n charges {\n amountsByPeriod {\n amount\n startDate\n }\n amount\n billingPeriod\n billingPeriodAmounts { id amount prorationRate }\n chargeType\n couponId\n createdAt\n currencyId\n discount\n endDate\n feature { id name code isUnit unitName }\n id\n name\n priceListCharge {\n id\n }\n priceList {\n id\n }\n couponId\n price\n priceDecimals\n priceTiers { starts price }\n pricingModel\n prorationRate\n quantity\n quantityMax\n quantityMin\n startDate\n tieredAveragePrice\n updatedAt\n kind\n }\n priceList {\n id\n plan {\n name\n }\n product {\n name\n }\n }\n }\n}";
3
2
  type Options = {
4
3
  quoteId?: string;
5
4
  priceListId?: string;
@@ -0,0 +1,8 @@
1
+ import { Quote } from '@bunnyapp/common';
2
+ type Options = {
3
+ attributes: any;
4
+ token?: string;
5
+ apiHost: string;
6
+ };
7
+ declare const quoteCreate: ({ attributes, token, apiHost }: Options) => Promise<Quote>;
8
+ export default quoteCreate;
@@ -0,0 +1,10 @@
1
+ import { Quote } from '@bunnyapp/common';
2
+ type Options = {
3
+ dealAttributes: any;
4
+ quoteAttributes: any;
5
+ token?: string;
6
+ apiHost: string;
7
+ accountId: string;
8
+ };
9
+ declare const quoteCreateWithDeal: ({ dealAttributes, quoteAttributes, accountId, token, apiHost, }: Options) => Promise<Quote>;
10
+ export default quoteCreateWithDeal;
@@ -0,0 +1,7 @@
1
+ declare const subscriptionTrialConvert: ({ subscriptionId, paymentMethodId, apiHost, token, }: {
2
+ subscriptionId: string;
3
+ paymentMethodId?: string | undefined;
4
+ apiHost: string;
5
+ token?: string | undefined;
6
+ }) => Promise<any>;
7
+ export default subscriptionTrialConvert;
@@ -0,0 +1,13 @@
1
+ declare const getCurrentUserData: ({ token, apiHost }: {
2
+ token?: string | undefined;
3
+ apiHost: string;
4
+ }) => Promise<{
5
+ authObjectName: any;
6
+ account: any;
7
+ companyName: any;
8
+ returnUrl: any;
9
+ privacyUrl: any;
10
+ termsUrl: any;
11
+ entityId: any;
12
+ }>;
13
+ export default getCurrentUserData;
@@ -1,9 +1,6 @@
1
1
  import { FeatureUsage } from '@bunnyapp/common';
2
- declare const getFeatureUsage: ({ subscriptionChargeId, startDate, endDate, dataInterval, token, apiHost, }: {
2
+ declare const getFeatureUsage: ({ subscriptionChargeId, token, apiHost, }: {
3
3
  subscriptionChargeId: string;
4
- startDate?: string | undefined;
5
- endDate?: string | undefined;
6
- dataInterval?: number | undefined;
7
4
  token?: string | undefined;
8
5
  apiHost: string;
9
6
  }) => Promise<FeatureUsage>;
@@ -1,7 +1,5 @@
1
- import { FormattedQuote } from '@bunnyapp/common';
2
- declare const getFormattedQuote: ({ id, token, apiHost, }: {
3
- id?: string | undefined;
1
+ declare const getFormattedQuote: ({ token, apiHost }: {
4
2
  apiHost: string;
5
3
  token?: string | undefined;
6
- }) => Promise<FormattedQuote>;
4
+ }) => Promise<any>;
7
5
  export default getFormattedQuote;
@@ -1,9 +1,10 @@
1
1
  import { Subscription } from '@bunnyapp/common';
2
- declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, productId, token, upgradingSubscription, }: {
2
+ declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, productId, token, upgradingSubscription, accountCurrencyId, }: {
3
3
  apiHost: string;
4
4
  isInPreviewMode?: boolean | undefined;
5
5
  productId?: string | undefined;
6
6
  token?: string | undefined;
7
7
  upgradingSubscription?: Subscription | undefined;
8
+ accountCurrencyId: string;
8
9
  }) => Promise<any>;
9
10
  export default getPriceListChangeOptions;
@@ -1,7 +1,9 @@
1
1
  import { Quote } from '@bunnyapp/common';
2
- declare const getQuote: ({ id, token, apiHost, }: {
2
+ export declare const QUOTE_FIELDS: (removeFormattedQuoteField?: boolean) => string;
3
+ declare const getQuote: ({ id, token, apiHost, removeFormattedQuoteField, }: {
3
4
  id: string;
4
5
  token?: string | undefined;
5
6
  apiHost: string;
7
+ removeFormattedQuoteField?: boolean | undefined;
6
8
  }) => Promise<Quote>;
7
9
  export default getQuote;
@@ -0,0 +1,12 @@
1
+ import { PriceList, Quote, Subscription } from '@bunnyapp/common';
2
+ import { EditingQuoteDataType } from '../../components/Subscriptions/SubscriptionsListContainer';
3
+ export declare const useQuoteCreate: ({ editingQuote, setEditingQuoteData, upgradingSubscription, selectedPriceList, token, }: {
4
+ editingQuote?: EditingQuoteDataType | undefined;
5
+ setEditingQuoteData: (quoteId?: string, isTrial?: boolean) => void;
6
+ upgradingSubscription?: Subscription | undefined;
7
+ selectedPriceList?: PriceList | undefined;
8
+ token?: string | undefined;
9
+ }) => {
10
+ quote: Quote | undefined;
11
+ isQuotePending: boolean;
12
+ };
@@ -1,8 +1,7 @@
1
- import { PriceListCharge } from '@bunnyapp/common';
2
- export declare const useQuoteUpdateFeatureAddon: (quoteId: string | undefined, featureAddon: PriceListCharge) => {
1
+ import { PriceListCharge, Quote } from '@bunnyapp/common';
2
+ export declare const useQuoteUpdateFeatureAddon: (quote: Quote | undefined, featureAddon: PriceListCharge) => {
3
3
  handleAddFeatureAddon: () => void;
4
4
  handleRemoveFeatureAddon: () => void;
5
5
  isPending: boolean;
6
6
  isChecked: boolean;
7
- editingQuoteLoaded: boolean;
8
7
  };
@@ -1,2 +1,11 @@
1
- declare const useCurrentUserData: () => any;
1
+ import { currentUser as CurrentUser } from '@bunnyapp/common';
2
+ declare const useCurrentUserData: (token: string | undefined) => {
3
+ authObjectName: any;
4
+ account: any;
5
+ companyName: any;
6
+ returnUrl: any;
7
+ privacyUrl: any;
8
+ termsUrl: any;
9
+ entityId: any;
10
+ } | CurrentUser;
2
11
  export default useCurrentUserData;
@@ -19,10 +19,10 @@ type PaymentPlugin = {
19
19
  }[];
20
20
  };
21
21
  };
22
- export declare const usePaymentPlugins: ({ apiHost, token, selectedEntityId, }: {
22
+ export declare const usePaymentPlugins: ({ apiHost, token, accountId, }: {
23
23
  apiHost: string;
24
24
  token?: string | undefined;
25
- selectedEntityId?: string | null | undefined;
25
+ accountId?: string | undefined;
26
26
  }) => {
27
27
  paymentPlugins: PaymentPlugin[];
28
28
  isFetched: boolean;
@@ -0,0 +1,7 @@
1
+ import { Plan, PriceList, Quote } from '@bunnyapp/common';
2
+ export declare const useToggleAddonPlan: (quote: Quote | undefined, plan: Plan, billingPeriod: number, selectedPriceList: PriceList, setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>) => {
3
+ isPending: boolean;
4
+ addedQuoteChange: boolean;
5
+ deleteQuoteChange: () => void;
6
+ addAddonQuoteChange: () => void;
7
+ };