@bunnyapp/components 1.7.0 → 1.8.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +9524 -6746
- package/dist/cjs/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
- package/dist/cjs/types/src/UI/Tooltip.d.ts +2 -0
- package/dist/cjs/types/src/UI/TruncatedText/TruncatedText.d.ts +4 -0
- package/dist/cjs/types/src/UI/TruncatedText/hooks/useIsTextTruncated.d.ts +3 -0
- package/dist/cjs/types/src/components/BillingDetails/BillingDetails.d.ts +3 -2
- package/dist/cjs/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +1 -0
- package/dist/cjs/types/src/components/{BunnyProvider.d.ts → BunnyProvider/BunnyProvider.d.ts} +4 -1
- package/dist/cjs/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +13 -0
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +3 -2
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +24 -3
- package/dist/cjs/types/src/components/Checkout/QuoteIsLoadingIndicator.d.ts +1 -0
- package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +8 -2
- package/dist/cjs/types/src/components/FeatureUsageGraph.d.ts +31 -4
- package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +3 -2
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +5 -2
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +5 -3
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +26 -4
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +5 -2
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +5 -3
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -2
- package/dist/cjs/types/src/components/PaymentForm/components/CouponEditor.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +23 -4
- package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +19 -3
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +2 -1
- package/dist/cjs/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +4 -1
- package/dist/cjs/types/src/components/PaymentForm/types/PaymentFormTypes.d.ts +1 -1
- package/dist/cjs/types/src/components/Quote/Quote.d.ts +3 -1
- package/dist/cjs/types/src/components/Quote/components/AcceptQuoteModal.d.ts +19 -0
- package/dist/cjs/types/src/components/Quote/components/NoSigningPluginsForm.d.ts +17 -0
- package/dist/cjs/types/src/components/Quote/components/PaymentHoldModal.d.ts +25 -0
- package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +27 -0
- package/dist/cjs/types/src/components/QuoteProvider/context/QuoteContext.d.ts +2 -1
- package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +32 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +4 -4
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useIsFetchingQuote.d.ts +4 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuantityEditableCharges.d.ts +70 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -1
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +29 -5
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +37 -0
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeCreate.d.ts +23 -0
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +12 -0
- package/dist/cjs/types/src/components/QuoteProvider/quoteMutationKeys.d.ts +20 -0
- package/dist/cjs/types/src/components/Quotes/Quotes.d.ts +1 -1
- package/dist/cjs/types/src/components/Signup/CheckoutSummary.d.ts +41 -5
- package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +12 -3
- package/dist/cjs/types/src/components/Signup/PriceListDisplay.d.ts +18 -4
- package/dist/cjs/types/src/components/Signup/Signup.d.ts +0 -1
- package/dist/cjs/types/src/components/Signup/components/SelfServiceBuyWarning.d.ts +14 -0
- package/dist/cjs/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +17 -0
- package/dist/cjs/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +17 -0
- package/dist/cjs/types/src/components/Signup/mutations/accountSignup.d.ts +58 -0
- package/dist/cjs/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +31 -0
- package/dist/{esm/types/src/graphql → cjs/types/src/components/Signup}/mutations/quoteRecalculateTaxes.d.ts +5 -1
- package/dist/{esm/types/src/graphql → cjs/types/src/components/Signup}/queries/getPriceList.d.ts +5 -2
- package/dist/cjs/types/src/components/Signup/queries/getQuote.d.ts +10 -0
- package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +17 -6
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +4 -8
- package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +12 -6
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +4 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +21 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/hooks/useChargeCRUD.d.ts +31 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +9 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +10 -15
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_QuoteFragment.d.ts +20 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +4 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +0 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +2 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +4 -17
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +15 -13
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +4 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerUtils.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +13 -6
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +15 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardDescription.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +2 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +16 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/utils/createAvailableBillingPeriods.d.ts +16 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +12 -7
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/contexts/DefaultBillingPeriodContext.d.ts +4 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +175 -0
- package/dist/cjs/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +14 -0
- package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +58 -0
- package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +4 -0
- package/dist/cjs/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +17 -0
- package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +32 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +3 -4
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +4 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +197 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +15 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +23 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +22 -5
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +23 -5
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +39 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +30 -5
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -5
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +20 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +19 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +31 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +74 -9
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +9 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +14 -2
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +15 -5
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -4
- package/dist/cjs/types/src/components/TaxationForm.d.ts +1 -1
- package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +2 -1
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +1 -1
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
- package/dist/cjs/types/src/components/Transactions/transactionsList/utils.d.ts +1 -1
- package/dist/cjs/types/src/components/index.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +6 -5
- package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +2 -1
- package/dist/cjs/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +10 -3
- package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +1 -1
- package/dist/cjs/types/src/consts/AppConsts.d.ts +13 -0
- package/dist/cjs/types/src/consts/DefaultBranding.d.ts +4 -0
- package/dist/cjs/types/src/consts/Lists.d.ts +4 -0
- package/dist/cjs/types/src/consts/StyleConsts.d.ts +58 -0
- package/dist/cjs/types/src/consts/index.d.ts +4 -0
- package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +4 -1
- package/dist/cjs/types/src/contexts/TransactionsListContext.d.ts +2 -1
- package/dist/cjs/types/src/contexts/onPaymentMethodRemoved.d.ts +5 -0
- package/dist/cjs/types/src/contexts/onPaymentMethodSaved.d.ts +5 -0
- package/dist/cjs/types/src/enums/ChargeType.d.ts +6 -0
- package/dist/cjs/types/src/enums/ColumnFormat.d.ts +16 -0
- package/dist/cjs/types/src/enums/CreditNoteState.d.ts +8 -0
- package/dist/cjs/types/src/enums/PriceAdjustmentAction.d.ts +6 -0
- package/dist/cjs/types/src/enums/PriceAdjustmentTiming.d.ts +16 -0
- package/dist/cjs/types/src/enums/QuoteChangeKind.d.ts +16 -0
- package/dist/cjs/types/src/enums/TransactionState.d.ts +14 -0
- package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +6 -3
- package/dist/cjs/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +1 -1
- package/dist/cjs/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +1 -1
- package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +1 -1
- package/dist/cjs/types/src/graphql/mutations/quoteCreate.d.ts +1 -1
- package/dist/cjs/types/src/graphql/mutations/quoteCreateWithDeal.d.ts +1 -1
- package/dist/cjs/types/src/graphql/queries/getAccount.d.ts +6 -0
- package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
- package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +10 -3
- package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
- package/dist/cjs/types/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
- package/dist/cjs/types/src/graphql/queries/getTransactions.d.ts +1 -1
- package/dist/cjs/types/src/graphql-codegen/exportedScalarTypes.d.ts +3 -0
- package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +5 -1
- package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +3 -3
- package/dist/cjs/types/src/hooks/useHasTaxPlugin.d.ts +1 -1
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +2 -2
- package/dist/cjs/types/src/hooks/useSigningPlugins.d.ts +2 -2
- package/dist/cjs/types/src/hooks/useUpdateCoupons.d.ts +2 -2
- package/dist/cjs/types/src/types/Account.d.ts +73 -0
- package/dist/cjs/types/src/types/AccountBalance.d.ts +6 -0
- package/dist/cjs/types/src/types/AccountType.d.ts +7 -0
- package/dist/cjs/types/src/types/ApprovalDecision.d.ts +13 -0
- package/dist/cjs/types/src/types/ApprovalRequest.d.ts +18 -0
- package/dist/cjs/types/src/types/ApprovalRule.d.ts +15 -0
- package/dist/cjs/types/src/types/Approver.d.ts +10 -0
- package/dist/cjs/types/src/types/Campaign.d.ts +13 -0
- package/dist/cjs/types/src/types/Contact.d.ts +27 -0
- package/dist/cjs/types/src/types/Coupon.d.ts +19 -0
- package/dist/cjs/types/src/types/CreditNote.d.ts +45 -0
- package/dist/cjs/types/src/types/CreditNoteItem.d.ts +20 -0
- package/dist/cjs/types/src/types/Currency.d.ts +11 -0
- package/dist/cjs/types/src/types/Deal.d.ts +38 -0
- package/dist/cjs/types/src/types/DealStage.d.ts +12 -0
- package/dist/cjs/types/src/types/DisputeReason.d.ts +6 -0
- package/dist/cjs/types/src/types/DynamicComponent.d.ts +12 -0
- package/dist/cjs/types/src/types/Entity.d.ts +41 -0
- package/dist/cjs/types/src/types/Feature.d.ts +21 -0
- package/dist/cjs/types/src/types/FeatureUsage.d.ts +35 -0
- package/dist/cjs/types/src/types/FormattedInvoice.d.ts +50 -0
- package/dist/cjs/types/src/types/FormattedQuote.d.ts +49 -0
- package/dist/cjs/types/src/types/Invoice.d.ts +60 -0
- package/dist/cjs/types/src/types/InvoiceConnection.d.ts +6 -0
- package/dist/cjs/types/src/types/InvoiceItem.d.ts +43 -0
- package/dist/cjs/types/src/types/Payment.d.ts +21 -0
- package/dist/cjs/types/src/types/PaymentApplication.d.ts +13 -0
- package/dist/cjs/types/src/types/PaymentHold.d.ts +10 -0
- package/dist/cjs/types/src/types/PaymentMethod.d.ts +29 -0
- package/dist/cjs/types/src/types/Plan.d.ts +40 -0
- package/dist/cjs/types/src/types/PlanChangeOptions.d.ts +7 -0
- package/dist/cjs/types/src/types/Platform.d.ts +12 -0
- package/dist/cjs/types/src/types/Plugin.d.ts +44 -0
- package/dist/cjs/types/src/types/PluginDefinition.d.ts +23 -0
- package/dist/cjs/types/src/types/PluginParameter.d.ts +12 -0
- package/dist/cjs/types/src/types/PluginVendor.d.ts +6 -0
- package/dist/cjs/types/src/types/PriceList.d.ts +41 -0
- package/dist/cjs/types/src/types/PriceListChangeOptions.d.ts +7 -0
- package/dist/cjs/types/src/types/PriceListCharge.d.ts +45 -0
- package/dist/cjs/types/src/types/PriceListChargeTier.d.ts +6 -0
- package/dist/cjs/types/src/types/PriceTier.d.ts +5 -0
- package/dist/cjs/types/src/types/Product.d.ts +22 -0
- package/dist/cjs/types/src/types/ProductCategory.d.ts +9 -0
- package/dist/cjs/types/src/types/Quote.d.ts +81 -0
- package/dist/cjs/types/src/types/QuoteChange.d.ts +21 -0
- package/dist/cjs/types/src/types/QuoteCharge.d.ts +50 -0
- package/dist/cjs/types/src/types/Role.d.ts +6 -0
- package/dist/cjs/types/src/types/Subscription.d.ts +37 -0
- package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +8 -1
- package/dist/cjs/types/src/types/TaxationRequiredAccountFields.d.ts +2 -0
- package/dist/cjs/types/src/types/Tenant.d.ts +19 -0
- package/dist/cjs/types/src/types/TenantProvisioningChange.d.ts +12 -0
- package/dist/cjs/types/src/types/Transaction.d.ts +27 -0
- package/dist/cjs/types/src/types/User.d.ts +25 -0
- package/dist/cjs/types/src/types/UserProfile.d.ts +7 -0
- package/dist/cjs/types/src/types/billingDetails.d.ts +1 -1
- package/dist/cjs/types/src/types/frontendTypes/ComponentJSON.d.ts +285 -0
- package/dist/cjs/types/src/types/frontendTypes/Error.d.ts +3 -0
- package/dist/cjs/types/src/types/frontendTypes/FormLink.d.ts +8 -0
- package/dist/cjs/types/src/types/frontendTypes/FormattedLine.d.ts +50 -0
- package/dist/cjs/types/src/types/frontendTypes/PaymentComponentProps.d.ts +18 -0
- package/dist/cjs/types/src/types/frontendTypes/PeriodAmount.d.ts +9 -0
- package/dist/cjs/types/src/types/frontendTypes/PlanFeature.d.ts +12 -0
- package/dist/cjs/types/src/types/frontendTypes/PluginData.d.ts +26 -0
- package/dist/cjs/types/src/types/frontendTypes/QuoteDocument.d.ts +8 -0
- package/dist/cjs/types/src/types/frontendTypes/QuotePreviewData.d.ts +6 -0
- package/dist/cjs/types/src/types/frontendTypes/TableColumn.d.ts +9 -0
- package/dist/cjs/types/src/types/frontendTypes/TriggeredApprovalRule.d.ts +5 -0
- package/dist/cjs/types/src/types/frontendTypes/currentUser.d.ts +11 -0
- package/dist/cjs/types/src/types/frontendTypes/index.d.ts +13 -0
- package/dist/cjs/types/src/types/interfaces/Payable.d.ts +16 -0
- package/dist/cjs/types/src/types/interfaces/PayableItem.d.ts +11 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanSwitchTestId.d.ts +1 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/consts.d.ts +1 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/findAddonSubscriptions.d.ts +12 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/findNonAddonSubscriptions.d.ts +17 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/findParentSubscription.d.ts +12 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +1 -1
- package/dist/cjs/types/src/utils/apiUtils/apiUtils.d.ts +4 -4
- package/dist/cjs/types/src/utils/apiUtils/config.d.ts +9 -0
- package/dist/cjs/types/src/utils/apiUtils/invokePlugin.d.ts +1 -1
- package/dist/cjs/types/src/utils/chargeUtils.d.ts +10 -5
- package/dist/cjs/types/src/utils/couponUtils.d.ts +22 -2
- package/dist/cjs/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +4 -2
- package/dist/cjs/types/src/utils/formatDate.d.ts +1 -0
- package/dist/cjs/types/src/utils/graphql.d.ts +2 -0
- package/dist/cjs/types/src/utils/htmlUtils/isEmptyHTML.d.ts +5 -0
- package/dist/cjs/types/src/utils/htmlUtils/removeHTMLTags.d.ts +4 -0
- package/dist/cjs/types/src/utils/httpUtils.d.ts +10 -0
- package/dist/cjs/types/src/utils/isColorTooDark.d.ts +1 -0
- package/dist/cjs/types/src/utils/notificationUtils.d.ts +5 -0
- package/dist/cjs/types/src/utils/priceListChargeUtils/filterDeprecatedCharges.d.ts +11 -0
- package/dist/cjs/types/src/utils/priceListChargeUtils/priceListChargePriceDescription.d.ts +13 -0
- package/dist/cjs/types/src/utils/priceListUtils/getActiveCharges.d.ts +10 -0
- package/dist/cjs/types/src/utils/priceListUtils/getPrice.d.ts +9 -0
- package/dist/cjs/types/src/utils/priceListUtils/getPricingUnit.d.ts +16 -0
- package/dist/cjs/types/src/utils/priceListUtils/priceDescription.d.ts +11 -4
- package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +4 -3
- package/dist/esm/index.js +9338 -6560
- package/dist/esm/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
- package/dist/esm/types/src/UI/Tooltip.d.ts +2 -0
- package/dist/esm/types/src/UI/TruncatedText/TruncatedText.d.ts +4 -0
- package/dist/esm/types/src/UI/TruncatedText/hooks/useIsTextTruncated.d.ts +3 -0
- package/dist/esm/types/src/components/BillingDetails/BillingDetails.d.ts +3 -2
- package/dist/esm/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +1 -0
- package/dist/esm/types/src/components/{BunnyProvider.d.ts → BunnyProvider/BunnyProvider.d.ts} +4 -1
- package/dist/esm/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +13 -0
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +3 -2
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +24 -3
- package/dist/esm/types/src/components/Checkout/QuoteIsLoadingIndicator.d.ts +1 -0
- package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +8 -2
- package/dist/esm/types/src/components/FeatureUsageGraph.d.ts +31 -4
- package/dist/esm/types/src/components/Invoice/Invoice.d.ts +3 -2
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
- package/dist/esm/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +5 -2
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +5 -3
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +26 -4
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +5 -2
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +5 -3
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -2
- package/dist/esm/types/src/components/PaymentForm/components/CouponEditor.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +23 -4
- package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +19 -3
- package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +2 -1
- package/dist/esm/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +4 -1
- package/dist/esm/types/src/components/PaymentForm/types/PaymentFormTypes.d.ts +1 -1
- package/dist/esm/types/src/components/Quote/Quote.d.ts +3 -1
- package/dist/esm/types/src/components/Quote/components/AcceptQuoteModal.d.ts +19 -0
- package/dist/esm/types/src/components/Quote/components/NoSigningPluginsForm.d.ts +17 -0
- package/dist/esm/types/src/components/Quote/components/PaymentHoldModal.d.ts +25 -0
- package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +27 -0
- package/dist/esm/types/src/components/QuoteProvider/context/QuoteContext.d.ts +2 -1
- package/dist/esm/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +32 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +1 -1
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +4 -4
- package/dist/esm/types/src/components/QuoteProvider/hooks/useIsFetchingQuote.d.ts +4 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuantityEditableCharges.d.ts +70 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -1
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +29 -5
- package/dist/esm/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +37 -0
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeCreate.d.ts +23 -0
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +12 -0
- package/dist/esm/types/src/components/QuoteProvider/quoteMutationKeys.d.ts +20 -0
- package/dist/esm/types/src/components/Quotes/Quotes.d.ts +1 -1
- package/dist/esm/types/src/components/Signup/CheckoutSummary.d.ts +41 -5
- package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +12 -3
- package/dist/esm/types/src/components/Signup/PriceListDisplay.d.ts +18 -4
- package/dist/esm/types/src/components/Signup/Signup.d.ts +0 -1
- package/dist/esm/types/src/components/Signup/components/SelfServiceBuyWarning.d.ts +14 -0
- package/dist/esm/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +17 -0
- package/dist/esm/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +17 -0
- package/dist/esm/types/src/components/Signup/mutations/accountSignup.d.ts +58 -0
- package/dist/esm/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +31 -0
- package/dist/{cjs/types/src/graphql → esm/types/src/components/Signup}/mutations/quoteRecalculateTaxes.d.ts +5 -1
- package/dist/{cjs/types/src/graphql → esm/types/src/components/Signup}/queries/getPriceList.d.ts +5 -2
- package/dist/esm/types/src/components/Signup/queries/getQuote.d.ts +10 -0
- package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +17 -6
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +4 -8
- package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +12 -6
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +4 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +21 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/hooks/useChargeCRUD.d.ts +31 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +9 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +10 -15
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_QuoteFragment.d.ts +20 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +4 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +0 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +2 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +4 -17
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +15 -13
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +4 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerUtils.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +13 -6
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +15 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardDescription.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +2 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +16 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/utils/createAvailableBillingPeriods.d.ts +16 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +12 -7
- package/dist/esm/types/src/components/Subscriptions/Upgrade/contexts/DefaultBillingPeriodContext.d.ts +4 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +175 -0
- package/dist/esm/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +14 -0
- package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +58 -0
- package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +4 -0
- package/dist/esm/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +17 -0
- package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +32 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +3 -4
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +4 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +197 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +15 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +23 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +22 -5
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +23 -5
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +39 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +30 -5
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -5
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +20 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +19 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +31 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +74 -9
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +9 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +14 -2
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +15 -5
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -4
- package/dist/esm/types/src/components/TaxationForm.d.ts +1 -1
- package/dist/esm/types/src/components/Transactions/Transactions.d.ts +2 -1
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +1 -1
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
- package/dist/esm/types/src/components/Transactions/transactionsList/utils.d.ts +1 -1
- package/dist/esm/types/src/components/index.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +6 -5
- package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +2 -1
- package/dist/esm/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +10 -3
- package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +1 -1
- package/dist/esm/types/src/consts/AppConsts.d.ts +13 -0
- package/dist/esm/types/src/consts/DefaultBranding.d.ts +4 -0
- package/dist/esm/types/src/consts/Lists.d.ts +4 -0
- package/dist/esm/types/src/consts/StyleConsts.d.ts +58 -0
- package/dist/esm/types/src/consts/index.d.ts +4 -0
- package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +4 -1
- package/dist/esm/types/src/contexts/TransactionsListContext.d.ts +2 -1
- package/dist/esm/types/src/contexts/onPaymentMethodRemoved.d.ts +5 -0
- package/dist/esm/types/src/contexts/onPaymentMethodSaved.d.ts +5 -0
- package/dist/esm/types/src/enums/ChargeType.d.ts +6 -0
- package/dist/esm/types/src/enums/ColumnFormat.d.ts +16 -0
- package/dist/esm/types/src/enums/CreditNoteState.d.ts +8 -0
- package/dist/esm/types/src/enums/PriceAdjustmentAction.d.ts +6 -0
- package/dist/esm/types/src/enums/PriceAdjustmentTiming.d.ts +16 -0
- package/dist/esm/types/src/enums/QuoteChangeKind.d.ts +16 -0
- package/dist/esm/types/src/enums/TransactionState.d.ts +14 -0
- package/dist/esm/types/src/graphql/mutations/checkout.d.ts +6 -3
- package/dist/esm/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +1 -1
- package/dist/esm/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +1 -1
- package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +1 -1
- package/dist/esm/types/src/graphql/mutations/quoteCreate.d.ts +1 -1
- package/dist/esm/types/src/graphql/mutations/quoteCreateWithDeal.d.ts +1 -1
- package/dist/esm/types/src/graphql/queries/getAccount.d.ts +6 -0
- package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
- package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +10 -3
- package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
- package/dist/esm/types/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
- package/dist/esm/types/src/graphql/queries/getTransactions.d.ts +1 -1
- package/dist/esm/types/src/graphql-codegen/exportedScalarTypes.d.ts +3 -0
- package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +5 -1
- package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +3 -3
- package/dist/esm/types/src/hooks/useHasTaxPlugin.d.ts +1 -1
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +2 -2
- package/dist/esm/types/src/hooks/useSigningPlugins.d.ts +2 -2
- package/dist/esm/types/src/hooks/useUpdateCoupons.d.ts +2 -2
- package/dist/esm/types/src/types/Account.d.ts +73 -0
- package/dist/esm/types/src/types/AccountBalance.d.ts +6 -0
- package/dist/esm/types/src/types/AccountType.d.ts +7 -0
- package/dist/esm/types/src/types/ApprovalDecision.d.ts +13 -0
- package/dist/esm/types/src/types/ApprovalRequest.d.ts +18 -0
- package/dist/esm/types/src/types/ApprovalRule.d.ts +15 -0
- package/dist/esm/types/src/types/Approver.d.ts +10 -0
- package/dist/esm/types/src/types/Campaign.d.ts +13 -0
- package/dist/esm/types/src/types/Contact.d.ts +27 -0
- package/dist/esm/types/src/types/Coupon.d.ts +19 -0
- package/dist/esm/types/src/types/CreditNote.d.ts +45 -0
- package/dist/esm/types/src/types/CreditNoteItem.d.ts +20 -0
- package/dist/esm/types/src/types/Currency.d.ts +11 -0
- package/dist/esm/types/src/types/Deal.d.ts +38 -0
- package/dist/esm/types/src/types/DealStage.d.ts +12 -0
- package/dist/esm/types/src/types/DisputeReason.d.ts +6 -0
- package/dist/esm/types/src/types/DynamicComponent.d.ts +12 -0
- package/dist/esm/types/src/types/Entity.d.ts +41 -0
- package/dist/esm/types/src/types/Feature.d.ts +21 -0
- package/dist/esm/types/src/types/FeatureUsage.d.ts +35 -0
- package/dist/esm/types/src/types/FormattedInvoice.d.ts +50 -0
- package/dist/esm/types/src/types/FormattedQuote.d.ts +49 -0
- package/dist/esm/types/src/types/Invoice.d.ts +60 -0
- package/dist/esm/types/src/types/InvoiceConnection.d.ts +6 -0
- package/dist/esm/types/src/types/InvoiceItem.d.ts +43 -0
- package/dist/esm/types/src/types/Payment.d.ts +21 -0
- package/dist/esm/types/src/types/PaymentApplication.d.ts +13 -0
- package/dist/esm/types/src/types/PaymentHold.d.ts +10 -0
- package/dist/esm/types/src/types/PaymentMethod.d.ts +29 -0
- package/dist/esm/types/src/types/Plan.d.ts +40 -0
- package/dist/esm/types/src/types/PlanChangeOptions.d.ts +7 -0
- package/dist/esm/types/src/types/Platform.d.ts +12 -0
- package/dist/esm/types/src/types/Plugin.d.ts +44 -0
- package/dist/esm/types/src/types/PluginDefinition.d.ts +23 -0
- package/dist/esm/types/src/types/PluginParameter.d.ts +12 -0
- package/dist/esm/types/src/types/PluginVendor.d.ts +6 -0
- package/dist/esm/types/src/types/PriceList.d.ts +41 -0
- package/dist/esm/types/src/types/PriceListChangeOptions.d.ts +7 -0
- package/dist/esm/types/src/types/PriceListCharge.d.ts +45 -0
- package/dist/esm/types/src/types/PriceListChargeTier.d.ts +6 -0
- package/dist/esm/types/src/types/PriceTier.d.ts +5 -0
- package/dist/esm/types/src/types/Product.d.ts +22 -0
- package/dist/esm/types/src/types/ProductCategory.d.ts +9 -0
- package/dist/esm/types/src/types/Quote.d.ts +81 -0
- package/dist/esm/types/src/types/QuoteChange.d.ts +21 -0
- package/dist/esm/types/src/types/QuoteCharge.d.ts +50 -0
- package/dist/esm/types/src/types/Role.d.ts +6 -0
- package/dist/esm/types/src/types/Subscription.d.ts +37 -0
- package/dist/esm/types/src/types/SubscriptionCharge.d.ts +8 -1
- package/dist/esm/types/src/types/TaxationRequiredAccountFields.d.ts +2 -0
- package/dist/esm/types/src/types/Tenant.d.ts +19 -0
- package/dist/esm/types/src/types/TenantProvisioningChange.d.ts +12 -0
- package/dist/esm/types/src/types/Transaction.d.ts +27 -0
- package/dist/esm/types/src/types/User.d.ts +25 -0
- package/dist/esm/types/src/types/UserProfile.d.ts +7 -0
- package/dist/esm/types/src/types/billingDetails.d.ts +1 -1
- package/dist/esm/types/src/types/frontendTypes/ComponentJSON.d.ts +285 -0
- package/dist/esm/types/src/types/frontendTypes/Error.d.ts +3 -0
- package/dist/esm/types/src/types/frontendTypes/FormLink.d.ts +8 -0
- package/dist/esm/types/src/types/frontendTypes/FormattedLine.d.ts +50 -0
- package/dist/esm/types/src/types/frontendTypes/PaymentComponentProps.d.ts +18 -0
- package/dist/esm/types/src/types/frontendTypes/PeriodAmount.d.ts +9 -0
- package/dist/esm/types/src/types/frontendTypes/PlanFeature.d.ts +12 -0
- package/dist/esm/types/src/types/frontendTypes/PluginData.d.ts +26 -0
- package/dist/esm/types/src/types/frontendTypes/QuoteDocument.d.ts +8 -0
- package/dist/esm/types/src/types/frontendTypes/QuotePreviewData.d.ts +6 -0
- package/dist/esm/types/src/types/frontendTypes/TableColumn.d.ts +9 -0
- package/dist/esm/types/src/types/frontendTypes/TriggeredApprovalRule.d.ts +5 -0
- package/dist/esm/types/src/types/frontendTypes/currentUser.d.ts +11 -0
- package/dist/esm/types/src/types/frontendTypes/index.d.ts +13 -0
- package/dist/esm/types/src/types/interfaces/Payable.d.ts +16 -0
- package/dist/esm/types/src/types/interfaces/PayableItem.d.ts +11 -0
- package/dist/esm/types/src/utils/addonPlanUtils/addonPlanSwitchTestId.d.ts +1 -0
- package/dist/esm/types/src/utils/addonPlanUtils/consts.d.ts +1 -0
- package/dist/esm/types/src/utils/addonPlanUtils/findAddonSubscriptions.d.ts +12 -0
- package/dist/esm/types/src/utils/addonPlanUtils/findNonAddonSubscriptions.d.ts +17 -0
- package/dist/esm/types/src/utils/addonPlanUtils/findParentSubscription.d.ts +12 -0
- package/dist/esm/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +1 -1
- package/dist/esm/types/src/utils/apiUtils/apiUtils.d.ts +4 -4
- package/dist/esm/types/src/utils/apiUtils/config.d.ts +9 -0
- package/dist/esm/types/src/utils/apiUtils/invokePlugin.d.ts +1 -1
- package/dist/esm/types/src/utils/chargeUtils.d.ts +10 -5
- package/dist/esm/types/src/utils/couponUtils.d.ts +22 -2
- package/dist/esm/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +4 -2
- package/dist/esm/types/src/utils/formatDate.d.ts +1 -0
- package/dist/esm/types/src/utils/graphql.d.ts +2 -0
- package/dist/esm/types/src/utils/htmlUtils/isEmptyHTML.d.ts +5 -0
- package/dist/esm/types/src/utils/htmlUtils/removeHTMLTags.d.ts +4 -0
- package/dist/esm/types/src/utils/httpUtils.d.ts +10 -0
- package/dist/esm/types/src/utils/isColorTooDark.d.ts +1 -0
- package/dist/esm/types/src/utils/notificationUtils.d.ts +5 -0
- package/dist/esm/types/src/utils/priceListChargeUtils/filterDeprecatedCharges.d.ts +11 -0
- package/dist/esm/types/src/utils/priceListChargeUtils/priceListChargePriceDescription.d.ts +13 -0
- package/dist/esm/types/src/utils/priceListUtils/getActiveCharges.d.ts +10 -0
- package/dist/esm/types/src/utils/priceListUtils/getPrice.d.ts +9 -0
- package/dist/esm/types/src/utils/priceListUtils/getPricingUnit.d.ts +16 -0
- package/dist/esm/types/src/utils/priceListUtils/priceDescription.d.ts +11 -4
- package/dist/esm/types/src/utils/pricePickerUtils.d.ts +4 -3
- package/dist/index.d.ts +72 -18
- package/package.json +17 -18
- package/dist/cjs/types/src/components/Quote/AcceptQuoteModal.d.ts +0 -10
- package/dist/cjs/types/src/components/Quote/PaymentHoldModal.d.ts +0 -7
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +0 -8
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +0 -12
- package/dist/cjs/types/src/contexts/SubscriptionsContext.d.ts +0 -14
- package/dist/cjs/types/src/graphql/mutations/accountSignup.d.ts +0 -11
- package/dist/cjs/types/src/graphql/mutations/quoteAccountSignup.d.ts +0 -15
- package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +0 -36
- package/dist/cjs/types/src/styles/constants.d.ts +0 -1
- package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +0 -5
- package/dist/cjs/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +0 -12
- package/dist/esm/types/src/components/Quote/AcceptQuoteModal.d.ts +0 -10
- package/dist/esm/types/src/components/Quote/PaymentHoldModal.d.ts +0 -7
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +0 -8
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +0 -12
- package/dist/esm/types/src/contexts/SubscriptionsContext.d.ts +0 -14
- package/dist/esm/types/src/graphql/mutations/accountSignup.d.ts +0 -11
- package/dist/esm/types/src/graphql/mutations/quoteAccountSignup.d.ts +0 -15
- package/dist/esm/types/src/graphql/queries/getQuote.d.ts +0 -36
- package/dist/esm/types/src/styles/constants.d.ts +0 -1
- package/dist/esm/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +0 -5
- package/dist/esm/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +0 -12
- /package/dist/cjs/types/src/{hooks → components/BunnyProvider/hooks}/useCreateQueryClient.d.ts +0 -0
- /package/dist/cjs/types/src/{hooks/quotes → components/Quote/hooks}/useSendAcceptQuote.d.ts +0 -0
- /package/dist/cjs/types/src/{hooks/quotes → components/Quote/hooks}/useSigningComplete.d.ts +0 -0
- /package/dist/esm/types/src/{hooks → components/BunnyProvider/hooks}/useCreateQueryClient.d.ts +0 -0
- /package/dist/esm/types/src/{hooks/quotes → components/Quote/hooks}/useSendAcceptQuote.d.ts +0 -0
- /package/dist/esm/types/src/{hooks/quotes → components/Quote/hooks}/useSigningComplete.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type RequestOptions = {
|
|
2
|
+
method?: string;
|
|
3
|
+
apiHost: string;
|
|
4
|
+
endpoint: string;
|
|
5
|
+
body?: string;
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
token?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const request: ({ method, apiHost, endpoint, body, headers, token, }: RequestOptions) => any;
|
|
10
|
+
export default request;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isColorTooDark: (hex?: string) => boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare const useAllErrorFormats: (onTokenExpired?: () => void) => (error: any) => void;
|
|
3
|
+
export declare const useErrorNotification: () => (description?: string | null | ReactNode, message?: string | null, duration?: number) => void;
|
|
4
|
+
export declare const useSuccessNotification: () => (description?: string | null, message?: string | null, duration?: number) => void;
|
|
5
|
+
export declare const useInfoNotification: () => (description?: string | null, message?: string | null, duration?: number) => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QuoteChangeKind } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const filterDeprecatedCharges_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
deprecated: boolean | null;
|
|
5
|
+
removeOnRenewal: boolean | null;
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "filterDeprecatedCharges_PriceListChargeFragment";
|
|
8
|
+
on: "PriceListCharge";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function filterDeprecatedCharges(quoteChangeKind: QuoteChangeKind | undefined, maskedCharge: FragmentOf<typeof filterDeprecatedCharges_PriceListChargeFragment>): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const priceListChargePriceDescription_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
showPriceAsMonthly: boolean | null;
|
|
4
|
+
billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
5
|
+
feature: {
|
|
6
|
+
unitName: string | null;
|
|
7
|
+
} | null;
|
|
8
|
+
}, {}, {
|
|
9
|
+
fragment: "priceListChargePriceDescription_PriceListChargeFragment";
|
|
10
|
+
on: "PriceListCharge";
|
|
11
|
+
masked: true;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function priceListChargePriceDescription(maskedPriceListCharge: FragmentOf<typeof priceListChargePriceDescription_PriceListChargeFragment>): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const GetActiveCharges_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
deprecated: boolean | null;
|
|
4
|
+
featureAddon: boolean | null;
|
|
5
|
+
}, {}, {
|
|
6
|
+
fragment: "GetActiveCharges_PriceListChargeFragment";
|
|
7
|
+
on: "PriceListCharge";
|
|
8
|
+
masked: true;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function getActiveCharges<T extends FragmentOf<typeof GetActiveCharges_PriceListChargeFragment>>(charges: T[]): T[];
|
|
@@ -3,6 +3,15 @@ export declare const GetPrice_PriceListFragment: import("gql.tada").TadaDocument
|
|
|
3
3
|
showPriceAsMonthly: boolean | null;
|
|
4
4
|
monthlyBasePrice: number | null;
|
|
5
5
|
basePrice: number | null;
|
|
6
|
+
charges: {
|
|
7
|
+
basePrice: number;
|
|
8
|
+
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
filterDeprecatedCharges_PriceListChargeFragment: "PriceListCharge";
|
|
11
|
+
} & {
|
|
12
|
+
GetActiveCharges_PriceListChargeFragment: "PriceListCharge";
|
|
13
|
+
};
|
|
14
|
+
}[] | null;
|
|
6
15
|
}, {}, {
|
|
7
16
|
fragment: "GetPrice_PriceListFragment";
|
|
8
17
|
on: "PriceList";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const getPriceListUnitName_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
charges: {
|
|
4
|
+
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
5
|
+
featureAddon: boolean | null;
|
|
6
|
+
deprecated: boolean | null;
|
|
7
|
+
feature: {
|
|
8
|
+
unitName: string | null;
|
|
9
|
+
} | null;
|
|
10
|
+
}[] | null;
|
|
11
|
+
}, {}, {
|
|
12
|
+
fragment: "getPriceListUnitName_PriceListFragment";
|
|
13
|
+
on: "PriceList";
|
|
14
|
+
masked: true;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function getPriceListUnitName(maskedPriceList: FragmentOf<typeof getPriceListUnitName_PriceListFragment>): string | null | undefined;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const priceDescriptionString_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
3
|
showPriceAsMonthly: boolean | null;
|
|
4
4
|
periodMonths: number | null;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
[$tada.fragmentRefs]: {
|
|
6
|
+
getPriceListUnitName_PriceListFragment: "PriceList";
|
|
7
|
+
};
|
|
8
|
+
}, {}, {
|
|
9
|
+
fragment: "priceDescriptionString_PriceListFragment";
|
|
10
|
+
on: "PriceList";
|
|
11
|
+
masked: true;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function priceDescriptionString(maskedPriceList: FragmentOf<typeof priceDescriptionString_PriceListFragment>): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Plan, Product } from '@bunnyapp/common';
|
|
2
1
|
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { Plan } from '@/types/Plan';
|
|
3
|
+
import Product from '@/types/Product';
|
|
4
|
+
export declare const periodMonthsConverter: (period: number | undefined | null) => "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
5
|
+
export declare const billingPeriodConverter: (period?: BillingPeriod) => 3 | 0 | 1 | 6 | 12;
|
|
5
6
|
export declare const createAvailableBillingPeriods: (plans?: Plan[], selectedProduct?: Product) => (0 | 1 | 3 | 6 | 12)[] | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import FormattedInvoice from '@/types/FormattedInvoice';
|
|
3
|
+
import { FormattedQuote } from '@/types/FormattedQuote';
|
|
4
|
+
import { Transaction, TransactionKind } from '@/types/Transaction';
|
|
5
|
+
import * as gql_tada from 'gql.tada';
|
|
6
|
+
import { FragmentOf, ResultOf } from 'gql.tada';
|
|
7
|
+
import Invoice$1 from '@/types/Invoice';
|
|
3
8
|
import { QueryClient } from '@tanstack/react-query';
|
|
4
9
|
import { ThemeConfig } from 'antd';
|
|
5
10
|
import react from 'react';
|
|
6
|
-
import * as gql_tada from 'gql.tada';
|
|
7
|
-
import { FragmentOf } from 'gql.tada';
|
|
8
11
|
|
|
9
12
|
type ShadowType = "shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl";
|
|
10
13
|
|
|
@@ -20,12 +23,16 @@ type InvoiceQuoteContextProps = {
|
|
|
20
23
|
hideDownloadButton?: boolean;
|
|
21
24
|
onInvoiceLoaded?: (formattedInvoice: FormattedInvoice) => void;
|
|
22
25
|
onQuoteLoaded?: (formattedQuote: FormattedQuote) => void;
|
|
26
|
+
onQuoteUnavailableError?: () => void;
|
|
27
|
+
suppressQuoteUnavailableErrorNotification?: boolean;
|
|
23
28
|
};
|
|
24
29
|
|
|
25
30
|
type InvoiceProps = InvoiceQuoteContextProps & {
|
|
26
31
|
hidePaymentForm?: boolean;
|
|
32
|
+
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
33
|
+
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
27
34
|
};
|
|
28
|
-
declare function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, hidePaymentForm, onInvoiceLoaded, }: InvoiceProps): react_jsx_runtime.JSX.Element;
|
|
35
|
+
declare function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, hidePaymentForm, onInvoiceLoaded, onPaymentMethodSaved, onPaymentMethodRemoved, }: InvoiceProps): react_jsx_runtime.JSX.Element;
|
|
29
36
|
|
|
30
37
|
declare global {
|
|
31
38
|
interface Window {
|
|
@@ -36,8 +43,10 @@ declare global {
|
|
|
36
43
|
|
|
37
44
|
type QuoteProps = InvoiceQuoteContextProps & {
|
|
38
45
|
onQuoteAccepted?: () => void;
|
|
46
|
+
onQuoteUnavailableError?: () => void;
|
|
47
|
+
suppressQuoteUnavailableErrorNotification?: boolean;
|
|
39
48
|
};
|
|
40
|
-
declare function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onQuoteLoaded, onQuoteAccepted, }: QuoteProps): react_jsx_runtime.JSX.Element;
|
|
49
|
+
declare function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onQuoteLoaded, onQuoteAccepted, onQuoteUnavailableError, suppressQuoteUnavailableErrorNotification, }: QuoteProps): react_jsx_runtime.JSX.Element;
|
|
41
50
|
|
|
42
51
|
type TransactionListColumnType = 'date' | 'title' | 'state' | 'amount' | 'download' | 'accountName';
|
|
43
52
|
|
|
@@ -76,13 +85,44 @@ declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuot
|
|
|
76
85
|
noQuotesMessage?: string;
|
|
77
86
|
}): react_jsx_runtime.JSX.Element;
|
|
78
87
|
|
|
79
|
-
declare
|
|
88
|
+
declare const PaymentForm_PaymentMethodsFragment: gql_tada.TadaDocumentNode<{
|
|
89
|
+
[$tada.fragmentRefs]: {
|
|
90
|
+
MiniCreditCard_PaymentMethodFragment: "PaymentMethod";
|
|
91
|
+
};
|
|
92
|
+
id: string;
|
|
93
|
+
plugin: {
|
|
94
|
+
id: string;
|
|
95
|
+
} | null;
|
|
96
|
+
}, {}, {
|
|
97
|
+
fragment: "PaymentForm_PaymentMethodsFragment";
|
|
98
|
+
on: "PaymentMethod";
|
|
99
|
+
masked: true;
|
|
100
|
+
}>;
|
|
101
|
+
|
|
102
|
+
type PaymentMethodFragment = ResultOf<typeof PaymentForm_PaymentMethodsFragment>;
|
|
103
|
+
declare const PaymentForm_QuoteFragment: gql_tada.TadaDocumentNode<{
|
|
104
|
+
id: string | null;
|
|
105
|
+
currencyId: string;
|
|
106
|
+
[$tada.fragmentRefs]: {
|
|
107
|
+
PaymentProvider_QuoteFragment: "Quote";
|
|
108
|
+
};
|
|
109
|
+
}, {}, {
|
|
110
|
+
fragment: "PaymentForm_QuoteFragment";
|
|
111
|
+
on: "Quote";
|
|
112
|
+
masked: true;
|
|
113
|
+
}>;
|
|
114
|
+
declare function PaymentForm({ currencyId: accountCurrencyId, invoice, quote: maskedQuote, onPaymentSuccess, onPaymentHoldSuccess, paymentHoldPrecondition, accountId, onSavePaymentMethod, onPaymentMethodRemoved, onSetDefaultPaymentMethod, overrideToken, customCheckoutFunction, paymentHoldOptions, disablePayButton, }: {
|
|
115
|
+
currencyId?: string;
|
|
80
116
|
invoice?: FormattedInvoice | Invoice$1;
|
|
81
|
-
quote?:
|
|
117
|
+
quote?: FragmentOf<typeof PaymentForm_QuoteFragment>;
|
|
82
118
|
onPaymentSuccess?: (response: any) => void;
|
|
83
119
|
onPaymentHoldSuccess?: (response: any) => void;
|
|
120
|
+
/**
|
|
121
|
+
* If provided, the payment hold will only go through if this condition returns true.
|
|
122
|
+
*/
|
|
123
|
+
paymentHoldPrecondition?: () => boolean | Promise<boolean>;
|
|
84
124
|
onSavePaymentMethod?: (response: any) => void;
|
|
85
|
-
|
|
125
|
+
onPaymentMethodRemoved?: (paymentMethod: PaymentMethodFragment) => void;
|
|
86
126
|
onSetDefaultPaymentMethod?: () => void;
|
|
87
127
|
accountId?: string;
|
|
88
128
|
overrideToken?: string;
|
|
@@ -91,6 +131,7 @@ declare function PaymentForm({ invoice, quote, onPaymentSuccess, onPaymentHoldSu
|
|
|
91
131
|
payToAccept?: boolean;
|
|
92
132
|
amountToHold?: number;
|
|
93
133
|
};
|
|
134
|
+
disablePayButton?: boolean;
|
|
94
135
|
}): react_jsx_runtime.JSX.Element | null;
|
|
95
136
|
|
|
96
137
|
declare function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, defaultFirstName, defaultLastName, defaultEmail, defaultCompanyName, defaultBillingCountry, }: {
|
|
@@ -120,13 +161,16 @@ declare function Signup({ companyName, priceListCode, returnUrl, couponCode, cla
|
|
|
120
161
|
defaultBillingCountry?: string;
|
|
121
162
|
}): react_jsx_runtime.JSX.Element;
|
|
122
163
|
|
|
123
|
-
declare function BunnyProvider({ children, darkMode, queryClient, apiHost, token, onTokenExpired, configProviderProps, }: {
|
|
164
|
+
declare function BunnyProvider({ children, darkMode, queryClient, apiHost, token, onTokenExpired, onUserUnavailable, onInvalidOrMissingAuthorization, suppressUserUnavailableErrorNotification, configProviderProps, }: {
|
|
124
165
|
children: React.ReactNode;
|
|
125
166
|
darkMode?: boolean;
|
|
126
167
|
queryClient?: QueryClient;
|
|
127
168
|
apiHost: string;
|
|
128
169
|
token?: string;
|
|
129
170
|
onTokenExpired?: () => void;
|
|
171
|
+
onUserUnavailable?: () => void;
|
|
172
|
+
onInvalidOrMissingAuthorization?: () => void;
|
|
173
|
+
suppressUserUnavailableErrorNotification?: boolean;
|
|
130
174
|
configProviderProps?: ThemeConfig | undefined;
|
|
131
175
|
}): react_jsx_runtime.JSX.Element;
|
|
132
176
|
|
|
@@ -178,7 +222,7 @@ declare function Transactions({ transactionComponent, showSearchBar, showTitle,
|
|
|
178
222
|
hidePaymentForm?: boolean;
|
|
179
223
|
}): react_jsx_runtime.JSX.Element;
|
|
180
224
|
|
|
181
|
-
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, }: {
|
|
225
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, onPaymentMethodSaved, onPaymentMethodRemoved, onSubscriptionUpgradeClick, }: {
|
|
182
226
|
handlePortalErrors?: (errors: any) => void;
|
|
183
227
|
companyName: string;
|
|
184
228
|
isInPreviewMode?: boolean;
|
|
@@ -192,19 +236,28 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
|
|
|
192
236
|
noSubscriptionsComponent?: React.ReactNode;
|
|
193
237
|
showInactiveSubscriptions?: boolean;
|
|
194
238
|
showInactiveSubscriptionsToggle?: boolean;
|
|
239
|
+
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
240
|
+
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
241
|
+
onSubscriptionUpgradeClick?: (subscriptionId: string) => void;
|
|
195
242
|
}) => react_jsx_runtime.JSX.Element;
|
|
196
243
|
|
|
197
|
-
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors,
|
|
198
|
-
onChangePlanCancel
|
|
244
|
+
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, onPaymentMethodSaved, onPaymentMethodRemoved, upgradingSubscriptionId, isInPreviewMode, productId, className, shadow, defaultBillingPeriod, }: {
|
|
245
|
+
onChangePlanCancel?: () => void;
|
|
199
246
|
handlePortalErrors?: (error: any) => void;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
247
|
+
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
248
|
+
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
249
|
+
upgradingSubscriptionId?: string;
|
|
250
|
+
isInPreviewMode?: boolean;
|
|
251
|
+
productId?: string | undefined;
|
|
203
252
|
className?: string;
|
|
204
253
|
shadow?: "none" | "sm" | "md" | "lg";
|
|
205
|
-
|
|
254
|
+
/**
|
|
255
|
+
* If provided and the billing period is available, the billing period selector will default to this value.
|
|
256
|
+
*/
|
|
257
|
+
defaultBillingPeriod?: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL";
|
|
258
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
206
259
|
|
|
207
|
-
declare const BillingDetails: ({ className, countryListFilter, hideBillingDetailsForm, hidePaymentMethodForm, isCardEnabled, isUpgradeFromTrial, shadow, onSavePaymentMethod, }: {
|
|
260
|
+
declare const BillingDetails: ({ className, countryListFilter, hideBillingDetailsForm, hidePaymentMethodForm, isCardEnabled, isUpgradeFromTrial, shadow, onSavePaymentMethod, onPaymentMethodRemoved, }: {
|
|
208
261
|
className?: string;
|
|
209
262
|
countryListFilter?: (country: {
|
|
210
263
|
value: string;
|
|
@@ -215,7 +268,8 @@ declare const BillingDetails: ({ className, countryListFilter, hideBillingDetail
|
|
|
215
268
|
isCardEnabled?: boolean;
|
|
216
269
|
isUpgradeFromTrial?: boolean;
|
|
217
270
|
shadow?: ShadowType;
|
|
218
|
-
onSavePaymentMethod?: (
|
|
271
|
+
onSavePaymentMethod?: (paymentMethodId: string) => void;
|
|
272
|
+
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
219
273
|
}) => react_jsx_runtime.JSX.Element;
|
|
220
274
|
|
|
221
275
|
declare const Footer: ({ className }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bunnyapp/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0-beta.2",
|
|
4
4
|
"description": "Components from the Bunny portal to embed Bunny UI functionality into your application.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -67,33 +67,32 @@
|
|
|
67
67
|
"storybook": "^8.6.14",
|
|
68
68
|
"tailwindcss": "^3.4.18",
|
|
69
69
|
"typescript": "^5.9.3",
|
|
70
|
-
"vite": "^6.4.1"
|
|
70
|
+
"vite": "^6.4.1",
|
|
71
|
+
"rimraf": "^6.1.2"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
|
-
"@ant-design/icons": "^
|
|
74
|
-
"@
|
|
75
|
-
"@fortawesome/
|
|
76
|
-
"@fortawesome/free-
|
|
77
|
-
"@fortawesome/free-
|
|
78
|
-
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
|
74
|
+
"@ant-design/icons": "^6.0.0",
|
|
75
|
+
"@fortawesome/fontawesome-svg-core": "^7.0.0",
|
|
76
|
+
"@fortawesome/free-brands-svg-icons": "^7.0.0",
|
|
77
|
+
"@fortawesome/free-regular-svg-icons": "^7.0.0",
|
|
78
|
+
"@fortawesome/free-solid-svg-icons": "^7.0.0",
|
|
79
79
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
80
|
-
"@pdf-viewer/react": "^1.
|
|
81
|
-
"@stripe/react-stripe-js": "^3.
|
|
82
|
-
"@stripe/stripe-js": "^
|
|
83
|
-
"@tanstack/react-query": "^5.59.
|
|
84
|
-
"antd": "^5.
|
|
80
|
+
"@pdf-viewer/react": "^1.8.0",
|
|
81
|
+
"@stripe/react-stripe-js": "^3.8.1",
|
|
82
|
+
"@stripe/stripe-js": "^7.7.0",
|
|
83
|
+
"@tanstack/react-query": "^5.59.0",
|
|
84
|
+
"antd": "^5.28.0",
|
|
85
85
|
"graphql": "^16.11.0",
|
|
86
86
|
"graphql-request": "^6.1.0",
|
|
87
|
-
"interweave": "^13.1.
|
|
88
|
-
"less": "^4.
|
|
87
|
+
"interweave": "^13.1.1",
|
|
88
|
+
"less": "^4.4.0",
|
|
89
89
|
"lodash-es": "^4.17.21",
|
|
90
90
|
"pluralize": "^8.0.0",
|
|
91
91
|
"react": "^18.3.1",
|
|
92
92
|
"react-dom": "^18.3.1",
|
|
93
|
-
"recharts": "^
|
|
93
|
+
"recharts": "^3.1.0",
|
|
94
94
|
"recoil": "^0.7.7",
|
|
95
|
-
"
|
|
96
|
-
"styled-components": "^6.1.13"
|
|
95
|
+
"styled-components": "^6.1.19"
|
|
97
96
|
},
|
|
98
97
|
"msw": {
|
|
99
98
|
"workerDirectory": [
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormattedQuote } from '@bunnyapp/common';
|
|
2
|
-
declare const AcceptQuoteModal: ({ acceptBoxVisible, formattedQuote, sendAccept, setAcceptBoxVisible, setIsAccepting, isSendAcceptPending, }: {
|
|
3
|
-
acceptBoxVisible: boolean;
|
|
4
|
-
formattedQuote: FormattedQuote;
|
|
5
|
-
sendAccept: (changedFields: any) => void;
|
|
6
|
-
setAcceptBoxVisible: (visible: boolean) => void;
|
|
7
|
-
setIsAccepting: (accepting: boolean) => void;
|
|
8
|
-
isSendAcceptPending: boolean;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default AcceptQuoteModal;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FormattedQuote } from '@bunnyapp/common';
|
|
2
|
-
declare const PaymentHoldModal: ({ visible, setVisible, quote, }: {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
setVisible: (visible: boolean) => void;
|
|
5
|
-
quote: FormattedQuote;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PaymentHoldModal;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PriceListCharge } from '@bunnyapp/common';
|
|
2
|
-
declare const CheckoutBarInput: ({ disabled, priceListCharge, quantity, onQuantityChanged, }: {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
priceListCharge: PriceListCharge;
|
|
5
|
-
quantity: number;
|
|
6
|
-
onQuantityChanged: (quantity: number) => void;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default CheckoutBarInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FragmentOf } from 'gql.tada';
|
|
2
|
-
export declare const HasMultipleRecurringCharges_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
-
charges: {
|
|
4
|
-
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
5
|
-
featureAddon: boolean | null;
|
|
6
|
-
}[] | null;
|
|
7
|
-
}, {}, {
|
|
8
|
-
fragment: "HasMultipleRecurringCharges_PriceListFragment";
|
|
9
|
-
on: "PriceList";
|
|
10
|
-
masked: true;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const hasMultipleRecurringCharges: (maskedPriceList: FragmentOf<typeof HasMultipleRecurringCharges_PriceListFragment>) => boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
export type SubscriptionsContextValues = {
|
|
3
|
-
gap?: number;
|
|
4
|
-
shadow?: 'none' | 'sm' | 'md' | 'lg';
|
|
5
|
-
showTitle?: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
subscriptionProductNameStyle?: React.CSSProperties;
|
|
8
|
-
productId?: string;
|
|
9
|
-
isInPreviewMode: boolean;
|
|
10
|
-
showInactiveSubscriptions?: boolean;
|
|
11
|
-
upgradingSubscription?: Subscription;
|
|
12
|
-
setUpgradingSubscription: React.Dispatch<React.SetStateAction<Subscription | undefined>>;
|
|
13
|
-
};
|
|
14
|
-
export declare const SubscriptionsContext: import("react").Context<SubscriptionsContextValues>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const accountSignup: ({ token, apiHost, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, }: {
|
|
2
|
-
token: string;
|
|
3
|
-
apiHost: string;
|
|
4
|
-
accountId: string;
|
|
5
|
-
quoteId?: string;
|
|
6
|
-
paymentToken?: string;
|
|
7
|
-
paymentMethodId?: string;
|
|
8
|
-
pluginId: string;
|
|
9
|
-
priceListCode: string;
|
|
10
|
-
}) => Promise<any>;
|
|
11
|
-
export default accountSignup;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import BillingDetails from '../../types/billingDetails';
|
|
2
|
-
type BillingContact = {
|
|
3
|
-
firstName: string;
|
|
4
|
-
lastName: string;
|
|
5
|
-
email: string;
|
|
6
|
-
};
|
|
7
|
-
declare const quoteAccountSignup: ({ token, apiHost, priceListCode, accountName, billingContact, billingDetails, }: {
|
|
8
|
-
token?: string;
|
|
9
|
-
apiHost: string;
|
|
10
|
-
priceListCode: string;
|
|
11
|
-
accountName: string;
|
|
12
|
-
billingContact: BillingContact;
|
|
13
|
-
billingDetails?: BillingDetails;
|
|
14
|
-
}) => Promise<any>;
|
|
15
|
-
export default quoteAccountSignup;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ResultOf } from 'gql.tada';
|
|
2
|
-
export declare const QUOTE_FIELDS: (removeFormattedQuoteField?: boolean) => string;
|
|
3
|
-
declare const query: import("gql.tada").TadaDocumentNode<{
|
|
4
|
-
quote: {
|
|
5
|
-
[$tada.fragmentRefs]: {
|
|
6
|
-
QuoteContext_QuoteFragment: "Quote";
|
|
7
|
-
};
|
|
8
|
-
} | {
|
|
9
|
-
[$tada.fragmentRefs]: {
|
|
10
|
-
QuoteContext_QuoteFragment: "Quote";
|
|
11
|
-
} & {
|
|
12
|
-
FormattedQuoteField_QuoteFragment: "Quote";
|
|
13
|
-
};
|
|
14
|
-
} | null;
|
|
15
|
-
}, {
|
|
16
|
-
removeFormattedQuoteField: boolean;
|
|
17
|
-
id?: string | null | undefined;
|
|
18
|
-
}, void>;
|
|
19
|
-
export type Quote = ResultOf<typeof query>['quote'];
|
|
20
|
-
declare const getQuote: ({ id, token, apiHost, removeFormattedQuoteField, }: {
|
|
21
|
-
id: string;
|
|
22
|
-
token?: string;
|
|
23
|
-
apiHost: string;
|
|
24
|
-
removeFormattedQuoteField?: boolean;
|
|
25
|
-
}) => Promise<{
|
|
26
|
-
[$tada.fragmentRefs]: {
|
|
27
|
-
QuoteContext_QuoteFragment: "Quote";
|
|
28
|
-
};
|
|
29
|
-
} | {
|
|
30
|
-
[$tada.fragmentRefs]: {
|
|
31
|
-
QuoteContext_QuoteFragment: "Quote";
|
|
32
|
-
} & {
|
|
33
|
-
FormattedQuoteField_QuoteFragment: "Quote";
|
|
34
|
-
};
|
|
35
|
-
} | null>;
|
|
36
|
-
export default getQuote;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PRIMARY_COLOR = "#FF5833";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
export declare const ADDON_INDENTATION = 64;
|
|
3
|
-
export declare function findNonAddonSubscriptions(subscriptions: Subscription[]): Subscription[];
|
|
4
|
-
export declare function findAddonSubscriptions(parentSubscription: Subscription, subscriptions: Subscription[]): Subscription[];
|
|
5
|
-
export declare function addonPlanSwitchTestId(planName: string): string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FragmentOf } from 'gql.tada';
|
|
2
|
-
export declare const DoesPriceListHaveFlatFeeCharges_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
-
charges: {
|
|
4
|
-
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
5
|
-
basePrice: number;
|
|
6
|
-
}[] | null;
|
|
7
|
-
}, {}, {
|
|
8
|
-
fragment: "DoesPriceListHaveFlatFeeCharges_PriceListFragment";
|
|
9
|
-
on: "PriceList";
|
|
10
|
-
masked: true;
|
|
11
|
-
}>;
|
|
12
|
-
export declare function doesPriceListHaveFlatFeeCharges(maskedPriceList: FragmentOf<typeof DoesPriceListHaveFlatFeeCharges_PriceListFragment>): boolean;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormattedQuote } from '@bunnyapp/common';
|
|
2
|
-
declare const AcceptQuoteModal: ({ acceptBoxVisible, formattedQuote, sendAccept, setAcceptBoxVisible, setIsAccepting, isSendAcceptPending, }: {
|
|
3
|
-
acceptBoxVisible: boolean;
|
|
4
|
-
formattedQuote: FormattedQuote;
|
|
5
|
-
sendAccept: (changedFields: any) => void;
|
|
6
|
-
setAcceptBoxVisible: (visible: boolean) => void;
|
|
7
|
-
setIsAccepting: (accepting: boolean) => void;
|
|
8
|
-
isSendAcceptPending: boolean;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default AcceptQuoteModal;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FormattedQuote } from '@bunnyapp/common';
|
|
2
|
-
declare const PaymentHoldModal: ({ visible, setVisible, quote, }: {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
setVisible: (visible: boolean) => void;
|
|
5
|
-
quote: FormattedQuote;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default PaymentHoldModal;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PriceListCharge } from '@bunnyapp/common';
|
|
2
|
-
declare const CheckoutBarInput: ({ disabled, priceListCharge, quantity, onQuantityChanged, }: {
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
priceListCharge: PriceListCharge;
|
|
5
|
-
quantity: number;
|
|
6
|
-
onQuantityChanged: (quantity: number) => void;
|
|
7
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default CheckoutBarInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FragmentOf } from 'gql.tada';
|
|
2
|
-
export declare const HasMultipleRecurringCharges_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
-
charges: {
|
|
4
|
-
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
5
|
-
featureAddon: boolean | null;
|
|
6
|
-
}[] | null;
|
|
7
|
-
}, {}, {
|
|
8
|
-
fragment: "HasMultipleRecurringCharges_PriceListFragment";
|
|
9
|
-
on: "PriceList";
|
|
10
|
-
masked: true;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const hasMultipleRecurringCharges: (maskedPriceList: FragmentOf<typeof HasMultipleRecurringCharges_PriceListFragment>) => boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
export type SubscriptionsContextValues = {
|
|
3
|
-
gap?: number;
|
|
4
|
-
shadow?: 'none' | 'sm' | 'md' | 'lg';
|
|
5
|
-
showTitle?: boolean;
|
|
6
|
-
className?: string;
|
|
7
|
-
subscriptionProductNameStyle?: React.CSSProperties;
|
|
8
|
-
productId?: string;
|
|
9
|
-
isInPreviewMode: boolean;
|
|
10
|
-
showInactiveSubscriptions?: boolean;
|
|
11
|
-
upgradingSubscription?: Subscription;
|
|
12
|
-
setUpgradingSubscription: React.Dispatch<React.SetStateAction<Subscription | undefined>>;
|
|
13
|
-
};
|
|
14
|
-
export declare const SubscriptionsContext: import("react").Context<SubscriptionsContextValues>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const accountSignup: ({ token, apiHost, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, }: {
|
|
2
|
-
token: string;
|
|
3
|
-
apiHost: string;
|
|
4
|
-
accountId: string;
|
|
5
|
-
quoteId?: string;
|
|
6
|
-
paymentToken?: string;
|
|
7
|
-
paymentMethodId?: string;
|
|
8
|
-
pluginId: string;
|
|
9
|
-
priceListCode: string;
|
|
10
|
-
}) => Promise<any>;
|
|
11
|
-
export default accountSignup;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import BillingDetails from '../../types/billingDetails';
|
|
2
|
-
type BillingContact = {
|
|
3
|
-
firstName: string;
|
|
4
|
-
lastName: string;
|
|
5
|
-
email: string;
|
|
6
|
-
};
|
|
7
|
-
declare const quoteAccountSignup: ({ token, apiHost, priceListCode, accountName, billingContact, billingDetails, }: {
|
|
8
|
-
token?: string;
|
|
9
|
-
apiHost: string;
|
|
10
|
-
priceListCode: string;
|
|
11
|
-
accountName: string;
|
|
12
|
-
billingContact: BillingContact;
|
|
13
|
-
billingDetails?: BillingDetails;
|
|
14
|
-
}) => Promise<any>;
|
|
15
|
-
export default quoteAccountSignup;
|