@bunnyapp/components 1.8.5 → 2.0.0-beta.1
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 +186 -52
- package/dist/cjs/index.js +22 -182
- package/dist/cjs/types/src/components/BillingDetails/BillingDetails.d.ts +6 -3
- package/dist/cjs/types/src/components/BillingDetails/BillingDetails.rules.d.ts +85 -0
- package/dist/cjs/types/src/components/BillingDetails/BillingDetails.stories.d.ts +2 -2
- package/dist/cjs/types/src/components/BillingDetails/BillingDetailsForm.d.ts +1 -1
- package/dist/cjs/types/src/components/BillingDetails/components/AddContactButton.d.ts +1 -1
- package/dist/cjs/types/src/components/BillingDetails/components/AddContactModal.d.ts +1 -1
- package/dist/cjs/types/src/components/BunnyProvider/BunnyProvider.d.ts +5 -6
- package/dist/cjs/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +1 -1
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +6 -29
- package/dist/cjs/types/src/components/Checkout/Checkout.stories.d.ts +13 -0
- package/dist/cjs/types/src/components/Checkout/CheckoutContent.d.ts +11 -0
- package/dist/cjs/types/src/components/Checkout/components/CheckoutFlowForm.d.ts +4 -0
- package/dist/cjs/types/src/components/Checkout/graphql/fragments/Checkout_QuoteFragment.d.ts +22 -0
- package/dist/{esm/types/src/components/Signup/components/SignupForm/fragments/SignupForm_AccountFragment.d.ts → cjs/types/src/components/Checkout/graphql/fragments/useCheckoutAccount_AccountFragment.d.ts} +6 -9
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/accountUpdate.d.ts +84 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/contactUpdate.d.ts +40 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/quoteAddCoupon.d.ts +11 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/quoteChangeUpdate.d.ts +7 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/quoteCompose.d.ts +9 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/quoteRemoveCoupon.d.ts +11 -0
- package/dist/cjs/types/src/components/Checkout/graphql/mutations/quoteSetDocumentTemplate.d.ts +8 -0
- package/dist/cjs/types/src/components/Checkout/graphql/queries/getCheckoutAccount.d.ts +10 -0
- package/dist/cjs/types/src/components/Checkout/graphql/queries/getCheckoutQuote.d.ts +10 -0
- package/dist/cjs/types/src/components/Checkout/hooks/useCheckoutAccount.d.ts +21 -0
- package/dist/cjs/types/src/components/Checkout/hooks/useCheckoutCoupon.d.ts +20 -0
- package/dist/cjs/types/src/components/Checkout/hooks/useCheckoutQuote.d.ts +22 -0
- package/dist/cjs/types/src/components/Checkout/hooks/useCheckoutSubmit.d.ts +13 -0
- package/dist/cjs/types/src/components/Checkout/hooks/useSetCheckoutQuoteQueryData.d.ts +4 -0
- package/dist/cjs/types/src/components/Checkout/index.d.ts +4 -0
- package/dist/cjs/types/src/components/Checkout/utils/accountDefaultValues.d.ts +7 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutFooter.d.ts +4 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/CheckoutFields.d.ts +9 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/CheckoutForm.d.ts +10 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/PayButton.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutForm/PaymentFields.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutLoadingOverlay.d.ts +6 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutRoot.d.ts +28 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutScreen.d.ts +27 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutScreen.rules.d.ts +98 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSplitScreenContainer.d.ts +10 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutCouponEditor.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutQuoteDocument.d.ts +15 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutReceipt.d.ts +13 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutSummary.d.ts +12 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryLineItem.d.ts +10 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryLineItems.d.ts +7 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +24 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryDisclosure.d.ts +10 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryHeader.d.ts +4 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryLayout.d.ts +16 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/Logo.d.ts +2 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/SuccessDisplay/SuccessDisplay.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/components/SuccessDisplay/components/SuccessIcon.d.ts +2 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutConfigContext.d.ts +69 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutFieldsContext.d.ts +6 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutFormContext.d.ts +7 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutPricingContext.d.ts +23 -0
- package/dist/cjs/types/src/components/CheckoutShared/contexts/CheckoutResultContext.d.ts +20 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/CheckoutQuoteDocument_QuoteFragment.d.ts +14 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/CheckoutReceipt_QuoteFragment.d.ts +31 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/CheckoutResult_QuoteFragment.d.ts +15 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/CheckoutSummaryLineItems_QuoteFragment.d.ts +23 -0
- package/dist/{esm/types/src/components/Signup/components/CheckoutSummary → cjs/types/src/components/CheckoutShared/graphql}/fragments/CheckoutSummary_PriceListFragment.d.ts +5 -12
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/CheckoutSummary_QuoteFragment.d.ts +20 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_PaymentMethodFragment.d.ts +14 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_PriceListFragment.d.ts +11 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_QuoteFragment.d.ts +18 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/fragments/useCheckoutPriceList_PriceListFragment.d.ts +15 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/mutations/priceListAmountDuePreview.d.ts +53 -0
- package/dist/cjs/types/src/components/CheckoutShared/graphql/mutations/taxationRequiredAccountFields.d.ts +10 -0
- package/dist/cjs/types/src/components/{Signup → CheckoutShared/graphql}/queries/getPriceList.d.ts +1 -1
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useAmountDuePreview.d.ts +33 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useCheckoutBillingDetails.d.ts +3 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useCheckoutFieldValue.d.ts +3 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useCheckoutFormSubmit.d.ts +16 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useCheckoutPriceList.d.ts +14 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useFocusFirstField.d.ts +2 -0
- package/dist/cjs/types/src/components/CheckoutShared/hooks/useTaxRequiredFields.d.ts +9 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/amountPaid.d.ts +7 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/billingDetails.d.ts +14 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/compactValues.d.ts +6 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/nextBillingDate.d.ts +8 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/planName.d.ts +6 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/quoteCharges.d.ts +25 -0
- package/dist/cjs/types/src/components/CheckoutShared/utils/resolveCheckoutFields.d.ts +16 -0
- package/dist/cjs/types/src/components/DocumentTemplatePreview.d.ts +4 -2
- package/dist/cjs/types/src/components/DrawerHeader.d.ts +3 -4
- package/dist/cjs/types/src/components/Error.d.ts +2 -1
- package/dist/cjs/types/src/components/FeatureUsageGraph.d.ts +1 -1
- package/dist/cjs/types/src/components/Footer/BunnyFooterIcon.d.ts +1 -3
- package/dist/cjs/types/src/components/Footer/Footer.d.ts +7 -2
- package/dist/cjs/types/src/components/Footer/Footer.rules.d.ts +25 -0
- package/dist/cjs/types/src/components/Footer/Footer.stories.d.ts +9 -0
- package/dist/cjs/types/src/components/HeaderModalWrapper.d.ts +1 -1
- package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +7 -1
- package/dist/cjs/types/src/components/Invoice/Invoice.rules.d.ts +52 -0
- package/dist/cjs/types/src/components/Invoice/Invoice.stories.d.ts +2 -3
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/DownloadQuoteButton.d.ts +1 -1
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteView.d.ts +1 -1
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteViewWithButtons.d.ts +1 -1
- package/dist/cjs/types/src/components/LegacyInvoicePDF.d.ts +1 -1
- package/dist/cjs/types/src/components/PandadocPollingModal.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +10 -5
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.stories.d.ts +49 -0
- package/dist/cjs/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/components/CouponEditor.d.ts +23 -6
- package/dist/cjs/types/src/components/PaymentForm/{DemoPay/CreditCard → components}/MiniCreditCard.d.ts +7 -1
- package/dist/cjs/types/src/components/PaymentForm/components/NoPaymentPluginsAlert.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/components/Pay.d.ts +7 -1
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/PaymentMethodDetails.d.ts +7 -1
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Cancel.d.ts +2 -1
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Save.d.ts +2 -1
- package/dist/cjs/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +7 -1
- package/dist/cjs/types/src/components/PaymentForm/context/AccountIdContext.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/context/CallbacksContext.d.ts +4 -2
- package/dist/cjs/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentFormMethodsProvider.d.ts +32 -0
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +2 -2
- package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePay.d.ts +8 -7
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentHold.d.ts +6 -7
- package/dist/cjs/types/src/components/PaymentForm/hooks/useSave.d.ts +7 -9
- package/dist/cjs/types/src/components/PaymentMethods/components/CardBrandIcons.d.ts +2 -0
- package/dist/{esm/types/src/components/PaymentForm/DemoPay/CreditCard → cjs/types/src/components/PaymentMethods}/components/CardImage.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentMethods/components/DemoPayCardBox.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/DemoPayCardBox.rules.d.ts +46 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/DemoPayCardCvc.d.ts +8 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/DemoPayCardNumber.d.ts +8 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/DemoPayExpiry.d.ts +8 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/NewPaymentMethodFields.d.ts +10 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/PaymentTile.d.ts +23 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/PaymentTile.rules.d.ts +57 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/PaymentTileGroup.d.ts +18 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/PluginTiles.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/SavedPaymentMethodTiles.d.ts +15 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/StripeElements.d.ts +14 -0
- package/dist/cjs/types/src/components/PaymentMethods/components/StripePaymentElement.d.ts +16 -0
- package/dist/cjs/types/src/components/PaymentMethods/constants/demoPayInputStyle.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentMethods/contexts/DemoPayCardDetailsContext.d.ts +10 -0
- package/dist/cjs/types/src/components/PaymentMethods/contexts/PaymentMethodsContext.d.ts +41 -0
- package/dist/cjs/types/src/components/PaymentMethods/graphql/fragments/SavedPaymentMethodTiles_PaymentMethodFragment.d.ts +18 -0
- package/dist/cjs/types/src/components/PaymentMethods/hooks/useLoadStripe.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentMethods/hooks/useNewPaymentMethod.d.ts +16 -0
- package/dist/cjs/types/src/components/PaymentMethods/hooks/useStripePaymentMethodId.d.ts +27 -0
- package/dist/cjs/types/src/components/PaymentMethods/utils/demoPayCard.d.ts +12 -0
- package/dist/cjs/types/src/components/PaymentMethods/utils/paymentPlugins.d.ts +9 -0
- package/dist/cjs/types/src/components/PaymentMethods/utils/storeNewPaymentMethod.d.ts +14 -0
- package/dist/cjs/types/src/components/PaymentMethods/utils/stripeAppearance.d.ts +12 -0
- package/dist/cjs/types/src/components/Quote/Quote.d.ts +7 -1
- package/dist/cjs/types/src/components/Quote/Quote.rules.d.ts +54 -0
- package/dist/cjs/types/src/components/Quote/Quote.stories.d.ts +2 -4
- package/dist/cjs/types/src/components/Quote/components/AcceptQuoteModal.d.ts +1 -1
- package/dist/cjs/types/src/components/Quote/components/NoSigningPluginsForm.d.ts +1 -1
- package/dist/cjs/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +1 -1
- package/dist/cjs/types/src/components/Quote/components/PaymentHoldModal.d.ts +1 -1
- package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +1 -1
- package/dist/cjs/types/src/components/Quote/components/QuoteIsAcceptedLabel.d.ts +1 -1
- package/dist/cjs/types/src/components/Quote/queries/getFormattedQuote.d.ts +2 -2
- package/dist/cjs/types/src/components/QuoteProvider/QuoteProvider.d.ts +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +4 -4
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +3 -1
- package/dist/cjs/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +3 -3
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +1 -1
- package/dist/cjs/types/src/components/Signup/Signup.d.ts +4 -29
- package/dist/cjs/types/src/components/Signup/Signup.stories.d.ts +3 -1
- package/dist/cjs/types/src/components/Signup/SignupContent.d.ts +7 -2
- package/dist/cjs/types/src/components/Signup/components/SignupCheckoutForm.d.ts +2 -0
- package/dist/cjs/types/src/components/Signup/graphql/mutations/quoteAccountSignup.d.ts +76 -0
- package/dist/cjs/types/src/components/Signup/hooks/useSignupCheckout.d.ts +11 -0
- package/dist/cjs/types/src/components/Signup/index.d.ts +2 -1
- package/dist/cjs/types/src/components/StateTag.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/CheckIcon.d.ts +3 -3
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +7 -7
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.rules.d.ts +67 -0
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.stories.d.ts +2 -4
- package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +2 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +3 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_QuoteFragment.d.ts +1 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/FeatureGridCell.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/GridTemplateColumnsWrapper.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/PlanFeatures.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureGroup.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureTitle.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanPickerGridCell.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +4 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardDescription.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPrice.d.ts +4 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/BackButton.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +7 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.rules.d.ts +99 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.stories.d.ts +3 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/contexts/DefaultBillingPeriodContext.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/fragments/UpgradeContent_QuoteFragment.d.ts +10 -0
- package/dist/cjs/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +1 -5
- package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +5 -5
- package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuantityInput.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/ShowInactiveToggle.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionListSkeleton.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +4 -8
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionsCardCell.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/UsageCell.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardCellMobile.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/tagConsts.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +1 -1
- package/dist/cjs/types/src/components/TaxationForm.d.ts +1 -1
- package/dist/cjs/types/src/components/{Checkout → UpgradeCheckout}/QuoteCheckout.d.ts +23 -32
- package/dist/cjs/types/src/components/UpgradeCheckout/QuoteCheckoutPaymentForm.d.ts +42 -0
- package/dist/cjs/types/src/components/UpgradeCheckout/QuoteIsLoadingIndicator.d.ts +1 -0
- package/dist/cjs/types/src/components/UpgradeCheckout/UpgradeCheckout.d.ts +41 -0
- package/dist/cjs/types/src/components/UpgradeCheckout/UpgradeCheckout.rules.d.ts +17 -0
- package/dist/cjs/types/src/components/icons/Amex.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/ArrowDownToLine.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/Bancontact.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/CardIcon.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/Cashapp.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/ChinaUnionPay.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/CreditCard.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/DinersClub.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/Discover.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/IDeal.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/JSB.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/Link.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/Mastercard.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/Sepa.d.ts +1 -1
- package/dist/cjs/types/src/components/icons/Visa.d.ts +1 -1
- package/dist/cjs/types/src/components/index.d.ts +10 -3
- package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +7 -2
- package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/components/PriceTierRow.d.ts +1 -1
- package/dist/cjs/types/src/components/tables/InfiniteTable/InfiniteResourceTable.d.ts +44 -0
- package/dist/cjs/types/src/components/tables/InfiniteTable/InfiniteTable.d.ts +26 -0
- package/dist/cjs/types/src/components/tables/InfiniteTable/InfiniteTable.rules.d.ts +85 -0
- package/dist/cjs/types/src/components/tables/InfiniteTable/InfiniteTableFooter.d.ts +9 -0
- package/dist/cjs/types/src/components/tables/InfiniteTable/InfiniteTableGridCell.d.ts +8 -0
- package/dist/cjs/types/src/components/tables/InfiniteTable/InfiniteTableHeader.d.ts +5 -0
- package/dist/cjs/types/src/components/tables/InfiniteTable/hooks/useAutoRowsPerPage.d.ts +11 -0
- package/dist/cjs/types/src/components/tables/InfiniteTable/hooks/useContainerWidth.d.ts +1 -0
- package/dist/cjs/types/src/components/tables/InfiniteTable/index.d.ts +4 -0
- package/dist/cjs/types/src/components/tables/InfiniteTable/types.d.ts +51 -0
- package/dist/cjs/types/src/components/tables/Invoices/Invoices.d.ts +28 -0
- package/dist/cjs/types/src/components/tables/Invoices/Invoices.stories.d.ts +10 -0
- package/dist/cjs/types/src/components/tables/Invoices/index.d.ts +1 -0
- package/dist/cjs/types/src/components/tables/Invoices/invoicesList/InvoiceMobileRow.d.ts +10 -0
- package/dist/cjs/types/src/components/tables/Invoices/invoicesList/getInvoiceColumns.d.ts +22 -0
- package/dist/cjs/types/src/components/tables/Quotes/Quotes.d.ts +23 -0
- package/dist/cjs/types/src/components/{Quotes → tables/Quotes}/Quotes.stories.d.ts +2 -4
- package/dist/cjs/types/src/components/tables/Quotes/quotesList/QuoteMobileRow.d.ts +9 -0
- package/dist/cjs/types/src/components/tables/Quotes/quotesList/getQuoteColumns.d.ts +22 -0
- package/dist/cjs/types/src/components/tables/Transactions/Transactions.d.ts +29 -0
- package/dist/cjs/types/src/components/{Transactions → tables/Transactions}/Transactions.stories.d.ts +2 -7
- package/dist/cjs/types/src/components/{Transactions → tables/Transactions}/transactionsList/TransactionDate.d.ts +1 -1
- package/dist/cjs/types/src/components/tables/Transactions/transactionsList/TransactionDetail.d.ts +7 -0
- package/dist/{esm/types/src/components → cjs/types/src/components/tables}/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
- package/dist/cjs/types/src/components/tables/Transactions/transactionsList/TransactionMobileRow.d.ts +11 -0
- package/dist/cjs/types/src/components/{Transactions → tables/Transactions}/transactionsList/TransactionTitle.d.ts +1 -1
- package/dist/cjs/types/src/components/tables/Transactions/transactionsList/getTransactionColumns.d.ts +16 -0
- package/dist/cjs/types/src/components/{Transactions → tables/Transactions}/transactionsList/utils.d.ts +1 -1
- package/dist/cjs/types/src/components/tables/Transactions/types.d.ts +1 -0
- package/dist/cjs/types/src/contexts/BrandContext.d.ts +1 -1
- package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +1 -3
- package/dist/cjs/types/src/contexts/onPaymentMethodRemoved.d.ts +1 -1
- package/dist/cjs/types/src/contexts/onPaymentMethodSaved.d.ts +1 -1
- package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +1 -1
- package/dist/{esm/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts → cjs/types/src/graphql/mutations/quoteAddCoupon.d.ts} +2 -2
- package/dist/cjs/types/src/graphql/mutations/quoteRemoveCoupon.d.ts +9 -0
- package/dist/cjs/types/src/graphql/queries/getInvoices.d.ts +11 -0
- package/dist/cjs/types/src/graphql/queries/getQuotes.d.ts +8 -3
- package/dist/cjs/types/src/graphql/queries/getTransactions.d.ts +9 -1
- package/dist/cjs/types/src/graphql/queries/paginatedQuery.d.ts +22 -0
- package/dist/cjs/types/src/hooks/useActiveCoupons.d.ts +7 -0
- package/dist/cjs/types/src/hooks/{useUpdateCoupons.d.ts → useCouponMutations.d.ts} +4 -7
- package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +2 -2
- package/dist/cjs/types/src/hooks/useFocusFirstInput.d.ts +2 -3
- package/dist/cjs/types/src/hooks/useHasTaxPlugin.d.ts +1 -0
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +39 -4
- package/dist/cjs/types/src/hooks/usePaymentPlugins.d.ts +3 -1
- package/dist/cjs/types/src/mocks/checkoutHandlers.d.ts +3 -0
- package/dist/cjs/types/src/mocks/handlers.d.ts +1 -1
- package/dist/cjs/types/src/mocks/paymentFormHandlers.d.ts +6 -0
- package/dist/cjs/types/src/storybook-utils.d.ts +18 -7
- package/dist/cjs/types/src/types/CreditNote.d.ts +1 -1
- package/dist/cjs/types/src/types/Feature.d.ts +1 -1
- package/dist/cjs/types/src/types/FormattedInvoice.d.ts +1 -1
- package/dist/cjs/types/src/types/InvoiceItem.d.ts +1 -1
- package/dist/cjs/types/src/types/PriceList.d.ts +2 -2
- package/dist/cjs/types/src/types/PriceListCharge.d.ts +1 -1
- package/dist/cjs/types/src/types/Quote.d.ts +1 -1
- package/dist/cjs/types/src/types/QuoteChange.d.ts +1 -1
- package/dist/cjs/types/src/types/QuoteCharge.d.ts +2 -2
- package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +1 -1
- package/dist/cjs/types/src/types/frontendTypes/TableColumn.d.ts +1 -1
- package/dist/cjs/types/src/types/scalarTypes.d.ts +3 -0
- package/dist/cjs/types/src/types/scalarTypes.types.test.d.ts +5 -0
- package/dist/cjs/types/src/ui/appearance/AppearanceProvider.d.ts +19 -0
- package/dist/cjs/types/src/ui/appearance/antdTheme.d.ts +9 -0
- package/dist/cjs/types/src/ui/appearance/appearance.types.test.d.ts +19 -0
- package/dist/cjs/types/src/ui/appearance/color.d.ts +28 -0
- package/dist/cjs/types/src/ui/appearance/deprecatedTypes.d.ts +7 -0
- package/dist/cjs/types/src/ui/appearance/index.d.ts +2 -0
- package/dist/cjs/types/src/ui/appearance/pageFonts.d.ts +3 -0
- package/dist/cjs/types/src/ui/appearance/resolveAppearance.d.ts +32 -0
- package/dist/cjs/types/src/ui/appearance/ruleGroups.d.ts +17 -0
- package/dist/cjs/types/src/ui/appearance/rules.d.ts +42 -0
- package/dist/cjs/types/src/ui/appearance/rulesToCss.d.ts +27 -0
- package/dist/cjs/types/src/ui/appearance/scripts/dumpAppearance.d.ts +1 -0
- package/dist/cjs/types/src/ui/appearance/stories/TwoRoots.stories.d.ts +4 -0
- package/dist/cjs/types/src/ui/appearance/stories/themes.d.ts +49 -0
- package/dist/cjs/types/src/ui/appearance/types.d.ts +531 -0
- package/dist/cjs/types/src/ui/appearance/variables.d.ts +59 -0
- package/dist/cjs/types/src/ui/components/Button/Button.d.ts +33 -0
- package/dist/cjs/types/src/ui/components/Button/Button.rules.d.ts +124 -0
- package/dist/cjs/types/src/ui/components/Button/Button.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Card/Card.d.ts +14 -0
- package/dist/cjs/types/src/ui/components/Card/Card.rules.d.ts +32 -0
- package/dist/cjs/types/src/ui/components/Card/Card.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Checkbox/Checkbox.d.ts +14 -0
- package/dist/cjs/types/src/ui/components/Checkbox/Checkbox.rules.d.ts +52 -0
- package/dist/cjs/types/src/ui/components/Checkbox/Checkbox.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Divider/Divider.d.ts +11 -0
- package/dist/cjs/types/src/ui/components/Divider/Divider.rules.d.ts +23 -0
- package/dist/cjs/types/src/ui/components/Divider/Divider.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Document/Document.d.ts +7 -0
- package/dist/cjs/types/src/ui/components/Document/Document.rules.d.ts +12 -0
- package/dist/cjs/types/src/ui/components/Document/Document.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Drawer/Drawer.d.ts +9 -0
- package/dist/cjs/types/src/ui/components/Drawer/Drawer.rules.d.ts +28 -0
- package/dist/cjs/types/src/ui/components/Drawer/Drawer.stories.d.ts +11 -0
- package/dist/cjs/types/src/ui/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/cjs/types/src/ui/components/Field/Field.d.ts +25 -0
- package/dist/cjs/types/src/ui/components/Field/Field.rules.d.ts +41 -0
- package/dist/cjs/types/src/ui/components/Field/Field.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Link/Link.d.ts +3 -0
- package/dist/cjs/types/src/ui/components/Link/Link.rules.d.ts +20 -0
- package/dist/cjs/types/src/ui/components/Link/Link.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Modal/Modal.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Modal/Modal.rules.d.ts +23 -0
- package/dist/cjs/types/src/ui/components/Modal/Modal.stories.d.ts +11 -0
- package/dist/cjs/types/src/ui/components/Popconfirm/Popconfirm.d.ts +18 -0
- package/dist/cjs/types/src/ui/components/Popconfirm/Popconfirm.rules.d.ts +16 -0
- package/dist/cjs/types/src/ui/components/Segmented/Segmented.d.ts +16 -0
- package/dist/cjs/types/src/ui/components/Segmented/Segmented.rules.d.ts +46 -0
- package/dist/cjs/types/src/ui/components/Segmented/Segmented.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Select/MultiSelect.d.ts +23 -0
- package/dist/cjs/types/src/ui/components/Select/Select.d.ts +22 -0
- package/dist/cjs/types/src/ui/components/Select/Select.rules.d.ts +115 -0
- package/dist/cjs/types/src/ui/components/Select/Select.stories.d.ts +18 -0
- package/dist/cjs/types/src/ui/components/Select/SelectMenu.d.ts +13 -0
- package/dist/cjs/types/src/ui/components/Select/useSelectMenu.d.ts +45 -0
- package/dist/cjs/types/src/ui/components/Skeleton/Skeleton.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Skeleton/Skeleton.rules.d.ts +15 -0
- package/dist/cjs/types/src/ui/components/Skeleton/Skeleton.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Spinner/Spinner.d.ts +9 -0
- package/dist/cjs/types/src/ui/components/Spinner/Spinner.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Switch/Switch.d.ts +12 -0
- package/dist/cjs/types/src/ui/components/Switch/Switch.rules.d.ts +66 -0
- package/dist/cjs/types/src/ui/components/Switch/Switch.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Table/Table.d.ts +24 -0
- package/dist/cjs/types/src/ui/components/Table/Table.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Tag/Tag.d.ts +12 -0
- package/dist/cjs/types/src/ui/components/Tag/Tag.rules.d.ts +49 -0
- package/dist/cjs/types/src/ui/components/Tag/Tag.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Text/Text.d.ts +53 -0
- package/dist/cjs/types/src/ui/components/Text/Text.rules.d.ts +76 -0
- package/dist/cjs/types/src/ui/components/Text/Text.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/TextInput/TextInput.d.ts +13 -0
- package/dist/cjs/types/src/ui/components/TextInput/TextInput.rules.d.ts +53 -0
- package/dist/cjs/types/src/ui/components/TextInput/TextInput.stories.d.ts +8 -0
- package/dist/cjs/types/src/ui/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/cjs/types/src/ui/components/Tooltip/Tooltip.rules.d.ts +24 -0
- package/dist/{esm/types/src/UI → cjs/types/src/ui/components}/TruncatedText/TruncatedText.d.ts +1 -1
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +44 -8
- package/dist/cjs/types/src/utils/couponUtils.d.ts +2 -2
- package/dist/cjs/types/src/utils/createStateContext.d.ts +1 -1
- package/dist/cjs/types/src/utils/createValueContext.d.ts +1 -1
- package/dist/cjs/types/src/utils/priceListUtils/priceListPriceText.d.ts +1 -1
- package/dist/cjs/types/src/utils/readNullableFragment.d.ts +2 -0
- package/dist/esm/index.js +22 -182
- package/dist/esm/types/src/components/BillingDetails/BillingDetails.d.ts +6 -3
- package/dist/esm/types/src/components/BillingDetails/BillingDetails.rules.d.ts +85 -0
- package/dist/esm/types/src/components/BillingDetails/BillingDetails.stories.d.ts +2 -2
- package/dist/esm/types/src/components/BillingDetails/BillingDetailsForm.d.ts +1 -1
- package/dist/esm/types/src/components/BillingDetails/components/AddContactButton.d.ts +1 -1
- package/dist/esm/types/src/components/BillingDetails/components/AddContactModal.d.ts +1 -1
- package/dist/esm/types/src/components/BunnyProvider/BunnyProvider.d.ts +5 -6
- package/dist/esm/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +1 -1
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +6 -29
- package/dist/esm/types/src/components/Checkout/Checkout.stories.d.ts +13 -0
- package/dist/esm/types/src/components/Checkout/CheckoutContent.d.ts +11 -0
- package/dist/esm/types/src/components/Checkout/components/CheckoutFlowForm.d.ts +4 -0
- package/dist/esm/types/src/components/Checkout/graphql/fragments/Checkout_QuoteFragment.d.ts +22 -0
- package/dist/{cjs/types/src/components/Signup/components/SignupForm/fragments/SignupForm_AccountFragment.d.ts → esm/types/src/components/Checkout/graphql/fragments/useCheckoutAccount_AccountFragment.d.ts} +6 -9
- package/dist/esm/types/src/components/Checkout/graphql/mutations/accountUpdate.d.ts +84 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/contactUpdate.d.ts +40 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/quoteAddCoupon.d.ts +11 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/quoteChangeUpdate.d.ts +7 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/quoteCompose.d.ts +9 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/quoteRemoveCoupon.d.ts +11 -0
- package/dist/esm/types/src/components/Checkout/graphql/mutations/quoteSetDocumentTemplate.d.ts +8 -0
- package/dist/esm/types/src/components/Checkout/graphql/queries/getCheckoutAccount.d.ts +10 -0
- package/dist/esm/types/src/components/Checkout/graphql/queries/getCheckoutQuote.d.ts +10 -0
- package/dist/esm/types/src/components/Checkout/hooks/useCheckoutAccount.d.ts +21 -0
- package/dist/esm/types/src/components/Checkout/hooks/useCheckoutCoupon.d.ts +20 -0
- package/dist/esm/types/src/components/Checkout/hooks/useCheckoutQuote.d.ts +22 -0
- package/dist/esm/types/src/components/Checkout/hooks/useCheckoutSubmit.d.ts +13 -0
- package/dist/esm/types/src/components/Checkout/hooks/useSetCheckoutQuoteQueryData.d.ts +4 -0
- package/dist/esm/types/src/components/Checkout/index.d.ts +4 -0
- package/dist/esm/types/src/components/Checkout/utils/accountDefaultValues.d.ts +7 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutFooter.d.ts +4 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/CheckoutFields.d.ts +9 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/CheckoutForm.d.ts +10 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/PayButton.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutForm/PaymentFields.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutLoadingOverlay.d.ts +6 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutRoot.d.ts +28 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutScreen.d.ts +27 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutScreen.rules.d.ts +98 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSplitScreenContainer.d.ts +10 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutCouponEditor.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutQuoteDocument.d.ts +15 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutReceipt.d.ts +13 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/CheckoutSummary.d.ts +12 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryLineItem.d.ts +10 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryLineItems.d.ts +7 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +24 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryDisclosure.d.ts +10 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryHeader.d.ts +4 -0
- package/dist/esm/types/src/components/CheckoutShared/components/CheckoutSummary/components/SummaryLayout.d.ts +16 -0
- package/dist/esm/types/src/components/CheckoutShared/components/Logo.d.ts +2 -0
- package/dist/esm/types/src/components/CheckoutShared/components/SuccessDisplay/SuccessDisplay.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/components/SuccessDisplay/components/SuccessIcon.d.ts +2 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutConfigContext.d.ts +69 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutFieldsContext.d.ts +6 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutFormContext.d.ts +7 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutPricingContext.d.ts +23 -0
- package/dist/esm/types/src/components/CheckoutShared/contexts/CheckoutResultContext.d.ts +20 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/CheckoutQuoteDocument_QuoteFragment.d.ts +14 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/CheckoutReceipt_QuoteFragment.d.ts +31 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/CheckoutResult_QuoteFragment.d.ts +15 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/CheckoutSummaryLineItems_QuoteFragment.d.ts +23 -0
- package/dist/{cjs/types/src/components/Signup/components/CheckoutSummary → esm/types/src/components/CheckoutShared/graphql}/fragments/CheckoutSummary_PriceListFragment.d.ts +5 -12
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/CheckoutSummary_QuoteFragment.d.ts +20 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_PaymentMethodFragment.d.ts +14 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_PriceListFragment.d.ts +11 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/SuccessDisplay_QuoteFragment.d.ts +18 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/fragments/useCheckoutPriceList_PriceListFragment.d.ts +15 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/mutations/priceListAmountDuePreview.d.ts +53 -0
- package/dist/esm/types/src/components/CheckoutShared/graphql/mutations/taxationRequiredAccountFields.d.ts +10 -0
- package/dist/esm/types/src/components/{Signup → CheckoutShared/graphql}/queries/getPriceList.d.ts +1 -1
- package/dist/esm/types/src/components/CheckoutShared/hooks/useAmountDuePreview.d.ts +33 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useCheckoutBillingDetails.d.ts +3 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useCheckoutFieldValue.d.ts +3 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useCheckoutFormSubmit.d.ts +16 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useCheckoutPriceList.d.ts +14 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useFocusFirstField.d.ts +2 -0
- package/dist/esm/types/src/components/CheckoutShared/hooks/useTaxRequiredFields.d.ts +9 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/amountPaid.d.ts +7 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/billingDetails.d.ts +14 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/compactValues.d.ts +6 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/nextBillingDate.d.ts +8 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/planName.d.ts +6 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/quoteCharges.d.ts +25 -0
- package/dist/esm/types/src/components/CheckoutShared/utils/resolveCheckoutFields.d.ts +16 -0
- package/dist/esm/types/src/components/DocumentTemplatePreview.d.ts +4 -2
- package/dist/esm/types/src/components/DrawerHeader.d.ts +3 -4
- package/dist/esm/types/src/components/Error.d.ts +2 -1
- package/dist/esm/types/src/components/FeatureUsageGraph.d.ts +1 -1
- package/dist/esm/types/src/components/Footer/BunnyFooterIcon.d.ts +1 -3
- package/dist/esm/types/src/components/Footer/Footer.d.ts +7 -2
- package/dist/esm/types/src/components/Footer/Footer.rules.d.ts +25 -0
- package/dist/esm/types/src/components/Footer/Footer.stories.d.ts +9 -0
- package/dist/esm/types/src/components/HeaderModalWrapper.d.ts +1 -1
- package/dist/esm/types/src/components/Invoice/Invoice.d.ts +7 -1
- package/dist/esm/types/src/components/Invoice/Invoice.rules.d.ts +52 -0
- package/dist/esm/types/src/components/Invoice/Invoice.stories.d.ts +2 -3
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/DownloadQuoteButton.d.ts +1 -1
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteView.d.ts +1 -1
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView/InvoiceQuoteViewWithButtons.d.ts +1 -1
- package/dist/esm/types/src/components/LegacyInvoicePDF.d.ts +1 -1
- package/dist/esm/types/src/components/PandadocPollingModal.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +10 -5
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.stories.d.ts +49 -0
- package/dist/esm/types/src/components/PaymentForm/components/CheckoutNoPayment.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/components/CouponEditor.d.ts +23 -6
- package/dist/esm/types/src/components/PaymentForm/{DemoPay/CreditCard → components}/MiniCreditCard.d.ts +7 -1
- package/dist/esm/types/src/components/PaymentForm/components/NoPaymentPluginsAlert.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/components/Pay.d.ts +7 -1
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/PaymentMethodDetails.d.ts +7 -1
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Cancel.d.ts +2 -1
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Save.d.ts +2 -1
- package/dist/esm/types/src/components/PaymentForm/components/StoredPaymentMethods.d.ts +7 -1
- package/dist/esm/types/src/components/PaymentForm/context/AccountIdContext.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/context/CallbacksContext.d.ts +4 -2
- package/dist/esm/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/context/PaymentFormMethodsProvider.d.ts +32 -0
- package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +2 -2
- package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/hooks/usePay.d.ts +8 -7
- package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentHold.d.ts +6 -7
- package/dist/esm/types/src/components/PaymentForm/hooks/useSave.d.ts +7 -9
- package/dist/esm/types/src/components/PaymentMethods/components/CardBrandIcons.d.ts +2 -0
- package/dist/{cjs/types/src/components/PaymentForm/DemoPay/CreditCard → esm/types/src/components/PaymentMethods}/components/CardImage.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentMethods/components/DemoPayCardBox.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentMethods/components/DemoPayCardBox.rules.d.ts +46 -0
- package/dist/esm/types/src/components/PaymentMethods/components/DemoPayCardCvc.d.ts +8 -0
- package/dist/esm/types/src/components/PaymentMethods/components/DemoPayCardNumber.d.ts +8 -0
- package/dist/esm/types/src/components/PaymentMethods/components/DemoPayExpiry.d.ts +8 -0
- package/dist/esm/types/src/components/PaymentMethods/components/NewPaymentMethodFields.d.ts +10 -0
- package/dist/esm/types/src/components/PaymentMethods/components/PaymentTile.d.ts +23 -0
- package/dist/esm/types/src/components/PaymentMethods/components/PaymentTile.rules.d.ts +57 -0
- package/dist/esm/types/src/components/PaymentMethods/components/PaymentTileGroup.d.ts +18 -0
- package/dist/esm/types/src/components/PaymentMethods/components/PluginTiles.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentMethods/components/SavedPaymentMethodTiles.d.ts +15 -0
- package/dist/esm/types/src/components/PaymentMethods/components/StripeElements.d.ts +14 -0
- package/dist/esm/types/src/components/PaymentMethods/components/StripePaymentElement.d.ts +16 -0
- package/dist/esm/types/src/components/PaymentMethods/constants/demoPayInputStyle.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentMethods/contexts/DemoPayCardDetailsContext.d.ts +10 -0
- package/dist/esm/types/src/components/PaymentMethods/contexts/PaymentMethodsContext.d.ts +41 -0
- package/dist/esm/types/src/components/PaymentMethods/graphql/fragments/SavedPaymentMethodTiles_PaymentMethodFragment.d.ts +18 -0
- package/dist/esm/types/src/components/PaymentMethods/hooks/useLoadStripe.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentMethods/hooks/useNewPaymentMethod.d.ts +16 -0
- package/dist/esm/types/src/components/PaymentMethods/hooks/useStripePaymentMethodId.d.ts +27 -0
- package/dist/esm/types/src/components/PaymentMethods/utils/demoPayCard.d.ts +12 -0
- package/dist/esm/types/src/components/PaymentMethods/utils/paymentPlugins.d.ts +9 -0
- package/dist/esm/types/src/components/PaymentMethods/utils/storeNewPaymentMethod.d.ts +14 -0
- package/dist/esm/types/src/components/PaymentMethods/utils/stripeAppearance.d.ts +12 -0
- package/dist/esm/types/src/components/Quote/Quote.d.ts +7 -1
- package/dist/esm/types/src/components/Quote/Quote.rules.d.ts +54 -0
- package/dist/esm/types/src/components/Quote/Quote.stories.d.ts +2 -4
- package/dist/esm/types/src/components/Quote/components/AcceptQuoteModal.d.ts +1 -1
- package/dist/esm/types/src/components/Quote/components/NoSigningPluginsForm.d.ts +1 -1
- package/dist/esm/types/src/components/Quote/components/PaymentHoldDisplay.d.ts +1 -1
- package/dist/esm/types/src/components/Quote/components/PaymentHoldModal.d.ts +1 -1
- package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +1 -1
- package/dist/esm/types/src/components/Quote/components/QuoteIsAcceptedLabel.d.ts +1 -1
- package/dist/esm/types/src/components/Quote/queries/getFormattedQuote.d.ts +2 -2
- package/dist/esm/types/src/components/QuoteProvider/QuoteProvider.d.ts +1 -1
- package/dist/esm/types/src/components/QuoteProvider/context/quantityEditableChargesContext.d.ts +1 -1
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +4 -4
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +3 -1
- package/dist/esm/types/src/components/QuoteProvider/fragments/useQuantityEditableCharges_QuoteFragment.d.ts +1 -1
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +3 -3
- package/dist/esm/types/src/components/QuoteProvider/hooks/useSelectedPriceListQuoteChange.d.ts +1 -1
- package/dist/esm/types/src/components/Signup/Signup.d.ts +4 -29
- package/dist/esm/types/src/components/Signup/Signup.stories.d.ts +3 -1
- package/dist/esm/types/src/components/Signup/SignupContent.d.ts +7 -2
- package/dist/esm/types/src/components/Signup/components/SignupCheckoutForm.d.ts +2 -0
- package/dist/esm/types/src/components/Signup/graphql/mutations/quoteAccountSignup.d.ts +76 -0
- package/dist/esm/types/src/components/Signup/hooks/useSignupCheckout.d.ts +11 -0
- package/dist/esm/types/src/components/Signup/index.d.ts +2 -1
- package/dist/esm/types/src/components/StateTag.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/CheckIcon.d.ts +3 -3
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +7 -7
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.rules.d.ts +67 -0
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.stories.d.ts +2 -4
- package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput/CheckoutBarInput.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +2 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +3 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/fragments/PlanPickerCheckoutBar_QuoteFragment.d.ts +1 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/FeatureGridCell.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/GridTemplateColumnsWrapper.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/PlanFeatures.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureGroup.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureTitle.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanPickerGridCell.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +4 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardDescription.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPrice.d.ts +4 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/BackButton.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +7 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.rules.d.ts +99 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.stories.d.ts +3 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/contexts/DefaultBillingPeriodContext.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/fragments/UpgradeContent_QuoteFragment.d.ts +10 -0
- package/dist/esm/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +1 -5
- package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +5 -5
- package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuantityInput.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/ShowInactiveToggle.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionListSkeleton.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +4 -8
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionsCardCell.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/UsageCell.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardCellMobile.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/tagConsts.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +1 -1
- package/dist/esm/types/src/components/TaxationForm.d.ts +1 -1
- package/dist/esm/types/src/components/{Checkout → UpgradeCheckout}/QuoteCheckout.d.ts +23 -32
- package/dist/esm/types/src/components/UpgradeCheckout/QuoteCheckoutPaymentForm.d.ts +42 -0
- package/dist/esm/types/src/components/UpgradeCheckout/QuoteIsLoadingIndicator.d.ts +1 -0
- package/dist/esm/types/src/components/UpgradeCheckout/UpgradeCheckout.d.ts +41 -0
- package/dist/esm/types/src/components/UpgradeCheckout/UpgradeCheckout.rules.d.ts +17 -0
- package/dist/esm/types/src/components/icons/Amex.d.ts +1 -1
- package/dist/esm/types/src/components/icons/ArrowDownToLine.d.ts +1 -1
- package/dist/esm/types/src/components/icons/Bancontact.d.ts +1 -1
- package/dist/esm/types/src/components/icons/CardIcon.d.ts +1 -1
- package/dist/esm/types/src/components/icons/Cashapp.d.ts +1 -1
- package/dist/esm/types/src/components/icons/ChinaUnionPay.d.ts +1 -1
- package/dist/esm/types/src/components/icons/CreditCard.d.ts +1 -1
- package/dist/esm/types/src/components/icons/DinersClub.d.ts +1 -1
- package/dist/esm/types/src/components/icons/Discover.d.ts +1 -1
- package/dist/esm/types/src/components/icons/IDeal.d.ts +1 -1
- package/dist/esm/types/src/components/icons/JSB.d.ts +1 -1
- package/dist/esm/types/src/components/icons/Link.d.ts +1 -1
- package/dist/esm/types/src/components/icons/Mastercard.d.ts +1 -1
- package/dist/esm/types/src/components/icons/Sepa.d.ts +1 -1
- package/dist/esm/types/src/components/icons/Visa.d.ts +1 -1
- package/dist/esm/types/src/components/index.d.ts +10 -3
- package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +7 -2
- package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/components/PriceTierRow.d.ts +1 -1
- package/dist/esm/types/src/components/tables/InfiniteTable/InfiniteResourceTable.d.ts +44 -0
- package/dist/esm/types/src/components/tables/InfiniteTable/InfiniteTable.d.ts +26 -0
- package/dist/esm/types/src/components/tables/InfiniteTable/InfiniteTable.rules.d.ts +85 -0
- package/dist/esm/types/src/components/tables/InfiniteTable/InfiniteTableFooter.d.ts +9 -0
- package/dist/esm/types/src/components/tables/InfiniteTable/InfiniteTableGridCell.d.ts +8 -0
- package/dist/esm/types/src/components/tables/InfiniteTable/InfiniteTableHeader.d.ts +5 -0
- package/dist/esm/types/src/components/tables/InfiniteTable/hooks/useAutoRowsPerPage.d.ts +11 -0
- package/dist/esm/types/src/components/tables/InfiniteTable/hooks/useContainerWidth.d.ts +1 -0
- package/dist/esm/types/src/components/tables/InfiniteTable/index.d.ts +4 -0
- package/dist/esm/types/src/components/tables/InfiniteTable/types.d.ts +51 -0
- package/dist/esm/types/src/components/tables/Invoices/Invoices.d.ts +28 -0
- package/dist/esm/types/src/components/tables/Invoices/Invoices.stories.d.ts +10 -0
- package/dist/esm/types/src/components/tables/Invoices/index.d.ts +1 -0
- package/dist/esm/types/src/components/tables/Invoices/invoicesList/InvoiceMobileRow.d.ts +10 -0
- package/dist/esm/types/src/components/tables/Invoices/invoicesList/getInvoiceColumns.d.ts +22 -0
- package/dist/esm/types/src/components/tables/Quotes/Quotes.d.ts +23 -0
- package/dist/esm/types/src/components/{Quotes → tables/Quotes}/Quotes.stories.d.ts +2 -4
- package/dist/esm/types/src/components/tables/Quotes/quotesList/QuoteMobileRow.d.ts +9 -0
- package/dist/esm/types/src/components/tables/Quotes/quotesList/getQuoteColumns.d.ts +22 -0
- package/dist/esm/types/src/components/tables/Transactions/Transactions.d.ts +29 -0
- package/dist/esm/types/src/components/{Transactions → tables/Transactions}/Transactions.stories.d.ts +2 -7
- package/dist/esm/types/src/components/{Transactions → tables/Transactions}/transactionsList/TransactionDate.d.ts +1 -1
- package/dist/esm/types/src/components/tables/Transactions/transactionsList/TransactionDetail.d.ts +7 -0
- package/dist/{cjs/types/src/components → esm/types/src/components/tables}/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
- package/dist/esm/types/src/components/tables/Transactions/transactionsList/TransactionMobileRow.d.ts +11 -0
- package/dist/esm/types/src/components/{Transactions → tables/Transactions}/transactionsList/TransactionTitle.d.ts +1 -1
- package/dist/esm/types/src/components/tables/Transactions/transactionsList/getTransactionColumns.d.ts +16 -0
- package/dist/esm/types/src/components/{Transactions → tables/Transactions}/transactionsList/utils.d.ts +1 -1
- package/dist/esm/types/src/components/tables/Transactions/types.d.ts +1 -0
- package/dist/esm/types/src/contexts/BrandContext.d.ts +1 -1
- package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +1 -3
- package/dist/esm/types/src/contexts/onPaymentMethodRemoved.d.ts +1 -1
- package/dist/esm/types/src/contexts/onPaymentMethodSaved.d.ts +1 -1
- package/dist/esm/types/src/graphql/mutations/checkout.d.ts +1 -1
- package/dist/{cjs/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts → esm/types/src/graphql/mutations/quoteAddCoupon.d.ts} +2 -2
- package/dist/esm/types/src/graphql/mutations/quoteRemoveCoupon.d.ts +9 -0
- package/dist/esm/types/src/graphql/queries/getInvoices.d.ts +11 -0
- package/dist/esm/types/src/graphql/queries/getQuotes.d.ts +8 -3
- package/dist/esm/types/src/graphql/queries/getTransactions.d.ts +9 -1
- package/dist/esm/types/src/graphql/queries/paginatedQuery.d.ts +22 -0
- package/dist/esm/types/src/hooks/useActiveCoupons.d.ts +7 -0
- package/dist/esm/types/src/hooks/{useUpdateCoupons.d.ts → useCouponMutations.d.ts} +4 -7
- package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +2 -2
- package/dist/esm/types/src/hooks/useFocusFirstInput.d.ts +2 -3
- package/dist/esm/types/src/hooks/useHasTaxPlugin.d.ts +1 -0
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +39 -4
- package/dist/esm/types/src/hooks/usePaymentPlugins.d.ts +3 -1
- package/dist/esm/types/src/mocks/checkoutHandlers.d.ts +3 -0
- package/dist/esm/types/src/mocks/handlers.d.ts +1 -1
- package/dist/esm/types/src/mocks/paymentFormHandlers.d.ts +6 -0
- package/dist/esm/types/src/storybook-utils.d.ts +18 -7
- package/dist/esm/types/src/types/CreditNote.d.ts +1 -1
- package/dist/esm/types/src/types/Feature.d.ts +1 -1
- package/dist/esm/types/src/types/FormattedInvoice.d.ts +1 -1
- package/dist/esm/types/src/types/InvoiceItem.d.ts +1 -1
- package/dist/esm/types/src/types/PriceList.d.ts +2 -2
- package/dist/esm/types/src/types/PriceListCharge.d.ts +1 -1
- package/dist/esm/types/src/types/Quote.d.ts +1 -1
- package/dist/esm/types/src/types/QuoteChange.d.ts +1 -1
- package/dist/esm/types/src/types/QuoteCharge.d.ts +2 -2
- package/dist/esm/types/src/types/SubscriptionCharge.d.ts +1 -1
- package/dist/esm/types/src/types/frontendTypes/TableColumn.d.ts +1 -1
- package/dist/esm/types/src/types/scalarTypes.d.ts +3 -0
- package/dist/esm/types/src/types/scalarTypes.types.test.d.ts +5 -0
- package/dist/esm/types/src/ui/appearance/AppearanceProvider.d.ts +19 -0
- package/dist/esm/types/src/ui/appearance/antdTheme.d.ts +9 -0
- package/dist/esm/types/src/ui/appearance/appearance.types.test.d.ts +19 -0
- package/dist/esm/types/src/ui/appearance/color.d.ts +28 -0
- package/dist/esm/types/src/ui/appearance/deprecatedTypes.d.ts +7 -0
- package/dist/esm/types/src/ui/appearance/index.d.ts +2 -0
- package/dist/esm/types/src/ui/appearance/pageFonts.d.ts +3 -0
- package/dist/esm/types/src/ui/appearance/resolveAppearance.d.ts +32 -0
- package/dist/esm/types/src/ui/appearance/ruleGroups.d.ts +17 -0
- package/dist/esm/types/src/ui/appearance/rules.d.ts +42 -0
- package/dist/esm/types/src/ui/appearance/rulesToCss.d.ts +27 -0
- package/dist/esm/types/src/ui/appearance/scripts/dumpAppearance.d.ts +1 -0
- package/dist/esm/types/src/ui/appearance/stories/TwoRoots.stories.d.ts +4 -0
- package/dist/esm/types/src/ui/appearance/stories/themes.d.ts +49 -0
- package/dist/esm/types/src/ui/appearance/types.d.ts +531 -0
- package/dist/esm/types/src/ui/appearance/variables.d.ts +59 -0
- package/dist/esm/types/src/ui/components/Button/Button.d.ts +33 -0
- package/dist/esm/types/src/ui/components/Button/Button.rules.d.ts +124 -0
- package/dist/esm/types/src/ui/components/Button/Button.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Card/Card.d.ts +14 -0
- package/dist/esm/types/src/ui/components/Card/Card.rules.d.ts +32 -0
- package/dist/esm/types/src/ui/components/Card/Card.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Checkbox/Checkbox.d.ts +14 -0
- package/dist/esm/types/src/ui/components/Checkbox/Checkbox.rules.d.ts +52 -0
- package/dist/esm/types/src/ui/components/Checkbox/Checkbox.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Divider/Divider.d.ts +11 -0
- package/dist/esm/types/src/ui/components/Divider/Divider.rules.d.ts +23 -0
- package/dist/esm/types/src/ui/components/Divider/Divider.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Document/Document.d.ts +7 -0
- package/dist/esm/types/src/ui/components/Document/Document.rules.d.ts +12 -0
- package/dist/esm/types/src/ui/components/Document/Document.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Drawer/Drawer.d.ts +9 -0
- package/dist/esm/types/src/ui/components/Drawer/Drawer.rules.d.ts +28 -0
- package/dist/esm/types/src/ui/components/Drawer/Drawer.stories.d.ts +11 -0
- package/dist/esm/types/src/ui/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/esm/types/src/ui/components/Field/Field.d.ts +25 -0
- package/dist/esm/types/src/ui/components/Field/Field.rules.d.ts +41 -0
- package/dist/esm/types/src/ui/components/Field/Field.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Link/Link.d.ts +3 -0
- package/dist/esm/types/src/ui/components/Link/Link.rules.d.ts +20 -0
- package/dist/esm/types/src/ui/components/Link/Link.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Modal/Modal.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Modal/Modal.rules.d.ts +23 -0
- package/dist/esm/types/src/ui/components/Modal/Modal.stories.d.ts +11 -0
- package/dist/esm/types/src/ui/components/Popconfirm/Popconfirm.d.ts +18 -0
- package/dist/esm/types/src/ui/components/Popconfirm/Popconfirm.rules.d.ts +16 -0
- package/dist/esm/types/src/ui/components/Segmented/Segmented.d.ts +16 -0
- package/dist/esm/types/src/ui/components/Segmented/Segmented.rules.d.ts +46 -0
- package/dist/esm/types/src/ui/components/Segmented/Segmented.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Select/MultiSelect.d.ts +23 -0
- package/dist/esm/types/src/ui/components/Select/Select.d.ts +22 -0
- package/dist/esm/types/src/ui/components/Select/Select.rules.d.ts +115 -0
- package/dist/esm/types/src/ui/components/Select/Select.stories.d.ts +18 -0
- package/dist/esm/types/src/ui/components/Select/SelectMenu.d.ts +13 -0
- package/dist/esm/types/src/ui/components/Select/useSelectMenu.d.ts +45 -0
- package/dist/esm/types/src/ui/components/Skeleton/Skeleton.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Skeleton/Skeleton.rules.d.ts +15 -0
- package/dist/esm/types/src/ui/components/Skeleton/Skeleton.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Spinner/Spinner.d.ts +9 -0
- package/dist/esm/types/src/ui/components/Spinner/Spinner.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Switch/Switch.d.ts +12 -0
- package/dist/esm/types/src/ui/components/Switch/Switch.rules.d.ts +66 -0
- package/dist/esm/types/src/ui/components/Switch/Switch.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Table/Table.d.ts +24 -0
- package/dist/esm/types/src/ui/components/Table/Table.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Tag/Tag.d.ts +12 -0
- package/dist/esm/types/src/ui/components/Tag/Tag.rules.d.ts +49 -0
- package/dist/esm/types/src/ui/components/Tag/Tag.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Text/Text.d.ts +53 -0
- package/dist/esm/types/src/ui/components/Text/Text.rules.d.ts +76 -0
- package/dist/esm/types/src/ui/components/Text/Text.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/TextInput/TextInput.d.ts +13 -0
- package/dist/esm/types/src/ui/components/TextInput/TextInput.rules.d.ts +53 -0
- package/dist/esm/types/src/ui/components/TextInput/TextInput.stories.d.ts +8 -0
- package/dist/esm/types/src/ui/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/esm/types/src/ui/components/Tooltip/Tooltip.rules.d.ts +24 -0
- package/dist/{cjs/types/src/UI → esm/types/src/ui/components}/TruncatedText/TruncatedText.d.ts +1 -1
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +44 -8
- package/dist/esm/types/src/utils/couponUtils.d.ts +2 -2
- package/dist/esm/types/src/utils/createStateContext.d.ts +1 -1
- package/dist/esm/types/src/utils/createValueContext.d.ts +1 -1
- package/dist/esm/types/src/utils/priceListUtils/priceListPriceText.d.ts +1 -1
- package/dist/esm/types/src/utils/readNullableFragment.d.ts +2 -0
- package/dist/index.d.ts +2115 -133
- package/package.json +10 -7
- package/skills/bunny-components/SKILL.md +431 -0
- package/dist/cjs/types/src/UI/Tooltip.d.ts +0 -2
- package/dist/cjs/types/src/components/Card.d.ts +0 -6
- package/dist/cjs/types/src/components/Checkout/QuoteIsLoadingIndicator.d.ts +0 -1
- package/dist/cjs/types/src/components/CustomizedAntdComponents/Tag.d.ts +0 -37
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +0 -25
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +0 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +0 -7
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +0 -7
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +0 -7
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayFormProvider.d.ts +0 -10
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +0 -21
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +0 -16
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +0 -12
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +0 -9
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/index.d.ts +0 -1
- package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +0 -4
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +0 -16
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +0 -12
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +0 -10
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +0 -33
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Collapsible.d.ts +0 -7
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails/components/PaymentMethodSelector.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentMethodFormVisibilityContext.d.ts +0 -12
- package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +0 -6
- package/dist/cjs/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +0 -16
- package/dist/cjs/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +0 -5
- package/dist/cjs/types/src/components/PaymentForm/fragments/StoredPaymentMethods_PaymentMethodsFragment.d.ts +0 -13
- package/dist/cjs/types/src/components/PaymentForm/hooks/useHasActiveSubscription.d.ts +0 -5
- package/dist/cjs/types/src/components/Quote/StyledModal.d.ts +0 -3
- package/dist/cjs/types/src/components/Quotes/Quotes.d.ts +0 -38
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +0 -9
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +0 -11
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_QuoteFragment.d.ts +0 -30
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +0 -14
- package/dist/cjs/types/src/components/Signup/components/CheckoutSummary/totalsUtils.d.ts +0 -9
- package/dist/cjs/types/src/components/Signup/components/InitialSignupFormFields.d.ts +0 -47
- package/dist/cjs/types/src/components/Signup/components/LoadingOverlay.d.ts +0 -4
- package/dist/cjs/types/src/components/Signup/components/Logo.d.ts +0 -2
- package/dist/cjs/types/src/components/Signup/components/PriceListDisplay.d.ts +0 -29
- package/dist/cjs/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +0 -6
- package/dist/cjs/types/src/components/Signup/components/QuoteCreateButton.d.ts +0 -6
- package/dist/cjs/types/src/components/Signup/components/SelfServiceBuyWarning.d.ts +0 -14
- package/dist/cjs/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +0 -13
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +0 -31
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +0 -34
- package/dist/cjs/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts +0 -8
- package/dist/cjs/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts +0 -15
- package/dist/cjs/types/src/components/Signup/components/SignupPaymentForm.d.ts +0 -15
- package/dist/cjs/types/src/components/Signup/components/SignupSplitScreenContainer.d.ts +0 -6
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/SuccessDisplay.d.ts +0 -10
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/SignupSuccessDisplay.d.ts +0 -6
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/SuccessIcon.d.ts +0 -2
- package/dist/cjs/types/src/components/Signup/components/SuccessDisplay/components/ViewPortalSubscription.d.ts +0 -5
- package/dist/cjs/types/src/components/Signup/consts.d.ts +0 -1
- package/dist/cjs/types/src/components/Signup/fragments/QuoteAcceptPage_PriceListFragment.d.ts +0 -9
- package/dist/cjs/types/src/components/Signup/fragments/SignupPaymentForm_QuoteFragment.d.ts +0 -13
- package/dist/cjs/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +0 -23
- package/dist/cjs/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +0 -31
- package/dist/cjs/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +0 -10
- package/dist/cjs/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +0 -4
- package/dist/cjs/types/src/components/Signup/hooks/useApplySignupFormDefaults.d.ts +0 -9
- package/dist/cjs/types/src/components/Signup/hooks/useQuoteAccountSignupMutation.d.ts +0 -29
- package/dist/cjs/types/src/components/Signup/hooks/useQuoteRecalculateTaxes.d.ts +0 -4
- package/dist/cjs/types/src/components/Signup/hooks/useSetSignupQuoteQueryData.d.ts +0 -5
- package/dist/cjs/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +0 -12
- package/dist/cjs/types/src/components/Signup/mutations/contactUpdate.d.ts +0 -12
- package/dist/cjs/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +0 -34
- package/dist/cjs/types/src/components/Signup/mutations/quoteChangeUpdate.d.ts +0 -12
- package/dist/cjs/types/src/components/Signup/mutations/quoteRecalculateTaxes.d.ts +0 -11
- package/dist/cjs/types/src/components/Signup/queries/getAccountByCode.d.ts +0 -8
- package/dist/cjs/types/src/components/Signup/queries/getAccountForSignupCompose.d.ts +0 -20
- package/dist/cjs/types/src/components/Signup/queries/getCurrentUserAccountForSignup.d.ts +0 -14
- package/dist/cjs/types/src/components/Signup/queries/getSignupQuote.d.ts +0 -10
- package/dist/cjs/types/src/components/Signup/signup-quote/SignupQuote.d.ts +0 -2
- package/dist/cjs/types/src/components/Signup/signup-quote/SignupQuoteProvider.d.ts +0 -9
- package/dist/cjs/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts +0 -14
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +0 -8
- package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +0 -56
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionGridCell.d.ts +0 -2
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsEmptyState.d.ts +0 -2
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +0 -7
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +0 -6
- package/dist/cjs/types/src/contexts/TransactionsListContext.d.ts +0 -30
- package/dist/cjs/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +0 -11
- package/dist/esm/types/src/UI/Tooltip.d.ts +0 -2
- package/dist/esm/types/src/components/Card.d.ts +0 -6
- package/dist/esm/types/src/components/Checkout/QuoteIsLoadingIndicator.d.ts +0 -1
- package/dist/esm/types/src/components/CustomizedAntdComponents/Tag.d.ts +0 -37
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +0 -25
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +0 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +0 -7
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +0 -7
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +0 -7
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayFormProvider.d.ts +0 -10
- package/dist/esm/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +0 -21
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +0 -16
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +0 -12
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +0 -9
- package/dist/esm/types/src/components/PaymentForm/DemoPay/index.d.ts +0 -1
- package/dist/esm/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/Stripe/StripeFormProvider.d.ts +0 -4
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +0 -16
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +0 -12
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +0 -10
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +0 -33
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/Collapsible.d.ts +0 -7
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails/components/PaymentMethodSelector.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/context/PaymentMethodFormVisibilityContext.d.ts +0 -12
- package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +0 -6
- package/dist/esm/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +0 -16
- package/dist/esm/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +0 -5
- package/dist/esm/types/src/components/PaymentForm/fragments/StoredPaymentMethods_PaymentMethodsFragment.d.ts +0 -13
- package/dist/esm/types/src/components/PaymentForm/hooks/useHasActiveSubscription.d.ts +0 -5
- package/dist/esm/types/src/components/Quote/StyledModal.d.ts +0 -3
- package/dist/esm/types/src/components/Quotes/Quotes.d.ts +0 -38
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/CheckoutSummary.d.ts +0 -9
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/components/CheckoutSummaryTotals.d.ts +0 -11
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/fragments/CheckoutSummary_QuoteFragment.d.ts +0 -30
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/hooks/sortQuoteChangeCharges.d.ts +0 -14
- package/dist/esm/types/src/components/Signup/components/CheckoutSummary/totalsUtils.d.ts +0 -9
- package/dist/esm/types/src/components/Signup/components/InitialSignupFormFields.d.ts +0 -47
- package/dist/esm/types/src/components/Signup/components/LoadingOverlay.d.ts +0 -4
- package/dist/esm/types/src/components/Signup/components/Logo.d.ts +0 -2
- package/dist/esm/types/src/components/Signup/components/PriceListDisplay.d.ts +0 -29
- package/dist/esm/types/src/components/Signup/components/PurchaseSuccessDisplay.d.ts +0 -6
- package/dist/esm/types/src/components/Signup/components/QuoteCreateButton.d.ts +0 -6
- package/dist/esm/types/src/components/Signup/components/SelfServiceBuyWarning.d.ts +0 -14
- package/dist/esm/types/src/components/Signup/components/SignupForm/SignupForm.d.ts +0 -13
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountForm.d.ts +0 -31
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/ExistingAccountLoadedEffect.d.ts +0 -34
- package/dist/esm/types/src/components/Signup/components/SignupForm/components/NewAccountForm.d.ts +0 -8
- package/dist/esm/types/src/components/Signup/components/SignupForm/hooks/useExistingAccount.d.ts +0 -15
- package/dist/esm/types/src/components/Signup/components/SignupPaymentForm.d.ts +0 -15
- package/dist/esm/types/src/components/Signup/components/SignupSplitScreenContainer.d.ts +0 -6
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/SuccessDisplay.d.ts +0 -10
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/SignupSuccessDisplay.d.ts +0 -6
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/SuccessIcon.d.ts +0 -2
- package/dist/esm/types/src/components/Signup/components/SuccessDisplay/components/ViewPortalSubscription.d.ts +0 -5
- package/dist/esm/types/src/components/Signup/consts.d.ts +0 -1
- package/dist/esm/types/src/components/Signup/fragments/QuoteAcceptPage_PriceListFragment.d.ts +0 -9
- package/dist/esm/types/src/components/Signup/fragments/SignupPaymentForm_QuoteFragment.d.ts +0 -13
- package/dist/esm/types/src/components/Signup/fragments/Signup_PriceListFragment.d.ts +0 -23
- package/dist/esm/types/src/components/Signup/fragments/Signup_QuoteFragment.d.ts +0 -31
- package/dist/esm/types/src/components/Signup/hooks/useAccountDetailsUpdate.d.ts +0 -10
- package/dist/esm/types/src/components/Signup/hooks/useApplyDefaultCoupon.d.ts +0 -4
- package/dist/esm/types/src/components/Signup/hooks/useApplySignupFormDefaults.d.ts +0 -9
- package/dist/esm/types/src/components/Signup/hooks/useQuoteAccountSignupMutation.d.ts +0 -29
- package/dist/esm/types/src/components/Signup/hooks/useQuoteRecalculateTaxes.d.ts +0 -4
- package/dist/esm/types/src/components/Signup/hooks/useSetSignupQuoteQueryData.d.ts +0 -5
- package/dist/esm/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +0 -12
- package/dist/esm/types/src/components/Signup/mutations/contactUpdate.d.ts +0 -12
- package/dist/esm/types/src/components/Signup/mutations/quoteAccountSignup.d.ts +0 -34
- package/dist/esm/types/src/components/Signup/mutations/quoteChangeUpdate.d.ts +0 -12
- package/dist/esm/types/src/components/Signup/mutations/quoteRecalculateTaxes.d.ts +0 -11
- package/dist/esm/types/src/components/Signup/queries/getAccountByCode.d.ts +0 -8
- package/dist/esm/types/src/components/Signup/queries/getAccountForSignupCompose.d.ts +0 -20
- package/dist/esm/types/src/components/Signup/queries/getCurrentUserAccountForSignup.d.ts +0 -14
- package/dist/esm/types/src/components/Signup/queries/getSignupQuote.d.ts +0 -10
- package/dist/esm/types/src/components/Signup/signup-quote/SignupQuote.d.ts +0 -2
- package/dist/esm/types/src/components/Signup/signup-quote/SignupQuoteProvider.d.ts +0 -9
- package/dist/esm/types/src/components/Signup/signup-quote/fragments/SignupQuote_QuoteFragment.d.ts +0 -14
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +0 -8
- package/dist/esm/types/src/components/Transactions/Transactions.d.ts +0 -56
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionGridCell.d.ts +0 -2
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsEmptyState.d.ts +0 -2
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +0 -7
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +0 -6
- package/dist/esm/types/src/contexts/TransactionsListContext.d.ts +0 -30
- package/dist/esm/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +0 -11
- /package/dist/cjs/types/src/components/{Signup → CheckoutShared}/utils/createPortalReturnUrl.d.ts +0 -0
- /package/dist/cjs/types/src/components/{Checkout → UpgradeCheckout}/checkoutUtils.d.ts +0 -0
- /package/dist/cjs/types/src/components/{Quotes → tables/Quotes}/index.d.ts +0 -0
- /package/dist/cjs/types/src/components/{Transactions → tables/Transactions}/index.d.ts +0 -0
- /package/dist/cjs/types/src/{UI → ui/components}/TruncatedText/hooks/useIsTextTruncated.d.ts +0 -0
- /package/dist/esm/types/src/components/{Signup → CheckoutShared}/utils/createPortalReturnUrl.d.ts +0 -0
- /package/dist/esm/types/src/components/{Checkout → UpgradeCheckout}/checkoutUtils.d.ts +0 -0
- /package/dist/esm/types/src/components/{Quotes → tables/Quotes}/index.d.ts +0 -0
- /package/dist/esm/types/src/components/{Transactions → tables/Transactions}/index.d.ts +0 -0
- /package/dist/esm/types/src/{UI → ui/components}/TruncatedText/hooks/useIsTextTruncated.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,1352 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import react__default, { CSSProperties, ReactNode, ComponentProps } from 'react';
|
|
2
3
|
import * as gql_tada from 'gql.tada';
|
|
3
4
|
import { ResultOf, FragmentOf } from 'gql.tada';
|
|
4
|
-
import FormattedInvoice from '@/types/FormattedInvoice';
|
|
5
|
-
import { Transaction, TransactionKind } from '@/types/Transaction';
|
|
6
|
-
import react, { ReactNode, ComponentProps } from 'react';
|
|
7
5
|
import { QueryClient } from '@tanstack/react-query';
|
|
8
|
-
import { ThemeConfig } from 'antd';
|
|
9
6
|
|
|
10
|
-
type
|
|
7
|
+
type PriceTier = {
|
|
8
|
+
starts: number;
|
|
9
|
+
price: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
type QuoteChangeKind$1 = 'ACTIVATE' | 'ADJUSTMENT' | 'COUPON' | 'CREDIT' | 'DISCOUNT' | 'FREE_PERIOD_DISCOUNT' | 'PERCENTAGE_DISCOUNT' | 'PRICE_UPDATE' | 'QUANTITY_UPDATE' | 'REINSTATE' | 'RENEW' | 'SUBSCRIBE' | 'UNSUBSCRIBE' | 'UPDATE';
|
|
13
|
+
type ChargeType = 'ONE_TIME' | 'RECURRING' | 'USAGE';
|
|
14
|
+
type BillingPeriod = 'ANNUAL' | 'MONTHLY' | 'ONCE' | 'QUARTERLY' | 'SEMI_ANNUAL';
|
|
15
|
+
|
|
16
|
+
type PlanFeature = {
|
|
17
|
+
code: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
feature: Feature;
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
featureId: string;
|
|
23
|
+
value?: string;
|
|
24
|
+
planId?: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
declare enum PriceAdjustmentAction {
|
|
28
|
+
NO_CHANGE = "NO_CHANGE",
|
|
29
|
+
PERCENTAGE = "PERCENTAGE",
|
|
30
|
+
CATALOG = "CATALOG"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare enum PriceAdjustmentTiming {
|
|
34
|
+
AT_RENEWAL = "AT_RENEWAL",
|
|
35
|
+
JANUARY = "JANUARY",
|
|
36
|
+
FEBRUARY = "FEBRUARY",
|
|
37
|
+
MARCH = "MARCH",
|
|
38
|
+
APRIL = "APRIL",
|
|
39
|
+
MAY = "MAY",
|
|
40
|
+
JUNE = "JUNE",
|
|
41
|
+
JULY = "JULY",
|
|
42
|
+
AUGUST = "AUGUST",
|
|
43
|
+
SEPTEMBER = "SEPTEMBER",
|
|
44
|
+
OCTOBER = "OCTOBER",
|
|
45
|
+
NOVEMBER = "NOVEMBER",
|
|
46
|
+
DECEMBER = "DECEMBER"
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type Currency = {
|
|
50
|
+
id: string;
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
priority: number;
|
|
53
|
+
name: string;
|
|
54
|
+
isoCode: string;
|
|
55
|
+
isoNumeric: string;
|
|
56
|
+
symbol: string;
|
|
57
|
+
symbolFirst: boolean;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
type PriceListChargeTier = {
|
|
61
|
+
starts: number;
|
|
62
|
+
ends: number;
|
|
63
|
+
price: number;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
declare enum UsageCalculationType {
|
|
67
|
+
SUM = "SUM",
|
|
68
|
+
MAX = "MAX",
|
|
69
|
+
LAST = "LAST"
|
|
70
|
+
}
|
|
71
|
+
declare enum PricingModel {
|
|
72
|
+
FLAT = "FLAT",
|
|
73
|
+
TIERED = "TIERED",
|
|
74
|
+
VOLUME = "VOLUME",
|
|
75
|
+
BANDS = "BANDS"
|
|
76
|
+
}
|
|
77
|
+
type PriceListCharge = {
|
|
78
|
+
id: string;
|
|
79
|
+
priceListId: string;
|
|
80
|
+
name: string;
|
|
81
|
+
selfServiceQuantity?: boolean;
|
|
82
|
+
specificInvoiceLineText?: string;
|
|
83
|
+
chargeType?: ChargeType;
|
|
84
|
+
pricingModel?: PricingModel;
|
|
85
|
+
billingPeriod?: BillingPeriod;
|
|
86
|
+
quantityMin?: number;
|
|
87
|
+
quantityMax?: number;
|
|
88
|
+
price?: Number;
|
|
89
|
+
priceDecimals?: number;
|
|
90
|
+
priceDescription?: string;
|
|
91
|
+
basePrice: number;
|
|
92
|
+
featureId?: string;
|
|
93
|
+
accountingCode?: string;
|
|
94
|
+
taxCode?: string;
|
|
95
|
+
createdAt: string;
|
|
96
|
+
updatedAt: string;
|
|
97
|
+
recognitionPeriod?: number;
|
|
98
|
+
priceListChargeTiers?: PriceListChargeTier[];
|
|
99
|
+
priceList?: PriceList;
|
|
100
|
+
plan?: Plan;
|
|
101
|
+
feature?: Feature;
|
|
102
|
+
usageCalculationType?: UsageCalculationType;
|
|
103
|
+
description?: string;
|
|
104
|
+
featureAddon?: boolean;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
type AccountType = {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
created_at: string;
|
|
111
|
+
updated_at: string;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
type Role = {
|
|
115
|
+
id: string;
|
|
116
|
+
name: string;
|
|
117
|
+
scopes?: string[];
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
type UserProfile = {
|
|
121
|
+
title?: string;
|
|
122
|
+
phone?: string;
|
|
123
|
+
timezone?: string;
|
|
124
|
+
tabnameIsSubdomain?: boolean;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
interface User {
|
|
128
|
+
id: string;
|
|
129
|
+
uuid?: string;
|
|
130
|
+
managerUserId?: string;
|
|
131
|
+
fullName: string;
|
|
132
|
+
firstName: string;
|
|
133
|
+
lastName?: string;
|
|
134
|
+
email?: string;
|
|
135
|
+
title?: string;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
lastLogin?: string;
|
|
139
|
+
managerUser?: User;
|
|
140
|
+
subordinates?: User[];
|
|
141
|
+
roleId?: string;
|
|
142
|
+
groupId?: string;
|
|
143
|
+
imageUrl: string;
|
|
144
|
+
enabled?: boolean;
|
|
145
|
+
allowLoginViaEmailLink?: boolean;
|
|
146
|
+
role?: Role;
|
|
147
|
+
profile?: UserProfile;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface ApprovalRule {
|
|
151
|
+
id?: string;
|
|
152
|
+
name?: string;
|
|
153
|
+
active?: boolean;
|
|
154
|
+
fromDate?: string;
|
|
155
|
+
toDate?: string;
|
|
156
|
+
approverId?: string;
|
|
157
|
+
approver?: Approver;
|
|
158
|
+
totalQuoteAmount?: number;
|
|
159
|
+
totalQuoteAmountEnabled: boolean;
|
|
160
|
+
overallQuoteDiscount?: number;
|
|
161
|
+
overallQuoteDiscountEnabled: boolean;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
interface Approver {
|
|
165
|
+
id: string;
|
|
166
|
+
name?: string;
|
|
167
|
+
userId: string;
|
|
168
|
+
user?: User;
|
|
169
|
+
approvalRules?: ApprovalRule[];
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
type ApprovalDecision = {
|
|
173
|
+
id?: string;
|
|
174
|
+
approvalRequestId: string;
|
|
175
|
+
approvalRequest: ApprovalRequest;
|
|
176
|
+
approverId: string;
|
|
177
|
+
approver: Approver;
|
|
178
|
+
notes?: string;
|
|
179
|
+
state: ApprovalRequestState;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
type ApprovalRequestState = "PENDING" | "APPROVED" | "REJECTED";
|
|
183
|
+
type ApprovalRequest = {
|
|
184
|
+
approvers: Approver[];
|
|
185
|
+
approvalDecisions: ApprovalDecision[];
|
|
186
|
+
id?: string;
|
|
187
|
+
quoteId: string;
|
|
188
|
+
quote: Quote$1;
|
|
189
|
+
state: ApprovalRequestState;
|
|
190
|
+
totalApprovers: number;
|
|
191
|
+
totalApprovals: number;
|
|
192
|
+
totalRejections: number;
|
|
193
|
+
triggeredApprovalRules: ApprovalRule[];
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
type Campaign = {
|
|
197
|
+
id: string;
|
|
198
|
+
name?: string;
|
|
199
|
+
code?: string;
|
|
200
|
+
ownerUserId?: string;
|
|
201
|
+
startDate?: string;
|
|
202
|
+
endDate?: string;
|
|
203
|
+
owner?: User;
|
|
204
|
+
leadCount: number;
|
|
205
|
+
contactCount: number;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
type Contact = {
|
|
209
|
+
id: string;
|
|
210
|
+
code?: string;
|
|
211
|
+
accountId?: string;
|
|
212
|
+
firstName: string;
|
|
213
|
+
lastName?: string;
|
|
214
|
+
fullName: string;
|
|
215
|
+
salutation?: string;
|
|
216
|
+
title?: string;
|
|
217
|
+
phone?: string;
|
|
218
|
+
mobile?: string;
|
|
219
|
+
email?: string;
|
|
220
|
+
mailingStreet?: string;
|
|
221
|
+
mailingCity?: string;
|
|
222
|
+
mailingZip?: string;
|
|
223
|
+
mailingState?: string;
|
|
224
|
+
mailingCountry?: string;
|
|
225
|
+
portalAccess?: boolean;
|
|
226
|
+
createdAt: string;
|
|
227
|
+
updatedAt?: string;
|
|
228
|
+
description?: string;
|
|
229
|
+
account?: Account;
|
|
230
|
+
campaigns: Campaign[];
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
type AmountByTier = {
|
|
234
|
+
id: string;
|
|
235
|
+
tier: {
|
|
236
|
+
starts: number;
|
|
237
|
+
ends: number | null;
|
|
238
|
+
price: number;
|
|
239
|
+
};
|
|
240
|
+
quantity: number;
|
|
241
|
+
amount: number;
|
|
242
|
+
};
|
|
243
|
+
type AmountByPeriod$1 = {
|
|
244
|
+
amount: number;
|
|
245
|
+
endDate: string;
|
|
246
|
+
id: string;
|
|
247
|
+
name: string;
|
|
248
|
+
startDate: string;
|
|
249
|
+
amountsByTier: AmountByTier[];
|
|
250
|
+
prorationRate: number;
|
|
251
|
+
quantity: number;
|
|
252
|
+
};
|
|
253
|
+
type FormattedLine = {
|
|
254
|
+
amount: number;
|
|
255
|
+
amountsByPeriod: AmountByPeriod$1[];
|
|
256
|
+
billingPeriodEnd: string;
|
|
257
|
+
billingPeriodStart: string;
|
|
258
|
+
chargeType: string;
|
|
259
|
+
discount: number;
|
|
260
|
+
frequency: string;
|
|
261
|
+
isRamp?: boolean;
|
|
262
|
+
lineText?: string;
|
|
263
|
+
periods: number | string;
|
|
264
|
+
planName: string;
|
|
265
|
+
position: number;
|
|
266
|
+
price: number;
|
|
267
|
+
priceDecimals: number;
|
|
268
|
+
priceListChargeId: string;
|
|
269
|
+
priceListChargeName?: string;
|
|
270
|
+
priceListId: string;
|
|
271
|
+
pricingModel: PricingModel;
|
|
272
|
+
productName: string;
|
|
273
|
+
prorationRate: number;
|
|
274
|
+
quantity?: number;
|
|
275
|
+
showProductNameOnLineItem: boolean;
|
|
276
|
+
taxCode?: string;
|
|
277
|
+
trialEndDate?: string;
|
|
278
|
+
unitOfMeasure: string;
|
|
279
|
+
vatCode?: string;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
type PeriodAmount = {
|
|
283
|
+
id: string;
|
|
284
|
+
name: string;
|
|
285
|
+
amount: number;
|
|
286
|
+
startDate: string;
|
|
287
|
+
endDate: string;
|
|
288
|
+
amountsByTier: Array<Record<string, any>>;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
type Interval = {
|
|
292
|
+
intervalStart: string;
|
|
293
|
+
intervalUsage: number;
|
|
294
|
+
};
|
|
295
|
+
type DataEntry = {
|
|
296
|
+
periodStart: string;
|
|
297
|
+
periodEnd: string;
|
|
298
|
+
intervals: Interval[];
|
|
299
|
+
intervalsTotal: number;
|
|
300
|
+
};
|
|
301
|
+
type SubscriptionCharge$1 = {
|
|
302
|
+
id: string;
|
|
303
|
+
name: string;
|
|
304
|
+
amount: number;
|
|
305
|
+
currentPeriodPriceByTiers: any | null;
|
|
306
|
+
};
|
|
307
|
+
type Feature$1 = {
|
|
308
|
+
id: string;
|
|
309
|
+
name: string;
|
|
310
|
+
};
|
|
311
|
+
declare enum DataInterval {
|
|
312
|
+
DAILY = "DAILY",
|
|
313
|
+
MONTHLY = "MONTHLY",
|
|
314
|
+
QUARTERLY = "QUARTERLY",
|
|
315
|
+
SEMIANNUALLY = "SEMIANNUALLY",
|
|
316
|
+
YEARLY = "YEARLY"
|
|
317
|
+
}
|
|
318
|
+
type FeatureUsage = {
|
|
319
|
+
subscriptionCharge?: SubscriptionCharge$1;
|
|
320
|
+
feature: Feature$1;
|
|
321
|
+
periodRange: string;
|
|
322
|
+
dataInterval: DataInterval;
|
|
323
|
+
data: DataEntry[];
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
type SubscriptionCharge = {
|
|
327
|
+
account: Account;
|
|
328
|
+
amount: number;
|
|
329
|
+
billingPeriod: BillingPeriod;
|
|
330
|
+
chargeType: ChargeType;
|
|
331
|
+
createdAt: string;
|
|
332
|
+
currency: Currency;
|
|
333
|
+
discount?: number;
|
|
334
|
+
discountedPrice: string;
|
|
335
|
+
endDate: string;
|
|
336
|
+
expired: boolean;
|
|
337
|
+
feature?: Feature;
|
|
338
|
+
id: string;
|
|
339
|
+
invoiceLineText: string;
|
|
340
|
+
isAmendment: boolean;
|
|
341
|
+
isRamp?: boolean;
|
|
342
|
+
kind: QuoteChangeKind$1;
|
|
343
|
+
name: string;
|
|
344
|
+
periodPrice: number;
|
|
345
|
+
price: string;
|
|
346
|
+
priceDecimals: number;
|
|
347
|
+
priceList: PriceList;
|
|
348
|
+
priceListCharge?: PriceListCharge;
|
|
349
|
+
priceListChargeId: string;
|
|
350
|
+
priceListId: string;
|
|
351
|
+
priceTiers: PriceTier[];
|
|
352
|
+
pricingModel: PricingModel;
|
|
353
|
+
prorationRate?: number;
|
|
354
|
+
quantity: number;
|
|
355
|
+
quantityMax?: number;
|
|
356
|
+
quantityMin?: number;
|
|
357
|
+
selfServiceQuantity?: boolean;
|
|
358
|
+
startDate: string;
|
|
359
|
+
tieredAveragePrice?: number;
|
|
360
|
+
trial: boolean;
|
|
361
|
+
updatedAt: string;
|
|
362
|
+
histogram?: FeatureUsage;
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
declare enum SubscriptionState {
|
|
366
|
+
ACTIVE = "ACTIVE",
|
|
367
|
+
TRIAL = "TRIAL",
|
|
368
|
+
PENDING = "PENDING",
|
|
369
|
+
EXPIRED = "EXPIRED",
|
|
370
|
+
CANCELED = "CANCELED",
|
|
371
|
+
TRIAL_EXPIRED = "TRIAL_EXPIRED"
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
type Subscription = {
|
|
375
|
+
account: Account;
|
|
376
|
+
accountId: string;
|
|
377
|
+
cancellationDate?: string;
|
|
378
|
+
charges: SubscriptionCharge[];
|
|
379
|
+
currentCharges?: SubscriptionCharge[];
|
|
380
|
+
chargeReport?: SubscriptionCharge[];
|
|
381
|
+
createdAt: string;
|
|
382
|
+
currencyId: string;
|
|
383
|
+
endDate: string;
|
|
384
|
+
evergreen: Boolean;
|
|
385
|
+
id: string;
|
|
386
|
+
name: string;
|
|
387
|
+
period: string;
|
|
388
|
+
plan: Plan;
|
|
389
|
+
priceList: PriceList;
|
|
390
|
+
product: Product;
|
|
391
|
+
provisioningRequired: Boolean;
|
|
392
|
+
startDate: string;
|
|
393
|
+
state: SubscriptionState;
|
|
394
|
+
tenant: Tenant;
|
|
395
|
+
trialEndDate: string;
|
|
396
|
+
daysLeftInTrial?: number;
|
|
397
|
+
trialExpirationAction: TrialExpirationAction;
|
|
398
|
+
trialPeriod: string;
|
|
399
|
+
trialStartDate: string;
|
|
400
|
+
updatedAt: string;
|
|
401
|
+
addonSubscriptions?: Subscription[];
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
type QuoteChange = {
|
|
405
|
+
charges: QuoteCharge[];
|
|
406
|
+
currencyId: string;
|
|
407
|
+
endDate?: string;
|
|
408
|
+
id: string;
|
|
409
|
+
kind: QuoteChangeKind$1;
|
|
410
|
+
name: string;
|
|
411
|
+
priceList: PriceList;
|
|
412
|
+
priceListId?: string;
|
|
413
|
+
quote: Quote$1;
|
|
414
|
+
quoteId: string;
|
|
415
|
+
startDate?: string;
|
|
416
|
+
subscription?: Subscription;
|
|
417
|
+
subscriptionId?: string;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
type FormattedQuote = {
|
|
421
|
+
object: any;
|
|
422
|
+
acceptedAt: string;
|
|
423
|
+
acceptedByName: string;
|
|
424
|
+
acceptedByTitle: string;
|
|
425
|
+
amount: number;
|
|
426
|
+
amountsByPeriod: PeriodAmount[];
|
|
427
|
+
billingCity: string;
|
|
428
|
+
billingCountry: string;
|
|
429
|
+
billingState: string;
|
|
430
|
+
billingStreet: string;
|
|
431
|
+
billingZip: string;
|
|
432
|
+
contactEmail: string;
|
|
433
|
+
contactName: string;
|
|
434
|
+
currency: string;
|
|
435
|
+
customerBillingCity: string;
|
|
436
|
+
customerBillingCountry: string;
|
|
437
|
+
customerBillingState: string;
|
|
438
|
+
customerBillingStreet: string;
|
|
439
|
+
customerBillingZip: string;
|
|
440
|
+
customerName: string;
|
|
441
|
+
discount: number;
|
|
442
|
+
discountValue: number;
|
|
443
|
+
expiresAt: string;
|
|
444
|
+
formattedLines: FormattedLine[];
|
|
445
|
+
html: string;
|
|
446
|
+
id: string;
|
|
447
|
+
name: string;
|
|
448
|
+
netPaymentDays: number;
|
|
449
|
+
number: string;
|
|
450
|
+
poNumberRequired: boolean;
|
|
451
|
+
quote: Quote$1;
|
|
452
|
+
quoteChanges: QuoteChange[];
|
|
453
|
+
salesContactEmail: string;
|
|
454
|
+
sharedAt: string;
|
|
455
|
+
state: 'DRAFT' | 'SHARED' | 'VIEWED' | 'ACCEPTED' | 'APPLIED';
|
|
456
|
+
subtotal: number;
|
|
457
|
+
taxAmount: number;
|
|
458
|
+
taxNumberLabel: string;
|
|
459
|
+
taxNumberRequired: boolean;
|
|
460
|
+
vendorName: string;
|
|
461
|
+
approvalRequest: ApprovalRequest;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
type DisputeReason = {
|
|
465
|
+
id?: number;
|
|
466
|
+
name?: string;
|
|
467
|
+
description?: string;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
declare enum TaxTypeType {
|
|
471
|
+
GENERIC = "GENERIC",
|
|
472
|
+
VAT = "VAT",
|
|
473
|
+
GST = "GST",
|
|
474
|
+
EIN = "EIN"
|
|
475
|
+
}
|
|
476
|
+
type Entity = {
|
|
477
|
+
id: string;
|
|
478
|
+
name: string | null;
|
|
479
|
+
billingStreet: string | null;
|
|
480
|
+
billingCity: string | null;
|
|
481
|
+
billingState: string | null;
|
|
482
|
+
billingZip: string | null;
|
|
483
|
+
billingCountry: string | null;
|
|
484
|
+
createdAt: string;
|
|
485
|
+
updatedAt: string;
|
|
486
|
+
phone: string | null;
|
|
487
|
+
fax: string | null;
|
|
488
|
+
website: string | null;
|
|
489
|
+
quoteNumberSeq: number | null;
|
|
490
|
+
quoteNumberPrefix: string | null;
|
|
491
|
+
invoiceNumberSeq: number | null;
|
|
492
|
+
invoiceNumberPrefix: string | null;
|
|
493
|
+
brandColor: string | null;
|
|
494
|
+
accentColor: string | null;
|
|
495
|
+
emailTemplate: string;
|
|
496
|
+
emailSenderName: string | null;
|
|
497
|
+
termsUrl: string | null;
|
|
498
|
+
privacyUrl: string | null;
|
|
499
|
+
refundPolicyUrl: string | null;
|
|
500
|
+
customerServiceEmail: string | null;
|
|
501
|
+
taxType: TaxTypeType | null;
|
|
502
|
+
taxId: string | null;
|
|
503
|
+
timezone: string | null;
|
|
504
|
+
quotesImageUrl: string;
|
|
505
|
+
invoicesImageUrl: string;
|
|
506
|
+
topNavImageUrl: string;
|
|
507
|
+
abbreviation: string;
|
|
508
|
+
baseCurrencyId: string;
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
type CreditNoteItem = {
|
|
512
|
+
id: string;
|
|
513
|
+
amount: number;
|
|
514
|
+
currencyId: string;
|
|
515
|
+
invoiceItem?: InvoiceItem;
|
|
516
|
+
invoiceItemId?: string;
|
|
517
|
+
lineText?: string;
|
|
518
|
+
position?: number;
|
|
519
|
+
price: number;
|
|
520
|
+
priceDecimals: number;
|
|
521
|
+
priceTiers?: PriceTier[];
|
|
522
|
+
quantity?: number;
|
|
523
|
+
subtotal: number;
|
|
524
|
+
taxAmount?: number;
|
|
525
|
+
taxCode?: string;
|
|
526
|
+
vatCode?: string;
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
type InvoiceConnection = {
|
|
530
|
+
nodes: Invoice$1[];
|
|
531
|
+
totalCount?: number;
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
declare enum CreditNoteState {
|
|
535
|
+
PREPARING = "PREPARING",
|
|
536
|
+
DRAFT = "DRAFT",
|
|
537
|
+
READY = "READY",
|
|
538
|
+
PARTIALLY_APPLIED = "PARTIALLY_APPLIED",
|
|
539
|
+
APPLIED = "APPLIED"
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
type CreditNoteKind = 'REFUND' | 'WRITE_OFF';
|
|
543
|
+
type CreditNote = {
|
|
544
|
+
account: Account;
|
|
545
|
+
accountId: string;
|
|
546
|
+
amount: number;
|
|
547
|
+
amountApplied: number;
|
|
548
|
+
amountUnapplied: number;
|
|
549
|
+
appliedToInvoices?: InvoiceConnection;
|
|
550
|
+
createdAt: string;
|
|
551
|
+
created_at: string;
|
|
552
|
+
creditNoteItems?: CreditNoteItem[];
|
|
553
|
+
creditedInvoice?: Invoice$1;
|
|
554
|
+
creditedInvoiceId?: string;
|
|
555
|
+
currency: string;
|
|
556
|
+
currencyId: string;
|
|
557
|
+
description: string;
|
|
558
|
+
disputeReason?: DisputeReason;
|
|
559
|
+
disputeReasonId?: string;
|
|
560
|
+
entity: Entity;
|
|
561
|
+
entityId: string;
|
|
562
|
+
id: string;
|
|
563
|
+
invoice?: Invoice$1;
|
|
564
|
+
invoiceId?: string;
|
|
565
|
+
isCredit: boolean;
|
|
566
|
+
isLegacy: boolean;
|
|
567
|
+
issuedAt?: string;
|
|
568
|
+
kind: CreditNoteKind;
|
|
569
|
+
notes?: string;
|
|
570
|
+
number?: string;
|
|
571
|
+
operations: string[];
|
|
572
|
+
state: CreditNoteState;
|
|
573
|
+
subtotal: number;
|
|
574
|
+
taxAmount: number;
|
|
575
|
+
updatedAt: string;
|
|
576
|
+
uuid: string;
|
|
577
|
+
warrenId: string;
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
type PaymentApplication = {
|
|
581
|
+
id: number;
|
|
582
|
+
paymentId?: number;
|
|
583
|
+
invoiceId?: number;
|
|
584
|
+
amount?: number;
|
|
585
|
+
account?: Account;
|
|
586
|
+
invoice?: Invoice$1;
|
|
587
|
+
createdAt?: string;
|
|
588
|
+
updatedAt?: string;
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
type PayableItem = {
|
|
592
|
+
uuid: string;
|
|
593
|
+
amount: number;
|
|
594
|
+
subtotal: number;
|
|
595
|
+
taxAmount: number;
|
|
596
|
+
quantity: number;
|
|
597
|
+
frequency?: string;
|
|
598
|
+
startDate: Date;
|
|
599
|
+
endDate: Date;
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
interface Payable {
|
|
603
|
+
id?: string;
|
|
604
|
+
payableId: string;
|
|
605
|
+
uuid: string;
|
|
606
|
+
number: string;
|
|
607
|
+
currencyId: string;
|
|
608
|
+
currency: Currency;
|
|
609
|
+
amount: number;
|
|
610
|
+
amountDue: number;
|
|
611
|
+
smallUnitAmountDue: number;
|
|
612
|
+
state: string;
|
|
613
|
+
items?: Array<PayableItem>;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
declare enum TransactionState {
|
|
617
|
+
not_due = "not_due",
|
|
618
|
+
due = "due",
|
|
619
|
+
unpaid = "unpaid",
|
|
620
|
+
paid = "paid",
|
|
621
|
+
voided = "voided",
|
|
622
|
+
ready = "ready",
|
|
623
|
+
failed = "failed",
|
|
624
|
+
preparing = "preparing",
|
|
625
|
+
unapplied = "unapplied",
|
|
626
|
+
partially_applied = "partially_applied",
|
|
627
|
+
applied = "applied"
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
type State$2 = "APPLIED" | "UNAPPLIED" | "PARTIALLY_APPLIED";
|
|
631
|
+
type Payment = {
|
|
632
|
+
id: string;
|
|
633
|
+
currencyId: string;
|
|
634
|
+
memo: string;
|
|
635
|
+
description: string;
|
|
636
|
+
state: State$2;
|
|
637
|
+
amount: number;
|
|
638
|
+
receivedAt: string;
|
|
639
|
+
createdAt: string;
|
|
640
|
+
updatedAt: string;
|
|
641
|
+
transactionRecord: Transaction;
|
|
642
|
+
account: Account;
|
|
643
|
+
accountId: number;
|
|
644
|
+
invoices: Invoice$1[];
|
|
645
|
+
amountUnapplied: number;
|
|
646
|
+
};
|
|
647
|
+
|
|
648
|
+
declare enum TransactionKind {
|
|
649
|
+
INVOICE = "INVOICE",
|
|
650
|
+
PAYMENT = "PAYMENT",
|
|
651
|
+
REFUND = "REFUND",
|
|
652
|
+
WRITE_OFF = "WRITE_OFF"
|
|
653
|
+
}
|
|
654
|
+
type Transaction = {
|
|
655
|
+
account: Account;
|
|
656
|
+
accountId: string;
|
|
657
|
+
amount: number;
|
|
658
|
+
createdAt: string;
|
|
659
|
+
currencyId: string;
|
|
660
|
+
description: string;
|
|
661
|
+
id: string;
|
|
662
|
+
invoice?: Invoice$1;
|
|
663
|
+
kind: TransactionKind;
|
|
664
|
+
payment?: Payment;
|
|
665
|
+
state: TransactionState;
|
|
666
|
+
transactionable: Payment | Invoice$1;
|
|
667
|
+
transactionableId: string;
|
|
668
|
+
creditNote?: CreditNote;
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
type State$1 = 'NOT_DUE' | 'DUE' | 'UNPAID' | 'PAID' | 'VOIDED' | 'READY' | 'FAILED' | 'PREPARING';
|
|
672
|
+
type Invoice$1 = {
|
|
673
|
+
account: Account;
|
|
674
|
+
accountId: string;
|
|
675
|
+
amount: number;
|
|
676
|
+
amountDue: number;
|
|
677
|
+
amountPaid: number;
|
|
678
|
+
baseCurrencyId: string;
|
|
679
|
+
couponApplied: boolean;
|
|
680
|
+
createdAt: string;
|
|
681
|
+
creditItem?: InvoiceItem;
|
|
682
|
+
creditNote?: CreditNote;
|
|
683
|
+
creditNotes?: CreditNote[];
|
|
684
|
+
credits?: number;
|
|
685
|
+
currency?: Currency;
|
|
686
|
+
currencyId: string;
|
|
687
|
+
description: string;
|
|
688
|
+
dueAt?: string;
|
|
689
|
+
entity: Entity;
|
|
690
|
+
hasPaymentMethod?: boolean;
|
|
691
|
+
id: string;
|
|
692
|
+
invoiceId: string;
|
|
693
|
+
invoiceItems: InvoiceItem[];
|
|
694
|
+
isLegacy: boolean;
|
|
695
|
+
issuedAt?: string;
|
|
696
|
+
kind: string;
|
|
697
|
+
memo?: string;
|
|
698
|
+
mergedInvoices?: Invoice$1[];
|
|
699
|
+
mergedToInvoice?: Invoice$1;
|
|
700
|
+
netPaymentDays: number;
|
|
701
|
+
notes?: string;
|
|
702
|
+
number: string;
|
|
703
|
+
operations: string[];
|
|
704
|
+
paidAt?: string;
|
|
705
|
+
payableId: string;
|
|
706
|
+
paymentApplications?: PaymentApplication[];
|
|
707
|
+
poNumber?: string;
|
|
708
|
+
portalUrl: string;
|
|
709
|
+
printedState: string | null;
|
|
710
|
+
quote?: Quote$1;
|
|
711
|
+
quoteId?: string;
|
|
712
|
+
smallUnitAmountDue?: number;
|
|
713
|
+
state: State$1;
|
|
714
|
+
subtotal: number;
|
|
715
|
+
taxAmount: number;
|
|
716
|
+
transactionRecord: Transaction;
|
|
717
|
+
updatedAt: string;
|
|
718
|
+
url: string;
|
|
719
|
+
uuid: string;
|
|
720
|
+
} & Payable;
|
|
721
|
+
|
|
722
|
+
type QuoteDocument = {
|
|
723
|
+
id: string;
|
|
724
|
+
filename: string;
|
|
725
|
+
size: string;
|
|
726
|
+
date: string;
|
|
727
|
+
url: string;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
type Type$1 = "INPUT" | "DATEPICKER" | "SWITCH" | "COMBO" | "TEXTAREA" | "DESCRIPTION";
|
|
731
|
+
type Format = 'SECRET' | 'HUMANIZE' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'PERCENTAGE' | 'NUMERIC' | 'CURRENCY';
|
|
732
|
+
type DynamicComponent = {
|
|
733
|
+
title: string;
|
|
734
|
+
type: Type$1;
|
|
735
|
+
format?: Format;
|
|
736
|
+
name: string;
|
|
737
|
+
column: string;
|
|
738
|
+
value?: string;
|
|
739
|
+
tooltip?: string;
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
type Kind$2 = "SECRET" | "STRING" | "NUMBER" | "BOOLEAN";
|
|
743
|
+
type PluginParameter = {
|
|
744
|
+
id: string;
|
|
745
|
+
name?: string;
|
|
746
|
+
shortName?: string;
|
|
747
|
+
pluginDefinition: PluginDefinition;
|
|
748
|
+
pluginDefinitionId: string;
|
|
749
|
+
kind?: Kind$2;
|
|
750
|
+
uuid?: string;
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
type PluginVendor = {
|
|
754
|
+
id: string;
|
|
755
|
+
name: string;
|
|
756
|
+
uuid: string;
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
type Type = "PAYMENT" | "OTHER" | "TAXATION" | "SIGNING";
|
|
760
|
+
type PluginDefinition = {
|
|
761
|
+
id: string;
|
|
762
|
+
name: string;
|
|
763
|
+
metadata: any;
|
|
764
|
+
shortName?: string;
|
|
765
|
+
logo?: string;
|
|
766
|
+
description?: string;
|
|
767
|
+
summary?: string;
|
|
768
|
+
userIsolation?: boolean;
|
|
769
|
+
platformName?: string;
|
|
770
|
+
pluginType?: Type;
|
|
771
|
+
pluginVendorId?: string;
|
|
772
|
+
pluginVendor?: PluginVendor;
|
|
773
|
+
pluginParameters?: PluginParameter[];
|
|
774
|
+
hidden?: boolean;
|
|
775
|
+
uuid?: string;
|
|
776
|
+
authType?: string;
|
|
777
|
+
helplink?: string;
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
type PluginActionMenuItem = {
|
|
781
|
+
label: string;
|
|
782
|
+
methodName: string;
|
|
783
|
+
relUrl?: string;
|
|
784
|
+
visible?: string;
|
|
785
|
+
};
|
|
786
|
+
type PluginStatus = "VALID" | "INVALID";
|
|
787
|
+
type PluginType = string;
|
|
788
|
+
type Plugin = {
|
|
789
|
+
actionMenu?: PluginActionMenuItem[];
|
|
790
|
+
authType?: string;
|
|
791
|
+
classes?: string[];
|
|
792
|
+
componentName?: string;
|
|
793
|
+
description?: string;
|
|
794
|
+
dynamicComponents: DynamicComponent[];
|
|
795
|
+
enabled?: boolean;
|
|
796
|
+
enabledOnlyForUser?: User;
|
|
797
|
+
enabledOnlyForUserId?: string;
|
|
798
|
+
entities?: Entity[];
|
|
799
|
+
entityIds?: string[];
|
|
800
|
+
entitySelectionEnabled?: boolean;
|
|
801
|
+
guid: string;
|
|
802
|
+
helplink?: string;
|
|
803
|
+
hidden?: boolean;
|
|
804
|
+
id: string;
|
|
805
|
+
logo?: string;
|
|
806
|
+
name: string;
|
|
807
|
+
pluginDefinition?: PluginDefinition;
|
|
808
|
+
pluginDefinitionId?: string;
|
|
809
|
+
pluginVendor?: PluginVendor;
|
|
810
|
+
pluginVendorId?: string;
|
|
811
|
+
status?: PluginStatus;
|
|
812
|
+
summary?: string;
|
|
813
|
+
type: PluginType;
|
|
814
|
+
userIsolation?: boolean;
|
|
815
|
+
uuid: string;
|
|
816
|
+
webhookUrl?: string;
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
type State = "UNKNOWN" | "SUCCESS" | "FAILED";
|
|
820
|
+
type PaymentType = "CARD" | "WIRE" | "OTHER" | "ACH";
|
|
821
|
+
type PaymentMethod = {
|
|
822
|
+
account?: Account;
|
|
823
|
+
accountId?: string;
|
|
824
|
+
createdAt?: string;
|
|
825
|
+
disabled?: boolean;
|
|
826
|
+
expirationDate?: string;
|
|
827
|
+
failureCode?: string;
|
|
828
|
+
id: string;
|
|
829
|
+
lastSuccess?: string;
|
|
830
|
+
metadata: {
|
|
831
|
+
description: string;
|
|
832
|
+
icon: string;
|
|
833
|
+
identifier: string;
|
|
834
|
+
issuer: string;
|
|
835
|
+
kind: string;
|
|
836
|
+
type: string;
|
|
837
|
+
};
|
|
838
|
+
isDefault?: boolean;
|
|
839
|
+
paymentType?: PaymentType;
|
|
840
|
+
plugin?: Plugin;
|
|
841
|
+
pluginId?: string;
|
|
842
|
+
state?: State;
|
|
843
|
+
updatedAt?: string;
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
interface PaymentHold {
|
|
847
|
+
id?: string;
|
|
848
|
+
expiresAt?: Date;
|
|
849
|
+
createdAt?: Date;
|
|
850
|
+
updatedAt?: Date;
|
|
851
|
+
quote?: Quote$1;
|
|
852
|
+
paymentMethod?: PaymentMethod;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
type QuoteState = 'DRAFT' | 'SHARED' | 'VIEWED' | 'ACCEPTED' | 'IN_APPROVAL' | 'APPROVED' | 'REJECTED';
|
|
856
|
+
type AmountByPeriod = {
|
|
857
|
+
id?: string;
|
|
858
|
+
name?: string;
|
|
859
|
+
date?: string;
|
|
860
|
+
amount: number;
|
|
861
|
+
startDate: string;
|
|
862
|
+
};
|
|
863
|
+
type DateOption = {
|
|
864
|
+
end_date: string;
|
|
865
|
+
label: string;
|
|
866
|
+
};
|
|
867
|
+
type Quote$1 = {
|
|
868
|
+
acceptedByName?: string;
|
|
869
|
+
acceptedByTitle?: string;
|
|
870
|
+
account?: Account;
|
|
871
|
+
accountId: string;
|
|
872
|
+
amount: number;
|
|
873
|
+
amountDue: number;
|
|
874
|
+
amountsByPeriod: AmountByPeriod[];
|
|
875
|
+
applicationDate?: string;
|
|
876
|
+
applied: boolean;
|
|
877
|
+
approvalRequest: ApprovalRequest;
|
|
878
|
+
billingDay?: number;
|
|
879
|
+
contact?: Contact;
|
|
880
|
+
createdAt: string;
|
|
881
|
+
credits?: number;
|
|
882
|
+
currency?: Currency;
|
|
883
|
+
currencyId: string;
|
|
884
|
+
currentPaymentHold?: PaymentHold;
|
|
885
|
+
deal?: Deal;
|
|
886
|
+
dealId: string;
|
|
887
|
+
discount?: number;
|
|
888
|
+
discountValue: number;
|
|
889
|
+
documentTemplateId?: string;
|
|
890
|
+
documents: QuoteDocument[];
|
|
891
|
+
endDate: string;
|
|
892
|
+
endDateOptions?: DateOption[];
|
|
893
|
+
evergreen?: boolean;
|
|
894
|
+
expiresAt: string;
|
|
895
|
+
formattedQuote: FormattedQuote;
|
|
896
|
+
id: string;
|
|
897
|
+
invoiceUntil: string;
|
|
898
|
+
invoiceUntilOptions?: DateOption[];
|
|
899
|
+
isPendingApprovalRequest: boolean;
|
|
900
|
+
kind: QuoteChangeKind$1;
|
|
901
|
+
message?: string;
|
|
902
|
+
name?: string;
|
|
903
|
+
netPaymentDays?: number;
|
|
904
|
+
notes?: string;
|
|
905
|
+
owner?: User;
|
|
906
|
+
ownerUserId?: string;
|
|
907
|
+
payToAccept?: boolean;
|
|
908
|
+
payableId: string;
|
|
909
|
+
paymentHolds?: PaymentHold[];
|
|
910
|
+
periodAmount: number;
|
|
911
|
+
poNumber?: string;
|
|
912
|
+
quoteChanges: QuoteChange[];
|
|
913
|
+
requiresApproval: boolean;
|
|
914
|
+
smallUnitAmountDue?: number;
|
|
915
|
+
startDate: string;
|
|
916
|
+
state: QuoteState;
|
|
917
|
+
subtotal: number;
|
|
918
|
+
taxAmount: number;
|
|
919
|
+
triggeredApprovalRules?: ApprovalRule[];
|
|
920
|
+
updatedAt: string;
|
|
921
|
+
uuid: string;
|
|
922
|
+
} & Payable;
|
|
923
|
+
|
|
924
|
+
type Kind$1 = "OPEN" | "CLOSED_WON" | "CLOSED_LOST";
|
|
925
|
+
type DealStage = {
|
|
926
|
+
id: number;
|
|
927
|
+
position: number;
|
|
928
|
+
name?: string;
|
|
929
|
+
kind?: Kind$1;
|
|
930
|
+
probability?: string;
|
|
931
|
+
description?: string;
|
|
932
|
+
createdAt: string;
|
|
933
|
+
updatedAt: string;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
type Kind = "NEW" | "EXISTING";
|
|
937
|
+
type Origin = "SALES" | "PORTAL" | "SIGNUP" | "OTHER";
|
|
938
|
+
type Deal = {
|
|
939
|
+
id: string;
|
|
940
|
+
code?: string;
|
|
941
|
+
accountId?: string;
|
|
942
|
+
currencyId?: string;
|
|
943
|
+
name: string;
|
|
944
|
+
ownerUserId?: string;
|
|
945
|
+
amount?: number;
|
|
946
|
+
createdAt: string;
|
|
947
|
+
updatedAt: string;
|
|
948
|
+
probability?: number;
|
|
949
|
+
description?: string;
|
|
950
|
+
closeDate?: string;
|
|
951
|
+
kind?: Kind;
|
|
952
|
+
dealStageId: string;
|
|
953
|
+
stageDescription?: string;
|
|
954
|
+
leadSourceId?: string;
|
|
955
|
+
contactId?: string;
|
|
956
|
+
notForRevenue?: boolean;
|
|
957
|
+
quoteDefaults?: Quote$1;
|
|
958
|
+
viaPortal?: boolean;
|
|
959
|
+
origin?: Origin;
|
|
960
|
+
account?: Account;
|
|
961
|
+
owner?: User;
|
|
962
|
+
contact?: Contact;
|
|
963
|
+
currency?: Currency;
|
|
964
|
+
dealStage: DealStage;
|
|
965
|
+
quotes?: Quote$1[];
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
type AccountBalance = {
|
|
969
|
+
id: Number;
|
|
970
|
+
balance: Number;
|
|
971
|
+
currencyId: string;
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
type PayingStatus = "CURRENT" | "PAST_DUE" | "SUSPENDED" | "INACTIVE";
|
|
975
|
+
type Account = {
|
|
976
|
+
id: string;
|
|
977
|
+
code?: string;
|
|
978
|
+
timezone?: string;
|
|
979
|
+
accountTypeId: string;
|
|
980
|
+
industryId?: string;
|
|
981
|
+
employees?: Number;
|
|
982
|
+
annualRevenue?: Number;
|
|
983
|
+
name: string;
|
|
984
|
+
billingStreet?: string;
|
|
985
|
+
billingCity?: string;
|
|
986
|
+
billingState?: string;
|
|
987
|
+
billingZip?: string;
|
|
988
|
+
billingCountry?: string;
|
|
989
|
+
billingContactId?: string;
|
|
990
|
+
shippingStreet?: string;
|
|
991
|
+
shippingCity?: string;
|
|
992
|
+
shippingState?: string;
|
|
993
|
+
shippingZip?: string;
|
|
994
|
+
shippingCountry?: string;
|
|
995
|
+
description?: string;
|
|
996
|
+
createdAt: string;
|
|
997
|
+
updatedAt: string;
|
|
998
|
+
phone?: string;
|
|
999
|
+
fax?: string;
|
|
1000
|
+
website?: string;
|
|
1001
|
+
currencyId?: string;
|
|
1002
|
+
taxNumber?: string;
|
|
1003
|
+
groupId?: string;
|
|
1004
|
+
billingDay?: Number;
|
|
1005
|
+
netPaymentDays?: Number;
|
|
1006
|
+
duns?: string;
|
|
1007
|
+
ownerUserId?: string;
|
|
1008
|
+
dealDefaults?: Deal;
|
|
1009
|
+
accountType: AccountType;
|
|
1010
|
+
currency?: Currency;
|
|
1011
|
+
contacts?: Contact[];
|
|
1012
|
+
deals?: Deal[];
|
|
1013
|
+
subscriptions?: Subscription[];
|
|
1014
|
+
owner?: User;
|
|
1015
|
+
transactions?: Transaction[];
|
|
1016
|
+
balances: AccountBalance[];
|
|
1017
|
+
billingContact?: Contact;
|
|
1018
|
+
entityUseCode?: string;
|
|
1019
|
+
addressValidated: boolean;
|
|
1020
|
+
arr?: number;
|
|
1021
|
+
mrr?: number;
|
|
1022
|
+
mur?: number;
|
|
1023
|
+
draftInvoices: boolean;
|
|
1024
|
+
emailsEnabled: boolean;
|
|
1025
|
+
entity?: Entity;
|
|
1026
|
+
entityId?: string;
|
|
1027
|
+
invoiceTemplateId?: string;
|
|
1028
|
+
invoices?: Invoice$1[];
|
|
1029
|
+
linkedinUrl?: string;
|
|
1030
|
+
newQuoteBuilder: boolean;
|
|
1031
|
+
payingStatus?: PayingStatus;
|
|
1032
|
+
secondaryBillingContactIds?: string[];
|
|
1033
|
+
secondaryBillingContacts?: Contact[];
|
|
1034
|
+
taxNumberValidated?: boolean;
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
type TenantProvisioningState = "PENDING" | "STARTED" | "FAILED" | "COMPLETED";
|
|
1038
|
+
type TenantProvisioningChange = {
|
|
1039
|
+
id: string;
|
|
1040
|
+
state: TenantProvisioningState;
|
|
1041
|
+
change?: any;
|
|
1042
|
+
createdAt?: string;
|
|
1043
|
+
updatedAt?: string;
|
|
1044
|
+
tenant?: Tenant;
|
|
1045
|
+
features?: string;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
type Tenant = {
|
|
1049
|
+
id: Number;
|
|
1050
|
+
platformId: Number;
|
|
1051
|
+
name: string;
|
|
1052
|
+
code?: string;
|
|
1053
|
+
subdomain?: string;
|
|
1054
|
+
accountId: Number;
|
|
1055
|
+
account: Account;
|
|
1056
|
+
platform: Platform;
|
|
1057
|
+
provisioningRequired?: Boolean;
|
|
1058
|
+
provisioningState?: string;
|
|
1059
|
+
provisioningChanges?: TenantProvisioningChange[];
|
|
1060
|
+
latestProvisioningChangeId?: Number;
|
|
1061
|
+
latestProvisioningChange?: TenantProvisioningChange;
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
type Platform = {
|
|
1065
|
+
id: string;
|
|
1066
|
+
name: string;
|
|
1067
|
+
code?: string;
|
|
1068
|
+
provisioningEnabled: boolean;
|
|
1069
|
+
webhookUrl?: string;
|
|
1070
|
+
webhookAuthToken?: string;
|
|
1071
|
+
webhookSigningKey?: string;
|
|
1072
|
+
tenants?: Tenant[];
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
type ProductCategory = {
|
|
1076
|
+
id: Number;
|
|
1077
|
+
name: string | null;
|
|
1078
|
+
createdAt: string;
|
|
1079
|
+
updatedAt: string;
|
|
1080
|
+
plans: Plan[];
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
type Product = {
|
|
1084
|
+
code?: string;
|
|
1085
|
+
description?: string;
|
|
1086
|
+
everythingInPlus?: boolean;
|
|
1087
|
+
features?: Feature[];
|
|
1088
|
+
id: string;
|
|
1089
|
+
internalNotes?: string;
|
|
1090
|
+
name: string;
|
|
1091
|
+
planDefaults?: Plan;
|
|
1092
|
+
plans?: Plan[];
|
|
1093
|
+
platform?: Platform;
|
|
1094
|
+
platformId?: Number;
|
|
1095
|
+
productCategory?: ProductCategory;
|
|
1096
|
+
productCategoryId?: Number;
|
|
1097
|
+
showProductNameOnLineItem?: Boolean;
|
|
1098
|
+
plansToDisplay?: number;
|
|
1099
|
+
};
|
|
1100
|
+
|
|
1101
|
+
type PeriodMonths = 0 | 1 | 3 | 6 | 12;
|
|
1102
|
+
type TrialExpirationAction = 'CANCEL' | 'ACTIVATE';
|
|
1103
|
+
type PriceList = {
|
|
1104
|
+
basePrice: number;
|
|
1105
|
+
charges: PriceListCharge[];
|
|
1106
|
+
code?: string;
|
|
1107
|
+
createdAt: string;
|
|
1108
|
+
currency?: Currency;
|
|
1109
|
+
currencyId: string;
|
|
1110
|
+
id: string;
|
|
1111
|
+
isVisible?: boolean;
|
|
1112
|
+
monthlyBasePrice: number;
|
|
1113
|
+
name: string;
|
|
1114
|
+
periodMonths: PeriodMonths;
|
|
1115
|
+
plan: Plan;
|
|
1116
|
+
planId: string;
|
|
1117
|
+
priceAdjustmentAction?: PriceAdjustmentAction;
|
|
1118
|
+
priceAdjustmentActionOptions?: string[];
|
|
1119
|
+
priceAdjustmentPercentage?: number;
|
|
1120
|
+
priceAdjustmentTiming?: PriceAdjustmentTiming;
|
|
1121
|
+
priceAdjustmentTimingOptions?: string[];
|
|
1122
|
+
priceDescription?: string;
|
|
1123
|
+
product: Product;
|
|
1124
|
+
productId?: string;
|
|
1125
|
+
renewalTermMonths?: number;
|
|
1126
|
+
showPriceAsMonthly?: boolean;
|
|
1127
|
+
sku?: string;
|
|
1128
|
+
trialAllowed: boolean;
|
|
1129
|
+
trialExpirationAction?: TrialExpirationAction;
|
|
1130
|
+
trialLengthDays?: number;
|
|
1131
|
+
updatedAt: string;
|
|
1132
|
+
addonPlans?: Plan[];
|
|
1133
|
+
deprecated?: boolean;
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
declare enum PricingStyle {
|
|
1137
|
+
FREE = "FREE",
|
|
1138
|
+
PRICED = "PRICED",
|
|
1139
|
+
CONTACT_US = "CONTACT_US"
|
|
1140
|
+
}
|
|
1141
|
+
type Plan = {
|
|
1142
|
+
addon?: boolean;
|
|
1143
|
+
compatiblePlans?: Plan[];
|
|
1144
|
+
addonPlans?: Plan[];
|
|
1145
|
+
availableFrom?: string;
|
|
1146
|
+
availableTo?: string;
|
|
1147
|
+
basePrice?: number;
|
|
1148
|
+
code?: string;
|
|
1149
|
+
contactUsLabel?: string;
|
|
1150
|
+
contactUsUrl?: string;
|
|
1151
|
+
createdAt: string;
|
|
1152
|
+
description?: string;
|
|
1153
|
+
features?: Feature[];
|
|
1154
|
+
id: string;
|
|
1155
|
+
internalNotes?: string;
|
|
1156
|
+
isAvailableNow?: boolean;
|
|
1157
|
+
isVisible?: boolean;
|
|
1158
|
+
name: string;
|
|
1159
|
+
planFeatures?: PlanFeature[];
|
|
1160
|
+
position: number;
|
|
1161
|
+
priceLists: PriceList[];
|
|
1162
|
+
pricingDescription?: string;
|
|
1163
|
+
pricingStyle: PricingStyle;
|
|
1164
|
+
product: Product;
|
|
1165
|
+
productId: string;
|
|
1166
|
+
selfServiceBuy?: boolean;
|
|
1167
|
+
selfServiceCancel?: boolean;
|
|
1168
|
+
selfServiceRenew?: boolean;
|
|
1169
|
+
trialEndDate?: string;
|
|
1170
|
+
updatedAt: string;
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
type FeatureKind = 'BOOLEAN' | 'VALUE' | 'MARKETING' | 'GROUP' | 'QUANTITY';
|
|
1174
|
+
type Feature = {
|
|
1175
|
+
id: string;
|
|
1176
|
+
productId?: string;
|
|
1177
|
+
name: string;
|
|
1178
|
+
kind?: FeatureKind;
|
|
1179
|
+
position: number;
|
|
1180
|
+
chargeType?: ChargeType;
|
|
1181
|
+
createdAt: string;
|
|
1182
|
+
updatedAt: string;
|
|
1183
|
+
code?: string;
|
|
1184
|
+
description?: string;
|
|
1185
|
+
isUnit?: boolean;
|
|
1186
|
+
isProvisioned?: boolean;
|
|
1187
|
+
isVisible?: boolean;
|
|
1188
|
+
plans?: Plan[];
|
|
1189
|
+
unitName?: string;
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
type DiscountKind = "PERCENTAGE" | "AMOUNT";
|
|
1193
|
+
type Coupon = {
|
|
1194
|
+
id?: string;
|
|
1195
|
+
name?: string;
|
|
1196
|
+
couponCode?: string;
|
|
1197
|
+
description?: string;
|
|
1198
|
+
active?: boolean;
|
|
1199
|
+
discountKind?: DiscountKind;
|
|
1200
|
+
discountAmount?: number;
|
|
1201
|
+
discountPercentage?: number;
|
|
1202
|
+
currencyId?: string;
|
|
1203
|
+
redemptionsMax?: number;
|
|
1204
|
+
redemptionsCount?: number;
|
|
1205
|
+
redemptionEndDate?: string;
|
|
1206
|
+
planId?: string;
|
|
1207
|
+
createdAt?: string;
|
|
1208
|
+
updatedAt?: string;
|
|
1209
|
+
};
|
|
1210
|
+
|
|
1211
|
+
type QuoteCharge = {
|
|
1212
|
+
subtotal?: number;
|
|
1213
|
+
amountsByPeriod?: AmountByPeriod[];
|
|
1214
|
+
amount: number;
|
|
1215
|
+
billingPeriod?: BillingPeriod;
|
|
1216
|
+
billingPeriodAmounts?: {
|
|
1217
|
+
id: string;
|
|
1218
|
+
amount: number;
|
|
1219
|
+
prorationRate: number;
|
|
1220
|
+
}[];
|
|
1221
|
+
chargeType?: ChargeType;
|
|
1222
|
+
coupon?: Coupon;
|
|
1223
|
+
createdAt: string;
|
|
1224
|
+
currencyId: string;
|
|
1225
|
+
currentQuantity?: number;
|
|
1226
|
+
discount?: number;
|
|
1227
|
+
endDate: string;
|
|
1228
|
+
feature: Feature;
|
|
1229
|
+
id: string;
|
|
1230
|
+
invoiceLineText: string;
|
|
1231
|
+
name?: string;
|
|
1232
|
+
price: number;
|
|
1233
|
+
priceDecimals?: number;
|
|
1234
|
+
priceList?: PriceList;
|
|
1235
|
+
priceListCharge: PriceListCharge;
|
|
1236
|
+
priceTiers?: PriceTier[];
|
|
1237
|
+
pricingModel: PricingModel | null;
|
|
1238
|
+
prorationRate?: number;
|
|
1239
|
+
quantity: number;
|
|
1240
|
+
quantityMax?: number;
|
|
1241
|
+
quantityMin?: number;
|
|
1242
|
+
quoteChange: QuoteChange;
|
|
1243
|
+
startDate: string;
|
|
1244
|
+
subscriptionCharge?: SubscriptionCharge;
|
|
1245
|
+
tieredAveragePrice?: number;
|
|
1246
|
+
updatedAt: string;
|
|
1247
|
+
kind?: string;
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
declare enum QuoteChangeKind {
|
|
1251
|
+
ADJUSTMENT = "ADJUSTMENT",
|
|
1252
|
+
COUPON = "COUPON",
|
|
1253
|
+
CREDIT = "CREDIT",
|
|
1254
|
+
DISCOUNT = "DISCOUNT",
|
|
1255
|
+
FREE_PERIOD_DISCOUNT = "FREE_PERIOD_DISCOUNT",
|
|
1256
|
+
PRICE_UPDATE = "PRICE_UPDATE",
|
|
1257
|
+
QUANTITY_UPDATE = "QUANTITY_UPDATE",
|
|
1258
|
+
REINSTATE = "REINSTATE",
|
|
1259
|
+
RENEW = "RENEW",
|
|
1260
|
+
SUBSCRIBE = "SUBSCRIBE",
|
|
1261
|
+
UNSUBSCRIBE = "UNSUBSCRIBE",
|
|
1262
|
+
UPDATE = "UPDATE",
|
|
1263
|
+
ACTIVATE = "ACTIVATE"
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
type InvoiceItem = {
|
|
1267
|
+
id: string;
|
|
1268
|
+
amount: number;
|
|
1269
|
+
billingPeriodStart?: string;
|
|
1270
|
+
billingPeriodEnd?: string;
|
|
1271
|
+
charge: SubscriptionCharge | QuoteCharge;
|
|
1272
|
+
chargeType?: string;
|
|
1273
|
+
currencyId: string;
|
|
1274
|
+
discount?: number;
|
|
1275
|
+
frequency?: string;
|
|
1276
|
+
lineText?: string;
|
|
1277
|
+
position?: number;
|
|
1278
|
+
price: number;
|
|
1279
|
+
priceTiers?: PriceTier[];
|
|
1280
|
+
priceDecimals: number;
|
|
1281
|
+
priceListChargeName?: string;
|
|
1282
|
+
priceListName?: string;
|
|
1283
|
+
prorationRate?: number;
|
|
1284
|
+
quantity?: number;
|
|
1285
|
+
unitOfMeasure?: string;
|
|
1286
|
+
couponId?: string;
|
|
1287
|
+
isCoupon: boolean;
|
|
1288
|
+
comment?: string;
|
|
1289
|
+
creditNoteItem?: CreditNoteItem;
|
|
1290
|
+
creditedItem?: InvoiceItem;
|
|
1291
|
+
endDate?: string;
|
|
1292
|
+
invoice: Invoice$1;
|
|
1293
|
+
invoiceId: string;
|
|
1294
|
+
isCredit: boolean;
|
|
1295
|
+
kind?: QuoteChangeKind;
|
|
1296
|
+
startDate?: string;
|
|
1297
|
+
subtotal: number;
|
|
1298
|
+
taxAmount?: number;
|
|
1299
|
+
taxCode?: string;
|
|
1300
|
+
vatCode?: string;
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1303
|
+
type FormattedInvoice = {
|
|
1304
|
+
amount: number;
|
|
1305
|
+
amountDue: number;
|
|
1306
|
+
amountPaid: number;
|
|
1307
|
+
billingCity?: string;
|
|
1308
|
+
billingCountry?: string;
|
|
1309
|
+
billingState?: string;
|
|
1310
|
+
billingStreet?: string;
|
|
1311
|
+
billingZip?: string;
|
|
1312
|
+
createdAt: string;
|
|
1313
|
+
credits?: number;
|
|
1314
|
+
currency: string;
|
|
1315
|
+
currencyId: string;
|
|
1316
|
+
currencySymbol: string;
|
|
1317
|
+
customerBillingCity?: string;
|
|
1318
|
+
customerBillingContact?: string;
|
|
1319
|
+
customerBillingCountry?: string;
|
|
1320
|
+
customerBillingState?: string;
|
|
1321
|
+
customerBillingStreet?: string;
|
|
1322
|
+
customerBillingZip?: string;
|
|
1323
|
+
customerName: string;
|
|
1324
|
+
dueAt?: string;
|
|
1325
|
+
formattedLines: InvoiceItem[];
|
|
1326
|
+
html: string;
|
|
1327
|
+
id: string;
|
|
1328
|
+
isLegacy?: boolean;
|
|
1329
|
+
messages?: {
|
|
1330
|
+
message: string;
|
|
1331
|
+
ids: string[];
|
|
1332
|
+
}[];
|
|
1333
|
+
netPaymentDays: number;
|
|
1334
|
+
number: string;
|
|
1335
|
+
poNumber?: string;
|
|
1336
|
+
printedState?: string;
|
|
1337
|
+
salesContactEmail?: string;
|
|
1338
|
+
smallUnitAmountDue?: number;
|
|
1339
|
+
state: State$1;
|
|
1340
|
+
subscriptionEndDate?: string;
|
|
1341
|
+
subscriptionStartDate?: string;
|
|
1342
|
+
subtotal: number;
|
|
1343
|
+
taxAmount?: number;
|
|
1344
|
+
taxId?: string;
|
|
1345
|
+
taxNumber?: string;
|
|
1346
|
+
taxType?: string;
|
|
1347
|
+
uuid: string;
|
|
1348
|
+
vendorName: string;
|
|
1349
|
+
};
|
|
11
1350
|
|
|
12
1351
|
type InvoiceQuoteContextProps = {
|
|
13
1352
|
id?: string | null | undefined;
|
|
@@ -16,7 +1355,6 @@ type InvoiceQuoteContextProps = {
|
|
|
16
1355
|
onBackButtonClick?: () => void;
|
|
17
1356
|
onInvoiceDownloadError?: () => void;
|
|
18
1357
|
onPaymentSuccess?: (savePaymentMethod?: boolean) => void;
|
|
19
|
-
shadow?: ShadowType;
|
|
20
1358
|
className?: string;
|
|
21
1359
|
hideDownloadButton?: boolean;
|
|
22
1360
|
onInvoiceLoaded?: (formattedInvoice: FormattedInvoice) => void;
|
|
@@ -24,12 +1362,532 @@ type InvoiceQuoteContextProps = {
|
|
|
24
1362
|
suppressQuoteUnavailableErrorNotification?: boolean;
|
|
25
1363
|
};
|
|
26
1364
|
|
|
1365
|
+
/**
|
|
1366
|
+
* The values the default look is built from: set one when a change should carry through everything
|
|
1367
|
+
* built from it. The ones the payment provider's hosted fields have too are handed to them as they are.
|
|
1368
|
+
* Every variable is optional, and literal values only (no `var()`).
|
|
1369
|
+
*/
|
|
1370
|
+
type AppearanceVariables = {
|
|
1371
|
+
/**
|
|
1372
|
+
* The primary button, text links, the selected payment method, focused borders, the loading spinner.
|
|
1373
|
+
* Its hover and pressed shades and the default focus ring are derived from it, so use a plain color.
|
|
1374
|
+
* @default your Bunny brand color
|
|
1375
|
+
*/
|
|
1376
|
+
colorPrimary?: string;
|
|
1377
|
+
/**
|
|
1378
|
+
* The text and icon colour on `colorPrimary` surfaces: the primary button's label, a ticked checkbox's
|
|
1379
|
+
* tick, the plan picker's ticks. Set it when `colorPrimary` is light.
|
|
1380
|
+
* @default `'#fff'`
|
|
1381
|
+
*/
|
|
1382
|
+
colorOnPrimary?: string;
|
|
1383
|
+
/**
|
|
1384
|
+
* The form column, inputs and payment method tiles.
|
|
1385
|
+
* @default `'#ffffff'`
|
|
1386
|
+
*/
|
|
1387
|
+
colorBackground?: string;
|
|
1388
|
+
/**
|
|
1389
|
+
* Body text and input text. The other text and fill greys are fainter steps of it, so a plain color (hex,
|
|
1390
|
+
* `rgb()` or `hsl()`) keeps them in step.
|
|
1391
|
+
* @default `'rgba(0,0,0,0.88)'`
|
|
1392
|
+
*/
|
|
1393
|
+
colorText?: string;
|
|
1394
|
+
/**
|
|
1395
|
+
* Muted text: the "Subscribe to" line, footer links, the back link; when set, also its arrow and the download icon.
|
|
1396
|
+
* @default `colorText`'s color at 65% opacity (`'rgba(0,0,0,0.65)'`)
|
|
1397
|
+
*/
|
|
1398
|
+
colorTextSecondary?: string;
|
|
1399
|
+
/**
|
|
1400
|
+
* Placeholders, the empty country select and its chevron.
|
|
1401
|
+
* @default `colorText`'s color at 25% opacity (`'rgba(0,0,0,0.25)'`)
|
|
1402
|
+
*/
|
|
1403
|
+
colorTextPlaceholder?: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* Invalid field borders and error messages.
|
|
1406
|
+
* @default `'#ff4d4f'`
|
|
1407
|
+
*/
|
|
1408
|
+
colorDanger?: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* Discount amounts and the success check (its tint and strong shade are derived from it, so use a plain color).
|
|
1411
|
+
* @default `'#52c41a'`
|
|
1412
|
+
*/
|
|
1413
|
+
colorSuccess?: string;
|
|
1414
|
+
/**
|
|
1415
|
+
* Warnings. Handed to the payment provider only when you set it.
|
|
1416
|
+
* @default `'#faad14'`
|
|
1417
|
+
*/
|
|
1418
|
+
colorWarning?: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* All text on the screen, the payment fields included. Set the font here once and list any web font in
|
|
1421
|
+
* `fonts`: it is loaded onto the page and into the payment fields. When set, content you render inside
|
|
1422
|
+
* `BunnyProvider` gets it too. Leave it unset to inherit your page's font.
|
|
1423
|
+
* @default `'inherit'` (your page's font)
|
|
1424
|
+
*/
|
|
1425
|
+
fontFamily?: string;
|
|
1426
|
+
/**
|
|
1427
|
+
* Body, input and button text. On phones, input text is raised to 16px when this is a smaller `px` value.
|
|
1428
|
+
* @default `'14px'`
|
|
1429
|
+
*/
|
|
1430
|
+
fontSizeBase?: string;
|
|
1431
|
+
/**
|
|
1432
|
+
* The smallest step of the text scale. Handed to the payment provider only when you set it.
|
|
1433
|
+
* @default `'11px'`
|
|
1434
|
+
*/
|
|
1435
|
+
fontSizeXs?: string;
|
|
1436
|
+
/**
|
|
1437
|
+
* The text scale's step below `fontSizeBase`. Handed to the payment provider only when you set it.
|
|
1438
|
+
* @default `'12px'`
|
|
1439
|
+
*/
|
|
1440
|
+
fontSizeSm?: string;
|
|
1441
|
+
/**
|
|
1442
|
+
* The text scale's step above `fontSizeBase`. Handed to the payment provider only when you set it.
|
|
1443
|
+
* @default `'16px'`
|
|
1444
|
+
*/
|
|
1445
|
+
fontSizeLg?: string;
|
|
1446
|
+
/**
|
|
1447
|
+
* The text scale's largest step below page titles. Handed to the payment provider only when you set it.
|
|
1448
|
+
* @default `'20px'`
|
|
1449
|
+
*/
|
|
1450
|
+
fontSizeXl?: string;
|
|
1451
|
+
/**
|
|
1452
|
+
* The weight of regular text. Handed to the payment provider only when you set it.
|
|
1453
|
+
* @default `'400'`
|
|
1454
|
+
*/
|
|
1455
|
+
fontWeightNormal?: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* The weight of emphasised text. Handed to the payment provider only when you set it.
|
|
1458
|
+
* @default `'500'`
|
|
1459
|
+
*/
|
|
1460
|
+
fontWeightMedium?: string;
|
|
1461
|
+
/**
|
|
1462
|
+
* The weight of headings. Handed to the payment provider only when you set it.
|
|
1463
|
+
* @default `'600'`
|
|
1464
|
+
*/
|
|
1465
|
+
fontWeightBold?: string;
|
|
1466
|
+
/**
|
|
1467
|
+
* Corner radius of controls. Cards keep 6px and tiles 8px until you set this, then your value applies
|
|
1468
|
+
* to them too.
|
|
1469
|
+
* @default `'4px'` for controls
|
|
1470
|
+
*/
|
|
1471
|
+
borderRadius?: string;
|
|
1472
|
+
/**
|
|
1473
|
+
* Vertical space between form rows, ours and the payment fields'.
|
|
1474
|
+
* @default `'12px'`
|
|
1475
|
+
*/
|
|
1476
|
+
gridRowSpacing?: string;
|
|
1477
|
+
/**
|
|
1478
|
+
* The ring around a focused input or payment method.
|
|
1479
|
+
* @default `0 0 0 2px` in a tint of `colorPrimary`
|
|
1480
|
+
* @example '0 0 0 3px rgba(20, 83, 45, 0.25)'
|
|
1481
|
+
*/
|
|
1482
|
+
focusBoxShadow?: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* The secondary surface colour: the Signup/Checkout summary, the drawer body, UpgradeCheckout, the
|
|
1485
|
+
* Subscriptions header band and the loading overlay.
|
|
1486
|
+
* @default `'#f8fafc'`
|
|
1487
|
+
*/
|
|
1488
|
+
colorBackgroundSecondary?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Borders of inputs, payment method tiles and secondary buttons. Also colours dividers and the details
|
|
1491
|
+
* list once set.
|
|
1492
|
+
* @default `'rgb(226 232 240)'`
|
|
1493
|
+
*/
|
|
1494
|
+
colorBorder?: string;
|
|
1495
|
+
/**
|
|
1496
|
+
* Width of dividers, rings and borders. Controls (inputs, buttons, checkboxes, payment tabs) are 1px
|
|
1497
|
+
* until this is set, and keep their height (44px, 32px compact) whatever the width.
|
|
1498
|
+
* @default `'2px'`
|
|
1499
|
+
*/
|
|
1500
|
+
borderWidth?: string;
|
|
1501
|
+
};
|
|
1502
|
+
type RuleProperty$1 = 'color' | 'backgroundColor' | 'border' | 'borderTop' | 'borderRight' | 'borderBottom' | 'borderLeft' | 'borderColor' | 'borderWidth' | 'borderStyle' | 'borderRadius' | 'boxShadow' | 'fontFamily' | 'fontSize' | 'fontWeight' | 'letterSpacing' | 'lineHeight' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'textTransform' | 'textDecoration' | 'transition' | 'outline' | 'outlineOffset';
|
|
1503
|
+
/** The style a selector shared with the payment provider's fields takes: the properties the provider accepts. */
|
|
1504
|
+
type AppearanceSharedStyle = Partial<Record<RuleProperty$1, string>>;
|
|
1505
|
+
/** The style a Bunny-only selector takes. */
|
|
1506
|
+
type AppearanceStyle = AppearanceSharedStyle & {
|
|
1507
|
+
background?: string;
|
|
1508
|
+
fontVariantNumeric?: string;
|
|
1509
|
+
opacity?: string;
|
|
1510
|
+
/** @deprecated Layout is not part of `appearance` and this will be removed: size the element around the component instead. */
|
|
1511
|
+
maxWidth?: string;
|
|
1512
|
+
/** @deprecated Layout is not part of `appearance` and this will be removed: size the element around the component instead. */
|
|
1513
|
+
minHeight?: string;
|
|
1514
|
+
};
|
|
1515
|
+
/**
|
|
1516
|
+
* One key per public selector: roles (with their states) and regions. Shared selectors take
|
|
1517
|
+
* `AppearanceSharedStyle`, Bunny-only ones `AppearanceStyle`.
|
|
1518
|
+
*/
|
|
1519
|
+
type AppearanceSelectorRules = {
|
|
1520
|
+
/**
|
|
1521
|
+
* Text inputs and the country select, on Bunny's fields and the payment provider's alike. There is no
|
|
1522
|
+
* `height`: vertical padding + `lineHeight` + borders make it (44px by default), so raise the padding to grow both.
|
|
1523
|
+
* @default `11px 12px` padding (`12px` less the border), `20px` line, 1px (`borderWidth` when set) solid `colorBorder`
|
|
1524
|
+
*/
|
|
1525
|
+
'.Input'?: AppearanceSharedStyle;
|
|
1526
|
+
/** A text input under the pointer. Forwarded to the payment provider. @default `colorPrimary`'s hover shade border */
|
|
1527
|
+
'.Input:hover'?: AppearanceSharedStyle;
|
|
1528
|
+
/**
|
|
1529
|
+
* A focused text input, and a multi-select's field while its text input has the focus. Forwarded to the
|
|
1530
|
+
* payment provider. @default `colorPrimary` border and `focusBoxShadow`
|
|
1531
|
+
*/
|
|
1532
|
+
'.Input:focus'?: AppearanceSharedStyle;
|
|
1533
|
+
/**
|
|
1534
|
+
* A text input that failed validation. Forwarded to the payment provider. The default clears the focus ring:
|
|
1535
|
+
* set `boxShadow` to give it one.
|
|
1536
|
+
* @default `colorDanger` border, no shadow
|
|
1537
|
+
*/
|
|
1538
|
+
'.Input--invalid'?: AppearanceSharedStyle;
|
|
1539
|
+
/**
|
|
1540
|
+
* A disabled text input or select, as while a form saves. Forwarded to the payment provider.
|
|
1541
|
+
* @default `colorTextDisabled` text on `colorBackgroundDisabled`
|
|
1542
|
+
*/
|
|
1543
|
+
'.Input:disabled'?: AppearanceSharedStyle;
|
|
1544
|
+
/** Placeholder text. Forwarded to the payment provider. @default `colorTextPlaceholder` */
|
|
1545
|
+
'.Input::placeholder'?: AppearanceSharedStyle;
|
|
1546
|
+
/**
|
|
1547
|
+
* The compact variant: Bunny's 32px inputs and selects where 44px would be too heavy (the coupon row, a
|
|
1548
|
+
* list's search box, the billing details' form, the quote's forms). Weighs `.Input` plus the variant, so
|
|
1549
|
+
* your `.Input` padding leaves them compact: restyle them here. Bunny only: never handed to the payment
|
|
1550
|
+
* provider, whose fields have no compact size. Not scopable, like every `.Input` key.
|
|
1551
|
+
* @default `5px 12px` padding (`6px` less the border)
|
|
1552
|
+
*/
|
|
1553
|
+
'.Input--compact'?: AppearanceSharedStyle;
|
|
1554
|
+
/**
|
|
1555
|
+
* Field labels, on Bunny's fields and the payment provider's alike.
|
|
1556
|
+
* @default 14px, weight 500, `colorText`, 6px below
|
|
1557
|
+
*/
|
|
1558
|
+
'.Label'?: AppearanceSharedStyle;
|
|
1559
|
+
/**
|
|
1560
|
+
* Validation messages under a field, on Bunny's fields and the payment provider's alike.
|
|
1561
|
+
* @default 14px, `colorDanger`
|
|
1562
|
+
*/
|
|
1563
|
+
'.Error'?: AppearanceSharedStyle;
|
|
1564
|
+
/**
|
|
1565
|
+
* Payment method tiles: Bunny's own and the payment provider's tabs. Bunny's are the payment plugins,
|
|
1566
|
+
* saved payment methods and "New card" in Signup, Checkout and the payment form (in a longer list they are
|
|
1567
|
+
* rows of the same role), and the saved payment methods listed in the billing details.
|
|
1568
|
+
* @default 1px (`borderWidth` when set) solid `colorBorder`, `colorBackground`, weight 500
|
|
1569
|
+
*/
|
|
1570
|
+
'.Tab'?: AppearanceSharedStyle;
|
|
1571
|
+
/** A payment method tile under the pointer. Forwarded to the payment provider. @default `colorPrimary`'s hover shade border */
|
|
1572
|
+
'.Tab:hover'?: AppearanceSharedStyle;
|
|
1573
|
+
/** The chosen payment method. Forwarded to the payment provider (its `color` also tints Stripe's tab icon). @default `colorPrimary` border and text */
|
|
1574
|
+
'.Tab--selected'?: AppearanceSharedStyle;
|
|
1575
|
+
/** A focused payment method tile, selected or not. Forwarded to the payment provider. @default `focusBoxShadow` */
|
|
1576
|
+
'.Tab:focus'?: AppearanceSharedStyle;
|
|
1577
|
+
/**
|
|
1578
|
+
* The primary action (the pay button). Bunny only. Sized like `.Input`: change its height through `padding`.
|
|
1579
|
+
* @default filled with `colorPrimary`, `11px 16px` padding (`12px` less the border)
|
|
1580
|
+
*/
|
|
1581
|
+
'.Button'?: AppearanceStyle;
|
|
1582
|
+
/** The primary button under the pointer. @default `colorPrimary`'s hover shade */
|
|
1583
|
+
'.Button:hover'?: AppearanceStyle;
|
|
1584
|
+
/** The primary button while pressed. @default `colorPrimary`'s pressed shade */
|
|
1585
|
+
'.Button:active'?: AppearanceStyle;
|
|
1586
|
+
/** The primary button when disabled. @default `rgba(113, 125, 148, 0.1)` fill */
|
|
1587
|
+
'.Button:disabled'?: AppearanceStyle;
|
|
1588
|
+
/**
|
|
1589
|
+
* The compact variant: 32px primary buttons beside compact inputs and in toolbars (the quote's, the coupon
|
|
1590
|
+
* row's Apply, a modal's actions). Weighs `.Button` plus the variant, so your `.Button` padding leaves them
|
|
1591
|
+
* compact: restyle them here. Bunny only.
|
|
1592
|
+
* @default `5px 12px` padding (`6px` less the border)
|
|
1593
|
+
*/
|
|
1594
|
+
'.Button--compact'?: AppearanceStyle;
|
|
1595
|
+
/**
|
|
1596
|
+
* The summary column's content: header, amount, line items, totals. Bunny only. No default rule; the
|
|
1597
|
+
* content is capped at `36rem` with `4rem` padding (`1.5rem` on phones): change the padding with `padding`.
|
|
1598
|
+
*/
|
|
1599
|
+
'.Summary'?: AppearanceStyle;
|
|
1600
|
+
/**
|
|
1601
|
+
* The form column's content: the form, or the confirmation after checkout. Bunny only. No default rule;
|
|
1602
|
+
* capped and padded like `.Summary`.
|
|
1603
|
+
*/
|
|
1604
|
+
'.Form'?: AppearanceStyle;
|
|
1605
|
+
/**
|
|
1606
|
+
* Bordered secondary actions (Download, Fullscreen). A role of its own, not drawn on a `.Button`: a
|
|
1607
|
+
* `.Button` rule does not reach it. Bunny only. Sized like `.Button`.
|
|
1608
|
+
* @default 1px (`borderWidth` when set) solid `colorBorder`, `colorBackground`, `colorText`
|
|
1609
|
+
*/
|
|
1610
|
+
'.ButtonSecondary'?: AppearanceStyle;
|
|
1611
|
+
/** A secondary button under the pointer. @default `colorPrimary`'s hover shade, border and text */
|
|
1612
|
+
'.ButtonSecondary:hover'?: AppearanceStyle;
|
|
1613
|
+
/** A disabled secondary button. @default `colorBorder` border, disabled fill and text */
|
|
1614
|
+
'.ButtonSecondary:disabled'?: AppearanceStyle;
|
|
1615
|
+
/** The compact variant of `.ButtonSecondary`, like `.Button--compact`. Bunny only. @default `5px 12px` padding (`6px` less the border) */
|
|
1616
|
+
'.ButtonSecondary--compact'?: AppearanceStyle;
|
|
1617
|
+
/**
|
|
1618
|
+
* All text: body text (table cells, line items, details), and under every other text role. A muted
|
|
1619
|
+
* text, a heading, an amount and an overline are each a `.Text` with their own role on top
|
|
1620
|
+
* (`.TextSecondary`, `.Heading`, `.Amount`, `.Overline`), so a `color` or `fontFamily` here reaches them
|
|
1621
|
+
* all. A rule for one of those roles, yours or ours, beats this one, so a heading keeps its size and
|
|
1622
|
+
* muted text its colour unless you set them on that role. Bunny only. Body text's sizes (a step down or
|
|
1623
|
+
* up the scale) and emphasis are internal variants this rule reaches too.
|
|
1624
|
+
* @default `colorText`, `fontSizeBase`, `fontWeightNormal`, `1.4` line
|
|
1625
|
+
*/
|
|
1626
|
+
'.Text'?: AppearanceStyle;
|
|
1627
|
+
/**
|
|
1628
|
+
* Muted text: captions, hints, line item details. A `.Text` with this role on top. Bunny only. In the footer, the words
|
|
1629
|
+
* "Powered by" are one, inside a `.Link` whose colour and size they take.
|
|
1630
|
+
* @default `colorTextSecondary`
|
|
1631
|
+
*/
|
|
1632
|
+
'.TextSecondary'?: AppearanceStyle;
|
|
1633
|
+
/**
|
|
1634
|
+
* Headings: a page's title, a section's, a card's or a table's. A `.Text` with this role on top, so it
|
|
1635
|
+
* takes `.Text`'s colour unless you set one here. Bunny only. The levels below the first
|
|
1636
|
+
* are internal variants (`fontSizeXl`, `fontSizeLg`), so a `fontSize` here resizes every level; scope it to a
|
|
1637
|
+
* region to change one place (`'.Invoice .Heading'`).
|
|
1638
|
+
* @default 30px, `fontWeightBold`, `1.27` line, no margin
|
|
1639
|
+
*/
|
|
1640
|
+
'.Heading'?: AppearanceStyle;
|
|
1641
|
+
/** Prices and totals. A `.Text` with this role on top. Bunny only. @default tabular figures, `fontWeightMedium` */
|
|
1642
|
+
'.Amount'?: AppearanceStyle;
|
|
1643
|
+
/** The one large amount of a screen, such as what is due. Bunny only. @default 30px, `fontWeightBold`, `1.25` line */
|
|
1644
|
+
'.Amount--display'?: AppearanceStyle;
|
|
1645
|
+
/** Small upper-case labels over a group or a column. A `.Text` with this role on top. Bunny only. @default `fontSizeXs`, `fontWeightMedium`, `colorTextSecondary`, uppercase, the surrounding line height */
|
|
1646
|
+
'.Overline'?: AppearanceStyle;
|
|
1647
|
+
/** The line between sections. Bunny only. @default a 1px light hairline top border (your `colorBorder` when you set it), `16px 0` margin */
|
|
1648
|
+
'.Divider'?: AppearanceStyle;
|
|
1649
|
+
/**
|
|
1650
|
+
* Links: the footer's, and the buttons drawn as links ("Have a coupon code?", Cancel, Back, the table
|
|
1651
|
+
* pager, "Add new contact"). Bunny only.
|
|
1652
|
+
* @default `colorTextSecondary`, no underline; the buttons drawn as links are `colorPrimary` until you set a `color`
|
|
1653
|
+
*/
|
|
1654
|
+
'.Link'?: AppearanceStyle;
|
|
1655
|
+
/** A link under the pointer. Bunny only. @default `colorText` (`colorPrimary`'s hover shade for the buttons drawn as links) */
|
|
1656
|
+
'.Link:hover'?: AppearanceStyle;
|
|
1657
|
+
/**
|
|
1658
|
+
* Tags: small pills labelling a state, such as an invoice's status or a saved payment method's `Default`
|
|
1659
|
+
* and `Failed`. Bunny only. A state's colour (green for paid, red for overdue, ...) is an internal variant,
|
|
1660
|
+
* so a `color` or `backgroundColor` here recolours every tag.
|
|
1661
|
+
* @default `0 10px` padding (20px tall), pill radius, `fontSizeSm`, `fontWeightMedium`, `colorText` on a
|
|
1662
|
+
* faint fill derived from `colorText`
|
|
1663
|
+
*/
|
|
1664
|
+
'.Tag'?: AppearanceStyle;
|
|
1665
|
+
/** Toggle switches, off. Bunny only. @default pill, a quarter-strength fill derived from `colorText` */
|
|
1666
|
+
'.Switch'?: AppearanceStyle;
|
|
1667
|
+
/** Toggle switches, on. Bunny only. @default `colorPrimary` */
|
|
1668
|
+
'.Switch--checked'?: AppearanceStyle;
|
|
1669
|
+
/** Checkboxes (the box; the label is `.Text`), unticked. Bunny only. @default 1px (`borderWidth` when set) solid `colorBorder`, `borderRadius`, `colorBackground` */
|
|
1670
|
+
'.Checkbox'?: AppearanceStyle;
|
|
1671
|
+
/** Ticked checkboxes. Bunny only. @default `colorPrimary` fill and border, a `colorOnPrimary` tick */
|
|
1672
|
+
'.Checkbox--checked'?: AppearanceStyle;
|
|
1673
|
+
/**
|
|
1674
|
+
* A row of exclusive choices drawn as pills in a track, such as the billing period picker. The track.
|
|
1675
|
+
* Bunny only. @default a light grey (a faint fill derived from `colorText` when you set `colorText` or `colorBackground`), `6px` corners (your `borderRadius` when you set it), `4px` padding
|
|
1676
|
+
*/
|
|
1677
|
+
'.Segmented'?: AppearanceStyle;
|
|
1678
|
+
/** One choice of a `.Segmented`. Bunny only. @default `0 7px` padding and a transparent 1px border (24px high), `fontSizeXs`, `fontWeightNormal`, `colorText`, no fill */
|
|
1679
|
+
'.SegmentedOption'?: AppearanceStyle;
|
|
1680
|
+
/** The chosen option of a `.Segmented`. Bunny only. @default `colorPrimary` fill, `colorOnPrimary` text */
|
|
1681
|
+
'.SegmentedOption--selected'?: AppearanceStyle;
|
|
1682
|
+
/** A `.SegmentedOption` under the pointer. Bunny only. @default `colorPrimaryHover` text */
|
|
1683
|
+
'.SegmentedOption:hover'?: AppearanceStyle;
|
|
1684
|
+
/** The chosen option under the pointer. Bunny only. @default `colorPrimaryHover` fill, `colorOnPrimary` text */
|
|
1685
|
+
'.SegmentedOption--selected:hover'?: AppearanceStyle;
|
|
1686
|
+
/** Stand-ins for content that is loading. Bunny only. @default `borderRadius`, a faint fill derived from `colorText` */
|
|
1687
|
+
'.Skeleton'?: AppearanceStyle;
|
|
1688
|
+
/**
|
|
1689
|
+
* Raised surfaces that group content. Bunny only.
|
|
1690
|
+
* @default `colorBackground`, `6px` (your `borderRadius` when you set it), the card shadow
|
|
1691
|
+
*/
|
|
1692
|
+
'.Card'?: AppearanceStyle;
|
|
1693
|
+
/** A card under the pointer. Bunny only. No default: a clickable card shows a `colorPrimary` hover ring. */
|
|
1694
|
+
'.Card:hover'?: AppearanceStyle;
|
|
1695
|
+
/** The chosen card of a group, such as a plan. Bunny only. @default a `borderWidth` `colorPrimary` ring */
|
|
1696
|
+
'.Card--selected'?: AppearanceStyle;
|
|
1697
|
+
/**
|
|
1698
|
+
* The paper an invoice or a quote is drawn on. Bunny only. Set `boxShadow` here to change its shadow.
|
|
1699
|
+
* @default `colorBackground`, `6px` (your `borderRadius` when you set it), the card shadow, `16px 0` padding
|
|
1700
|
+
*/
|
|
1701
|
+
'.Document'?: AppearanceStyle;
|
|
1702
|
+
/** A table's surface, on top of `.Card`. Set `boxShadow` here to change its shadow. Bunny only. No default rule. */
|
|
1703
|
+
'.Table'?: AppearanceStyle;
|
|
1704
|
+
/** A column header cell; drawn on top of `.TableCell`, so a `.TableCell` rule reaches it and a `.TableHeaderCell` rule wins. Bunny only. @default `colorText`, `fontWeightBold`, line height `1` */
|
|
1705
|
+
'.TableHeaderCell'?: AppearanceStyle;
|
|
1706
|
+
/** A row: its `backgroundColor` fills the row's cells. Bunny only. No default rule. */
|
|
1707
|
+
'.TableRow'?: AppearanceStyle;
|
|
1708
|
+
/** Every other row. Bunny only. @default a fainter fill derived from `colorText` */
|
|
1709
|
+
'.TableRow--alternate'?: AppearanceStyle;
|
|
1710
|
+
/** A cell, in the header and in the rows. Bunny only. @default `16px` padding, `fontSizeBase`, `colorText` */
|
|
1711
|
+
'.TableCell'?: AppearanceStyle;
|
|
1712
|
+
/**
|
|
1713
|
+
* The invoice: its `.Document` and the payment form (its `.Tab`s, `.Input`s and `.Button`). Bunny only. A
|
|
1714
|
+
* region: scope roles to it (`'.Invoice .Document'`).
|
|
1715
|
+
* @default `colorText`, `fontFamily`, `fontSizeBase`
|
|
1716
|
+
*/
|
|
1717
|
+
'.Invoice'?: AppearanceStyle;
|
|
1718
|
+
/**
|
|
1719
|
+
* The footer: "Terms", "Privacy" and the "Powered by" Bunny link, all `.Link`s (small and muted here). The
|
|
1720
|
+
* words "Powered by" are a `.TextSecondary` (a `.Text` in the secondary role) that takes its link's colour
|
|
1721
|
+
* but keeps `.Text`'s size. Bunny only. A region: `'.Footer .Link'` restyles only its links.
|
|
1722
|
+
* @default `colorText`, `fontFamily`, `fontSizeBase`
|
|
1723
|
+
*/
|
|
1724
|
+
'.Footer'?: AppearanceStyle;
|
|
1725
|
+
/**
|
|
1726
|
+
* The invoices list: its title (a `.Heading`), search bar (a compact `.Input`) and `.Table`. Bunny only. A
|
|
1727
|
+
* region: `'.Invoices .Heading'` restyles only the title (by default `fontSizeBase`, line height `1`). The
|
|
1728
|
+
* detail view a row opens is a `.Drawer` or `.Modal`, outside the region.
|
|
1729
|
+
* @default `colorText`, `fontFamily`, `fontSizeBase`
|
|
1730
|
+
*/
|
|
1731
|
+
'.Invoices'?: AppearanceStyle;
|
|
1732
|
+
/** The quotes list, laid out like `.Invoices`. Bunny only. A region. @default `colorText`, `fontFamily`, `fontSizeBase` */
|
|
1733
|
+
'.Quotes'?: AppearanceStyle;
|
|
1734
|
+
/** The transactions list, laid out like `.Invoices`. Bunny only. A region. @default `colorText`, `fontFamily`, `fontSizeBase` */
|
|
1735
|
+
'.Transactions'?: AppearanceStyle;
|
|
1736
|
+
/**
|
|
1737
|
+
* The quote: its `.Document`, `.Heading`s, `.Text` and `.Button`s. Bunny only. A region: `'.Quote .Button'`
|
|
1738
|
+
* restyles only the quote's buttons. The accept and payment hold modals render outside it: style them
|
|
1739
|
+
* through `.Modal`.
|
|
1740
|
+
* @default `colorText`, `fontFamily`
|
|
1741
|
+
*/
|
|
1742
|
+
'.Quote'?: AppearanceStyle;
|
|
1743
|
+
/**
|
|
1744
|
+
* The billing details: the company name (a `.Heading`), the form's `.Input`s and `.Button`s and the saved
|
|
1745
|
+
* payment methods (`.Tab`s with their `.Tag`s and a menu each), on one surface. Bunny only. A region: `'.BillingDetails .Button'` restyles only its buttons, and
|
|
1746
|
+
* `'.BillingDetails .Heading'` the company name (by default 18px, `fontWeightMedium`, line height `28px`).
|
|
1747
|
+
* @default `colorBackground`, `borderRadius`, the card shadow, `colorText`, `fontFamily`, `fontSizeBase`
|
|
1748
|
+
*/
|
|
1749
|
+
'.BillingDetails'?: AppearanceStyle;
|
|
1750
|
+
/**
|
|
1751
|
+
* The subscriptions list: a `.Card` per subscription (its product a `.Heading`, its state a `.Tag`), the
|
|
1752
|
+
* "Show inactive" `.Checkbox` and the `.ButtonSecondary` above the list. Bunny only. A region: space the
|
|
1753
|
+
* cards with `'.Subscriptions .Card': { marginBottom }`.
|
|
1754
|
+
* @default `colorText`, `fontFamily`, `fontSizeBase`
|
|
1755
|
+
*/
|
|
1756
|
+
'.Subscriptions'?: AppearanceStyle;
|
|
1757
|
+
/**
|
|
1758
|
+
* The plan picker: the billing period's `.Segmented`, the plans (a `.Card` each, the plan's name its
|
|
1759
|
+
* `.Heading` and its price an `.Amount--display`; on a desktop the plans are columns of one `.Card`),
|
|
1760
|
+
* the feature comparison (`.Card`s of rows of `.Text`, group titles as `.Overline`), the add-on plans
|
|
1761
|
+
* (`.Card`s) and the sticky checkout bar (a `.Card` with the total and the checkout `.Button`). Bunny only.
|
|
1762
|
+
* A region: `'.Upgrade .Heading'` restyles the plan names, `'.Upgrade .Card--selected'` the chosen plan.
|
|
1763
|
+
* @default `colorText`, `fontFamily`, `fontSizeBase`
|
|
1764
|
+
*/
|
|
1765
|
+
'.Upgrade'?: AppearanceStyle;
|
|
1766
|
+
/**
|
|
1767
|
+
* A drawer's panel, such as the quantity editor or a list's detail view: its header (the title and the
|
|
1768
|
+
* close button) over the content (`.Text`, `.Divider`s, `.Button`s). The title is always a `.Text`; a rule
|
|
1769
|
+
* for the title alone is not supported yet (`'.Drawer .Text'` also reaches the content's text). Bunny only.
|
|
1770
|
+
* A region: `'.Drawer .Button'` restyles only the drawers' buttons. The content sits on
|
|
1771
|
+
* `colorBackgroundSecondary` under a hairline in the border colour.
|
|
1772
|
+
* @default `colorBackground`, `colorText`, `fontFamily`, `fontSizeBase`
|
|
1773
|
+
*/
|
|
1774
|
+
'.Drawer'?: AppearanceStyle;
|
|
1775
|
+
/**
|
|
1776
|
+
* A modal's panel, such as accepting a quote, approving a payment hold (with the payment form) or adding a
|
|
1777
|
+
* contact: its title, the content and the `.Button`s under it. The title is always a strong `.Text`; a rule for the title alone is not supported
|
|
1778
|
+
* yet (`'.Modal .Text'` also reaches the content's text). Bunny only. A region: `'.Modal .Button'`
|
|
1779
|
+
* restyles only the modals' buttons.
|
|
1780
|
+
* @default `colorBackground`, `colorText`, `fontFamily`, `fontSizeBase`
|
|
1781
|
+
*/
|
|
1782
|
+
'.Modal'?: AppearanceStyle;
|
|
1783
|
+
};
|
|
1784
|
+
/**
|
|
1785
|
+
* The regions: the root of each exported component and the areas several screens share (Signup's and
|
|
1786
|
+
* Checkout's `.Summary` and `.Form`, the `.Drawer` and `.Modal` panels), styleable themselves and the only
|
|
1787
|
+
* scopes a compound rule can name (`'.Summary .Button'`). An area inside one screen is not a region: it is
|
|
1788
|
+
* reached through the screen's root (`'.Upgrade .Heading'`). The engine reads this list; it is not
|
|
1789
|
+
* exported from the package.
|
|
1790
|
+
*/
|
|
1791
|
+
declare const REGIONS: readonly [".Summary", ".Form", ".Invoice", ".Footer", ".Invoices", ".Quotes", ".Transactions", ".Quote", ".BillingDetails", ".Subscriptions", ".Upgrade", ".Drawer", ".Modal"];
|
|
1792
|
+
/** A region (see `REGIONS`). */
|
|
1793
|
+
type AppearanceRegion = (typeof REGIONS)[number];
|
|
1794
|
+
/** What a compound rule can be scoped to. Only regions: adding a scope later is non-breaking, removing one is not. */
|
|
1795
|
+
type AppearanceScope = AppearanceRegion;
|
|
1796
|
+
/** A state on a selector: a pseudo-class (`:hover`, `::placeholder`) or a state suffix (`--selected`). */
|
|
1797
|
+
type StateSuffix = `:${string}` | `--${string}`;
|
|
1798
|
+
/**
|
|
1799
|
+
* The roots of the shared selectors: with their states, handed to the payment provider's fields too.
|
|
1800
|
+
* Never scoped: a scoped shared rule would restyle our fields but not the payment provider's. The engine
|
|
1801
|
+
* reads this list; it is not exported from the package.
|
|
1802
|
+
*/
|
|
1803
|
+
declare const SHARED_ROOTS: readonly [".Input", ".Label", ".Error", ".Tab"];
|
|
1804
|
+
/** A shared selector's root (see `SHARED_ROOTS`). */
|
|
1805
|
+
type SharedRoot = (typeof SHARED_ROOTS)[number];
|
|
1806
|
+
/** The selectors a region can scope: every Bunny-only role and its states, never a region or a key on a shared root. */
|
|
1807
|
+
type AppearanceScopable = Exclude<keyof AppearanceSelectorRules, AppearanceRegion | SharedRoot | `${SharedRoot}${StateSuffix}`>;
|
|
1808
|
+
/**
|
|
1809
|
+
* Scoped rules: a Bunny-only role inside one region, such as `'.Summary .Button'` or
|
|
1810
|
+
* `'.Summary .Button:hover'`. Bunny only: never forwarded to the payment provider. Inside the region
|
|
1811
|
+
* a scoped rule beats the plain role rule (`.Button`), yours or ours, but not a state: scope the state
|
|
1812
|
+
* too (`'.Summary .Button:hover'`). Outside the region it does nothing.
|
|
1813
|
+
* Takes `AppearanceStyle`. Scoped keys carry no hover documentation of their own: read the plain
|
|
1814
|
+
* role's and the region's.
|
|
1815
|
+
*/
|
|
1816
|
+
type AppearanceScopedRules = {
|
|
1817
|
+
[K in keyof AppearanceSelectorRules as K extends AppearanceScopable ? `${AppearanceScope} ${K}` : never]?: AppearanceStyle;
|
|
1818
|
+
};
|
|
1819
|
+
/**
|
|
1820
|
+
* Selector → style override: every public selector (`AppearanceSelectorRules`) plus the scoped rules
|
|
1821
|
+
* (`AppearanceScopedRules`).
|
|
1822
|
+
*/
|
|
1823
|
+
type AppearanceRules = AppearanceSelectorRules & AppearanceScopedRules;
|
|
1824
|
+
/**
|
|
1825
|
+
* A web font to use in `variables.fontFamily`: a stylesheet of `@font-face` rules, or one font file. It
|
|
1826
|
+
* is loaded onto the page and into the payment fields (which render in an iframe), so your page needn't
|
|
1827
|
+
* load it. System fonts need no entry.
|
|
1828
|
+
*/
|
|
1829
|
+
type AppearanceFont = {
|
|
1830
|
+
/** URL of a stylesheet of `@font-face` rules, such as a Google Fonts link. */
|
|
1831
|
+
cssSrc: string;
|
|
1832
|
+
} | {
|
|
1833
|
+
/** The name to use in `fontFamily`. */
|
|
1834
|
+
family: string;
|
|
1835
|
+
/** The font file, as a CSS `src` value: `url(https://...)`. */
|
|
1836
|
+
src: string;
|
|
1837
|
+
/** CSS `font-weight`, such as `'400'` or `'400 700'`. */
|
|
1838
|
+
weight?: string;
|
|
1839
|
+
/** CSS `font-style`. */
|
|
1840
|
+
style?: 'normal' | 'italic' | 'oblique';
|
|
1841
|
+
/** CSS `font-display`. */
|
|
1842
|
+
display?: string;
|
|
1843
|
+
/** CSS `unicode-range`. */
|
|
1844
|
+
unicodeRange?: string;
|
|
1845
|
+
};
|
|
1846
|
+
/**
|
|
1847
|
+
* Restyles Bunny's components: `variables` feed the default rules, your `rules` are merged over them
|
|
1848
|
+
* selector by selector, and `fonts` are loaded onto the page and into the payment fields. Set it on `BunnyProvider` for every
|
|
1849
|
+
* component, or on a component to restyle that one on top. The payment provider's hosted fields (Stripe's
|
|
1850
|
+
* Payment Element) follow the shared rules too. See "Styling components" in the package README.
|
|
1851
|
+
* @example
|
|
1852
|
+
* <BunnyProvider
|
|
1853
|
+
* apiHost="..."
|
|
1854
|
+
* token={token}
|
|
1855
|
+
* appearance={{
|
|
1856
|
+
* variables: { colorPrimary: '#14532d', colorBackgroundSecondary: '#f6f1e7', borderRadius: '0px' },
|
|
1857
|
+
* rules: {
|
|
1858
|
+
* '.Label': { textTransform: 'uppercase', letterSpacing: '0.08em' },
|
|
1859
|
+
* '.Input:focus': { borderColor: '#14532d', boxShadow: '0 0 0 1px #14532d' },
|
|
1860
|
+
* '.Button': { backgroundColor: '#1c1917', padding: '14px 16px' },
|
|
1861
|
+
* },
|
|
1862
|
+
* fonts: [{ cssSrc: 'https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600&display=swap' }],
|
|
1863
|
+
* }}
|
|
1864
|
+
* >
|
|
1865
|
+
* ...
|
|
1866
|
+
* </BunnyProvider>
|
|
1867
|
+
*/
|
|
1868
|
+
type Appearance = {
|
|
1869
|
+
/** The values the default rules are built from. */
|
|
1870
|
+
variables?: AppearanceVariables;
|
|
1871
|
+
/** Per-selector overrides, merged over the defaults property by property. Literal values only. */
|
|
1872
|
+
rules?: AppearanceRules;
|
|
1873
|
+
/**
|
|
1874
|
+
* Web fonts for `variables.fontFamily`, loaded onto the page and into the payment fields. Set them once,
|
|
1875
|
+
* up front: changing them after the payment form mounts remounts it and clears what was typed.
|
|
1876
|
+
* @example [{ cssSrc: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap' }]
|
|
1877
|
+
*/
|
|
1878
|
+
fonts?: AppearanceFont[];
|
|
1879
|
+
};
|
|
1880
|
+
|
|
27
1881
|
type InvoiceProps = InvoiceQuoteContextProps & {
|
|
28
1882
|
hidePaymentForm?: boolean;
|
|
29
1883
|
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
30
1884
|
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
1885
|
+
/** A custom style to apply to the component */
|
|
1886
|
+
style?: CSSProperties;
|
|
1887
|
+
/** Restyles this component on top of `BunnyProvider`'s `appearance`. See "Styling components" in the package README. */
|
|
1888
|
+
appearance?: Appearance;
|
|
31
1889
|
};
|
|
32
|
-
declare function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess,
|
|
1890
|
+
declare function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, className, hideDownloadButton, hidePaymentForm, onInvoiceLoaded, onPaymentMethodSaved, onPaymentMethodRemoved, style, appearance, }: InvoiceProps): react.JSX.Element;
|
|
33
1891
|
|
|
34
1892
|
declare global {
|
|
35
1893
|
interface Window {
|
|
@@ -38,6 +1896,64 @@ declare global {
|
|
|
38
1896
|
}
|
|
39
1897
|
}
|
|
40
1898
|
|
|
1899
|
+
/** Shared display options for the resource table wrappers (Invoices, Quotes, Transactions, ...). */
|
|
1900
|
+
type TableDisplayOptions<ColumnKey extends string> = {
|
|
1901
|
+
/** Whether to show the search bar */
|
|
1902
|
+
showSearchBar?: boolean;
|
|
1903
|
+
/** Whether to show the title */
|
|
1904
|
+
showTitle?: boolean;
|
|
1905
|
+
/** The title to display above the list */
|
|
1906
|
+
title?: string;
|
|
1907
|
+
/** The columns to display */
|
|
1908
|
+
columns?: ColumnKey[];
|
|
1909
|
+
/** A custom class name to apply to the component */
|
|
1910
|
+
className?: string;
|
|
1911
|
+
/** A custom style to apply to the component */
|
|
1912
|
+
style?: React.CSSProperties;
|
|
1913
|
+
/** Whether to open the row detail in a modal instead of a drawer */
|
|
1914
|
+
useModal?: boolean;
|
|
1915
|
+
/** A custom class name to apply to the search bar */
|
|
1916
|
+
searchBarClassName?: string;
|
|
1917
|
+
/** Message to display when the list is empty */
|
|
1918
|
+
emptyMessage?: string;
|
|
1919
|
+
};
|
|
1920
|
+
/** Shared behavior options for the resource table wrappers. */
|
|
1921
|
+
type TableBehaviorOptions = {
|
|
1922
|
+
/** Whether to suppress the row detail drawer/modal on row click */
|
|
1923
|
+
suppressDetail?: boolean;
|
|
1924
|
+
/** Force a specific number of rows per page. When omitted the table
|
|
1925
|
+
* auto-sizes based on the available viewport height. Must be between
|
|
1926
|
+
* 1 and 100 (the API's per-request cap). */
|
|
1927
|
+
rowsPerPage?: number;
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
type InvoiceColumnKey = 'date' | 'title' | 'state' | 'amount' | 'download' | 'accountName';
|
|
1931
|
+
type InvoiceDateType = 'createdAt' | 'issuedAt' | 'dueAt';
|
|
1932
|
+
|
|
1933
|
+
type InvoicesDisplayOptions = TableDisplayOptions<InvoiceColumnKey>;
|
|
1934
|
+
type InvoicesBehaviorOptions = TableBehaviorOptions & {
|
|
1935
|
+
/** The type of date to display for invoices. */
|
|
1936
|
+
invoiceDateType?: InvoiceDateType;
|
|
1937
|
+
/** Whether to hide the payment form on invoices */
|
|
1938
|
+
hidePaymentForm?: boolean;
|
|
1939
|
+
};
|
|
1940
|
+
declare function Invoices({ invoiceComponent, onInvoiceClick, filter, sort, appearance, displayOptions, behaviorOptions, }: {
|
|
1941
|
+
/** A custom component to render instead of the default invoice component */
|
|
1942
|
+
invoiceComponent?: react__default.ReactNode;
|
|
1943
|
+
/** A function to call when an invoice is clicked */
|
|
1944
|
+
onInvoiceClick?: (invoice: Invoice$1) => void;
|
|
1945
|
+
/** Filter expression applied server-side, e.g. `"invoice.amount is 100"`.
|
|
1946
|
+
* Docs: https://docs.bunny.com/developer/getting-started/using-filters-in-queries
|
|
1947
|
+
*/
|
|
1948
|
+
filter?: string;
|
|
1949
|
+
/** Sort clause applied server-side, e.g. `"createdAt DESC"` or `"amount ASC"`. */
|
|
1950
|
+
sort?: string;
|
|
1951
|
+
/** Restyles this component on top of `BunnyProvider`'s `appearance`. See "Styling components" in the package README. */
|
|
1952
|
+
appearance?: Appearance;
|
|
1953
|
+
displayOptions?: InvoicesDisplayOptions;
|
|
1954
|
+
behaviorOptions?: InvoicesBehaviorOptions;
|
|
1955
|
+
}): react__default.JSX.Element;
|
|
1956
|
+
|
|
41
1957
|
declare const OnQuoteLoadedFragment: gql_tada.TadaDocumentNode<{
|
|
42
1958
|
vendorName: string | null;
|
|
43
1959
|
quote: {
|
|
@@ -53,45 +1969,33 @@ type QuoteProps = InvoiceQuoteContextProps & {
|
|
|
53
1969
|
onQuoteUnavailableError?: () => void;
|
|
54
1970
|
suppressQuoteUnavailableErrorNotification?: boolean;
|
|
55
1971
|
onQuoteLoaded?: (formattedQuote: ResultOf<typeof OnQuoteLoadedFragment>) => void;
|
|
1972
|
+
/** A custom style to apply to the component */
|
|
1973
|
+
style?: CSSProperties;
|
|
1974
|
+
/** Restyles this component on top of `BunnyProvider`'s `appearance`. See "Styling components" in the package README. */
|
|
1975
|
+
appearance?: Appearance;
|
|
56
1976
|
};
|
|
57
|
-
declare function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess,
|
|
1977
|
+
declare function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, className, hideDownloadButton, onQuoteLoaded, onQuoteAccepted, onQuoteUnavailableError, suppressQuoteUnavailableErrorNotification, style, appearance, }: QuoteProps): react.JSX.Element;
|
|
58
1978
|
|
|
59
|
-
type
|
|
1979
|
+
type QuoteColumnKey = 'date' | 'title' | 'state' | 'amount' | 'download' | 'accountName';
|
|
60
1980
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
-
/** Whether to show the title */
|
|
67
|
-
showTitle?: boolean;
|
|
68
|
-
/** The title to display in the quotes list */
|
|
69
|
-
title?: string;
|
|
70
|
-
/** The columns to display in the quotes list */
|
|
71
|
-
columns?: TransactionListColumnType[];
|
|
72
|
-
/** A custom class name to apply to the component */
|
|
73
|
-
className?: string;
|
|
74
|
-
/** Whether to use a modal for the invoice drawer */
|
|
75
|
-
useModal?: boolean;
|
|
76
|
-
/** Whether to show a shadow around the transactions list */
|
|
77
|
-
shadow?: ShadowType;
|
|
78
|
-
/** A custom class name to apply to the search bar */
|
|
79
|
-
searchBarClassName?: string;
|
|
1981
|
+
type QuotesDisplayOptions = TableDisplayOptions<QuoteColumnKey>;
|
|
1982
|
+
type QuotesBehaviorOptions = TableBehaviorOptions;
|
|
1983
|
+
declare function Quotes({ renderQuote, onQuoteClick, filter, sort, appearance, displayOptions, behaviorOptions, }: {
|
|
1984
|
+
/** Render a custom quote component. Receives the quote as a parameter. */
|
|
1985
|
+
renderQuote?: (quote: Quote$1) => React.ReactNode;
|
|
80
1986
|
/** A function to call when a quote is clicked */
|
|
81
|
-
onQuoteClick?: (quote:
|
|
82
|
-
/**
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
style?: React.CSSProperties;
|
|
86
|
-
/** A filter to apply to the quotes. Docs on filter: https://docs.bunny.com/developer/getting-started/using-filters-in-queries */
|
|
1987
|
+
onQuoteClick?: (quote: Quote$1) => void;
|
|
1988
|
+
/** Filter expression applied server-side, e.g. `"quote.amount is 100"`.
|
|
1989
|
+
* Docs: https://docs.bunny.com/developer/getting-started/using-filters-in-queries
|
|
1990
|
+
*/
|
|
87
1991
|
filter?: string;
|
|
88
|
-
/**
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}):
|
|
1992
|
+
/** Sort clause applied server-side, e.g. `"createdAt DESC"` or `"amount ASC"`. */
|
|
1993
|
+
sort?: string;
|
|
1994
|
+
/** Restyles this component on top of `BunnyProvider`'s `appearance`. See "Styling components" in the package README. */
|
|
1995
|
+
appearance?: Appearance;
|
|
1996
|
+
displayOptions?: QuotesDisplayOptions;
|
|
1997
|
+
behaviorOptions?: QuotesBehaviorOptions;
|
|
1998
|
+
}): react.JSX.Element;
|
|
95
1999
|
|
|
96
2000
|
type Props = {
|
|
97
2001
|
className?: string;
|
|
@@ -102,29 +2006,45 @@ type Props = {
|
|
|
102
2006
|
isProcessingText: string;
|
|
103
2007
|
};
|
|
104
2008
|
};
|
|
105
|
-
declare function CheckoutNoPayment(props?: Props):
|
|
2009
|
+
declare function CheckoutNoPayment(props?: Props): react.JSX.Element;
|
|
2010
|
+
|
|
2011
|
+
declare function NoPaymentPluginsAlert(): react.JSX.Element;
|
|
106
2012
|
|
|
107
2013
|
type PayProps = {
|
|
108
2014
|
disabled?: boolean;
|
|
109
2015
|
onClickPrecondition?: () => boolean | Promise<boolean>;
|
|
110
2016
|
};
|
|
111
|
-
|
|
2017
|
+
/**
|
|
2018
|
+
* Pays (or approves the payment hold) with the selected payment method. A saved method is used as it
|
|
2019
|
+
* is, without changing the account's default. A new one is stored first, in the same click, and
|
|
2020
|
+
* selected once the payment is through or declined, so a retry doesn't store it again. (Selecting it
|
|
2021
|
+
* earlier would close the new method form, and this button with it, mid-payment.)
|
|
2022
|
+
*/
|
|
2023
|
+
declare function Pay(props?: PayProps): react.JSX.Element;
|
|
112
2024
|
|
|
113
|
-
|
|
2025
|
+
/** Closes the new payment method form by going back to the default saved method. Only shown when there is one. */
|
|
2026
|
+
declare function Cancel(): react.JSX.Element | null;
|
|
114
2027
|
|
|
115
2028
|
type SaveButtonTextOverride = {
|
|
116
2029
|
text: string;
|
|
117
2030
|
isProcessingText: string;
|
|
118
2031
|
};
|
|
2032
|
+
/** Stores the payment method entered in the form, then closes the form again. */
|
|
119
2033
|
declare function Save({ onClickPrecondition, buttonTextOverride, }: {
|
|
120
2034
|
onClickPrecondition?: () => boolean | Promise<boolean>;
|
|
121
2035
|
buttonTextOverride?: SaveButtonTextOverride;
|
|
122
|
-
}):
|
|
2036
|
+
}): react.JSX.Element;
|
|
123
2037
|
|
|
124
2038
|
type PaymentMethodDetailsProps = {
|
|
125
2039
|
footer?: ReactNode;
|
|
126
2040
|
};
|
|
127
|
-
|
|
2041
|
+
/**
|
|
2042
|
+
* The new payment method form: plugin tiles when there is more than one plugin, then the selected
|
|
2043
|
+
* plugin's fields, then `footer`, spaced like the rows of Checkout's form. It shows while a new method
|
|
2044
|
+
* is chosen, and straight away without saved methods. With saved methods and no saved method tiles on
|
|
2045
|
+
* screen to choose "New card" in, it shows "Add payment method" until then.
|
|
2046
|
+
*/
|
|
2047
|
+
declare function PaymentMethodDetailsRoot(props?: PaymentMethodDetailsProps): react.JSX.Element | null;
|
|
128
2048
|
declare const PaymentMethodDetails: typeof PaymentMethodDetailsRoot & {
|
|
129
2049
|
Cancel: typeof Cancel;
|
|
130
2050
|
Save: typeof Save;
|
|
@@ -133,11 +2053,17 @@ declare const PaymentMethodDetails: typeof PaymentMethodDetailsRoot & {
|
|
|
133
2053
|
type StoredPaymentMethodsProps = {
|
|
134
2054
|
className?: string;
|
|
135
2055
|
};
|
|
136
|
-
|
|
2056
|
+
/**
|
|
2057
|
+
* The account's saved payment methods as tiles, then "New card", which opens the new payment method
|
|
2058
|
+
* form. When paying, a tile is the method to pay with (the default is preselected; choosing another
|
|
2059
|
+
* pays with it this once and leaves the default alone). When only saving (no invoice or quote), the
|
|
2060
|
+
* tiles are cards to manage. Either way each has a menu to remove it or make it the default.
|
|
2061
|
+
*/
|
|
2062
|
+
declare function StoredPaymentMethods(props?: StoredPaymentMethodsProps): react.JSX.Element | null;
|
|
137
2063
|
|
|
138
2064
|
declare const PaymentForm_PaymentMethodsFragment: gql_tada.TadaDocumentNode<{
|
|
139
2065
|
[$tada.fragmentRefs]: {
|
|
140
|
-
|
|
2066
|
+
SavedPaymentMethodTiles_PaymentMethodFragment: "PaymentMethod";
|
|
141
2067
|
};
|
|
142
2068
|
id: string;
|
|
143
2069
|
plugin: {
|
|
@@ -149,6 +2075,8 @@ declare const PaymentForm_PaymentMethodsFragment: gql_tada.TadaDocumentNode<{
|
|
|
149
2075
|
masked: true;
|
|
150
2076
|
}>;
|
|
151
2077
|
|
|
2078
|
+
type PaymentMethodFragment = ResultOf<typeof PaymentForm_PaymentMethodsFragment>;
|
|
2079
|
+
|
|
152
2080
|
declare const PaymentForm_QuoteFragment: gql_tada.TadaDocumentNode<{
|
|
153
2081
|
id: string | null;
|
|
154
2082
|
currencyId: string;
|
|
@@ -161,7 +2089,6 @@ declare const PaymentForm_QuoteFragment: gql_tada.TadaDocumentNode<{
|
|
|
161
2089
|
masked: true;
|
|
162
2090
|
}>;
|
|
163
2091
|
|
|
164
|
-
type PaymentMethodFragment = ResultOf<typeof PaymentForm_PaymentMethodsFragment>;
|
|
165
2092
|
declare const PaymentForm_InvoiceFragment: gql_tada.TadaDocumentNode<{
|
|
166
2093
|
id: string | null;
|
|
167
2094
|
currencyId: string;
|
|
@@ -191,69 +2118,128 @@ declare function PaymentFormRoot({ currencyId: accountCurrencyId, invoice: maske
|
|
|
191
2118
|
accountId?: string;
|
|
192
2119
|
customCheckoutFunction?: (pluginId: string, paymentMethodId: string) => Promise<any>;
|
|
193
2120
|
children?: ReactNode | ((state: PaymentFormRenderState) => ReactNode);
|
|
194
|
-
}):
|
|
2121
|
+
}): react.JSX.Element | null;
|
|
195
2122
|
type PaymentFormProps = ComponentProps<typeof PaymentFormRoot>;
|
|
196
2123
|
type PaymentFormRenderState = {
|
|
197
2124
|
hasPaymentMethods: boolean;
|
|
2125
|
+
/** The new payment method form is open: "New card" is chosen, or there is no saved method. */
|
|
198
2126
|
isPaymentMethodDetailsOpen: boolean;
|
|
199
2127
|
isPayableAvailable: boolean;
|
|
200
2128
|
amountDue: number | undefined;
|
|
2129
|
+
/** Payment plugins with a payment form (Stripe, DemoPay); undefined until they have loaded. */
|
|
201
2130
|
paymentPluginsCount: number | undefined;
|
|
2131
|
+
/** The saved payment method `Pay` will use, or undefined when a new one is entered. */
|
|
2132
|
+
selectedPaymentMethodId: string | undefined;
|
|
202
2133
|
};
|
|
203
2134
|
declare function PaymentFormInternal(props: PaymentFormProps & {
|
|
204
2135
|
disablePayButton?: boolean;
|
|
205
|
-
}):
|
|
2136
|
+
}): react.JSX.Element;
|
|
206
2137
|
declare const PaymentForm: typeof PaymentFormInternal & {
|
|
207
2138
|
StoredPaymentMethods: typeof StoredPaymentMethods;
|
|
208
2139
|
Pay: typeof Pay;
|
|
209
2140
|
CheckoutNoPayment: typeof CheckoutNoPayment;
|
|
210
2141
|
PaymentMethodDetails: typeof PaymentMethodDetails;
|
|
2142
|
+
NoPaymentPluginsAlert: typeof NoPaymentPluginsAlert;
|
|
211
2143
|
};
|
|
212
2144
|
|
|
213
|
-
|
|
2145
|
+
/** Every value the checkout form can hold. Only `email` is shown by default. */
|
|
2146
|
+
type CheckoutFormValues = {
|
|
2147
|
+
email: string;
|
|
2148
|
+
billingCountry: string;
|
|
2149
|
+
billingZip?: string;
|
|
2150
|
+
/** The payer's name on the card or bank account, Stripe only. Never sent to the API. */
|
|
2151
|
+
nameOnCard?: string;
|
|
214
2152
|
firstName?: string;
|
|
215
2153
|
lastName?: string;
|
|
216
|
-
email?: string;
|
|
217
2154
|
accountName?: string;
|
|
218
|
-
billingCountry?: string;
|
|
219
|
-
billingState?: string;
|
|
220
|
-
billingCity?: string;
|
|
221
|
-
billingZip?: string;
|
|
222
2155
|
billingStreet?: string;
|
|
2156
|
+
billingCity?: string;
|
|
2157
|
+
billingState?: string;
|
|
223
2158
|
taxNumber?: string;
|
|
224
2159
|
};
|
|
225
|
-
|
|
2160
|
+
type CheckoutDefaultValues = Partial<Omit<CheckoutFormValues, 'nameOnCard'>>;
|
|
2161
|
+
/**
|
|
2162
|
+
* Optional fields to show and require. Email is always shown; the taxation plugin can add country,
|
|
2163
|
+
* state or others on top of these (see `resolveCheckoutFields`).
|
|
2164
|
+
*/
|
|
226
2165
|
type RequiredBillingDetailsFlags = {
|
|
227
|
-
|
|
228
|
-
|
|
2166
|
+
firstName?: boolean;
|
|
2167
|
+
lastName?: boolean;
|
|
2168
|
+
accountName?: boolean;
|
|
2169
|
+
billingStreet?: boolean;
|
|
229
2170
|
billingCity?: boolean;
|
|
2171
|
+
billingState?: boolean;
|
|
230
2172
|
billingZip?: boolean;
|
|
231
|
-
billingStreet?: boolean;
|
|
232
2173
|
taxNumber?: boolean;
|
|
233
2174
|
};
|
|
2175
|
+
/** Fields that can be disabled. Same keys as `CheckoutDefaultValues`. */
|
|
2176
|
+
type CheckoutDisabledFields = Partial<Record<keyof CheckoutDefaultValues, boolean>>;
|
|
2177
|
+
/**
|
|
2178
|
+
* Customer-facing form configuration for the Signup and Checkout components.
|
|
2179
|
+
* All options are optional. Add new form options here rather than as new props on the components.
|
|
2180
|
+
*/
|
|
2181
|
+
type CheckoutFormOptions = {
|
|
2182
|
+
/** The default form values */
|
|
2183
|
+
defaultValues?: CheckoutDefaultValues;
|
|
2184
|
+
/** Which optional account fields to show and require */
|
|
2185
|
+
requiredBillingDetails?: RequiredBillingDetailsFlags;
|
|
2186
|
+
/**
|
|
2187
|
+
* Fields the user cannot edit. Provide a default value for each disabled field:
|
|
2188
|
+
* a required disabled field without a value blocks the checkout.
|
|
2189
|
+
*/
|
|
2190
|
+
disabledFields?: CheckoutDisabledFields;
|
|
2191
|
+
};
|
|
2192
|
+
/**
|
|
2193
|
+
* Customer-facing callbacks fired by the Signup and Checkout components during their lifecycle.
|
|
2194
|
+
* All callbacks are optional. Add new events here rather than as new props on the components.
|
|
2195
|
+
*/
|
|
2196
|
+
type CheckoutCallbacks = {
|
|
2197
|
+
/** The subscription was checked out (paid, or free / trial). */
|
|
2198
|
+
onPaymentSuccess?: () => void;
|
|
2199
|
+
};
|
|
234
2200
|
|
|
235
|
-
|
|
2201
|
+
/** The props Signup and Checkout share. */
|
|
2202
|
+
type CheckoutFlowProps = {
|
|
236
2203
|
priceListCode: string;
|
|
237
|
-
/** If trial is allowed on
|
|
2204
|
+
/** If trial is allowed on the price list, enableTrial will enable the trial for this checkout */
|
|
238
2205
|
enableTrial?: boolean;
|
|
239
2206
|
/** A custom style to apply to the component */
|
|
240
2207
|
style?: React.CSSProperties;
|
|
241
|
-
/**
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
2208
|
+
/**
|
|
2209
|
+
* Restyles this screen on top of `BunnyProvider`'s `appearance`: `variables` (colors, font, radius) feed the
|
|
2210
|
+
* default rules, `rules` override them per selector (`.Input`, `.Tab`, `.Button`, ...), and `fonts` are loaded
|
|
2211
|
+
* by the payment fields. The payment provider's fields follow it too. Signup and Checkout take the same prop.
|
|
2212
|
+
* See "Styling components" in the package README.
|
|
2213
|
+
*/
|
|
2214
|
+
appearance?: Appearance;
|
|
2215
|
+
/** Form configuration: default values, optional fields to show and disabled fields */
|
|
2216
|
+
form?: CheckoutFormOptions;
|
|
249
2217
|
/** A default coupon code to pre-apply to the checkout */
|
|
250
2218
|
defaultCouponCode?: string;
|
|
2219
|
+
/** Callbacks fired at key lifecycle events */
|
|
2220
|
+
callbacks?: CheckoutCallbacks;
|
|
251
2221
|
};
|
|
252
|
-
declare function Signup({ priceListCode, enableTrial, style, defaultFormValues, paymentRequiredToAcceptQuote, documentTemplateId, requiredBillingDetails, defaultCouponCode, }: SignupProps): react_jsx_runtime.JSX.Element;
|
|
253
2222
|
|
|
254
|
-
|
|
2223
|
+
type SignupProps = CheckoutFlowProps;
|
|
2224
|
+
/** Self-service signup: creates the account and its first subscription in one click. Needs an API client token with the signup scopes. */
|
|
2225
|
+
declare function Signup({ style, ...props }: SignupProps): react.JSX.Element;
|
|
2226
|
+
|
|
2227
|
+
type CheckoutProps = CheckoutFlowProps & {
|
|
2228
|
+
/** ID of a document template to render the quote with. When set, the quote PDF is shown under the summary. */
|
|
2229
|
+
documentTemplateId?: string;
|
|
2230
|
+
};
|
|
2231
|
+
/** Self-service checkout for an existing account: subscribes it to a price list in one click. Needs a portal session token. */
|
|
2232
|
+
declare function Checkout({ style, form, documentTemplateId, ...props }: CheckoutProps): react.JSX.Element;
|
|
2233
|
+
|
|
2234
|
+
/** @deprecated Use `AppearanceStyle`. */
|
|
2235
|
+
type AppearanceBlockStyle = AppearanceStyle;
|
|
2236
|
+
/** @deprecated Use AppearanceSharedStyle. */
|
|
2237
|
+
type AppearanceRuleStyle = AppearanceSharedStyle;
|
|
2238
|
+
/** @deprecated Use `keyof AppearanceSharedStyle`. */
|
|
2239
|
+
type RuleProperty = RuleProperty$1;
|
|
2240
|
+
|
|
2241
|
+
declare function BunnyProvider({ children, queryClient, apiHost, token, onTokenExpired, onUserUnavailable, onInvalidOrMissingAuthorization, suppressUserUnavailableErrorNotification, disableErrorNotifications, appearance, }: {
|
|
255
2242
|
children: React.ReactNode;
|
|
256
|
-
darkMode?: boolean;
|
|
257
2243
|
queryClient?: QueryClient;
|
|
258
2244
|
apiHost: string;
|
|
259
2245
|
token?: string;
|
|
@@ -262,77 +2248,57 @@ declare function BunnyProvider({ children, darkMode, queryClient, apiHost, token
|
|
|
262
2248
|
onInvalidOrMissingAuthorization?: () => void;
|
|
263
2249
|
suppressUserUnavailableErrorNotification?: boolean;
|
|
264
2250
|
disableErrorNotifications?: boolean;
|
|
265
|
-
|
|
266
|
-
|
|
2251
|
+
/** Restyles every component rendered inside the provider; a component's own `appearance` is merged over it. See "Styling components" in the package README. */
|
|
2252
|
+
appearance?: Appearance;
|
|
2253
|
+
}): react.JSX.Element;
|
|
267
2254
|
|
|
268
2255
|
type TransactionDateType = 'createdAt' | 'issuedAt' | 'dueAt';
|
|
269
2256
|
|
|
270
|
-
|
|
2257
|
+
type TransactionListColumnType = 'date' | 'title' | 'state' | 'amount' | 'download' | 'accountName';
|
|
2258
|
+
|
|
2259
|
+
type TransactionsDisplayOptions = TableDisplayOptions<TransactionListColumnType>;
|
|
2260
|
+
type TransactionsBehaviorOptions = TableBehaviorOptions & {
|
|
2261
|
+
/** The type of date to display for transactions if applicable. Payments will always only show createdAt date. */
|
|
2262
|
+
transactionDateType?: TransactionDateType;
|
|
2263
|
+
/** Whether to hide the payment form on invoices */
|
|
2264
|
+
hidePaymentForm?: boolean;
|
|
2265
|
+
};
|
|
2266
|
+
declare function Transactions({ transactionComponent, onTransactionClick, filter, sort, appearance, displayOptions, behaviorOptions, }: {
|
|
271
2267
|
/** A custom component to render instead of the default invoice component */
|
|
272
|
-
transactionComponent?:
|
|
273
|
-
/** Whether to show the search bar */
|
|
274
|
-
showSearchBar?: boolean;
|
|
275
|
-
/** Whether to show the title */
|
|
276
|
-
showTitle?: boolean;
|
|
277
|
-
/** The title to display in the transactions list */
|
|
278
|
-
title?: string;
|
|
279
|
-
/** The columns to display in the transactions list */
|
|
280
|
-
columns?: TransactionListColumnType[];
|
|
281
|
-
/** A custom class name to apply to the component */
|
|
282
|
-
className?: string;
|
|
283
|
-
/** Whether to use a modal for the invoice drawer */
|
|
284
|
-
useModal?: boolean;
|
|
285
|
-
/** Whether to show a shadow around the transactions list */
|
|
286
|
-
shadow?: ShadowType;
|
|
287
|
-
/** A custom class name to apply to the search bar */
|
|
288
|
-
searchBarClassName?: string;
|
|
2268
|
+
transactionComponent?: react__default.ReactNode;
|
|
289
2269
|
/** A function to call when a transaction is clicked */
|
|
290
2270
|
onTransactionClick?: (transaction: Transaction) => void;
|
|
291
|
-
/**
|
|
292
|
-
|
|
293
|
-
/** The kinds of transactions to show */
|
|
294
|
-
kindsToShow?: TransactionKind[];
|
|
295
|
-
/** A custom style to apply to the component */
|
|
296
|
-
style?: react.CSSProperties;
|
|
297
|
-
/** A filter to apply to the transactions. Docs on filter: https://docs.bunny.com/developer/getting-started/using-filters-in-queries
|
|
298
|
-
* Filtering is applied on the api side, potentially speeding up the transactions query
|
|
2271
|
+
/** Filter expression applied server-side, e.g. `"transaction.amount is 100"`.
|
|
2272
|
+
* Docs: https://docs.bunny.com/developer/getting-started/using-filters-in-queries
|
|
299
2273
|
*/
|
|
300
2274
|
filter?: string;
|
|
301
|
-
/**
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
/** A function to sort the transactions. Runs on the client side. */
|
|
309
|
-
sortTransactions?: (transactionA: Transaction, transactionB: Transaction) => number;
|
|
310
|
-
/** The type of date to display for transactions if applicable. Payments will always only show createdAt date. */
|
|
311
|
-
transactionDateType?: TransactionDateType;
|
|
312
|
-
/** Whether to hide the payment form on invoices */
|
|
313
|
-
hidePaymentForm?: boolean;
|
|
314
|
-
}): react_jsx_runtime.JSX.Element;
|
|
2275
|
+
/** Sort clause applied server-side, e.g. `"createdAt DESC"` or `"amount ASC"`. */
|
|
2276
|
+
sort?: string;
|
|
2277
|
+
/** Restyles this component on top of `BunnyProvider`'s `appearance`. See "Styling components" in the package README. */
|
|
2278
|
+
appearance?: Appearance;
|
|
2279
|
+
displayOptions?: TransactionsDisplayOptions;
|
|
2280
|
+
behaviorOptions?: TransactionsBehaviorOptions;
|
|
2281
|
+
}): react__default.JSX.Element;
|
|
315
2282
|
|
|
316
|
-
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className,
|
|
2283
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, style, appearance, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, onPaymentMethodSaved, onPaymentMethodRemoved, onSubscriptionUpgradeClick, }: {
|
|
317
2284
|
handlePortalErrors?: (errors: any) => void;
|
|
318
2285
|
companyName: string;
|
|
319
2286
|
isInPreviewMode?: boolean;
|
|
320
2287
|
productId?: string;
|
|
321
2288
|
className?: string;
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
};
|
|
2289
|
+
/** A custom style to apply to the component */
|
|
2290
|
+
style?: React.CSSProperties;
|
|
2291
|
+
/** Restyles this component on top of `BunnyProvider`'s `appearance`. See "Styling components" in the package README. */
|
|
2292
|
+
appearance?: Appearance;
|
|
327
2293
|
noSubscriptionsComponent?: React.ReactNode;
|
|
328
2294
|
showInactiveSubscriptions?: boolean;
|
|
329
2295
|
showInactiveSubscriptionsToggle?: boolean;
|
|
330
2296
|
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
331
2297
|
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
332
2298
|
onSubscriptionUpgradeClick?: (subscriptionId: string) => void;
|
|
333
|
-
}) =>
|
|
2299
|
+
}) => react.JSX.Element;
|
|
334
2300
|
|
|
335
|
-
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, onPaymentMethodSaved, onPaymentMethodRemoved, upgradingSubscriptionId, isInPreviewMode, productId, className,
|
|
2301
|
+
declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, onPaymentMethodSaved, onPaymentMethodRemoved, upgradingSubscriptionId, isInPreviewMode, productId, className, style, appearance, defaultBillingPeriod, }: {
|
|
336
2302
|
onChangePlanCancel?: () => void;
|
|
337
2303
|
handlePortalErrors?: (error: any) => void;
|
|
338
2304
|
onPaymentMethodSaved?: (paymentMethodId: string) => void;
|
|
@@ -341,14 +2307,17 @@ declare const UpgradeWrapper: ({ onChangePlanCancel, handlePortalErrors, onPayme
|
|
|
341
2307
|
isInPreviewMode?: boolean;
|
|
342
2308
|
productId?: string | undefined;
|
|
343
2309
|
className?: string;
|
|
344
|
-
|
|
2310
|
+
/** A custom style to apply to the component */
|
|
2311
|
+
style?: React.CSSProperties;
|
|
2312
|
+
/** Restyles this component on top of `BunnyProvider`'s `appearance`. See "Styling components" in the package README. */
|
|
2313
|
+
appearance?: Appearance;
|
|
345
2314
|
/**
|
|
346
2315
|
* If provided and the billing period is available, the billing period selector will default to this value.
|
|
347
2316
|
*/
|
|
348
2317
|
defaultBillingPeriod?: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL";
|
|
349
|
-
}) =>
|
|
2318
|
+
}) => react.JSX.Element | null;
|
|
350
2319
|
|
|
351
|
-
declare const BillingDetails: ({ countryListFilter, hideBillingDetailsForm, hidePaymentMethodForm, isUpgradeFromTrial, style, onSavePaymentMethod, onPaymentMethodRemoved, }: {
|
|
2320
|
+
declare const BillingDetails: ({ countryListFilter, hideBillingDetailsForm, hidePaymentMethodForm, isUpgradeFromTrial, style, className, appearance, onSavePaymentMethod, onPaymentMethodRemoved, }: {
|
|
352
2321
|
countryListFilter?: (country: {
|
|
353
2322
|
value: string;
|
|
354
2323
|
label: string;
|
|
@@ -357,13 +2326,19 @@ declare const BillingDetails: ({ countryListFilter, hideBillingDetailsForm, hide
|
|
|
357
2326
|
hidePaymentMethodForm?: boolean;
|
|
358
2327
|
isUpgradeFromTrial?: boolean;
|
|
359
2328
|
style?: React.CSSProperties;
|
|
2329
|
+
className?: string;
|
|
2330
|
+
/** Restyles this component on top of `BunnyProvider`'s `appearance`. See "Styling components" in the package README. */
|
|
2331
|
+
appearance?: Appearance;
|
|
360
2332
|
onSavePaymentMethod?: (paymentMethodId: string) => void;
|
|
361
2333
|
onPaymentMethodRemoved?: (paymentMethodId: string) => void;
|
|
362
|
-
}) =>
|
|
2334
|
+
}) => react.JSX.Element;
|
|
363
2335
|
|
|
364
|
-
declare const Footer: ({ className }: {
|
|
2336
|
+
declare const Footer: ({ className, style, appearance, }: {
|
|
365
2337
|
className?: string;
|
|
366
|
-
|
|
2338
|
+
style?: CSSProperties;
|
|
2339
|
+
/** Restyles this component on top of `BunnyProvider`'s `appearance`. See "Styling components" in the package README. */
|
|
2340
|
+
appearance?: Appearance;
|
|
2341
|
+
}) => react.JSX.Element;
|
|
367
2342
|
|
|
368
2343
|
declare const MiniCreditCard_PaymentMethodFragment: gql_tada.TadaDocumentNode<{
|
|
369
2344
|
[$tada.fragmentRefs]: {
|
|
@@ -383,6 +2358,12 @@ declare const MiniCreditCard_PaymentMethodFragment: gql_tada.TadaDocumentNode<{
|
|
|
383
2358
|
on: "PaymentMethod";
|
|
384
2359
|
masked: true;
|
|
385
2360
|
}>;
|
|
2361
|
+
/**
|
|
2362
|
+
* A saved payment method as one line: brand, last digits, `Default`/`Failed` tags and a menu.
|
|
2363
|
+
*
|
|
2364
|
+
* @deprecated PaymentForm no longer uses it: saved payment methods are its tiles now. It will be removed
|
|
2365
|
+
* in the next release.
|
|
2366
|
+
*/
|
|
386
2367
|
declare function MiniCreditCard({ className, buttons, hideDropdownMenu, hideDefaultTag, onClickRemove, paymentMethod: maskedPaymentMethod, onClickSetDefault, id, }: {
|
|
387
2368
|
className?: string;
|
|
388
2369
|
buttons?: React.ReactNode;
|
|
@@ -392,6 +2373,7 @@ declare function MiniCreditCard({ className, buttons, hideDropdownMenu, hideDefa
|
|
|
392
2373
|
paymentMethod?: FragmentOf<typeof MiniCreditCard_PaymentMethodFragment>;
|
|
393
2374
|
onClickSetDefault?: () => void;
|
|
394
2375
|
id?: string;
|
|
395
|
-
}):
|
|
2376
|
+
}): react.JSX.Element;
|
|
396
2377
|
|
|
397
|
-
export { BillingDetails, BunnyProvider, Footer, Invoice, MiniCreditCard, PaymentForm, Quote, Quotes, Signup, SubscriptionsWrapper as Subscriptions, Transactions, UpgradeWrapper as Upgrade };
|
|
2378
|
+
export { BillingDetails, BunnyProvider, Checkout, Footer, Invoice, Invoices, MiniCreditCard, PaymentForm, Quote, Quotes, Signup, SubscriptionsWrapper as Subscriptions, Transactions, UpgradeWrapper as Upgrade };
|
|
2379
|
+
export type { Appearance, AppearanceBlockStyle, AppearanceFont, AppearanceRuleStyle, AppearanceRules, AppearanceSharedStyle, AppearanceStyle, AppearanceVariables, CheckoutCallbacks, CheckoutDefaultValues, CheckoutDisabledFields, CheckoutFormOptions, CheckoutProps, FormattedInvoice, RequiredBillingDetailsFlags, RuleProperty, SignupProps };
|