@bunnyapp/components 1.8.0-beta.2 → 1.8.0-beta.21
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 +5124 -4379
- package/dist/cjs/types/src/ajax.d.ts +1 -1
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +6 -6
- package/dist/cjs/types/src/components/DocumentTemplatePreview.d.ts +5 -1
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/DownloadQuoteButton.d.ts +5 -0
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteView.d.ts +8 -0
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteViewWithButtons.d.ts +14 -0
- package/dist/cjs/types/src/components/PandadocPollingModal.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +2 -0
- 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 +35 -14
- package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -4
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +11 -0
- package/dist/cjs/types/src/components/PaymentForm/components/Pay.d.ts +6 -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 +9 -0
- package/dist/cjs/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +5 -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 +62 -37
- package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_QuoteFragment.d.ts +11 -0
- package/dist/cjs/types/src/components/PaymentForm/fragments/StoredPaymentMethods_PaymentMethodsFragment.d.ts +13 -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 +1 -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/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 +28 -1
- package/dist/cjs/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +18 -0
- package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +13 -4
- package/dist/cjs/types/src/components/Quote/components/QuoteIsAcceptedLabel.d.ts +6 -0
- package/dist/{esm/types/src/components/Quote/hooks/useSendAcceptQuote.d.ts → cjs/types/src/components/Quote/hooks/useAcceptQuote.d.ts} +16 -8
- 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 +38 -0
- package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +2 -8
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +3 -3
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -5
- 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/useQuantityEditableCharges.d.ts +41 -36
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +14 -3
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +3 -19
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +18 -30
- package/dist/cjs/types/src/components/Signup/Signup.d.ts +25 -18
- package/dist/cjs/types/src/components/Signup/SignupContent.d.ts +2 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +11 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_PriceListFragment.d.ts +21 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_QuoteFragment.d.ts +32 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +14 -0
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/totalsUtils.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/components/InitialSignupFormFields.d.ts +47 -0
- package/dist/cjs/types/src/components/Signup/components/Logo.d.ts +2 -0
- package/dist/cjs/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +6 -0
- package/dist/cjs/types/src/components/Signup/components/QuoteCreateButton.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +13 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +31 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +34 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts +8 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/fragments/SignupForm_AccountFragment.d.ts +24 -0
- package/dist/cjs/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts +15 -0
- package/dist/cjs/types/src/components/Signup/components/SignupPaymentForm.d.ts +15 -0
- package/dist/cjs/types/src/components/Signup/components/SignupSplitScreenContainer.d.ts +6 -0
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/SuccessDisplay.d.ts +10 -0
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/SignupSuccessDisplay.d.ts +6 -0
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/SuccessIcon.d.ts +2 -0
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/ViewPortalSubscription.d.ts +5 -0
- package/dist/cjs/types/src/components/Signup/fragments/QuoteAcceptPage_PriceListFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/fragments/SignupPaymentForm_QuoteFragment.d.ts +13 -0
- package/dist/cjs/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +9 -2
- package/dist/cjs/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +14 -1
- package/dist/cjs/types/src/components/Signup/fragments/useApplyDefaultCoupon_QuoteFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +10 -0
- package/dist/cjs/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +13 -0
- package/dist/cjs/types/src/components/Signup/hooks/useApplySignupFormDefaults.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/hooks/useQuoteAccountSignupMutation.d.ts +32 -0
- package/dist/cjs/types/src/components/Signup/hooks/useQuoteAccountSignupOnExit.d.ts +46 -0
- package/dist/cjs/types/src/components/Signup/hooks/useQuoteRecalculateTaxes.d.ts +4 -0
- package/dist/cjs/types/src/components/Signup/hooks/useSetSignupQuoteQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/Signup/mutations/contactUpdate.d.ts +12 -0
- package/dist/cjs/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +6 -3
- package/dist/cjs/types/src/components/Signup/mutations/quoteChangeUpdate.d.ts +12 -0
- package/dist/cjs/types/src/components/Signup/mutations/quoteRecalculateTaxes.d.ts +1 -0
- package/dist/cjs/types/src/components/Signup/queries/getAccountByCode.d.ts +8 -0
- package/dist/cjs/types/src/components/Signup/queries/getAccountForSignupCompose.d.ts +20 -0
- package/dist/cjs/types/src/components/Signup/queries/getCurrentUserAccountForSignup.d.ts +14 -0
- package/dist/cjs/types/src/components/Signup/signup-quote/SignupQuote.d.ts +2 -0
- package/dist/cjs/types/src/components/Signup/signup-quote/SignupQuoteProvider.d.ts +9 -0
- package/dist/cjs/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts +14 -0
- package/dist/cjs/types/src/components/Signup/utils/createPortalReturnUrl.d.ts +4 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +1 -13
- 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 +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -14
- 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/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +3 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -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 +9 -1
- package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +4 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +3 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +0 -2
- package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +1 -3
- package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +24 -14
- package/dist/cjs/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +4 -4
- package/dist/cjs/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +5 -2
- package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +4 -0
- package/dist/cjs/types/src/hooks/usePaymentPlugins.d.ts +1 -1
- package/dist/cjs/types/src/hooks/useUpdateCoupons.d.ts +8 -2
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +9 -4
- package/dist/cjs/types/src/utils/chargeUtils.d.ts +1 -0
- package/dist/cjs/types/src/utils/couponUtils.d.ts +6 -6
- package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +1 -1
- package/dist/esm/index.js +5125 -4380
- package/dist/esm/types/src/ajax.d.ts +1 -1
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +6 -6
- package/dist/esm/types/src/components/DocumentTemplatePreview.d.ts +5 -1
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/DownloadQuoteButton.d.ts +5 -0
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteView.d.ts +8 -0
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteViewWithButtons.d.ts +14 -0
- package/dist/esm/types/src/components/PandadocPollingModal.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +2 -0
- 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 +35 -14
- package/dist/esm/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +2 -4
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +11 -0
- package/dist/esm/types/src/components/PaymentForm/components/Pay.d.ts +6 -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 +9 -0
- package/dist/esm/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +5 -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 +62 -37
- package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_QuoteFragment.d.ts +11 -0
- package/dist/esm/types/src/components/PaymentForm/fragments/StoredPaymentMethods_PaymentMethodsFragment.d.ts +13 -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 +1 -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/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 +28 -1
- package/dist/esm/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +18 -0
- package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +13 -4
- package/dist/esm/types/src/components/Quote/components/QuoteIsAcceptedLabel.d.ts +6 -0
- package/dist/{cjs/types/src/components/Quote/hooks/useSendAcceptQuote.d.ts → esm/types/src/components/Quote/hooks/useAcceptQuote.d.ts} +16 -8
- 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 +38 -0
- package/dist/esm/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +2 -8
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +3 -3
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +5 -5
- 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/useQuantityEditableCharges.d.ts +41 -36
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +14 -3
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +3 -19
- package/dist/esm/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +18 -30
- package/dist/esm/types/src/components/Signup/Signup.d.ts +25 -18
- package/dist/esm/types/src/components/Signup/SignupContent.d.ts +2 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +11 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_PriceListFragment.d.ts +21 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_QuoteFragment.d.ts +32 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +14 -0
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/totalsUtils.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/components/InitialSignupFormFields.d.ts +47 -0
- package/dist/esm/types/src/components/Signup/components/Logo.d.ts +2 -0
- package/dist/esm/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +6 -0
- package/dist/esm/types/src/components/Signup/components/QuoteCreateButton.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +13 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +31 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +34 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts +8 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/fragments/SignupForm_AccountFragment.d.ts +24 -0
- package/dist/esm/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts +15 -0
- package/dist/esm/types/src/components/Signup/components/SignupPaymentForm.d.ts +15 -0
- package/dist/esm/types/src/components/Signup/components/SignupSplitScreenContainer.d.ts +6 -0
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/SuccessDisplay.d.ts +10 -0
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/SignupSuccessDisplay.d.ts +6 -0
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/SuccessIcon.d.ts +2 -0
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/ViewPortalSubscription.d.ts +5 -0
- package/dist/esm/types/src/components/Signup/fragments/QuoteAcceptPage_PriceListFragment.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/fragments/SignupPaymentForm_QuoteFragment.d.ts +13 -0
- package/dist/esm/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +9 -2
- package/dist/esm/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +14 -1
- package/dist/esm/types/src/components/Signup/fragments/useApplyDefaultCoupon_QuoteFragment.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +10 -0
- package/dist/esm/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +13 -0
- package/dist/esm/types/src/components/Signup/hooks/useApplySignupFormDefaults.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/hooks/useQuoteAccountSignupMutation.d.ts +32 -0
- package/dist/esm/types/src/components/Signup/hooks/useQuoteAccountSignupOnExit.d.ts +46 -0
- package/dist/esm/types/src/components/Signup/hooks/useQuoteRecalculateTaxes.d.ts +4 -0
- package/dist/esm/types/src/components/Signup/hooks/useSetSignupQuoteQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/Signup/mutations/contactUpdate.d.ts +12 -0
- package/dist/esm/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +6 -3
- package/dist/esm/types/src/components/Signup/mutations/quoteChangeUpdate.d.ts +12 -0
- package/dist/esm/types/src/components/Signup/mutations/quoteRecalculateTaxes.d.ts +1 -0
- package/dist/esm/types/src/components/Signup/queries/getAccountByCode.d.ts +8 -0
- package/dist/esm/types/src/components/Signup/queries/getAccountForSignupCompose.d.ts +20 -0
- package/dist/esm/types/src/components/Signup/queries/getCurrentUserAccountForSignup.d.ts +14 -0
- package/dist/esm/types/src/components/Signup/signup-quote/SignupQuote.d.ts +2 -0
- package/dist/esm/types/src/components/Signup/signup-quote/SignupQuoteProvider.d.ts +9 -0
- package/dist/esm/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts +14 -0
- package/dist/esm/types/src/components/Signup/utils/createPortalReturnUrl.d.ts +4 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +1 -13
- 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 +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +0 -14
- 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/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +3 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -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 +9 -1
- package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +4 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +3 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +0 -2
- package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +1 -3
- package/dist/esm/types/src/graphql/mutations/checkout.d.ts +24 -14
- package/dist/esm/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +4 -4
- package/dist/esm/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +5 -2
- package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +4 -0
- package/dist/esm/types/src/hooks/usePaymentPlugins.d.ts +1 -1
- package/dist/esm/types/src/hooks/useUpdateCoupons.d.ts +8 -2
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +9 -4
- package/dist/esm/types/src/utils/chargeUtils.d.ts +1 -0
- package/dist/esm/types/src/utils/couponUtils.d.ts +6 -6
- package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +1 -1
- package/dist/index.d.ts +132 -34
- package/package.json +7 -4
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +0 -12
- 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 -41
- package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +0 -11
- package/dist/cjs/types/src/components/Signup/CheckoutSummary.d.ts +0 -50
- package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +0 -39
- package/dist/cjs/types/src/components/Signup/PaymentSuccess.d.ts +0 -8
- package/dist/cjs/types/src/components/Signup/mutations/accountSignup.d.ts +0 -58
- package/dist/cjs/types/src/components/Signup/queries/getQuote.d.ts +0 -10
- package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +0 -12
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.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 -41
- package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +0 -11
- package/dist/esm/types/src/components/Signup/CheckoutSummary.d.ts +0 -50
- package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +0 -39
- package/dist/esm/types/src/components/Signup/PaymentSuccess.d.ts +0 -8
- package/dist/esm/types/src/components/Signup/mutations/accountSignup.d.ts +0 -58
- package/dist/esm/types/src/components/Signup/queries/getQuote.d.ts +0 -10
- package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +0 -12
- /package/dist/cjs/types/src/components/PaymentForm/components/{PaymentMethodSelector.d.ts → PaymentMethodDetails/components/PaymentMethodSelector.d.ts} +0 -0
- /package/dist/cjs/types/src/components/Signup/{PriceListDisplay.d.ts → components/PriceListDisplay.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/components/Signup/{PriceListDisplay.d.ts → components/PriceListDisplay.d.ts} +0 -0
|
@@ -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;
|
|
@@ -6,22 +5,32 @@ export declare const QuoteButtons_FormattedQuoteFragment: import("gql.tada").Tad
|
|
|
6
5
|
currency: string | null;
|
|
7
6
|
amount: number;
|
|
8
7
|
expiresAt: unknown;
|
|
8
|
+
state: "APPROVED" | "REJECTED" | "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "UNDONE";
|
|
9
9
|
}, {}, {
|
|
10
10
|
fragment: "QuoteButtons_FormattedQuoteFragment";
|
|
11
11
|
on: "FormattedQuote";
|
|
12
12
|
masked: true;
|
|
13
13
|
}>;
|
|
14
|
-
export declare
|
|
14
|
+
export declare const PaymentHoldDisplay_QuoteButtonsFragment: import("gql.tada").TadaDocumentNode<{
|
|
15
|
+
[$tada.fragmentRefs]: {
|
|
16
|
+
PaymentHoldDisplay_PaymentHoldFragment: "PaymentHold";
|
|
17
|
+
};
|
|
18
|
+
}, {}, {
|
|
19
|
+
fragment: "PaymentHoldDisplay_QuoteButtonsFragment";
|
|
20
|
+
on: "PaymentHold";
|
|
21
|
+
masked: true;
|
|
22
|
+
}>;
|
|
23
|
+
export declare function QuoteButtons({ isAccepted, formattedQuote: maskedFormattedQuote, isMobile, hideDownloadButton, id, isAccepting, handleClickAccept, setPaymentHoldModalVisible, shouldDoPaymentHold, paymentHoldCompleted, paymentHold: maskedPaymentHold, isSendAcceptPending, }: {
|
|
15
24
|
isAccepted: boolean;
|
|
16
25
|
formattedQuote: FragmentOf<typeof QuoteButtons_FormattedQuoteFragment>;
|
|
17
26
|
isMobile: boolean;
|
|
18
27
|
hideDownloadButton?: boolean;
|
|
19
|
-
id?: string;
|
|
28
|
+
id?: string | null | undefined;
|
|
20
29
|
isAccepting: boolean;
|
|
21
30
|
handleClickAccept: () => void;
|
|
22
31
|
setPaymentHoldModalVisible: (visible: boolean) => void;
|
|
23
32
|
shouldDoPaymentHold: boolean;
|
|
24
33
|
paymentHoldCompleted: boolean;
|
|
25
|
-
paymentHold:
|
|
34
|
+
paymentHold: FragmentOf<typeof PaymentHoldDisplay_QuoteButtonsFragment> | undefined | null;
|
|
26
35
|
isSendAcceptPending: boolean;
|
|
27
36
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type QuoteIsAcceptedLabelProps = {
|
|
2
|
+
acceptedByName?: string | null;
|
|
3
|
+
acceptedAt: string;
|
|
4
|
+
};
|
|
5
|
+
declare const QuoteIsAcceptedLabel: ({ acceptedByName, acceptedAt }: QuoteIsAcceptedLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default QuoteIsAcceptedLabel;
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import { type QuoteAcceptInput, type QuoteAcceptedData } from '../queries/quoteAccept';
|
|
2
|
+
export declare const useAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }: {
|
|
2
3
|
quoteId?: string;
|
|
3
4
|
apiHost: string;
|
|
4
5
|
token?: string;
|
|
5
|
-
onQuoteAccepted?: () => void;
|
|
6
|
+
onQuoteAccepted?: (data: QuoteAcceptedData | null) => void;
|
|
6
7
|
}) => {
|
|
7
8
|
acceptBoxVisible: boolean;
|
|
8
9
|
isAccepting: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
pandadocPollingModalVisible: boolean;
|
|
11
|
+
isSendAcceptPending: boolean;
|
|
12
|
+
hasSigningPlugins: boolean | undefined;
|
|
13
|
+
sendAccept: import("@tanstack/react-query").UseMutateFunction<{
|
|
14
|
+
quoteAccept: {
|
|
15
|
+
quote: {
|
|
16
|
+
[$tada.fragmentRefs]: {
|
|
17
|
+
QuoteAccept_AcceptedQuoteFragment: "Quote";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
errors: string | null;
|
|
21
|
+
} | null;
|
|
22
|
+
}, Error, QuoteAcceptInput, unknown>;
|
|
12
23
|
setAcceptBoxVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
13
24
|
setIsAccepting: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
14
25
|
startAcceptance: () => void;
|
|
15
|
-
pandadocPollingModalVisible: boolean;
|
|
16
26
|
setPandadocPollingModalVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
-
isSendAcceptPending: boolean;
|
|
18
27
|
};
|
|
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,38 @@
|
|
|
1
|
+
import { ResultOf } from 'gql.tada';
|
|
2
|
+
export declare const QuoteAccept_AcceptedQuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
id: string | null;
|
|
4
|
+
state: "APPROVED" | "REJECTED" | "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "UNDONE";
|
|
5
|
+
acceptedAt: unknown;
|
|
6
|
+
acceptedByName: string | null;
|
|
7
|
+
acceptedByTitle: string | null;
|
|
8
|
+
}, {}, {
|
|
9
|
+
fragment: "QuoteAccept_AcceptedQuoteFragment";
|
|
10
|
+
on: "Quote";
|
|
11
|
+
masked: true;
|
|
12
|
+
}>;
|
|
13
|
+
export type QuoteAcceptedData = ResultOf<typeof QuoteAccept_AcceptedQuoteFragment>;
|
|
14
|
+
/** Values passed to the quote accept mutation (excluding apiHost, token, quoteId). */
|
|
15
|
+
export type QuoteAcceptInput = {
|
|
16
|
+
name: string;
|
|
17
|
+
title: string;
|
|
18
|
+
poNumber?: string | null;
|
|
19
|
+
taxNumber?: string | null;
|
|
20
|
+
};
|
|
21
|
+
/** Map `NoSigningPluginsForm` field values to `QuoteAcceptInput`. */
|
|
22
|
+
export declare function quoteAcceptInputFromNoSigningForm(values: Record<string, unknown>): QuoteAcceptInput;
|
|
23
|
+
type QuoteAcceptProps = {
|
|
24
|
+
apiHost: string;
|
|
25
|
+
token?: string;
|
|
26
|
+
quoteId?: string | null;
|
|
27
|
+
} & QuoteAcceptInput;
|
|
28
|
+
declare const quoteAccept: ({ quoteId, apiHost, token, name, title, poNumber, taxNumber, }: QuoteAcceptProps) => Promise<{
|
|
29
|
+
quoteAccept: {
|
|
30
|
+
quote: {
|
|
31
|
+
[$tada.fragmentRefs]: {
|
|
32
|
+
QuoteAccept_AcceptedQuoteFragment: "Quote";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
errors: string | null;
|
|
36
|
+
} | null;
|
|
37
|
+
}>;
|
|
38
|
+
export default quoteAccept;
|
package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export declare const QuantityEditableChargesProvider: ({ value, children }: {
|
|
2
2
|
value: {
|
|
3
|
-
feature: {
|
|
4
|
-
id: string;
|
|
5
|
-
} | null;
|
|
6
3
|
deprecated: boolean | null;
|
|
7
4
|
id: string;
|
|
8
5
|
featureAddon: boolean | null;
|
|
@@ -13,12 +10,9 @@ export declare const QuantityEditableChargesProvider: ({ value, children }: {
|
|
|
13
10
|
} & {
|
|
14
11
|
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
15
12
|
};
|
|
16
|
-
}[]
|
|
13
|
+
}[];
|
|
17
14
|
children?: import("react").ReactNode;
|
|
18
15
|
}) => import("react/jsx-runtime").JSX.Element, useQuantityEditableChargesContext: () => {
|
|
19
|
-
feature: {
|
|
20
|
-
id: string;
|
|
21
|
-
} | null;
|
|
22
16
|
deprecated: boolean | null;
|
|
23
17
|
id: string;
|
|
24
18
|
featureAddon: boolean | null;
|
|
@@ -29,4 +23,4 @@ export declare const QuantityEditableChargesProvider: ({ value, children }: {
|
|
|
29
23
|
} & {
|
|
30
24
|
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
31
25
|
};
|
|
32
|
-
}[]
|
|
26
|
+
}[];
|
|
@@ -17,11 +17,11 @@ export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentN
|
|
|
17
17
|
amount: number | null;
|
|
18
18
|
startDate: unknown;
|
|
19
19
|
}[];
|
|
20
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
20
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
21
21
|
quoteChanges: {
|
|
22
22
|
currencyId: string;
|
|
23
23
|
id: string | null;
|
|
24
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
24
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
25
25
|
charges: {
|
|
26
26
|
subtotal: number | null;
|
|
27
27
|
amountsByPeriod: {
|
|
@@ -46,7 +46,7 @@ export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentN
|
|
|
46
46
|
couponCode: string;
|
|
47
47
|
} | null;
|
|
48
48
|
quantity: number | null;
|
|
49
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
49
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
50
50
|
}[];
|
|
51
51
|
priceList: {
|
|
52
52
|
id: string;
|
|
@@ -17,7 +17,7 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
|
|
|
17
17
|
startDate: unknown;
|
|
18
18
|
quoteChanges: {
|
|
19
19
|
id: string | null;
|
|
20
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
20
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
21
21
|
priceList: {
|
|
22
22
|
id: string;
|
|
23
23
|
} | null;
|
|
@@ -29,9 +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
|
-
|
|
33
|
-
CanEditChargeQuantity_PriceListChargeFragment: "PriceListCharge";
|
|
34
|
-
};
|
|
32
|
+
name: string;
|
|
35
33
|
} | null;
|
|
36
34
|
feature: {
|
|
37
35
|
id: string;
|
|
@@ -49,7 +47,9 @@ export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocument
|
|
|
49
47
|
} & {
|
|
50
48
|
FeatureAddonRow_QuoteFragment: "Quote";
|
|
51
49
|
} & {
|
|
52
|
-
|
|
50
|
+
useQuantityEditableCharges_QuoteFragment: "Quote";
|
|
51
|
+
} & {
|
|
52
|
+
useChargeCRUD_QuoteFragment: "Quote";
|
|
53
53
|
};
|
|
54
54
|
}, {}, {
|
|
55
55
|
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" | "PERCENTAGE_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,55 +1,52 @@
|
|
|
1
|
-
import { FragmentOf
|
|
2
|
-
import {
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
import { useQuantityEditableCharges_QuoteFragment } from '../fragments/useQuantityEditableCharges_QuoteFragment';
|
|
3
3
|
export declare const useQuantityEditableCharges_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
4
|
id: string;
|
|
5
|
+
priceListId: string;
|
|
5
6
|
currentCharges: {
|
|
6
|
-
quantity: number | null;
|
|
7
7
|
priceListCharge: {
|
|
8
|
+
deprecated: boolean | null;
|
|
8
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
|
+
};
|
|
9
18
|
} | null;
|
|
10
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;
|
|
11
36
|
}, {}, {
|
|
12
37
|
fragment: "useQuantityEditableCharges_SubscriptionFragment";
|
|
13
38
|
on: "Subscription";
|
|
14
39
|
masked: true;
|
|
15
40
|
}>;
|
|
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
41
|
/**
|
|
42
42
|
* Hook to provide list of pricelist charges whose quantities can be edited
|
|
43
43
|
*/
|
|
44
|
-
export declare function useQuantityEditableCharges({ upgradingSubscription: maskedUpgradingSubscription,
|
|
44
|
+
export declare function useQuantityEditableCharges({ upgradingSubscription: maskedUpgradingSubscription, pricelistId, quote: maskedQuote, }: {
|
|
45
45
|
upgradingSubscription: FragmentOf<typeof useQuantityEditableCharges_SubscriptionFragment> | undefined;
|
|
46
|
-
|
|
47
|
-
quote:
|
|
46
|
+
pricelistId: string | undefined;
|
|
47
|
+
quote: FragmentOf<typeof useQuantityEditableCharges_QuoteFragment> | null | undefined;
|
|
48
48
|
}): {
|
|
49
49
|
quantityEditableCharges: {
|
|
50
|
-
feature: {
|
|
51
|
-
id: string;
|
|
52
|
-
} | null;
|
|
53
50
|
deprecated: boolean | null;
|
|
54
51
|
id: string;
|
|
55
52
|
featureAddon: boolean | null;
|
|
@@ -60,11 +57,19 @@ export declare function useQuantityEditableCharges({ upgradingSubscription: mask
|
|
|
60
57
|
} & {
|
|
61
58
|
useQuoteQuantities_PriceListChargeFragment: "PriceListCharge";
|
|
62
59
|
};
|
|
63
|
-
}[]
|
|
60
|
+
}[];
|
|
64
61
|
findSubscriptionCharge: (priceListChargeId: string) => {
|
|
65
|
-
quantity: number | null;
|
|
66
62
|
priceListCharge: {
|
|
63
|
+
deprecated: boolean | null;
|
|
67
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
|
+
};
|
|
68
73
|
} | null;
|
|
69
74
|
} | undefined;
|
|
70
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,19 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { QuoteContext_QuoteFragment } from '../fragments/quoteFragment';
|
|
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
|
-
}>;
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
import { useQuoteQuantities_PriceListChargeFragment } from '../fragments/useQuoteQuantities_PriceListChargeFragment';
|
|
17
3
|
export declare const useQuoteQuantities_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
18
4
|
currentCharges: {
|
|
19
5
|
id: string | null;
|
|
@@ -24,9 +10,7 @@ export declare const useQuoteQuantities_SubscriptionFragment: import("gql.tada")
|
|
|
24
10
|
on: "Subscription";
|
|
25
11
|
masked: true;
|
|
26
12
|
}>;
|
|
27
|
-
export declare const useQuoteQuantities: ({
|
|
28
|
-
selectedPriceList: PriceList;
|
|
29
|
-
quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
|
|
13
|
+
export declare const useQuoteQuantities: ({ quantityEditableCharges: maskedQuantityEditableCharges, }: {
|
|
30
14
|
quantityEditableCharges: FragmentOf<typeof useQuoteQuantities_PriceListChargeFragment>[] | undefined;
|
|
31
15
|
}) => {
|
|
32
16
|
onChangeQuantity: (priceListChargeId: string, quantity: number) => void;
|
package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts
CHANGED
|
@@ -1,37 +1,25 @@
|
|
|
1
|
-
import { FragmentOf
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const useSelectedPriceListQuoteChange_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
quoteChanges: {
|
|
4
|
+
id: string | null;
|
|
5
|
+
}[] | null;
|
|
5
6
|
}, {}, {
|
|
6
|
-
fragment: "
|
|
7
|
-
on: "
|
|
7
|
+
fragment: "useSelectedPriceListQuoteChange_QuoteFragment";
|
|
8
|
+
on: "Quote";
|
|
8
9
|
masked: true;
|
|
9
10
|
}>;
|
|
10
|
-
export declare
|
|
11
|
-
quote: ResultOf<typeof QuoteContext_QuoteFragment> | null | undefined;
|
|
12
|
-
selectedPriceList: FragmentOf<typeof useSelectedPriceListQuoteChange_PriceListFragment> | null;
|
|
13
|
-
}): {
|
|
11
|
+
export declare const useSelectedPriceListQuoteChange_QuoteChangeFragment: import("gql.tada").TadaDocumentNode<{
|
|
14
12
|
id: string | null;
|
|
15
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
16
13
|
priceList: {
|
|
17
14
|
id: string;
|
|
18
15
|
} | null;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
} | null;
|
|
31
|
-
feature: {
|
|
32
|
-
id: string;
|
|
33
|
-
} | null;
|
|
34
|
-
quantity: number | null;
|
|
35
|
-
id: string | null;
|
|
36
|
-
}[];
|
|
37
|
-
} | undefined;
|
|
16
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_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;
|
|
@@ -1,27 +1,34 @@
|
|
|
1
|
+
import type { FormInstance } from "antd/es/form";
|
|
1
2
|
import { ShadowType } from '../../types/shadowType';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
companyName: string;
|
|
5
|
-
/** The price list code to use for the signup */
|
|
3
|
+
import { type DefaultSignupValues, InitialSignupFormData, type RequiredBillingDetailsFlags } from "./components/InitialSignupFormFields";
|
|
4
|
+
export type SignupProps = {
|
|
6
5
|
priceListCode: string;
|
|
7
|
-
/**
|
|
6
|
+
/** If trial is allowed on priceList, enableTrial will enable the trial for the signup */
|
|
7
|
+
enableTrial?: boolean;
|
|
8
|
+
/** The URL to redirect to after the signup is complete */
|
|
8
9
|
returnUrl?: string;
|
|
9
|
-
/** An optional coupon code that gets applied automatically */
|
|
10
|
-
couponCode?: string;
|
|
11
10
|
/** A custom class name to apply to the component */
|
|
12
11
|
className?: string;
|
|
13
12
|
/** The shadow level to apply to the component */
|
|
14
13
|
shadow?: ShadowType;
|
|
15
14
|
/** A custom style to apply to the component */
|
|
16
15
|
style?: React.CSSProperties;
|
|
17
|
-
/** The default
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
/** The
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
/** The default form values to use for the signup */
|
|
17
|
+
defaultFormValues?: DefaultSignupValues;
|
|
18
|
+
/** Whether to require quote acceptance before checking out */
|
|
19
|
+
paymentRequiredToAcceptQuote?: boolean;
|
|
20
|
+
/** The document template ID to apply to the quote for the signup */
|
|
21
|
+
documentTemplateId?: string;
|
|
22
|
+
/** Which account billing fields to show and require. Omit for legacy behavior (country required only). */
|
|
23
|
+
requiredBillingDetails?: RequiredBillingDetailsFlags;
|
|
24
|
+
};
|
|
25
|
+
declare const useSignupPortalSessionToken: () => [string | undefined, import("react").Dispatch<import("react").SetStateAction<string | undefined>>];
|
|
26
|
+
declare const useSignupAccountId: () => [string | undefined, import("react").Dispatch<import("react").SetStateAction<string | undefined>>];
|
|
27
|
+
declare const useSignupPurchaseSucceeded: () => [boolean, import("react").Dispatch<import("react").SetStateAction<boolean>>];
|
|
28
|
+
declare const useSignupForm: () => FormInstance<InitialSignupFormData>;
|
|
29
|
+
declare const useSignupOptions: () => {
|
|
30
|
+
enableTrial: boolean;
|
|
31
|
+
paymentRequiredToAcceptQuote?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export default function Signup({ priceListCode, enableTrial, returnUrl, className, shadow, style, defaultFormValues, paymentRequiredToAcceptQuote, documentTemplateId, requiredBillingDetails, }: SignupProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export { useSignupAccountId, useSignupForm, useSignupOptions, useSignupPortalSessionToken, useSignupPurchaseSucceeded };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
import { CheckoutSummary_PriceListFragment } from './fragments/CheckoutSummary_PriceListFragment';
|
|
3
|
+
import { CheckoutSummary_QuoteFragment } from './fragments/CheckoutSummary_QuoteFragment';
|
|
4
|
+
export default function CheckoutSummary({ quote: maskedQuote, className, priceList: maskedPriceList, defaultCouponCode, }: {
|
|
5
|
+
quote: FragmentOf<typeof CheckoutSummary_QuoteFragment> | undefined;
|
|
6
|
+
className?: string;
|
|
7
|
+
priceList: FragmentOf<typeof CheckoutSummary_PriceListFragment> | undefined | null;
|
|
8
|
+
defaultCouponCode?: string;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
subtotal: number;
|
|
3
|
+
taxes?: number;
|
|
4
|
+
amountDue: number | null;
|
|
5
|
+
currencyId: string;
|
|
6
|
+
taxCalculationMessage?: string;
|
|
7
|
+
/** When true, shows an “(estimated)” label with a tooltip next to each amount. */
|
|
8
|
+
isEstimated: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function CheckoutSummaryTotals({ subtotal, taxes, amountDue, currencyId, taxCalculationMessage, isEstimated, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|