@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
@@ -0,0 +1,32 @@
1
+ export declare const QuantityEditableChargesProvider: ({ value, children }: {
2
+ value: {
3
+ feature: {
4
+ id: string;
5
+ } | null;
6
+ deprecated: boolean | null;
7
+ id: string;
8
+ featureAddon: boolean | null;
9
+ [$tada.fragmentRefs]: {
10
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
11
+ } & {
12
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
13
+ } & {
14
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
15
+ };
16
+ }[] | undefined;
17
+ children?: import("react").ReactNode;
18
+ }) => import("react/jsx-runtime").JSX.Element, useQuantityEditableChargesContext: () => {
19
+ feature: {
20
+ id: string;
21
+ } | null;
22
+ deprecated: boolean | null;
23
+ id: string;
24
+ featureAddon: boolean | null;
25
+ [$tada.fragmentRefs]: {
26
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
27
+ } & {
28
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
29
+ } & {
30
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
31
+ };
32
+ }[] | undefined;
@@ -29,7 +29,7 @@ export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentN
29
29
  startDate: unknown;
30
30
  }[] | null;
31
31
  amount: number | null;
32
- billingPeriod: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | null;
32
+ billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
33
33
  currencyId: string;
34
34
  feature: {
35
35
  unitName: string | null;
@@ -29,6 +29,9 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
29
29
  quantityMin: number | null;
30
30
  quantityMax: number | null;
31
31
  selfServiceQuantity: boolean | null;
32
+ [$tada.fragmentRefs]: {
33
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
34
+ };
32
35
  } | null;
33
36
  feature: {
34
37
  id: string;
@@ -45,6 +48,8 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
45
48
  AddonPlanRow_QuoteFragment: "Quote";
46
49
  } & {
47
50
  FeatureAddonRow_QuoteFragment: "Quote";
51
+ } & {
52
+ PaymentForms_QuoteFragment: "Quote";
48
53
  };
49
54
  }, {}, {
50
55
  fragment: "QuoteContext_QuoteFragment";
@@ -1,12 +1,12 @@
1
1
  export type FeatureQuantitiesDict = Record<string, number | undefined>;
2
2
  /**
3
- * Hook to manage feature quantities using a dictionary keyed by feature ID
4
- * This tracks quantities for each unique feature.
3
+ * Hook to manage feature quantities per (featureId, priceListChargeId) pair.
4
+ * Supports different quantities for different price list charges that share a feature.
5
5
  */
6
6
  export declare function useFeatureQuantities({ onFeatureQuantitiesChanged, }: {
7
7
  onFeatureQuantitiesChanged?: (featureQuantities: FeatureQuantitiesDict) => void;
8
8
  }): {
9
9
  featureQuantities: FeatureQuantitiesDict;
10
- getFeatureQuantity: (featureId: string, featureQuantities: FeatureQuantitiesDict) => number | undefined;
11
- onUpdateFeatureQuantity: (featureId: string, quantity: number) => void;
10
+ getFeatureQuantity: (featureId: string, priceListChargeId: string, featureQuantitiesSnapshot?: FeatureQuantitiesDict) => number | undefined;
11
+ onUpdateFeatureQuantity: (featureId: string, priceListChargeId: string, quantity: number) => void;
12
12
  };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Returns whether the editing quote query for the given quote ID is currently fetching.
3
+ */
4
+ export declare function useIsFetchingQuote(quoteId: string | undefined): boolean;
@@ -0,0 +1,70 @@
1
+ import { FragmentOf, ResultOf } from 'gql.tada';
2
+ import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
3
+ export declare const useQuantityEditableCharges_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
4
+ id: string;
5
+ currentCharges: {
6
+ quantity: number | null;
7
+ priceListCharge: {
8
+ id: string;
9
+ } | null;
10
+ }[] | null;
11
+ }, {}, {
12
+ fragment: "useQuantityEditableCharges_SubscriptionFragment";
13
+ on: "Subscription";
14
+ masked: true;
15
+ }>;
16
+ export declare const useQuantityEditableCharges_PriceListFragment: import("gql.tada").TadaDocumentNode<{
17
+ id: string;
18
+ charges: {
19
+ feature: {
20
+ id: string;
21
+ } | null;
22
+ deprecated: boolean | null;
23
+ id: string;
24
+ featureAddon: boolean | null;
25
+ [$tada.fragmentRefs]: {
26
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
27
+ } & {
28
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
29
+ } & {
30
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
31
+ };
32
+ }[] | null;
33
+ [$tada.fragmentRefs]: {
34
+ useSelectedPriceListQuoteChange_PriceListFragment: "PriceList";
35
+ };
36
+ }, {}, {
37
+ fragment: "useQuantityEditableCharges_PriceListFragment";
38
+ on: "PriceList";
39
+ masked: true;
40
+ }>;
41
+ /**
42
+ * Hook to provide list of pricelist charges whose quantities can be edited
43
+ */
44
+ export declare function useQuantityEditableCharges({ upgradingSubscription: maskedUpgradingSubscription, pricelist: maskedPricelist, quote }: {
45
+ upgradingSubscription: FragmentOf<typeof useQuantityEditableCharges_SubscriptionFragment> | undefined;
46
+ pricelist: FragmentOf<typeof useQuantityEditableCharges_PriceListFragment> | null;
47
+ quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
48
+ }): {
49
+ quantityEditableCharges: {
50
+ feature: {
51
+ id: string;
52
+ } | null;
53
+ deprecated: boolean | null;
54
+ id: string;
55
+ featureAddon: boolean | null;
56
+ [$tada.fragmentRefs]: {
57
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
58
+ } & {
59
+ PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
60
+ } & {
61
+ useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
62
+ };
63
+ }[] | undefined;
64
+ findSubscriptionCharge: (priceListChargeId: string) => {
65
+ quantity: number | null;
66
+ priceListCharge: {
67
+ id: string;
68
+ } | null;
69
+ } | undefined;
70
+ };
@@ -1,4 +1,5 @@
1
- import { PriceList, Subscription } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import Subscription from '@/types/Subscription';
2
3
  export declare const useQuoteCreate: ({ upgradingSubscription, selectedPriceList, token, }: {
3
4
  upgradingSubscription?: Subscription;
4
5
  selectedPriceList?: PriceList;
@@ -1,11 +1,35 @@
1
- import { PriceList } from '@bunnyapp/common';
2
- import { ResultOf } from 'gql.tada';
1
+ import PriceList from '@/types/PriceList';
2
+ import { FragmentOf, ResultOf } from 'gql.tada';
3
3
  import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
4
- export declare const useQuoteQuantities: ({ selectedPriceList, quote, }: {
4
+ export declare const useQuoteQuantities_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
5
+ feature: {
6
+ id: string;
7
+ } | null;
8
+ id: string;
9
+ quantityMax: number | null;
10
+ quantityMin: number | null;
11
+ selfServiceQuantity: boolean | null;
12
+ }, {}, {
13
+ fragment: "useQuoteQuantities_PriceListChargeFragment";
14
+ on: "PriceListCharge";
15
+ masked: true;
16
+ }>;
17
+ export declare const useQuoteQuantities_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
18
+ currentCharges: {
19
+ id: string | null;
20
+ quantity: number | null;
21
+ }[] | null;
22
+ }, {}, {
23
+ fragment: "useQuoteQuantities_SubscriptionFragment";
24
+ on: "Subscription";
25
+ masked: true;
26
+ }>;
27
+ export declare const useQuoteQuantities: ({ selectedPriceList, quote, quantityEditableCharges: maskedQuantityEditableCharges, }: {
5
28
  selectedPriceList: PriceList;
6
29
  quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
30
+ quantityEditableCharges: FragmentOf<typeof useQuoteQuantities_PriceListChargeFragment>[] | undefined;
7
31
  }) => {
8
32
  onChangeQuantity: (priceListChargeId: string, quantity: number) => void;
9
- getFeatureQuantity: (featureId: string) => number | undefined;
10
- isUpdatingCharges: boolean;
33
+ getFeatureQuantity: (featureId: string, chargeId: string) => number | undefined;
34
+ featureQuantities: import("./useFeatureQuantities").FeatureQuantitiesDict;
11
35
  };
@@ -0,0 +1,37 @@
1
+ import { FragmentOf, ResultOf } from 'gql.tada';
2
+ import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
3
+ export declare const useSelectedPriceListQuoteChange_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
+ id: string;
5
+ }, {}, {
6
+ fragment: "useSelectedPriceListQuoteChange_PriceListFragment";
7
+ on: "PriceList";
8
+ masked: true;
9
+ }>;
10
+ export declare function useSelectedPriceListQuoteChange({ quote, selectedPriceList: maskedSelectedPriceList, }: {
11
+ quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
12
+ selectedPriceList: FragmentOf<typeof useSelectedPriceListQuoteChange_PriceListFragment> | null;
13
+ }): {
14
+ id: string | null;
15
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
16
+ priceList: {
17
+ id: string;
18
+ } | null;
19
+ charges: {
20
+ priceListCharge: {
21
+ id: string;
22
+ chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
23
+ pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
24
+ quantityMin: number | null;
25
+ quantityMax: number | null;
26
+ selfServiceQuantity: boolean | null;
27
+ [$tada.fragmentRefs]: {
28
+ CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
29
+ };
30
+ } | null;
31
+ feature: {
32
+ id: string;
33
+ } | null;
34
+ quantity: number | null;
35
+ id: string | null;
36
+ }[];
37
+ } | undefined;
@@ -0,0 +1,23 @@
1
+ type QuoteChangeCreateChargeProps = {
2
+ apiHost: string;
3
+ price?: number;
4
+ priceListChargeId?: string;
5
+ quantity?: number;
6
+ quoteChangeId: string;
7
+ startDate: string;
8
+ subscriptionChargeId?: string;
9
+ token?: string;
10
+ };
11
+ export declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<{
12
+ quoteChange: {
13
+ id: string | null;
14
+ quoteId: string;
15
+ quote: {
16
+ [$tada.fragmentRefs]: {
17
+ QuoteContext_QuoteFragment: "Quote";
18
+ };
19
+ };
20
+ };
21
+ id: string | null;
22
+ } | null | undefined>;
23
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare const quoteChargeUpdate: (quoteChargeId: string, quantity: number, apiHost: string, token?: string) => Promise<{
2
+ quoteChange: {
3
+ id: string | null;
4
+ quoteId: string;
5
+ quote: {
6
+ [$tada.fragmentRefs]: {
7
+ QuoteContext_QuoteFragment: "Quote";
8
+ };
9
+ };
10
+ };
11
+ id: string | null;
12
+ } | null | undefined>;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Mutation key used by all quote-related mutations (create/update/delete quote,
3
+ * quote changes, quote charges, recalculate taxes, etc.).
4
+ * Use this when calling useMutation so that useIsQuoteMutating() can detect loading.
5
+ */
6
+ export declare const QUOTE_MUTATION_KEY: readonly ["quote"];
7
+ export declare const QUOTE_RECALCULATE_TAXES_MUTATION_KEY: readonly ["quoteRecalculateTaxes"];
8
+ /**
9
+ * Returns the number of quote-related mutations currently in progress.
10
+ * Use in any component to show loading state or disable actions while the quote is being updated.
11
+ *
12
+ * @example
13
+ * const isQuoteMutating = useIsQuoteMutating();
14
+ * <Button disabled={isQuoteMutating}>Submit</Button>
15
+ *
16
+ * @example
17
+ * const count = useIsQuoteMutating();
18
+ * const isQuoteMutating = count > 0;
19
+ */
20
+ export declare function useIsQuoteMutating(): number;
@@ -1,4 +1,4 @@
1
- import { Transaction } from '@bunnyapp/common';
1
+ import { Transaction } from '@/types/Transaction';
2
2
  import { ShadowType } from '../../types/shadowType';
3
3
  import { TransactionListColumnType } from '../Transactions/transactionsList/TransactionsListDesktop';
4
4
  declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, renderQuote, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
@@ -1,12 +1,48 @@
1
- import '../../styles/index.less';
2
- import { PriceList, Quote } from '@bunnyapp/common';
3
- export default function CheckoutSummary({ quote, className, onAddCoupon, onRemoveCoupon, isRemovingCoupon, priceListData, isAddingCoupon, couponCode, setCouponCode, activeCouponsExist, }: {
4
- quote: Quote;
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const CheckoutSummary_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ product: {
4
+ name: string;
5
+ } | null;
6
+ name: string;
7
+ }, {}, {
8
+ fragment: "CheckoutSummary_PriceListFragment";
9
+ on: "PriceList";
10
+ masked: true;
11
+ }>;
12
+ export declare const CheckoutSummary_QuoteFragment: import("gql.tada").TadaDocumentNode<{
13
+ id: string | null;
14
+ amountDue: number | null;
15
+ subtotal: number;
16
+ taxAmount: number;
17
+ currencyId: string;
18
+ quoteChanges: {
19
+ charges: {
20
+ id: string | null;
21
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
22
+ name: string | null;
23
+ coupon: {
24
+ couponCode: string;
25
+ } | null;
26
+ quantity: number | null;
27
+ subtotal: number | null;
28
+ currencyId: string;
29
+ }[];
30
+ }[] | null;
31
+ [$tada.fragmentRefs]: {
32
+ shouldShowCouponEditor_QuoteFragment: "Quote";
33
+ };
34
+ }, {}, {
35
+ fragment: "CheckoutSummary_QuoteFragment";
36
+ on: "Quote";
37
+ masked: true;
38
+ }>;
39
+ export default function CheckoutSummary({ quote: maskedQuote, className, onAddCoupon, onRemoveCoupon, isRemovingCoupon, priceList: maskedPriceList, isAddingCoupon, couponCode, setCouponCode, activeCouponsExist, }: {
40
+ quote: FragmentOf<typeof CheckoutSummary_QuoteFragment>;
5
41
  className?: string;
6
42
  onAddCoupon: (couponCode: string) => void;
7
43
  onRemoveCoupon: (couponCode: string) => void;
8
44
  isRemovingCoupon: boolean;
9
- priceListData?: PriceList;
45
+ priceList: FragmentOf<typeof CheckoutSummary_PriceListFragment> | undefined | null;
10
46
  isAddingCoupon: boolean;
11
47
  couponCode: string;
12
48
  setCouponCode: (couponCode: string) => void;
@@ -1,6 +1,15 @@
1
- import { Quote } from '@bunnyapp/common';
2
- export default function PaymentForms({ quote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
3
- quote?: Quote;
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const PaymentForms_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
+ [$tada.fragmentRefs]: {
4
+ PaymentForm_QuoteFragment: "Quote";
5
+ };
6
+ }, {}, {
7
+ fragment: "PaymentForms_QuoteFragment";
8
+ on: "Quote";
9
+ masked: true;
10
+ }>;
11
+ export default function PaymentForms({ quote: maskedQuote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
12
+ quote?: FragmentOf<typeof PaymentForms_QuoteFragment> | null;
4
13
  handlePaymentSuccess: () => void;
5
14
  handleSubmit: (formData: FormData) => void;
6
15
  proceedingToPayment: boolean;
@@ -1,5 +1,19 @@
1
- import '../../styles/index.less';
2
- import { PriceList } from '@bunnyapp/common';
3
- export default function PriceListDisplay({ priceListData }: {
4
- priceListData?: PriceList;
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const PriceListDisplay_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ product: {
4
+ name: string;
5
+ } | null;
6
+ name: string;
7
+ basePrice: number | null;
8
+ currencyId: string;
9
+ trialAllowed: boolean;
10
+ trialLengthDays: number | null;
11
+ periodMonths: number | null;
12
+ }, {}, {
13
+ fragment: "PriceListDisplay_PriceListFragment";
14
+ on: "PriceList";
15
+ masked: true;
16
+ }>;
17
+ export default function PriceListDisplay({ priceList: maskedPriceList }: {
18
+ priceList: FragmentOf<typeof PriceListDisplay_PriceListFragment> | undefined | null;
5
19
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,3 @@
1
- import '../../styles/index.less';
2
1
  import { ShadowType } from '../../types/shadowType';
3
2
  export default function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, defaultFirstName, defaultLastName, defaultEmail, defaultCompanyName, defaultBillingCountry, }: {
4
3
  /** The company name to display on the signup page */
@@ -0,0 +1,14 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const SelfServiceBuyWarning_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ plan: {
4
+ selfServiceBuy: boolean | null;
5
+ } | null;
6
+ }, {}, {
7
+ fragment: "SelfServiceBuyWarning_PriceListFragment";
8
+ on: "PriceList";
9
+ masked: true;
10
+ }>;
11
+ export default function SelfServiceBuyWarning({ priceList: maskedPriceList, onShowSelfServiceBuyWarning, }: {
12
+ priceList: FragmentOf<typeof SelfServiceBuyWarning_PriceListFragment> | undefined | null;
13
+ onShowSelfServiceBuyWarning: () => void;
14
+ }): null;
@@ -0,0 +1,17 @@
1
+ export declare const Signup_PriceListFragment: import("gql.tada").TadaDocumentNode<{
2
+ [$tada.fragmentRefs]: {
3
+ CheckoutSummary_PriceListFragment: "PriceList";
4
+ } & {
5
+ PriceListDisplay_PriceListFragment: "PriceList";
6
+ } & {
7
+ SelfServiceBuyWarning_PriceListFragment: "PriceList";
8
+ };
9
+ plan: {
10
+ selfServiceBuy: boolean | null;
11
+ } | null;
12
+ trialAllowed: boolean;
13
+ }, {}, {
14
+ fragment: "Signup_PriceListFragment";
15
+ on: "PriceList";
16
+ masked: true;
17
+ }>;
@@ -0,0 +1,17 @@
1
+ export declare const Signup_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ [$tada.fragmentRefs]: {
3
+ CheckoutSummary_QuoteFragment: "Quote";
4
+ } & {
5
+ PaymentForms_QuoteFragment: "Quote";
6
+ };
7
+ id: string | null;
8
+ currencyId: string;
9
+ amountDue: number | null;
10
+ quoteChanges: {
11
+ id: string | null;
12
+ }[] | null;
13
+ }, {}, {
14
+ fragment: "Signup_QuoteFragment";
15
+ on: "Quote";
16
+ masked: true;
17
+ }>;
@@ -0,0 +1,58 @@
1
+ declare const accountSignup: ({ token, apiHost, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, }: {
2
+ token: string;
3
+ apiHost: string;
4
+ accountId: string;
5
+ quoteId: string;
6
+ paymentToken?: string;
7
+ paymentMethodId?: string;
8
+ pluginId: string;
9
+ priceListCode: string;
10
+ }) => Promise<{
11
+ errors: string[] | null;
12
+ quote: {
13
+ accountId: string;
14
+ amount: number;
15
+ amountDue: number | null;
16
+ applicationDate: unknown;
17
+ applied: boolean;
18
+ backdatedPeriods: boolean | null;
19
+ backdatedQuote: boolean | null;
20
+ billingDay: number | null;
21
+ contactId: string | null;
22
+ createdAt: unknown;
23
+ credits: number | null;
24
+ currencyId: string;
25
+ dealId: string | null;
26
+ discount: number | null;
27
+ discountValue: number;
28
+ endDate: unknown;
29
+ evergreen: boolean | null;
30
+ expiresAt: unknown;
31
+ id: string | null;
32
+ invoiceImmediately: boolean | null;
33
+ invoiceImmediatelyAvailable: boolean | null;
34
+ invoiceUntil: unknown;
35
+ isPendingApprovalRequest: boolean;
36
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
37
+ message: string | null;
38
+ name: string | null;
39
+ netPaymentDays: number | null;
40
+ notes: string | null;
41
+ number: string | null;
42
+ ownerId: string | null;
43
+ payableId: string | null;
44
+ periodAmount: number | null;
45
+ poNumber: string | null;
46
+ requiresApproval: boolean;
47
+ smallUnitAmountDue: number | null;
48
+ splitInvoice: boolean | null;
49
+ startDate: unknown;
50
+ state: "APPROVED" | "REJECTED" | "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "UNDONE";
51
+ subtotal: number;
52
+ taxAmount: number;
53
+ taxCode: string | null;
54
+ updatedAt: unknown;
55
+ uuid: string;
56
+ } | null;
57
+ } | null>;
58
+ export default accountSignup;
@@ -0,0 +1,31 @@
1
+ import BillingDetails from '@/types/billingDetails';
2
+ type BillingContact = {
3
+ firstName: string;
4
+ lastName: string;
5
+ email: string;
6
+ };
7
+ declare const quoteAccountSignup: ({ token, apiHost, priceListCode, accountName, billingContact, billingDetails, trial, }: {
8
+ token?: string;
9
+ apiHost: string;
10
+ priceListCode: string;
11
+ accountName: string;
12
+ billingContact: BillingContact;
13
+ billingDetails?: BillingDetails;
14
+ trial: boolean;
15
+ }) => Promise<{
16
+ account: {
17
+ id: string;
18
+ } | null;
19
+ quote: {
20
+ [$tada.fragmentRefs]: {
21
+ Signup_QuoteFragment: "Quote";
22
+ };
23
+ id: string | null;
24
+ } | null;
25
+ tenant: {
26
+ code: string | null;
27
+ } | null;
28
+ portalSessionToken: string | null;
29
+ errors: string[] | null;
30
+ } | null>;
31
+ export default quoteAccountSignup;
@@ -2,5 +2,9 @@ declare const quoteRecalculateTaxes: ({ quoteId, apiHost, token, }: {
2
2
  quoteId: string;
3
3
  apiHost: string;
4
4
  token?: string;
5
- }) => Promise<any>;
5
+ }) => Promise<{
6
+ [$tada.fragmentRefs]: {
7
+ Signup_QuoteFragment: "Quote";
8
+ };
9
+ } | null | undefined>;
6
10
  export default quoteRecalculateTaxes;
@@ -1,7 +1,10 @@
1
- import { PriceList } from '@bunnyapp/common';
2
1
  declare const getPriceList: ({ token, code, apiHost, }: {
3
2
  token?: string;
4
3
  code: string;
5
4
  apiHost: string;
6
- }) => Promise<PriceList>;
5
+ }) => Promise<{
6
+ [$tada.fragmentRefs]: {
7
+ Signup_PriceListFragment: "PriceList";
8
+ };
9
+ } | null>;
7
10
  export default getPriceList;
@@ -0,0 +1,10 @@
1
+ declare const getQuote: ({ id, token, apiHost, }: {
2
+ id: string;
3
+ token?: string;
4
+ apiHost: string;
5
+ }) => Promise<{
6
+ [$tada.fragmentRefs]: {
7
+ Signup_QuoteFragment: "Quote";
8
+ };
9
+ } | null>;
10
+ export default getQuote;
@@ -1,8 +1,19 @@
1
- import { Subscription } from '@bunnyapp/common';
2
- export declare function AddonSubscriptionsCards({ onCancelSubscriptionClick, onChangePlanClick, subscriptions, subscription, showInactive, }: {
3
- onCancelSubscriptionClick: (subscription: Subscription) => void;
4
- onChangePlanClick: (subscription: Subscription) => void;
5
- subscriptions: Subscription[];
6
- subscription: Subscription;
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const AddonSubscriptionsCards_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
3
+ id: string;
4
+ state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
5
+ [$tada.fragmentRefs]: {
6
+ SubscriptionCardDesktop_SubscriptionFragment: "Subscription";
7
+ } & {
8
+ findAddonSubscriptions_SubscriptionFragment: "Subscription";
9
+ };
10
+ }, {}, {
11
+ fragment: "AddonSubscriptionsCards_SubscriptionFragment";
12
+ on: "Subscription";
13
+ masked: true;
14
+ }>;
15
+ export declare function AddonSubscriptionsCards({ subscriptions: maskedSubscriptions, subscription: maskedSubscription, showInactive, }: {
16
+ subscriptions: FragmentOf<typeof AddonSubscriptionsCards_SubscriptionFragment>[];
17
+ subscription: FragmentOf<typeof AddonSubscriptionsCards_SubscriptionFragment>;
7
18
  showInactive: boolean;
8
19
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,11 +1,4 @@
1
- export declare const Subscriptions_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
2
- state: "TRIAL" | "ACTIVE" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
3
- }, {}, {
4
- fragment: "Subscriptions_SubscriptionFragment";
5
- on: "Subscription";
6
- masked: true;
7
- }>;
8
- declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, }: {
1
+ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, onPaymentMethodSaved, onPaymentMethodRemoved, onSubscriptionUpgradeClick, }: {
9
2
  handlePortalErrors?: (errors: any) => void;
10
3
  companyName: string;
11
4
  isInPreviewMode?: boolean;
@@ -19,5 +12,8 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
19
12
  noSubscriptionsComponent?: React.ReactNode;
20
13
  showInactiveSubscriptions?: boolean;
21
14
  showInactiveSubscriptionsToggle?: boolean;
15
+ onPaymentMethodSaved?: (paymentMethodId: string) => void;
16
+ onPaymentMethodRemoved?: (paymentMethodId: string) => void;
17
+ onSubscriptionUpgradeClick?: (subscriptionId: string) => void;
22
18
  }) => import("react/jsx-runtime").JSX.Element;
23
19
  export default SubscriptionsWrapper;