@bunnyapp/components 1.6.0-beta.2 → 1.6.0-beta.21

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 (371) hide show
  1. package/README.md +113 -0
  2. package/dist/cjs/index.js +7038 -5690
  3. package/dist/cjs/types/src/components/BunnyProvider.d.ts +0 -2
  4. package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +18 -3
  5. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +78 -4
  6. package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
  7. package/dist/cjs/types/src/components/FeatureUsageGraph.d.ts +4 -3
  8. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +17 -13
  9. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +27 -0
  10. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/components/CardImage.d.ts +14 -0
  11. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +1 -1
  12. package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +1 -6
  13. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +1 -1
  14. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -4
  15. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +7 -16
  16. package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +5 -6
  17. package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -6
  18. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +1 -1
  19. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -4
  20. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +4 -5
  21. package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
  22. package/dist/cjs/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +2 -0
  23. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +2 -0
  24. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +4 -0
  25. package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodSelector.d.ts +2 -0
  26. package/dist/cjs/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +5 -0
  27. package/dist/cjs/types/src/components/PaymentForm/context/OverrideTokenContext.d.ts +4 -0
  28. package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +32 -0
  29. package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +6 -0
  30. package/dist/cjs/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +16 -0
  31. package/dist/cjs/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +5 -0
  32. package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +10 -0
  33. package/dist/cjs/types/src/components/PaymentForm/hooks/useAutoSetDefaultPaymentMethod.d.ts +2 -5
  34. package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +25 -0
  35. package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -0
  36. package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +1 -0
  37. package/dist/cjs/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +2 -0
  38. package/dist/cjs/types/src/components/PaymentForm/hooks/useSetDefaultPaymentMethod.d.ts +5 -0
  39. package/dist/cjs/types/src/components/PaymentForm/types/PaymentType.d.ts +5 -0
  40. package/dist/cjs/types/src/components/Quote/Quote.d.ts +5 -1
  41. package/dist/cjs/types/src/components/QuoteProvider/QuoteProvider.d.ts +4 -0
  42. package/dist/{esm/types/src/components/QuoteProvider.d.ts → cjs/types/src/components/QuoteProvider/context/QuoteContext.d.ts} +4 -6
  43. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
  44. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +46 -0
  45. package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
  46. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +19 -0
  47. package/dist/{esm/types/src/hooks/quotes → cjs/types/src/components/QuoteProvider/hooks}/useQuoteQuantities.d.ts +4 -7
  48. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
  49. package/dist/cjs/types/src/components/QuoteProvider/queries/getQuote.d.ts +16 -0
  50. package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
  51. package/dist/cjs/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
  52. package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +3 -4
  53. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
  54. package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +0 -4
  55. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
  56. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +3 -2
  57. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +2 -2
  58. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
  59. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
  60. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +5 -4
  61. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -2
  62. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +33 -0
  63. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +12 -3
  64. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +26 -4
  65. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
  66. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +52 -0
  67. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +10 -0
  68. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +19 -0
  69. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +24 -0
  70. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +18 -0
  71. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/queries/getAddonPlans.d.ts +13 -0
  72. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -1
  73. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +19 -2
  74. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +23 -0
  75. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -0
  76. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +21 -4
  77. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +16 -3
  78. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  79. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPrice.d.ts +12 -3
  80. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +2 -3
  81. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
  82. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
  83. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -6
  84. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +12 -0
  85. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
  86. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
  87. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +14 -0
  88. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
  89. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
  90. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeCreate.d.ts +23 -0
  91. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeUpdate.d.ts +12 -0
  92. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteSubscriptionUpdate.d.ts +22 -0
  93. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -8
  94. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +3 -18
  95. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
  96. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
  97. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +3 -11
  98. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
  99. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  100. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
  101. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
  102. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +0 -2
  103. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
  104. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
  105. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +9 -0
  106. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -0
  107. package/dist/cjs/types/src/components/TaxationForm.d.ts +3 -3
  108. package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +1 -1
  109. package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +43 -0
  110. package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +23 -0
  111. package/dist/cjs/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +7 -0
  112. package/dist/cjs/types/src/components/priceListPricing/components/PriceTierRow.d.ts +13 -0
  113. package/dist/cjs/types/src/components/priceListPricing/misc/consts.d.ts +1 -0
  114. package/dist/cjs/types/src/components/priceListPricing/types/PriceTier.d.ts +4 -0
  115. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +2 -0
  116. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +2 -0
  117. package/dist/cjs/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +13 -0
  118. package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
  119. package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getChargeBasePrice.d.ts +8 -0
  120. package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getFirstTierPrice.d.ts +7 -0
  121. package/dist/cjs/types/src/contexts/BrandContext.d.ts +11 -2
  122. package/dist/cjs/types/src/enums/SubscriptionState.d.ts +9 -0
  123. package/dist/cjs/types/src/graphql/QuoteRequests.d.ts +0 -5
  124. package/dist/cjs/types/src/graphql/mutations/quoteChargeDelete.d.ts +11 -2
  125. package/dist/cjs/types/src/graphql/queries/getBranding.d.ts +7 -2
  126. package/dist/cjs/types/src/graphql/queries/getCurrentUserData.d.ts +11 -7
  127. package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +139 -1
  128. package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
  129. package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +29 -2
  130. package/dist/cjs/types/src/graphql-codegen/exportedScalarTypes.d.ts +6 -0
  131. package/dist/cjs/types/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -1
  132. package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +1 -0
  133. package/dist/cjs/types/src/hooks/useCreateQueryClient.d.ts +2 -0
  134. package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +11 -7
  135. package/dist/cjs/types/src/hooks/useIsMobile.d.ts +9 -0
  136. package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +47 -6
  137. package/dist/cjs/types/src/hooks/usePaymentPlugins.d.ts +13 -27
  138. package/dist/cjs/types/src/hooks/useToggleAddonQuoteChange.d.ts +1 -1
  139. package/dist/cjs/types/src/index.d.ts +2 -2
  140. package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +39 -0
  141. package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +96 -0
  142. package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
  143. package/dist/cjs/types/src/utils/addonPlanUtils/getAddonsForBillingPeriod.d.ts +8 -0
  144. package/dist/cjs/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +15 -0
  145. package/dist/cjs/types/src/utils/apiUtils/invokePlugin.d.ts +10 -0
  146. package/dist/cjs/types/src/utils/chargeUtils.d.ts +5 -2
  147. package/dist/cjs/types/src/utils/createStateContext.d.ts +11 -0
  148. package/dist/cjs/types/src/utils/createValueContext.d.ts +14 -0
  149. package/dist/cjs/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +20 -0
  150. package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
  151. package/dist/cjs/types/src/utils/formatCurrency.d.ts +1 -0
  152. package/dist/cjs/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +12 -0
  153. package/dist/cjs/types/src/utils/priceListUtils/getPrice.d.ts +11 -0
  154. package/dist/cjs/types/src/utils/priceListUtils/priceDescription.d.ts +6 -0
  155. package/dist/cjs/types/src/utils/priceListUtils/priceListPriceText.d.ts +19 -0
  156. package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +4 -4
  157. package/dist/esm/index.js +7140 -5792
  158. package/dist/esm/types/src/components/BunnyProvider.d.ts +0 -2
  159. package/dist/esm/types/src/components/Checkout/Checkout.d.ts +18 -3
  160. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +78 -4
  161. package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
  162. package/dist/esm/types/src/components/FeatureUsageGraph.d.ts +4 -3
  163. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +17 -13
  164. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +27 -0
  165. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/components/CardImage.d.ts +14 -0
  166. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +1 -1
  167. package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +1 -6
  168. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +1 -1
  169. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -4
  170. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +7 -16
  171. package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +5 -6
  172. package/dist/esm/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -6
  173. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +1 -1
  174. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -4
  175. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +4 -5
  176. package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
  177. package/dist/esm/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +2 -0
  178. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +2 -0
  179. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +4 -0
  180. package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodSelector.d.ts +2 -0
  181. package/dist/esm/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +5 -0
  182. package/dist/esm/types/src/components/PaymentForm/context/OverrideTokenContext.d.ts +4 -0
  183. package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +32 -0
  184. package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +6 -0
  185. package/dist/esm/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +16 -0
  186. package/dist/esm/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +5 -0
  187. package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +10 -0
  188. package/dist/esm/types/src/components/PaymentForm/hooks/useAutoSetDefaultPaymentMethod.d.ts +2 -5
  189. package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +25 -0
  190. package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -0
  191. package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +1 -0
  192. package/dist/esm/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +2 -0
  193. package/dist/esm/types/src/components/PaymentForm/hooks/useSetDefaultPaymentMethod.d.ts +5 -0
  194. package/dist/esm/types/src/components/PaymentForm/types/PaymentType.d.ts +5 -0
  195. package/dist/esm/types/src/components/Quote/Quote.d.ts +5 -1
  196. package/dist/esm/types/src/components/QuoteProvider/QuoteProvider.d.ts +4 -0
  197. package/dist/{cjs/types/src/components/QuoteProvider.d.ts → esm/types/src/components/QuoteProvider/context/QuoteContext.d.ts} +4 -6
  198. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
  199. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +46 -0
  200. package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
  201. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +19 -0
  202. package/dist/{cjs/types/src/hooks/quotes → esm/types/src/components/QuoteProvider/hooks}/useQuoteQuantities.d.ts +4 -7
  203. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
  204. package/dist/esm/types/src/components/QuoteProvider/queries/getQuote.d.ts +16 -0
  205. package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
  206. package/dist/esm/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
  207. package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +3 -4
  208. package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
  209. package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +0 -4
  210. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
  211. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +3 -2
  212. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +2 -2
  213. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
  214. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
  215. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +5 -4
  216. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -2
  217. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +33 -0
  218. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +12 -3
  219. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +26 -4
  220. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
  221. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +52 -0
  222. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +10 -0
  223. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +19 -0
  224. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +24 -0
  225. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +18 -0
  226. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/queries/getAddonPlans.d.ts +13 -0
  227. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -1
  228. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +19 -2
  229. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +23 -0
  230. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -0
  231. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +21 -4
  232. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +16 -3
  233. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  234. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPrice.d.ts +12 -3
  235. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +2 -3
  236. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
  237. package/dist/esm/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
  238. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -6
  239. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +12 -0
  240. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
  241. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
  242. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +14 -0
  243. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
  244. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
  245. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeCreate.d.ts +23 -0
  246. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeUpdate.d.ts +12 -0
  247. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteSubscriptionUpdate.d.ts +22 -0
  248. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -8
  249. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +3 -18
  250. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
  251. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
  252. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +3 -11
  253. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
  254. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  255. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
  256. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
  257. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +0 -2
  258. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
  259. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
  260. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +9 -0
  261. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -0
  262. package/dist/esm/types/src/components/TaxationForm.d.ts +3 -3
  263. package/dist/esm/types/src/components/Transactions/Transactions.d.ts +1 -1
  264. package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +43 -0
  265. package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +23 -0
  266. package/dist/esm/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +7 -0
  267. package/dist/esm/types/src/components/priceListPricing/components/PriceTierRow.d.ts +13 -0
  268. package/dist/esm/types/src/components/priceListPricing/misc/consts.d.ts +1 -0
  269. package/dist/esm/types/src/components/priceListPricing/types/PriceTier.d.ts +4 -0
  270. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +2 -0
  271. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +2 -0
  272. package/dist/esm/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +13 -0
  273. package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
  274. package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getChargeBasePrice.d.ts +8 -0
  275. package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getFirstTierPrice.d.ts +7 -0
  276. package/dist/esm/types/src/contexts/BrandContext.d.ts +11 -2
  277. package/dist/esm/types/src/enums/SubscriptionState.d.ts +9 -0
  278. package/dist/esm/types/src/graphql/QuoteRequests.d.ts +0 -5
  279. package/dist/esm/types/src/graphql/mutations/quoteChargeDelete.d.ts +11 -2
  280. package/dist/esm/types/src/graphql/queries/getBranding.d.ts +7 -2
  281. package/dist/esm/types/src/graphql/queries/getCurrentUserData.d.ts +11 -7
  282. package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +139 -1
  283. package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
  284. package/dist/esm/types/src/graphql/queries/getQuote.d.ts +29 -2
  285. package/dist/esm/types/src/graphql-codegen/exportedScalarTypes.d.ts +6 -0
  286. package/dist/esm/types/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -1
  287. package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +1 -0
  288. package/dist/esm/types/src/hooks/useCreateQueryClient.d.ts +2 -0
  289. package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +11 -7
  290. package/dist/esm/types/src/hooks/useIsMobile.d.ts +9 -0
  291. package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +47 -6
  292. package/dist/esm/types/src/hooks/usePaymentPlugins.d.ts +13 -27
  293. package/dist/esm/types/src/hooks/useToggleAddonQuoteChange.d.ts +1 -1
  294. package/dist/esm/types/src/index.d.ts +2 -2
  295. package/dist/esm/types/src/types/SubscriptionCharge.d.ts +39 -0
  296. package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +96 -0
  297. package/dist/esm/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
  298. package/dist/esm/types/src/utils/addonPlanUtils/getAddonsForBillingPeriod.d.ts +8 -0
  299. package/dist/esm/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +15 -0
  300. package/dist/esm/types/src/utils/apiUtils/invokePlugin.d.ts +10 -0
  301. package/dist/esm/types/src/utils/chargeUtils.d.ts +5 -2
  302. package/dist/esm/types/src/utils/createStateContext.d.ts +11 -0
  303. package/dist/esm/types/src/utils/createValueContext.d.ts +14 -0
  304. package/dist/esm/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +20 -0
  305. package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
  306. package/dist/esm/types/src/utils/formatCurrency.d.ts +1 -0
  307. package/dist/esm/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +12 -0
  308. package/dist/esm/types/src/utils/priceListUtils/getPrice.d.ts +11 -0
  309. package/dist/esm/types/src/utils/priceListUtils/priceDescription.d.ts +6 -0
  310. package/dist/esm/types/src/utils/priceListUtils/priceListPriceText.d.ts +19 -0
  311. package/dist/esm/types/src/utils/pricePickerUtils.d.ts +4 -4
  312. package/dist/index.d.ts +30 -10
  313. package/package.json +2 -2
  314. package/dist/cjs/types/src/components/PaymentForm/CheckoutFooter.d.ts +0 -13
  315. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/LargCardIcon.d.ts +0 -2
  316. package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/PlusIcon.d.ts +0 -4
  317. package/dist/cjs/types/src/components/PaymentForm/PaymentMethodDetails.d.ts +0 -7
  318. package/dist/cjs/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +0 -7
  319. package/dist/cjs/types/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +0 -6
  320. package/dist/cjs/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +0 -7
  321. package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentMethodSelectorPlugin.d.ts +0 -10
  322. package/dist/cjs/types/src/components/PaymentForm/useRemovePaymentMethod.d.ts +0 -3
  323. package/dist/cjs/types/src/components/PaymentForm/useSetDefaultPaymentMethod.d.ts +0 -6
  324. package/dist/cjs/types/src/components/Subscriptions/QuantityDrawerContainer.d.ts +0 -15
  325. package/dist/cjs/types/src/components/Subscriptions/TieredDisplayDropdown.d.ts +0 -8
  326. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -10
  327. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +0 -15
  328. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -13
  329. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
  330. package/dist/cjs/types/src/contexts/PaymentContext.d.ts +0 -10
  331. package/dist/cjs/types/src/graphql/mutations/quoteChargeUpdate.d.ts +0 -13
  332. package/dist/cjs/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
  333. package/dist/cjs/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
  334. package/dist/cjs/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
  335. package/dist/cjs/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
  336. package/dist/cjs/types/src/utils/GraphQLClient.d.ts +0 -2
  337. package/dist/cjs/types/src/utils/addonPlanUtils.d.ts +0 -7
  338. package/dist/cjs/types/src/utils/featureAddonUtils.d.ts +0 -6
  339. package/dist/esm/types/src/components/PaymentForm/CheckoutFooter.d.ts +0 -13
  340. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/LargCardIcon.d.ts +0 -2
  341. package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/PlusIcon.d.ts +0 -4
  342. package/dist/esm/types/src/components/PaymentForm/PaymentMethodDetails.d.ts +0 -7
  343. package/dist/esm/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +0 -7
  344. package/dist/esm/types/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +0 -6
  345. package/dist/esm/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +0 -7
  346. package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentMethodSelectorPlugin.d.ts +0 -10
  347. package/dist/esm/types/src/components/PaymentForm/useRemovePaymentMethod.d.ts +0 -3
  348. package/dist/esm/types/src/components/PaymentForm/useSetDefaultPaymentMethod.d.ts +0 -6
  349. package/dist/esm/types/src/components/Subscriptions/QuantityDrawerContainer.d.ts +0 -15
  350. package/dist/esm/types/src/components/Subscriptions/TieredDisplayDropdown.d.ts +0 -8
  351. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -10
  352. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +0 -15
  353. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -13
  354. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
  355. package/dist/esm/types/src/contexts/PaymentContext.d.ts +0 -10
  356. package/dist/esm/types/src/graphql/mutations/quoteChargeUpdate.d.ts +0 -13
  357. package/dist/esm/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
  358. package/dist/esm/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
  359. package/dist/esm/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
  360. package/dist/esm/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
  361. package/dist/esm/types/src/utils/GraphQLClient.d.ts +0 -2
  362. package/dist/esm/types/src/utils/addonPlanUtils.d.ts +0 -7
  363. package/dist/esm/types/src/utils/featureAddonUtils.d.ts +0 -6
  364. /package/dist/cjs/types/src/components/PaymentForm/{CouponEditor.d.ts → components/CouponEditor.d.ts} +0 -0
  365. /package/dist/cjs/types/src/components/PaymentForm/{PaymentFormTypes.d.ts → types/PaymentFormTypes.d.ts} +0 -0
  366. /package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
  367. /package/dist/cjs/types/src/utils/{apiUtils.d.ts → apiUtils/apiUtils.d.ts} +0 -0
  368. /package/dist/esm/types/src/components/PaymentForm/{CouponEditor.d.ts → components/CouponEditor.d.ts} +0 -0
  369. /package/dist/esm/types/src/components/PaymentForm/{PaymentFormTypes.d.ts → types/PaymentFormTypes.d.ts} +0 -0
  370. /package/dist/esm/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
  371. /package/dist/esm/types/src/utils/{apiUtils.d.ts → apiUtils/apiUtils.d.ts} +0 -0
@@ -1,10 +1,27 @@
1
1
  import { Feature, PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCardMobile: ({ description, feature, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, trialRemainingDays, disableOnClickPriceListCard, onClickPriceListCard, }: {
2
+ import { FragmentOf } from 'gql.tada';
3
+ export declare const PriceListCardMobile_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
+ plan: {
5
+ name: string;
6
+ } | null;
7
+ [$tada.fragmentRefs]: {
8
+ PriceListCardPriceDescription_PriceListFragment: "PriceList";
9
+ } & {
10
+ PriceListCardButton_PriceListFragment: "PriceList";
11
+ } & {
12
+ PriceListCardPrice_PriceListFragment: "PriceList";
13
+ };
14
+ }, {}, {
15
+ fragment: "PriceListCardMobile_PriceListFragment";
16
+ on: "PriceList";
17
+ masked: true;
18
+ }>;
19
+ declare const PriceListCardMobile: ({ description, feature, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, disableOnClickPriceListCard, onClickPriceListCard, }: {
3
20
  description: string;
4
21
  feature?: Feature;
5
22
  isPriceListCurrentSubscription: boolean;
6
23
  isSelected: boolean;
7
- priceList: PriceList;
24
+ priceList: FragmentOf<typeof PriceListCardMobile_PriceListFragment>;
8
25
  subscriptionPlan?: Subscription;
9
26
  trialRemainingDays?: number;
10
27
  disableOnClickPriceListCard: boolean;
@@ -0,0 +1,23 @@
1
+ import { Feature } from '@bunnyapp/common';
2
+ import { FragmentOf } from 'gql.tada';
3
+ export declare const PriceListCardPriceDescription_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
+ plan: {
5
+ pricingDescription: string | null;
6
+ } | null;
7
+ showPriceAsMonthly: boolean | null;
8
+ periodMonths: number | null;
9
+ [$tada.fragmentRefs]: {
10
+ DoesPriceListHaveFlatFeeCharges_PriceListFragment: "PriceList";
11
+ } & {
12
+ HasMultipleRecurringCharges_PriceListFragment: "PriceList";
13
+ };
14
+ }, {}, {
15
+ fragment: "PriceListCardPriceDescription_PriceListFragment";
16
+ on: "PriceList";
17
+ masked: true;
18
+ }>;
19
+ declare const PriceListCardPriceDescription: ({ feature, priceList: maskedPriceList, }: {
20
+ feature?: Feature;
21
+ priceList: FragmentOf<typeof PriceListCardPriceDescription_PriceListFragment>;
22
+ }) => import("react/jsx-runtime").JSX.Element | null;
23
+ export default PriceListCardPriceDescription;
@@ -0,0 +1,12 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const HasMultipleRecurringCharges_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ charges: {
4
+ chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
5
+ featureAddon: boolean | null;
6
+ }[] | null;
7
+ }, {}, {
8
+ fragment: "HasMultipleRecurringCharges_PriceListFragment";
9
+ on: "PriceList";
10
+ masked: true;
11
+ }>;
12
+ export declare const hasMultipleRecurringCharges: (maskedPriceList: FragmentOf<typeof HasMultipleRecurringCharges_PriceListFragment>) => boolean;
@@ -1,12 +1,29 @@
1
- import { PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCard: ({ hideButton, isSelected, priceList, subscriptions, trialRemainingDays, noBorder, onClickPriceListCard, disableCurrentPlan, }: {
1
+ import { PriceList as DeprecatedPriceList, Subscription } from '@bunnyapp/common';
2
+ import { FragmentOf } from 'gql.tada';
3
+ export declare const PriceListCard_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
+ id: string;
5
+ plan: {
6
+ description: string | null;
7
+ id: string;
8
+ } | null;
9
+ [$tada.fragmentRefs]: {
10
+ PriceListCardDesktop_PriceListFragment: "PriceList";
11
+ } & {
12
+ PriceListCardMobile_PriceListFragment: "PriceList";
13
+ };
14
+ }, {}, {
15
+ fragment: "PriceListCard_PriceListFragment";
16
+ on: "PriceList";
17
+ masked: true;
18
+ }>;
19
+ declare const PriceListCard: ({ hideButton, isSelected, priceList: maskedPriceList, subscriptions, trialRemainingDays, noBorder, onClickPriceListCard, disableCurrentPlan, }: {
3
20
  hideButton?: boolean;
4
21
  isSelected: boolean;
5
- priceList: PriceList;
22
+ priceList: FragmentOf<typeof PriceListCard_PriceListFragment>;
6
23
  subscriptions?: Subscription[];
7
24
  trialRemainingDays?: number;
8
25
  noBorder?: boolean;
9
- onClickPriceListCard?: (priceList: PriceList) => void;
26
+ onClickPriceListCard?: (priceList: DeprecatedPriceList) => void;
10
27
  disableCurrentPlan?: boolean;
11
28
  }) => import("react/jsx-runtime").JSX.Element | null;
12
29
  export default PriceListCard;
@@ -1,9 +1,22 @@
1
- import { PriceList, Subscription } from '@bunnyapp/common';
2
- declare const PriceListCardButton: ({ disableSelectCurrentPlan, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, }: {
1
+ import { Subscription } from '@bunnyapp/common';
2
+ import { FragmentOf } from 'gql.tada';
3
+ export declare const PriceListCardButton_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
+ id: string;
5
+ plan: {
6
+ id: string;
7
+ pricingStyle: "PRICED" | "FREE" | "CONTACT_US";
8
+ contactUsLabel: string | null;
9
+ } | null;
10
+ }, {}, {
11
+ fragment: "PriceListCardButton_PriceListFragment";
12
+ on: "PriceList";
13
+ masked: true;
14
+ }>;
15
+ declare const PriceListCardButton: ({ disableSelectCurrentPlan, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, }: {
3
16
  disableSelectCurrentPlan: boolean;
4
17
  isPriceListCurrentSubscription: boolean;
5
18
  isSelected: boolean;
6
- priceList: PriceList;
19
+ priceList: FragmentOf<typeof PriceListCardButton_PriceListFragment>;
7
20
  subscriptionPlan?: Subscription;
8
21
  }) => import("react/jsx-runtime").JSX.Element;
9
22
  export default PriceListCardButton;
@@ -1,4 +1,4 @@
1
- import { PlanFeature } from "@bunnyapp/common";
1
+ import { PlanFeature } from '@bunnyapp/common';
2
2
  declare const PriceListCardFeature: ({ index, planFeature, }: {
3
3
  index: number;
4
4
  planFeature: PlanFeature;
@@ -1,6 +1,15 @@
1
- import { PriceList } from '@bunnyapp/common';
2
- declare const PriceListCardPrice: ({ className, priceList, }: {
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const PriceListCardPrice_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ [$tada.fragmentRefs]: {
4
+ PriceListPriceText_PriceListFragment: "PriceList";
5
+ };
6
+ }, {}, {
7
+ fragment: "PriceListCardPrice_PriceListFragment";
8
+ on: "PriceList";
9
+ masked: true;
10
+ }>;
11
+ declare const PriceListCardPrice: ({ className, priceList: maskedPriceList, }: {
3
12
  className?: string;
4
- priceList: PriceList;
13
+ priceList: FragmentOf<typeof PriceListCardPrice_PriceListFragment>;
5
14
  }) => import("react/jsx-runtime").JSX.Element;
6
15
  export default PriceListCardPrice;
@@ -1,6 +1,5 @@
1
- import { PriceList } from '@bunnyapp/common';
2
- declare const PriceListCardTitle: ({ priceList, isPriceListCurrentSubscription, trialRemainingDays, }: {
3
- priceList: PriceList;
1
+ declare const PriceListCardTitle: ({ planName, isPriceListCurrentSubscription, trialRemainingDays, }: {
2
+ planName: string;
4
3
  isPriceListCurrentSubscription: boolean;
5
4
  trialRemainingDays?: number;
6
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { PriceList, PriceListCharge, Subscription } from '@bunnyapp/common';
2
- export declare const createPlanDescription: (priceList: PriceList) => string;
2
+ export declare const createPlanDescription: (planDescription: string) => string;
3
3
  export declare const getActivePlanPriceData: (priceList?: PriceList, selectedPriceList?: PriceList) => {
4
4
  activeCharge: PriceListCharge | undefined;
5
5
  } | undefined;
@@ -1,4 +1,4 @@
1
- declare const PreviewModeAdvisary: ({ isInPreviewMode, }: {
1
+ declare const PreviewModeAdvisary: ({ isInPreviewMode }: {
2
2
  isInPreviewMode: boolean;
3
3
  }) => import("react/jsx-runtime").JSX.Element | null;
4
4
  export default PreviewModeAdvisary;
@@ -1,4 +1,3 @@
1
- import { Quote } from '@bunnyapp/common';
2
1
  import { FragmentOf } from 'gql.tada';
3
2
  export declare const QuantityChangeGridRow_SubscriptionChargeFragment: import("gql.tada").TadaDocumentNode<{
4
3
  id: string | null;
@@ -39,11 +38,7 @@ export declare const QuantityChangeGridRow_SubscriptionFragment: import("gql.tad
39
38
  on: "Subscription";
40
39
  masked: true;
41
40
  }>;
42
- declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote, subscriptionIndex, setEditingQuoteData, subscription: maskedSubscription, subscriptionCharge: maskedSubscriptionCharge, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
43
- chargeIndex: number;
44
- editingQuote?: Quote;
45
- subscriptionIndex: number;
46
- setEditingQuoteData: (value: any) => void;
41
+ declare const QuantityChangeGridRow: ({ subscription: maskedSubscription, subscriptionCharge: maskedSubscriptionCharge, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
47
42
  subscription: FragmentOf<typeof QuantityChangeGridRow_SubscriptionFragment>;
48
43
  subscriptionCharge: FragmentOf<typeof QuantityChangeGridRow_SubscriptionChargeFragment>;
49
44
  setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
@@ -0,0 +1,12 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ import { QuantityDrawerDesktop_SubscriptionFragment } from './quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop';
3
+ interface QuantityDrawerProps {
4
+ subscriptions: (FragmentOf<typeof QuantityDrawerDesktop_SubscriptionFragment> | null)[];
5
+ quantityDrawerOpen: boolean;
6
+ setQuantityDrawerOpen: (open: boolean) => void;
7
+ handlePortalErrors?: (errors: any) => void;
8
+ setShowInactive: (showInactive: boolean) => void;
9
+ }
10
+ export declare const QuantityDrawerContent: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, setShowInactive, }: QuantityDrawerProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const QuantityDrawer: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, setShowInactive, }: QuantityDrawerProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -1,10 +1,15 @@
1
- import { Quote } from '@bunnyapp/common';
2
- import { EditingQuoteDataType } from '../SubscriptionsListContainer';
3
- declare const QuoteChangeSummarySection: ({ editingQuote, editingQuoteData, openCheckout, setEditingQuoteData, errorUpdatingQuantity, }: {
4
- editingQuote?: Quote;
5
- editingQuoteData?: EditingQuoteDataType;
1
+ export declare const QuoteChangeSummarySection_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ id: string | null;
3
+ amountDue: number | null;
4
+ amount: number;
5
+ currencyId: string;
6
+ }, {}, {
7
+ fragment: "QuoteChangeSummarySection_QuoteFragment";
8
+ on: "Quote";
9
+ masked: true;
10
+ }>;
11
+ declare const QuoteChangeSummarySection: ({ openCheckout, errorUpdatingQuantity, }: {
6
12
  openCheckout: () => void;
7
- setEditingQuoteData: (editingQuoteData: EditingQuoteDataType | undefined) => void;
8
13
  errorUpdatingQuantity: boolean;
9
14
  }) => import("react/jsx-runtime").JSX.Element;
10
15
  export default QuoteChangeSummarySection;
@@ -0,0 +1,5 @@
1
+ declare const QuoteIdProvider: ({ initialValue, children, }: {
2
+ initialValue?: string | undefined;
3
+ children?: import("react").ReactNode;
4
+ }) => import("react/jsx-runtime").JSX.Element, useQuoteId: () => [string | undefined, import("react").Dispatch<import("react").SetStateAction<string | undefined>>];
5
+ export { QuoteIdProvider, useQuoteId };
@@ -0,0 +1,14 @@
1
+ export declare const QuantityDrawer_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ id: string | null;
3
+ [$tada.fragmentRefs]: {
4
+ Checkout_QuoteFragment: "Quote";
5
+ } & {
6
+ QuantityInput_QuoteFragment: "Quote";
7
+ } & {
8
+ QuoteChangeSummarySection_QuoteFragment: "Quote";
9
+ };
10
+ }, {}, {
11
+ fragment: "QuantityDrawer_QuoteFragment";
12
+ on: "Quote";
13
+ masked: true;
14
+ }>;
@@ -0,0 +1,3 @@
1
+ import { ResultOf } from 'gql.tada';
2
+ import { QuantityDrawer_QuoteFragment } from '../fragments/QuantityDrawer_QuoteFragment';
3
+ export declare const useQuoteQueryData: (quoteId: string | undefined) => ResultOf<typeof QuantityDrawer_QuoteFragment> | undefined;
@@ -0,0 +1,5 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ import { QuantityDrawer_QuoteFragment } from '../fragments/QuantityDrawer_QuoteFragment';
3
+ export declare const useSetQuoteQueryData: () => {
4
+ setQuoteQueryData: (quoteId: string, quote: FragmentOf<typeof QuantityDrawer_QuoteFragment> | null) => void;
5
+ };
@@ -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
+ QuantityDrawer_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
+ QuantityDrawer_QuoteFragment: "Quote";
8
+ };
9
+ };
10
+ };
11
+ id: string | null;
12
+ } | null | undefined>;
@@ -0,0 +1,22 @@
1
+ export declare const quoteSubscriptionUpdate: (subscriptionIds: string[], apiHost: string, token?: string) => Promise<{
2
+ id: string | null;
3
+ quoteChanges: {
4
+ id: string | null;
5
+ priceList: {
6
+ id: string;
7
+ } | null;
8
+ subscription: {
9
+ charges: {
10
+ startDate: unknown;
11
+ endDate: unknown;
12
+ id: string | null;
13
+ priceListCharge: {
14
+ id: string;
15
+ } | null;
16
+ }[] | null;
17
+ } | null;
18
+ }[] | null;
19
+ [$tada.fragmentRefs]: {
20
+ QuantityDrawer_QuoteFragment: "Quote";
21
+ };
22
+ } | null | undefined>;
@@ -1,11 +1,7 @@
1
- import { Quote } from '@bunnyapp/common';
2
1
  import { FragmentOf } from 'gql.tada';
3
- import { EditingQuoteDataType } from '../../SubscriptionsListContainer';
4
2
  export declare const QuantityDrawerDesktop_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
5
- state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
6
3
  currentCharges: {
7
4
  chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
8
- trial: boolean;
9
5
  [$tada.fragmentRefs]: {
10
6
  QuantityChangeGridRow_SubscriptionChargeFragment: "SubscriptionCharge";
11
7
  };
@@ -18,13 +14,10 @@ export declare const QuantityDrawerDesktop_SubscriptionFragment: import("gql.tad
18
14
  on: "Subscription";
19
15
  masked: true;
20
16
  }>;
21
- declare const QuantityChangeDrawerDesktop: ({ editingQuote, editingQuoteData, onClose, open, openCheckout, setEditingQuoteData, subscriptions, setUpdatingChargeQuantityId, updatingChargeQuantityId, }: {
22
- editingQuote?: Quote;
23
- editingQuoteData?: EditingQuoteDataType;
17
+ declare const QuantityChangeDrawerDesktop: ({ onClose, open, openCheckout, subscriptions, setUpdatingChargeQuantityId, updatingChargeQuantityId, }: {
24
18
  onClose: () => void;
25
19
  open: boolean;
26
20
  openCheckout: () => void;
27
- setEditingQuoteData: (value: EditingQuoteDataType | undefined) => void;
28
21
  subscriptions: (FragmentOf<typeof QuantityDrawerDesktop_SubscriptionFragment> | null)[];
29
22
  setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
30
23
  updatingChargeQuantityId: string | undefined;
@@ -1,5 +1,4 @@
1
- import { Quote } from '@bunnyapp/common';
2
- import { FragmentOf, ResultOf } from 'gql.tada';
1
+ import { FragmentOf } from 'gql.tada';
3
2
  export declare const QuantityInput_SubscriptionChargeFragment: import("gql.tada").TadaDocumentNode<{
4
3
  id: string | null;
5
4
  quantity: number | null;
@@ -12,7 +11,7 @@ export declare const QuantityInput_SubscriptionChargeFragment: import("gql.tada"
12
11
  }>;
13
12
  export declare const QuantityInput_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
14
13
  id: string;
15
- state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
14
+ state: "TRIAL" | "ACTIVE" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
16
15
  priceList: {
17
16
  id: string;
18
17
  } | null;
@@ -31,23 +30,9 @@ export declare const QuantityInput_SubscriptionFragment: import("gql.tada").Tada
31
30
  on: "Subscription";
32
31
  masked: true;
33
32
  }>;
34
- export type EditingSubscriptionType = {
35
- chargeId: string;
36
- chargeIndex: number;
37
- quantity: number | undefined;
38
- subscription: ResultOf<typeof QuantityInput_SubscriptionFragment>;
39
- subscriptionIndex: number;
40
- };
41
- declare const QuantityInput: ({ charge: maskedCharge, chargeIndex, editingQuote, setEditingQuoteData, subscription: maskedSubscription, subscriptionIndex, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
33
+ declare const QuantityInput: ({ charge: maskedCharge, subscription: maskedSubscription, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
42
34
  charge: FragmentOf<typeof QuantityInput_SubscriptionChargeFragment>;
43
- chargeIndex: number;
44
- editingQuote?: Quote;
45
- setEditingQuoteData: (editingQuoteData: {
46
- id: string;
47
- isTrial: boolean;
48
- } | undefined) => void;
49
35
  subscription: FragmentOf<typeof QuantityInput_SubscriptionFragment>;
50
- subscriptionIndex: number;
51
36
  setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
52
37
  updatingChargeQuantityId: string | undefined;
53
38
  setErrorUpdatingQuantity: (errorUpdatingQuantity: boolean) => void;
@@ -0,0 +1,27 @@
1
+ export declare const QuantityInput_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ id: string | null;
3
+ quoteChanges: {
4
+ id: string | null;
5
+ priceList: {
6
+ id: string;
7
+ } | null;
8
+ charges: {
9
+ id: string | null;
10
+ priceListCharge: {
11
+ id: string;
12
+ } | null;
13
+ }[];
14
+ subscription: {
15
+ charges: {
16
+ id: string | null;
17
+ priceListCharge: {
18
+ id: string;
19
+ } | null;
20
+ }[] | null;
21
+ } | null;
22
+ }[] | null;
23
+ }, {}, {
24
+ fragment: "QuantityInput_QuoteFragment";
25
+ on: "Quote";
26
+ masked: true;
27
+ }>;
@@ -0,0 +1,2 @@
1
+ import { Dayjs } from 'dayjs';
2
+ export declare const formatDateForApi: (date: Dayjs | string) => string;
@@ -1,11 +1,10 @@
1
- import { Quote } from '@bunnyapp/common';
2
1
  import { FragmentOf } from 'gql.tada';
3
- import { EditingSubscriptionType } from './QuantityInput';
4
2
  export declare const CanShowQuantitiesInput_SubscriptionChargeFragment: import("gql.tada").TadaDocumentNode<{
5
3
  id: string | null;
6
4
  pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
7
5
  expired: boolean;
8
6
  selfServiceQuantity: boolean | null;
7
+ kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
9
8
  }, {}, {
10
9
  fragment: "CanShowQuantitiesInput_SubscriptionChargeFragment";
11
10
  on: "SubscriptionCharge";
@@ -13,11 +12,11 @@ export declare const CanShowQuantitiesInput_SubscriptionChargeFragment: import("
13
12
  }>;
14
13
  export declare const CanShowQuantitiesInput_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
15
14
  id: string;
16
- state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
15
+ state: "TRIAL" | "ACTIVE" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
17
16
  priceList: {
18
17
  id: string;
19
18
  } | null;
20
- chargeReport: {
19
+ currentCharges: {
21
20
  [$tada.fragmentRefs]: {
22
21
  CanShowQuantitiesInput_SubscriptionChargeFragment: "SubscriptionCharge";
23
22
  };
@@ -27,13 +26,6 @@ export declare const CanShowQuantitiesInput_SubscriptionFragment: import("gql.ta
27
26
  on: "Subscription";
28
27
  masked: true;
29
28
  }>;
30
- export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: number, editedSubscription?: EditingSubscriptionType) => {
31
- charges: {
32
- id: string;
33
- quantity: number;
34
- }[];
35
- quoteChange: import("@bunnyapp/common").QuoteChange | undefined;
36
- };
37
29
  export declare const getUpdatingChargeQuantityId: (priceListChargeId: string, subscriptionId: string) => string;
38
30
  export declare const canShowQuantitiesInput: ({ charge: maskedCharge, subscription: maskedSubscription, }: {
39
31
  charge: FragmentOf<typeof CanShowQuantitiesInput_SubscriptionChargeFragment>;
@@ -1,6 +1,6 @@
1
- import { Subscription, SubscriptionCharge } from '@bunnyapp/common';
2
- declare const SubscriptionChargeTotal: ({ charge, subscription, }: {
1
+ import { SubscriptionCharge } from '@bunnyapp/common';
2
+ declare const SubscriptionChargeTotal: ({ charge, currencyId, }: {
3
3
  charge: SubscriptionCharge;
4
- subscription: Subscription;
4
+ currencyId: string;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
6
6
  export default SubscriptionChargeTotal;
@@ -1,5 +1,5 @@
1
1
  import { FragmentOf } from 'gql.tada';
2
- import { CanShowQuantitiesInput_SubscriptionFragment } from '../quantityChangeDrawer/utils';
2
+ import { CanShowQuantitiesInput_SubscriptionFragment } from '../quantityChangeDrawer/utils/utils';
3
3
  declare const SubscriptionsNavigation: ({ inactiveSwitchVisible, showInactive, setShowInactive, setQuantityDrawerOpen, subscriptions, }: {
4
4
  inactiveSwitchVisible: boolean;
5
5
  showInactive: boolean;
@@ -0,0 +1,21 @@
1
+ import { Subscription } from '@bunnyapp/common';
2
+ import { FragmentOf } from 'gql.tada';
3
+ export declare const SubscriptionCardActions_PriceListChangeOptionsFragment: import("gql.tada").TadaDocumentNode<{
4
+ priceLists: {
5
+ id: string;
6
+ product: {
7
+ id: string;
8
+ } | null;
9
+ }[] | null;
10
+ }, {}, {
11
+ fragment: "SubscriptionCardActions_PriceListChangeOptionsFragment";
12
+ on: "PriceListChangeOptions";
13
+ masked: true;
14
+ }>;
15
+ export declare const SubscriptionCardActions: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions: maskedPriceListChangeOptions, subscription, isPaymentMethodLoading, }: {
16
+ onChangePlanClick?: (subscription: Subscription) => void;
17
+ onCancelSubscriptionClick?: (subscription: Subscription) => void;
18
+ priceListChangeOptions?: FragmentOf<typeof SubscriptionCardActions_PriceListChangeOptionsFragment>;
19
+ subscription: Subscription;
20
+ isPaymentMethodLoading: boolean;
21
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ export declare const getPriceListChangeOptions: ({ apiHost, productId, token, }: {
2
+ apiHost: string;
3
+ productId: string;
4
+ token?: string;
5
+ }) => Promise<{
6
+ [$tada.fragmentRefs]: {
7
+ SubscriptionCardActions_PriceListChangeOptionsFragment: "PriceListChangeOptions";
8
+ };
9
+ }>;
@@ -11,6 +11,4 @@ export declare const isSubscriptionTrial: (subscription: Subscription) => boolea
11
11
  export declare const isSubscriptionTrialExpired: (subscription: Subscription) => boolean;
12
12
  export declare const isDiscount: (kind?: QuoteChangeKind) => kind is QuoteChangeKind.DISCOUNT | QuoteChangeKind.FREE_PERIOD_DISCOUNT;
13
13
  export declare const hasPriceTiers: (charge: SubscriptionCharge) => boolean;
14
- export declare const hasMultiplePriceTiers: (charge: SubscriptionCharge) => boolean;
15
- export declare const getApplicablePriceTier: (charge: SubscriptionCharge, currencyId: string, priceDecimals: number) => string;
16
14
  export declare const getUpdatingChargeQuantityId: (charge: SubscriptionCharge, subscription: Subscription) => string;
@@ -0,0 +1,2 @@
1
+ import { SubscriptionCharge } from '../../../../types/SubscriptionCharge';
2
+ export declare const filterSubscriptionCharges: (charges: SubscriptionCharge[]) => SubscriptionCharge[];
@@ -0,0 +1,2 @@
1
+ import { SubscriptionCharge } from '../../../../types/SubscriptionCharge';
2
+ export declare const sortSubscriptionCharges: (charges: SubscriptionCharge[]) => SubscriptionCharge[];
@@ -0,0 +1,9 @@
1
+ import { PriceTier } from '@bunnyapp/common';
2
+ import { ReactNode } from 'react';
3
+ declare const TieredDisplayDropdown: ({ priceTiers, currencyId, priceDecimals, truncatedText, }: {
4
+ priceTiers: PriceTier[];
5
+ currencyId: string;
6
+ priceDecimals: number;
7
+ truncatedText: ReactNode;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export default TieredDisplayDropdown;
@@ -0,0 +1,9 @@
1
+ import { PricingModel } from '../../../graphql-codegen/exportedScalarTypes';
2
+ export declare const getApplicablePriceTier: (charge: {
3
+ priceTiers: {
4
+ starts: number | null;
5
+ price: number | null;
6
+ }[] | null;
7
+ pricingModel: PricingModel | null;
8
+ quantity: number | null;
9
+ }, currencyId: string, priceDecimals: number) => string;
@@ -1,6 +1,6 @@
1
- import { Account, Quote } from '@bunnyapp/common';
2
- declare const TaxationForm: ({ account, quote }: {
1
+ import { Account } from '@bunnyapp/common';
2
+ declare const TaxationForm: ({ account, accountId }: {
3
3
  account: Account;
4
- quote: Quote;
4
+ accountId: string;
5
5
  }) => import("react/jsx-runtime").JSX.Element;
6
6
  export default TaxationForm;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { Transaction, TransactionKind } from '@bunnyapp/common';
3
+ import { TransactionDateType } from '../../contexts/TransactionsListContext';
3
4
  import { ShadowType } from '../../types/shadowType';
4
5
  import { TransactionListColumnType } from './transactionsList/TransactionsListDesktop';
5
- import { TransactionDateType } from '../../contexts/TransactionsListContext';
6
6
  export default function Transactions({ transactionComponent, showSearchBar, showTitle, title, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, style, filter, noTransactionsMessage, filterTransactions, sortTransactions, transactionDateType, hidePaymentForm, }: {
7
7
  /** A custom component to render instead of the default invoice component */
8
8
  transactionComponent?: React.ReactNode;