@bunnyapp/components 1.6.0 → 1.7.0-beta.12

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 (532) hide show
  1. package/dist/cjs/index.js +10327 -8114
  2. package/dist/cjs/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
  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 +10 -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/Checkout/Checkout.d.ts +3 -2
  14. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +21 -2
  15. package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +8 -2
  16. package/dist/cjs/types/src/components/FeatureUsageGraph.d.ts +31 -4
  17. package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +0 -1
  18. package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
  19. package/dist/cjs/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
  20. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +5 -2
  21. package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +5 -3
  22. package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +16 -3
  23. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +5 -2
  24. package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +5 -3
  25. package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -2
  26. package/dist/cjs/types/src/components/PaymentForm/components/CouponEditor.d.ts +0 -2
  27. package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +16 -4
  28. package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +1 -1
  29. package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +18 -3
  30. package/dist/cjs/types/src/components/PaymentForm/types/PaymentFormTypes.d.ts +1 -1
  31. package/dist/cjs/types/src/components/Quote/AcceptQuoteModal.d.ts +12 -3
  32. package/dist/cjs/types/src/components/Quote/PaymentHoldModal.d.ts +17 -3
  33. package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +26 -0
  34. package/dist/cjs/types/src/components/QuoteProvider/context/QuoteContext.d.ts +2 -1
  35. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +1 -1
  36. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +9 -0
  37. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -1
  38. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +1 -1
  39. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  40. package/dist/cjs/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
  41. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
  42. package/dist/cjs/types/src/components/Quotes/Quotes.d.ts +1 -1
  43. package/dist/cjs/types/src/components/Signup/CheckoutSummary.d.ts +2 -2
  44. package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +12 -3
  45. package/dist/cjs/types/src/components/Signup/PriceListDisplay.d.ts +1 -1
  46. package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +17 -5
  47. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +0 -7
  48. package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +12 -6
  49. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
  50. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
  51. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +4 -1
  52. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +1 -1
  53. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +16 -3
  54. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
  55. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
  56. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +1 -1
  57. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
  58. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
  59. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +2 -1
  60. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +4 -1
  61. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +2 -0
  62. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
  63. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
  64. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
  65. package/dist/{esm/types/src/graphql → cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
  66. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +4 -1
  67. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +2 -1
  68. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +2 -1
  69. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
  70. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
  71. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
  72. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
  73. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
  74. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +15 -13
  75. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -1
  76. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +4 -1
  77. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerUtils.d.ts +2 -1
  78. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +1 -1
  79. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +2 -1
  80. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +15 -1
  81. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  82. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -1
  83. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +16 -1
  84. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/utils/createAvailableBillingPeriods.d.ts +16 -0
  85. package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +3 -4
  86. package/dist/cjs/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +175 -0
  87. package/dist/cjs/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +5 -0
  88. package/dist/cjs/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +5 -0
  89. package/dist/cjs/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +14 -0
  90. package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +46 -0
  91. package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +4 -0
  92. package/dist/cjs/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +17 -0
  93. package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +26 -0
  94. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -1
  95. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +3 -2
  96. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
  97. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
  98. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  99. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
  100. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
  101. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuantityInput.d.ts +10 -1
  102. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
  103. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
  104. package/dist/cjs/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +197 -0
  105. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +15 -3
  106. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +23 -3
  107. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +20 -5
  108. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  109. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +23 -5
  110. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +39 -0
  111. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +30 -5
  112. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -5
  113. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +20 -0
  114. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +19 -0
  115. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +31 -3
  116. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +13 -9
  117. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +12 -0
  118. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +12 -0
  119. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +9 -2
  120. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +14 -2
  121. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +15 -3
  122. package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -4
  123. package/dist/cjs/types/src/components/TaxationForm.d.ts +1 -1
  124. package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +2 -1
  125. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
  126. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +1 -1
  127. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  128. package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
  129. package/dist/cjs/types/src/components/Transactions/transactionsList/utils.d.ts +1 -1
  130. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +1 -1
  131. package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +1 -1
  132. package/dist/cjs/types/src/consts/AppConsts.d.ts +10 -0
  133. package/dist/cjs/types/src/consts/DefaultBranding.d.ts +4 -0
  134. package/dist/cjs/types/src/consts/Lists.d.ts +4 -0
  135. package/dist/cjs/types/src/consts/StyleConsts.d.ts +58 -0
  136. package/dist/cjs/types/src/consts/index.d.ts +4 -0
  137. package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +2 -1
  138. package/dist/cjs/types/src/contexts/TransactionsListContext.d.ts +2 -1
  139. package/dist/cjs/types/src/enums/ChargeType.d.ts +6 -0
  140. package/dist/cjs/types/src/enums/ColumnFormat.d.ts +16 -0
  141. package/dist/cjs/types/src/enums/CreditNoteState.d.ts +8 -0
  142. package/dist/cjs/types/src/enums/PriceAdjustmentAction.d.ts +6 -0
  143. package/dist/cjs/types/src/enums/PriceAdjustmentTiming.d.ts +16 -0
  144. package/dist/cjs/types/src/enums/QuoteChangeKind.d.ts +16 -0
  145. package/dist/cjs/types/src/enums/TransactionState.d.ts +14 -0
  146. package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +6 -3
  147. package/dist/cjs/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +1 -1
  148. package/dist/cjs/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +1 -1
  149. package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +1 -1
  150. package/dist/cjs/types/src/graphql/mutations/quoteCreate.d.ts +1 -1
  151. package/dist/cjs/types/src/graphql/mutations/quoteCreateWithDeal.d.ts +1 -1
  152. package/dist/cjs/types/src/graphql/queries/getAccount.d.ts +6 -0
  153. package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
  154. package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +10 -3
  155. package/dist/cjs/types/src/graphql/queries/getPriceList.d.ts +1 -1
  156. package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
  157. package/dist/cjs/types/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
  158. package/dist/cjs/types/src/graphql/queries/getTransactions.d.ts +1 -1
  159. package/dist/cjs/types/src/graphql-codegen/exportedScalarTypes.d.ts +3 -0
  160. package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +3 -3
  161. package/dist/cjs/types/src/hooks/useHasTaxPlugin.d.ts +1 -1
  162. package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +2 -2
  163. package/dist/cjs/types/src/hooks/useSigningPlugins.d.ts +2 -2
  164. package/dist/cjs/types/src/hooks/useUpdateCoupons.d.ts +2 -2
  165. package/dist/cjs/types/src/types/Account.d.ts +73 -0
  166. package/dist/cjs/types/src/types/AccountBalance.d.ts +6 -0
  167. package/dist/cjs/types/src/types/AccountType.d.ts +7 -0
  168. package/dist/cjs/types/src/types/ApprovalDecision.d.ts +13 -0
  169. package/dist/cjs/types/src/types/ApprovalRequest.d.ts +18 -0
  170. package/dist/cjs/types/src/types/ApprovalRule.d.ts +15 -0
  171. package/dist/cjs/types/src/types/Approver.d.ts +10 -0
  172. package/dist/cjs/types/src/types/Campaign.d.ts +13 -0
  173. package/dist/cjs/types/src/types/Contact.d.ts +27 -0
  174. package/dist/cjs/types/src/types/Coupon.d.ts +19 -0
  175. package/dist/cjs/types/src/types/CreditNote.d.ts +45 -0
  176. package/dist/cjs/types/src/types/CreditNoteItem.d.ts +20 -0
  177. package/dist/cjs/types/src/types/Currency.d.ts +11 -0
  178. package/dist/cjs/types/src/types/Deal.d.ts +38 -0
  179. package/dist/cjs/types/src/types/DealStage.d.ts +12 -0
  180. package/dist/cjs/types/src/types/DisputeReason.d.ts +6 -0
  181. package/dist/cjs/types/src/types/DynamicComponent.d.ts +12 -0
  182. package/dist/cjs/types/src/types/Entity.d.ts +41 -0
  183. package/dist/cjs/types/src/types/Feature.d.ts +21 -0
  184. package/dist/cjs/types/src/types/FeatureUsage.d.ts +35 -0
  185. package/dist/cjs/types/src/types/FormattedInvoice.d.ts +50 -0
  186. package/dist/cjs/types/src/types/FormattedQuote.d.ts +49 -0
  187. package/dist/cjs/types/src/types/Invoice.d.ts +60 -0
  188. package/dist/cjs/types/src/types/InvoiceConnection.d.ts +6 -0
  189. package/dist/cjs/types/src/types/InvoiceItem.d.ts +43 -0
  190. package/dist/cjs/types/src/types/Payment.d.ts +21 -0
  191. package/dist/cjs/types/src/types/PaymentApplication.d.ts +13 -0
  192. package/dist/cjs/types/src/types/PaymentHold.d.ts +10 -0
  193. package/dist/cjs/types/src/types/PaymentMethod.d.ts +29 -0
  194. package/dist/cjs/types/src/types/Plan.d.ts +40 -0
  195. package/dist/cjs/types/src/types/PlanChangeOptions.d.ts +7 -0
  196. package/dist/cjs/types/src/types/Platform.d.ts +12 -0
  197. package/dist/cjs/types/src/types/Plugin.d.ts +44 -0
  198. package/dist/cjs/types/src/types/PluginDefinition.d.ts +23 -0
  199. package/dist/cjs/types/src/types/PluginParameter.d.ts +12 -0
  200. package/dist/cjs/types/src/types/PluginVendor.d.ts +6 -0
  201. package/dist/cjs/types/src/types/PriceList.d.ts +41 -0
  202. package/dist/cjs/types/src/types/PriceListChangeOptions.d.ts +7 -0
  203. package/dist/cjs/types/src/types/PriceListCharge.d.ts +45 -0
  204. package/dist/cjs/types/src/types/PriceListChargeTier.d.ts +6 -0
  205. package/dist/cjs/types/src/types/PriceTier.d.ts +5 -0
  206. package/dist/cjs/types/src/types/Product.d.ts +22 -0
  207. package/dist/cjs/types/src/types/ProductCategory.d.ts +9 -0
  208. package/dist/cjs/types/src/types/Quote.d.ts +81 -0
  209. package/dist/cjs/types/src/types/QuoteChange.d.ts +21 -0
  210. package/dist/cjs/types/src/types/QuoteCharge.d.ts +50 -0
  211. package/dist/cjs/types/src/types/Role.d.ts +6 -0
  212. package/dist/cjs/types/src/types/Subscription.d.ts +37 -0
  213. package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +8 -1
  214. package/dist/cjs/types/src/types/TaxationRequiredAccountFields.d.ts +2 -0
  215. package/dist/cjs/types/src/types/Tenant.d.ts +19 -0
  216. package/dist/cjs/types/src/types/TenantProvisioningChange.d.ts +12 -0
  217. package/dist/cjs/types/src/types/Transaction.d.ts +27 -0
  218. package/dist/cjs/types/src/types/User.d.ts +25 -0
  219. package/dist/cjs/types/src/types/UserProfile.d.ts +7 -0
  220. package/dist/cjs/types/src/types/billingDetails.d.ts +1 -1
  221. package/dist/cjs/types/src/types/frontendTypes/ComponentJSON.d.ts +285 -0
  222. package/dist/cjs/types/src/types/frontendTypes/Error.d.ts +3 -0
  223. package/dist/cjs/types/src/types/frontendTypes/FormLink.d.ts +8 -0
  224. package/dist/cjs/types/src/types/frontendTypes/FormattedLine.d.ts +50 -0
  225. package/dist/cjs/types/src/types/frontendTypes/PaymentComponentProps.d.ts +18 -0
  226. package/dist/cjs/types/src/types/frontendTypes/PeriodAmount.d.ts +9 -0
  227. package/dist/cjs/types/src/types/frontendTypes/PlanFeature.d.ts +12 -0
  228. package/dist/cjs/types/src/types/frontendTypes/PluginData.d.ts +26 -0
  229. package/dist/cjs/types/src/types/frontendTypes/QuoteDocument.d.ts +8 -0
  230. package/dist/cjs/types/src/types/frontendTypes/QuotePreviewData.d.ts +6 -0
  231. package/dist/cjs/types/src/types/frontendTypes/TableColumn.d.ts +9 -0
  232. package/dist/cjs/types/src/types/frontendTypes/TriggeredApprovalRule.d.ts +5 -0
  233. package/dist/cjs/types/src/types/frontendTypes/currentUser.d.ts +11 -0
  234. package/dist/cjs/types/src/types/frontendTypes/index.d.ts +13 -0
  235. package/dist/cjs/types/src/types/interfaces/Payable.d.ts +16 -0
  236. package/dist/cjs/types/src/types/interfaces/PayableItem.d.ts +11 -0
  237. package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +10 -0
  238. package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanSwitchTestId.d.ts +1 -0
  239. package/dist/cjs/types/src/utils/addonPlanUtils/consts.d.ts +1 -0
  240. package/dist/cjs/types/src/utils/addonPlanUtils/findAddonSubscriptions.d.ts +12 -0
  241. package/dist/cjs/types/src/utils/addonPlanUtils/findNonAddonSubscriptions.d.ts +17 -0
  242. package/dist/cjs/types/src/utils/addonPlanUtils/findParentSubscription.d.ts +12 -0
  243. package/dist/cjs/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +1 -1
  244. package/dist/cjs/types/src/utils/apiUtils/apiUtils.d.ts +4 -4
  245. package/dist/cjs/types/src/utils/apiUtils/config.d.ts +9 -0
  246. package/dist/cjs/types/src/utils/apiUtils/invokePlugin.d.ts +1 -1
  247. package/dist/cjs/types/src/utils/couponUtils.d.ts +21 -2
  248. package/dist/cjs/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +4 -2
  249. package/dist/cjs/types/src/utils/formatDate.d.ts +1 -0
  250. package/dist/cjs/types/src/utils/graphql.d.ts +2 -0
  251. package/dist/cjs/types/src/utils/httpUtils.d.ts +10 -0
  252. package/dist/cjs/types/src/utils/isColorTooDark.d.ts +1 -0
  253. package/dist/cjs/types/src/utils/notificationUtils.d.ts +5 -0
  254. package/dist/cjs/types/src/utils/priceListChargeUtils/filterDeprecatedCharges.d.ts +11 -0
  255. package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +4 -3
  256. package/dist/esm/index.js +23368 -21155
  257. package/dist/esm/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
  258. package/dist/esm/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
  259. package/dist/esm/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
  260. package/dist/esm/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
  261. package/dist/esm/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +10 -0
  262. package/dist/esm/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
  263. package/dist/esm/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
  264. package/dist/esm/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
  265. package/dist/esm/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
  266. package/dist/esm/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
  267. package/dist/esm/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
  268. package/dist/esm/types/src/components/Checkout/Checkout.d.ts +3 -2
  269. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +21 -2
  270. package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +8 -2
  271. package/dist/esm/types/src/components/FeatureUsageGraph.d.ts +31 -4
  272. package/dist/esm/types/src/components/Invoice/Invoice.d.ts +0 -1
  273. package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
  274. package/dist/esm/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
  275. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +5 -2
  276. package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +5 -3
  277. package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +16 -3
  278. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +5 -2
  279. package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +5 -3
  280. package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -2
  281. package/dist/esm/types/src/components/PaymentForm/components/CouponEditor.d.ts +0 -2
  282. package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +16 -4
  283. package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +1 -1
  284. package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +18 -3
  285. package/dist/esm/types/src/components/PaymentForm/types/PaymentFormTypes.d.ts +1 -1
  286. package/dist/esm/types/src/components/Quote/AcceptQuoteModal.d.ts +12 -3
  287. package/dist/esm/types/src/components/Quote/PaymentHoldModal.d.ts +17 -3
  288. package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +26 -0
  289. package/dist/esm/types/src/components/QuoteProvider/context/QuoteContext.d.ts +2 -1
  290. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +1 -1
  291. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +9 -0
  292. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -1
  293. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +1 -1
  294. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  295. package/dist/esm/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
  296. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
  297. package/dist/esm/types/src/components/Quotes/Quotes.d.ts +1 -1
  298. package/dist/esm/types/src/components/Signup/CheckoutSummary.d.ts +2 -2
  299. package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +12 -3
  300. package/dist/esm/types/src/components/Signup/PriceListDisplay.d.ts +1 -1
  301. package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +17 -5
  302. package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +0 -7
  303. package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +12 -6
  304. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
  305. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
  306. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +4 -1
  307. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +1 -1
  308. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +16 -3
  309. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
  310. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
  311. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +1 -1
  312. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
  313. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
  314. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +2 -1
  315. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +4 -1
  316. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +2 -0
  317. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
  318. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
  319. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
  320. package/dist/{cjs/types/src/graphql → esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
  321. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +4 -1
  322. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +2 -1
  323. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +2 -1
  324. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
  325. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
  326. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
  327. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
  328. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
  329. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +15 -13
  330. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -1
  331. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +4 -1
  332. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerUtils.d.ts +2 -1
  333. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +1 -1
  334. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +2 -1
  335. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +15 -1
  336. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
  337. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -1
  338. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +16 -1
  339. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/utils/createAvailableBillingPeriods.d.ts +16 -0
  340. package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +3 -4
  341. package/dist/esm/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +175 -0
  342. package/dist/esm/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +5 -0
  343. package/dist/esm/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +5 -0
  344. package/dist/esm/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +14 -0
  345. package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +46 -0
  346. package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +4 -0
  347. package/dist/esm/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +17 -0
  348. package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +26 -0
  349. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -1
  350. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +3 -2
  351. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
  352. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
  353. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
  354. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
  355. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
  356. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuantityInput.d.ts +10 -1
  357. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
  358. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
  359. package/dist/esm/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +197 -0
  360. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +15 -3
  361. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +23 -3
  362. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +20 -5
  363. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
  364. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +23 -5
  365. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +39 -0
  366. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +30 -5
  367. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -5
  368. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +20 -0
  369. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +19 -0
  370. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +31 -3
  371. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +13 -9
  372. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +12 -0
  373. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +12 -0
  374. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +9 -2
  375. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +14 -2
  376. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +15 -3
  377. package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -4
  378. package/dist/esm/types/src/components/TaxationForm.d.ts +1 -1
  379. package/dist/esm/types/src/components/Transactions/Transactions.d.ts +2 -1
  380. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
  381. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +1 -1
  382. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
  383. package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
  384. package/dist/esm/types/src/components/Transactions/transactionsList/utils.d.ts +1 -1
  385. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +1 -1
  386. package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +1 -1
  387. package/dist/esm/types/src/consts/AppConsts.d.ts +10 -0
  388. package/dist/esm/types/src/consts/DefaultBranding.d.ts +4 -0
  389. package/dist/esm/types/src/consts/Lists.d.ts +4 -0
  390. package/dist/esm/types/src/consts/StyleConsts.d.ts +58 -0
  391. package/dist/esm/types/src/consts/index.d.ts +4 -0
  392. package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +2 -1
  393. package/dist/esm/types/src/contexts/TransactionsListContext.d.ts +2 -1
  394. package/dist/esm/types/src/enums/ChargeType.d.ts +6 -0
  395. package/dist/esm/types/src/enums/ColumnFormat.d.ts +16 -0
  396. package/dist/esm/types/src/enums/CreditNoteState.d.ts +8 -0
  397. package/dist/esm/types/src/enums/PriceAdjustmentAction.d.ts +6 -0
  398. package/dist/esm/types/src/enums/PriceAdjustmentTiming.d.ts +16 -0
  399. package/dist/esm/types/src/enums/QuoteChangeKind.d.ts +16 -0
  400. package/dist/esm/types/src/enums/TransactionState.d.ts +14 -0
  401. package/dist/esm/types/src/graphql/mutations/checkout.d.ts +6 -3
  402. package/dist/esm/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +1 -1
  403. package/dist/esm/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +1 -1
  404. package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +1 -1
  405. package/dist/esm/types/src/graphql/mutations/quoteCreate.d.ts +1 -1
  406. package/dist/esm/types/src/graphql/mutations/quoteCreateWithDeal.d.ts +1 -1
  407. package/dist/esm/types/src/graphql/queries/getAccount.d.ts +6 -0
  408. package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
  409. package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +10 -3
  410. package/dist/esm/types/src/graphql/queries/getPriceList.d.ts +1 -1
  411. package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
  412. package/dist/esm/types/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
  413. package/dist/esm/types/src/graphql/queries/getTransactions.d.ts +1 -1
  414. package/dist/esm/types/src/graphql-codegen/exportedScalarTypes.d.ts +3 -0
  415. package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +3 -3
  416. package/dist/esm/types/src/hooks/useHasTaxPlugin.d.ts +1 -1
  417. package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +2 -2
  418. package/dist/esm/types/src/hooks/useSigningPlugins.d.ts +2 -2
  419. package/dist/esm/types/src/hooks/useUpdateCoupons.d.ts +2 -2
  420. package/dist/esm/types/src/types/Account.d.ts +73 -0
  421. package/dist/esm/types/src/types/AccountBalance.d.ts +6 -0
  422. package/dist/esm/types/src/types/AccountType.d.ts +7 -0
  423. package/dist/esm/types/src/types/ApprovalDecision.d.ts +13 -0
  424. package/dist/esm/types/src/types/ApprovalRequest.d.ts +18 -0
  425. package/dist/esm/types/src/types/ApprovalRule.d.ts +15 -0
  426. package/dist/esm/types/src/types/Approver.d.ts +10 -0
  427. package/dist/esm/types/src/types/Campaign.d.ts +13 -0
  428. package/dist/esm/types/src/types/Contact.d.ts +27 -0
  429. package/dist/esm/types/src/types/Coupon.d.ts +19 -0
  430. package/dist/esm/types/src/types/CreditNote.d.ts +45 -0
  431. package/dist/esm/types/src/types/CreditNoteItem.d.ts +20 -0
  432. package/dist/esm/types/src/types/Currency.d.ts +11 -0
  433. package/dist/esm/types/src/types/Deal.d.ts +38 -0
  434. package/dist/esm/types/src/types/DealStage.d.ts +12 -0
  435. package/dist/esm/types/src/types/DisputeReason.d.ts +6 -0
  436. package/dist/esm/types/src/types/DynamicComponent.d.ts +12 -0
  437. package/dist/esm/types/src/types/Entity.d.ts +41 -0
  438. package/dist/esm/types/src/types/Feature.d.ts +21 -0
  439. package/dist/esm/types/src/types/FeatureUsage.d.ts +35 -0
  440. package/dist/esm/types/src/types/FormattedInvoice.d.ts +50 -0
  441. package/dist/esm/types/src/types/FormattedQuote.d.ts +49 -0
  442. package/dist/esm/types/src/types/Invoice.d.ts +60 -0
  443. package/dist/esm/types/src/types/InvoiceConnection.d.ts +6 -0
  444. package/dist/esm/types/src/types/InvoiceItem.d.ts +43 -0
  445. package/dist/esm/types/src/types/Payment.d.ts +21 -0
  446. package/dist/esm/types/src/types/PaymentApplication.d.ts +13 -0
  447. package/dist/esm/types/src/types/PaymentHold.d.ts +10 -0
  448. package/dist/esm/types/src/types/PaymentMethod.d.ts +29 -0
  449. package/dist/esm/types/src/types/Plan.d.ts +40 -0
  450. package/dist/esm/types/src/types/PlanChangeOptions.d.ts +7 -0
  451. package/dist/esm/types/src/types/Platform.d.ts +12 -0
  452. package/dist/esm/types/src/types/Plugin.d.ts +44 -0
  453. package/dist/esm/types/src/types/PluginDefinition.d.ts +23 -0
  454. package/dist/esm/types/src/types/PluginParameter.d.ts +12 -0
  455. package/dist/esm/types/src/types/PluginVendor.d.ts +6 -0
  456. package/dist/esm/types/src/types/PriceList.d.ts +41 -0
  457. package/dist/esm/types/src/types/PriceListChangeOptions.d.ts +7 -0
  458. package/dist/esm/types/src/types/PriceListCharge.d.ts +45 -0
  459. package/dist/esm/types/src/types/PriceListChargeTier.d.ts +6 -0
  460. package/dist/esm/types/src/types/PriceTier.d.ts +5 -0
  461. package/dist/esm/types/src/types/Product.d.ts +22 -0
  462. package/dist/esm/types/src/types/ProductCategory.d.ts +9 -0
  463. package/dist/esm/types/src/types/Quote.d.ts +81 -0
  464. package/dist/esm/types/src/types/QuoteChange.d.ts +21 -0
  465. package/dist/esm/types/src/types/QuoteCharge.d.ts +50 -0
  466. package/dist/esm/types/src/types/Role.d.ts +6 -0
  467. package/dist/esm/types/src/types/Subscription.d.ts +37 -0
  468. package/dist/esm/types/src/types/SubscriptionCharge.d.ts +8 -1
  469. package/dist/esm/types/src/types/TaxationRequiredAccountFields.d.ts +2 -0
  470. package/dist/esm/types/src/types/Tenant.d.ts +19 -0
  471. package/dist/esm/types/src/types/TenantProvisioningChange.d.ts +12 -0
  472. package/dist/esm/types/src/types/Transaction.d.ts +27 -0
  473. package/dist/esm/types/src/types/User.d.ts +25 -0
  474. package/dist/esm/types/src/types/UserProfile.d.ts +7 -0
  475. package/dist/esm/types/src/types/billingDetails.d.ts +1 -1
  476. package/dist/esm/types/src/types/frontendTypes/ComponentJSON.d.ts +285 -0
  477. package/dist/esm/types/src/types/frontendTypes/Error.d.ts +3 -0
  478. package/dist/esm/types/src/types/frontendTypes/FormLink.d.ts +8 -0
  479. package/dist/esm/types/src/types/frontendTypes/FormattedLine.d.ts +50 -0
  480. package/dist/esm/types/src/types/frontendTypes/PaymentComponentProps.d.ts +18 -0
  481. package/dist/esm/types/src/types/frontendTypes/PeriodAmount.d.ts +9 -0
  482. package/dist/esm/types/src/types/frontendTypes/PlanFeature.d.ts +12 -0
  483. package/dist/esm/types/src/types/frontendTypes/PluginData.d.ts +26 -0
  484. package/dist/esm/types/src/types/frontendTypes/QuoteDocument.d.ts +8 -0
  485. package/dist/esm/types/src/types/frontendTypes/QuotePreviewData.d.ts +6 -0
  486. package/dist/esm/types/src/types/frontendTypes/TableColumn.d.ts +9 -0
  487. package/dist/esm/types/src/types/frontendTypes/TriggeredApprovalRule.d.ts +5 -0
  488. package/dist/esm/types/src/types/frontendTypes/currentUser.d.ts +11 -0
  489. package/dist/esm/types/src/types/frontendTypes/index.d.ts +13 -0
  490. package/dist/esm/types/src/types/interfaces/Payable.d.ts +16 -0
  491. package/dist/esm/types/src/types/interfaces/PayableItem.d.ts +11 -0
  492. package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +10 -0
  493. package/dist/esm/types/src/utils/addonPlanUtils/addonPlanSwitchTestId.d.ts +1 -0
  494. package/dist/esm/types/src/utils/addonPlanUtils/consts.d.ts +1 -0
  495. package/dist/esm/types/src/utils/addonPlanUtils/findAddonSubscriptions.d.ts +12 -0
  496. package/dist/esm/types/src/utils/addonPlanUtils/findNonAddonSubscriptions.d.ts +17 -0
  497. package/dist/esm/types/src/utils/addonPlanUtils/findParentSubscription.d.ts +12 -0
  498. package/dist/esm/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +1 -1
  499. package/dist/esm/types/src/utils/apiUtils/apiUtils.d.ts +4 -4
  500. package/dist/esm/types/src/utils/apiUtils/config.d.ts +9 -0
  501. package/dist/esm/types/src/utils/apiUtils/invokePlugin.d.ts +1 -1
  502. package/dist/esm/types/src/utils/couponUtils.d.ts +21 -2
  503. package/dist/esm/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +4 -2
  504. package/dist/esm/types/src/utils/formatDate.d.ts +1 -0
  505. package/dist/esm/types/src/utils/graphql.d.ts +2 -0
  506. package/dist/esm/types/src/utils/httpUtils.d.ts +10 -0
  507. package/dist/esm/types/src/utils/isColorTooDark.d.ts +1 -0
  508. package/dist/esm/types/src/utils/notificationUtils.d.ts +5 -0
  509. package/dist/esm/types/src/utils/priceListChargeUtils/filterDeprecatedCharges.d.ts +11 -0
  510. package/dist/esm/types/src/utils/pricePickerUtils.d.ts +4 -3
  511. package/dist/index.d.ts +22 -8
  512. package/package.json +18 -19
  513. package/dist/cjs/types/src/contexts/SubscriptionsContext.d.ts +0 -14
  514. package/dist/cjs/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
  515. package/dist/cjs/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
  516. package/dist/cjs/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
  517. package/dist/cjs/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
  518. package/dist/cjs/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
  519. package/dist/cjs/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
  520. package/dist/cjs/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
  521. package/dist/cjs/types/src/styles/constants.d.ts +0 -1
  522. package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +0 -5
  523. package/dist/esm/types/src/contexts/SubscriptionsContext.d.ts +0 -14
  524. package/dist/esm/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
  525. package/dist/esm/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
  526. package/dist/esm/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
  527. package/dist/esm/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
  528. package/dist/esm/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
  529. package/dist/esm/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
  530. package/dist/esm/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
  531. package/dist/esm/types/src/styles/constants.d.ts +0 -1
  532. package/dist/esm/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +0 -5
@@ -0,0 +1,11 @@
1
+ declare const quoteRecalculateTaxes: ({ quoteId, apiHost, token, }: {
2
+ quoteId: string;
3
+ apiHost: string;
4
+ token?: string;
5
+ }) => Promise<{
6
+ [$tada.fragmentRefs]: {
7
+ QuoteContext_QuoteFragment: "Quote";
8
+ };
9
+ id: string | null;
10
+ } | null | undefined>;
11
+ export default quoteRecalculateTaxes;
@@ -1,4 +1,4 @@
1
- import { Transaction } from '@bunnyapp/common';
1
+ import { Transaction } from '@/types/Transaction';
2
2
  import { ShadowType } from '../../types/shadowType';
3
3
  import { TransactionListColumnType } from '../Transactions/transactionsList/TransactionsListDesktop';
4
4
  declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, renderQuote, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
@@ -1,5 +1,5 @@
1
- import '../../styles/index.less';
2
- import { PriceList, Quote } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import { Quote } from '@/types/Quote';
3
3
  export default function CheckoutSummary({ quote, className, onAddCoupon, onRemoveCoupon, isRemovingCoupon, priceListData, isAddingCoupon, couponCode, setCouponCode, activeCouponsExist, }: {
4
4
  quote: Quote;
5
5
  className?: string;
@@ -1,6 +1,15 @@
1
- import { Quote } from '@bunnyapp/common';
2
- export default function PaymentForms({ quote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
3
- quote?: Quote;
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const PaymentForms_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
+ [$tada.fragmentRefs]: {
4
+ PaymentForm_QuoteFragment: "Quote";
5
+ };
6
+ }, {}, {
7
+ fragment: "PaymentForms_QuoteFragment";
8
+ on: "Quote";
9
+ masked: true;
10
+ }>;
11
+ export default function PaymentForms({ quote: maskedQuote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
12
+ quote?: FragmentOf<typeof PaymentForms_QuoteFragment>;
4
13
  handlePaymentSuccess: () => void;
5
14
  handleSubmit: (formData: FormData) => void;
6
15
  proceedingToPayment: boolean;
@@ -1,5 +1,5 @@
1
1
  import '../../styles/index.less';
2
- import { PriceList } from '@bunnyapp/common';
2
+ import PriceList from '@/types/PriceList';
3
3
  export default function PriceListDisplay({ priceListData }: {
4
4
  priceListData?: PriceList;
5
5
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +1,19 @@
1
- import { Subscription } from '@bunnyapp/common';
2
- export declare function AddonSubscriptionsCards({ onCancelSubscriptionClick, subscriptions, subscription, showInactive, }: {
3
- onCancelSubscriptionClick?: (subscription: Subscription) => void;
4
- subscriptions: Subscription[];
5
- subscription: Subscription;
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const AddonSubscriptionsCards_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
3
+ id: string;
4
+ state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
5
+ [$tada.fragmentRefs]: {
6
+ SubscriptionCardDesktop_SubscriptionFragment: "Subscription";
7
+ } & {
8
+ findAddonSubscriptions_SubscriptionFragment: "Subscription";
9
+ };
10
+ }, {}, {
11
+ fragment: "AddonSubscriptionsCards_SubscriptionFragment";
12
+ on: "Subscription";
13
+ masked: true;
14
+ }>;
15
+ export declare function AddonSubscriptionsCards({ subscriptions: maskedSubscriptions, subscription: maskedSubscription, showInactive, }: {
16
+ subscriptions: FragmentOf<typeof AddonSubscriptionsCards_SubscriptionFragment>[];
17
+ subscription: FragmentOf<typeof AddonSubscriptionsCards_SubscriptionFragment>;
6
18
  showInactive: boolean;
7
19
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +1,3 @@
1
- export declare const Subscriptions_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
2
- state: "TRIAL" | "ACTIVE" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
3
- }, {}, {
4
- fragment: "Subscriptions_SubscriptionFragment";
5
- on: "Subscription";
6
- masked: true;
7
- }>;
8
1
  declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, }: {
9
2
  handlePortalErrors?: (errors: any) => void;
10
3
  companyName: string;
@@ -1,12 +1,18 @@
1
- import { Subscription } from '@bunnyapp/common';
2
- import '../../styles/index.less';
3
- declare const SubscriptionsListContainer: ({ companyName, showInactive, onCancelSubscriptionClick, onChangePlanClick, noSubscriptionsComponent, subscriptions, subscriptionsAreLoading, }: {
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const SubscriptionsListContainer_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
3
+ [$tada.fragmentRefs]: {
4
+ SubscriptionsList_SubscriptionFragment: "Subscription";
5
+ };
6
+ }, {}, {
7
+ fragment: "SubscriptionsListContainer_SubscriptionFragment";
8
+ on: "Subscription";
9
+ masked: true;
10
+ }>;
11
+ declare const SubscriptionsListContainer: ({ companyName, showInactive, noSubscriptionsComponent, subscriptions: maskedSubscriptions, subscriptionsAreLoading, }: {
4
12
  companyName: string;
5
13
  showInactive?: boolean;
6
- onCancelSubscriptionClick?: (subscription: Subscription) => void;
7
- onChangePlanClick?: (subscription: Subscription) => void;
8
14
  noSubscriptionsComponent?: React.ReactNode;
9
- subscriptions: Subscription[];
15
+ subscriptions: FragmentOf<typeof SubscriptionsListContainer_SubscriptionFragment>[];
10
16
  subscriptionsAreLoading: boolean;
11
17
  }) => import("react/jsx-runtime").JSX.Element;
12
18
  export default SubscriptionsListContainer;
@@ -1,5 +1,5 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import { PriceList } from '@bunnyapp/common';
2
+ import PriceList from '@/types/PriceList';
3
3
  declare const NextPriceListButton: ({ availablePriceLists, priceListStart, setPriceListStart, numberOfPlansToDisplay, }: {
4
4
  availablePriceLists: PriceList[];
5
5
  numberOfPlansToDisplay: number;
@@ -1,4 +1,4 @@
1
- import { Subscription } from '@bunnyapp/common';
1
+ import Subscription from '@/types/Subscription';
2
2
  declare const PlanPicker: ({ onGoBack, areSubscriptionsLoading, subscriptions, }: {
3
3
  onGoBack?: () => void;
4
4
  areSubscriptionsLoading: boolean;
@@ -1,5 +1,8 @@
1
1
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
- import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
+ import PriceList from '@/types/PriceList';
3
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
4
+ import Product from '@/types/Product';
5
+ import Subscription from '@/types/Subscription';
3
6
  import { Dispatch, SetStateAction } from 'react';
4
7
  type PriceListGridProps = {
5
8
  availablePriceLists: PriceList[];
@@ -1,4 +1,4 @@
1
- import { PriceListCharge } from '@bunnyapp/common';
1
+ import { PriceListCharge } from '@/types/PriceListCharge';
2
2
  declare const CheckoutBarInput: ({ disabled, priceListCharge, quantity, onQuantityChanged, }: {
3
3
  disabled?: boolean;
4
4
  priceListCharge: PriceListCharge;
@@ -1,6 +1,19 @@
1
- import { PriceList } from '@bunnyapp/common';
2
- declare const CheckoutBarSummarySection: ({ open, selectedPriceList, onClickCheckout, }: {
3
- open: boolean;
1
+ import PriceList from '@/types/PriceList';
2
+ export declare const CheckoutBarSummarySection_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
+ quoteChanges: {
4
+ charges: {
5
+ id: string | null;
6
+ }[];
7
+ }[] | null;
8
+ [$tada.fragmentRefs]: {
9
+ CheckoutPrice_QuoteFragment: "Quote";
10
+ };
11
+ }, {}, {
12
+ fragment: "CheckoutBarSummarySection_QuoteFragment";
13
+ on: "Quote";
14
+ masked: true;
15
+ }>;
16
+ declare const CheckoutBarSummarySection: ({ selectedPriceList, onClickCheckout, }: {
4
17
  selectedPriceList: PriceList;
5
18
  onClickCheckout: () => void;
6
19
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- declare const CheckoutButton: ({ checkoutButtonDisabled, onClickCheckout, loading, tooltipText, }: {
2
- checkoutButtonDisabled: boolean;
1
+ declare const CheckoutButton: ({ disabled, onClickCheckout, loading, tooltipText, }: {
2
+ disabled: boolean;
3
3
  onClickCheckout: () => void;
4
4
  loading: boolean;
5
5
  tooltipText?: string;
@@ -1,7 +1,16 @@
1
- import { PriceList, Quote } from '@bunnyapp/common';
2
- declare const CheckoutPrice: ({ isUsage, quote, selectedPriceList, }: {
1
+ import PriceList from '@/types/PriceList';
2
+ import { FragmentOf } from 'gql.tada';
3
+ export declare const CheckoutPrice_QuoteFragment: import("gql.tada").TadaDocumentNode<{
4
+ periodAmount: number | null;
5
+ amountDue: number | null;
6
+ }, {}, {
7
+ fragment: "CheckoutPrice_QuoteFragment";
8
+ on: "Quote";
9
+ masked: true;
10
+ }>;
11
+ declare const CheckoutPrice: ({ isUsage, quote: maskedQuote, selectedPriceList, }: {
3
12
  isUsage: boolean;
4
- quote?: Quote;
13
+ quote?: FragmentOf<typeof CheckoutPrice_QuoteFragment>;
5
14
  selectedPriceList: PriceList;
6
15
  }) => import("react/jsx-runtime").JSX.Element | null;
7
16
  export default CheckoutPrice;
@@ -1,4 +1,4 @@
1
- import { PriceList } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
2
  export declare const PlanPickerCheckoutBar_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
3
  [$tada.fragmentRefs]: {
4
4
  Checkout_QuoteFragment: "Quote";
@@ -1,5 +1,5 @@
1
1
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
- import { Product } from '@bunnyapp/common';
2
+ import Product from '@/types/Product';
3
3
  type PeriodMonths = number;
4
4
  declare const BillingPeriodSelector: ({ availableBillingPeriods, onChangeBillingPeriod, products, selectedBillingPeriod, selectedProduct, onChangeProduct, }: {
5
5
  availableBillingPeriods?: PeriodMonths[];
@@ -1,4 +1,5 @@
1
- import { PriceList, Product } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import Product from '@/types/Product';
2
3
  declare const EverythingPlanFeatures: ({ displayPriceLists, selectedProduct, plansToDisplay, hideBorder, }: {
3
4
  displayPriceLists: PriceList[];
4
5
  plansToDisplay: number;
@@ -1,4 +1,5 @@
1
- import { Feature, PriceList } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import Feature from '@/types/Feature';
2
3
  export declare const PlanFeatures: ({ displayPriceLists, features, plansToDisplay, }: {
3
4
  displayPriceLists: PriceList[];
4
5
  plansToDisplay: number;
@@ -1,5 +1,8 @@
1
1
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
- import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
2
+ import PriceList from '@/types/PriceList';
3
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
4
+ import Product from '@/types/Product';
5
+ import Subscription from '@/types/Subscription';
3
6
  import { Dispatch, SetStateAction } from 'react';
4
7
  type PriceListGridDesktopProps = {
5
8
  availablePriceLists: PriceList[];
@@ -6,6 +6,8 @@ export declare const FeatureAddonsList_PriceListFragment: import("gql.tada").Tad
6
6
  id: string;
7
7
  name: string;
8
8
  featureAddon: boolean | null;
9
+ deprecated: boolean | null;
10
+ removeOnRenewal: boolean | null;
9
11
  [$tada.fragmentRefs]: {
10
12
  PricingTooltip_PriceListChargeFragment: "PriceListCharge";
11
13
  } & {
@@ -0,0 +1,9 @@
1
+ export declare const FeatureAddonRow_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ [$tada.fragmentRefs]: {
3
+ useQuoteUpdateFeatureAddon_QuoteFragment: "Quote";
4
+ };
5
+ }, {}, {
6
+ fragment: "FeatureAddonRow_QuoteFragment";
7
+ on: "Quote";
8
+ masked: true;
9
+ }>;
@@ -0,0 +1,8 @@
1
+ export declare const useQuoteUpdateFeatureAddon_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ id: string | null;
3
+ startDate: unknown;
4
+ }, {}, {
5
+ fragment: "useQuoteUpdateFeatureAddon_QuoteFragment";
6
+ on: "Quote";
7
+ masked: true;
8
+ }>;
@@ -0,0 +1,9 @@
1
+ import { PriceListCharge } from '@/types/PriceListCharge';
2
+ import { FragmentOf } from 'gql.tada';
3
+ import { useQuoteUpdateFeatureAddon_QuoteFragment } from '../fragments/useQuoteUpdateFeatureAddon_QuoteFragment';
4
+ export declare const useQuoteUpdateFeatureAddon: (maskedQuote: FragmentOf<typeof useQuoteUpdateFeatureAddon_QuoteFragment> | null | undefined, featureAddon: PriceListCharge) => {
5
+ handleAddFeatureAddon: () => void;
6
+ handleRemoveFeatureAddon: () => void;
7
+ isPending: boolean;
8
+ isChecked: boolean;
9
+ };
@@ -1,4 +1,3 @@
1
- import { QuoteCharge } from '@bunnyapp/common';
2
1
  type QuoteChangeCreateChargeProps = {
3
2
  apiHost: string;
4
3
  price?: number;
@@ -9,5 +8,16 @@ type QuoteChangeCreateChargeProps = {
9
8
  subscriptionChargeId?: string;
10
9
  token?: string;
11
10
  };
12
- declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<QuoteCharge>;
11
+ declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<{
12
+ quoteChange: {
13
+ id: string | null;
14
+ quoteId: string;
15
+ quote: {
16
+ [$tada.fragmentRefs]: {
17
+ QuoteContext_QuoteFragment: "Quote";
18
+ };
19
+ };
20
+ };
21
+ id: string | null;
22
+ } | null | undefined>;
13
23
  export default quoteChargeCreate;
@@ -1,7 +1,10 @@
1
- import { PriceList as DeprecatedPriceList, Feature, Subscription } from '@bunnyapp/common';
1
+ import DeprecatedPriceList from '@/types/PriceList';
2
+ import Feature from '@/types/Feature';
3
+ import Subscription from '@/types/Subscription';
2
4
  import { FragmentOf } from 'gql.tada';
3
5
  export declare const PriceListCardDesktop_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
6
  id: string;
7
+ deprecated: boolean | null;
5
8
  plan: {
6
9
  id: string;
7
10
  pricingStyle: "PRICED" | "FREE" | "CONTACT_US";
@@ -1,5 +1,6 @@
1
1
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
2
- import { PriceList, Subscription } from '@bunnyapp/common';
2
+ import PriceList from '@/types/PriceList';
3
+ import Subscription from '@/types/Subscription';
3
4
  type PlanAddonsCardProps = {
4
5
  selectedPriceList: PriceList;
5
6
  subscriptions: Subscription[];
@@ -1,10 +1,11 @@
1
- import { PriceList as DeprecatedPriceList } from '@bunnyapp/common';
1
+ import DeprecatedPriceList from '@/types/PriceList';
2
2
  import { FragmentOf } from 'gql.tada';
3
3
  export declare const AddonPlanRow_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
4
  id: string;
5
5
  plan: {
6
6
  description: string | null;
7
7
  name: string;
8
+ pricingDescription: string | null;
8
9
  } | null;
9
10
  [$tada.fragmentRefs]: {
10
11
  PriceListCardPriceDescription_PriceListFragment: "PriceList";
@@ -0,0 +1,9 @@
1
+ export declare const AddonPlanRow_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ [$tada.fragmentRefs]: {
3
+ useToggleAddonPlan_QuoteFragment: "Quote";
4
+ };
5
+ }, {}, {
6
+ fragment: "AddonPlanRow_QuoteFragment";
7
+ on: "Quote";
8
+ masked: true;
9
+ }>;
@@ -0,0 +1,13 @@
1
+ export declare const useToggleAddonPlan_QuoteFragment: import("gql.tada").TadaDocumentNode<{
2
+ quoteChanges: {
3
+ priceList: {
4
+ id: string;
5
+ } | null;
6
+ id: string | null;
7
+ }[] | null;
8
+ id: string | null;
9
+ }, {}, {
10
+ fragment: "useToggleAddonPlan_QuoteFragment";
11
+ on: "Quote";
12
+ masked: true;
13
+ }>;
@@ -0,0 +1,9 @@
1
+ import PriceList from '@/types/PriceList';
2
+ import { FragmentOf } from 'gql.tada';
3
+ import { useToggleAddonPlan_QuoteFragment } from '../fragments/useToggleAddonPlan_QuoteFragment';
4
+ export declare const useToggleAddonPlan: (maskedQuote: FragmentOf<typeof useToggleAddonPlan_QuoteFragment> | null | undefined, addonPriceListId: string, selectedPriceList: PriceList, setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>) => {
5
+ isPending: boolean;
6
+ addedQuoteChange: boolean;
7
+ deleteQuoteChange: () => void;
8
+ addAddonQuoteChange: () => void;
9
+ };
@@ -0,0 +1,18 @@
1
+ declare const quoteChangeCreate: ({ parentQuoteChangeId, priceListId, apiHost, token, quoteId, }: {
2
+ parentQuoteChangeId: string;
3
+ priceListId: string;
4
+ apiHost: string;
5
+ token?: string;
6
+ quoteId: string;
7
+ }) => Promise<{
8
+ errors: string[] | null;
9
+ quoteChange: {
10
+ id: string | null;
11
+ quote: {
12
+ [$tada.fragmentRefs]: {
13
+ QuoteContext_QuoteFragment: "Quote";
14
+ };
15
+ };
16
+ } | null;
17
+ } | null>;
18
+ export default quoteChangeCreate;
@@ -0,0 +1,15 @@
1
+ declare const quoteChangeDelete: ({ id, apiHost, token, }: {
2
+ id: string;
3
+ apiHost: string;
4
+ token?: string;
5
+ }) => Promise<{
6
+ errors: string[] | null;
7
+ quoteChange: {
8
+ quote: {
9
+ [$tada.fragmentRefs]: {
10
+ QuoteContext_QuoteFragment: "Quote";
11
+ };
12
+ };
13
+ } | null;
14
+ } | null>;
15
+ export default quoteChangeDelete;
@@ -1,12 +1,13 @@
1
- import { PlanFeature, PriceList } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import { PlanFeature } from '@/types/frontendTypes';
2
3
  export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
3
4
  availablePriceLists: PriceList[];
4
5
  }) => {
5
6
  plan: {
6
7
  planFeatures: PlanFeature[] | undefined;
7
8
  addon?: boolean;
8
- compatiblePlans?: import("@bunnyapp/common").Plan[];
9
- addonPlans?: import("@bunnyapp/common").Plan[];
9
+ compatiblePlans?: import("../../../../../types/Plan").Plan[];
10
+ addonPlans?: import("../../../../../types/Plan").Plan[];
10
11
  availableFrom?: string;
11
12
  availableTo?: string;
12
13
  basePrice?: number;
@@ -15,7 +16,7 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
15
16
  contactUsUrl?: string;
16
17
  createdAt: string;
17
18
  description?: string;
18
- features?: import("@bunnyapp/common").Feature[];
19
+ features?: import("../../../../../types/Feature").default[];
19
20
  id: string;
20
21
  internalNotes?: string;
21
22
  isAvailableNow?: boolean;
@@ -24,8 +25,8 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
24
25
  position: number;
25
26
  priceLists: PriceList[];
26
27
  pricingDescription?: string;
27
- pricingStyle: import("@bunnyapp/common").PricingStyle;
28
- product: import("@bunnyapp/common").Product;
28
+ pricingStyle: import("../../../../../types/Plan").PricingStyle;
29
+ product: import("../../../../../types/Product").default;
29
30
  productId: string;
30
31
  selfServiceBuy?: boolean;
31
32
  selfServiceCancel?: boolean;
@@ -34,10 +35,10 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
34
35
  updatedAt: string;
35
36
  };
36
37
  basePrice: number;
37
- charges: import("@bunnyapp/common").PriceListCharge[];
38
+ charges: import("../../../../../types/PriceListCharge").PriceListCharge[];
38
39
  code?: string;
39
40
  createdAt: string;
40
- currency?: import("@bunnyapp/common").Currency;
41
+ currency?: import("../../../../../types/Currency").default;
41
42
  currencyId: string;
42
43
  id: string;
43
44
  isVisible?: boolean;
@@ -45,20 +46,21 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
45
46
  name: string;
46
47
  periodMonths: 0 | 1 | 3 | 6 | 12;
47
48
  planId: string;
48
- priceAdjustmentAction?: import("@bunnyapp/common").PriceAdjustmentAction;
49
+ priceAdjustmentAction?: import("../../../../../enums/PriceAdjustmentAction").default;
49
50
  priceAdjustmentActionOptions?: string[];
50
51
  priceAdjustmentPercentage?: number;
51
- priceAdjustmentTiming?: import("@bunnyapp/common").PriceAdjustmentTiming;
52
+ priceAdjustmentTiming?: import("../../../../../enums/PriceAdjustmentTiming").default;
52
53
  priceAdjustmentTimingOptions?: string[];
53
54
  priceDescription?: string;
54
- product: import("@bunnyapp/common").Product;
55
+ product: import("../../../../../types/Product").default;
55
56
  productId?: string;
56
57
  renewalTermMonths?: number;
57
58
  showPriceAsMonthly?: boolean;
58
59
  sku?: string;
59
60
  trialAllowed: boolean;
60
- trialExpirationAction?: "ACTIVATE" | "CANCEL";
61
+ trialExpirationAction?: import("@/types/PriceList").TrialExpirationAction;
61
62
  trialLengthDays?: number;
62
63
  updatedAt: string;
63
- addonPlans?: import("@bunnyapp/common").Plan[];
64
+ addonPlans?: import("../../../../../types/Plan").Plan[];
65
+ deprecated?: boolean;
64
66
  }[];
@@ -1,5 +1,7 @@
1
- import { Feature, PriceList, Subscription } from '@bunnyapp/common';
2
1
  import { FragmentOf } from 'gql.tada';
2
+ import Feature from '@/types/Feature';
3
+ import Subscription from '@/types/Subscription';
4
+ import PriceList from '@/types/PriceList';
3
5
  export declare const PriceListCardMobile_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
6
  plan: {
5
7
  name: string;
@@ -1,4 +1,7 @@
1
- import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
3
+ import Product from '@/types/Product';
4
+ import Subscription from '@/types/Subscription';
2
5
  declare const PriceListGridMobile: ({ availablePriceLists, priceListChangeOptions, selectedPriceList, selectedProduct, subscriptions, trialRemainingDays, onClickPriceListCard, }: {
3
6
  availablePriceLists: PriceList[];
4
7
  priceListChangeOptions?: PriceListChangeOptions;
@@ -1,4 +1,5 @@
1
- import { PriceList, PriceListChangeOptions } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
2
3
  export declare const getAvailablePlansAndPriceLists: ({ availablePriceLists, priceListChangeOptions, priceListStart, plansToDisplay, }: {
3
4
  availablePriceLists: PriceList[];
4
5
  priceListChangeOptions?: PriceListChangeOptions;
@@ -1,4 +1,4 @@
1
- import { Feature } from '@bunnyapp/common';
1
+ import Feature from '@/types/Feature';
2
2
  import { FragmentOf } from 'gql.tada';
3
3
  export declare const PriceListCardPriceDescription_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
4
  plan: {
@@ -1,4 +1,5 @@
1
- import { PriceList as DeprecatedPriceList, Subscription } from '@bunnyapp/common';
1
+ import DeprecatedPriceList from '@/types/PriceList';
2
+ import Subscription from '@/types/Subscription';
2
3
  import { FragmentOf } from 'gql.tada';
3
4
  export declare const PriceListCard_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
5
  id: string;
@@ -1,4 +1,4 @@
1
- import { Subscription } from '@bunnyapp/common';
1
+ import Subscription from '@/types/Subscription';
2
2
  import { FragmentOf } from 'gql.tada';
3
3
  export declare const PriceListCardButton_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
4
  id: string;
@@ -12,6 +12,20 @@ export declare const PriceListCardButton_PriceListFragment: import("gql.tada").T
12
12
  on: "PriceList";
13
13
  masked: true;
14
14
  }>;
15
+ export declare const PriceListCardButtonUpgradingSubscription_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
16
+ plan: {
17
+ id: string;
18
+ } | null;
19
+ [$tada.fragmentRefs]: {
20
+ canSubscriptionUpgradeFromTrial_SubscriptionFragment: "Subscription";
21
+ } & {
22
+ canSubscriptionUpgradeFromTrialExpired_SubscriptionFragment: "Subscription";
23
+ };
24
+ }, {}, {
25
+ fragment: "PriceListCardButtonUpgradingSubscription_SubscriptionFragment";
26
+ on: "Subscription";
27
+ masked: true;
28
+ }>;
15
29
  declare const PriceListCardButton: ({ disableSelectCurrentPlan, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, }: {
16
30
  disableSelectCurrentPlan: boolean;
17
31
  isPriceListCurrentSubscription: boolean;
@@ -1,4 +1,4 @@
1
- import { PlanFeature } from '@bunnyapp/common';
1
+ import { PlanFeature } from '@/types/frontendTypes';
2
2
  declare const PriceListCardFeature: ({ index, planFeature, }: {
3
3
  index: number;
4
4
  planFeature: PlanFeature;
@@ -1,4 +1,6 @@
1
- import { PriceList, PriceListCharge, Subscription } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
+ import { PriceListCharge } from '@/types/PriceListCharge';
3
+ import Subscription from '@/types/Subscription';
2
4
  export declare const createPlanDescription: (planDescription: string) => string;
3
5
  export declare const getActivePlanPriceData: (priceList?: PriceList, selectedPriceList?: PriceList) => {
4
6
  activeCharge: PriceListCharge | undefined;
@@ -1,4 +1,19 @@
1
- import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
1
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
2
+ import Subscription from '@/types/Subscription';
3
+ export declare const PriceListSelectorUpgradingSubscription_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
4
+ priceList: {
5
+ id: string;
6
+ periodMonths: number | null;
7
+ plan: {
8
+ id: string;
9
+ addon: boolean | null;
10
+ } | null;
11
+ } | null;
12
+ }, {}, {
13
+ fragment: "PriceListSelectorUpgradingSubscription_SubscriptionFragment";
14
+ on: "Subscription";
15
+ masked: true;
16
+ }>;
2
17
  declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, priceListChangeOptions, subscriptions, onGoBack, }: {
3
18
  arePlanChangeOptionsLoading: boolean;
4
19
  areSubscriptionsLoading: boolean;