@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,6 @@
1
+ declare enum ChargeType {
2
+ USAGE = "USAGE",
3
+ ONE_TIME = "ONE_TIME",
4
+ RECURRING = "RECURRING"
5
+ }
6
+ export default ChargeType;
@@ -0,0 +1,16 @@
1
+ declare enum ColumnFormat {
2
+ "currency-major" = "currency-major",
3
+ "currency-round" = "currency-round",
4
+ boolean = "boolean",
5
+ currency = "currency",
6
+ date = "date",
7
+ dateFromNow = "dateFromNow",
8
+ datetime = "datetime",
9
+ hidden = "hidden",
10
+ humanize = "humanize",
11
+ numeric = "numeric",
12
+ percentage = "percentage",
13
+ relation = "relation",
14
+ tag = "tag"
15
+ }
16
+ export default ColumnFormat;
@@ -0,0 +1,8 @@
1
+ declare enum CreditNoteState {
2
+ PREPARING = "PREPARING",
3
+ DRAFT = "DRAFT",
4
+ READY = "READY",
5
+ PARTIALLY_APPLIED = "PARTIALLY_APPLIED",
6
+ APPLIED = "APPLIED"
7
+ }
8
+ export default CreditNoteState;
@@ -0,0 +1,6 @@
1
+ declare enum PriceAdjustmentAction {
2
+ NO_CHANGE = "NO_CHANGE",
3
+ PERCENTAGE = "PERCENTAGE",
4
+ CATALOG = "CATALOG"
5
+ }
6
+ export default PriceAdjustmentAction;
@@ -0,0 +1,16 @@
1
+ declare enum PriceAdjustmentTiming {
2
+ AT_RENEWAL = "AT_RENEWAL",
3
+ JANUARY = "JANUARY",
4
+ FEBRUARY = "FEBRUARY",
5
+ MARCH = "MARCH",
6
+ APRIL = "APRIL",
7
+ MAY = "MAY",
8
+ JUNE = "JUNE",
9
+ JULY = "JULY",
10
+ AUGUST = "AUGUST",
11
+ SEPTEMBER = "SEPTEMBER",
12
+ OCTOBER = "OCTOBER",
13
+ NOVEMBER = "NOVEMBER",
14
+ DECEMBER = "DECEMBER"
15
+ }
16
+ export default PriceAdjustmentTiming;
@@ -0,0 +1,16 @@
1
+ declare enum QuoteChangeKind {
2
+ ADJUSTMENT = "ADJUSTMENT",
3
+ COUPON = "COUPON",
4
+ CREDIT = "CREDIT",
5
+ DISCOUNT = "DISCOUNT",
6
+ FREE_PERIOD_DISCOUNT = "FREE_PERIOD_DISCOUNT",
7
+ PRICE_UPDATE = "PRICE_UPDATE",
8
+ QUANTITY_UPDATE = "QUANTITY_UPDATE",
9
+ REINSTATE = "REINSTATE",
10
+ RENEW = "RENEW",
11
+ SUBSCRIBE = "SUBSCRIBE",
12
+ UNSUBSCRIBE = "UNSUBSCRIBE",
13
+ UPDATE = "UPDATE",
14
+ ACTIVATE = "ACTIVATE"
15
+ }
16
+ export default QuoteChangeKind;
@@ -0,0 +1,14 @@
1
+ declare enum TransactionState {
2
+ not_due = "not_due",
3
+ due = "due",
4
+ unpaid = "unpaid",
5
+ paid = "paid",
6
+ voided = "voided",
7
+ ready = "ready",
8
+ failed = "failed",
9
+ preparing = "preparing",
10
+ unapplied = "unapplied",
11
+ partially_applied = "partially_applied",
12
+ applied = "applied"
13
+ }
14
+ export default TransactionState;
@@ -1,4 +1,7 @@
1
- import { Payment, Invoice, Transaction, PaymentApplication } from '@bunnyapp/common';
1
+ import Payment from '@/types/Payment';
2
+ import Invoice from '@/types/Invoice';
3
+ import { Transaction } from '@/types/Transaction';
4
+ import PaymentApplication from '@/types/PaymentApplication';
2
5
  export type CheckoutResponse = {
3
6
  invoice: Invoice;
4
7
  payment: Payment;
@@ -6,8 +9,8 @@ export type CheckoutResponse = {
6
9
  transaction: Transaction;
7
10
  };
8
11
  declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodData, token, apiHost, }: {
9
- quoteId?: string;
10
- invoiceId?: string;
12
+ quoteId?: string | null;
13
+ invoiceId?: string | null;
11
14
  paymentMethodId?: string;
12
15
  paymentMethodData?: {
13
16
  token: string;
@@ -1,4 +1,4 @@
1
- import { Quote } from '@bunnyapp/common';
1
+ import { Quote } from '@/types/Quote';
2
2
  declare const quoteChangeAddCoupon: ({ quoteChangeId, couponCode, token, apiHost, }: {
3
3
  quoteChangeId: string;
4
4
  couponCode: string;
@@ -1,4 +1,4 @@
1
- import { Quote } from '@bunnyapp/common';
1
+ import { Quote } from '@/types/Quote';
2
2
  declare const quoteChangeRemoveCoupon: ({ quoteChangeId, couponCode, token, apiHost, }: {
3
3
  quoteChangeId: string;
4
4
  couponCode: string;
@@ -1,4 +1,4 @@
1
- import { Quote } from '@bunnyapp/common';
1
+ import { Quote } from '@/types/Quote';
2
2
  type Options = {
3
3
  quoteId?: string;
4
4
  priceListId?: string;
@@ -1,4 +1,4 @@
1
- import { Quote } from '@bunnyapp/common';
1
+ import { Quote } from '@/types/Quote';
2
2
  type Options = {
3
3
  attributes: any;
4
4
  token?: string;
@@ -1,4 +1,4 @@
1
- import { Quote } from '@bunnyapp/common';
1
+ import { Quote } from '@/types/Quote';
2
2
  type Options = {
3
3
  dealAttributes: any;
4
4
  quoteAttributes: any;
@@ -0,0 +1,6 @@
1
+ declare const getAccount: ({ id, apiHost, token, }: {
2
+ id: string;
3
+ apiHost: string;
4
+ token?: string;
5
+ }) => Promise<any>;
6
+ export default getAccount;
@@ -1,4 +1,4 @@
1
- import { FormattedInvoice } from '@bunnyapp/common';
1
+ import FormattedInvoice from '@/types/FormattedInvoice';
2
2
  declare const getFormattedInvoice: ({ id, token, apiHost, }: {
3
3
  id?: string;
4
4
  apiHost: string;
@@ -14,7 +14,7 @@ declare const getFormattedQuote: ({ token, apiHost, id, }: {
14
14
  }[] | null;
15
15
  firstInvoice: {
16
16
  id: string | null;
17
- state: "FAILED" | "DRAFT" | "NOT_DUE" | "DUE" | "UNPAID" | "PAID" | "VOIDED" | "READY" | "PREPARING" | "PROCESSING_PAYMENT" | "MERGED" | "QUEUED" | "CONSOLIDATED";
17
+ state: "READY" | "NOT_DUE" | "DUE" | "UNPAID" | "DRAFT" | "PREPARING" | "PAID" | "VOIDED" | "FAILED" | "PROCESSING_PAYMENT" | "MERGED" | "QUEUED" | "CONSOLIDATED";
18
18
  } | null;
19
19
  payableId: string | null;
20
20
  id: string | null;
@@ -34,7 +34,7 @@ declare const getFormattedQuote: ({ token, apiHost, id, }: {
34
34
  lastSuccess: unknown;
35
35
  paymentType: "ach" | "card" | "other" | "wire" | null;
36
36
  pluginId: string | null;
37
- state: "UNKNOWN" | "SUCCESS" | "FAILED" | null;
37
+ state: "FAILED" | "UNKNOWN" | "SUCCESS" | null;
38
38
  updatedAt: unknown;
39
39
  metadata: {
40
40
  description: string | null;
@@ -134,11 +134,18 @@ declare const getFormattedQuote: ({ token, apiHost, id, }: {
134
134
  salesContactEmail: string | null;
135
135
  sharedAt: unknown;
136
136
  startDate: unknown;
137
- state: "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "APPROVED" | "REJECTED" | "UNDONE";
137
+ state: "APPROVED" | "REJECTED" | "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "UNDONE";
138
138
  subtotal: number;
139
139
  taxAmount: number;
140
140
  taxNumberLabel: string | null;
141
141
  taxNumberRequired: boolean | null;
142
142
  vendorName: string | null;
143
+ [$tada.fragmentRefs]: {
144
+ PaymentHoldModal_FormattedQuoteFragment: "FormattedQuote";
145
+ } & {
146
+ AcceptQuoteModal_FormattedQuoteFragment: "FormattedQuote";
147
+ } & {
148
+ QuoteButtons_FormattedQuoteFragment: "FormattedQuote";
149
+ };
143
150
  }>;
144
151
  export default getFormattedQuote;
@@ -1,4 +1,4 @@
1
- import { PriceList } from '@bunnyapp/common';
1
+ import PriceList from '@/types/PriceList';
2
2
  declare const getPriceList: ({ token, code, apiHost, }: {
3
3
  token?: string;
4
4
  code: string;
@@ -1,4 +1,4 @@
1
- import { PriceListChangeOptions } from '@bunnyapp/common';
1
+ import PriceListChangeOptions from '@/types/PriceListChangeOptions';
2
2
  declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, token, subscriptionId, productId, }: {
3
3
  apiHost: string;
4
4
  isInPreviewMode?: boolean;
@@ -1,4 +1,4 @@
1
- import { TaxationRequiredAccountFields } from '@bunnyapp/common';
1
+ import TaxationRequiredAccountFields from '@/types/TaxationRequiredAccountFields';
2
2
  declare const getTaxationRequiredAccountFields: ({ apiHost, token, }: {
3
3
  apiHost: string;
4
4
  token?: string;
@@ -1,3 +1,3 @@
1
- import { Transaction } from '@bunnyapp/common';
1
+ import { Transaction } from '@/types/Transaction';
2
2
  declare const getTransactions: (filter: string, apiHost: string, token?: string) => Promise<Transaction[]>;
3
3
  export default getTransactions;
@@ -4,3 +4,6 @@ export type PricingModel = ReturnType<typeof graphql.scalar<'PricingModel'>>;
4
4
  export type BillingPeriod = ReturnType<typeof graphql.scalar<'BillingPeriod'>>;
5
5
  export type PlanPricingStyles = ReturnType<typeof graphql.scalar<'PlanPricingStyles'>>;
6
6
  export type ChargeType = ReturnType<typeof graphql.scalar<'ChargeType'>>;
7
+ export type SubscriptionState = ReturnType<typeof graphql.scalar<'SubscriptionState'>>;
8
+ export type HistogramDataInterval = ReturnType<typeof graphql.scalar<'HistogramDataIntervalEnum'>>;
9
+ export type PriceTier = ReturnType<typeof graphql.scalar<'SubscriptionPriceTier'>>;
@@ -1,6 +1,6 @@
1
- import { currentUser as CurrentUser } from '@bunnyapp/common';
1
+ import CurrentUser from '@/types/frontendTypes/currentUser';
2
2
  declare const useCurrentUserData: (token: string | undefined) => {
3
- currentUser: {
3
+ currentUser: CurrentUser | {
4
4
  authObjectName: string | null;
5
5
  account: {
6
6
  billingCountry: string | null;
@@ -12,7 +12,7 @@ declare const useCurrentUserData: (token: string | undefined) => {
12
12
  privacyUrl: string | null;
13
13
  termsUrl: string | null;
14
14
  entityId: string | null;
15
- } | CurrentUser;
15
+ };
16
16
  isCurrentUserDataLoading: boolean;
17
17
  };
18
18
  export default useCurrentUserData;
@@ -1,4 +1,4 @@
1
- declare const useHasTaxPlugin: ({ apiHost, token, }: {
1
+ declare const useHasTaxPlugin: ({ apiHost, token }: {
2
2
  apiHost: string;
3
3
  token?: string;
4
4
  }) => boolean;
@@ -11,7 +11,7 @@ export declare const usePaymentMethod: ({ accountId, enabled, }: {
11
11
  guid: string;
12
12
  id: string;
13
13
  } | null;
14
- state: "UNKNOWN" | "SUCCESS" | "FAILED" | null;
14
+ state: "FAILED" | "UNKNOWN" | "SUCCESS" | null;
15
15
  metadata: {
16
16
  issuer: string | null;
17
17
  identifier: string | null;
@@ -34,7 +34,7 @@ export declare const usePaymentMethod: ({ accountId, enabled, }: {
34
34
  guid: string;
35
35
  id: string;
36
36
  } | null;
37
- state: "UNKNOWN" | "SUCCESS" | "FAILED" | null;
37
+ state: "FAILED" | "UNKNOWN" | "SUCCESS" | null;
38
38
  metadata: {
39
39
  issuer: string | null;
40
40
  identifier: string | null;
@@ -1,5 +1,5 @@
1
- import { PluginData } from "@bunnyapp/common";
2
- export declare const useSigningPlugins: ({ apiHost, token, }: {
1
+ import { PluginData } from '@/types/frontendTypes';
2
+ export declare const useSigningPlugins: ({ apiHost, token }: {
3
3
  apiHost: string;
4
4
  token?: string;
5
5
  }) => PluginData[] | undefined;
@@ -5,8 +5,8 @@ declare const useUpdateCoupons: ({ apiHost, token, quoteChangeId, onCouponAdded,
5
5
  onCouponAdded?: () => void;
6
6
  onCouponRemoved?: () => void;
7
7
  }) => {
8
- addCoupon: import("@tanstack/react-query").UseMutateFunction<import("@bunnyapp/common").Quote, any, string, unknown>;
9
- removeCoupon: import("@tanstack/react-query").UseMutateFunction<import("@bunnyapp/common").Quote, any, string, unknown>;
8
+ addCoupon: import("@tanstack/react-query").UseMutateFunction<import("../types/Quote").Quote, any, string, unknown>;
9
+ removeCoupon: import("@tanstack/react-query").UseMutateFunction<import("../types/Quote").Quote, any, string, unknown>;
10
10
  isAddingCoupon: boolean;
11
11
  isRemovingCoupon: boolean;
12
12
  activeCouponsExist: boolean;
@@ -0,0 +1,73 @@
1
+ import AccountType from "./AccountType";
2
+ import Currency from "./Currency";
3
+ import Deal from "./Deal";
4
+ import Contact from "./Contact";
5
+ import Subscription from "./Subscription";
6
+ import User from "./User";
7
+ import { Transaction } from "./Transaction";
8
+ import AccountBalance from "./AccountBalance";
9
+ import Entity from "./Entity";
10
+ import Invoice from "./Invoice";
11
+ export type PayingStatus = "CURRENT" | "PAST_DUE" | "SUSPENDED" | "INACTIVE";
12
+ type Account = {
13
+ id: string;
14
+ code?: string;
15
+ timezone?: string;
16
+ accountTypeId: string;
17
+ industryId?: string;
18
+ employees?: Number;
19
+ annualRevenue?: Number;
20
+ name: string;
21
+ billingStreet?: string;
22
+ billingCity?: string;
23
+ billingState?: string;
24
+ billingZip?: string;
25
+ billingCountry?: string;
26
+ billingContactId?: string;
27
+ shippingStreet?: string;
28
+ shippingCity?: string;
29
+ shippingState?: string;
30
+ shippingZip?: string;
31
+ shippingCountry?: string;
32
+ description?: string;
33
+ createdAt: string;
34
+ updatedAt: string;
35
+ phone?: string;
36
+ fax?: string;
37
+ website?: string;
38
+ currencyId?: string;
39
+ taxNumber?: string;
40
+ groupId?: string;
41
+ billingDay?: Number;
42
+ netPaymentDays?: Number;
43
+ duns?: string;
44
+ ownerUserId?: string;
45
+ dealDefaults?: Deal;
46
+ accountType: AccountType;
47
+ currency?: Currency;
48
+ contacts?: Contact[];
49
+ deals?: Deal[];
50
+ subscriptions?: Subscription[];
51
+ owner?: User;
52
+ transactions?: Transaction[];
53
+ balances: AccountBalance[];
54
+ billingContact?: Contact;
55
+ entityUseCode?: string;
56
+ addressValidated: boolean;
57
+ arr?: number;
58
+ mrr?: number;
59
+ mur?: number;
60
+ draftInvoices: boolean;
61
+ emailsEnabled: boolean;
62
+ entity?: Entity;
63
+ entityId?: string;
64
+ invoiceTemplateId?: string;
65
+ invoices?: Invoice[];
66
+ linkedinUrl?: string;
67
+ newQuoteBuilder: boolean;
68
+ payingStatus?: PayingStatus;
69
+ secondaryBillingContactIds?: string[];
70
+ secondaryBillingContacts?: Contact[];
71
+ taxNumberValidated?: boolean;
72
+ };
73
+ export default Account;
@@ -0,0 +1,6 @@
1
+ type AccountBalance = {
2
+ id: Number;
3
+ balance: Number;
4
+ currencyId: string;
5
+ };
6
+ export default AccountBalance;
@@ -0,0 +1,7 @@
1
+ type AccountType = {
2
+ id: string;
3
+ name: string;
4
+ created_at: string;
5
+ updated_at: string;
6
+ };
7
+ export default AccountType;
@@ -0,0 +1,13 @@
1
+ import ApprovalRequest from "./ApprovalRequest";
2
+ import { ApprovalRequestState } from "./ApprovalRequest";
3
+ import Approver from "./Approver";
4
+ type ApprovalDecision = {
5
+ id?: string;
6
+ approvalRequestId: string;
7
+ approvalRequest: ApprovalRequest;
8
+ approverId: string;
9
+ approver: Approver;
10
+ notes?: string;
11
+ state: ApprovalRequestState;
12
+ };
13
+ export default ApprovalDecision;
@@ -0,0 +1,18 @@
1
+ import ApprovalDecision from "./ApprovalDecision";
2
+ import ApprovalRule from "./ApprovalRule";
3
+ import Approver from "./Approver";
4
+ import { Quote } from "./Quote";
5
+ export type ApprovalRequestState = "PENDING" | "APPROVED" | "REJECTED";
6
+ type ApprovalRequest = {
7
+ approvers: Approver[];
8
+ approvalDecisions: ApprovalDecision[];
9
+ id?: string;
10
+ quoteId: string;
11
+ quote: Quote;
12
+ state: ApprovalRequestState;
13
+ totalApprovers: number;
14
+ totalApprovals: number;
15
+ totalRejections: number;
16
+ triggeredApprovalRules: ApprovalRule[];
17
+ };
18
+ export default ApprovalRequest;
@@ -0,0 +1,15 @@
1
+ import Approver from "./Approver";
2
+ interface ApprovalRule {
3
+ id?: string;
4
+ name?: string;
5
+ active?: boolean;
6
+ fromDate?: string;
7
+ toDate?: string;
8
+ approverId?: string;
9
+ approver?: Approver;
10
+ totalQuoteAmount?: number;
11
+ totalQuoteAmountEnabled: boolean;
12
+ overallQuoteDiscount?: number;
13
+ overallQuoteDiscountEnabled: boolean;
14
+ }
15
+ export default ApprovalRule;
@@ -0,0 +1,10 @@
1
+ import User from "./User";
2
+ import ApprovalRule from "./ApprovalRule";
3
+ interface Approver {
4
+ id: string;
5
+ name?: string;
6
+ userId: string;
7
+ user?: User;
8
+ approvalRules?: ApprovalRule[];
9
+ }
10
+ export default Approver;
@@ -0,0 +1,13 @@
1
+ import User from "./User";
2
+ type Campaign = {
3
+ id: string;
4
+ name?: string;
5
+ code?: string;
6
+ ownerUserId?: string;
7
+ startDate?: string;
8
+ endDate?: string;
9
+ owner?: User;
10
+ leadCount: number;
11
+ contactCount: number;
12
+ };
13
+ export default Campaign;
@@ -0,0 +1,27 @@
1
+ import Account from "./Account";
2
+ import Campaign from "./Campaign";
3
+ type Contact = {
4
+ id: string;
5
+ code?: string;
6
+ accountId?: string;
7
+ firstName: string;
8
+ lastName?: string;
9
+ fullName: string;
10
+ salutation?: string;
11
+ title?: string;
12
+ phone?: string;
13
+ mobile?: string;
14
+ email?: string;
15
+ mailingStreet?: string;
16
+ mailingCity?: string;
17
+ mailingZip?: string;
18
+ mailingState?: string;
19
+ mailingCountry?: string;
20
+ portalAccess?: boolean;
21
+ createdAt: string;
22
+ updatedAt?: string;
23
+ description?: string;
24
+ account?: Account;
25
+ campaigns: Campaign[];
26
+ };
27
+ export default Contact;
@@ -0,0 +1,19 @@
1
+ export type DiscountKind = "PERCENTAGE" | "AMOUNT";
2
+ type Coupon = {
3
+ id?: string;
4
+ name?: string;
5
+ couponCode?: string;
6
+ description?: string;
7
+ active?: boolean;
8
+ discountKind?: DiscountKind;
9
+ discountAmount?: number;
10
+ discountPercentage?: number;
11
+ currencyId?: string;
12
+ redemptionsMax?: number;
13
+ redemptionsCount?: number;
14
+ redemptionEndDate?: string;
15
+ planId?: string;
16
+ createdAt?: string;
17
+ updatedAt?: string;
18
+ };
19
+ export default Coupon;
@@ -0,0 +1,45 @@
1
+ import Account from './Account';
2
+ import Invoice from './Invoice';
3
+ import DisputeReason from './DisputeReason';
4
+ import Entity from './Entity';
5
+ import CreditNoteItem from './CreditNoteItem';
6
+ import InvoiceConnection from './InvoiceConnection';
7
+ import CreditNoteState from '@/enums/CreditNoteState';
8
+ export type CreditNoteKind = 'REFUND' | 'WRITE_OFF';
9
+ type CreditNote = {
10
+ account: Account;
11
+ accountId: string;
12
+ amount: number;
13
+ amountApplied: number;
14
+ amountUnapplied: number;
15
+ appliedToInvoices?: InvoiceConnection;
16
+ createdAt: string;
17
+ created_at: string;
18
+ creditNoteItems?: CreditNoteItem[];
19
+ creditedInvoice?: Invoice;
20
+ creditedInvoiceId?: string;
21
+ currency: string;
22
+ currencyId: string;
23
+ description: string;
24
+ disputeReason?: DisputeReason;
25
+ disputeReasonId?: string;
26
+ entity: Entity;
27
+ entityId: string;
28
+ id: string;
29
+ invoice?: Invoice;
30
+ invoiceId?: string;
31
+ isCredit: boolean;
32
+ isLegacy: boolean;
33
+ issuedAt?: string;
34
+ kind: CreditNoteKind;
35
+ notes?: string;
36
+ number?: string;
37
+ operations: string[];
38
+ state: CreditNoteState;
39
+ subtotal: number;
40
+ taxAmount: number;
41
+ updatedAt: string;
42
+ uuid: string;
43
+ warrenId: string;
44
+ };
45
+ export default CreditNote;
@@ -0,0 +1,20 @@
1
+ import InvoiceItem from "./InvoiceItem";
2
+ import PriceTier from "./PriceTier";
3
+ type CreditNoteItem = {
4
+ id: string;
5
+ amount: number;
6
+ currencyId: string;
7
+ invoiceItem?: InvoiceItem;
8
+ invoiceItemId?: string;
9
+ lineText?: string;
10
+ position?: number;
11
+ price: number;
12
+ priceDecimals: number;
13
+ priceTiers?: PriceTier[];
14
+ quantity?: number;
15
+ subtotal: number;
16
+ taxAmount?: number;
17
+ taxCode?: string;
18
+ vatCode?: string;
19
+ };
20
+ export default CreditNoteItem;
@@ -0,0 +1,11 @@
1
+ type Currency = {
2
+ id: string;
3
+ enabled: boolean;
4
+ priority: number;
5
+ name: string;
6
+ isoCode: string;
7
+ isoNumeric: string;
8
+ symbol: string;
9
+ symbolFirst: boolean;
10
+ };
11
+ export default Currency;
@@ -0,0 +1,38 @@
1
+ import { Quote } from "./Quote";
2
+ import Account from "./Account";
3
+ import User from "./User";
4
+ import Contact from "./Contact";
5
+ import Currency from "./Currency";
6
+ import DealStage from "./DealStage";
7
+ type Kind = "NEW" | "EXISTING";
8
+ type Origin = "SALES" | "PORTAL" | "SIGNUP" | "OTHER";
9
+ type Deal = {
10
+ id: string;
11
+ code?: string;
12
+ accountId?: string;
13
+ currencyId?: string;
14
+ name: string;
15
+ ownerUserId?: string;
16
+ amount?: number;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ probability?: number;
20
+ description?: string;
21
+ closeDate?: string;
22
+ kind?: Kind;
23
+ dealStageId: string;
24
+ stageDescription?: string;
25
+ leadSourceId?: string;
26
+ contactId?: string;
27
+ notForRevenue?: boolean;
28
+ quoteDefaults?: Quote;
29
+ viaPortal?: boolean;
30
+ origin?: Origin;
31
+ account?: Account;
32
+ owner?: User;
33
+ contact?: Contact;
34
+ currency?: Currency;
35
+ dealStage: DealStage;
36
+ quotes?: Quote[];
37
+ };
38
+ export default Deal;
@@ -0,0 +1,12 @@
1
+ type Kind = "OPEN" | "CLOSED_WON" | "CLOSED_LOST";
2
+ type DealStage = {
3
+ id: number;
4
+ position: number;
5
+ name?: string;
6
+ kind?: Kind;
7
+ probability?: string;
8
+ description?: string;
9
+ createdAt: string;
10
+ updatedAt: string;
11
+ };
12
+ export default DealStage;