@bunnyapp/components 1.6.0-beta.9.4 → 1.7.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 (435) hide show
  1. package/README.md +94 -0
  2. package/dist/cjs/index.js +7603 -5949
  3. package/dist/cjs/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
  4. package/dist/cjs/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
  5. package/dist/cjs/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
  6. package/dist/cjs/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +9 -0
  7. package/dist/cjs/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
  8. package/dist/cjs/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
  9. package/dist/cjs/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
  10. package/dist/cjs/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
  11. package/dist/cjs/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
  12. package/dist/cjs/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
  13. package/dist/cjs/types/src/components/BunnyProvider.d.ts +0 -2
  14. package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +19 -3
  15. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +78 -4
  16. package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
  17. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +17 -13
  18. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +27 -0
  19. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/components/CardImage.d.ts +14 -0
  20. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +1 -1
  21. package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +1 -6
  22. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +1 -1
  23. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -4
  24. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +7 -16
  25. package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +5 -6
  26. package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -6
  27. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +1 -1
  28. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -4
  29. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +4 -5
  30. package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
  31. package/dist/cjs/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +2 -0
  32. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +2 -0
  33. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +4 -0
  34. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodSelector.d.ts +2 -0
  35. package/dist/cjs/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +5 -0
  36. package/dist/cjs/types/src/components/PaymentForm/context/OverrideTokenContext.d.ts +4 -0
  37. package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +32 -0
  38. package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +6 -0
  39. package/dist/cjs/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +16 -0
  40. package/dist/cjs/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +5 -0
  41. package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +10 -0
  42. package/dist/cjs/types/src/components/PaymentForm/hooks/useAutoSetDefaultPaymentMethod.d.ts +2 -5
  43. package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +25 -0
  44. package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -0
  45. package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +1 -0
  46. package/dist/cjs/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +2 -0
  47. package/dist/cjs/types/src/components/PaymentForm/hooks/useSetDefaultPaymentMethod.d.ts +5 -0
  48. package/dist/cjs/types/src/components/PaymentForm/types/PaymentType.d.ts +5 -0
  49. package/dist/cjs/types/src/components/Quote/Quote.d.ts +5 -1
  50. package/dist/cjs/types/src/components/QuoteProvider/QuoteProvider.d.ts +4 -0
  51. package/dist/cjs/types/src/components/{QuoteProvider.d.ts → QuoteProvider/context/QuoteContext.d.ts} +5 -6
  52. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
  53. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +53 -0
  54. package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
  55. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +19 -0
  56. package/dist/{esm/types/src/hooks/quotes → cjs/types/src/components/QuoteProvider/hooks}/useQuoteQuantities.d.ts +4 -7
  57. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  58. package/dist/cjs/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
  59. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
  60. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
  61. package/dist/cjs/types/src/components/QuoteProvider/queries/getQuote.d.ts +16 -0
  62. package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
  63. package/dist/cjs/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
  64. package/dist/cjs/types/src/components/Quotes/Quotes.d.ts +3 -3
  65. package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +3 -4
  66. package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +3 -2
  67. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
  68. package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +2 -6
  69. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
  70. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +3 -2
  71. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +2 -2
  72. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +15 -2
  73. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
  74. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
  75. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
  76. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +5 -4
  77. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -2
  78. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +33 -0
  79. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +12 -3
  80. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +26 -4
  81. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
  82. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
  83. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
  84. package/dist/cjs/types/src/{graphql → components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
  85. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
  86. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +52 -0
  87. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +10 -0
  88. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +19 -0
  89. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +25 -0
  90. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
  91. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +18 -0
  92. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
  93. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
  94. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
  95. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
  96. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/queries/getAddonPlans.d.ts +13 -0
  97. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -1
  98. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +19 -2
  99. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +23 -0
  100. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -0
  101. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +21 -4
  102. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +16 -3
  103. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  104. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPrice.d.ts +12 -3
  105. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +2 -3
  106. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
  107. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
  108. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -6
  109. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +12 -0
  110. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
  111. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
  112. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
  113. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
  114. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +14 -0
  115. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
  116. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  117. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
  118. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeCreate.d.ts +23 -0
  119. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeUpdate.d.ts +12 -0
  120. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
  121. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
  122. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteSubscriptionUpdate.d.ts +22 -0
  123. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
  124. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +12 -18
  125. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
  126. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
  127. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
  128. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +3 -11
  129. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -2
  130. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  131. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
  132. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
  133. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +0 -2
  134. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +11 -0
  135. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -0
  136. package/dist/cjs/types/src/components/TaxationForm.d.ts +3 -3
  137. package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +1 -1
  138. package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +43 -0
  139. package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +23 -0
  140. package/dist/cjs/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +7 -0
  141. package/dist/cjs/types/src/components/priceListPricing/components/PriceTierRow.d.ts +13 -0
  142. package/dist/cjs/types/src/components/priceListPricing/misc/consts.d.ts +1 -0
  143. package/dist/cjs/types/src/components/priceListPricing/types/PriceTier.d.ts +4 -0
  144. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +2 -0
  145. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +2 -0
  146. package/dist/cjs/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +13 -0
  147. package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
  148. package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getChargeBasePrice.d.ts +8 -0
  149. package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getFirstTierPrice.d.ts +7 -0
  150. package/dist/cjs/types/src/contexts/BrandContext.d.ts +11 -2
  151. package/dist/cjs/types/src/graphql/QuoteRequests.d.ts +0 -5
  152. package/dist/cjs/types/src/graphql/mutations/quoteChargeDelete.d.ts +11 -2
  153. package/dist/cjs/types/src/graphql/queries/getBranding.d.ts +7 -2
  154. package/dist/cjs/types/src/graphql/queries/getCurrentUserData.d.ts +11 -7
  155. package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +139 -1
  156. package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
  157. package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +29 -2
  158. package/dist/cjs/types/src/graphql-codegen/exportedScalarTypes.d.ts +6 -0
  159. package/dist/cjs/types/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -1
  160. package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +1 -0
  161. package/dist/cjs/types/src/hooks/useCreateQueryClient.d.ts +2 -0
  162. package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +11 -7
  163. package/dist/cjs/types/src/hooks/useIsMobile.d.ts +9 -0
  164. package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +47 -6
  165. package/dist/cjs/types/src/hooks/usePaymentPlugins.d.ts +13 -27
  166. package/dist/cjs/types/src/index.d.ts +2 -2
  167. package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +106 -0
  168. package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
  169. package/dist/cjs/types/src/utils/addonPlanUtils/getAddonsForBillingPeriod.d.ts +8 -0
  170. package/dist/cjs/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +15 -0
  171. package/dist/cjs/types/src/utils/apiUtils/invokePlugin.d.ts +10 -0
  172. package/dist/cjs/types/src/utils/chargeUtils.d.ts +5 -2
  173. package/dist/cjs/types/src/utils/createStateContext.d.ts +11 -0
  174. package/dist/cjs/types/src/utils/createValueContext.d.ts +14 -0
  175. package/dist/cjs/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +20 -0
  176. package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
  177. package/dist/cjs/types/src/utils/formatCurrency.d.ts +1 -0
  178. package/dist/cjs/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +12 -0
  179. package/dist/cjs/types/src/utils/priceListUtils/getPrice.d.ts +11 -0
  180. package/dist/cjs/types/src/utils/priceListUtils/priceDescription.d.ts +6 -0
  181. package/dist/cjs/types/src/utils/priceListUtils/priceListPriceText.d.ts +19 -0
  182. package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +4 -4
  183. package/dist/esm/index.js +7624 -5970
  184. package/dist/esm/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
  185. package/dist/esm/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
  186. package/dist/esm/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
  187. package/dist/esm/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +9 -0
  188. package/dist/esm/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
  189. package/dist/esm/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
  190. package/dist/esm/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
  191. package/dist/esm/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
  192. package/dist/esm/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
  193. package/dist/esm/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
  194. package/dist/esm/types/src/components/BunnyProvider.d.ts +0 -2
  195. package/dist/esm/types/src/components/Checkout/Checkout.d.ts +19 -3
  196. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +78 -4
  197. package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
  198. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +17 -13
  199. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +27 -0
  200. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/components/CardImage.d.ts +14 -0
  201. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +1 -1
  202. package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +1 -6
  203. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +1 -1
  204. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -4
  205. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +7 -16
  206. package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +5 -6
  207. package/dist/esm/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -6
  208. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +1 -1
  209. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -4
  210. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +4 -5
  211. package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
  212. package/dist/esm/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +2 -0
  213. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +2 -0
  214. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +4 -0
  215. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodSelector.d.ts +2 -0
  216. package/dist/esm/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +5 -0
  217. package/dist/esm/types/src/components/PaymentForm/context/OverrideTokenContext.d.ts +4 -0
  218. package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +32 -0
  219. package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +6 -0
  220. package/dist/esm/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +16 -0
  221. package/dist/esm/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +5 -0
  222. package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +10 -0
  223. package/dist/esm/types/src/components/PaymentForm/hooks/useAutoSetDefaultPaymentMethod.d.ts +2 -5
  224. package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +25 -0
  225. package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -0
  226. package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +1 -0
  227. package/dist/esm/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +2 -0
  228. package/dist/esm/types/src/components/PaymentForm/hooks/useSetDefaultPaymentMethod.d.ts +5 -0
  229. package/dist/esm/types/src/components/PaymentForm/types/PaymentType.d.ts +5 -0
  230. package/dist/esm/types/src/components/Quote/Quote.d.ts +5 -1
  231. package/dist/esm/types/src/components/QuoteProvider/QuoteProvider.d.ts +4 -0
  232. package/dist/esm/types/src/components/{QuoteProvider.d.ts → QuoteProvider/context/QuoteContext.d.ts} +5 -6
  233. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
  234. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +53 -0
  235. package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
  236. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +19 -0
  237. package/dist/{cjs/types/src/hooks/quotes → esm/types/src/components/QuoteProvider/hooks}/useQuoteQuantities.d.ts +4 -7
  238. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  239. package/dist/esm/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
  240. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
  241. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
  242. package/dist/esm/types/src/components/QuoteProvider/queries/getQuote.d.ts +16 -0
  243. package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
  244. package/dist/esm/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
  245. package/dist/esm/types/src/components/Quotes/Quotes.d.ts +3 -3
  246. package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +3 -4
  247. package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +3 -2
  248. package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
  249. package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +2 -6
  250. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
  251. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +3 -2
  252. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +2 -2
  253. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +15 -2
  254. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
  255. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
  256. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
  257. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +5 -4
  258. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -2
  259. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +33 -0
  260. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +12 -3
  261. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +26 -4
  262. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
  263. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
  264. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
  265. package/dist/esm/types/src/{graphql → components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
  266. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
  267. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +52 -0
  268. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +10 -0
  269. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +19 -0
  270. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +25 -0
  271. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
  272. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +18 -0
  273. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
  274. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
  275. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
  276. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
  277. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/queries/getAddonPlans.d.ts +13 -0
  278. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -1
  279. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +19 -2
  280. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +23 -0
  281. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -0
  282. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +21 -4
  283. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +16 -3
  284. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  285. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPrice.d.ts +12 -3
  286. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +2 -3
  287. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
  288. package/dist/esm/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
  289. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -6
  290. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +12 -0
  291. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
  292. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
  293. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
  294. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
  295. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +14 -0
  296. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
  297. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  298. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
  299. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeCreate.d.ts +23 -0
  300. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeUpdate.d.ts +12 -0
  301. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
  302. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
  303. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteSubscriptionUpdate.d.ts +22 -0
  304. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
  305. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +12 -18
  306. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
  307. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
  308. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
  309. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +3 -11
  310. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -2
  311. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  312. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
  313. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
  314. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +0 -2
  315. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +11 -0
  316. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -0
  317. package/dist/esm/types/src/components/TaxationForm.d.ts +3 -3
  318. package/dist/esm/types/src/components/Transactions/Transactions.d.ts +1 -1
  319. package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +43 -0
  320. package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +23 -0
  321. package/dist/esm/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +7 -0
  322. package/dist/esm/types/src/components/priceListPricing/components/PriceTierRow.d.ts +13 -0
  323. package/dist/esm/types/src/components/priceListPricing/misc/consts.d.ts +1 -0
  324. package/dist/esm/types/src/components/priceListPricing/types/PriceTier.d.ts +4 -0
  325. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +2 -0
  326. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +2 -0
  327. package/dist/esm/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +13 -0
  328. package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
  329. package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getChargeBasePrice.d.ts +8 -0
  330. package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getFirstTierPrice.d.ts +7 -0
  331. package/dist/esm/types/src/contexts/BrandContext.d.ts +11 -2
  332. package/dist/esm/types/src/graphql/QuoteRequests.d.ts +0 -5
  333. package/dist/esm/types/src/graphql/mutations/quoteChargeDelete.d.ts +11 -2
  334. package/dist/esm/types/src/graphql/queries/getBranding.d.ts +7 -2
  335. package/dist/esm/types/src/graphql/queries/getCurrentUserData.d.ts +11 -7
  336. package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +139 -1
  337. package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
  338. package/dist/esm/types/src/graphql/queries/getQuote.d.ts +29 -2
  339. package/dist/esm/types/src/graphql-codegen/exportedScalarTypes.d.ts +6 -0
  340. package/dist/esm/types/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -1
  341. package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +1 -0
  342. package/dist/esm/types/src/hooks/useCreateQueryClient.d.ts +2 -0
  343. package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +11 -7
  344. package/dist/esm/types/src/hooks/useIsMobile.d.ts +9 -0
  345. package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +47 -6
  346. package/dist/esm/types/src/hooks/usePaymentPlugins.d.ts +13 -27
  347. package/dist/esm/types/src/index.d.ts +2 -2
  348. package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +106 -0
  349. package/dist/esm/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
  350. package/dist/esm/types/src/utils/addonPlanUtils/getAddonsForBillingPeriod.d.ts +8 -0
  351. package/dist/esm/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +15 -0
  352. package/dist/esm/types/src/utils/apiUtils/invokePlugin.d.ts +10 -0
  353. package/dist/esm/types/src/utils/chargeUtils.d.ts +5 -2
  354. package/dist/esm/types/src/utils/createStateContext.d.ts +11 -0
  355. package/dist/esm/types/src/utils/createValueContext.d.ts +14 -0
  356. package/dist/esm/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +20 -0
  357. package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
  358. package/dist/esm/types/src/utils/formatCurrency.d.ts +1 -0
  359. package/dist/esm/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +12 -0
  360. package/dist/esm/types/src/utils/priceListUtils/getPrice.d.ts +11 -0
  361. package/dist/esm/types/src/utils/priceListUtils/priceDescription.d.ts +6 -0
  362. package/dist/esm/types/src/utils/priceListUtils/priceListPriceText.d.ts +19 -0
  363. package/dist/esm/types/src/utils/pricePickerUtils.d.ts +4 -4
  364. package/dist/index.d.ts +33 -13
  365. package/package.json +3 -3
  366. package/dist/cjs/types/src/components/PaymentForm/CheckoutFooter.d.ts +0 -13
  367. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/LargCardIcon.d.ts +0 -2
  368. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/PlusIcon.d.ts +0 -4
  369. package/dist/cjs/types/src/components/PaymentForm/PaymentMethodDetails.d.ts +0 -7
  370. package/dist/cjs/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +0 -7
  371. package/dist/cjs/types/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +0 -6
  372. package/dist/cjs/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +0 -7
  373. package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentMethodSelectorPlugin.d.ts +0 -10
  374. package/dist/cjs/types/src/components/PaymentForm/useRemovePaymentMethod.d.ts +0 -3
  375. package/dist/cjs/types/src/components/PaymentForm/useSetDefaultPaymentMethod.d.ts +0 -6
  376. package/dist/cjs/types/src/components/Subscriptions/QuantityDrawerContainer.d.ts +0 -15
  377. package/dist/cjs/types/src/components/Subscriptions/TieredDisplayDropdown.d.ts +0 -8
  378. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -10
  379. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +0 -15
  380. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -13
  381. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
  382. package/dist/cjs/types/src/contexts/PaymentContext.d.ts +0 -10
  383. package/dist/cjs/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
  384. package/dist/cjs/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
  385. package/dist/cjs/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
  386. package/dist/cjs/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
  387. package/dist/cjs/types/src/graphql/mutations/quoteChargeUpdate.d.ts +0 -13
  388. package/dist/cjs/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
  389. package/dist/cjs/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
  390. package/dist/cjs/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
  391. package/dist/cjs/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
  392. package/dist/cjs/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
  393. package/dist/cjs/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
  394. package/dist/cjs/types/src/utils/GraphQLClient.d.ts +0 -2
  395. package/dist/cjs/types/src/utils/addonPlanUtils.d.ts +0 -7
  396. package/dist/cjs/types/src/utils/featureAddonUtils.d.ts +0 -6
  397. package/dist/esm/types/src/components/PaymentForm/CheckoutFooter.d.ts +0 -13
  398. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/LargCardIcon.d.ts +0 -2
  399. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/PlusIcon.d.ts +0 -4
  400. package/dist/esm/types/src/components/PaymentForm/PaymentMethodDetails.d.ts +0 -7
  401. package/dist/esm/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +0 -7
  402. package/dist/esm/types/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +0 -6
  403. package/dist/esm/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +0 -7
  404. package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentMethodSelectorPlugin.d.ts +0 -10
  405. package/dist/esm/types/src/components/PaymentForm/useRemovePaymentMethod.d.ts +0 -3
  406. package/dist/esm/types/src/components/PaymentForm/useSetDefaultPaymentMethod.d.ts +0 -6
  407. package/dist/esm/types/src/components/Subscriptions/QuantityDrawerContainer.d.ts +0 -15
  408. package/dist/esm/types/src/components/Subscriptions/TieredDisplayDropdown.d.ts +0 -8
  409. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -10
  410. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +0 -15
  411. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -13
  412. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
  413. package/dist/esm/types/src/contexts/PaymentContext.d.ts +0 -10
  414. package/dist/esm/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
  415. package/dist/esm/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
  416. package/dist/esm/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
  417. package/dist/esm/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
  418. package/dist/esm/types/src/graphql/mutations/quoteChargeUpdate.d.ts +0 -13
  419. package/dist/esm/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
  420. package/dist/esm/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
  421. package/dist/esm/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
  422. package/dist/esm/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
  423. package/dist/esm/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
  424. package/dist/esm/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
  425. package/dist/esm/types/src/utils/GraphQLClient.d.ts +0 -2
  426. package/dist/esm/types/src/utils/addonPlanUtils.d.ts +0 -7
  427. package/dist/esm/types/src/utils/featureAddonUtils.d.ts +0 -6
  428. /package/dist/cjs/types/src/components/PaymentForm/{CouponEditor.d.ts → components/CouponEditor.d.ts} +0 -0
  429. /package/dist/cjs/types/src/components/PaymentForm/{PaymentFormTypes.d.ts → types/PaymentFormTypes.d.ts} +0 -0
  430. /package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
  431. /package/dist/cjs/types/src/utils/{apiUtils.d.ts → apiUtils/apiUtils.d.ts} +0 -0
  432. /package/dist/esm/types/src/components/PaymentForm/{CouponEditor.d.ts → components/CouponEditor.d.ts} +0 -0
  433. /package/dist/esm/types/src/components/PaymentForm/{PaymentFormTypes.d.ts → types/PaymentFormTypes.d.ts} +0 -0
  434. /package/dist/esm/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
  435. /package/dist/esm/types/src/utils/{apiUtils.d.ts → apiUtils/apiUtils.d.ts} +0 -0
@@ -2,5 +2,143 @@ declare const getFormattedQuote: ({ token, apiHost, id, }: {
2
2
  apiHost: string;
3
3
  token?: string;
4
4
  id?: string;
5
- }) => Promise<any>;
5
+ }) => Promise<{
6
+ quote: {
7
+ documentTemplateId: string | null;
8
+ documents: {
9
+ id: string;
10
+ filename: string;
11
+ size: string;
12
+ date: unknown;
13
+ url: string;
14
+ }[] | null;
15
+ firstInvoice: {
16
+ id: string | null;
17
+ state: "FAILED" | "DRAFT" | "NOT_DUE" | "DUE" | "UNPAID" | "PAID" | "VOIDED" | "READY" | "PREPARING" | "PROCESSING_PAYMENT" | "MERGED" | "QUEUED" | "CONSOLIDATED";
18
+ } | null;
19
+ payableId: string | null;
20
+ id: string | null;
21
+ payToAccept: boolean | null;
22
+ currentPaymentHold: {
23
+ createdAt: unknown;
24
+ expiresAt: unknown;
25
+ id: string | null;
26
+ updatedAt: unknown;
27
+ paymentMethod: {
28
+ accountId: string | null;
29
+ createdAt: unknown;
30
+ expirationDate: unknown;
31
+ failureCode: string | null;
32
+ id: string;
33
+ isDefault: boolean | null;
34
+ lastSuccess: unknown;
35
+ paymentType: "ach" | "card" | "other" | "wire" | null;
36
+ pluginId: string | null;
37
+ state: "UNKNOWN" | "SUCCESS" | "FAILED" | null;
38
+ updatedAt: unknown;
39
+ metadata: {
40
+ description: string | null;
41
+ expiration: unknown;
42
+ icon: string | null;
43
+ identifier: string | null;
44
+ issuer: string | null;
45
+ kind: string | null;
46
+ } | null;
47
+ } | null;
48
+ } | null;
49
+ };
50
+ payableId: string | null;
51
+ acceptedAt: unknown;
52
+ acceptedByName: string | null;
53
+ amount: number;
54
+ amountDue: number;
55
+ amountsByPeriod: {
56
+ id: string | null;
57
+ name: string | null;
58
+ amount: number | null;
59
+ }[];
60
+ billingCity: string | null;
61
+ billingCountry: string | null;
62
+ billingState: string | null;
63
+ billingStreet: string | null;
64
+ billingZip: string | null;
65
+ contactName: string | null;
66
+ currency: string | null;
67
+ customerBillingCity: string | null;
68
+ customerBillingCountry: string | null;
69
+ customerBillingState: string | null;
70
+ customerBillingStreet: string | null;
71
+ customerBillingZip: string | null;
72
+ customerName: string | null;
73
+ discount: number;
74
+ discountValue: number;
75
+ duration: string | null;
76
+ endDate: unknown;
77
+ expiresAt: unknown;
78
+ html: string | null;
79
+ formattedLines: {
80
+ amount: number;
81
+ amountsByPeriod: {
82
+ quantity: number | null;
83
+ id: string | null;
84
+ name: string | null;
85
+ startDate: unknown;
86
+ endDate: unknown;
87
+ amount: number | null;
88
+ amountsByTier: {
89
+ id: string | null;
90
+ tier: {
91
+ starts: number | null;
92
+ ends: number | null;
93
+ price: number | null;
94
+ } | null;
95
+ quantity: number | null;
96
+ amount: number | null;
97
+ }[] | null;
98
+ prorationRate: number | null;
99
+ }[];
100
+ billingPeriodEnd: string | null;
101
+ billingPeriodStart: string | null;
102
+ chargeType: string;
103
+ discount: number | null;
104
+ frequency: string;
105
+ isRamp: boolean;
106
+ periods: number;
107
+ planName: string;
108
+ position: number;
109
+ price: number | null;
110
+ priceDecimals: number | null;
111
+ priceListChargeId: string | null;
112
+ priceListChargeName: string | null;
113
+ priceListId: string;
114
+ priceListName: string | null;
115
+ priceTiers: {
116
+ price: number | null;
117
+ starts: number;
118
+ }[] | null;
119
+ pricingModel: string;
120
+ productName: string;
121
+ prorationRate: number | null;
122
+ quantity: number | null;
123
+ showProductNameOnLineItem: boolean;
124
+ taxCode: string | null;
125
+ trialEndDate: unknown;
126
+ trialStartDate: unknown;
127
+ unitOfMeasure: string;
128
+ vatCode: string | null;
129
+ }[];
130
+ netPaymentDays: number | null;
131
+ notes: string | null;
132
+ number: string | null;
133
+ poNumberRequired: boolean | null;
134
+ salesContactEmail: string | null;
135
+ sharedAt: unknown;
136
+ startDate: unknown;
137
+ state: "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "APPROVED" | "REJECTED" | "UNDONE";
138
+ subtotal: number;
139
+ taxAmount: number;
140
+ taxNumberLabel: string | null;
141
+ taxNumberRequired: boolean | null;
142
+ vendorName: string | null;
143
+ }>;
6
144
  export default getFormattedQuote;
@@ -1,9 +1,9 @@
1
- import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
- declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, productId, token, upgradingSubscription, }: {
1
+ import { PriceListChangeOptions } from '@bunnyapp/common';
2
+ declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, token, subscriptionId, productId, }: {
3
3
  apiHost: string;
4
4
  isInPreviewMode?: boolean;
5
- productId?: string;
6
5
  token?: string;
7
- upgradingSubscription?: Subscription;
6
+ subscriptionId?: string;
7
+ productId?: string;
8
8
  }) => Promise<PriceListChangeOptions>;
9
9
  export default getPriceListChangeOptions;
@@ -1,9 +1,36 @@
1
- import { Quote } from '@bunnyapp/common';
1
+ import { ResultOf } from 'gql.tada';
2
2
  export declare const QUOTE_FIELDS: (removeFormattedQuoteField?: boolean) => string;
3
+ declare const query: import("gql.tada").TadaDocumentNode<{
4
+ quote: {
5
+ [$tada.fragmentRefs]: {
6
+ QuoteContext_QuoteFragment: "Quote";
7
+ };
8
+ } | {
9
+ [$tada.fragmentRefs]: {
10
+ QuoteContext_QuoteFragment: "Quote";
11
+ } & {
12
+ FormattedQuoteField_QuoteFragment: "Quote";
13
+ };
14
+ } | null;
15
+ }, {
16
+ removeFormattedQuoteField: boolean;
17
+ id?: string | null | undefined;
18
+ }, void>;
19
+ export type Quote = ResultOf<typeof query>['quote'];
3
20
  declare const getQuote: ({ id, token, apiHost, removeFormattedQuoteField, }: {
4
21
  id: string;
5
22
  token?: string;
6
23
  apiHost: string;
7
24
  removeFormattedQuoteField?: boolean;
8
- }) => Promise<Quote>;
25
+ }) => Promise<{
26
+ [$tada.fragmentRefs]: {
27
+ QuoteContext_QuoteFragment: "Quote";
28
+ };
29
+ } | {
30
+ [$tada.fragmentRefs]: {
31
+ QuoteContext_QuoteFragment: "Quote";
32
+ } & {
33
+ FormattedQuoteField_QuoteFragment: "Quote";
34
+ };
35
+ } | null>;
9
36
  export default getQuote;
@@ -0,0 +1,6 @@
1
+ import { graphql } from './graphql';
2
+ export type QuoteChangeKind = ReturnType<typeof graphql.scalar<'QuoteChangeKind'>>;
3
+ export type PricingModel = ReturnType<typeof graphql.scalar<'PricingModel'>>;
4
+ export type BillingPeriod = ReturnType<typeof graphql.scalar<'BillingPeriod'>>;
5
+ export type PlanPricingStyles = ReturnType<typeof graphql.scalar<'PlanPricingStyles'>>;
6
+ export type ChargeType = ReturnType<typeof graphql.scalar<'ChargeType'>>;
@@ -1,7 +1,8 @@
1
- declare const useSendAcceptQuote: ({ quoteId, apiHost, token, }: {
1
+ declare const useSendAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }: {
2
2
  quoteId?: string;
3
3
  apiHost: string;
4
4
  token?: string;
5
+ onQuoteAccepted?: () => void;
5
6
  }) => {
6
7
  acceptBoxVisible: boolean;
7
8
  isAccepting: boolean;
@@ -0,0 +1 @@
1
+ export declare const useAllErrorFormats: () => (error: any, mutationName?: string) => any;
@@ -0,0 +1,2 @@
1
+ import { QueryClient } from '@tanstack/react-query';
2
+ export declare const useCreateQueryClient: () => () => QueryClient;
@@ -1,13 +1,17 @@
1
1
  import { currentUser as CurrentUser } from '@bunnyapp/common';
2
2
  declare const useCurrentUserData: (token: string | undefined) => {
3
3
  currentUser: {
4
- authObjectName: any;
5
- account: any;
6
- companyName: any;
7
- returnUrl: any;
8
- privacyUrl: any;
9
- termsUrl: any;
10
- entityId: any;
4
+ authObjectName: string | null;
5
+ account: {
6
+ billingCountry: string | null;
7
+ currencyId: string | null;
8
+ id: string;
9
+ } | null;
10
+ companyName: string | null | undefined;
11
+ returnUrl: string | null | undefined;
12
+ privacyUrl: string | null;
13
+ termsUrl: string | null;
14
+ entityId: string | null;
11
15
  } | CurrentUser;
12
16
  isCurrentUserDataLoading: boolean;
13
17
  };
@@ -0,0 +1,9 @@
1
+ export declare enum BreakpointNumbers {
2
+ xs = 480,
3
+ sm = 768,
4
+ md = 992,
5
+ lg = 1200,
6
+ xl = 1400,
7
+ xxl = 2000
8
+ }
9
+ export declare const useIsMobile: (breakpointSize?: BreakpointNumbers) => boolean;
@@ -1,11 +1,52 @@
1
- import { PaymentMethod } from '@bunnyapp/common';
2
- export declare const usePaymentMethod: ({ accountId, token, apiHost, enabled, }: {
1
+ export declare const usePaymentMethod: ({ accountId, enabled, }: {
3
2
  accountId?: string;
4
- token?: string;
5
- apiHost: string;
6
3
  enabled?: boolean;
7
4
  }) => {
8
- paymentMethods: PaymentMethod[];
9
- defaultPaymentMethod: PaymentMethod | undefined;
5
+ paymentMethods: {
6
+ id: string;
7
+ pluginId: string | null;
8
+ accountId: string | null;
9
+ expirationDate: unknown;
10
+ plugin: {
11
+ guid: string;
12
+ id: string;
13
+ } | null;
14
+ state: "UNKNOWN" | "SUCCESS" | "FAILED" | null;
15
+ metadata: {
16
+ issuer: string | null;
17
+ identifier: string | null;
18
+ kind: string | null;
19
+ description: string | null;
20
+ icon: string | null;
21
+ type: string | null;
22
+ } | null;
23
+ isDefault: boolean | null;
24
+ [$tada.fragmentRefs]: {
25
+ PaymentForm_PaymentMethodsFragment: "PaymentMethod";
26
+ };
27
+ }[] | undefined;
28
+ defaultPaymentMethod: {
29
+ id: string;
30
+ pluginId: string | null;
31
+ accountId: string | null;
32
+ expirationDate: unknown;
33
+ plugin: {
34
+ guid: string;
35
+ id: string;
36
+ } | null;
37
+ state: "UNKNOWN" | "SUCCESS" | "FAILED" | null;
38
+ metadata: {
39
+ issuer: string | null;
40
+ identifier: string | null;
41
+ kind: string | null;
42
+ description: string | null;
43
+ icon: string | null;
44
+ type: string | null;
45
+ } | null;
46
+ isDefault: boolean | null;
47
+ [$tada.fragmentRefs]: {
48
+ PaymentForm_PaymentMethodsFragment: "PaymentMethod";
49
+ };
50
+ } | undefined;
10
51
  isLoading: boolean;
11
52
  };
@@ -1,30 +1,16 @@
1
- type PaymentPlugin = {
2
- enabled: boolean;
3
- entities: string[];
4
- guid: string;
5
- hidden: boolean;
6
- id: string;
7
- name: string;
8
- status: string;
9
- type: string;
10
- webhookEnabled: boolean;
11
- components: {
12
- frontend: {
13
- name: string;
14
- scenarios: string[];
15
- }[];
16
- backend: {
17
- name: string;
18
- access: string[];
19
- }[];
20
- };
21
- };
22
- export declare const usePaymentPlugins: ({ apiHost, token, accountId, }: {
23
- apiHost: string;
24
- token?: string;
25
- accountId?: string;
26
- }) => {
27
- paymentPlugins: PaymentPlugin[];
1
+ export declare const usePaymentPlugins: (accountId: string | undefined) => {
2
+ paymentPlugins: {
3
+ enabled: boolean;
4
+ entities: string[];
5
+ guid: string;
6
+ hidden: boolean;
7
+ id: string;
8
+ name: string;
9
+ status: string;
10
+ type: string;
11
+ webhookEnabled: boolean;
12
+ components: unknown;
13
+ }[];
28
14
  isFetched: boolean;
29
15
  };
30
16
  export default usePaymentPlugins;
@@ -1,2 +1,2 @@
1
- import "./styles/index.less";
2
- export * from "./components";
1
+ import './styles/index.less';
2
+ export * from './components';
@@ -0,0 +1,106 @@
1
+ export declare const CHILD_SEARCH_CACHE_KEY = "childSearch";
2
+ export declare const SEARCH_CACHE_KEY = "search";
3
+ interface AccountPaymentMethodKeyParams {
4
+ accountId?: string;
5
+ entityId?: string;
6
+ token?: string;
7
+ }
8
+ interface BillingDetailsKeyParams {
9
+ entityId?: string;
10
+ token?: string;
11
+ }
12
+ interface AccountBillingDetailsKeyParams {
13
+ accountId?: string;
14
+ token?: string;
15
+ }
16
+ interface AccountContactsKeyParams {
17
+ accountId?: string;
18
+ token?: string;
19
+ }
20
+ interface CalculatedPricesKeyParams {
21
+ priceListId?: string;
22
+ quantity?: number;
23
+ token?: string;
24
+ }
25
+ interface EventsKeyParams {
26
+ entityId: string;
27
+ pluralType: string;
28
+ token?: string;
29
+ }
30
+ interface ObjectKeyParams {
31
+ id?: string;
32
+ objectName: string;
33
+ token?: string;
34
+ }
35
+ interface TableKeyParams {
36
+ filterString?: string;
37
+ pluralType: string;
38
+ token?: string;
39
+ }
40
+ interface FormattedInvoiceKeyParams {
41
+ id?: string;
42
+ token?: string;
43
+ }
44
+ interface InvoiceKeyParams {
45
+ id?: string;
46
+ token?: string;
47
+ }
48
+ interface PlanChangeOptionsKeyParams {
49
+ subscriptionId?: string | null;
50
+ productId?: string | null;
51
+ token?: string;
52
+ }
53
+ interface PortalPreviewDataKeyParams {
54
+ productId?: string | null;
55
+ token?: string;
56
+ }
57
+ interface QuoteKeyParams {
58
+ id?: string;
59
+ token?: string;
60
+ }
61
+ interface QuoteTaxCalculateKeyParams {
62
+ id?: string;
63
+ token?: string;
64
+ }
65
+ interface TaxationRequiredAccountFieldsKeyParams {
66
+ entityId?: string;
67
+ token?: string;
68
+ }
69
+ interface TransactionsKeyParams {
70
+ filter?: string;
71
+ token?: string;
72
+ }
73
+ declare const QueryKeyFactory: {
74
+ accountPaymentMethodsKey: ({ accountId, entityId, token }: AccountPaymentMethodKeyParams) => string[];
75
+ billingDetailsKey: ({ entityId, token }: BillingDetailsKeyParams) => string[];
76
+ accountBillingDetailsKey: ({ accountId, token }: AccountBillingDetailsKeyParams) => string[];
77
+ accountContactsKey: ({ accountId, token }: AccountContactsKeyParams) => string[];
78
+ brandingKey: (token?: string) => string[];
79
+ calculatedPricesKey: ({ priceListId, quantity, token }: CalculatedPricesKeyParams) => (string | number)[];
80
+ createEventsKey: ({ entityId, pluralType, token }: EventsKeyParams) => string[];
81
+ createFormattedInvoiceKey: ({ id, token }: FormattedInvoiceKeyParams) => (string | undefined)[];
82
+ createInvoiceKey: ({ id, token }: InvoiceKeyParams) => (string | undefined)[];
83
+ createObjectKey: ({ id, objectName, token }: ObjectKeyParams) => string[];
84
+ createQuoteKey: ({ id, token }: QuoteKeyParams) => (string | undefined)[];
85
+ createQuoteTaxCalculateKey: ({ id, token }: QuoteTaxCalculateKeyParams) => string[];
86
+ createTableKey: ({ filterString, pluralType, token }: TableKeyParams) => (string | undefined)[];
87
+ currentUserKey: (token?: string) => string[];
88
+ editingQuoteKey: (token?: string) => string[];
89
+ finixAchKey: (token?: string) => string[];
90
+ finixKey: (token?: string) => string[];
91
+ planChangeOptionsKey: ({ subscriptionId, productId, token }: PlanChangeOptionsKeyParams) => string[];
92
+ pluginsKey: (token?: string) => string[];
93
+ portalPreviewDataKey: ({ productId, token }: PortalPreviewDataKeyParams) => string[];
94
+ taxationRequiredAccountFieldsKey: ({ entityId, token, }: TaxationRequiredAccountFieldsKeyParams) => string[];
95
+ transactionsKey: ({ filter, token }: TransactionsKeyParams) => string[];
96
+ availableAddonPlansKey: ({ priceListId, token, }: {
97
+ priceListId: string | undefined;
98
+ token?: string;
99
+ }) => (string | undefined)[];
100
+ addonPlansKey: ({ priceListId, token }: {
101
+ priceListId: string;
102
+ token?: string;
103
+ }) => string[];
104
+ paymentPluginsKey: (token?: string) => string[];
105
+ };
106
+ export default QueryKeyFactory;
@@ -0,0 +1,5 @@
1
+ import { Subscription } from '@bunnyapp/common';
2
+ export declare const ADDON_INDENTATION = 64;
3
+ export declare function findNonAddonSubscriptions(subscriptions: Subscription[]): Subscription[];
4
+ export declare function findAddonSubscriptions(parentSubscription: Subscription, subscriptions: Subscription[]): Subscription[];
5
+ export declare function addonPlanSwitchTestId(planName: string): string;
@@ -0,0 +1,8 @@
1
+ import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
+ type PriceListFragment = {
3
+ periodMonths: number | null | undefined;
4
+ };
5
+ export declare function getAddonsForBillingPeriod<TPlan extends {
6
+ priceLists: readonly (PriceListFragment & Record<string, any>)[];
7
+ }>(billingPeriod: BillingPeriod, addonPlans: TPlan[]): TPlan['priceLists'][number][];
8
+ export {};
@@ -0,0 +1,15 @@
1
+ import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
+ import { Subscription } from '@bunnyapp/common';
3
+ import { FragmentOf } from 'gql.tada';
4
+ export declare const hasUnpurchasedAddonPriceLists_PlanFragment: import("gql.tada").TadaDocumentNode<{
5
+ priceLists: {
6
+ id: string;
7
+ isVisible: boolean | null;
8
+ periodMonths: number | null;
9
+ }[];
10
+ }, {}, {
11
+ fragment: "hasUnpurchasedAddonPriceLists_PlanFragment";
12
+ on: "Plan";
13
+ masked: true;
14
+ }>;
15
+ export declare function hasUnpurchasedAddonPriceLists(maskedPriceListAddonPlans: FragmentOf<typeof hasUnpurchasedAddonPriceLists_PlanFragment>[], currentSubscription: Subscription | undefined, billingPeriod: BillingPeriod): boolean;
@@ -0,0 +1,10 @@
1
+ import { PluginData } from '@bunnyapp/common';
2
+ export declare const invokePlugin: ({ method, payload, plugin, token, apiHost, componentsVersion, }: {
3
+ method: string;
4
+ payload?: Record<string, any>;
5
+ plugin: PluginData;
6
+ token?: string;
7
+ apiHost: string;
8
+ componentsVersion?: string;
9
+ }) => Promise<any>;
10
+ export default invokePlugin;
@@ -1,2 +1,5 @@
1
- import { PriceListCharge } from '@bunnyapp/common';
2
- export declare function canEditChargeQuantity(charge: PriceListCharge): boolean;
1
+ import { ChargeType, PricingModel } from '@/graphql-codegen/exportedScalarTypes';
2
+ export declare function canEditChargeQuantity(charge: {
3
+ chargeType: ChargeType | null;
4
+ pricingModel: PricingModel | null;
5
+ } | null): boolean;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * Creates a context and provider for a state value
4
+ * @param useValue - A function that returns the state value
5
+ * @returns A tuple containing the provider and the context value
6
+ * @example take a look at how this is used in the quoteIdContext in the QuantityDrawer
7
+ */
8
+ export declare const createStateContext: <Value, State>(useValue: (init?: Value) => State) => readonly [({ initialValue, children, }: {
9
+ initialValue?: Value;
10
+ children?: ReactNode;
11
+ }) => import("react/jsx-runtime").JSX.Element, () => State & ({} | undefined)];
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * Creates a context and provider for a value
4
+ * Unlike createStateContext, this accepts a value prop directly that can be updated
5
+ * @returns A tuple containing the provider and the context hook
6
+ * @example
7
+ * const [ValueProvider, useValue] = createValueContext<string>();
8
+ * // Usage: ValueProvider with value prop that updates when changed
9
+ * // In a child component: const value = useValue();
10
+ */
11
+ export declare const createValueContext: <Value>() => readonly [({ value, children }: {
12
+ value: Value;
13
+ children?: ReactNode;
14
+ }) => import("react/jsx-runtime").JSX.Element, () => Value & ({} | undefined)];
@@ -0,0 +1,20 @@
1
+ import { PriceList, Quote, Subscription } from '@bunnyapp/common';
2
+ export declare function hasUnpurchasedFeatureAddons(priceList: PriceList, currentSubscription: Subscription | undefined): boolean;
3
+ export declare function findQuoteChangeForFeatureAddon(quote: Quote): import("@bunnyapp/common").QuoteChange | undefined;
4
+ export declare function featureAddonInQuote(selectedPriceList: {
5
+ id: string;
6
+ }, priceListCharge: {
7
+ id: string;
8
+ }, quote?: {
9
+ quoteChanges?: {
10
+ priceList?: {
11
+ id?: string;
12
+ } | null;
13
+ charges?: {
14
+ priceListCharge?: {
15
+ id?: string;
16
+ } | null;
17
+ }[];
18
+ }[] | null;
19
+ } | null): boolean;
20
+ export declare function featureAddonSwitchTestId(addonName: string): string;
@@ -0,0 +1,24 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const isAddonPurchased_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
3
+ id: string;
4
+ featureAddon: boolean | null;
5
+ }, {}, {
6
+ fragment: "isAddonPurchased_PriceListChargeFragment";
7
+ on: "PriceListCharge";
8
+ masked: true;
9
+ }>;
10
+ export declare const isAddonPurchased_SubscriptionChargeFragment: import("gql.tada").TadaDocumentNode<{
11
+ id: string;
12
+ charges: {
13
+ id: string | null;
14
+ priceListCharge: {
15
+ id: string;
16
+ featureAddon: boolean | null;
17
+ } | null;
18
+ }[] | null;
19
+ }, {}, {
20
+ fragment: "isAddonPurchased_SubscriptionChargeFragment";
21
+ on: "Subscription";
22
+ masked: true;
23
+ }>;
24
+ export declare function isAddonPurchased(maskedFeatureAddon: FragmentOf<typeof isAddonPurchased_PriceListChargeFragment>, maskedCurrentSubscription: FragmentOf<typeof isAddonPurchased_SubscriptionChargeFragment>): boolean;
@@ -0,0 +1 @@
1
+ export declare const formatCurrency: (value: number | string | null | undefined, currencyIsoCode: string | undefined, decimals?: number) => string | number;
@@ -0,0 +1,12 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const DoesPriceListHaveFlatFeeCharges_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ charges: {
4
+ pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
5
+ basePrice: number;
6
+ }[] | null;
7
+ }, {}, {
8
+ fragment: "DoesPriceListHaveFlatFeeCharges_PriceListFragment";
9
+ on: "PriceList";
10
+ masked: true;
11
+ }>;
12
+ export declare function doesPriceListHaveFlatFeeCharges(maskedPriceList: FragmentOf<typeof DoesPriceListHaveFlatFeeCharges_PriceListFragment>): boolean;
@@ -0,0 +1,11 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const GetPrice_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ showPriceAsMonthly: boolean | null;
4
+ monthlyBasePrice: number | null;
5
+ basePrice: number | null;
6
+ }, {}, {
7
+ fragment: "GetPrice_PriceListFragment";
8
+ on: "PriceList";
9
+ masked: true;
10
+ }>;
11
+ export declare function getPrice(maskedPriceList: FragmentOf<typeof GetPrice_PriceListFragment>): number | null;
@@ -0,0 +1,6 @@
1
+ export declare function priceDescriptionString({ unitName, showPriceAsMonthly, periodMonths, priceListHasFlatFeeCharges, }: {
2
+ unitName?: string | null;
3
+ showPriceAsMonthly: boolean | null;
4
+ periodMonths: number | null;
5
+ priceListHasFlatFeeCharges: boolean;
6
+ }): string;
@@ -0,0 +1,19 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const PriceListPriceText_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ id: string;
4
+ plan: {
5
+ id: string;
6
+ pricingStyle: "PRICED" | "FREE" | "CONTACT_US";
7
+ } | null;
8
+ currencyId: string;
9
+ [$tada.fragmentRefs]: {
10
+ GetPrice_PriceListFragment: "PriceList";
11
+ };
12
+ }, {}, {
13
+ fragment: "PriceListPriceText_PriceListFragment";
14
+ on: "PriceList";
15
+ masked: true;
16
+ }>;
17
+ export declare function priceListPriceText({ priceList: maskedPriceList, }: {
18
+ priceList: FragmentOf<typeof PriceListPriceText_PriceListFragment>;
19
+ }): string | number;