@bunnyapp/components 1.8.1 → 1.8.3
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/README.md +51 -0
- package/dist/cjs/index.js +147 -30182
- package/dist/cjs/types/src/ajax.d.ts +1 -1
- package/dist/cjs/types/src/components/BillingDetails/BillingDetails.d.ts +2 -5
- package/dist/cjs/types/src/components/BillingDetails/BillingDetails.stories.d.ts +2 -4
- package/dist/cjs/types/src/components/BunnyProvider/BunnyProvider.d.ts +2 -1
- package/dist/cjs/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +2 -0
- 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/Invoice.stories.d.ts +1 -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 +37 -18
- 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/Collapsible.d.ts +7 -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/constants.d.ts +1 -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/Quote.stories.d.ts +1 -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 +18 -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/Quotes/Quotes.stories.d.ts +1 -1
- package/dist/cjs/types/src/components/Signup/Signup.d.ts +26 -24
- package/dist/cjs/types/src/components/Signup/Signup.stories.d.ts +1 -2
- 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 +30 -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/LoadingOverlay.d.ts +4 -0
- package/dist/cjs/types/src/components/Signup/components/Logo.d.ts +2 -0
- package/dist/{esm/types/src/components/Signup → cjs/types/src/components/Signup/components}/PriceListDisplay.d.ts +11 -1
- package/dist/cjs/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +6 -0
- package/dist/cjs/types/src/components/Signup/components/QuoteCreateButton.d.ts +6 -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/consts.d.ts +1 -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 -3
- package/dist/cjs/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +15 -1
- package/dist/cjs/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +10 -0
- package/dist/cjs/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +4 -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 +29 -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 +12 -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/queries/{getQuote.d.ts → getSignupQuote.d.ts} +2 -2
- 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/Subscriptions.stories.d.ts +1 -1
- 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/EverythingPlanFeatures.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/GridTemplateColumnsWrapper.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/PlanFeatures.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureGroup.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureTitle.d.ts +6 -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/planPickerDesktop/util.d.ts +7 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +1 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.stories.d.ts +12 -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/Subscriptions_SubscriptionFragment.d.ts +0 -2
- 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/getSubscriptionChargeHistograms.d.ts +16 -0
- package/dist/cjs/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +0 -184
- 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/SubscriptionListSkeleton.d.ts +4 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +3 -11
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/UsageCell.d.ts +8 -0
- 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/Transactions/Transactions.stories.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/useAllErrorFormats.d.ts +2 -1
- package/dist/cjs/types/src/hooks/useIsExpired.d.ts +2 -1
- package/dist/cjs/types/src/hooks/useIsVisible.d.ts +4 -0
- 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 +17 -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 +147 -30169
- package/dist/esm/types/src/ajax.d.ts +1 -1
- package/dist/esm/types/src/components/BillingDetails/BillingDetails.d.ts +2 -5
- package/dist/esm/types/src/components/BillingDetails/BillingDetails.stories.d.ts +2 -4
- package/dist/esm/types/src/components/BunnyProvider/BunnyProvider.d.ts +2 -1
- package/dist/esm/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +2 -0
- 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/Invoice.stories.d.ts +1 -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 +37 -18
- 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/Collapsible.d.ts +7 -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/constants.d.ts +1 -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/Quote.stories.d.ts +1 -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 +18 -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/Quotes/Quotes.stories.d.ts +1 -1
- package/dist/esm/types/src/components/Signup/Signup.d.ts +26 -24
- package/dist/esm/types/src/components/Signup/Signup.stories.d.ts +1 -2
- 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 +30 -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/LoadingOverlay.d.ts +4 -0
- package/dist/esm/types/src/components/Signup/components/Logo.d.ts +2 -0
- package/dist/{cjs/types/src/components/Signup → esm/types/src/components/Signup/components}/PriceListDisplay.d.ts +11 -1
- package/dist/esm/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +6 -0
- package/dist/esm/types/src/components/Signup/components/QuoteCreateButton.d.ts +6 -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/consts.d.ts +1 -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 -3
- package/dist/esm/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +15 -1
- package/dist/esm/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +10 -0
- package/dist/esm/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +4 -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 +29 -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 +12 -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/queries/{getQuote.d.ts → getSignupQuote.d.ts} +2 -2
- 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/Subscriptions.stories.d.ts +1 -1
- 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/EverythingPlanFeatures.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/GridTemplateColumnsWrapper.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/PlanFeatures.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureGroup.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureTitle.d.ts +6 -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/planPickerDesktop/util.d.ts +7 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +1 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +3 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.stories.d.ts +12 -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/Subscriptions_SubscriptionFragment.d.ts +0 -2
- 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/getSubscriptionChargeHistograms.d.ts +16 -0
- package/dist/esm/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +0 -184
- 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/SubscriptionListSkeleton.d.ts +4 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +3 -11
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/UsageCell.d.ts +8 -0
- 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/Transactions/Transactions.stories.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/useAllErrorFormats.d.ts +2 -1
- package/dist/esm/types/src/hooks/useIsExpired.d.ts +2 -1
- package/dist/esm/types/src/hooks/useIsVisible.d.ts +4 -0
- 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 +17 -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 +139 -48
- package/package.json +24 -17
- 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/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/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/esm/types/src/components/PaymentForm/components/{PaymentMethodSelector.d.ts → PaymentMethodDetails/components/PaymentMethodSelector.d.ts} +0 -0
package/dist/esm/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,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
companyName: string;
|
|
5
|
-
/** The price list code to use for the signup */
|
|
1
|
+
import type { FormInstance } from "antd/es/form";
|
|
2
|
+
import { type DefaultSignupValues, InitialSignupFormData, type RequiredBillingDetailsFlags } from "./components/InitialSignupFormFields";
|
|
3
|
+
export type SignupProps = {
|
|
6
4
|
priceListCode: string;
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
/** An optional coupon code that gets applied automatically */
|
|
10
|
-
couponCode?: string;
|
|
11
|
-
/** A custom class name to apply to the component */
|
|
12
|
-
className?: string;
|
|
13
|
-
/** The shadow level to apply to the component */
|
|
14
|
-
shadow?: ShadowType;
|
|
5
|
+
/** If trial is allowed on priceList, enableTrial will enable the trial for the signup */
|
|
6
|
+
enableTrial?: boolean;
|
|
15
7
|
/** A custom style to apply to the component */
|
|
16
8
|
style?: React.CSSProperties;
|
|
17
|
-
/** The default
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
/** The
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
}
|
|
9
|
+
/** The default form values to use for the signup */
|
|
10
|
+
defaultFormValues?: DefaultSignupValues;
|
|
11
|
+
/** Whether to require quote acceptance before checking out */
|
|
12
|
+
paymentRequiredToAcceptQuote?: boolean;
|
|
13
|
+
/** The document template ID to apply to the quote for the signup */
|
|
14
|
+
documentTemplateId?: string;
|
|
15
|
+
/** Which account billing fields to show and require */
|
|
16
|
+
requiredBillingDetails?: RequiredBillingDetailsFlags;
|
|
17
|
+
/** A default coupon code to pre-apply to the checkout */
|
|
18
|
+
defaultCouponCode?: string;
|
|
19
|
+
};
|
|
20
|
+
declare const useSignupPortalSessionToken: () => [string | undefined, import("react").Dispatch<import("react").SetStateAction<string | undefined>>];
|
|
21
|
+
declare const useSignupAccountId: () => [string | undefined, import("react").Dispatch<import("react").SetStateAction<string | undefined>>];
|
|
22
|
+
declare const useSignupPurchaseSucceeded: () => [boolean, import("react").Dispatch<import("react").SetStateAction<boolean>>];
|
|
23
|
+
declare const useSignupForm: () => FormInstance<InitialSignupFormData>;
|
|
24
|
+
declare const useSignupOptions: () => {
|
|
25
|
+
enableTrial: boolean;
|
|
26
|
+
paymentRequiredToAcceptQuote?: boolean;
|
|
27
|
+
};
|
|
28
|
+
export default function Signup({ priceListCode, enableTrial, style, defaultFormValues, paymentRequiredToAcceptQuote, documentTemplateId, requiredBillingDetails, defaultCouponCode, }: SignupProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export { useSignupAccountId, useSignupForm, useSignupOptions, useSignupPortalSessionToken, useSignupPurchaseSucceeded };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import Signup from './Signup';
|
|
3
3
|
declare const meta: Meta<typeof Signup>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const Mobile: Story;
|
|
8
|
-
export declare const CustomClassName: Story;
|
|
9
8
|
export declare const DarkMode: Story;
|
|
@@ -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 {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const CheckoutSummary_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
product: {
|
|
3
|
+
name: string;
|
|
4
|
+
} | null;
|
|
5
|
+
name: string;
|
|
6
|
+
basePrice: number | null;
|
|
7
|
+
currencyId: string;
|
|
8
|
+
trialAllowed: boolean;
|
|
9
|
+
charges: {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
quantityMin: number | null;
|
|
13
|
+
basePrice: number;
|
|
14
|
+
featureAddon: boolean | null;
|
|
15
|
+
deprecated: boolean | null;
|
|
16
|
+
}[] | null;
|
|
17
|
+
}, {}, {
|
|
18
|
+
fragment: "CheckoutSummary_PriceListFragment";
|
|
19
|
+
on: "PriceList";
|
|
20
|
+
masked: true;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const CheckoutSummary_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
id: string | null;
|
|
3
|
+
amountDue: number | null;
|
|
4
|
+
subtotal: number;
|
|
5
|
+
taxAmount: number;
|
|
6
|
+
currencyId: string;
|
|
7
|
+
payToAccept: boolean | null;
|
|
8
|
+
amount: number;
|
|
9
|
+
quoteChanges: {
|
|
10
|
+
id: string | null;
|
|
11
|
+
charges: {
|
|
12
|
+
id: string | null;
|
|
13
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
14
|
+
name: string | null;
|
|
15
|
+
coupon: {
|
|
16
|
+
couponCode: string;
|
|
17
|
+
} | null;
|
|
18
|
+
quantity: number | null;
|
|
19
|
+
subtotal: number | null;
|
|
20
|
+
currencyId: string;
|
|
21
|
+
}[];
|
|
22
|
+
}[] | null;
|
|
23
|
+
[$tada.fragmentRefs]: {
|
|
24
|
+
canApplyCoupons_QuoteFragment: "Quote";
|
|
25
|
+
};
|
|
26
|
+
}, {}, {
|
|
27
|
+
fragment: "CheckoutSummary_QuoteFragment";
|
|
28
|
+
on: "Quote";
|
|
29
|
+
masked: true;
|
|
30
|
+
}>;
|
|
@@ -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" | "PERCENTAGE_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 {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import type { ResultOf } from 'gql.tada';
|
|
3
|
+
import { CheckoutSummaryTotals } from './components/CheckoutSummaryTotals';
|
|
4
|
+
import { CheckoutSummary_PriceListFragment } from './fragments/CheckoutSummary_PriceListFragment';
|
|
5
|
+
import { CheckoutSummary_QuoteFragment } from './fragments/CheckoutSummary_QuoteFragment';
|
|
6
|
+
type CheckoutSummaryTotalsProps = ComponentProps<typeof CheckoutSummaryTotals>;
|
|
7
|
+
export declare function checkoutSummaryTotalsFromQuote(quote: ResultOf<typeof CheckoutSummary_QuoteFragment>): CheckoutSummaryTotalsProps;
|
|
8
|
+
export declare function checkoutSummaryTotalsFromPriceList(priceList: ResultOf<typeof CheckoutSummary_PriceListFragment>, willBeTrial: boolean): CheckoutSummaryTotalsProps;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type InitialSignupFormData = {
|
|
2
|
+
firstName: string;
|
|
3
|
+
lastName: string;
|
|
4
|
+
email: string;
|
|
5
|
+
accountName: string;
|
|
6
|
+
/** Job title (e.g. for quote accept when there are no signing plugins). */
|
|
7
|
+
title?: string;
|
|
8
|
+
billingCountry: string;
|
|
9
|
+
accountBillingCountry?: string;
|
|
10
|
+
billingState: string;
|
|
11
|
+
billingCity: string;
|
|
12
|
+
billingZip: string;
|
|
13
|
+
billingStreet: string;
|
|
14
|
+
taxNumber: string;
|
|
15
|
+
};
|
|
16
|
+
export type DefaultSignupValues = {
|
|
17
|
+
firstName?: string;
|
|
18
|
+
lastName?: string;
|
|
19
|
+
email?: string;
|
|
20
|
+
accountName?: string;
|
|
21
|
+
billingCountry?: string;
|
|
22
|
+
billingState?: string;
|
|
23
|
+
billingCity?: string;
|
|
24
|
+
billingZip?: string;
|
|
25
|
+
billingStreet?: string;
|
|
26
|
+
taxNumber?: string;
|
|
27
|
+
};
|
|
28
|
+
/** Extra account billing fields (shown in “Account billing details”) when the flag is true. */
|
|
29
|
+
export type RequiredBillingDetailsFlags = {
|
|
30
|
+
billingCountry?: boolean;
|
|
31
|
+
billingState?: boolean;
|
|
32
|
+
billingCity?: boolean;
|
|
33
|
+
billingZip?: boolean;
|
|
34
|
+
billingStreet?: boolean;
|
|
35
|
+
taxNumber?: boolean;
|
|
36
|
+
};
|
|
37
|
+
/** Optional fields not shown by default; enabled via `extraFieldsToShow`. */
|
|
38
|
+
export type ExtraSignupFormField = 'title';
|
|
39
|
+
export default function InitialSignupFormFields({ className, requiredBillingDetails,
|
|
40
|
+
/** Called when focus leaves this form (e.g. tab to payment). Implemented via Form `onBlurCapture` so moving between fields does not fire. */
|
|
41
|
+
onBlur, disabled, extraFieldsToShow, }: {
|
|
42
|
+
className?: string;
|
|
43
|
+
requiredBillingDetails?: RequiredBillingDetailsFlags;
|
|
44
|
+
onBlur?: () => void;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
extraFieldsToShow?: ExtraSignupFormField[];
|
|
47
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,16 @@ export declare const PriceListDisplay_PriceListFragment: import("gql.tada").Tada
|
|
|
14
14
|
on: "PriceList";
|
|
15
15
|
masked: true;
|
|
16
16
|
}>;
|
|
17
|
-
export
|
|
17
|
+
export declare const PriceListDisplay_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
18
|
+
quoteChanges: {
|
|
19
|
+
isTrial: boolean;
|
|
20
|
+
}[] | null;
|
|
21
|
+
}, {}, {
|
|
22
|
+
fragment: "PriceListDisplay_QuoteFragment";
|
|
23
|
+
on: "Quote";
|
|
24
|
+
masked: true;
|
|
25
|
+
}>;
|
|
26
|
+
export default function PriceListDisplay({ priceList: maskedPriceList, quote: maskedQuote, }: {
|
|
18
27
|
priceList: FragmentOf<typeof PriceListDisplay_PriceListFragment> | undefined | null;
|
|
28
|
+
quote?: FragmentOf<typeof PriceListDisplay_QuoteFragment> | undefined | null;
|
|
19
29
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default function PurchaseSuccessDisplay({ purchaseAmount, currencyId, returnUrl, companyName, }: {
|
|
2
|
+
purchaseAmount: number | undefined | null;
|
|
3
|
+
currencyId: string | undefined | null;
|
|
4
|
+
returnUrl?: string;
|
|
5
|
+
companyName: string;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ResultOf } from 'gql.tada';
|
|
2
|
+
import { Signup_PriceListFragment } from '../../fragments/Signup_PriceListFragment';
|
|
3
|
+
import { type DefaultSignupValues, type RequiredBillingDetailsFlags } from '../InitialSignupFormFields';
|
|
4
|
+
type SignupFormProps = {
|
|
5
|
+
priceListCode: string;
|
|
6
|
+
priceList?: ResultOf<typeof Signup_PriceListFragment> | null;
|
|
7
|
+
defaultFormValues?: DefaultSignupValues;
|
|
8
|
+
paymentRequiredToAcceptQuote?: boolean;
|
|
9
|
+
documentTemplateId?: string;
|
|
10
|
+
requiredBillingDetails?: RequiredBillingDetailsFlags;
|
|
11
|
+
};
|
|
12
|
+
export default function SignupForm({ priceListCode, priceList, defaultFormValues, documentTemplateId, requiredBillingDetails, }: SignupFormProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FragmentOf, type ResultOf } from 'gql.tada';
|
|
2
|
+
import { Signup_PriceListFragment } from '../../../fragments/Signup_PriceListFragment';
|
|
3
|
+
import { ExtraSignupFormField, type DefaultSignupValues, type RequiredBillingDetailsFlags } from '../../InitialSignupFormFields';
|
|
4
|
+
import { Signup_QuoteFragment } from '@/components/Signup/fragments/Signup_QuoteFragment';
|
|
5
|
+
export declare const ExistingAccountForm_AccountFragment: import("gql.tada").TadaDocumentNode<{
|
|
6
|
+
[$tada.fragmentRefs]: {
|
|
7
|
+
ExistingAccountLoadedEffect_AccountFragment: "Account";
|
|
8
|
+
};
|
|
9
|
+
billingContact: {
|
|
10
|
+
id: string;
|
|
11
|
+
} | null;
|
|
12
|
+
id: string;
|
|
13
|
+
}, {}, {
|
|
14
|
+
fragment: "ExistingAccountForm_AccountFragment";
|
|
15
|
+
on: "Account";
|
|
16
|
+
masked: true;
|
|
17
|
+
}>;
|
|
18
|
+
/** Account-details form after `quoteAccountSignup` has created an account; saves via `contactUpdate` + `accountUpdate` on blur. */
|
|
19
|
+
export default function ExistingAccountForm({ title, className, account: maskedAccount, extraFieldsToShow, requiredBillingDetails, defaultFormValues, priceList, onSelfServiceBuyDisabled, priceListCode, documentTemplateId, onQuoteAccountSignupSuccess, }: {
|
|
20
|
+
title: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
account: FragmentOf<typeof ExistingAccountForm_AccountFragment> | undefined | null;
|
|
23
|
+
extraFieldsToShow?: ExtraSignupFormField[];
|
|
24
|
+
requiredBillingDetails?: RequiredBillingDetailsFlags;
|
|
25
|
+
defaultFormValues?: DefaultSignupValues;
|
|
26
|
+
priceList?: ResultOf<typeof Signup_PriceListFragment> | null;
|
|
27
|
+
onSelfServiceBuyDisabled: () => void;
|
|
28
|
+
priceListCode: string;
|
|
29
|
+
documentTemplateId?: string;
|
|
30
|
+
onQuoteAccountSignupSuccess: (portalSessionToken: string, accountId: string, quote: FragmentOf<typeof Signup_QuoteFragment> | null) => void;
|
|
31
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type FragmentOf, type ResultOf } from 'gql.tada';
|
|
2
|
+
import { Signup_PriceListFragment } from '../../../fragments/Signup_PriceListFragment';
|
|
3
|
+
import { Signup_QuoteFragment } from '../../../fragments/Signup_QuoteFragment';
|
|
4
|
+
import { type DefaultSignupValues } from '../../InitialSignupFormFields';
|
|
5
|
+
export declare const ExistingAccountLoadedEffect_AccountFragment: import("gql.tada").TadaDocumentNode<{
|
|
6
|
+
id: string;
|
|
7
|
+
code: string | null;
|
|
8
|
+
name: string | null;
|
|
9
|
+
billingCountry: string | null;
|
|
10
|
+
billingState: string | null;
|
|
11
|
+
billingCity: string | null;
|
|
12
|
+
billingZip: string | null;
|
|
13
|
+
billingStreet: string | null;
|
|
14
|
+
taxNumber: string | null;
|
|
15
|
+
billingContact: {
|
|
16
|
+
firstName: string;
|
|
17
|
+
lastName: string | null;
|
|
18
|
+
email: string | null;
|
|
19
|
+
} | null;
|
|
20
|
+
}, {}, {
|
|
21
|
+
fragment: "ExistingAccountLoadedEffect_AccountFragment";
|
|
22
|
+
on: "Account";
|
|
23
|
+
masked: true;
|
|
24
|
+
}>;
|
|
25
|
+
export default function ExistingAccountLoadedEffect({ account: maskedAccount, defaultFormValues, priceList, onSelfServiceBuyDisabled, priceListCode, paymentRequiredToAcceptQuote, documentTemplateId, onQuoteAccountSignupSuccess, }: {
|
|
26
|
+
account: FragmentOf<typeof ExistingAccountLoadedEffect_AccountFragment> | null | undefined;
|
|
27
|
+
defaultFormValues?: DefaultSignupValues;
|
|
28
|
+
priceList?: ResultOf<typeof Signup_PriceListFragment> | null;
|
|
29
|
+
onSelfServiceBuyDisabled: () => void;
|
|
30
|
+
priceListCode: string;
|
|
31
|
+
paymentRequiredToAcceptQuote?: boolean;
|
|
32
|
+
documentTemplateId?: string;
|
|
33
|
+
onQuoteAccountSignupSuccess: (portalSessionToken: string, accountId: string, quote: FragmentOf<typeof Signup_QuoteFragment> | null) => void;
|
|
34
|
+
}): null;
|
package/dist/esm/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExtraSignupFormField, type DefaultSignupValues, type RequiredBillingDetailsFlags } from '../../InitialSignupFormFields';
|
|
2
|
+
export default function NewAccountForm({ className, extraFieldsToShow, requiredBillingDetails, defaultFormValues, title, }: {
|
|
3
|
+
className?: string;
|
|
4
|
+
extraFieldsToShow?: ExtraSignupFormField[];
|
|
5
|
+
requiredBillingDetails?: RequiredBillingDetailsFlags;
|
|
6
|
+
defaultFormValues?: DefaultSignupValues;
|
|
7
|
+
title: string;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const SignupForm_AccountFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
[$tada.fragmentRefs]: {
|
|
3
|
+
ExistingAccountForm_AccountFragment: "Account";
|
|
4
|
+
};
|
|
5
|
+
id: string;
|
|
6
|
+
code: string | null;
|
|
7
|
+
name: string | null;
|
|
8
|
+
billingCountry: string | null;
|
|
9
|
+
billingState: string | null;
|
|
10
|
+
billingCity: string | null;
|
|
11
|
+
billingZip: string | null;
|
|
12
|
+
billingStreet: string | null;
|
|
13
|
+
taxNumber: string | null;
|
|
14
|
+
billingContact: {
|
|
15
|
+
id: string;
|
|
16
|
+
firstName: string;
|
|
17
|
+
lastName: string | null;
|
|
18
|
+
email: string | null;
|
|
19
|
+
} | null;
|
|
20
|
+
}, {}, {
|
|
21
|
+
fragment: "SignupForm_AccountFragment";
|
|
22
|
+
on: "Account";
|
|
23
|
+
masked: true;
|
|
24
|
+
}>;
|
package/dist/esm/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import getCurrentUserAccountForSignup from '@/components/Signup/queries/getCurrentUserAccountForSignup';
|
|
2
|
+
export type ExistingAccountForSignup = Awaited<ReturnType<typeof getCurrentUserAccountForSignup>>['currentUser'] extends {
|
|
3
|
+
account?: infer T;
|
|
4
|
+
} ? T : never;
|
|
5
|
+
export declare function useExistingAccount({ onAccountLoaded, }?: {
|
|
6
|
+
onAccountLoaded?: (account: ExistingAccountForSignup | null | undefined) => void;
|
|
7
|
+
}): {
|
|
8
|
+
account: {
|
|
9
|
+
id: string;
|
|
10
|
+
[$tada.fragmentRefs]: {
|
|
11
|
+
SignupForm_AccountFragment: "Account";
|
|
12
|
+
};
|
|
13
|
+
} | null | undefined;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
import { SignupPaymentForm_QuoteFragment } from '../fragments/SignupPaymentForm_QuoteFragment';
|
|
3
|
+
export declare const SignupPaymentForm_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
currencyId: string;
|
|
5
|
+
}, {}, {
|
|
6
|
+
fragment: "SignupPaymentForm_PriceListFragment";
|
|
7
|
+
on: "PriceList";
|
|
8
|
+
masked: true;
|
|
9
|
+
}>;
|
|
10
|
+
type SignupPaymentFormProps = {
|
|
11
|
+
quote?: FragmentOf<typeof SignupPaymentForm_QuoteFragment> | null;
|
|
12
|
+
priceList: FragmentOf<typeof SignupPaymentForm_PriceListFragment> | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
declare const SignupPaymentForm: ({ quote: maskedQuote, priceList: maskedPriceList }: SignupPaymentFormProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export default SignupPaymentForm;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ResultOf } from 'gql.tada';
|
|
2
|
+
import { Signup_QuoteFragment } from '../../fragments/Signup_QuoteFragment';
|
|
3
|
+
type SuccessDisplayProps = {
|
|
4
|
+
quote?: ResultOf<typeof Signup_QuoteFragment> | null;
|
|
5
|
+
currencyId: string | undefined | null;
|
|
6
|
+
returnUrl?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const SuccessDisplay: ({ quote: maskedQuote, currencyId, returnUrl, className, }: SuccessDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default SuccessDisplay;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SIGNUP_BACKGROUND_COLOR = "#f8fafc";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const QuoteAcceptPage_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
[$tada.fragmentRefs]: {
|
|
3
|
+
CheckoutSummary_PriceListFragment: "PriceList";
|
|
4
|
+
};
|
|
5
|
+
}, {}, {
|
|
6
|
+
fragment: "QuoteAcceptPage_PriceListFragment";
|
|
7
|
+
on: "PriceList";
|
|
8
|
+
masked: true;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const SignupPaymentForm_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
[$tada.fragmentRefs]: {
|
|
3
|
+
PaymentForm_QuoteFragment: "Quote";
|
|
4
|
+
};
|
|
5
|
+
payToAccept: boolean | null;
|
|
6
|
+
amountDue: number | null;
|
|
7
|
+
amount: number;
|
|
8
|
+
id: string | null;
|
|
9
|
+
}, {}, {
|
|
10
|
+
fragment: "SignupPaymentForm_QuoteFragment";
|
|
11
|
+
on: "Quote";
|
|
12
|
+
masked: true;
|
|
13
|
+
}>;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
export declare const Signup_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
2
|
[$tada.fragmentRefs]: {
|
|
3
|
-
|
|
3
|
+
SelfServiceBuyWarning_PriceListFragment: "PriceList";
|
|
4
|
+
} & {
|
|
5
|
+
QuoteAcceptPage_PriceListFragment: "PriceList";
|
|
4
6
|
} & {
|
|
5
7
|
PriceListDisplay_PriceListFragment: "PriceList";
|
|
6
8
|
} & {
|
|
7
|
-
|
|
9
|
+
CheckoutSummary_PriceListFragment: "PriceList";
|
|
10
|
+
} & {
|
|
11
|
+
SignupPaymentForm_PriceListFragment: "PriceList";
|
|
8
12
|
};
|
|
13
|
+
id: string;
|
|
9
14
|
plan: {
|
|
10
15
|
selfServiceBuy: boolean | null;
|
|
11
16
|
} | null;
|
|
12
|
-
|
|
17
|
+
code: string | null;
|
|
18
|
+
currencyId: string;
|
|
13
19
|
}, {}, {
|
|
14
20
|
fragment: "Signup_PriceListFragment";
|
|
15
21
|
on: "PriceList";
|
|
@@ -2,14 +2,28 @@ export declare const Signup_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
|
2
2
|
[$tada.fragmentRefs]: {
|
|
3
3
|
CheckoutSummary_QuoteFragment: "Quote";
|
|
4
4
|
} & {
|
|
5
|
-
|
|
5
|
+
PaymentForm_QuoteFragment: "Quote";
|
|
6
|
+
} & {
|
|
7
|
+
SignupPaymentForm_QuoteFragment: "Quote";
|
|
8
|
+
} & {
|
|
9
|
+
SignupQuote_QuoteFragment: "Quote";
|
|
10
|
+
} & {
|
|
11
|
+
PriceListDisplay_QuoteFragment: "Quote";
|
|
6
12
|
};
|
|
13
|
+
state: "APPROVED" | "REJECTED" | "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "UNDONE";
|
|
7
14
|
id: string | null;
|
|
15
|
+
accountId: string;
|
|
8
16
|
currencyId: string;
|
|
9
17
|
amountDue: number | null;
|
|
18
|
+
amount: number;
|
|
19
|
+
payToAccept: boolean | null;
|
|
10
20
|
quoteChanges: {
|
|
11
21
|
id: string | null;
|
|
22
|
+
isTrial: boolean;
|
|
12
23
|
}[] | null;
|
|
24
|
+
account: {
|
|
25
|
+
billingContactId: string | null;
|
|
26
|
+
} | null;
|
|
13
27
|
}, {}, {
|
|
14
28
|
fragment: "Signup_QuoteFragment";
|
|
15
29
|
on: "Quote";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormInstance } from 'antd';
|
|
2
|
+
import type { InitialSignupFormData } from '../components/InitialSignupFormFields';
|
|
3
|
+
type UseAccountDetailsUpdateParams = {
|
|
4
|
+
form: FormInstance<InitialSignupFormData>;
|
|
5
|
+
accountId: string | undefined;
|
|
6
|
+
/** Billing contact id from `quote.account.billingContactId` — required to update name/email on the server. */
|
|
7
|
+
billingContactId: string | null | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare function useAccountDetailsUpdate({ form, accountId, billingContactId, }: UseAccountDetailsUpdateParams): () => Promise<void>;
|
|
10
|
+
export {};
|