@bunnyapp/components 1.7.0 → 1.8.0-beta.2

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 (584) hide show
  1. package/dist/cjs/index.js +9524 -6746
  2. package/dist/cjs/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
  3. package/dist/cjs/types/src/UI/Tooltip.d.ts +2 -0
  4. package/dist/cjs/types/src/UI/TruncatedText/TruncatedText.d.ts +4 -0
  5. package/dist/cjs/types/src/UI/TruncatedText/hooks/useIsTextTruncated.d.ts +3 -0
  6. package/dist/cjs/types/src/components/BillingDetails/BillingDetails.d.ts +3 -2
  7. package/dist/cjs/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +1 -0
  8. package/dist/cjs/types/src/components/{BunnyProvider.d.ts → BunnyProvider/BunnyProvider.d.ts} +4 -1
  9. package/dist/cjs/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +13 -0
  10. package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +3 -2
  11. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +24 -3
  12. package/dist/cjs/types/src/components/Checkout/QuoteIsLoadingIndicator.d.ts +1 -0
  13. package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +8 -2
  14. package/dist/cjs/types/src/components/FeatureUsageGraph.d.ts +31 -4
  15. package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +3 -2
  16. package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
  17. package/dist/cjs/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
  18. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +5 -2
  19. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +5 -3
  20. package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +26 -4
  21. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +5 -2
  22. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +5 -3
  23. package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -2
  24. package/dist/cjs/types/src/components/PaymentForm/components/CouponEditor.d.ts +0 -2
  25. package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +23 -4
  26. package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +1 -1
  27. package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +3 -0
  28. package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +19 -3
  29. package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +2 -1
  30. package/dist/cjs/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +4 -1
  31. package/dist/cjs/types/src/components/PaymentForm/types/PaymentFormTypes.d.ts +1 -1
  32. package/dist/cjs/types/src/components/Quote/Quote.d.ts +3 -1
  33. package/dist/cjs/types/src/components/Quote/components/AcceptQuoteModal.d.ts +19 -0
  34. package/dist/cjs/types/src/components/Quote/components/NoSigningPluginsForm.d.ts +17 -0
  35. package/dist/cjs/types/src/components/Quote/components/PaymentHoldModal.d.ts +25 -0
  36. package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +27 -0
  37. package/dist/cjs/types/src/components/QuoteProvider/context/QuoteContext.d.ts +2 -1
  38. package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +32 -0
  39. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +1 -1
  40. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -0
  41. package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +4 -4
  42. package/dist/cjs/types/src/components/QuoteProvider/hooks/useIsFetchingQuote.d.ts +4 -0
  43. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuantityEditableCharges.d.ts +70 -0
  44. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -1
  45. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +29 -5
  46. package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +37 -0
  47. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeCreate.d.ts +23 -0
  48. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +12 -0
  49. package/dist/cjs/types/src/components/QuoteProvider/quoteMutationKeys.d.ts +20 -0
  50. package/dist/cjs/types/src/components/Quotes/Quotes.d.ts +1 -1
  51. package/dist/cjs/types/src/components/Signup/CheckoutSummary.d.ts +41 -5
  52. package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +12 -3
  53. package/dist/cjs/types/src/components/Signup/PriceListDisplay.d.ts +18 -4
  54. package/dist/cjs/types/src/components/Signup/Signup.d.ts +0 -1
  55. package/dist/cjs/types/src/components/Signup/components/SelfServiceBuyWarning.d.ts +14 -0
  56. package/dist/cjs/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +17 -0
  57. package/dist/cjs/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +17 -0
  58. package/dist/cjs/types/src/components/Signup/mutations/accountSignup.d.ts +58 -0
  59. package/dist/cjs/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +31 -0
  60. package/dist/{esm/types/src/graphql → cjs/types/src/components/Signup}/mutations/quoteRecalculateTaxes.d.ts +5 -1
  61. package/dist/{esm/types/src/graphql → cjs/types/src/components/Signup}/queries/getPriceList.d.ts +5 -2
  62. package/dist/cjs/types/src/components/Signup/queries/getQuote.d.ts +10 -0
  63. package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +17 -6
  64. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +4 -8
  65. package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +12 -6
  66. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
  67. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
  68. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +4 -1
  69. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +21 -0
  70. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/hooks/useChargeCRUD.d.ts +31 -0
  71. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -1
  72. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +9 -4
  73. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +10 -15
  74. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_QuoteFragment.d.ts +20 -0
  75. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
  76. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
  77. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +2 -1
  78. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +4 -1
  79. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +0 -3
  80. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +2 -0
  81. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +1 -1
  82. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +4 -17
  83. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +2 -1
  84. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +1 -1
  85. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +1 -1
  86. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +15 -13
  87. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -3
  88. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +4 -1
  89. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerUtils.d.ts +2 -1
  90. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +12 -0
  91. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +13 -6
  92. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +3 -2
  93. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +15 -1
  94. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardDescription.d.ts +3 -2
  95. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  96. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +2 -4
  97. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +16 -1
  98. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/utils/createAvailableBillingPeriods.d.ts +16 -0
  99. package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +12 -7
  100. package/dist/cjs/types/src/components/Subscriptions/Upgrade/contexts/DefaultBillingPeriodContext.d.ts +4 -0
  101. package/dist/cjs/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +175 -0
  102. package/dist/cjs/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +5 -0
  103. package/dist/cjs/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +5 -0
  104. package/dist/cjs/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +14 -0
  105. package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +58 -0
  106. package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +4 -0
  107. package/dist/cjs/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +17 -0
  108. package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +32 -0
  109. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +3 -4
  110. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +3 -2
  111. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +4 -1
  112. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
  113. package/dist/cjs/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +197 -0
  114. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +15 -3
  115. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +23 -3
  116. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +22 -5
  117. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  118. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +23 -5
  119. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +39 -0
  120. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +30 -5
  121. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -5
  122. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +20 -0
  123. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +19 -0
  124. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +31 -3
  125. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +74 -9
  126. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +12 -0
  127. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +12 -0
  128. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +9 -2
  129. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +14 -2
  130. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +15 -5
  131. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -4
  132. package/dist/cjs/types/src/components/TaxationForm.d.ts +1 -1
  133. package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +2 -1
  134. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
  135. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +1 -1
  136. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  137. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
  138. package/dist/cjs/types/src/components/Transactions/transactionsList/utils.d.ts +1 -1
  139. package/dist/cjs/types/src/components/index.d.ts +1 -1
  140. package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +6 -5
  141. package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +2 -1
  142. package/dist/cjs/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +10 -3
  143. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +1 -1
  144. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +1 -1
  145. package/dist/cjs/types/src/consts/AppConsts.d.ts +13 -0
  146. package/dist/cjs/types/src/consts/DefaultBranding.d.ts +4 -0
  147. package/dist/cjs/types/src/consts/Lists.d.ts +4 -0
  148. package/dist/cjs/types/src/consts/StyleConsts.d.ts +58 -0
  149. package/dist/cjs/types/src/consts/index.d.ts +4 -0
  150. package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +4 -1
  151. package/dist/cjs/types/src/contexts/TransactionsListContext.d.ts +2 -1
  152. package/dist/cjs/types/src/contexts/onPaymentMethodRemoved.d.ts +5 -0
  153. package/dist/cjs/types/src/contexts/onPaymentMethodSaved.d.ts +5 -0
  154. package/dist/cjs/types/src/enums/ChargeType.d.ts +6 -0
  155. package/dist/cjs/types/src/enums/ColumnFormat.d.ts +16 -0
  156. package/dist/cjs/types/src/enums/CreditNoteState.d.ts +8 -0
  157. package/dist/cjs/types/src/enums/PriceAdjustmentAction.d.ts +6 -0
  158. package/dist/cjs/types/src/enums/PriceAdjustmentTiming.d.ts +16 -0
  159. package/dist/cjs/types/src/enums/QuoteChangeKind.d.ts +16 -0
  160. package/dist/cjs/types/src/enums/TransactionState.d.ts +14 -0
  161. package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +6 -3
  162. package/dist/cjs/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +1 -1
  163. package/dist/cjs/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +1 -1
  164. package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +1 -1
  165. package/dist/cjs/types/src/graphql/mutations/quoteCreate.d.ts +1 -1
  166. package/dist/cjs/types/src/graphql/mutations/quoteCreateWithDeal.d.ts +1 -1
  167. package/dist/cjs/types/src/graphql/queries/getAccount.d.ts +6 -0
  168. package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
  169. package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +10 -3
  170. package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
  171. package/dist/cjs/types/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
  172. package/dist/cjs/types/src/graphql/queries/getTransactions.d.ts +1 -1
  173. package/dist/cjs/types/src/graphql-codegen/exportedScalarTypes.d.ts +3 -0
  174. package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +5 -1
  175. package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +3 -3
  176. package/dist/cjs/types/src/hooks/useHasTaxPlugin.d.ts +1 -1
  177. package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +2 -2
  178. package/dist/cjs/types/src/hooks/useSigningPlugins.d.ts +2 -2
  179. package/dist/cjs/types/src/hooks/useUpdateCoupons.d.ts +2 -2
  180. package/dist/cjs/types/src/types/Account.d.ts +73 -0
  181. package/dist/cjs/types/src/types/AccountBalance.d.ts +6 -0
  182. package/dist/cjs/types/src/types/AccountType.d.ts +7 -0
  183. package/dist/cjs/types/src/types/ApprovalDecision.d.ts +13 -0
  184. package/dist/cjs/types/src/types/ApprovalRequest.d.ts +18 -0
  185. package/dist/cjs/types/src/types/ApprovalRule.d.ts +15 -0
  186. package/dist/cjs/types/src/types/Approver.d.ts +10 -0
  187. package/dist/cjs/types/src/types/Campaign.d.ts +13 -0
  188. package/dist/cjs/types/src/types/Contact.d.ts +27 -0
  189. package/dist/cjs/types/src/types/Coupon.d.ts +19 -0
  190. package/dist/cjs/types/src/types/CreditNote.d.ts +45 -0
  191. package/dist/cjs/types/src/types/CreditNoteItem.d.ts +20 -0
  192. package/dist/cjs/types/src/types/Currency.d.ts +11 -0
  193. package/dist/cjs/types/src/types/Deal.d.ts +38 -0
  194. package/dist/cjs/types/src/types/DealStage.d.ts +12 -0
  195. package/dist/cjs/types/src/types/DisputeReason.d.ts +6 -0
  196. package/dist/cjs/types/src/types/DynamicComponent.d.ts +12 -0
  197. package/dist/cjs/types/src/types/Entity.d.ts +41 -0
  198. package/dist/cjs/types/src/types/Feature.d.ts +21 -0
  199. package/dist/cjs/types/src/types/FeatureUsage.d.ts +35 -0
  200. package/dist/cjs/types/src/types/FormattedInvoice.d.ts +50 -0
  201. package/dist/cjs/types/src/types/FormattedQuote.d.ts +49 -0
  202. package/dist/cjs/types/src/types/Invoice.d.ts +60 -0
  203. package/dist/cjs/types/src/types/InvoiceConnection.d.ts +6 -0
  204. package/dist/cjs/types/src/types/InvoiceItem.d.ts +43 -0
  205. package/dist/cjs/types/src/types/Payment.d.ts +21 -0
  206. package/dist/cjs/types/src/types/PaymentApplication.d.ts +13 -0
  207. package/dist/cjs/types/src/types/PaymentHold.d.ts +10 -0
  208. package/dist/cjs/types/src/types/PaymentMethod.d.ts +29 -0
  209. package/dist/cjs/types/src/types/Plan.d.ts +40 -0
  210. package/dist/cjs/types/src/types/PlanChangeOptions.d.ts +7 -0
  211. package/dist/cjs/types/src/types/Platform.d.ts +12 -0
  212. package/dist/cjs/types/src/types/Plugin.d.ts +44 -0
  213. package/dist/cjs/types/src/types/PluginDefinition.d.ts +23 -0
  214. package/dist/cjs/types/src/types/PluginParameter.d.ts +12 -0
  215. package/dist/cjs/types/src/types/PluginVendor.d.ts +6 -0
  216. package/dist/cjs/types/src/types/PriceList.d.ts +41 -0
  217. package/dist/cjs/types/src/types/PriceListChangeOptions.d.ts +7 -0
  218. package/dist/cjs/types/src/types/PriceListCharge.d.ts +45 -0
  219. package/dist/cjs/types/src/types/PriceListChargeTier.d.ts +6 -0
  220. package/dist/cjs/types/src/types/PriceTier.d.ts +5 -0
  221. package/dist/cjs/types/src/types/Product.d.ts +22 -0
  222. package/dist/cjs/types/src/types/ProductCategory.d.ts +9 -0
  223. package/dist/cjs/types/src/types/Quote.d.ts +81 -0
  224. package/dist/cjs/types/src/types/QuoteChange.d.ts +21 -0
  225. package/dist/cjs/types/src/types/QuoteCharge.d.ts +50 -0
  226. package/dist/cjs/types/src/types/Role.d.ts +6 -0
  227. package/dist/cjs/types/src/types/Subscription.d.ts +37 -0
  228. package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +8 -1
  229. package/dist/cjs/types/src/types/TaxationRequiredAccountFields.d.ts +2 -0
  230. package/dist/cjs/types/src/types/Tenant.d.ts +19 -0
  231. package/dist/cjs/types/src/types/TenantProvisioningChange.d.ts +12 -0
  232. package/dist/cjs/types/src/types/Transaction.d.ts +27 -0
  233. package/dist/cjs/types/src/types/User.d.ts +25 -0
  234. package/dist/cjs/types/src/types/UserProfile.d.ts +7 -0
  235. package/dist/cjs/types/src/types/billingDetails.d.ts +1 -1
  236. package/dist/cjs/types/src/types/frontendTypes/ComponentJSON.d.ts +285 -0
  237. package/dist/cjs/types/src/types/frontendTypes/Error.d.ts +3 -0
  238. package/dist/cjs/types/src/types/frontendTypes/FormLink.d.ts +8 -0
  239. package/dist/cjs/types/src/types/frontendTypes/FormattedLine.d.ts +50 -0
  240. package/dist/cjs/types/src/types/frontendTypes/PaymentComponentProps.d.ts +18 -0
  241. package/dist/cjs/types/src/types/frontendTypes/PeriodAmount.d.ts +9 -0
  242. package/dist/cjs/types/src/types/frontendTypes/PlanFeature.d.ts +12 -0
  243. package/dist/cjs/types/src/types/frontendTypes/PluginData.d.ts +26 -0
  244. package/dist/cjs/types/src/types/frontendTypes/QuoteDocument.d.ts +8 -0
  245. package/dist/cjs/types/src/types/frontendTypes/QuotePreviewData.d.ts +6 -0
  246. package/dist/cjs/types/src/types/frontendTypes/TableColumn.d.ts +9 -0
  247. package/dist/cjs/types/src/types/frontendTypes/TriggeredApprovalRule.d.ts +5 -0
  248. package/dist/cjs/types/src/types/frontendTypes/currentUser.d.ts +11 -0
  249. package/dist/cjs/types/src/types/frontendTypes/index.d.ts +13 -0
  250. package/dist/cjs/types/src/types/interfaces/Payable.d.ts +16 -0
  251. package/dist/cjs/types/src/types/interfaces/PayableItem.d.ts +11 -0
  252. package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanSwitchTestId.d.ts +1 -0
  253. package/dist/cjs/types/src/utils/addonPlanUtils/consts.d.ts +1 -0
  254. package/dist/cjs/types/src/utils/addonPlanUtils/findAddonSubscriptions.d.ts +12 -0
  255. package/dist/cjs/types/src/utils/addonPlanUtils/findNonAddonSubscriptions.d.ts +17 -0
  256. package/dist/cjs/types/src/utils/addonPlanUtils/findParentSubscription.d.ts +12 -0
  257. package/dist/cjs/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +1 -1
  258. package/dist/cjs/types/src/utils/apiUtils/apiUtils.d.ts +4 -4
  259. package/dist/cjs/types/src/utils/apiUtils/config.d.ts +9 -0
  260. package/dist/cjs/types/src/utils/apiUtils/invokePlugin.d.ts +1 -1
  261. package/dist/cjs/types/src/utils/chargeUtils.d.ts +10 -5
  262. package/dist/cjs/types/src/utils/couponUtils.d.ts +22 -2
  263. package/dist/cjs/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +4 -2
  264. package/dist/cjs/types/src/utils/formatDate.d.ts +1 -0
  265. package/dist/cjs/types/src/utils/graphql.d.ts +2 -0
  266. package/dist/cjs/types/src/utils/htmlUtils/isEmptyHTML.d.ts +5 -0
  267. package/dist/cjs/types/src/utils/htmlUtils/removeHTMLTags.d.ts +4 -0
  268. package/dist/cjs/types/src/utils/httpUtils.d.ts +10 -0
  269. package/dist/cjs/types/src/utils/isColorTooDark.d.ts +1 -0
  270. package/dist/cjs/types/src/utils/notificationUtils.d.ts +5 -0
  271. package/dist/cjs/types/src/utils/priceListChargeUtils/filterDeprecatedCharges.d.ts +11 -0
  272. package/dist/cjs/types/src/utils/priceListChargeUtils/priceListChargePriceDescription.d.ts +13 -0
  273. package/dist/cjs/types/src/utils/priceListUtils/getActiveCharges.d.ts +10 -0
  274. package/dist/cjs/types/src/utils/priceListUtils/getPrice.d.ts +9 -0
  275. package/dist/cjs/types/src/utils/priceListUtils/getPricingUnit.d.ts +16 -0
  276. package/dist/cjs/types/src/utils/priceListUtils/priceDescription.d.ts +11 -4
  277. package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +4 -3
  278. package/dist/esm/index.js +9338 -6560
  279. package/dist/esm/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
  280. package/dist/esm/types/src/UI/Tooltip.d.ts +2 -0
  281. package/dist/esm/types/src/UI/TruncatedText/TruncatedText.d.ts +4 -0
  282. package/dist/esm/types/src/UI/TruncatedText/hooks/useIsTextTruncated.d.ts +3 -0
  283. package/dist/esm/types/src/components/BillingDetails/BillingDetails.d.ts +3 -2
  284. package/dist/esm/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +1 -0
  285. package/dist/esm/types/src/components/{BunnyProvider.d.ts → BunnyProvider/BunnyProvider.d.ts} +4 -1
  286. package/dist/esm/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +13 -0
  287. package/dist/esm/types/src/components/Checkout/Checkout.d.ts +3 -2
  288. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +24 -3
  289. package/dist/esm/types/src/components/Checkout/QuoteIsLoadingIndicator.d.ts +1 -0
  290. package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +8 -2
  291. package/dist/esm/types/src/components/FeatureUsageGraph.d.ts +31 -4
  292. package/dist/esm/types/src/components/Invoice/Invoice.d.ts +3 -2
  293. package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
  294. package/dist/esm/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
  295. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +5 -2
  296. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +5 -3
  297. package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +26 -4
  298. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +5 -2
  299. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +5 -3
  300. package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -2
  301. package/dist/esm/types/src/components/PaymentForm/components/CouponEditor.d.ts +0 -2
  302. package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +23 -4
  303. package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +1 -1
  304. package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +3 -0
  305. package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +19 -3
  306. package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +2 -1
  307. package/dist/esm/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +4 -1
  308. package/dist/esm/types/src/components/PaymentForm/types/PaymentFormTypes.d.ts +1 -1
  309. package/dist/esm/types/src/components/Quote/Quote.d.ts +3 -1
  310. package/dist/esm/types/src/components/Quote/components/AcceptQuoteModal.d.ts +19 -0
  311. package/dist/esm/types/src/components/Quote/components/NoSigningPluginsForm.d.ts +17 -0
  312. package/dist/esm/types/src/components/Quote/components/PaymentHoldModal.d.ts +25 -0
  313. package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +27 -0
  314. package/dist/esm/types/src/components/QuoteProvider/context/QuoteContext.d.ts +2 -1
  315. package/dist/esm/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +32 -0
  316. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +1 -1
  317. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -0
  318. package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +4 -4
  319. package/dist/esm/types/src/components/QuoteProvider/hooks/useIsFetchingQuote.d.ts +4 -0
  320. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuantityEditableCharges.d.ts +70 -0
  321. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -1
  322. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +29 -5
  323. package/dist/esm/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +37 -0
  324. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeCreate.d.ts +23 -0
  325. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +12 -0
  326. package/dist/esm/types/src/components/QuoteProvider/quoteMutationKeys.d.ts +20 -0
  327. package/dist/esm/types/src/components/Quotes/Quotes.d.ts +1 -1
  328. package/dist/esm/types/src/components/Signup/CheckoutSummary.d.ts +41 -5
  329. package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +12 -3
  330. package/dist/esm/types/src/components/Signup/PriceListDisplay.d.ts +18 -4
  331. package/dist/esm/types/src/components/Signup/Signup.d.ts +0 -1
  332. package/dist/esm/types/src/components/Signup/components/SelfServiceBuyWarning.d.ts +14 -0
  333. package/dist/esm/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +17 -0
  334. package/dist/esm/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +17 -0
  335. package/dist/esm/types/src/components/Signup/mutations/accountSignup.d.ts +58 -0
  336. package/dist/esm/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +31 -0
  337. package/dist/{cjs/types/src/graphql → esm/types/src/components/Signup}/mutations/quoteRecalculateTaxes.d.ts +5 -1
  338. package/dist/{cjs/types/src/graphql → esm/types/src/components/Signup}/queries/getPriceList.d.ts +5 -2
  339. package/dist/esm/types/src/components/Signup/queries/getQuote.d.ts +10 -0
  340. package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +17 -6
  341. package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +4 -8
  342. package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +12 -6
  343. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
  344. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
  345. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +4 -1
  346. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +21 -0
  347. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/hooks/useChargeCRUD.d.ts +31 -0
  348. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -1
  349. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +9 -4
  350. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +10 -15
  351. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_QuoteFragment.d.ts +20 -0
  352. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
  353. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
  354. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +2 -1
  355. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +4 -1
  356. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +0 -3
  357. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +2 -0
  358. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +1 -1
  359. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +4 -17
  360. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +2 -1
  361. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +1 -1
  362. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +1 -1
  363. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +15 -13
  364. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -3
  365. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +4 -1
  366. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerUtils.d.ts +2 -1
  367. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +12 -0
  368. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +13 -6
  369. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +3 -2
  370. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +15 -1
  371. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardDescription.d.ts +3 -2
  372. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  373. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +2 -4
  374. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +16 -1
  375. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/utils/createAvailableBillingPeriods.d.ts +16 -0
  376. package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +12 -7
  377. package/dist/esm/types/src/components/Subscriptions/Upgrade/contexts/DefaultBillingPeriodContext.d.ts +4 -0
  378. package/dist/esm/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +175 -0
  379. package/dist/esm/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +5 -0
  380. package/dist/esm/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +5 -0
  381. package/dist/esm/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +14 -0
  382. package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +58 -0
  383. package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +4 -0
  384. package/dist/esm/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +17 -0
  385. package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +32 -0
  386. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +3 -4
  387. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +3 -2
  388. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +4 -1
  389. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
  390. package/dist/esm/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +197 -0
  391. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +15 -3
  392. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +23 -3
  393. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +22 -5
  394. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  395. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +23 -5
  396. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +39 -0
  397. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +30 -5
  398. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -5
  399. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +20 -0
  400. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +19 -0
  401. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +31 -3
  402. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +74 -9
  403. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +12 -0
  404. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +12 -0
  405. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +9 -2
  406. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +14 -2
  407. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +15 -5
  408. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -4
  409. package/dist/esm/types/src/components/TaxationForm.d.ts +1 -1
  410. package/dist/esm/types/src/components/Transactions/Transactions.d.ts +2 -1
  411. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
  412. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +1 -1
  413. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  414. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
  415. package/dist/esm/types/src/components/Transactions/transactionsList/utils.d.ts +1 -1
  416. package/dist/esm/types/src/components/index.d.ts +1 -1
  417. package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +6 -5
  418. package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +2 -1
  419. package/dist/esm/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +10 -3
  420. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +1 -1
  421. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +1 -1
  422. package/dist/esm/types/src/consts/AppConsts.d.ts +13 -0
  423. package/dist/esm/types/src/consts/DefaultBranding.d.ts +4 -0
  424. package/dist/esm/types/src/consts/Lists.d.ts +4 -0
  425. package/dist/esm/types/src/consts/StyleConsts.d.ts +58 -0
  426. package/dist/esm/types/src/consts/index.d.ts +4 -0
  427. package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +4 -1
  428. package/dist/esm/types/src/contexts/TransactionsListContext.d.ts +2 -1
  429. package/dist/esm/types/src/contexts/onPaymentMethodRemoved.d.ts +5 -0
  430. package/dist/esm/types/src/contexts/onPaymentMethodSaved.d.ts +5 -0
  431. package/dist/esm/types/src/enums/ChargeType.d.ts +6 -0
  432. package/dist/esm/types/src/enums/ColumnFormat.d.ts +16 -0
  433. package/dist/esm/types/src/enums/CreditNoteState.d.ts +8 -0
  434. package/dist/esm/types/src/enums/PriceAdjustmentAction.d.ts +6 -0
  435. package/dist/esm/types/src/enums/PriceAdjustmentTiming.d.ts +16 -0
  436. package/dist/esm/types/src/enums/QuoteChangeKind.d.ts +16 -0
  437. package/dist/esm/types/src/enums/TransactionState.d.ts +14 -0
  438. package/dist/esm/types/src/graphql/mutations/checkout.d.ts +6 -3
  439. package/dist/esm/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +1 -1
  440. package/dist/esm/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +1 -1
  441. package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +1 -1
  442. package/dist/esm/types/src/graphql/mutations/quoteCreate.d.ts +1 -1
  443. package/dist/esm/types/src/graphql/mutations/quoteCreateWithDeal.d.ts +1 -1
  444. package/dist/esm/types/src/graphql/queries/getAccount.d.ts +6 -0
  445. package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
  446. package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +10 -3
  447. package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
  448. package/dist/esm/types/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
  449. package/dist/esm/types/src/graphql/queries/getTransactions.d.ts +1 -1
  450. package/dist/esm/types/src/graphql-codegen/exportedScalarTypes.d.ts +3 -0
  451. package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +5 -1
  452. package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +3 -3
  453. package/dist/esm/types/src/hooks/useHasTaxPlugin.d.ts +1 -1
  454. package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +2 -2
  455. package/dist/esm/types/src/hooks/useSigningPlugins.d.ts +2 -2
  456. package/dist/esm/types/src/hooks/useUpdateCoupons.d.ts +2 -2
  457. package/dist/esm/types/src/types/Account.d.ts +73 -0
  458. package/dist/esm/types/src/types/AccountBalance.d.ts +6 -0
  459. package/dist/esm/types/src/types/AccountType.d.ts +7 -0
  460. package/dist/esm/types/src/types/ApprovalDecision.d.ts +13 -0
  461. package/dist/esm/types/src/types/ApprovalRequest.d.ts +18 -0
  462. package/dist/esm/types/src/types/ApprovalRule.d.ts +15 -0
  463. package/dist/esm/types/src/types/Approver.d.ts +10 -0
  464. package/dist/esm/types/src/types/Campaign.d.ts +13 -0
  465. package/dist/esm/types/src/types/Contact.d.ts +27 -0
  466. package/dist/esm/types/src/types/Coupon.d.ts +19 -0
  467. package/dist/esm/types/src/types/CreditNote.d.ts +45 -0
  468. package/dist/esm/types/src/types/CreditNoteItem.d.ts +20 -0
  469. package/dist/esm/types/src/types/Currency.d.ts +11 -0
  470. package/dist/esm/types/src/types/Deal.d.ts +38 -0
  471. package/dist/esm/types/src/types/DealStage.d.ts +12 -0
  472. package/dist/esm/types/src/types/DisputeReason.d.ts +6 -0
  473. package/dist/esm/types/src/types/DynamicComponent.d.ts +12 -0
  474. package/dist/esm/types/src/types/Entity.d.ts +41 -0
  475. package/dist/esm/types/src/types/Feature.d.ts +21 -0
  476. package/dist/esm/types/src/types/FeatureUsage.d.ts +35 -0
  477. package/dist/esm/types/src/types/FormattedInvoice.d.ts +50 -0
  478. package/dist/esm/types/src/types/FormattedQuote.d.ts +49 -0
  479. package/dist/esm/types/src/types/Invoice.d.ts +60 -0
  480. package/dist/esm/types/src/types/InvoiceConnection.d.ts +6 -0
  481. package/dist/esm/types/src/types/InvoiceItem.d.ts +43 -0
  482. package/dist/esm/types/src/types/Payment.d.ts +21 -0
  483. package/dist/esm/types/src/types/PaymentApplication.d.ts +13 -0
  484. package/dist/esm/types/src/types/PaymentHold.d.ts +10 -0
  485. package/dist/esm/types/src/types/PaymentMethod.d.ts +29 -0
  486. package/dist/esm/types/src/types/Plan.d.ts +40 -0
  487. package/dist/esm/types/src/types/PlanChangeOptions.d.ts +7 -0
  488. package/dist/esm/types/src/types/Platform.d.ts +12 -0
  489. package/dist/esm/types/src/types/Plugin.d.ts +44 -0
  490. package/dist/esm/types/src/types/PluginDefinition.d.ts +23 -0
  491. package/dist/esm/types/src/types/PluginParameter.d.ts +12 -0
  492. package/dist/esm/types/src/types/PluginVendor.d.ts +6 -0
  493. package/dist/esm/types/src/types/PriceList.d.ts +41 -0
  494. package/dist/esm/types/src/types/PriceListChangeOptions.d.ts +7 -0
  495. package/dist/esm/types/src/types/PriceListCharge.d.ts +45 -0
  496. package/dist/esm/types/src/types/PriceListChargeTier.d.ts +6 -0
  497. package/dist/esm/types/src/types/PriceTier.d.ts +5 -0
  498. package/dist/esm/types/src/types/Product.d.ts +22 -0
  499. package/dist/esm/types/src/types/ProductCategory.d.ts +9 -0
  500. package/dist/esm/types/src/types/Quote.d.ts +81 -0
  501. package/dist/esm/types/src/types/QuoteChange.d.ts +21 -0
  502. package/dist/esm/types/src/types/QuoteCharge.d.ts +50 -0
  503. package/dist/esm/types/src/types/Role.d.ts +6 -0
  504. package/dist/esm/types/src/types/Subscription.d.ts +37 -0
  505. package/dist/esm/types/src/types/SubscriptionCharge.d.ts +8 -1
  506. package/dist/esm/types/src/types/TaxationRequiredAccountFields.d.ts +2 -0
  507. package/dist/esm/types/src/types/Tenant.d.ts +19 -0
  508. package/dist/esm/types/src/types/TenantProvisioningChange.d.ts +12 -0
  509. package/dist/esm/types/src/types/Transaction.d.ts +27 -0
  510. package/dist/esm/types/src/types/User.d.ts +25 -0
  511. package/dist/esm/types/src/types/UserProfile.d.ts +7 -0
  512. package/dist/esm/types/src/types/billingDetails.d.ts +1 -1
  513. package/dist/esm/types/src/types/frontendTypes/ComponentJSON.d.ts +285 -0
  514. package/dist/esm/types/src/types/frontendTypes/Error.d.ts +3 -0
  515. package/dist/esm/types/src/types/frontendTypes/FormLink.d.ts +8 -0
  516. package/dist/esm/types/src/types/frontendTypes/FormattedLine.d.ts +50 -0
  517. package/dist/esm/types/src/types/frontendTypes/PaymentComponentProps.d.ts +18 -0
  518. package/dist/esm/types/src/types/frontendTypes/PeriodAmount.d.ts +9 -0
  519. package/dist/esm/types/src/types/frontendTypes/PlanFeature.d.ts +12 -0
  520. package/dist/esm/types/src/types/frontendTypes/PluginData.d.ts +26 -0
  521. package/dist/esm/types/src/types/frontendTypes/QuoteDocument.d.ts +8 -0
  522. package/dist/esm/types/src/types/frontendTypes/QuotePreviewData.d.ts +6 -0
  523. package/dist/esm/types/src/types/frontendTypes/TableColumn.d.ts +9 -0
  524. package/dist/esm/types/src/types/frontendTypes/TriggeredApprovalRule.d.ts +5 -0
  525. package/dist/esm/types/src/types/frontendTypes/currentUser.d.ts +11 -0
  526. package/dist/esm/types/src/types/frontendTypes/index.d.ts +13 -0
  527. package/dist/esm/types/src/types/interfaces/Payable.d.ts +16 -0
  528. package/dist/esm/types/src/types/interfaces/PayableItem.d.ts +11 -0
  529. package/dist/esm/types/src/utils/addonPlanUtils/addonPlanSwitchTestId.d.ts +1 -0
  530. package/dist/esm/types/src/utils/addonPlanUtils/consts.d.ts +1 -0
  531. package/dist/esm/types/src/utils/addonPlanUtils/findAddonSubscriptions.d.ts +12 -0
  532. package/dist/esm/types/src/utils/addonPlanUtils/findNonAddonSubscriptions.d.ts +17 -0
  533. package/dist/esm/types/src/utils/addonPlanUtils/findParentSubscription.d.ts +12 -0
  534. package/dist/esm/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +1 -1
  535. package/dist/esm/types/src/utils/apiUtils/apiUtils.d.ts +4 -4
  536. package/dist/esm/types/src/utils/apiUtils/config.d.ts +9 -0
  537. package/dist/esm/types/src/utils/apiUtils/invokePlugin.d.ts +1 -1
  538. package/dist/esm/types/src/utils/chargeUtils.d.ts +10 -5
  539. package/dist/esm/types/src/utils/couponUtils.d.ts +22 -2
  540. package/dist/esm/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +4 -2
  541. package/dist/esm/types/src/utils/formatDate.d.ts +1 -0
  542. package/dist/esm/types/src/utils/graphql.d.ts +2 -0
  543. package/dist/esm/types/src/utils/htmlUtils/isEmptyHTML.d.ts +5 -0
  544. package/dist/esm/types/src/utils/htmlUtils/removeHTMLTags.d.ts +4 -0
  545. package/dist/esm/types/src/utils/httpUtils.d.ts +10 -0
  546. package/dist/esm/types/src/utils/isColorTooDark.d.ts +1 -0
  547. package/dist/esm/types/src/utils/notificationUtils.d.ts +5 -0
  548. package/dist/esm/types/src/utils/priceListChargeUtils/filterDeprecatedCharges.d.ts +11 -0
  549. package/dist/esm/types/src/utils/priceListChargeUtils/priceListChargePriceDescription.d.ts +13 -0
  550. package/dist/esm/types/src/utils/priceListUtils/getActiveCharges.d.ts +10 -0
  551. package/dist/esm/types/src/utils/priceListUtils/getPrice.d.ts +9 -0
  552. package/dist/esm/types/src/utils/priceListUtils/getPricingUnit.d.ts +16 -0
  553. package/dist/esm/types/src/utils/priceListUtils/priceDescription.d.ts +11 -4
  554. package/dist/esm/types/src/utils/pricePickerUtils.d.ts +4 -3
  555. package/dist/index.d.ts +72 -18
  556. package/package.json +17 -18
  557. package/dist/cjs/types/src/components/Quote/AcceptQuoteModal.d.ts +0 -10
  558. package/dist/cjs/types/src/components/Quote/PaymentHoldModal.d.ts +0 -7
  559. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +0 -8
  560. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +0 -12
  561. package/dist/cjs/types/src/contexts/SubscriptionsContext.d.ts +0 -14
  562. package/dist/cjs/types/src/graphql/mutations/accountSignup.d.ts +0 -11
  563. package/dist/cjs/types/src/graphql/mutations/quoteAccountSignup.d.ts +0 -15
  564. package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +0 -36
  565. package/dist/cjs/types/src/styles/constants.d.ts +0 -1
  566. package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +0 -5
  567. package/dist/cjs/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +0 -12
  568. package/dist/esm/types/src/components/Quote/AcceptQuoteModal.d.ts +0 -10
  569. package/dist/esm/types/src/components/Quote/PaymentHoldModal.d.ts +0 -7
  570. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +0 -8
  571. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +0 -12
  572. package/dist/esm/types/src/contexts/SubscriptionsContext.d.ts +0 -14
  573. package/dist/esm/types/src/graphql/mutations/accountSignup.d.ts +0 -11
  574. package/dist/esm/types/src/graphql/mutations/quoteAccountSignup.d.ts +0 -15
  575. package/dist/esm/types/src/graphql/queries/getQuote.d.ts +0 -36
  576. package/dist/esm/types/src/styles/constants.d.ts +0 -1
  577. package/dist/esm/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +0 -5
  578. package/dist/esm/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +0 -12
  579. /package/dist/cjs/types/src/{hooks → components/BunnyProvider/hooks}/useCreateQueryClient.d.ts +0 -0
  580. /package/dist/cjs/types/src/{hooks/quotes → components/Quote/hooks}/useSendAcceptQuote.d.ts +0 -0
  581. /package/dist/cjs/types/src/{hooks/quotes → components/Quote/hooks}/useSigningComplete.d.ts +0 -0
  582. /package/dist/esm/types/src/{hooks → components/BunnyProvider/hooks}/useCreateQueryClient.d.ts +0 -0
  583. /package/dist/esm/types/src/{hooks/quotes → components/Quote/hooks}/useSendAcceptQuote.d.ts +0 -0
  584. /package/dist/esm/types/src/{hooks/quotes → components/Quote/hooks}/useSigningComplete.d.ts +0 -0
@@ -1,12 +1,18 @@
1
- import { Subscription } from '@bunnyapp/common';
2
- import '../../styles/index.less';
3
- declare const SubscriptionsListContainer: ({ companyName, showInactive, onCancelSubscriptionClick, onChangePlanClick, noSubscriptionsComponent, subscriptions, subscriptionsAreLoading, }: {
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const SubscriptionsListContainer_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
3
+ [$tada.fragmentRefs]: {
4
+ SubscriptionsList_SubscriptionFragment: "Subscription";
5
+ };
6
+ }, {}, {
7
+ fragment: "SubscriptionsListContainer_SubscriptionFragment";
8
+ on: "Subscription";
9
+ masked: true;
10
+ }>;
11
+ declare const SubscriptionsListContainer: ({ companyName, showInactive, noSubscriptionsComponent, subscriptions: maskedSubscriptions, subscriptionsAreLoading, }: {
4
12
  companyName: string;
5
13
  showInactive?: boolean;
6
- onCancelSubscriptionClick: (subscription: Subscription) => void;
7
- onChangePlanClick: (subscription: Subscription) => void;
8
14
  noSubscriptionsComponent?: React.ReactNode;
9
- subscriptions: Subscription[];
15
+ subscriptions: FragmentOf<typeof SubscriptionsListContainer_SubscriptionFragment>[];
10
16
  subscriptionsAreLoading: boolean;
11
17
  }) => import("react/jsx-runtime").JSX.Element;
12
18
  export default SubscriptionsListContainer;
@@ -1,5 +1,5 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import { PriceList } from '@bunnyapp/common';
2
+ import PriceList from '@/types/PriceList';
3
3
  declare const NextPriceListButton: ({ availablePriceLists, priceListStart, setPriceListStart, numberOfPlansToDisplay, }: {
4
4
  availablePriceLists: PriceList[];
5
5
  numberOfPlansToDisplay: number;
@@ -1,4 +1,4 @@
1
- import { Subscription } from '@bunnyapp/common';
1
+ import Subscription from '@/types/Subscription';
2
2
  declare const PlanPicker: ({ onGoBack, areSubscriptionsLoading, subscriptions, }: {
3
3
  onGoBack?: () => void;
4
4
  areSubscriptionsLoading: boolean;
@@ -1,5 +1,8 @@
1
1
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
- import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
+ import PriceList from '@/types/PriceList';
3
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
4
+ import Product from '@/types/Product';
5
+ import Subscription from '@/types/Subscription';
3
6
  import { Dispatch, SetStateAction } from 'react';
4
7
  type PriceListGridProps = {
5
8
  availablePriceLists: PriceList[];
@@ -0,0 +1,21 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const CheckoutBarInput_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
3
+ name: string;
4
+ quantityMin: number | null;
5
+ quantityMax: number | null;
6
+ id: string;
7
+ feature: {
8
+ id: string;
9
+ } | null;
10
+ }, {}, {
11
+ fragment: "CheckoutBarInput_PriceListChargeFragment";
12
+ on: "PriceListCharge";
13
+ masked: true;
14
+ }>;
15
+ declare const CheckoutBarInput: ({ disabled, priceListCharge: maskedPriceListCharge, quantity, onQuantityChanged, }: {
16
+ disabled?: boolean;
17
+ priceListCharge: FragmentOf<typeof CheckoutBarInput_PriceListChargeFragment>;
18
+ quantity: number | undefined;
19
+ onQuantityChanged: (quantity: number) => void;
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
+ export default CheckoutBarInput;
@@ -0,0 +1,31 @@
1
+ export declare const useChargeCRUD_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
2
+ currentCharges: {
3
+ quantity: number | null;
4
+ priceListCharge: {
5
+ id: string;
6
+ } | null;
7
+ }[] | null;
8
+ }, {}, {
9
+ fragment: "useChargeCRUD_SubscriptionFragment";
10
+ on: "Subscription";
11
+ masked: true;
12
+ }>;
13
+ /**
14
+ * Hook used by a single `CheckoutBarInput` to manage CRUD for its own charge.
15
+ *
16
+ * Rules:
17
+ * 1) When quantity changes and there is an existing quote charge on the quote change,
18
+ * update that quote charge's quantity.
19
+ * 2) When quantity changes, there are subscription charges but no quote charges,
20
+ * create a new quote charge – but only if the input quantity differs from the
21
+ * subscription charge quantity. If the quantity later returns to the subscription
22
+ * quantity, delete the quote charge.
23
+ *
24
+ * All network operations are debounced.
25
+ */
26
+ export declare const useChargeCRUD: ({ priceListChargeId, featureId }: {
27
+ priceListChargeId: string;
28
+ featureId: string | undefined;
29
+ }) => {
30
+ onQuantityChange: (nextQuantity: number) => void;
31
+ };
@@ -1,4 +1,4 @@
1
- import { PriceList } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
2
  export declare const CheckoutBarSummarySection_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
3
  quoteChanges: {
4
4
  charges: {
@@ -1,16 +1,21 @@
1
- import { PriceList } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
2
  import { FragmentOf } from 'gql.tada';
3
3
  export declare const CheckoutPrice_QuoteFragment: import("gql.tada").TadaDocumentNode<{
4
4
  periodAmount: number | null;
5
5
  amountDue: number | null;
6
+ quoteChanges: {
7
+ charges: {
8
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
9
+ chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
10
+ }[];
11
+ }[] | null;
6
12
  }, {}, {
7
13
  fragment: "CheckoutPrice_QuoteFragment";
8
14
  on: "Quote";
9
15
  masked: true;
10
16
  }>;
11
- declare const CheckoutPrice: ({ isUsage, quote: maskedQuote, selectedPriceList, }: {
12
- isUsage: boolean;
17
+ declare const CheckoutPrice: ({ quote: maskedQuote, selectedPriceList, }: {
13
18
  quote?: FragmentOf<typeof CheckoutPrice_QuoteFragment>;
14
19
  selectedPriceList: PriceList;
15
- }) => import("react/jsx-runtime").JSX.Element | null;
20
+ }) => import("react/jsx-runtime").JSX.Element;
16
21
  export default CheckoutPrice;
@@ -1,21 +1,16 @@
1
- import { PriceList } from '@bunnyapp/common';
2
- export declare const PlanPickerCheckoutBar_QuoteFragment: import("gql.tada").TadaDocumentNode<{
1
+ import PriceList from '@/types/PriceList';
2
+ export declare const PlanPickerCheckoutBar_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
3
3
  [$tada.fragmentRefs]: {
4
- Checkout_QuoteFragment: "Quote";
4
+ CheckoutBarInput_PriceListChargeFragment: "PriceListCharge";
5
5
  };
6
- quoteChanges: {
7
- priceList: {
8
- id: string;
9
- } | null;
10
- charges: {
11
- priceListCharge: {
12
- id: string;
13
- } | null;
14
- }[];
15
- }[] | null;
6
+ feature: {
7
+ id: string;
8
+ } | null;
9
+ featureAddon: boolean | null;
10
+ id: string;
16
11
  }, {}, {
17
- fragment: "PlanPickerCheckoutBar_QuoteFragment";
18
- on: "Quote";
12
+ fragment: "PlanPickerCheckoutBar_PriceListChargeFragment";
13
+ on: "PriceListCharge";
19
14
  masked: true;
20
15
  }>;
21
16
  declare const PlanPickerCheckoutBar: ({ selectedPriceList, handlePortalErrors, onCheckoutSuccess, }: {
@@ -0,0 +1,20 @@
1
+ export declare const PlanPickerCheckoutBar_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ [$tada.fragmentRefs]: {
3
+ Checkout_QuoteFragment: "Quote";
4
+ };
5
+ quoteChanges: {
6
+ priceList: {
7
+ id: string;
8
+ } | null;
9
+ charges: {
10
+ priceListCharge: {
11
+ id: string;
12
+ } | null;
13
+ }[];
14
+ }[] | null;
15
+ id: string | null;
16
+ }, {}, {
17
+ fragment: "PlanPickerCheckoutBar_QuoteFragment";
18
+ on: "Quote";
19
+ masked: true;
20
+ }>;
@@ -1,5 +1,5 @@
1
1
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
- import { Product } from '@bunnyapp/common';
2
+ import Product from '@/types/Product';
3
3
  type PeriodMonths = number;
4
4
  declare const BillingPeriodSelector: ({ availableBillingPeriods, onChangeBillingPeriod, products, selectedBillingPeriod, selectedProduct, onChangeProduct, }: {
5
5
  availableBillingPeriods?: PeriodMonths[];
@@ -1,4 +1,5 @@
1
- import { PriceList, Product } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import Product from '@/types/Product';
2
3
  declare const EverythingPlanFeatures: ({ displayPriceLists, selectedProduct, plansToDisplay, hideBorder, }: {
3
4
  displayPriceLists: PriceList[];
4
5
  plansToDisplay: number;
@@ -1,4 +1,5 @@
1
- import { Feature, PriceList } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import Feature from '@/types/Feature';
2
3
  export declare const PlanFeatures: ({ displayPriceLists, features, plansToDisplay, }: {
3
4
  displayPriceLists: PriceList[];
4
5
  plansToDisplay: number;
@@ -1,5 +1,8 @@
1
1
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
- import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
+ import PriceList from '@/types/PriceList';
3
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
4
+ import Product from '@/types/Product';
5
+ import Subscription from '@/types/Subscription';
3
6
  import { Dispatch, SetStateAction } from 'react';
4
7
  type PriceListGridDesktopProps = {
5
8
  availablePriceLists: PriceList[];
@@ -6,9 +6,6 @@ export declare const FeatureAddonRow_PriceListFragment: import("gql.tada").TadaD
6
6
  id: string;
7
7
  name: string;
8
8
  }[] | null;
9
- [$tada.fragmentRefs]: {
10
- PricingTooltip_PriceListFragment: "PriceList";
11
- };
12
9
  }, {}, {
13
10
  fragment: "FeatureAddonRow_PriceListFragment";
14
11
  on: "PriceList";
@@ -6,6 +6,8 @@ export declare const FeatureAddonsList_PriceListFragment: import("gql.tada").Tad
6
6
  id: string;
7
7
  name: string;
8
8
  featureAddon: boolean | null;
9
+ deprecated: boolean | null;
10
+ removeOnRenewal: boolean | null;
9
11
  [$tada.fragmentRefs]: {
10
12
  PricingTooltip_PriceListChargeFragment: "PriceListCharge";
11
13
  } & {
@@ -1,4 +1,4 @@
1
- import { PriceListCharge } from '@bunnyapp/common';
1
+ import { PriceListCharge } from '@/types/PriceListCharge';
2
2
  import { FragmentOf } from 'gql.tada';
3
3
  import { useQuoteUpdateFeatureAddon_QuoteFragment } from '../fragments/useQuoteUpdateFeatureAddon_QuoteFragment';
4
4
  export declare const useQuoteUpdateFeatureAddon: (maskedQuote: FragmentOf<typeof useQuoteUpdateFeatureAddon_QuoteFragment> | null | undefined, featureAddon: PriceListCharge) => {
@@ -1,31 +1,19 @@
1
- import { PriceList as DeprecatedPriceList, Feature, Subscription } from '@bunnyapp/common';
1
+ import DeprecatedPriceList from '@/types/PriceList';
2
+ import Subscription from '@/types/Subscription';
2
3
  import { FragmentOf } from 'gql.tada';
3
4
  export declare const PriceListCardDesktop_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
5
  id: string;
6
+ deprecated: boolean | null;
5
7
  plan: {
6
8
  id: string;
7
9
  pricingStyle: "PRICED" | "FREE" | "CONTACT_US";
8
10
  contactUsUrl: string | null;
9
11
  name: string;
10
12
  } | null;
11
- charges: {
12
- id: string;
13
- featureAddon: boolean | null;
14
- priceListChargeTiers: {
15
- starts: number | null;
16
- price: number | null;
17
- }[] | null;
18
- [$tada.fragmentRefs]: {
19
- PricingTooltip_PriceListChargeFragment: "PriceListCharge";
20
- };
21
- }[] | null;
22
- currencyId: string;
23
13
  [$tada.fragmentRefs]: {
24
14
  PriceListCardButton_PriceListFragment: "PriceList";
25
15
  } & {
26
16
  PriceListHasPriceTiers_PriceListFragment: "PriceList";
27
- } & {
28
- PricingTooltip_PriceListFragment: "PriceList";
29
17
  } & {
30
18
  PriceListCardPrice_PriceListFragment: "PriceList";
31
19
  } & {
@@ -36,11 +24,10 @@ export declare const PriceListCardDesktop_PriceListFragment: import("gql.tada").
36
24
  on: "PriceList";
37
25
  masked: true;
38
26
  }>;
39
- declare const PriceListCardDesktop: ({ hideButton, description, disableSelectCurrentPlan, feature, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, noBorder, onClickPriceListCard, }: {
27
+ declare const PriceListCardDesktop: ({ hideButton, description, disableSelectCurrentPlan, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, noBorder, onClickPriceListCard, }: {
40
28
  hideButton?: boolean;
41
29
  description: string;
42
30
  disableSelectCurrentPlan: boolean;
43
- feature?: Feature;
44
31
  isPriceListCurrentSubscription: boolean;
45
32
  isSelected: boolean;
46
33
  priceList: FragmentOf<typeof PriceListCardDesktop_PriceListFragment>;
@@ -1,5 +1,6 @@
1
1
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
- import { PriceList, Subscription } from '@bunnyapp/common';
2
+ import PriceList from '@/types/PriceList';
3
+ import Subscription from '@/types/Subscription';
3
4
  type PlanAddonsCardProps = {
4
5
  selectedPriceList: PriceList;
5
6
  subscriptions: Subscription[];
@@ -1,4 +1,4 @@
1
- import { PriceList as DeprecatedPriceList } from '@bunnyapp/common';
1
+ import DeprecatedPriceList from '@/types/PriceList';
2
2
  import { FragmentOf } from 'gql.tada';
3
3
  export declare const AddonPlanRow_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import { PriceList } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
2
  import { FragmentOf } from 'gql.tada';
3
3
  import { useToggleAddonPlan_QuoteFragment } from '../fragments/useToggleAddonPlan_QuoteFragment';
4
4
  export declare const useToggleAddonPlan: (maskedQuote: FragmentOf<typeof useToggleAddonPlan_QuoteFragment> | null | undefined, addonPriceListId: string, selectedPriceList: PriceList, setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>) => {
@@ -1,12 +1,13 @@
1
- import { PlanFeature, PriceList } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import { PlanFeature } from '@/types/frontendTypes';
2
3
  export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
3
4
  availablePriceLists: PriceList[];
4
5
  }) => {
5
6
  plan: {
6
7
  planFeatures: PlanFeature[] | undefined;
7
8
  addon?: boolean;
8
- compatiblePlans?: import("@bunnyapp/common").Plan[];
9
- addonPlans?: import("@bunnyapp/common").Plan[];
9
+ compatiblePlans?: import("../../../../../types/Plan").Plan[];
10
+ addonPlans?: import("../../../../../types/Plan").Plan[];
10
11
  availableFrom?: string;
11
12
  availableTo?: string;
12
13
  basePrice?: number;
@@ -15,7 +16,7 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
15
16
  contactUsUrl?: string;
16
17
  createdAt: string;
17
18
  description?: string;
18
- features?: import("@bunnyapp/common").Feature[];
19
+ features?: import("../../../../../types/Feature").default[];
19
20
  id: string;
20
21
  internalNotes?: string;
21
22
  isAvailableNow?: boolean;
@@ -24,8 +25,8 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
24
25
  position: number;
25
26
  priceLists: PriceList[];
26
27
  pricingDescription?: string;
27
- pricingStyle: import("@bunnyapp/common").PricingStyle;
28
- product: import("@bunnyapp/common").Product;
28
+ pricingStyle: import("../../../../../types/Plan").PricingStyle;
29
+ product: import("../../../../../types/Product").default;
29
30
  productId: string;
30
31
  selfServiceBuy?: boolean;
31
32
  selfServiceCancel?: boolean;
@@ -34,10 +35,10 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
34
35
  updatedAt: string;
35
36
  };
36
37
  basePrice: number;
37
- charges: import("@bunnyapp/common").PriceListCharge[];
38
+ charges: import("../../../../../types/PriceListCharge").PriceListCharge[];
38
39
  code?: string;
39
40
  createdAt: string;
40
- currency?: import("@bunnyapp/common").Currency;
41
+ currency?: import("../../../../../types/Currency").default;
41
42
  currencyId: string;
42
43
  id: string;
43
44
  isVisible?: boolean;
@@ -45,20 +46,21 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
45
46
  name: string;
46
47
  periodMonths: 0 | 1 | 3 | 6 | 12;
47
48
  planId: string;
48
- priceAdjustmentAction?: import("@bunnyapp/common").PriceAdjustmentAction;
49
+ priceAdjustmentAction?: import("../../../../../enums/PriceAdjustmentAction").default;
49
50
  priceAdjustmentActionOptions?: string[];
50
51
  priceAdjustmentPercentage?: number;
51
- priceAdjustmentTiming?: import("@bunnyapp/common").PriceAdjustmentTiming;
52
+ priceAdjustmentTiming?: import("../../../../../enums/PriceAdjustmentTiming").default;
52
53
  priceAdjustmentTimingOptions?: string[];
53
54
  priceDescription?: string;
54
- product: import("@bunnyapp/common").Product;
55
+ product: import("../../../../../types/Product").default;
55
56
  productId?: string;
56
57
  renewalTermMonths?: number;
57
58
  showPriceAsMonthly?: boolean;
58
59
  sku?: string;
59
60
  trialAllowed: boolean;
60
- trialExpirationAction?: "ACTIVATE" | "CANCEL";
61
+ trialExpirationAction?: import("@/types/PriceList").TrialExpirationAction;
61
62
  trialLengthDays?: number;
62
63
  updatedAt: string;
63
- addonPlans?: import("@bunnyapp/common").Plan[];
64
+ addonPlans?: import("../../../../../types/Plan").Plan[];
65
+ deprecated?: boolean;
64
66
  }[];
@@ -1,4 +1,5 @@
1
- import { Feature, PriceList, Subscription } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import Subscription from '@/types/Subscription';
2
3
  import { FragmentOf } from 'gql.tada';
3
4
  export declare const PriceListCardMobile_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
5
  plan: {
@@ -16,9 +17,8 @@ export declare const PriceListCardMobile_PriceListFragment: import("gql.tada").T
16
17
  on: "PriceList";
17
18
  masked: true;
18
19
  }>;
19
- declare const PriceListCardMobile: ({ description, feature, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, disableOnClickPriceListCard, onClickPriceListCard, }: {
20
+ declare const PriceListCardMobile: ({ description, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, disableOnClickPriceListCard, onClickPriceListCard, }: {
20
21
  description: string;
21
- feature?: Feature;
22
22
  isPriceListCurrentSubscription: boolean;
23
23
  isSelected: boolean;
24
24
  priceList: FragmentOf<typeof PriceListCardMobile_PriceListFragment>;
@@ -1,4 +1,7 @@
1
- import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
3
+ import Product from '@/types/Product';
4
+ import Subscription from '@/types/Subscription';
2
5
  declare const PriceListGridMobile: ({ availablePriceLists, priceListChangeOptions, selectedPriceList, selectedProduct, subscriptions, trialRemainingDays, onClickPriceListCard, }: {
3
6
  availablePriceLists: PriceList[];
4
7
  priceListChangeOptions?: PriceListChangeOptions;
@@ -1,4 +1,5 @@
1
- import { PriceList, PriceListChangeOptions } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
2
3
  export declare const getAvailablePlansAndPriceLists: ({ availablePriceLists, priceListChangeOptions, priceListStart, plansToDisplay, }: {
3
4
  availablePriceLists: PriceList[];
4
5
  priceListChangeOptions?: PriceListChangeOptions;
@@ -0,0 +1,12 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const BillingPeriodDescription_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ periodMonths: number | null;
4
+ }, {}, {
5
+ fragment: "BillingPeriodDescription_PriceListFragment";
6
+ on: "PriceList";
7
+ masked: true;
8
+ }>;
9
+ declare const BillingPeriodDescription: ({ priceList: maskedPriceList, }: {
10
+ priceList: FragmentOf<typeof BillingPeriodDescription_PriceListFragment>;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
+ export default BillingPeriodDescription;
@@ -1,23 +1,30 @@
1
- import { Feature } from '@bunnyapp/common';
2
1
  import { FragmentOf } from 'gql.tada';
3
2
  export declare const PriceListCardPriceDescription_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
3
  plan: {
5
4
  pricingDescription: string | null;
6
5
  } | null;
7
- showPriceAsMonthly: boolean | null;
6
+ charges: {
7
+ [$tada.fragmentRefs]: {
8
+ GetActiveCharges_PriceListChargeFragment: "PriceListCharge";
9
+ } & {
10
+ PricingTooltip_PriceListChargeFragment: "PriceListCharge";
11
+ };
12
+ }[] | null;
13
+ currencyId: string;
8
14
  periodMonths: number | null;
9
15
  [$tada.fragmentRefs]: {
10
- DoesPriceListHaveFlatFeeCharges_PriceListFragment: "PriceList";
16
+ priceDescriptionString_PriceListFragment: "PriceList";
11
17
  } & {
12
- HasMultipleRecurringCharges_PriceListFragment: "PriceList";
18
+ BillingPeriodDescription_PriceListFragment: "PriceList";
19
+ } & {
20
+ PriceListHasPriceTiers_PriceListFragment: "PriceList";
13
21
  };
14
22
  }, {}, {
15
23
  fragment: "PriceListCardPriceDescription_PriceListFragment";
16
24
  on: "PriceList";
17
25
  masked: true;
18
26
  }>;
19
- declare const PriceListCardPriceDescription: ({ feature, priceList: maskedPriceList, }: {
20
- feature?: Feature;
27
+ declare const PriceListCardPriceDescription: ({ priceList: maskedPriceList, }: {
21
28
  priceList: FragmentOf<typeof PriceListCardPriceDescription_PriceListFragment>;
22
29
  }) => import("react/jsx-runtime").JSX.Element | null;
23
30
  export default PriceListCardPriceDescription;
@@ -1,4 +1,5 @@
1
- import { PriceList as DeprecatedPriceList, Subscription } from '@bunnyapp/common';
1
+ import DeprecatedPriceList from '@/types/PriceList';
2
+ import Subscription from '@/types/Subscription';
2
3
  import { FragmentOf } from 'gql.tada';
3
4
  export declare const PriceListCard_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
5
  id: string;
@@ -25,5 +26,5 @@ declare const PriceListCard: ({ hideButton, isSelected, priceList: maskedPriceLi
25
26
  noBorder?: boolean;
26
27
  onClickPriceListCard?: (priceList: DeprecatedPriceList) => void;
27
28
  disableCurrentPlan?: boolean;
28
- }) => import("react/jsx-runtime").JSX.Element | null;
29
+ }) => import("react/jsx-runtime").JSX.Element;
29
30
  export default PriceListCard;
@@ -1,4 +1,4 @@
1
- import { Subscription } from '@bunnyapp/common';
1
+ import Subscription from '@/types/Subscription';
2
2
  import { FragmentOf } from 'gql.tada';
3
3
  export declare const PriceListCardButton_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
4
  id: string;
@@ -12,6 +12,20 @@ export declare const PriceListCardButton_PriceListFragment: import("gql.tada").T
12
12
  on: "PriceList";
13
13
  masked: true;
14
14
  }>;
15
+ export declare const PriceListCardButtonUpgradingSubscription_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
16
+ plan: {
17
+ id: string;
18
+ } | null;
19
+ [$tada.fragmentRefs]: {
20
+ canSubscriptionUpgradeFromTrial_SubscriptionFragment: "Subscription";
21
+ } & {
22
+ canSubscriptionUpgradeFromTrialExpired_SubscriptionFragment: "Subscription";
23
+ };
24
+ }, {}, {
25
+ fragment: "PriceListCardButtonUpgradingSubscription_SubscriptionFragment";
26
+ on: "Subscription";
27
+ masked: true;
28
+ }>;
15
29
  declare const PriceListCardButton: ({ disableSelectCurrentPlan, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, }: {
16
30
  disableSelectCurrentPlan: boolean;
17
31
  isPriceListCurrentSubscription: boolean;
@@ -1,4 +1,5 @@
1
- declare const PriceListCardDescription: ({ description }: {
1
+ declare const PriceListCardDescription: ({ description, className }: {
2
2
  description?: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ className?: string;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
4
5
  export default PriceListCardDescription;
@@ -1,4 +1,4 @@
1
- import { PlanFeature } from '@bunnyapp/common';
1
+ import { PlanFeature } from '@/types/frontendTypes';
2
2
  declare const PriceListCardFeature: ({ index, planFeature, }: {
3
3
  index: number;
4
4
  planFeature: PlanFeature;
@@ -1,8 +1,6 @@
1
- import { PriceList, PriceListCharge, Subscription } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import Subscription from '@/types/Subscription';
2
3
  export declare const createPlanDescription: (planDescription: string) => string;
3
- export declare const getActivePlanPriceData: (priceList?: PriceList, selectedPriceList?: PriceList) => {
4
- activeCharge: PriceListCharge | undefined;
5
- } | undefined;
6
4
  export declare const isPriceListDisabled: ({ priceList, upgradingSubscription, }: {
7
5
  priceList?: PriceList;
8
6
  upgradingSubscription: Subscription | undefined;
@@ -1,4 +1,19 @@
1
- import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
1
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
2
+ import Subscription from '@/types/Subscription';
3
+ export declare const PriceListSelectorUpgradingSubscription_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
4
+ priceList: {
5
+ id: string;
6
+ periodMonths: number | null;
7
+ plan: {
8
+ id: string;
9
+ addon: boolean | null;
10
+ } | null;
11
+ } | null;
12
+ }, {}, {
13
+ fragment: "PriceListSelectorUpgradingSubscription_SubscriptionFragment";
14
+ on: "Subscription";
15
+ masked: true;
16
+ }>;
2
17
  declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, priceListChangeOptions, subscriptions, onGoBack, }: {
3
18
  arePlanChangeOptionsLoading: boolean;
4
19
  areSubscriptionsLoading: boolean;
@@ -0,0 +1,16 @@
1
+ import PriceList from '@/types/PriceList';
2
+ import Product from '@/types/Product';
3
+ import { FragmentOf } from 'gql.tada';
4
+ export declare const createAvailableBillingPeriods_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
5
+ priceList: {
6
+ plan: {
7
+ addon: boolean | null;
8
+ } | null;
9
+ periodMonths: number | null;
10
+ } | null;
11
+ }, {}, {
12
+ fragment: "createAvailableBillingPeriods_SubscriptionFragment";
13
+ on: "Subscription";
14
+ masked: true;
15
+ }>;
16
+ export declare const createAvailableBillingPeriods: (priceLists: PriceList[] | undefined, selectedProduct: Product | undefined, maskedUpgradingSubscription: FragmentOf<typeof createAvailableBillingPeriods_SubscriptionFragment> | undefined) => number[] | undefined;