@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/Subscriptions/context/upgradingSubscriptionContext.d.ts
CHANGED
|
@@ -25,8 +25,12 @@ export declare const UpgradingSubscriptionProvider: ({ value, children }: {
|
|
|
25
25
|
useChargeCRUD_SubscriptionFragment: "Subscription";
|
|
26
26
|
} & {
|
|
27
27
|
useQuoteQuantities_SubscriptionFragment: "Subscription";
|
|
28
|
+
} & {
|
|
29
|
+
isAddonPurchased_SubscriptionChargeFragment: "Subscription";
|
|
30
|
+
} & {
|
|
31
|
+
useQuoteCreate_SubscriptionFragment: "Subscription";
|
|
28
32
|
};
|
|
29
|
-
} | undefined;
|
|
33
|
+
} | null | undefined;
|
|
30
34
|
children?: import("react").ReactNode;
|
|
31
35
|
}) => import("react/jsx-runtime").JSX.Element, useUpgradingSubscription: () => {
|
|
32
36
|
id: string;
|
|
@@ -54,5 +58,9 @@ export declare const UpgradingSubscriptionProvider: ({ value, children }: {
|
|
|
54
58
|
useChargeCRUD_SubscriptionFragment: "Subscription";
|
|
55
59
|
} & {
|
|
56
60
|
useQuoteQuantities_SubscriptionFragment: "Subscription";
|
|
61
|
+
} & {
|
|
62
|
+
isAddonPurchased_SubscriptionChargeFragment: "Subscription";
|
|
63
|
+
} & {
|
|
64
|
+
useQuoteCreate_SubscriptionFragment: "Subscription";
|
|
57
65
|
};
|
|
58
66
|
} | undefined;
|
|
@@ -2,8 +2,6 @@ export declare const Subscriptions_SubscriptionFragment: import("gql.tada").Tada
|
|
|
2
2
|
state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
|
|
3
3
|
id: string;
|
|
4
4
|
[$tada.fragmentRefs]: {
|
|
5
|
-
UpgradingSubscriptionContext_SubscriptionFragment: "Subscription";
|
|
6
|
-
} & {
|
|
7
5
|
SubscriptionsListContainer_SubscriptionFragment: "Subscription";
|
|
8
6
|
} & {
|
|
9
7
|
CanShowQuantitiesInput_SubscriptionFragment: "Subscription";
|
|
@@ -24,6 +24,10 @@ export declare const UpgradingSubscriptionContext_SubscriptionFragment: import("
|
|
|
24
24
|
useChargeCRUD_SubscriptionFragment: "Subscription";
|
|
25
25
|
} & {
|
|
26
26
|
useQuoteQuantities_SubscriptionFragment: "Subscription";
|
|
27
|
+
} & {
|
|
28
|
+
isAddonPurchased_SubscriptionChargeFragment: "Subscription";
|
|
29
|
+
} & {
|
|
30
|
+
useQuoteCreate_SubscriptionFragment: "Subscription";
|
|
27
31
|
};
|
|
28
32
|
}, {}, {
|
|
29
33
|
fragment: "UpgradingSubscriptionContext_SubscriptionFragment";
|
|
@@ -4,7 +4,8 @@ export declare const CanShowQuantitiesInput_SubscriptionChargeFragment: import("
|
|
|
4
4
|
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
5
5
|
expired: boolean;
|
|
6
6
|
selfServiceQuantity: boolean | null;
|
|
7
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
7
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
8
|
+
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
8
9
|
}, {}, {
|
|
9
10
|
fragment: "CanShowQuantitiesInput_SubscriptionChargeFragment";
|
|
10
11
|
on: "SubscriptionCharge";
|
package/dist/esm/types/src/components/Subscriptions/queries/getSubscriptionChargeHistograms.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const getSubscriptionChargeHistograms: ({ id, apiHost, token, }: {
|
|
2
|
+
id: string;
|
|
3
|
+
apiHost: string;
|
|
4
|
+
token?: string;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
subscription: {
|
|
7
|
+
chargeReport: {
|
|
8
|
+
priceListChargeId: string | null;
|
|
9
|
+
histogram: {
|
|
10
|
+
[$tada.fragmentRefs]: {
|
|
11
|
+
FeatureUsageGraph_HistogramFragment: "Histogram";
|
|
12
|
+
};
|
|
13
|
+
} | null;
|
|
14
|
+
}[] | null;
|
|
15
|
+
} | null;
|
|
16
|
+
}>;
|
|
@@ -5,190 +5,6 @@ export declare const getSubscriptions: ({ apiHost, isInPreviewMode, token, }: {
|
|
|
5
5
|
}) => Promise<{
|
|
6
6
|
subscriptions: {
|
|
7
7
|
nodes: ({
|
|
8
|
-
addonSubscriptions: {
|
|
9
|
-
id: string;
|
|
10
|
-
priceList: {
|
|
11
|
-
id: string;
|
|
12
|
-
} | null;
|
|
13
|
-
plan: {
|
|
14
|
-
id: string;
|
|
15
|
-
} | null;
|
|
16
|
-
}[] | null;
|
|
17
|
-
cancellationDate: unknown;
|
|
18
|
-
currencyId: string;
|
|
19
|
-
endDate: unknown;
|
|
20
|
-
evergreen: boolean;
|
|
21
|
-
id: string;
|
|
22
|
-
period: string;
|
|
23
|
-
account: {
|
|
24
|
-
id: string;
|
|
25
|
-
};
|
|
26
|
-
daysLeftInTrial: number | null;
|
|
27
|
-
plan: {
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
selfServiceBuy: boolean | null;
|
|
31
|
-
selfServiceCancel: boolean | null;
|
|
32
|
-
selfServiceRenew: boolean | null;
|
|
33
|
-
} | null;
|
|
34
|
-
priceList: {
|
|
35
|
-
id: string;
|
|
36
|
-
periodMonths: number | null;
|
|
37
|
-
name: string;
|
|
38
|
-
plan: {
|
|
39
|
-
id: string;
|
|
40
|
-
addon: boolean | null;
|
|
41
|
-
addonPlans: {
|
|
42
|
-
id: string;
|
|
43
|
-
}[] | null;
|
|
44
|
-
} | null;
|
|
45
|
-
} | null;
|
|
46
|
-
product: {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
showProductNameOnLineItem: boolean | null;
|
|
50
|
-
} | null;
|
|
51
|
-
startDate: unknown;
|
|
52
|
-
trialEndDate: unknown;
|
|
53
|
-
trialPeriod: string;
|
|
54
|
-
trialStartDate: unknown;
|
|
55
|
-
trialExpirationAction: "ACTIVATE" | "CANCEL" | null;
|
|
56
|
-
charges: {
|
|
57
|
-
priceListCharge: {
|
|
58
|
-
priceListChargeTiers: {
|
|
59
|
-
price: number | null;
|
|
60
|
-
starts: number | null;
|
|
61
|
-
}[] | null;
|
|
62
|
-
featureAddon: boolean | null;
|
|
63
|
-
id: string;
|
|
64
|
-
} | null;
|
|
65
|
-
amount: number | null;
|
|
66
|
-
billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
67
|
-
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
68
|
-
discount: number | null;
|
|
69
|
-
discountedPrice: string | null;
|
|
70
|
-
endDate: unknown;
|
|
71
|
-
expired: boolean;
|
|
72
|
-
feature: {
|
|
73
|
-
name: string;
|
|
74
|
-
} | null;
|
|
75
|
-
id: string | null;
|
|
76
|
-
isAmendment: boolean;
|
|
77
|
-
isRamp: boolean;
|
|
78
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
79
|
-
name: string | null;
|
|
80
|
-
periodPrice: number | null;
|
|
81
|
-
price: string | null;
|
|
82
|
-
priceDecimals: number | null;
|
|
83
|
-
priceListChargeId: string | null;
|
|
84
|
-
priceTiers: {
|
|
85
|
-
starts: number | null;
|
|
86
|
-
price: number | null;
|
|
87
|
-
}[] | null;
|
|
88
|
-
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
89
|
-
quantity: number | null;
|
|
90
|
-
selfServiceQuantity: boolean | null;
|
|
91
|
-
startDate: unknown;
|
|
92
|
-
trial: boolean;
|
|
93
|
-
}[] | null;
|
|
94
|
-
chargeReport: {
|
|
95
|
-
[$tada.fragmentRefs]: {
|
|
96
|
-
CanShowQuantitiesInput_SubscriptionChargeFragment: "Undefined Fragment";
|
|
97
|
-
};
|
|
98
|
-
priceListCharge: {
|
|
99
|
-
priceListChargeTiers: {
|
|
100
|
-
price: number | null;
|
|
101
|
-
starts: number | null;
|
|
102
|
-
}[] | null;
|
|
103
|
-
featureAddon: boolean | null;
|
|
104
|
-
id: string;
|
|
105
|
-
code: string | null;
|
|
106
|
-
} | null;
|
|
107
|
-
histogram: {
|
|
108
|
-
feature: {
|
|
109
|
-
id: string;
|
|
110
|
-
name: string;
|
|
111
|
-
};
|
|
112
|
-
periodRange: string;
|
|
113
|
-
dataInterval: "MONTHLY" | "QUARTERLY" | "DAILY" | "SEMIANNUALLY" | "YEARLY";
|
|
114
|
-
data: {
|
|
115
|
-
periodStart: unknown;
|
|
116
|
-
periodEnd: unknown;
|
|
117
|
-
intervals: {
|
|
118
|
-
intervalStart: unknown;
|
|
119
|
-
intervalUsage: number;
|
|
120
|
-
}[];
|
|
121
|
-
intervalsTotal: number;
|
|
122
|
-
}[] | null;
|
|
123
|
-
} | null;
|
|
124
|
-
amount: number | null;
|
|
125
|
-
billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
126
|
-
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
127
|
-
discount: number | null;
|
|
128
|
-
discountedPrice: string | null;
|
|
129
|
-
endDate: unknown;
|
|
130
|
-
expired: boolean;
|
|
131
|
-
feature: {
|
|
132
|
-
name: string;
|
|
133
|
-
} | null;
|
|
134
|
-
id: string | null;
|
|
135
|
-
isAmendment: boolean;
|
|
136
|
-
isRamp: boolean;
|
|
137
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
138
|
-
name: string | null;
|
|
139
|
-
periodPrice: number | null;
|
|
140
|
-
price: string | null;
|
|
141
|
-
priceDecimals: number | null;
|
|
142
|
-
priceListChargeId: string | null;
|
|
143
|
-
priceTiers: {
|
|
144
|
-
starts: number | null;
|
|
145
|
-
price: number | null;
|
|
146
|
-
}[] | null;
|
|
147
|
-
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
148
|
-
quantity: number | null;
|
|
149
|
-
selfServiceQuantity: boolean | null;
|
|
150
|
-
startDate: unknown;
|
|
151
|
-
trial: boolean;
|
|
152
|
-
}[] | null;
|
|
153
|
-
currentCharges: {
|
|
154
|
-
priceListCharge: {
|
|
155
|
-
priceListChargeTiers: {
|
|
156
|
-
price: number | null;
|
|
157
|
-
starts: number | null;
|
|
158
|
-
}[] | null;
|
|
159
|
-
featureAddon: boolean | null;
|
|
160
|
-
id: string;
|
|
161
|
-
code: string | null;
|
|
162
|
-
} | null;
|
|
163
|
-
amount: number | null;
|
|
164
|
-
billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
165
|
-
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
166
|
-
discount: number | null;
|
|
167
|
-
discountedPrice: string | null;
|
|
168
|
-
endDate: unknown;
|
|
169
|
-
expired: boolean;
|
|
170
|
-
feature: {
|
|
171
|
-
name: string;
|
|
172
|
-
} | null;
|
|
173
|
-
id: string | null;
|
|
174
|
-
isAmendment: boolean;
|
|
175
|
-
isRamp: boolean;
|
|
176
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
177
|
-
name: string | null;
|
|
178
|
-
periodPrice: number | null;
|
|
179
|
-
price: string | null;
|
|
180
|
-
priceDecimals: number | null;
|
|
181
|
-
priceListChargeId: string | null;
|
|
182
|
-
priceTiers: {
|
|
183
|
-
starts: number | null;
|
|
184
|
-
price: number | null;
|
|
185
|
-
}[] | null;
|
|
186
|
-
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
187
|
-
quantity: number | null;
|
|
188
|
-
selfServiceQuantity: boolean | null;
|
|
189
|
-
startDate: unknown;
|
|
190
|
-
trial: boolean;
|
|
191
|
-
}[] | null;
|
|
192
8
|
[$tada.fragmentRefs]: {
|
|
193
9
|
Subscriptions_SubscriptionFragment: "Subscription";
|
|
194
10
|
};
|
package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const SubscriptionChargeTotal_SubscriptionChargeFragment: import(
|
|
|
3
3
|
billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
|
|
4
4
|
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
5
5
|
trial: boolean;
|
|
6
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
6
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
7
7
|
price: string | null;
|
|
8
8
|
periodPrice: number | null;
|
|
9
9
|
}, {}, {
|
|
@@ -3,7 +3,7 @@ export declare const SubscriptionChargeUnitPrice_SubscriptionChargeFragment: imp
|
|
|
3
3
|
trial: boolean;
|
|
4
4
|
discountedPrice: string | null;
|
|
5
5
|
priceDecimals: number | null;
|
|
6
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
6
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
7
7
|
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
8
8
|
priceTiers: {
|
|
9
9
|
starts: number | null;
|
|
@@ -5,20 +5,11 @@ export declare const SubscriptionCardDesktopRow_SubscriptionChargeFragment: impo
|
|
|
5
5
|
trial: boolean;
|
|
6
6
|
startDate: unknown;
|
|
7
7
|
endDate: unknown;
|
|
8
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
8
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
9
9
|
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
10
10
|
quantity: number | null;
|
|
11
11
|
name: string | null;
|
|
12
12
|
isAmendment: boolean;
|
|
13
|
-
histogram: {
|
|
14
|
-
feature: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
};
|
|
18
|
-
[$tada.fragmentRefs]: {
|
|
19
|
-
FeatureUsageGraph_HistogramFragment: "Histogram";
|
|
20
|
-
};
|
|
21
|
-
} | null;
|
|
22
13
|
[$tada.fragmentRefs]: {
|
|
23
14
|
SubscriptionChargeTotal_SubscriptionChargeFragment: "SubscriptionCharge";
|
|
24
15
|
} & {
|
|
@@ -31,9 +22,10 @@ export declare const SubscriptionCardDesktopRow_SubscriptionChargeFragment: impo
|
|
|
31
22
|
on: "SubscriptionCharge";
|
|
32
23
|
masked: true;
|
|
33
24
|
}>;
|
|
34
|
-
export declare const SubscriptionCardDesktopRow: ({ charge: maskedCharge, chargeIndex, charges: maskedCharges, currencyId, }: {
|
|
25
|
+
export declare const SubscriptionCardDesktopRow: ({ charge: maskedCharge, chargeIndex, charges: maskedCharges, currencyId, subscriptionId, }: {
|
|
35
26
|
charge: FragmentOf<typeof SubscriptionCardDesktopRow_SubscriptionChargeFragment>;
|
|
36
27
|
chargeIndex: number;
|
|
37
28
|
charges: FragmentOf<typeof SubscriptionCardDesktopRow_SubscriptionChargeFragment>[];
|
|
38
29
|
currencyId: string;
|
|
30
|
+
subscriptionId: string;
|
|
39
31
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FeatureUsageGraph_SubscriptionChargeFragment } from '@/components/FeatureUsageGraph';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
declare const UsageCell: ({ subscriptionId, priceListChargeId, charge, }: {
|
|
4
|
+
subscriptionId: string;
|
|
5
|
+
priceListChargeId: string;
|
|
6
|
+
charge: FragmentOf<typeof FeatureUsageGraph_SubscriptionChargeFragment>;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export default UsageCell;
|
|
@@ -14,7 +14,7 @@ export declare const SubscriptionCardMobile_SubscriptionFragment: import("gql.ta
|
|
|
14
14
|
};
|
|
15
15
|
isRamp: boolean;
|
|
16
16
|
name: string | null;
|
|
17
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
17
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
18
18
|
startDate: unknown;
|
|
19
19
|
endDate: unknown;
|
|
20
20
|
quantity: number | null;
|
package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare const splitSubscriptionsByPriceList_SubscriptionFragment: import(
|
|
|
35
35
|
} | null;
|
|
36
36
|
}[] | null;
|
|
37
37
|
chargeReport: {
|
|
38
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
38
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
39
39
|
startDate: unknown;
|
|
40
40
|
endDate: unknown;
|
|
41
41
|
priceList: {
|
|
@@ -2,7 +2,7 @@ import { FragmentOf } from 'gql.tada';
|
|
|
2
2
|
export declare const sortSubscriptionCharges_SubscriptionChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
3
|
id: string | null;
|
|
4
4
|
priceListChargeId: string | null;
|
|
5
|
-
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
5
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "PERCENTAGE_DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
6
6
|
endDate: unknown;
|
|
7
7
|
startDate: unknown;
|
|
8
8
|
isAmendment: boolean;
|
|
@@ -17,8 +17,6 @@ export declare const PricingTooltip_PriceListChargeFragment: import("gql.tada").
|
|
|
17
17
|
ChargeHasPriceTiers_PriceListChargeFragment: "PriceListCharge";
|
|
18
18
|
} & {
|
|
19
19
|
ChargePriceTiers_PriceListChargeFragment: "PriceListCharge";
|
|
20
|
-
} & {
|
|
21
|
-
GetActiveCharges_PriceListChargeFragment: "PriceListCharge";
|
|
22
20
|
};
|
|
23
21
|
}, {}, {
|
|
24
22
|
fragment: "PricingTooltip_PriceListChargeFragment";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ShadowType } from '../types/shadowType';
|
|
2
2
|
import FormattedInvoice from '@/types/FormattedInvoice';
|
|
3
|
-
import { FormattedQuote } from '@/types/FormattedQuote';
|
|
4
3
|
export type InvoiceQuoteContextProps = {
|
|
5
|
-
id?: string;
|
|
4
|
+
id?: string | null | undefined;
|
|
6
5
|
invoiceQuoteViewComponent?: React.ReactNode;
|
|
7
6
|
backButtonName?: string;
|
|
8
7
|
onBackButtonClick?: () => void;
|
|
@@ -12,7 +11,6 @@ export type InvoiceQuoteContextProps = {
|
|
|
12
11
|
className?: string;
|
|
13
12
|
hideDownloadButton?: boolean;
|
|
14
13
|
onInvoiceLoaded?: (formattedInvoice: FormattedInvoice) => void;
|
|
15
|
-
onQuoteLoaded?: (formattedQuote: FormattedQuote) => void;
|
|
16
14
|
onQuoteUnavailableError?: () => void;
|
|
17
15
|
suppressQuoteUnavailableErrorNotification?: boolean;
|
|
18
16
|
};
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import Invoice from '@/types/Invoice';
|
|
3
|
-
import { Transaction } from '@/types/Transaction';
|
|
4
|
-
import PaymentApplication from '@/types/PaymentApplication';
|
|
5
|
-
export type CheckoutResponse = {
|
|
6
|
-
invoice: Invoice;
|
|
7
|
-
payment: Payment;
|
|
8
|
-
paymentApplication: PaymentApplication;
|
|
9
|
-
transaction: Transaction;
|
|
10
|
-
};
|
|
11
|
-
declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodData, token, apiHost, }: {
|
|
1
|
+
type CheckoutProps = {
|
|
12
2
|
quoteId?: string | null;
|
|
13
3
|
invoiceId?: string | null;
|
|
14
4
|
paymentMethodId?: string;
|
|
@@ -20,7 +10,27 @@ declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodDat
|
|
|
20
10
|
};
|
|
21
11
|
token?: string;
|
|
22
12
|
apiHost: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
};
|
|
14
|
+
declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodData, token, apiHost, }: CheckoutProps) => Promise<{
|
|
15
|
+
invoice: {
|
|
16
|
+
id: string | null;
|
|
17
|
+
state: "READY" | "NOT_DUE" | "DUE" | "UNPAID" | "DRAFT" | "PREPARING" | "PAID" | "VOIDED" | "FAILED" | "PROCESSING_PAYMENT" | "MERGED" | "QUEUED" | "CONSOLIDATED";
|
|
18
|
+
amount: number;
|
|
19
|
+
amountDue: number | null;
|
|
20
|
+
} | null;
|
|
21
|
+
payment: {
|
|
22
|
+
id: string;
|
|
23
|
+
state: "APPLIED" | "PARTIALLY_APPLIED" | "UNAPPLIED";
|
|
24
|
+
amount: number;
|
|
25
|
+
} | null;
|
|
26
|
+
paymentApplication: {
|
|
27
|
+
id: string;
|
|
28
|
+
invoiceId: string | null;
|
|
29
|
+
paymentId: string | null;
|
|
30
|
+
} | null;
|
|
31
|
+
transaction: {
|
|
32
|
+
id: string;
|
|
33
|
+
amount: number;
|
|
34
|
+
} | null;
|
|
35
|
+
} | null>;
|
|
26
36
|
export default checkout;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
declare const quoteChangeAddCoupon: ({ quoteChangeId, couponCode, token, apiHost, }: {
|
|
1
|
+
export declare const quoteChangeAddCoupon: ({ quoteChangeId, couponCode, token, apiHost, }: {
|
|
3
2
|
quoteChangeId: string;
|
|
4
3
|
couponCode: string;
|
|
5
4
|
token?: string;
|
|
6
5
|
apiHost: string;
|
|
7
|
-
}) => Promise<
|
|
8
|
-
|
|
6
|
+
}) => Promise<{
|
|
7
|
+
id: string | null;
|
|
8
|
+
} | null | undefined>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Quote } from '@/types/Quote';
|
|
2
1
|
declare const quoteChangeRemoveCoupon: ({ quoteChangeId, couponCode, token, apiHost, }: {
|
|
3
2
|
quoteChangeId: string;
|
|
4
3
|
couponCode: string;
|
|
5
4
|
token?: string;
|
|
6
5
|
apiHost: string;
|
|
7
|
-
}) => Promise<
|
|
6
|
+
}) => Promise<{
|
|
7
|
+
quote: {
|
|
8
|
+
id: string | null;
|
|
9
|
+
};
|
|
10
|
+
} | null | undefined>;
|
|
8
11
|
export default quoteChangeRemoveCoupon;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const useAllErrorFormats: ({ onUserUnavailable, onInvalidOrMissingAuthorization, suppressUserUnavailableErrorNotification }?: {
|
|
1
|
+
export declare const useAllErrorFormats: ({ onUserUnavailable, onInvalidOrMissingAuthorization, suppressUserUnavailableErrorNotification, disableErrorNotifications }?: {
|
|
2
2
|
onUserUnavailable?: () => void;
|
|
3
3
|
onInvalidOrMissingAuthorization?: () => void;
|
|
4
4
|
suppressUserUnavailableErrorNotification?: boolean;
|
|
5
|
+
disableErrorNotifications?: boolean;
|
|
5
6
|
}) => (error: any, mutationName?: string) => any;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const isExpired: (expiresAt?: string | null, timezone?: string | null) => boolean;
|
|
2
|
+
declare const useIsExpired: (expiresAt?: string, timezone?: string | null) => boolean;
|
|
2
3
|
export default useIsExpired;
|
|
@@ -23,6 +23,8 @@ export declare const usePaymentMethod: ({ accountId, enabled, }: {
|
|
|
23
23
|
isDefault: boolean | null;
|
|
24
24
|
[$tada.fragmentRefs]: {
|
|
25
25
|
PaymentForm_PaymentMethodsFragment: "PaymentMethod";
|
|
26
|
+
} & {
|
|
27
|
+
StoredPaymentMethods_PaymentMethodsFragment: "PaymentMethod";
|
|
26
28
|
};
|
|
27
29
|
}[] | undefined;
|
|
28
30
|
defaultPaymentMethod: {
|
|
@@ -46,6 +48,8 @@ export declare const usePaymentMethod: ({ accountId, enabled, }: {
|
|
|
46
48
|
isDefault: boolean | null;
|
|
47
49
|
[$tada.fragmentRefs]: {
|
|
48
50
|
PaymentForm_PaymentMethodsFragment: "PaymentMethod";
|
|
51
|
+
} & {
|
|
52
|
+
StoredPaymentMethods_PaymentMethodsFragment: "PaymentMethod";
|
|
49
53
|
};
|
|
50
54
|
} | undefined;
|
|
51
55
|
isLoading: boolean;
|
|
@@ -5,8 +5,14 @@ declare const useUpdateCoupons: ({ apiHost, token, quoteChangeId, onCouponAdded,
|
|
|
5
5
|
onCouponAdded?: () => void;
|
|
6
6
|
onCouponRemoved?: () => void;
|
|
7
7
|
}) => {
|
|
8
|
-
addCoupon: import("@tanstack/react-query").UseMutateFunction<
|
|
9
|
-
|
|
8
|
+
addCoupon: import("@tanstack/react-query").UseMutateFunction<{
|
|
9
|
+
id: string | null;
|
|
10
|
+
} | null | undefined, Error, string, unknown>;
|
|
11
|
+
removeCoupon: import("@tanstack/react-query").UseMutateFunction<{
|
|
12
|
+
quote: {
|
|
13
|
+
id: string | null;
|
|
14
|
+
};
|
|
15
|
+
} | null | undefined, Error, string, unknown>;
|
|
10
16
|
isAddingCoupon: boolean;
|
|
11
17
|
isRemovingCoupon: boolean;
|
|
12
18
|
activeCouponsExist: boolean;
|
|
@@ -38,7 +38,7 @@ interface TableKeyParams {
|
|
|
38
38
|
token?: string;
|
|
39
39
|
}
|
|
40
40
|
interface FormattedInvoiceKeyParams {
|
|
41
|
-
id?: string;
|
|
41
|
+
id?: string | null | undefined;
|
|
42
42
|
token?: string;
|
|
43
43
|
}
|
|
44
44
|
interface InvoiceKeyParams {
|
|
@@ -55,7 +55,7 @@ interface PortalPreviewDataKeyParams {
|
|
|
55
55
|
token?: string;
|
|
56
56
|
}
|
|
57
57
|
interface QuoteKeyParams {
|
|
58
|
-
id?: string;
|
|
58
|
+
id?: string | null | undefined;
|
|
59
59
|
token?: string;
|
|
60
60
|
}
|
|
61
61
|
interface QuoteTaxCalculateKeyParams {
|
|
@@ -78,10 +78,14 @@ declare const QueryKeyFactory: {
|
|
|
78
78
|
brandingKey: (token?: string) => string[];
|
|
79
79
|
calculatedPricesKey: ({ priceListId, quantity, token }: CalculatedPricesKeyParams) => (string | number)[];
|
|
80
80
|
createEventsKey: ({ entityId, pluralType, token }: EventsKeyParams) => string[];
|
|
81
|
-
|
|
81
|
+
quotesKey: (filter?: string, token?: string) => string[];
|
|
82
|
+
createFormattedInvoiceKey: ({ id, token }: FormattedInvoiceKeyParams) => (string | null | undefined)[];
|
|
82
83
|
createInvoiceKey: ({ id, token }: InvoiceKeyParams) => (string | undefined)[];
|
|
83
84
|
createObjectKey: ({ id, objectName, token }: ObjectKeyParams) => string[];
|
|
84
|
-
createQuoteKey: ({ id, token }: QuoteKeyParams) => (string | undefined)[];
|
|
85
|
+
createQuoteKey: ({ id, token }: QuoteKeyParams) => (string | null | undefined)[];
|
|
86
|
+
signupQuoteKey: ({ token }: {
|
|
87
|
+
token?: string;
|
|
88
|
+
}) => string[];
|
|
85
89
|
createQuoteTaxCalculateKey: ({ id, token }: QuoteTaxCalculateKeyParams) => string[];
|
|
86
90
|
createTableKey: ({ filterString, pluralType, token }: TableKeyParams) => (string | undefined)[];
|
|
87
91
|
currentUserKey: (token?: string) => string[];
|
|
@@ -102,5 +106,14 @@ declare const QueryKeyFactory: {
|
|
|
102
106
|
token?: string;
|
|
103
107
|
}) => string[];
|
|
104
108
|
paymentPluginsKey: (token?: string) => string[];
|
|
109
|
+
subscriptionChargeHistogramsKey: ({ subscriptionId, token, }: {
|
|
110
|
+
subscriptionId: string;
|
|
111
|
+
token?: string;
|
|
112
|
+
}) => string[];
|
|
113
|
+
signupAccount: (token?: string) => string[];
|
|
114
|
+
signupPriceList: (code?: string, token?: string) => string[];
|
|
105
115
|
};
|
|
106
116
|
export default QueryKeyFactory;
|
|
117
|
+
export declare const MutationKeyFactory: {
|
|
118
|
+
quoteAccountSignup: readonly ["quoteAccountSignup"];
|
|
119
|
+
};
|
|
@@ -2,6 +2,7 @@ import { FragmentOf } from 'gql.tada';
|
|
|
2
2
|
export declare const CanEditChargeQuantity_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
3
|
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
4
4
|
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
5
|
+
selfServiceQuantity: boolean | null;
|
|
5
6
|
}, {}, {
|
|
6
7
|
fragment: "CanEditChargeQuantity_PriceListChargeFragment";
|
|
7
8
|
on: "PriceListCharge";
|