@bunnyapp/components 1.6.0-beta.9.4 → 1.7.0-beta.2
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 +94 -0
- package/dist/cjs/index.js +7603 -5949
- package/dist/cjs/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
- package/dist/cjs/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
- package/dist/cjs/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
- package/dist/cjs/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
- package/dist/cjs/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
- package/dist/cjs/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
- package/dist/cjs/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
- package/dist/cjs/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
- package/dist/cjs/types/src/components/BunnyProvider.d.ts +0 -2
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +19 -3
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +78 -4
- package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +17 -13
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +27 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/components/CardImage.d.ts +14 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +1 -6
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -4
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +7 -16
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +5 -6
- package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -6
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -4
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +4 -5
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentForm/components/PaymentMethodSelector.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/context/OverrideTokenContext.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +32 -0
- package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +16 -0
- package/dist/cjs/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +10 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/useAutoSetDefaultPaymentMethod.d.ts +2 -5
- package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +25 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/useSetDefaultPaymentMethod.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/types/PaymentType.d.ts +5 -0
- package/dist/cjs/types/src/components/Quote/Quote.d.ts +5 -1
- package/dist/cjs/types/src/components/QuoteProvider/QuoteProvider.d.ts +4 -0
- package/dist/cjs/types/src/components/{QuoteProvider.d.ts → QuoteProvider/context/QuoteContext.d.ts} +5 -6
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +53 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +19 -0
- package/dist/{esm/types/src/hooks/quotes → cjs/types/src/components/QuoteProvider/hooks}/useQuoteQuantities.d.ts +4 -7
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/QuoteProvider/queries/getQuote.d.ts +16 -0
- package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
- package/dist/cjs/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
- package/dist/cjs/types/src/components/Quotes/Quotes.d.ts +3 -3
- package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +3 -4
- package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
- package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +2 -6
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +15 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +5 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +33 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +12 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +26 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
- package/dist/cjs/types/src/{graphql → components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +52 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +10 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +19 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +25 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +18 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/queries/getAddonPlans.d.ts +13 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +19 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +23 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +21 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +16 -3
- 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 +12 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +2 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -6
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +14 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeCreate.d.ts +23 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeUpdate.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteSubscriptionUpdate.d.ts +22 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +12 -18
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +3 -11
- 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/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +0 -2
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +11 -0
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -0
- package/dist/cjs/types/src/components/TaxationForm.d.ts +3 -3
- package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +43 -0
- package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +23 -0
- package/dist/cjs/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +7 -0
- package/dist/cjs/types/src/components/priceListPricing/components/PriceTierRow.d.ts +13 -0
- package/dist/cjs/types/src/components/priceListPricing/misc/consts.d.ts +1 -0
- package/dist/cjs/types/src/components/priceListPricing/types/PriceTier.d.ts +4 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +2 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +2 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +13 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getChargeBasePrice.d.ts +8 -0
- package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getFirstTierPrice.d.ts +7 -0
- package/dist/cjs/types/src/contexts/BrandContext.d.ts +11 -2
- package/dist/cjs/types/src/graphql/QuoteRequests.d.ts +0 -5
- package/dist/cjs/types/src/graphql/mutations/quoteChargeDelete.d.ts +11 -2
- package/dist/cjs/types/src/graphql/queries/getBranding.d.ts +7 -2
- package/dist/cjs/types/src/graphql/queries/getCurrentUserData.d.ts +11 -7
- package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +139 -1
- package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
- package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +29 -2
- package/dist/cjs/types/src/graphql-codegen/exportedScalarTypes.d.ts +6 -0
- package/dist/cjs/types/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -1
- package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +1 -0
- package/dist/cjs/types/src/hooks/useCreateQueryClient.d.ts +2 -0
- package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +11 -7
- package/dist/cjs/types/src/hooks/useIsMobile.d.ts +9 -0
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +47 -6
- package/dist/cjs/types/src/hooks/usePaymentPlugins.d.ts +13 -27
- package/dist/cjs/types/src/index.d.ts +2 -2
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +106 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/getAddonsForBillingPeriod.d.ts +8 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +15 -0
- package/dist/cjs/types/src/utils/apiUtils/invokePlugin.d.ts +10 -0
- package/dist/cjs/types/src/utils/chargeUtils.d.ts +5 -2
- package/dist/cjs/types/src/utils/createStateContext.d.ts +11 -0
- package/dist/cjs/types/src/utils/createValueContext.d.ts +14 -0
- package/dist/cjs/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +20 -0
- package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
- package/dist/cjs/types/src/utils/formatCurrency.d.ts +1 -0
- package/dist/cjs/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +12 -0
- package/dist/cjs/types/src/utils/priceListUtils/getPrice.d.ts +11 -0
- package/dist/cjs/types/src/utils/priceListUtils/priceDescription.d.ts +6 -0
- package/dist/cjs/types/src/utils/priceListUtils/priceListPriceText.d.ts +19 -0
- package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +4 -4
- package/dist/esm/index.js +7624 -5970
- package/dist/esm/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
- package/dist/esm/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
- package/dist/esm/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
- package/dist/esm/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +9 -0
- package/dist/esm/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
- package/dist/esm/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
- package/dist/esm/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
- package/dist/esm/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
- package/dist/esm/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
- package/dist/esm/types/src/components/BunnyProvider.d.ts +0 -2
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +19 -3
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +78 -4
- package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/CreditCard.d.ts +17 -13
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/MiniCreditCard.d.ts +27 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/components/CardImage.d.ts +14 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/index.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +1 -6
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +4 -4
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +7 -16
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +5 -6
- package/dist/esm/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +1 -6
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +4 -4
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +4 -5
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/components/CheckoutFooter.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodDetails.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodFooter.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentForm/components/PaymentMethodSelector.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/context/CustomCheckoutFunctionContext.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/context/OverrideTokenContext.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +32 -0
- package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentForm/context/SelectedPluginProvider.d.ts +16 -0
- package/dist/esm/types/src/components/PaymentForm/context/ShowPaymentDetailsContext.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/fragments/PaymentForm_PaymentMethodsFragment.d.ts +10 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/useAutoSetDefaultPaymentMethod.d.ts +2 -5
- package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +25 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentButtonText.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/useRemovePaymentMethod.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/useSetDefaultPaymentMethod.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/types/PaymentType.d.ts +5 -0
- package/dist/esm/types/src/components/Quote/Quote.d.ts +5 -1
- package/dist/esm/types/src/components/QuoteProvider/QuoteProvider.d.ts +4 -0
- package/dist/esm/types/src/components/{QuoteProvider.d.ts → QuoteProvider/context/QuoteContext.d.ts} +5 -6
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +53 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +19 -0
- package/dist/{cjs/types/src/hooks/quotes → esm/types/src/components/QuoteProvider/hooks}/useQuoteQuantities.d.ts +4 -7
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/QuoteProvider/queries/getQuote.d.ts +16 -0
- package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
- package/dist/esm/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
- package/dist/esm/types/src/components/Quotes/Quotes.d.ts +3 -3
- package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +3 -4
- package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
- package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +2 -6
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +15 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +5 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +33 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddons.d.ts +12 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +26 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
- package/dist/esm/types/src/{graphql → components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +52 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +10 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanModal.d.ts +19 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +25 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlans_PlanFragment.d.ts +18 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/queries/getAddonPlans.d.ts +13 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +19 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +23 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +21 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +16 -3
- 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 +12 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardTitle.d.ts +2 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PreviewModeAdvisary.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -6
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts +14 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeCreate.d.ts +23 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteChargeUpdate.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteSubscriptionUpdate.d.ts +22 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +12 -18
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +3 -11
- 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/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +0 -2
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +11 -0
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -0
- package/dist/esm/types/src/components/TaxationForm.d.ts +3 -3
- package/dist/esm/types/src/components/Transactions/Transactions.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +43 -0
- package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +23 -0
- package/dist/esm/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +7 -0
- package/dist/esm/types/src/components/priceListPricing/components/PriceTierRow.d.ts +13 -0
- package/dist/esm/types/src/components/priceListPricing/misc/consts.d.ts +1 -0
- package/dist/esm/types/src/components/priceListPricing/types/PriceTier.d.ts +4 -0
- package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +2 -0
- package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +2 -0
- package/dist/esm/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +13 -0
- package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
- package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getChargeBasePrice.d.ts +8 -0
- package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/getFirstTierPrice.d.ts +7 -0
- package/dist/esm/types/src/contexts/BrandContext.d.ts +11 -2
- package/dist/esm/types/src/graphql/QuoteRequests.d.ts +0 -5
- package/dist/esm/types/src/graphql/mutations/quoteChargeDelete.d.ts +11 -2
- package/dist/esm/types/src/graphql/queries/getBranding.d.ts +7 -2
- package/dist/esm/types/src/graphql/queries/getCurrentUserData.d.ts +11 -7
- package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +139 -1
- package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
- package/dist/esm/types/src/graphql/queries/getQuote.d.ts +29 -2
- package/dist/esm/types/src/graphql-codegen/exportedScalarTypes.d.ts +6 -0
- package/dist/esm/types/src/hooks/quotes/useSendAcceptQuote.d.ts +2 -1
- package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +1 -0
- package/dist/esm/types/src/hooks/useCreateQueryClient.d.ts +2 -0
- package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +11 -7
- package/dist/esm/types/src/hooks/useIsMobile.d.ts +9 -0
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +47 -6
- package/dist/esm/types/src/hooks/usePaymentPlugins.d.ts +13 -27
- package/dist/esm/types/src/index.d.ts +2 -2
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +106 -0
- package/dist/esm/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +5 -0
- package/dist/esm/types/src/utils/addonPlanUtils/getAddonsForBillingPeriod.d.ts +8 -0
- package/dist/esm/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +15 -0
- package/dist/esm/types/src/utils/apiUtils/invokePlugin.d.ts +10 -0
- package/dist/esm/types/src/utils/chargeUtils.d.ts +5 -2
- package/dist/esm/types/src/utils/createStateContext.d.ts +11 -0
- package/dist/esm/types/src/utils/createValueContext.d.ts +14 -0
- package/dist/esm/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +20 -0
- package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
- package/dist/esm/types/src/utils/formatCurrency.d.ts +1 -0
- package/dist/esm/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +12 -0
- package/dist/esm/types/src/utils/priceListUtils/getPrice.d.ts +11 -0
- package/dist/esm/types/src/utils/priceListUtils/priceDescription.d.ts +6 -0
- package/dist/esm/types/src/utils/priceListUtils/priceListPriceText.d.ts +19 -0
- package/dist/esm/types/src/utils/pricePickerUtils.d.ts +4 -4
- package/dist/index.d.ts +33 -13
- package/package.json +3 -3
- package/dist/cjs/types/src/components/PaymentForm/CheckoutFooter.d.ts +0 -13
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/LargCardIcon.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/CreditCard/PlusIcon.d.ts +0 -4
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethodDetails.d.ts +0 -7
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +0 -7
- package/dist/cjs/types/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +0 -6
- package/dist/cjs/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +0 -7
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePaymentMethodSelectorPlugin.d.ts +0 -10
- package/dist/cjs/types/src/components/PaymentForm/useRemovePaymentMethod.d.ts +0 -3
- package/dist/cjs/types/src/components/PaymentForm/useSetDefaultPaymentMethod.d.ts +0 -6
- package/dist/cjs/types/src/components/Subscriptions/QuantityDrawerContainer.d.ts +0 -15
- package/dist/cjs/types/src/components/Subscriptions/TieredDisplayDropdown.d.ts +0 -8
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -10
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +0 -15
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -13
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
- package/dist/cjs/types/src/contexts/PaymentContext.d.ts +0 -10
- package/dist/cjs/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
- package/dist/cjs/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
- package/dist/cjs/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
- package/dist/cjs/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
- package/dist/cjs/types/src/graphql/mutations/quoteChargeUpdate.d.ts +0 -13
- package/dist/cjs/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
- package/dist/cjs/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
- package/dist/cjs/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
- package/dist/cjs/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
- package/dist/cjs/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
- package/dist/cjs/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
- package/dist/cjs/types/src/utils/GraphQLClient.d.ts +0 -2
- package/dist/cjs/types/src/utils/addonPlanUtils.d.ts +0 -7
- package/dist/cjs/types/src/utils/featureAddonUtils.d.ts +0 -6
- package/dist/esm/types/src/components/PaymentForm/CheckoutFooter.d.ts +0 -13
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/LargCardIcon.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/DemoPay/CreditCard/PlusIcon.d.ts +0 -4
- package/dist/esm/types/src/components/PaymentForm/PaymentMethodDetails.d.ts +0 -7
- package/dist/esm/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +0 -7
- package/dist/esm/types/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +0 -6
- package/dist/esm/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +0 -7
- package/dist/esm/types/src/components/PaymentForm/hooks/usePaymentMethodSelectorPlugin.d.ts +0 -10
- package/dist/esm/types/src/components/PaymentForm/useRemovePaymentMethod.d.ts +0 -3
- package/dist/esm/types/src/components/PaymentForm/useSetDefaultPaymentMethod.d.ts +0 -6
- package/dist/esm/types/src/components/Subscriptions/QuantityDrawerContainer.d.ts +0 -15
- package/dist/esm/types/src/components/Subscriptions/TieredDisplayDropdown.d.ts +0 -8
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -10
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +0 -15
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +0 -13
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
- package/dist/esm/types/src/contexts/PaymentContext.d.ts +0 -10
- package/dist/esm/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
- package/dist/esm/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
- package/dist/esm/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
- package/dist/esm/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
- package/dist/esm/types/src/graphql/mutations/quoteChargeUpdate.d.ts +0 -13
- package/dist/esm/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
- package/dist/esm/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
- package/dist/esm/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
- package/dist/esm/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
- package/dist/esm/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
- package/dist/esm/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
- package/dist/esm/types/src/utils/GraphQLClient.d.ts +0 -2
- package/dist/esm/types/src/utils/addonPlanUtils.d.ts +0 -7
- package/dist/esm/types/src/utils/featureAddonUtils.d.ts +0 -6
- /package/dist/cjs/types/src/components/PaymentForm/{CouponEditor.d.ts → components/CouponEditor.d.ts} +0 -0
- /package/dist/cjs/types/src/components/PaymentForm/{PaymentFormTypes.d.ts → types/PaymentFormTypes.d.ts} +0 -0
- /package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
- /package/dist/cjs/types/src/utils/{apiUtils.d.ts → apiUtils/apiUtils.d.ts} +0 -0
- /package/dist/esm/types/src/components/PaymentForm/{CouponEditor.d.ts → components/CouponEditor.d.ts} +0 -0
- /package/dist/esm/types/src/components/PaymentForm/{PaymentFormTypes.d.ts → types/PaymentFormTypes.d.ts} +0 -0
- /package/dist/esm/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
- /package/dist/esm/types/src/utils/{apiUtils.d.ts → apiUtils/apiUtils.d.ts} +0 -0
|
@@ -2,5 +2,143 @@ declare const getFormattedQuote: ({ token, apiHost, id, }: {
|
|
|
2
2
|
apiHost: string;
|
|
3
3
|
token?: string;
|
|
4
4
|
id?: string;
|
|
5
|
-
}) => Promise<
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
quote: {
|
|
7
|
+
documentTemplateId: string | null;
|
|
8
|
+
documents: {
|
|
9
|
+
id: string;
|
|
10
|
+
filename: string;
|
|
11
|
+
size: string;
|
|
12
|
+
date: unknown;
|
|
13
|
+
url: string;
|
|
14
|
+
}[] | null;
|
|
15
|
+
firstInvoice: {
|
|
16
|
+
id: string | null;
|
|
17
|
+
state: "FAILED" | "DRAFT" | "NOT_DUE" | "DUE" | "UNPAID" | "PAID" | "VOIDED" | "READY" | "PREPARING" | "PROCESSING_PAYMENT" | "MERGED" | "QUEUED" | "CONSOLIDATED";
|
|
18
|
+
} | null;
|
|
19
|
+
payableId: string | null;
|
|
20
|
+
id: string | null;
|
|
21
|
+
payToAccept: boolean | null;
|
|
22
|
+
currentPaymentHold: {
|
|
23
|
+
createdAt: unknown;
|
|
24
|
+
expiresAt: unknown;
|
|
25
|
+
id: string | null;
|
|
26
|
+
updatedAt: unknown;
|
|
27
|
+
paymentMethod: {
|
|
28
|
+
accountId: string | null;
|
|
29
|
+
createdAt: unknown;
|
|
30
|
+
expirationDate: unknown;
|
|
31
|
+
failureCode: string | null;
|
|
32
|
+
id: string;
|
|
33
|
+
isDefault: boolean | null;
|
|
34
|
+
lastSuccess: unknown;
|
|
35
|
+
paymentType: "ach" | "card" | "other" | "wire" | null;
|
|
36
|
+
pluginId: string | null;
|
|
37
|
+
state: "UNKNOWN" | "SUCCESS" | "FAILED" | null;
|
|
38
|
+
updatedAt: unknown;
|
|
39
|
+
metadata: {
|
|
40
|
+
description: string | null;
|
|
41
|
+
expiration: unknown;
|
|
42
|
+
icon: string | null;
|
|
43
|
+
identifier: string | null;
|
|
44
|
+
issuer: string | null;
|
|
45
|
+
kind: string | null;
|
|
46
|
+
} | null;
|
|
47
|
+
} | null;
|
|
48
|
+
} | null;
|
|
49
|
+
};
|
|
50
|
+
payableId: string | null;
|
|
51
|
+
acceptedAt: unknown;
|
|
52
|
+
acceptedByName: string | null;
|
|
53
|
+
amount: number;
|
|
54
|
+
amountDue: number;
|
|
55
|
+
amountsByPeriod: {
|
|
56
|
+
id: string | null;
|
|
57
|
+
name: string | null;
|
|
58
|
+
amount: number | null;
|
|
59
|
+
}[];
|
|
60
|
+
billingCity: string | null;
|
|
61
|
+
billingCountry: string | null;
|
|
62
|
+
billingState: string | null;
|
|
63
|
+
billingStreet: string | null;
|
|
64
|
+
billingZip: string | null;
|
|
65
|
+
contactName: string | null;
|
|
66
|
+
currency: string | null;
|
|
67
|
+
customerBillingCity: string | null;
|
|
68
|
+
customerBillingCountry: string | null;
|
|
69
|
+
customerBillingState: string | null;
|
|
70
|
+
customerBillingStreet: string | null;
|
|
71
|
+
customerBillingZip: string | null;
|
|
72
|
+
customerName: string | null;
|
|
73
|
+
discount: number;
|
|
74
|
+
discountValue: number;
|
|
75
|
+
duration: string | null;
|
|
76
|
+
endDate: unknown;
|
|
77
|
+
expiresAt: unknown;
|
|
78
|
+
html: string | null;
|
|
79
|
+
formattedLines: {
|
|
80
|
+
amount: number;
|
|
81
|
+
amountsByPeriod: {
|
|
82
|
+
quantity: number | null;
|
|
83
|
+
id: string | null;
|
|
84
|
+
name: string | null;
|
|
85
|
+
startDate: unknown;
|
|
86
|
+
endDate: unknown;
|
|
87
|
+
amount: number | null;
|
|
88
|
+
amountsByTier: {
|
|
89
|
+
id: string | null;
|
|
90
|
+
tier: {
|
|
91
|
+
starts: number | null;
|
|
92
|
+
ends: number | null;
|
|
93
|
+
price: number | null;
|
|
94
|
+
} | null;
|
|
95
|
+
quantity: number | null;
|
|
96
|
+
amount: number | null;
|
|
97
|
+
}[] | null;
|
|
98
|
+
prorationRate: number | null;
|
|
99
|
+
}[];
|
|
100
|
+
billingPeriodEnd: string | null;
|
|
101
|
+
billingPeriodStart: string | null;
|
|
102
|
+
chargeType: string;
|
|
103
|
+
discount: number | null;
|
|
104
|
+
frequency: string;
|
|
105
|
+
isRamp: boolean;
|
|
106
|
+
periods: number;
|
|
107
|
+
planName: string;
|
|
108
|
+
position: number;
|
|
109
|
+
price: number | null;
|
|
110
|
+
priceDecimals: number | null;
|
|
111
|
+
priceListChargeId: string | null;
|
|
112
|
+
priceListChargeName: string | null;
|
|
113
|
+
priceListId: string;
|
|
114
|
+
priceListName: string | null;
|
|
115
|
+
priceTiers: {
|
|
116
|
+
price: number | null;
|
|
117
|
+
starts: number;
|
|
118
|
+
}[] | null;
|
|
119
|
+
pricingModel: string;
|
|
120
|
+
productName: string;
|
|
121
|
+
prorationRate: number | null;
|
|
122
|
+
quantity: number | null;
|
|
123
|
+
showProductNameOnLineItem: boolean;
|
|
124
|
+
taxCode: string | null;
|
|
125
|
+
trialEndDate: unknown;
|
|
126
|
+
trialStartDate: unknown;
|
|
127
|
+
unitOfMeasure: string;
|
|
128
|
+
vatCode: string | null;
|
|
129
|
+
}[];
|
|
130
|
+
netPaymentDays: number | null;
|
|
131
|
+
notes: string | null;
|
|
132
|
+
number: string | null;
|
|
133
|
+
poNumberRequired: boolean | null;
|
|
134
|
+
salesContactEmail: string | null;
|
|
135
|
+
sharedAt: unknown;
|
|
136
|
+
startDate: unknown;
|
|
137
|
+
state: "DRAFT" | "SHARED" | "VIEWED" | "ACCEPTED" | "IN_APPROVAL" | "APPROVED" | "REJECTED" | "UNDONE";
|
|
138
|
+
subtotal: number;
|
|
139
|
+
taxAmount: number;
|
|
140
|
+
taxNumberLabel: string | null;
|
|
141
|
+
taxNumberRequired: boolean | null;
|
|
142
|
+
vendorName: string | null;
|
|
143
|
+
}>;
|
|
6
144
|
export default getFormattedQuote;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PriceListChangeOptions
|
|
2
|
-
declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode,
|
|
1
|
+
import { PriceListChangeOptions } from '@bunnyapp/common';
|
|
2
|
+
declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, token, subscriptionId, productId, }: {
|
|
3
3
|
apiHost: string;
|
|
4
4
|
isInPreviewMode?: boolean;
|
|
5
|
-
productId?: string;
|
|
6
5
|
token?: string;
|
|
7
|
-
|
|
6
|
+
subscriptionId?: string;
|
|
7
|
+
productId?: string;
|
|
8
8
|
}) => Promise<PriceListChangeOptions>;
|
|
9
9
|
export default getPriceListChangeOptions;
|
|
@@ -1,9 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResultOf } from 'gql.tada';
|
|
2
2
|
export declare const QUOTE_FIELDS: (removeFormattedQuoteField?: boolean) => string;
|
|
3
|
+
declare const query: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
quote: {
|
|
5
|
+
[$tada.fragmentRefs]: {
|
|
6
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
7
|
+
};
|
|
8
|
+
} | {
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
11
|
+
} & {
|
|
12
|
+
FormattedQuoteField_QuoteFragment: "Quote";
|
|
13
|
+
};
|
|
14
|
+
} | null;
|
|
15
|
+
}, {
|
|
16
|
+
removeFormattedQuoteField: boolean;
|
|
17
|
+
id?: string | null | undefined;
|
|
18
|
+
}, void>;
|
|
19
|
+
export type Quote = ResultOf<typeof query>['quote'];
|
|
3
20
|
declare const getQuote: ({ id, token, apiHost, removeFormattedQuoteField, }: {
|
|
4
21
|
id: string;
|
|
5
22
|
token?: string;
|
|
6
23
|
apiHost: string;
|
|
7
24
|
removeFormattedQuoteField?: boolean;
|
|
8
|
-
}) => Promise<
|
|
25
|
+
}) => Promise<{
|
|
26
|
+
[$tada.fragmentRefs]: {
|
|
27
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
28
|
+
};
|
|
29
|
+
} | {
|
|
30
|
+
[$tada.fragmentRefs]: {
|
|
31
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
32
|
+
} & {
|
|
33
|
+
FormattedQuoteField_QuoteFragment: "Quote";
|
|
34
|
+
};
|
|
35
|
+
} | null>;
|
|
9
36
|
export default getQuote;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { graphql } from './graphql';
|
|
2
|
+
export type QuoteChangeKind = ReturnType<typeof graphql.scalar<'QuoteChangeKind'>>;
|
|
3
|
+
export type PricingModel = ReturnType<typeof graphql.scalar<'PricingModel'>>;
|
|
4
|
+
export type BillingPeriod = ReturnType<typeof graphql.scalar<'BillingPeriod'>>;
|
|
5
|
+
export type PlanPricingStyles = ReturnType<typeof graphql.scalar<'PlanPricingStyles'>>;
|
|
6
|
+
export type ChargeType = ReturnType<typeof graphql.scalar<'ChargeType'>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
declare const useSendAcceptQuote: ({ quoteId, apiHost, token, }: {
|
|
1
|
+
declare const useSendAcceptQuote: ({ quoteId, apiHost, token, onQuoteAccepted, }: {
|
|
2
2
|
quoteId?: string;
|
|
3
3
|
apiHost: string;
|
|
4
4
|
token?: string;
|
|
5
|
+
onQuoteAccepted?: () => void;
|
|
5
6
|
}) => {
|
|
6
7
|
acceptBoxVisible: boolean;
|
|
7
8
|
isAccepting: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAllErrorFormats: () => (error: any, mutationName?: string) => any;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { currentUser as CurrentUser } from '@bunnyapp/common';
|
|
2
2
|
declare const useCurrentUserData: (token: string | undefined) => {
|
|
3
3
|
currentUser: {
|
|
4
|
-
authObjectName:
|
|
5
|
-
account:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
authObjectName: string | null;
|
|
5
|
+
account: {
|
|
6
|
+
billingCountry: string | null;
|
|
7
|
+
currencyId: string | null;
|
|
8
|
+
id: string;
|
|
9
|
+
} | null;
|
|
10
|
+
companyName: string | null | undefined;
|
|
11
|
+
returnUrl: string | null | undefined;
|
|
12
|
+
privacyUrl: string | null;
|
|
13
|
+
termsUrl: string | null;
|
|
14
|
+
entityId: string | null;
|
|
11
15
|
} | CurrentUser;
|
|
12
16
|
isCurrentUserDataLoading: boolean;
|
|
13
17
|
};
|
|
@@ -1,11 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const usePaymentMethod: ({ accountId, token, apiHost, enabled, }: {
|
|
1
|
+
export declare const usePaymentMethod: ({ accountId, enabled, }: {
|
|
3
2
|
accountId?: string;
|
|
4
|
-
token?: string;
|
|
5
|
-
apiHost: string;
|
|
6
3
|
enabled?: boolean;
|
|
7
4
|
}) => {
|
|
8
|
-
paymentMethods:
|
|
9
|
-
|
|
5
|
+
paymentMethods: {
|
|
6
|
+
id: string;
|
|
7
|
+
pluginId: string | null;
|
|
8
|
+
accountId: string | null;
|
|
9
|
+
expirationDate: unknown;
|
|
10
|
+
plugin: {
|
|
11
|
+
guid: string;
|
|
12
|
+
id: string;
|
|
13
|
+
} | null;
|
|
14
|
+
state: "UNKNOWN" | "SUCCESS" | "FAILED" | null;
|
|
15
|
+
metadata: {
|
|
16
|
+
issuer: string | null;
|
|
17
|
+
identifier: string | null;
|
|
18
|
+
kind: string | null;
|
|
19
|
+
description: string | null;
|
|
20
|
+
icon: string | null;
|
|
21
|
+
type: string | null;
|
|
22
|
+
} | null;
|
|
23
|
+
isDefault: boolean | null;
|
|
24
|
+
[$tada.fragmentRefs]: {
|
|
25
|
+
PaymentForm_PaymentMethodsFragment: "PaymentMethod";
|
|
26
|
+
};
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
defaultPaymentMethod: {
|
|
29
|
+
id: string;
|
|
30
|
+
pluginId: string | null;
|
|
31
|
+
accountId: string | null;
|
|
32
|
+
expirationDate: unknown;
|
|
33
|
+
plugin: {
|
|
34
|
+
guid: string;
|
|
35
|
+
id: string;
|
|
36
|
+
} | null;
|
|
37
|
+
state: "UNKNOWN" | "SUCCESS" | "FAILED" | null;
|
|
38
|
+
metadata: {
|
|
39
|
+
issuer: string | null;
|
|
40
|
+
identifier: string | null;
|
|
41
|
+
kind: string | null;
|
|
42
|
+
description: string | null;
|
|
43
|
+
icon: string | null;
|
|
44
|
+
type: string | null;
|
|
45
|
+
} | null;
|
|
46
|
+
isDefault: boolean | null;
|
|
47
|
+
[$tada.fragmentRefs]: {
|
|
48
|
+
PaymentForm_PaymentMethodsFragment: "PaymentMethod";
|
|
49
|
+
};
|
|
50
|
+
} | undefined;
|
|
10
51
|
isLoading: boolean;
|
|
11
52
|
};
|
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
scenarios: string[];
|
|
15
|
-
}[];
|
|
16
|
-
backend: {
|
|
17
|
-
name: string;
|
|
18
|
-
access: string[];
|
|
19
|
-
}[];
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export declare const usePaymentPlugins: ({ apiHost, token, accountId, }: {
|
|
23
|
-
apiHost: string;
|
|
24
|
-
token?: string;
|
|
25
|
-
accountId?: string;
|
|
26
|
-
}) => {
|
|
27
|
-
paymentPlugins: PaymentPlugin[];
|
|
1
|
+
export declare const usePaymentPlugins: (accountId: string | undefined) => {
|
|
2
|
+
paymentPlugins: {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
entities: string[];
|
|
5
|
+
guid: string;
|
|
6
|
+
hidden: boolean;
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
status: string;
|
|
10
|
+
type: string;
|
|
11
|
+
webhookEnabled: boolean;
|
|
12
|
+
components: unknown;
|
|
13
|
+
}[];
|
|
28
14
|
isFetched: boolean;
|
|
29
15
|
};
|
|
30
16
|
export default usePaymentPlugins;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export * from
|
|
1
|
+
import './styles/index.less';
|
|
2
|
+
export * from './components';
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export declare const CHILD_SEARCH_CACHE_KEY = "childSearch";
|
|
2
|
+
export declare const SEARCH_CACHE_KEY = "search";
|
|
3
|
+
interface AccountPaymentMethodKeyParams {
|
|
4
|
+
accountId?: string;
|
|
5
|
+
entityId?: string;
|
|
6
|
+
token?: string;
|
|
7
|
+
}
|
|
8
|
+
interface BillingDetailsKeyParams {
|
|
9
|
+
entityId?: string;
|
|
10
|
+
token?: string;
|
|
11
|
+
}
|
|
12
|
+
interface AccountBillingDetailsKeyParams {
|
|
13
|
+
accountId?: string;
|
|
14
|
+
token?: string;
|
|
15
|
+
}
|
|
16
|
+
interface AccountContactsKeyParams {
|
|
17
|
+
accountId?: string;
|
|
18
|
+
token?: string;
|
|
19
|
+
}
|
|
20
|
+
interface CalculatedPricesKeyParams {
|
|
21
|
+
priceListId?: string;
|
|
22
|
+
quantity?: number;
|
|
23
|
+
token?: string;
|
|
24
|
+
}
|
|
25
|
+
interface EventsKeyParams {
|
|
26
|
+
entityId: string;
|
|
27
|
+
pluralType: string;
|
|
28
|
+
token?: string;
|
|
29
|
+
}
|
|
30
|
+
interface ObjectKeyParams {
|
|
31
|
+
id?: string;
|
|
32
|
+
objectName: string;
|
|
33
|
+
token?: string;
|
|
34
|
+
}
|
|
35
|
+
interface TableKeyParams {
|
|
36
|
+
filterString?: string;
|
|
37
|
+
pluralType: string;
|
|
38
|
+
token?: string;
|
|
39
|
+
}
|
|
40
|
+
interface FormattedInvoiceKeyParams {
|
|
41
|
+
id?: string;
|
|
42
|
+
token?: string;
|
|
43
|
+
}
|
|
44
|
+
interface InvoiceKeyParams {
|
|
45
|
+
id?: string;
|
|
46
|
+
token?: string;
|
|
47
|
+
}
|
|
48
|
+
interface PlanChangeOptionsKeyParams {
|
|
49
|
+
subscriptionId?: string | null;
|
|
50
|
+
productId?: string | null;
|
|
51
|
+
token?: string;
|
|
52
|
+
}
|
|
53
|
+
interface PortalPreviewDataKeyParams {
|
|
54
|
+
productId?: string | null;
|
|
55
|
+
token?: string;
|
|
56
|
+
}
|
|
57
|
+
interface QuoteKeyParams {
|
|
58
|
+
id?: string;
|
|
59
|
+
token?: string;
|
|
60
|
+
}
|
|
61
|
+
interface QuoteTaxCalculateKeyParams {
|
|
62
|
+
id?: string;
|
|
63
|
+
token?: string;
|
|
64
|
+
}
|
|
65
|
+
interface TaxationRequiredAccountFieldsKeyParams {
|
|
66
|
+
entityId?: string;
|
|
67
|
+
token?: string;
|
|
68
|
+
}
|
|
69
|
+
interface TransactionsKeyParams {
|
|
70
|
+
filter?: string;
|
|
71
|
+
token?: string;
|
|
72
|
+
}
|
|
73
|
+
declare const QueryKeyFactory: {
|
|
74
|
+
accountPaymentMethodsKey: ({ accountId, entityId, token }: AccountPaymentMethodKeyParams) => string[];
|
|
75
|
+
billingDetailsKey: ({ entityId, token }: BillingDetailsKeyParams) => string[];
|
|
76
|
+
accountBillingDetailsKey: ({ accountId, token }: AccountBillingDetailsKeyParams) => string[];
|
|
77
|
+
accountContactsKey: ({ accountId, token }: AccountContactsKeyParams) => string[];
|
|
78
|
+
brandingKey: (token?: string) => string[];
|
|
79
|
+
calculatedPricesKey: ({ priceListId, quantity, token }: CalculatedPricesKeyParams) => (string | number)[];
|
|
80
|
+
createEventsKey: ({ entityId, pluralType, token }: EventsKeyParams) => string[];
|
|
81
|
+
createFormattedInvoiceKey: ({ id, token }: FormattedInvoiceKeyParams) => (string | undefined)[];
|
|
82
|
+
createInvoiceKey: ({ id, token }: InvoiceKeyParams) => (string | undefined)[];
|
|
83
|
+
createObjectKey: ({ id, objectName, token }: ObjectKeyParams) => string[];
|
|
84
|
+
createQuoteKey: ({ id, token }: QuoteKeyParams) => (string | undefined)[];
|
|
85
|
+
createQuoteTaxCalculateKey: ({ id, token }: QuoteTaxCalculateKeyParams) => string[];
|
|
86
|
+
createTableKey: ({ filterString, pluralType, token }: TableKeyParams) => (string | undefined)[];
|
|
87
|
+
currentUserKey: (token?: string) => string[];
|
|
88
|
+
editingQuoteKey: (token?: string) => string[];
|
|
89
|
+
finixAchKey: (token?: string) => string[];
|
|
90
|
+
finixKey: (token?: string) => string[];
|
|
91
|
+
planChangeOptionsKey: ({ subscriptionId, productId, token }: PlanChangeOptionsKeyParams) => string[];
|
|
92
|
+
pluginsKey: (token?: string) => string[];
|
|
93
|
+
portalPreviewDataKey: ({ productId, token }: PortalPreviewDataKeyParams) => string[];
|
|
94
|
+
taxationRequiredAccountFieldsKey: ({ entityId, token, }: TaxationRequiredAccountFieldsKeyParams) => string[];
|
|
95
|
+
transactionsKey: ({ filter, token }: TransactionsKeyParams) => string[];
|
|
96
|
+
availableAddonPlansKey: ({ priceListId, token, }: {
|
|
97
|
+
priceListId: string | undefined;
|
|
98
|
+
token?: string;
|
|
99
|
+
}) => (string | undefined)[];
|
|
100
|
+
addonPlansKey: ({ priceListId, token }: {
|
|
101
|
+
priceListId: string;
|
|
102
|
+
token?: string;
|
|
103
|
+
}) => string[];
|
|
104
|
+
paymentPluginsKey: (token?: string) => string[];
|
|
105
|
+
};
|
|
106
|
+
export default QueryKeyFactory;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Subscription } from '@bunnyapp/common';
|
|
2
|
+
export declare const ADDON_INDENTATION = 64;
|
|
3
|
+
export declare function findNonAddonSubscriptions(subscriptions: Subscription[]): Subscription[];
|
|
4
|
+
export declare function findAddonSubscriptions(parentSubscription: Subscription, subscriptions: Subscription[]): Subscription[];
|
|
5
|
+
export declare function addonPlanSwitchTestId(planName: string): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
+
type PriceListFragment = {
|
|
3
|
+
periodMonths: number | null | undefined;
|
|
4
|
+
};
|
|
5
|
+
export declare function getAddonsForBillingPeriod<TPlan extends {
|
|
6
|
+
priceLists: readonly (PriceListFragment & Record<string, any>)[];
|
|
7
|
+
}>(billingPeriod: BillingPeriod, addonPlans: TPlan[]): TPlan['priceLists'][number][];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
+
import { Subscription } from '@bunnyapp/common';
|
|
3
|
+
import { FragmentOf } from 'gql.tada';
|
|
4
|
+
export declare const hasUnpurchasedAddonPriceLists_PlanFragment: import("gql.tada").TadaDocumentNode<{
|
|
5
|
+
priceLists: {
|
|
6
|
+
id: string;
|
|
7
|
+
isVisible: boolean | null;
|
|
8
|
+
periodMonths: number | null;
|
|
9
|
+
}[];
|
|
10
|
+
}, {}, {
|
|
11
|
+
fragment: "hasUnpurchasedAddonPriceLists_PlanFragment";
|
|
12
|
+
on: "Plan";
|
|
13
|
+
masked: true;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function hasUnpurchasedAddonPriceLists(maskedPriceListAddonPlans: FragmentOf<typeof hasUnpurchasedAddonPriceLists_PlanFragment>[], currentSubscription: Subscription | undefined, billingPeriod: BillingPeriod): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PluginData } from '@bunnyapp/common';
|
|
2
|
+
export declare const invokePlugin: ({ method, payload, plugin, token, apiHost, componentsVersion, }: {
|
|
3
|
+
method: string;
|
|
4
|
+
payload?: Record<string, any>;
|
|
5
|
+
plugin: PluginData;
|
|
6
|
+
token?: string;
|
|
7
|
+
apiHost: string;
|
|
8
|
+
componentsVersion?: string;
|
|
9
|
+
}) => Promise<any>;
|
|
10
|
+
export default invokePlugin;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function canEditChargeQuantity(charge:
|
|
1
|
+
import { ChargeType, PricingModel } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
+
export declare function canEditChargeQuantity(charge: {
|
|
3
|
+
chargeType: ChargeType | null;
|
|
4
|
+
pricingModel: PricingModel | null;
|
|
5
|
+
} | null): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a context and provider for a state value
|
|
4
|
+
* @param useValue - A function that returns the state value
|
|
5
|
+
* @returns A tuple containing the provider and the context value
|
|
6
|
+
* @example take a look at how this is used in the quoteIdContext in the QuantityDrawer
|
|
7
|
+
*/
|
|
8
|
+
export declare const createStateContext: <Value, State>(useValue: (init?: Value) => State) => readonly [({ initialValue, children, }: {
|
|
9
|
+
initialValue?: Value;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element, () => State & ({} | undefined)];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a context and provider for a value
|
|
4
|
+
* Unlike createStateContext, this accepts a value prop directly that can be updated
|
|
5
|
+
* @returns A tuple containing the provider and the context hook
|
|
6
|
+
* @example
|
|
7
|
+
* const [ValueProvider, useValue] = createValueContext<string>();
|
|
8
|
+
* // Usage: ValueProvider with value prop that updates when changed
|
|
9
|
+
* // In a child component: const value = useValue();
|
|
10
|
+
*/
|
|
11
|
+
export declare const createValueContext: <Value>() => readonly [({ value, children }: {
|
|
12
|
+
value: Value;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element, () => Value & ({} | undefined)];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PriceList, Quote, Subscription } from '@bunnyapp/common';
|
|
2
|
+
export declare function hasUnpurchasedFeatureAddons(priceList: PriceList, currentSubscription: Subscription | undefined): boolean;
|
|
3
|
+
export declare function findQuoteChangeForFeatureAddon(quote: Quote): import("@bunnyapp/common").QuoteChange | undefined;
|
|
4
|
+
export declare function featureAddonInQuote(selectedPriceList: {
|
|
5
|
+
id: string;
|
|
6
|
+
}, priceListCharge: {
|
|
7
|
+
id: string;
|
|
8
|
+
}, quote?: {
|
|
9
|
+
quoteChanges?: {
|
|
10
|
+
priceList?: {
|
|
11
|
+
id?: string;
|
|
12
|
+
} | null;
|
|
13
|
+
charges?: {
|
|
14
|
+
priceListCharge?: {
|
|
15
|
+
id?: string;
|
|
16
|
+
} | null;
|
|
17
|
+
}[];
|
|
18
|
+
}[] | null;
|
|
19
|
+
} | null): boolean;
|
|
20
|
+
export declare function featureAddonSwitchTestId(addonName: string): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const isAddonPurchased_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
id: string;
|
|
4
|
+
featureAddon: boolean | null;
|
|
5
|
+
}, {}, {
|
|
6
|
+
fragment: "isAddonPurchased_PriceListChargeFragment";
|
|
7
|
+
on: "PriceListCharge";
|
|
8
|
+
masked: true;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const isAddonPurchased_SubscriptionChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
11
|
+
id: string;
|
|
12
|
+
charges: {
|
|
13
|
+
id: string | null;
|
|
14
|
+
priceListCharge: {
|
|
15
|
+
id: string;
|
|
16
|
+
featureAddon: boolean | null;
|
|
17
|
+
} | null;
|
|
18
|
+
}[] | null;
|
|
19
|
+
}, {}, {
|
|
20
|
+
fragment: "isAddonPurchased_SubscriptionChargeFragment";
|
|
21
|
+
on: "Subscription";
|
|
22
|
+
masked: true;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function isAddonPurchased(maskedFeatureAddon: FragmentOf<typeof isAddonPurchased_PriceListChargeFragment>, maskedCurrentSubscription: FragmentOf<typeof isAddonPurchased_SubscriptionChargeFragment>): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatCurrency: (value: number | string | null | undefined, currencyIsoCode: string | undefined, decimals?: number) => string | number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const DoesPriceListHaveFlatFeeCharges_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
charges: {
|
|
4
|
+
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
5
|
+
basePrice: number;
|
|
6
|
+
}[] | null;
|
|
7
|
+
}, {}, {
|
|
8
|
+
fragment: "DoesPriceListHaveFlatFeeCharges_PriceListFragment";
|
|
9
|
+
on: "PriceList";
|
|
10
|
+
masked: true;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function doesPriceListHaveFlatFeeCharges(maskedPriceList: FragmentOf<typeof DoesPriceListHaveFlatFeeCharges_PriceListFragment>): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const GetPrice_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
showPriceAsMonthly: boolean | null;
|
|
4
|
+
monthlyBasePrice: number | null;
|
|
5
|
+
basePrice: number | null;
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "GetPrice_PriceListFragment";
|
|
8
|
+
on: "PriceList";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function getPrice(maskedPriceList: FragmentOf<typeof GetPrice_PriceListFragment>): number | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function priceDescriptionString({ unitName, showPriceAsMonthly, periodMonths, priceListHasFlatFeeCharges, }: {
|
|
2
|
+
unitName?: string | null;
|
|
3
|
+
showPriceAsMonthly: boolean | null;
|
|
4
|
+
periodMonths: number | null;
|
|
5
|
+
priceListHasFlatFeeCharges: boolean;
|
|
6
|
+
}): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PriceListPriceText_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
id: string;
|
|
4
|
+
plan: {
|
|
5
|
+
id: string;
|
|
6
|
+
pricingStyle: "PRICED" | "FREE" | "CONTACT_US";
|
|
7
|
+
} | null;
|
|
8
|
+
currencyId: string;
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
GetPrice_PriceListFragment: "PriceList";
|
|
11
|
+
};
|
|
12
|
+
}, {}, {
|
|
13
|
+
fragment: "PriceListPriceText_PriceListFragment";
|
|
14
|
+
on: "PriceList";
|
|
15
|
+
masked: true;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function priceListPriceText({ priceList: maskedPriceList, }: {
|
|
18
|
+
priceList: FragmentOf<typeof PriceListPriceText_PriceListFragment>;
|
|
19
|
+
}): string | number;
|