@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
package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const QuantityEditableChargesProvider: ({ value, children }: {
|
|
2
|
+
value: {
|
|
3
|
+
feature: {
|
|
4
|
+
id: string;
|
|
5
|
+
} | null;
|
|
6
|
+
deprecated: boolean | null;
|
|
7
|
+
id: string;
|
|
8
|
+
featureAddon: boolean | null;
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
11
|
+
} & {
|
|
12
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
13
|
+
} & {
|
|
14
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
15
|
+
};
|
|
16
|
+
}[] | undefined;
|
|
17
|
+
children?: import("react").ReactNode;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element, useQuantityEditableChargesContext: () => {
|
|
19
|
+
feature: {
|
|
20
|
+
id: string;
|
|
21
|
+
} | null;
|
|
22
|
+
deprecated: boolean | null;
|
|
23
|
+
id: string;
|
|
24
|
+
featureAddon: boolean | null;
|
|
25
|
+
[$tada.fragmentRefs]: {
|
|
26
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
27
|
+
} & {
|
|
28
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
29
|
+
} & {
|
|
30
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
31
|
+
};
|
|
32
|
+
}[] | undefined;
|
|
@@ -29,7 +29,7 @@ export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentN
|
|
|
29
29
|
startDate: unknown;
|
|
30
30
|
}[] | null;
|
|
31
31
|
amount: number | null;
|
|
32
|
-
billingPeriod: "
|
|
32
|
+
billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
33
33
|
currencyId: string;
|
|
34
34
|
feature: {
|
|
35
35
|
unitName: string | null;
|
|
@@ -29,6 +29,9 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
|
|
|
29
29
|
quantityMin: number | null;
|
|
30
30
|
quantityMax: number | null;
|
|
31
31
|
selfServiceQuantity: boolean | null;
|
|
32
|
+
[$tada.fragmentRefs]: {
|
|
33
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
34
|
+
};
|
|
32
35
|
} | null;
|
|
33
36
|
feature: {
|
|
34
37
|
id: string;
|
|
@@ -45,6 +48,8 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
|
|
|
45
48
|
AddonPlanRow_QuoteFragment: "Quote";
|
|
46
49
|
} & {
|
|
47
50
|
FeatureAddonRow_QuoteFragment: "Quote";
|
|
51
|
+
} & {
|
|
52
|
+
PaymentForms_QuoteFragment: "Quote";
|
|
48
53
|
};
|
|
49
54
|
}, {}, {
|
|
50
55
|
fragment: "QuoteContext_QuoteFragment";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export type FeatureQuantitiesDict = Record<string, number | undefined>;
|
|
2
2
|
/**
|
|
3
|
-
* Hook to manage feature quantities
|
|
4
|
-
*
|
|
3
|
+
* Hook to manage feature quantities per (featureId, priceListChargeId) pair.
|
|
4
|
+
* Supports different quantities for different price list charges that share a feature.
|
|
5
5
|
*/
|
|
6
6
|
export declare function useFeatureQuantities({ onFeatureQuantitiesChanged, }: {
|
|
7
7
|
onFeatureQuantitiesChanged?: (featureQuantities: FeatureQuantitiesDict) => void;
|
|
8
8
|
}): {
|
|
9
9
|
featureQuantities: FeatureQuantitiesDict;
|
|
10
|
-
getFeatureQuantity: (featureId: string,
|
|
11
|
-
onUpdateFeatureQuantity: (featureId: string, quantity: number) => void;
|
|
10
|
+
getFeatureQuantity: (featureId: string, priceListChargeId: string, featureQuantitiesSnapshot?: FeatureQuantitiesDict) => number | undefined;
|
|
11
|
+
onUpdateFeatureQuantity: (featureId: string, priceListChargeId: string, quantity: number) => void;
|
|
12
12
|
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { FragmentOf, ResultOf } from 'gql.tada';
|
|
2
|
+
import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
|
|
3
|
+
export declare const useQuantityEditableCharges_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
id: string;
|
|
5
|
+
currentCharges: {
|
|
6
|
+
quantity: number | null;
|
|
7
|
+
priceListCharge: {
|
|
8
|
+
id: string;
|
|
9
|
+
} | null;
|
|
10
|
+
}[] | null;
|
|
11
|
+
}, {}, {
|
|
12
|
+
fragment: "useQuantityEditableCharges_SubscriptionFragment";
|
|
13
|
+
on: "Subscription";
|
|
14
|
+
masked: true;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const useQuantityEditableCharges_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
17
|
+
id: string;
|
|
18
|
+
charges: {
|
|
19
|
+
feature: {
|
|
20
|
+
id: string;
|
|
21
|
+
} | null;
|
|
22
|
+
deprecated: boolean | null;
|
|
23
|
+
id: string;
|
|
24
|
+
featureAddon: boolean | null;
|
|
25
|
+
[$tada.fragmentRefs]: {
|
|
26
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
27
|
+
} & {
|
|
28
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
29
|
+
} & {
|
|
30
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
31
|
+
};
|
|
32
|
+
}[] | null;
|
|
33
|
+
[$tada.fragmentRefs]: {
|
|
34
|
+
useSelectedPriceListQuoteChange_PriceListFragment: "PriceList";
|
|
35
|
+
};
|
|
36
|
+
}, {}, {
|
|
37
|
+
fragment: "useQuantityEditableCharges_PriceListFragment";
|
|
38
|
+
on: "PriceList";
|
|
39
|
+
masked: true;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Hook to provide list of pricelist charges whose quantities can be edited
|
|
43
|
+
*/
|
|
44
|
+
export declare function useQuantityEditableCharges({ upgradingSubscription: maskedUpgradingSubscription, pricelist: maskedPricelist, quote }: {
|
|
45
|
+
upgradingSubscription: FragmentOf<typeof useQuantityEditableCharges_SubscriptionFragment> | undefined;
|
|
46
|
+
pricelist: FragmentOf<typeof useQuantityEditableCharges_PriceListFragment> | null;
|
|
47
|
+
quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
|
|
48
|
+
}): {
|
|
49
|
+
quantityEditableCharges: {
|
|
50
|
+
feature: {
|
|
51
|
+
id: string;
|
|
52
|
+
} | null;
|
|
53
|
+
deprecated: boolean | null;
|
|
54
|
+
id: string;
|
|
55
|
+
featureAddon: boolean | null;
|
|
56
|
+
[$tada.fragmentRefs]: {
|
|
57
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
58
|
+
} & {
|
|
59
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
60
|
+
} & {
|
|
61
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
62
|
+
};
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
findSubscriptionCharge: (priceListChargeId: string) => {
|
|
65
|
+
quantity: number | null;
|
|
66
|
+
priceListCharge: {
|
|
67
|
+
id: string;
|
|
68
|
+
} | null;
|
|
69
|
+
} | undefined;
|
|
70
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import Subscription from '@/types/Subscription';
|
|
2
3
|
export declare const useQuoteCreate: ({ upgradingSubscription, selectedPriceList, token, }: {
|
|
3
4
|
upgradingSubscription?: Subscription;
|
|
4
5
|
selectedPriceList?: PriceList;
|
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ResultOf } from 'gql.tada';
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import { FragmentOf, ResultOf } from 'gql.tada';
|
|
3
3
|
import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const useQuoteQuantities_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
5
|
+
feature: {
|
|
6
|
+
id: string;
|
|
7
|
+
} | null;
|
|
8
|
+
id: string;
|
|
9
|
+
quantityMax: number | null;
|
|
10
|
+
quantityMin: number | null;
|
|
11
|
+
selfServiceQuantity: boolean | null;
|
|
12
|
+
}, {}, {
|
|
13
|
+
fragment: "useQuoteQuantities_PriceListChargeFragment";
|
|
14
|
+
on: "PriceListCharge";
|
|
15
|
+
masked: true;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const useQuoteQuantities_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
18
|
+
currentCharges: {
|
|
19
|
+
id: string | null;
|
|
20
|
+
quantity: number | null;
|
|
21
|
+
}[] | null;
|
|
22
|
+
}, {}, {
|
|
23
|
+
fragment: "useQuoteQuantities_SubscriptionFragment";
|
|
24
|
+
on: "Subscription";
|
|
25
|
+
masked: true;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const useQuoteQuantities: ({ selectedPriceList, quote, quantityEditableCharges: maskedQuantityEditableCharges, }: {
|
|
5
28
|
selectedPriceList: PriceList;
|
|
6
29
|
quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
|
|
30
|
+
quantityEditableCharges: FragmentOf<typeof useQuoteQuantities_PriceListChargeFragment>[] | undefined;
|
|
7
31
|
}) => {
|
|
8
32
|
onChangeQuantity: (priceListChargeId: string, quantity: number) => void;
|
|
9
|
-
getFeatureQuantity: (featureId: string) => number | undefined;
|
|
10
|
-
|
|
33
|
+
getFeatureQuantity: (featureId: string, chargeId: string) => number | undefined;
|
|
34
|
+
featureQuantities: import("./useFeatureQuantities").FeatureQuantitiesDict;
|
|
11
35
|
};
|
package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FragmentOf, ResultOf } from 'gql.tada';
|
|
2
|
+
import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
|
|
3
|
+
export declare const useSelectedPriceListQuoteChange_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
id: string;
|
|
5
|
+
}, {}, {
|
|
6
|
+
fragment: "useSelectedPriceListQuoteChange_PriceListFragment";
|
|
7
|
+
on: "PriceList";
|
|
8
|
+
masked: true;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function useSelectedPriceListQuoteChange({ quote, selectedPriceList: maskedSelectedPriceList, }: {
|
|
11
|
+
quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
|
|
12
|
+
selectedPriceList: FragmentOf<typeof useSelectedPriceListQuoteChange_PriceListFragment> | null;
|
|
13
|
+
}): {
|
|
14
|
+
id: string | null;
|
|
15
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
16
|
+
priceList: {
|
|
17
|
+
id: string;
|
|
18
|
+
} | null;
|
|
19
|
+
charges: {
|
|
20
|
+
priceListCharge: {
|
|
21
|
+
id: string;
|
|
22
|
+
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
23
|
+
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
24
|
+
quantityMin: number | null;
|
|
25
|
+
quantityMax: number | null;
|
|
26
|
+
selfServiceQuantity: boolean | null;
|
|
27
|
+
[$tada.fragmentRefs]: {
|
|
28
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
29
|
+
};
|
|
30
|
+
} | null;
|
|
31
|
+
feature: {
|
|
32
|
+
id: string;
|
|
33
|
+
} | null;
|
|
34
|
+
quantity: number | null;
|
|
35
|
+
id: string | null;
|
|
36
|
+
}[];
|
|
37
|
+
} | undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type QuoteChangeCreateChargeProps = {
|
|
2
|
+
apiHost: string;
|
|
3
|
+
price?: number;
|
|
4
|
+
priceListChargeId?: string;
|
|
5
|
+
quantity?: number;
|
|
6
|
+
quoteChangeId: string;
|
|
7
|
+
startDate: string;
|
|
8
|
+
subscriptionChargeId?: string;
|
|
9
|
+
token?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<{
|
|
12
|
+
quoteChange: {
|
|
13
|
+
id: string | null;
|
|
14
|
+
quoteId: string;
|
|
15
|
+
quote: {
|
|
16
|
+
[$tada.fragmentRefs]: {
|
|
17
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
id: string | null;
|
|
22
|
+
} | null | undefined>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const quoteChargeUpdate: (quoteChargeId: string, quantity: number, apiHost: string, token?: string) => Promise<{
|
|
2
|
+
quoteChange: {
|
|
3
|
+
id: string | null;
|
|
4
|
+
quoteId: string;
|
|
5
|
+
quote: {
|
|
6
|
+
[$tada.fragmentRefs]: {
|
|
7
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
id: string | null;
|
|
12
|
+
} | null | undefined>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mutation key used by all quote-related mutations (create/update/delete quote,
|
|
3
|
+
* quote changes, quote charges, recalculate taxes, etc.).
|
|
4
|
+
* Use this when calling useMutation so that useIsQuoteMutating() can detect loading.
|
|
5
|
+
*/
|
|
6
|
+
export declare const QUOTE_MUTATION_KEY: readonly ["quote"];
|
|
7
|
+
export declare const QUOTE_RECALCULATE_TAXES_MUTATION_KEY: readonly ["quoteRecalculateTaxes"];
|
|
8
|
+
/**
|
|
9
|
+
* Returns the number of quote-related mutations currently in progress.
|
|
10
|
+
* Use in any component to show loading state or disable actions while the quote is being updated.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const isQuoteMutating = useIsQuoteMutating();
|
|
14
|
+
* <Button disabled={isQuoteMutating}>Submit</Button>
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* const count = useIsQuoteMutating();
|
|
18
|
+
* const isQuoteMutating = count > 0;
|
|
19
|
+
*/
|
|
20
|
+
export declare function useIsQuoteMutating(): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Transaction } from '
|
|
1
|
+
import { Transaction } from '@/types/Transaction';
|
|
2
2
|
import { ShadowType } from '../../types/shadowType';
|
|
3
3
|
import { TransactionListColumnType } from '../Transactions/transactionsList/TransactionsListDesktop';
|
|
4
4
|
declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, renderQuote, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
|
|
@@ -1,12 +1,48 @@
|
|
|
1
|
-
import '
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const CheckoutSummary_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
product: {
|
|
4
|
+
name: string;
|
|
5
|
+
} | null;
|
|
6
|
+
name: string;
|
|
7
|
+
}, {}, {
|
|
8
|
+
fragment: "CheckoutSummary_PriceListFragment";
|
|
9
|
+
on: "PriceList";
|
|
10
|
+
masked: true;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const CheckoutSummary_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
13
|
+
id: string | null;
|
|
14
|
+
amountDue: number | null;
|
|
15
|
+
subtotal: number;
|
|
16
|
+
taxAmount: number;
|
|
17
|
+
currencyId: string;
|
|
18
|
+
quoteChanges: {
|
|
19
|
+
charges: {
|
|
20
|
+
id: string | null;
|
|
21
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
22
|
+
name: string | null;
|
|
23
|
+
coupon: {
|
|
24
|
+
couponCode: string;
|
|
25
|
+
} | null;
|
|
26
|
+
quantity: number | null;
|
|
27
|
+
subtotal: number | null;
|
|
28
|
+
currencyId: string;
|
|
29
|
+
}[];
|
|
30
|
+
}[] | null;
|
|
31
|
+
[$tada.fragmentRefs]: {
|
|
32
|
+
shouldShowCouponEditor_QuoteFragment: "Quote";
|
|
33
|
+
};
|
|
34
|
+
}, {}, {
|
|
35
|
+
fragment: "CheckoutSummary_QuoteFragment";
|
|
36
|
+
on: "Quote";
|
|
37
|
+
masked: true;
|
|
38
|
+
}>;
|
|
39
|
+
export default function CheckoutSummary({ quote: maskedQuote, className, onAddCoupon, onRemoveCoupon, isRemovingCoupon, priceList: maskedPriceList, isAddingCoupon, couponCode, setCouponCode, activeCouponsExist, }: {
|
|
40
|
+
quote: FragmentOf<typeof CheckoutSummary_QuoteFragment>;
|
|
5
41
|
className?: string;
|
|
6
42
|
onAddCoupon: (couponCode: string) => void;
|
|
7
43
|
onRemoveCoupon: (couponCode: string) => void;
|
|
8
44
|
isRemovingCoupon: boolean;
|
|
9
|
-
|
|
45
|
+
priceList: FragmentOf<typeof CheckoutSummary_PriceListFragment> | undefined | null;
|
|
10
46
|
isAddingCoupon: boolean;
|
|
11
47
|
couponCode: string;
|
|
12
48
|
setCouponCode: (couponCode: string) => void;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PaymentForms_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
[$tada.fragmentRefs]: {
|
|
4
|
+
PaymentForm_QuoteFragment: "Quote";
|
|
5
|
+
};
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "PaymentForms_QuoteFragment";
|
|
8
|
+
on: "Quote";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
11
|
+
export default function PaymentForms({ quote: maskedQuote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
|
|
12
|
+
quote?: FragmentOf<typeof PaymentForms_QuoteFragment> | null;
|
|
4
13
|
handlePaymentSuccess: () => void;
|
|
5
14
|
handleSubmit: (formData: FormData) => void;
|
|
6
15
|
proceedingToPayment: boolean;
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import '
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PriceListDisplay_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
product: {
|
|
4
|
+
name: string;
|
|
5
|
+
} | null;
|
|
6
|
+
name: string;
|
|
7
|
+
basePrice: number | null;
|
|
8
|
+
currencyId: string;
|
|
9
|
+
trialAllowed: boolean;
|
|
10
|
+
trialLengthDays: number | null;
|
|
11
|
+
periodMonths: number | null;
|
|
12
|
+
}, {}, {
|
|
13
|
+
fragment: "PriceListDisplay_PriceListFragment";
|
|
14
|
+
on: "PriceList";
|
|
15
|
+
masked: true;
|
|
16
|
+
}>;
|
|
17
|
+
export default function PriceListDisplay({ priceList: maskedPriceList }: {
|
|
18
|
+
priceList: FragmentOf<typeof PriceListDisplay_PriceListFragment> | undefined | null;
|
|
5
19
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '../../styles/index.less';
|
|
2
1
|
import { ShadowType } from '../../types/shadowType';
|
|
3
2
|
export default function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, defaultFirstName, defaultLastName, defaultEmail, defaultCompanyName, defaultBillingCountry, }: {
|
|
4
3
|
/** The company name to display on the signup page */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const SelfServiceBuyWarning_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
plan: {
|
|
4
|
+
selfServiceBuy: boolean | null;
|
|
5
|
+
} | null;
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "SelfServiceBuyWarning_PriceListFragment";
|
|
8
|
+
on: "PriceList";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
11
|
+
export default function SelfServiceBuyWarning({ priceList: maskedPriceList, onShowSelfServiceBuyWarning, }: {
|
|
12
|
+
priceList: FragmentOf<typeof SelfServiceBuyWarning_PriceListFragment> | undefined | null;
|
|
13
|
+
onShowSelfServiceBuyWarning: () => void;
|
|
14
|
+
}): null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const Signup_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
[$tada.fragmentRefs]: {
|
|
3
|
+
CheckoutSummary_PriceListFragment: "PriceList";
|
|
4
|
+
} & {
|
|
5
|
+
PriceListDisplay_PriceListFragment: "PriceList";
|
|
6
|
+
} & {
|
|
7
|
+
SelfServiceBuyWarning_PriceListFragment: "PriceList";
|
|
8
|
+
};
|
|
9
|
+
plan: {
|
|
10
|
+
selfServiceBuy: boolean | null;
|
|
11
|
+
} | null;
|
|
12
|
+
trialAllowed: boolean;
|
|
13
|
+
}, {}, {
|
|
14
|
+
fragment: "Signup_PriceListFragment";
|
|
15
|
+
on: "PriceList";
|
|
16
|
+
masked: true;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const Signup_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
[$tada.fragmentRefs]: {
|
|
3
|
+
CheckoutSummary_QuoteFragment: "Quote";
|
|
4
|
+
} & {
|
|
5
|
+
PaymentForms_QuoteFragment: "Quote";
|
|
6
|
+
};
|
|
7
|
+
id: string | null;
|
|
8
|
+
currencyId: string;
|
|
9
|
+
amountDue: number | null;
|
|
10
|
+
quoteChanges: {
|
|
11
|
+
id: string | null;
|
|
12
|
+
}[] | null;
|
|
13
|
+
}, {}, {
|
|
14
|
+
fragment: "Signup_QuoteFragment";
|
|
15
|
+
on: "Quote";
|
|
16
|
+
masked: true;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,58 @@
|
|
|
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<{
|
|
11
|
+
errors: string[] | null;
|
|
12
|
+
quote: {
|
|
13
|
+
accountId: string;
|
|
14
|
+
amount: number;
|
|
15
|
+
amountDue: number | null;
|
|
16
|
+
applicationDate: unknown;
|
|
17
|
+
applied: boolean;
|
|
18
|
+
backdatedPeriods: boolean | null;
|
|
19
|
+
backdatedQuote: boolean | null;
|
|
20
|
+
billingDay: number | null;
|
|
21
|
+
contactId: string | null;
|
|
22
|
+
createdAt: unknown;
|
|
23
|
+
credits: number | null;
|
|
24
|
+
currencyId: string;
|
|
25
|
+
dealId: string | null;
|
|
26
|
+
discount: number | null;
|
|
27
|
+
discountValue: number;
|
|
28
|
+
endDate: unknown;
|
|
29
|
+
evergreen: boolean | null;
|
|
30
|
+
expiresAt: unknown;
|
|
31
|
+
id: string | null;
|
|
32
|
+
invoiceImmediately: boolean | null;
|
|
33
|
+
invoiceImmediatelyAvailable: boolean | null;
|
|
34
|
+
invoiceUntil: unknown;
|
|
35
|
+
isPendingApprovalRequest: boolean;
|
|
36
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
37
|
+
message: string | null;
|
|
38
|
+
name: string | null;
|
|
39
|
+
netPaymentDays: number | null;
|
|
40
|
+
notes: string | null;
|
|
41
|
+
number: string | null;
|
|
42
|
+
ownerId: string | null;
|
|
43
|
+
payableId: string | null;
|
|
44
|
+
periodAmount: number | null;
|
|
45
|
+
poNumber: string | null;
|
|
46
|
+
requiresApproval: boolean;
|
|
47
|
+
smallUnitAmountDue: number | null;
|
|
48
|
+
splitInvoice: boolean | null;
|
|
49
|
+
startDate: unknown;
|
|
50
|
+
state: "APPROVED" | "REJECTED" | "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "UNDONE";
|
|
51
|
+
subtotal: number;
|
|
52
|
+
taxAmount: number;
|
|
53
|
+
taxCode: string | null;
|
|
54
|
+
updatedAt: unknown;
|
|
55
|
+
uuid: string;
|
|
56
|
+
} | null;
|
|
57
|
+
} | null>;
|
|
58
|
+
export default accountSignup;
|
|
@@ -0,0 +1,31 @@
|
|
|
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, trial, }: {
|
|
8
|
+
token?: string;
|
|
9
|
+
apiHost: string;
|
|
10
|
+
priceListCode: string;
|
|
11
|
+
accountName: string;
|
|
12
|
+
billingContact: BillingContact;
|
|
13
|
+
billingDetails?: BillingDetails;
|
|
14
|
+
trial: boolean;
|
|
15
|
+
}) => Promise<{
|
|
16
|
+
account: {
|
|
17
|
+
id: string;
|
|
18
|
+
} | null;
|
|
19
|
+
quote: {
|
|
20
|
+
[$tada.fragmentRefs]: {
|
|
21
|
+
Signup_QuoteFragment: "Quote";
|
|
22
|
+
};
|
|
23
|
+
id: string | null;
|
|
24
|
+
} | null;
|
|
25
|
+
tenant: {
|
|
26
|
+
code: string | null;
|
|
27
|
+
} | null;
|
|
28
|
+
portalSessionToken: string | null;
|
|
29
|
+
errors: string[] | null;
|
|
30
|
+
} | null>;
|
|
31
|
+
export default quoteAccountSignup;
|
|
@@ -2,5 +2,9 @@ declare const quoteRecalculateTaxes: ({ quoteId, apiHost, token, }: {
|
|
|
2
2
|
quoteId: string;
|
|
3
3
|
apiHost: string;
|
|
4
4
|
token?: string;
|
|
5
|
-
}) => Promise<
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
[$tada.fragmentRefs]: {
|
|
7
|
+
Signup_QuoteFragment: "Quote";
|
|
8
|
+
};
|
|
9
|
+
} | null | undefined>;
|
|
6
10
|
export default quoteRecalculateTaxes;
|
package/dist/{esm/types/src/graphql → cjs/types/src/components/Signup}/queries/getPriceList.d.ts
RENAMED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { PriceList } from '@bunnyapp/common';
|
|
2
1
|
declare const getPriceList: ({ token, code, apiHost, }: {
|
|
3
2
|
token?: string;
|
|
4
3
|
code: string;
|
|
5
4
|
apiHost: string;
|
|
6
|
-
}) => Promise<
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
[$tada.fragmentRefs]: {
|
|
7
|
+
Signup_PriceListFragment: "PriceList";
|
|
8
|
+
};
|
|
9
|
+
} | null>;
|
|
7
10
|
export default getPriceList;
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const AddonSubscriptionsCards_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
id: string;
|
|
4
|
+
state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
|
|
5
|
+
[$tada.fragmentRefs]: {
|
|
6
|
+
SubscriptionCardDesktop_SubscriptionFragment: "Subscription";
|
|
7
|
+
} & {
|
|
8
|
+
findAddonSubscriptions_SubscriptionFragment: "Subscription";
|
|
9
|
+
};
|
|
10
|
+
}, {}, {
|
|
11
|
+
fragment: "AddonSubscriptionsCards_SubscriptionFragment";
|
|
12
|
+
on: "Subscription";
|
|
13
|
+
masked: true;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function AddonSubscriptionsCards({ subscriptions: maskedSubscriptions, subscription: maskedSubscription, showInactive, }: {
|
|
16
|
+
subscriptions: FragmentOf<typeof AddonSubscriptionsCards_SubscriptionFragment>[];
|
|
17
|
+
subscription: FragmentOf<typeof AddonSubscriptionsCards_SubscriptionFragment>;
|
|
7
18
|
showInactive: boolean;
|
|
8
19
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
state: "TRIAL" | "ACTIVE" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
|
|
3
|
-
}, {}, {
|
|
4
|
-
fragment: "Subscriptions_SubscriptionFragment";
|
|
5
|
-
on: "Subscription";
|
|
6
|
-
masked: true;
|
|
7
|
-
}>;
|
|
8
|
-
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, }: {
|
|
1
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, onPaymentMethodSaved, onPaymentMethodRemoved, onSubscriptionUpgradeClick, }: {
|
|
9
2
|
handlePortalErrors?: (errors: any) => void;
|
|
10
3
|
companyName: string;
|
|
11
4
|
isInPreviewMode?: boolean;
|
|
@@ -19,5 +12,8 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
|
|
|
19
12
|
noSubscriptionsComponent?: React.ReactNode;
|
|
20
13
|
showInactiveSubscriptions?: boolean;
|
|
21
14
|
showInactiveSubscriptionsToggle?: boolean;
|
|
15
|
+
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
16
|
+
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
17
|
+
onSubscriptionUpgradeClick?: (subscriptionId: string) => void;
|
|
22
18
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
19
|
export default SubscriptionsWrapper;
|