@bunnyapp/components 1.7.0-beta.8 → 1.8.0-beta.10
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 +5727 -4743
- 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/ajax.d.ts +1 -1
- package/dist/cjs/types/src/components/BillingDetails/BillingDetails.d.ts +3 -2
- 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 +2 -1
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +5 -3
- package/dist/cjs/types/src/components/Checkout/QuoteIsLoadingIndicator.d.ts +1 -0
- package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +3 -1
- package/dist/cjs/types/src/components/PandadocPollingModal.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayFormProvider.d.ts +10 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -4
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +1 -5
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +50 -10
- package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -4
- package/dist/cjs/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentForm/components/Pay.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/PaymentMethodDetails.d.ts +12 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Cancel.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Save.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +18 -0
- package/dist/cjs/types/src/components/PaymentForm/context/AccountIdContext.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/context/CallbacksContext.d.ts +14 -0
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentMethodFormVisibilityContext.d.ts +12 -0
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +46 -30
- package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePay.d.ts +14 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +2 -1
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +7 -1
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentHold.d.ts +18 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +4 -1
- package/dist/cjs/types/src/components/PaymentForm/hooks/useSave.d.ts +16 -0
- package/dist/cjs/types/src/components/PaymentForm/types/PaymentType.d.ts +2 -1
- package/dist/cjs/types/src/components/Quote/Quote.d.ts +31 -2
- package/dist/{esm/types/src/components/Quote → cjs/types/src/components/Quote/components}/AcceptQuoteModal.d.ts +3 -3
- package/dist/cjs/types/src/components/Quote/components/NoSigningPluginsForm.d.ts +17 -0
- package/dist/cjs/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +18 -0
- package/dist/cjs/types/src/components/Quote/{PaymentHoldModal.d.ts → components/PaymentHoldModal.d.ts} +5 -1
- package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +13 -4
- package/dist/cjs/types/src/{hooks/quotes/useSendAcceptQuote.d.ts → components/Quote/hooks/useAcceptQuote.d.ts} +6 -3
- package/dist/cjs/types/src/components/Quote/hooks/useQuotePaymentHold.d.ts +20 -0
- package/dist/cjs/types/src/{graphql → components/Quote}/queries/getFormattedQuote.d.ts +6 -1
- package/dist/cjs/types/src/components/Quote/queries/quoteAccept.d.ts +14 -0
- package/dist/cjs/types/src/components/QuoteProvider/context/QuoteContext.d.ts +1 -0
- package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +26 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_PriceListChargeFragment.d.ts +16 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +26 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuoteQuantities_PriceListChargeFragment.d.ts +13 -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 +75 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +14 -3
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +16 -8
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +25 -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/Signup/PaymentForms.d.ts +1 -1
- 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/CheckoutSummary/CheckoutSummary.d.ts +50 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +14 -0
- 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 +19 -0
- package/dist/cjs/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +21 -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/Subscriptions.d.ts +4 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/CheckoutBarInput_PriceListChargeFragment.d.ts +13 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/useChargeCRUD_QuoteFragment.d.ts +22 -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/CheckoutPrice.d.ts +8 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -19
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_PriceListChargeFragment.d.ts +14 -0
- 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/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/priceListCardDesktop/PriceListCardDesktop.d.ts +2 -17
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -5
- 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 +1 -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/priceListCardUtils.d.ts +0 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +10 -4
- 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 +2 -163
- package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +21 -1
- package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +10 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +2 -3
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +4 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +1 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +61 -0
- package/dist/cjs/types/src/components/index.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +4 -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 +3 -0
- package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +3 -3
- 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/graphql/queries/getFormattedInvoice.d.ts +1 -1
- package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +5 -1
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +4 -0
- package/dist/cjs/types/src/types/PriceList.d.ts +1 -0
- package/dist/cjs/types/src/types/frontendTypes/ComponentJSON.d.ts +1 -1
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +4 -4
- package/dist/cjs/types/src/utils/chargeUtils.d.ts +11 -5
- package/dist/cjs/types/src/utils/couponUtils.d.ts +6 -5
- package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +1 -1
- 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/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 +1 -1
- package/dist/esm/index.js +6657 -5673
- 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/ajax.d.ts +1 -1
- package/dist/esm/types/src/components/BillingDetails/BillingDetails.d.ts +3 -2
- 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 +2 -1
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +5 -3
- package/dist/esm/types/src/components/Checkout/QuoteIsLoadingIndicator.d.ts +1 -0
- package/dist/esm/types/src/components/Invoice/Invoice.d.ts +3 -1
- package/dist/esm/types/src/components/PandadocPollingModal.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayFormProvider.d.ts +10 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +2 -4
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +1 -5
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +50 -10
- package/dist/esm/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -4
- package/dist/esm/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentForm/components/Pay.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/PaymentMethodDetails.d.ts +12 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Cancel.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Save.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +18 -0
- package/dist/esm/types/src/components/PaymentForm/context/AccountIdContext.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/context/CallbacksContext.d.ts +14 -0
- package/dist/esm/types/src/components/PaymentForm/context/PaymentMethodFormVisibilityContext.d.ts +12 -0
- package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +46 -30
- package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/usePay.d.ts +14 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +2 -1
- package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +7 -1
- package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentHold.d.ts +18 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +4 -1
- package/dist/esm/types/src/components/PaymentForm/hooks/useSave.d.ts +16 -0
- package/dist/esm/types/src/components/PaymentForm/types/PaymentType.d.ts +2 -1
- package/dist/esm/types/src/components/Quote/Quote.d.ts +31 -2
- package/dist/{cjs/types/src/components/Quote → esm/types/src/components/Quote/components}/AcceptQuoteModal.d.ts +3 -3
- package/dist/esm/types/src/components/Quote/components/NoSigningPluginsForm.d.ts +17 -0
- package/dist/esm/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +18 -0
- package/dist/esm/types/src/components/Quote/{PaymentHoldModal.d.ts → components/PaymentHoldModal.d.ts} +5 -1
- package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +13 -4
- package/dist/esm/types/src/{hooks/quotes/useSendAcceptQuote.d.ts → components/Quote/hooks/useAcceptQuote.d.ts} +6 -3
- package/dist/esm/types/src/components/Quote/hooks/useQuotePaymentHold.d.ts +20 -0
- package/dist/esm/types/src/{graphql → components/Quote}/queries/getFormattedQuote.d.ts +6 -1
- package/dist/esm/types/src/components/Quote/queries/quoteAccept.d.ts +14 -0
- package/dist/esm/types/src/components/QuoteProvider/context/QuoteContext.d.ts +1 -0
- package/dist/esm/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +26 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_PriceListChargeFragment.d.ts +16 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +26 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/useQuoteQuantities_PriceListChargeFragment.d.ts +13 -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 +75 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +14 -3
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +16 -8
- package/dist/esm/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +25 -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/Signup/PaymentForms.d.ts +1 -1
- 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/CheckoutSummary/CheckoutSummary.d.ts +50 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +14 -0
- 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 +19 -0
- package/dist/esm/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +21 -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/Subscriptions.d.ts +4 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/CheckoutBarInput_PriceListChargeFragment.d.ts +13 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/fragments/useChargeCRUD_QuoteFragment.d.ts +22 -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/CheckoutPrice.d.ts +8 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -19
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_PriceListChargeFragment.d.ts +14 -0
- 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/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/priceListCardDesktop/PriceListCardDesktop.d.ts +2 -17
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -5
- 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 +1 -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/priceListCardUtils.d.ts +0 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +10 -4
- 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 +2 -163
- package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +21 -1
- package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +10 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +2 -3
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +4 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +1 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +61 -0
- package/dist/esm/types/src/components/index.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +4 -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 +3 -0
- package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +3 -3
- 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/graphql/queries/getFormattedInvoice.d.ts +1 -1
- package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +5 -1
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +4 -0
- package/dist/esm/types/src/types/PriceList.d.ts +1 -0
- package/dist/esm/types/src/types/frontendTypes/ComponentJSON.d.ts +1 -1
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +4 -4
- package/dist/esm/types/src/utils/chargeUtils.d.ts +11 -5
- package/dist/esm/types/src/utils/couponUtils.d.ts +6 -5
- package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +1 -1
- 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/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 +1 -1
- package/dist/index.d.ts +128 -24
- package/package.json +17 -17
- package/dist/cjs/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +0 -4
- package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +0 -40
- package/dist/cjs/types/src/components/Signup/CheckoutSummary.d.ts +0 -14
- 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/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/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +0 -12
- package/dist/esm/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +0 -4
- package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +0 -40
- package/dist/esm/types/src/components/Signup/CheckoutSummary.d.ts +0 -14
- 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/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/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/components/PaymentForm/components/{PaymentMethodSelector.d.ts → PaymentMethodDetails/components/PaymentMethodSelector.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/components/PaymentForm/components/{PaymentMethodSelector.d.ts → PaymentMethodDetails/components/PaymentMethodSelector.d.ts} +0 -0
- /package/dist/esm/types/src/{hooks/quotes → components/Quote/hooks}/useSigningComplete.d.ts +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FormInstance } from 'antd';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const NoSigningPluginsForm_FormattedQuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
poNumberRequired: boolean | null;
|
|
5
|
+
taxNumberRequired: boolean | null;
|
|
6
|
+
taxNumberLabel: string | null;
|
|
7
|
+
}, {}, {
|
|
8
|
+
fragment: "NoSigningPluginsForm_FormattedQuoteFragment";
|
|
9
|
+
on: "FormattedQuote";
|
|
10
|
+
masked: true;
|
|
11
|
+
}>;
|
|
12
|
+
declare function NoSigningPluginsForm({ isVisible, formattedQuote: maskedFormattedQuote, form, }: {
|
|
13
|
+
isVisible: boolean;
|
|
14
|
+
formattedQuote: FragmentOf<typeof NoSigningPluginsForm_FormattedQuoteFragment>;
|
|
15
|
+
form: FormInstance;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default NoSigningPluginsForm;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PaymentHoldDisplay_PaymentHoldFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
expiresAt: unknown;
|
|
4
|
+
paymentMethod: {
|
|
5
|
+
metadata: {
|
|
6
|
+
identifier: string | null;
|
|
7
|
+
} | null;
|
|
8
|
+
} | null;
|
|
9
|
+
}, {}, {
|
|
10
|
+
fragment: "PaymentHoldDisplay_PaymentHoldFragment";
|
|
11
|
+
on: "PaymentHold";
|
|
12
|
+
masked: true;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function PaymentHoldDisplay({ paymentHold: maskedPaymentHold, currency, amount, }: {
|
|
15
|
+
paymentHold: FragmentOf<typeof PaymentHoldDisplay_PaymentHoldFragment>;
|
|
16
|
+
currency: string | null;
|
|
17
|
+
amount: number;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,14 +8,18 @@ export declare const PaymentHoldModal_FormattedQuoteFragment: import("gql.tada")
|
|
|
8
8
|
};
|
|
9
9
|
currency: string | null;
|
|
10
10
|
amount: number;
|
|
11
|
+
[$tada.fragmentRefs]: {
|
|
12
|
+
NoSigningPluginsForm_FormattedQuoteFragment: "FormattedQuote";
|
|
13
|
+
};
|
|
11
14
|
}, {}, {
|
|
12
15
|
fragment: "PaymentHoldModal_FormattedQuoteFragment";
|
|
13
16
|
on: "FormattedQuote";
|
|
14
17
|
masked: true;
|
|
15
18
|
}>;
|
|
16
|
-
declare const PaymentHoldModal: ({ visible, setVisible, formattedQuote: maskedFormattedQuote, }: {
|
|
19
|
+
declare const PaymentHoldModal: ({ visible, setVisible, formattedQuote: maskedFormattedQuote, sendAccept, }: {
|
|
17
20
|
visible: boolean;
|
|
18
21
|
setVisible: (visible: boolean) => void;
|
|
19
22
|
formattedQuote: FragmentOf<typeof PaymentHoldModal_FormattedQuoteFragment>;
|
|
23
|
+
sendAccept: (changedFields: any) => void;
|
|
20
24
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
25
|
export default PaymentHoldModal;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import PaymentHold from '@/types/PaymentHold';
|
|
2
1
|
import { FragmentOf } from 'gql.tada';
|
|
3
2
|
export declare const QuoteButtons_FormattedQuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
3
|
acceptedAt: unknown;
|
|
@@ -11,16 +10,26 @@ export declare const QuoteButtons_FormattedQuoteFragment: import("gql.tada").Tad
|
|
|
11
10
|
on: "FormattedQuote";
|
|
12
11
|
masked: true;
|
|
13
12
|
}>;
|
|
14
|
-
export declare
|
|
13
|
+
export declare const PaymentHoldDisplay_QuoteButtonsFragment: import("gql.tada").TadaDocumentNode<{
|
|
14
|
+
[$tada.fragmentRefs]: {
|
|
15
|
+
PaymentHoldDisplay_PaymentHoldFragment: "PaymentHold";
|
|
16
|
+
};
|
|
17
|
+
}, {}, {
|
|
18
|
+
fragment: "PaymentHoldDisplay_QuoteButtonsFragment";
|
|
19
|
+
on: "PaymentHold";
|
|
20
|
+
masked: true;
|
|
21
|
+
}>;
|
|
22
|
+
export declare function QuoteButtons({ isAccepted, formattedQuote: maskedFormattedQuote, isMobile, hideDownloadButton, id, isAccepting, handleClickAccept, setPaymentHoldModalVisible, shouldDoPaymentHold, paymentHoldCompleted, paymentHold: maskedPaymentHold, isSendAcceptPending, }: {
|
|
15
23
|
isAccepted: boolean;
|
|
16
24
|
formattedQuote: FragmentOf<typeof QuoteButtons_FormattedQuoteFragment>;
|
|
17
25
|
isMobile: boolean;
|
|
18
26
|
hideDownloadButton?: boolean;
|
|
19
|
-
id?: string;
|
|
27
|
+
id?: string | null | undefined;
|
|
20
28
|
isAccepting: boolean;
|
|
21
29
|
handleClickAccept: () => void;
|
|
22
30
|
setPaymentHoldModalVisible: (visible: boolean) => void;
|
|
23
31
|
shouldDoPaymentHold: boolean;
|
|
24
32
|
paymentHoldCompleted: boolean;
|
|
25
|
-
paymentHold:
|
|
33
|
+
paymentHold: FragmentOf<typeof PaymentHoldDisplay_QuoteButtonsFragment> | undefined | null;
|
|
34
|
+
isSendAcceptPending: boolean;
|
|
26
35
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const useAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }: {
|
|
2
2
|
quoteId?: string;
|
|
3
3
|
apiHost: string;
|
|
4
4
|
token?: string;
|
|
@@ -6,7 +6,11 @@ declare const useSendAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }
|
|
|
6
6
|
}) => {
|
|
7
7
|
acceptBoxVisible: boolean;
|
|
8
8
|
isAccepting: boolean;
|
|
9
|
-
sendAccept: import("@tanstack/react-query").UseMutateFunction<
|
|
9
|
+
sendAccept: import("@tanstack/react-query").UseMutateFunction<{
|
|
10
|
+
quoteAccept: {
|
|
11
|
+
errors: string | null;
|
|
12
|
+
} | null;
|
|
13
|
+
}, Error, {
|
|
10
14
|
[key: string]: string;
|
|
11
15
|
}, unknown>;
|
|
12
16
|
setAcceptBoxVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
@@ -16,4 +20,3 @@ declare const useSendAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }
|
|
|
16
20
|
setPandadocPollingModalVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
21
|
isSendAcceptPending: boolean;
|
|
18
22
|
};
|
|
19
|
-
export default useSendAcceptQuote;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const useQuotePaymentHold_FormattedQuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
quote: {
|
|
4
|
+
payToAccept: boolean | null;
|
|
5
|
+
currentPaymentHold: {
|
|
6
|
+
id: string | null;
|
|
7
|
+
} | null;
|
|
8
|
+
};
|
|
9
|
+
}, {}, {
|
|
10
|
+
fragment: "useQuotePaymentHold_FormattedQuoteFragment";
|
|
11
|
+
on: "FormattedQuote";
|
|
12
|
+
masked: true;
|
|
13
|
+
}>;
|
|
14
|
+
declare const useQuotePaymentHold: (maskedFormattedQuote?: FragmentOf<typeof useQuotePaymentHold_FormattedQuoteFragment>) => {
|
|
15
|
+
paymentHoldModalVisible: boolean;
|
|
16
|
+
setPaymentHoldModalVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
+
shouldDoPaymentHold: boolean;
|
|
18
|
+
paymentHoldCompleted: boolean;
|
|
19
|
+
};
|
|
20
|
+
export default useQuotePaymentHold;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const getFormattedQuote: ({ token, apiHost, id, }: {
|
|
2
2
|
apiHost: string;
|
|
3
3
|
token?: string;
|
|
4
|
-
id?: string;
|
|
4
|
+
id?: string | null | undefined;
|
|
5
5
|
}) => Promise<{
|
|
6
6
|
quote: {
|
|
7
7
|
documentTemplateId: string | null;
|
|
@@ -45,6 +45,9 @@ declare const getFormattedQuote: ({ token, apiHost, id, }: {
|
|
|
45
45
|
kind: string | null;
|
|
46
46
|
} | null;
|
|
47
47
|
} | null;
|
|
48
|
+
[$tada.fragmentRefs]: {
|
|
49
|
+
PaymentHoldDisplay_QuoteButtonsFragment: "PaymentHold";
|
|
50
|
+
};
|
|
48
51
|
} | null;
|
|
49
52
|
};
|
|
50
53
|
payableId: string | null;
|
|
@@ -141,6 +144,8 @@ declare const getFormattedQuote: ({ token, apiHost, id, }: {
|
|
|
141
144
|
taxNumberRequired: boolean | null;
|
|
142
145
|
vendorName: string | null;
|
|
143
146
|
[$tada.fragmentRefs]: {
|
|
147
|
+
useQuotePaymentHold_FormattedQuoteFragment: "FormattedQuote";
|
|
148
|
+
} & {
|
|
144
149
|
PaymentHoldModal_FormattedQuoteFragment: "FormattedQuote";
|
|
145
150
|
} & {
|
|
146
151
|
AcceptQuoteModal_FormattedQuoteFragment: "FormattedQuote";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type QuoteAcceptProps = {
|
|
2
|
+
apiHost: string;
|
|
3
|
+
changedFormItems: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
quoteId?: string;
|
|
7
|
+
token?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const quoteAccept: ({ quoteId, apiHost, token, changedFormItems }: QuoteAcceptProps) => Promise<{
|
|
10
|
+
quoteAccept: {
|
|
11
|
+
errors: string | null;
|
|
12
|
+
} | null;
|
|
13
|
+
}>;
|
|
14
|
+
export default quoteAccept;
|
|
@@ -8,6 +8,7 @@ export type QuoteContextValues = {
|
|
|
8
8
|
isAddonPlanLoading: boolean;
|
|
9
9
|
isFeatureAddonsLoading: boolean;
|
|
10
10
|
isUpdatingQuote: boolean;
|
|
11
|
+
isRecalculatingTaxes: boolean;
|
|
11
12
|
setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
13
|
addFeatureAddonLoading: (featureAddonId: string) => void;
|
|
13
14
|
removeFeatureAddonLoading: (featureAddonId: string) => void;
|
package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const QuantityEditableChargesProvider: ({ value, children }: {
|
|
2
|
+
value: {
|
|
3
|
+
deprecated: boolean | null;
|
|
4
|
+
id: string;
|
|
5
|
+
featureAddon: boolean | null;
|
|
6
|
+
[$tada.fragmentRefs]: {
|
|
7
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
8
|
+
} & {
|
|
9
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
10
|
+
} & {
|
|
11
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
12
|
+
};
|
|
13
|
+
}[];
|
|
14
|
+
children?: import("react").ReactNode;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element, useQuantityEditableChargesContext: () => {
|
|
16
|
+
deprecated: boolean | null;
|
|
17
|
+
id: string;
|
|
18
|
+
featureAddon: boolean | null;
|
|
19
|
+
[$tada.fragmentRefs]: {
|
|
20
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
21
|
+
} & {
|
|
22
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
23
|
+
} & {
|
|
24
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
25
|
+
};
|
|
26
|
+
}[];
|
|
@@ -29,6 +29,7 @@ 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
|
+
name: string;
|
|
32
33
|
} | null;
|
|
33
34
|
feature: {
|
|
34
35
|
id: string;
|
|
@@ -47,6 +48,10 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
|
|
|
47
48
|
FeatureAddonRow_QuoteFragment: "Quote";
|
|
48
49
|
} & {
|
|
49
50
|
PaymentForms_QuoteFragment: "Quote";
|
|
51
|
+
} & {
|
|
52
|
+
useQuantityEditableCharges_QuoteFragment: "Quote";
|
|
53
|
+
} & {
|
|
54
|
+
useChargeCRUD_QuoteFragment: "Quote";
|
|
50
55
|
};
|
|
51
56
|
}, {}, {
|
|
52
57
|
fragment: "QuoteContext_QuoteFragment";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const useQuantityEditableCharges_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
deprecated: boolean | null;
|
|
3
|
+
id: string;
|
|
4
|
+
featureAddon: boolean | null;
|
|
5
|
+
[$tada.fragmentRefs]: {
|
|
6
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
7
|
+
} & {
|
|
8
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
9
|
+
} & {
|
|
10
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
11
|
+
};
|
|
12
|
+
}, {}, {
|
|
13
|
+
fragment: "useQuantityEditableCharges_PriceListChargeFragment";
|
|
14
|
+
on: "PriceListCharge";
|
|
15
|
+
masked: false;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const useQuantityEditableCharges_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
quoteChanges: {
|
|
3
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
4
|
+
charges: {
|
|
5
|
+
priceListCharge: {
|
|
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
|
+
} | null;
|
|
17
|
+
}[];
|
|
18
|
+
[$tada.fragmentRefs]: {
|
|
19
|
+
useSelectedPriceListQuoteChange_QuoteChangeFragment: "QuoteChange";
|
|
20
|
+
};
|
|
21
|
+
}[] | null;
|
|
22
|
+
}, {}, {
|
|
23
|
+
fragment: "useQuantityEditableCharges_QuoteFragment";
|
|
24
|
+
on: "Quote";
|
|
25
|
+
masked: true;
|
|
26
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const useQuoteQuantities_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
feature: {
|
|
3
|
+
id: string;
|
|
4
|
+
} | null;
|
|
5
|
+
id: string;
|
|
6
|
+
quantityMax: number | null;
|
|
7
|
+
quantityMin: number | null;
|
|
8
|
+
selfServiceQuantity: boolean | null;
|
|
9
|
+
}, {}, {
|
|
10
|
+
fragment: "useQuoteQuantities_PriceListChargeFragment";
|
|
11
|
+
on: "PriceListCharge";
|
|
12
|
+
masked: true;
|
|
13
|
+
}>;
|
|
@@ -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,75 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
import { useQuantityEditableCharges_QuoteFragment } from '../fragments/useQuantityEditableCharges_QuoteFragment';
|
|
3
|
+
export declare const useQuantityEditableCharges_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
id: string;
|
|
5
|
+
priceListId: string;
|
|
6
|
+
currentCharges: {
|
|
7
|
+
priceListCharge: {
|
|
8
|
+
deprecated: boolean | null;
|
|
9
|
+
id: string;
|
|
10
|
+
featureAddon: boolean | null;
|
|
11
|
+
[$tada.fragmentRefs]: {
|
|
12
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
13
|
+
} & {
|
|
14
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
15
|
+
} & {
|
|
16
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
17
|
+
};
|
|
18
|
+
} | null;
|
|
19
|
+
}[] | null;
|
|
20
|
+
addonSubscriptions: {
|
|
21
|
+
currentCharges: {
|
|
22
|
+
priceListCharge: {
|
|
23
|
+
deprecated: boolean | null;
|
|
24
|
+
id: string;
|
|
25
|
+
featureAddon: boolean | null;
|
|
26
|
+
[$tada.fragmentRefs]: {
|
|
27
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
28
|
+
} & {
|
|
29
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
30
|
+
} & {
|
|
31
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
32
|
+
};
|
|
33
|
+
} | null;
|
|
34
|
+
}[] | null;
|
|
35
|
+
}[] | null;
|
|
36
|
+
}, {}, {
|
|
37
|
+
fragment: "useQuantityEditableCharges_SubscriptionFragment";
|
|
38
|
+
on: "Subscription";
|
|
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, pricelistId, quote: maskedQuote, }: {
|
|
45
|
+
upgradingSubscription: FragmentOf<typeof useQuantityEditableCharges_SubscriptionFragment> | undefined;
|
|
46
|
+
pricelistId: string | undefined;
|
|
47
|
+
quote: FragmentOf<typeof useQuantityEditableCharges_QuoteFragment> | null | undefined;
|
|
48
|
+
}): {
|
|
49
|
+
quantityEditableCharges: {
|
|
50
|
+
deprecated: boolean | null;
|
|
51
|
+
id: string;
|
|
52
|
+
featureAddon: boolean | null;
|
|
53
|
+
[$tada.fragmentRefs]: {
|
|
54
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
55
|
+
} & {
|
|
56
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
57
|
+
} & {
|
|
58
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
59
|
+
};
|
|
60
|
+
}[];
|
|
61
|
+
findSubscriptionCharge: (priceListChargeId: string) => {
|
|
62
|
+
priceListCharge: {
|
|
63
|
+
deprecated: boolean | null;
|
|
64
|
+
id: string;
|
|
65
|
+
featureAddon: boolean | null;
|
|
66
|
+
[$tada.fragmentRefs]: {
|
|
67
|
+
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
68
|
+
} & {
|
|
69
|
+
PlanPickerCheckoutBar_PriceListChargeFragment: "PriceListCharge";
|
|
70
|
+
} & {
|
|
71
|
+
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
72
|
+
};
|
|
73
|
+
} | null;
|
|
74
|
+
} | undefined;
|
|
75
|
+
};
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import PriceList from '@/types/PriceList';
|
|
2
|
-
import
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const useQuoteCreate_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
id: string;
|
|
5
|
+
priceList: {
|
|
6
|
+
id: string;
|
|
7
|
+
} | null;
|
|
8
|
+
state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
|
|
9
|
+
}, {}, {
|
|
10
|
+
fragment: "useQuoteCreate_SubscriptionFragment";
|
|
11
|
+
on: "Subscription";
|
|
12
|
+
masked: true;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const useQuoteCreate: ({ maskedUpgradingSubscription, selectedPriceList, token, }: {
|
|
15
|
+
maskedUpgradingSubscription?: FragmentOf<typeof useQuoteCreate_SubscriptionFragment>;
|
|
5
16
|
selectedPriceList?: PriceList;
|
|
6
17
|
token?: string;
|
|
7
18
|
}) => {
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
import { useQuoteQuantities_PriceListChargeFragment } from '../fragments/useQuoteQuantities_PriceListChargeFragment';
|
|
3
|
+
export declare const useQuoteQuantities_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
currentCharges: {
|
|
5
|
+
id: string | null;
|
|
6
|
+
quantity: number | null;
|
|
7
|
+
}[] | null;
|
|
8
|
+
}, {}, {
|
|
9
|
+
fragment: "useQuoteQuantities_SubscriptionFragment";
|
|
10
|
+
on: "Subscription";
|
|
11
|
+
masked: true;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const useQuoteQuantities: ({ quantityEditableCharges: maskedQuantityEditableCharges, }: {
|
|
14
|
+
quantityEditableCharges: FragmentOf<typeof useQuoteQuantities_PriceListChargeFragment>[] | undefined;
|
|
7
15
|
}) => {
|
|
8
16
|
onChangeQuantity: (priceListChargeId: string, quantity: number) => void;
|
|
9
|
-
getFeatureQuantity: (featureId: string) => number | undefined;
|
|
10
|
-
|
|
17
|
+
getFeatureQuantity: (featureId: string, chargeId: string) => number | undefined;
|
|
18
|
+
featureQuantities: import("./useFeatureQuantities").FeatureQuantitiesDict;
|
|
11
19
|
};
|
package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const useSelectedPriceListQuoteChange_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
quoteChanges: {
|
|
4
|
+
id: string | null;
|
|
5
|
+
}[] | null;
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "useSelectedPriceListQuoteChange_QuoteFragment";
|
|
8
|
+
on: "Quote";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const useSelectedPriceListQuoteChange_QuoteChangeFragment: import("gql.tada").TadaDocumentNode<{
|
|
12
|
+
id: string | null;
|
|
13
|
+
priceList: {
|
|
14
|
+
id: string;
|
|
15
|
+
} | null;
|
|
16
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
17
|
+
}, {}, {
|
|
18
|
+
fragment: "useSelectedPriceListQuoteChange_QuoteChangeFragment";
|
|
19
|
+
on: "QuoteChange";
|
|
20
|
+
masked: true;
|
|
21
|
+
}>;
|
|
22
|
+
export declare function useSelectedPriceListQuoteChange<T extends FragmentOf<typeof useSelectedPriceListQuoteChange_QuoteChangeFragment>>({ quoteChanges: maskedQuoteChanges, selectedPriceListId, }: {
|
|
23
|
+
quoteChanges: T[] | undefined | null;
|
|
24
|
+
selectedPriceListId: string | undefined;
|
|
25
|
+
}): T | 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;
|
|
@@ -9,7 +9,7 @@ export declare const PaymentForms_QuoteFragment: import("gql.tada").TadaDocument
|
|
|
9
9
|
masked: true;
|
|
10
10
|
}>;
|
|
11
11
|
export default function PaymentForms({ quote: maskedQuote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
|
|
12
|
-
quote?: FragmentOf<typeof PaymentForms_QuoteFragment
|
|
12
|
+
quote?: FragmentOf<typeof PaymentForms_QuoteFragment> | null;
|
|
13
13
|
handlePaymentSuccess: () => void;
|
|
14
14
|
handleSubmit: (formData: FormData) => void;
|
|
15
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,50 @@
|
|
|
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
|
+
canApplyCoupons_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>;
|
|
41
|
+
className?: string;
|
|
42
|
+
onAddCoupon: (couponCode: string) => void;
|
|
43
|
+
onRemoveCoupon: (couponCode: string) => void;
|
|
44
|
+
isRemovingCoupon: boolean;
|
|
45
|
+
priceList: FragmentOf<typeof CheckoutSummary_PriceListFragment> | undefined | null;
|
|
46
|
+
isAddingCoupon: boolean;
|
|
47
|
+
couponCode: string;
|
|
48
|
+
setCouponCode: (couponCode: string) => void;
|
|
49
|
+
activeCouponsExist: boolean;
|
|
50
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ResultOf } from 'gql.tada';
|
|
2
|
+
declare const sortQuoteChangeCharges_QuoteChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
4
|
+
}, {}, {
|
|
5
|
+
fragment: "sortQuoteChangeCharges_QuoteChargeFragment";
|
|
6
|
+
on: "QuoteCharge";
|
|
7
|
+
masked: true;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* Sorts quote change charges so that coupon charges appear at the end of the list.
|
|
11
|
+
* Uses a generic type so the full charge shape is preserved.
|
|
12
|
+
*/
|
|
13
|
+
export declare function sortQuoteChangeCharges<T extends ResultOf<typeof sortQuoteChangeCharges_QuoteChargeFragment>>(charges: T[]): T[];
|
|
14
|
+
export {};
|