@bunnyapp/components 1.6.0-beta.2 → 1.6.0-beta.20
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 +113 -0
- package/dist/cjs/index.js +7044 -5720
- package/dist/cjs/types/src/components/BunnyProvider.d.ts +0 -2
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +18 -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/FeatureUsageGraph.d.ts +4 -3
- 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 +31 -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 +24 -0
- package/dist/cjs/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -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/{esm/types/src/components/QuoteProvider.d.ts → cjs/types/src/components/QuoteProvider/context/QuoteContext.d.ts} +4 -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 +46 -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/mutations/quoteChangeUpdate.d.ts +16 -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/Signup/PaymentForms.d.ts +3 -4
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
- package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +0 -4
- 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/CheckoutPrice.d.ts +1 -1
- 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/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 +24 -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/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/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/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/quoteSubscriptionUpdate.d.ts +22 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -8
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +3 -18
- 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/SubscriptionChargeTotal.d.ts +3 -3
- 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/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +9 -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/enums/SubscriptionState.d.ts +9 -0
- 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/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/hooks/useToggleAddonQuoteChange.d.ts +1 -1
- package/dist/cjs/types/src/index.d.ts +2 -2
- package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +39 -0
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +96 -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 +7052 -5728
- package/dist/esm/types/src/components/BunnyProvider.d.ts +0 -2
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +18 -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/FeatureUsageGraph.d.ts +4 -3
- 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 +31 -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 +24 -0
- package/dist/esm/types/src/components/PaymentForm/hooks/usePayableCurrency.d.ts +6 -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/{cjs/types/src/components/QuoteProvider.d.ts → esm/types/src/components/QuoteProvider/context/QuoteContext.d.ts} +4 -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 +46 -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/mutations/quoteChangeUpdate.d.ts +16 -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/Signup/PaymentForms.d.ts +3 -4
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
- package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +0 -4
- 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/CheckoutPrice.d.ts +1 -1
- 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/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 +24 -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/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/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/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/quoteSubscriptionUpdate.d.ts +22 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -8
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{QuantityInput.d.ts → quantityInput/QuantityInput.d.ts} +3 -18
- 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/SubscriptionChargeTotal.d.ts +3 -3
- 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/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +9 -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/enums/SubscriptionState.d.ts +9 -0
- 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/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/hooks/useToggleAddonQuoteChange.d.ts +1 -1
- package/dist/esm/types/src/index.d.ts +2 -2
- package/dist/esm/types/src/types/SubscriptionCharge.d.ts +39 -0
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +96 -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 +30 -10
- package/package.json +2 -2
- 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/quoteChargeUpdate.d.ts +0 -13
- package/dist/cjs/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
- package/dist/cjs/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
- package/dist/cjs/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
- package/dist/cjs/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
- 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/quoteChargeUpdate.d.ts +0 -13
- package/dist/esm/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
- package/dist/esm/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
- package/dist/esm/types/src/hooks/quotes/useQuoteCreate.d.ts +0 -9
- package/dist/esm/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
- 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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PricingTooltip_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
priceListChargeTiers: {
|
|
4
|
+
starts: number | null;
|
|
5
|
+
price: number | null;
|
|
6
|
+
}[] | null;
|
|
7
|
+
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
8
|
+
feature: {
|
|
9
|
+
unitName: string | null;
|
|
10
|
+
} | null;
|
|
11
|
+
priceDecimals: number | null;
|
|
12
|
+
basePrice: number;
|
|
13
|
+
name: string;
|
|
14
|
+
[$tada.fragmentRefs]: {
|
|
15
|
+
ChargeHasPriceTiers_PriceListChargeFragment: "PriceListCharge";
|
|
16
|
+
} & {
|
|
17
|
+
ChargePriceTiers_PriceListChargeFragment: "PriceListCharge";
|
|
18
|
+
};
|
|
19
|
+
}, {}, {
|
|
20
|
+
fragment: "PricingTooltip_PriceListChargeFragment";
|
|
21
|
+
on: "PriceListCharge";
|
|
22
|
+
masked: true;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const PricingTooltip_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
25
|
+
showPriceAsMonthly: boolean | null;
|
|
26
|
+
periodMonths: number | null;
|
|
27
|
+
currencyId: string;
|
|
28
|
+
monthlyBasePrice: number | null;
|
|
29
|
+
basePrice: number | null;
|
|
30
|
+
[$tada.fragmentRefs]: {
|
|
31
|
+
DoesPriceListHaveFlatFeeCharges_PriceListFragment: "PriceList";
|
|
32
|
+
};
|
|
33
|
+
}, {}, {
|
|
34
|
+
fragment: "PricingTooltip_PriceListFragment";
|
|
35
|
+
on: "PriceList";
|
|
36
|
+
masked: true;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const PricingTooltip: ({ className, priceListCharges: maskedPriceListCharges, currencyId, priceList: maskedPriceList, }: {
|
|
39
|
+
className?: string;
|
|
40
|
+
priceListCharges: FragmentOf<typeof PricingTooltip_PriceListChargeFragment>[];
|
|
41
|
+
currencyId: string;
|
|
42
|
+
priceList: FragmentOf<typeof PricingTooltip_PriceListFragment>;
|
|
43
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const ChargePriceTiers_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
6
|
+
priceDecimals: number | null;
|
|
7
|
+
priceListChargeTiers: {
|
|
8
|
+
starts: number | null;
|
|
9
|
+
price: number | null;
|
|
10
|
+
[$tada.fragmentRefs]: {
|
|
11
|
+
PriceTierRow_PriceTierFragment: "PriceListChargeTier";
|
|
12
|
+
};
|
|
13
|
+
}[] | null;
|
|
14
|
+
}, {}, {
|
|
15
|
+
fragment: "ChargePriceTiers_PriceListChargeFragment";
|
|
16
|
+
on: "PriceListCharge";
|
|
17
|
+
masked: true;
|
|
18
|
+
}>;
|
|
19
|
+
declare const ChargePriceTiers: ({ charge: maskedCharge, currencyId, }: {
|
|
20
|
+
charge: FragmentOf<typeof ChargePriceTiers_PriceListChargeFragment>;
|
|
21
|
+
currencyId: string;
|
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default ChargePriceTiers;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PriceTier } from '../types/PriceTier';
|
|
2
|
+
declare const PriceTierPrice: ({ currencyId, priceDecimals, tier, }: {
|
|
3
|
+
currencyId: string;
|
|
4
|
+
priceDecimals: number;
|
|
5
|
+
tier: PriceTier;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default PriceTierPrice;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PriceTierRow_PriceTierFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
starts: number | null;
|
|
4
|
+
}, {}, {
|
|
5
|
+
fragment: "PriceTierRow_PriceTierFragment";
|
|
6
|
+
on: "PriceListChargeTier";
|
|
7
|
+
masked: true;
|
|
8
|
+
}>;
|
|
9
|
+
declare const PriceTierRow: ({ tier: maskedTier, nextTier: maskedNextTier, }: {
|
|
10
|
+
tier: FragmentOf<typeof PriceTierRow_PriceTierFragment> | null;
|
|
11
|
+
nextTier: FragmentOf<typeof PriceTierRow_PriceTierFragment> | null;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default PriceTierRow;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TOOLTIP_BG_COLOR = "#2F353B";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PricingModel } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
+
export declare const getPricingModelDescription: (pricingModel: PricingModel | null) => "" | "units in each tier are priced separately." | "the highest tier reached prices all units." | "the quantity indexes to a flat price.";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PriceListHasPriceTiers_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
charges: {
|
|
4
|
+
[$tada.fragmentRefs]: {
|
|
5
|
+
ChargeHasPriceTiers_PriceListChargeFragment: "PriceListCharge";
|
|
6
|
+
};
|
|
7
|
+
}[] | null;
|
|
8
|
+
}, {}, {
|
|
9
|
+
fragment: "PriceListHasPriceTiers_PriceListFragment";
|
|
10
|
+
on: "PriceList";
|
|
11
|
+
masked: true;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const priceListHasPriceTiers: (maskedPriceList: FragmentOf<typeof PriceListHasPriceTiers_PriceListFragment>) => boolean | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const ChargeHasPriceTiers_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
priceListChargeTiers: {
|
|
4
|
+
starts: number | null;
|
|
5
|
+
price: number | null;
|
|
6
|
+
}[] | null;
|
|
7
|
+
}, {}, {
|
|
8
|
+
fragment: "ChargeHasPriceTiers_PriceListChargeFragment";
|
|
9
|
+
on: "PriceListCharge";
|
|
10
|
+
masked: true;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function chargeHasPriceTiers(maskedCharge: FragmentOf<typeof ChargeHasPriceTiers_PriceListChargeFragment>): boolean | 0 | undefined;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
declare const BrandProvider: ({ value, children }: {
|
|
2
|
+
value: {
|
|
3
|
+
accentColor: string;
|
|
4
|
+
brandColor: string;
|
|
5
|
+
secondaryColor: string;
|
|
6
|
+
topNavImageUrl: string;
|
|
7
|
+
};
|
|
8
|
+
children?: import("react").ReactNode;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element, useBrand: () => {
|
|
2
10
|
accentColor: string;
|
|
3
11
|
brandColor: string;
|
|
4
12
|
secondaryColor: string;
|
|
5
13
|
topNavImageUrl: string;
|
|
6
|
-
}
|
|
14
|
+
};
|
|
15
|
+
export { BrandProvider, useBrand };
|
|
@@ -4,11 +4,6 @@ export declare const quoteSubscriptionUpgrade: ({ subscriptionId, priceListId, a
|
|
|
4
4
|
apiHost: string;
|
|
5
5
|
token?: string;
|
|
6
6
|
}) => Promise<unknown>;
|
|
7
|
-
export declare const useCreateSubscriptionQuote: () => (subscriptionIds: string[], apiHost: string, token?: string) => Promise<unknown>;
|
|
8
|
-
export declare const useQuoteChangeUpdate: () => (charges: {
|
|
9
|
-
id: string;
|
|
10
|
-
quantity: number;
|
|
11
|
-
}[], quoteChangeId: string, apiHost: string, token?: string) => Promise<any>;
|
|
12
7
|
export declare const useQuoteDelete: () => (quoteId: string, apiHost: string, token?: string) => Promise<unknown>;
|
|
13
8
|
export declare const quoteSubscriptionAddon: ({ subscriptionId, priceListId, apiHost, token, }: {
|
|
14
9
|
subscriptionId: string;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { QuoteCharge } from '@bunnyapp/common';
|
|
2
1
|
type QuoteChargeDeleteProps = {
|
|
3
2
|
apiHost: string;
|
|
4
3
|
quoteChargeId: string;
|
|
5
4
|
token?: string;
|
|
6
5
|
};
|
|
7
|
-
declare const quoteChargeDelete: ({ quoteChargeId, token, apiHost }: QuoteChargeDeleteProps) => Promise<
|
|
6
|
+
declare const quoteChargeDelete: ({ quoteChargeId, token, apiHost }: QuoteChargeDeleteProps) => Promise<{
|
|
7
|
+
quoteChange: {
|
|
8
|
+
id: string | null;
|
|
9
|
+
quoteId: string;
|
|
10
|
+
quote: {
|
|
11
|
+
[$tada.fragmentRefs]: {
|
|
12
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | null | undefined>;
|
|
8
17
|
export default quoteChargeDelete;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { EntityBranding } from '@bunnyapp/common';
|
|
2
1
|
declare const getBranding: ({ token, apiHost }: {
|
|
3
2
|
token?: string;
|
|
4
3
|
apiHost: string;
|
|
5
|
-
}) => Promise<
|
|
4
|
+
}) => Promise<{
|
|
5
|
+
entityBranding: {
|
|
6
|
+
accentColor: string | null;
|
|
7
|
+
brandColor: string | null;
|
|
8
|
+
topNavImageUrl: string;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
6
11
|
export default getBranding;
|
|
@@ -2,12 +2,16 @@ declare const getCurrentUserData: ({ token, apiHost }: {
|
|
|
2
2
|
token?: string;
|
|
3
3
|
apiHost: string;
|
|
4
4
|
}) => Promise<{
|
|
5
|
-
authObjectName:
|
|
6
|
-
account:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
authObjectName: string | null;
|
|
6
|
+
account: {
|
|
7
|
+
billingCountry: string | null;
|
|
8
|
+
currencyId: string | null;
|
|
9
|
+
id: string;
|
|
10
|
+
} | null;
|
|
11
|
+
companyName: string | null | undefined;
|
|
12
|
+
returnUrl: string | null | undefined;
|
|
13
|
+
privacyUrl: string | null;
|
|
14
|
+
termsUrl: string | null;
|
|
15
|
+
entityId: string | null;
|
|
12
16
|
}>;
|
|
13
17
|
export default getCurrentUserData;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import { PriceList, Quote } from '@bunnyapp/common';
|
|
2
|
-
export declare const useToggleAddonPlan: (quote: Quote | undefined,
|
|
2
|
+
export declare const useToggleAddonPlan: (quote: Quote | undefined, addonPriceListId: string, selectedPriceList: PriceList, setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>) => {
|
|
3
3
|
isPending: boolean;
|
|
4
4
|
addedQuoteChange: boolean;
|
|
5
5
|
deleteQuoteChange: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export * from
|
|
1
|
+
import './styles/index.less';
|
|
2
|
+
export * from './components';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Account, BillingPeriod, ChargeType, Currency, Feature, FeatureUsage, PriceList, PriceListCharge, PriceTier, PricingModel, QuoteChangeKind } from '@bunnyapp/common';
|
|
2
|
+
export type SubscriptionCharge = {
|
|
3
|
+
account: Account;
|
|
4
|
+
amount: number;
|
|
5
|
+
billingPeriod: BillingPeriod;
|
|
6
|
+
chargeType: ChargeType;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
currency: Currency;
|
|
9
|
+
discount?: number;
|
|
10
|
+
discountedPrice: string;
|
|
11
|
+
endDate: string;
|
|
12
|
+
expired: boolean;
|
|
13
|
+
feature?: Feature;
|
|
14
|
+
id: string;
|
|
15
|
+
invoiceLineText: string;
|
|
16
|
+
isAmendment: boolean;
|
|
17
|
+
isRamp?: boolean;
|
|
18
|
+
kind: QuoteChangeKind;
|
|
19
|
+
name: string;
|
|
20
|
+
periodPrice: number;
|
|
21
|
+
price: string;
|
|
22
|
+
priceDecimals: number;
|
|
23
|
+
priceList: PriceList;
|
|
24
|
+
priceListCharge?: PriceListCharge;
|
|
25
|
+
priceListChargeId: string;
|
|
26
|
+
priceListId: string;
|
|
27
|
+
priceTiers: PriceTier[];
|
|
28
|
+
pricingModel: PricingModel;
|
|
29
|
+
prorationRate?: number;
|
|
30
|
+
quantity: number;
|
|
31
|
+
quantityMax?: number;
|
|
32
|
+
quantityMin?: number;
|
|
33
|
+
selfServiceQuantity?: boolean;
|
|
34
|
+
startDate: string;
|
|
35
|
+
tieredAveragePrice?: number;
|
|
36
|
+
trial: boolean;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
histogram?: FeatureUsage;
|
|
39
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
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 CalculatedPricesKeyParams {
|
|
13
|
+
priceListId?: string;
|
|
14
|
+
quantity?: number;
|
|
15
|
+
token?: string;
|
|
16
|
+
}
|
|
17
|
+
interface EventsKeyParams {
|
|
18
|
+
entityId: string;
|
|
19
|
+
pluralType: string;
|
|
20
|
+
token?: string;
|
|
21
|
+
}
|
|
22
|
+
interface ObjectKeyParams {
|
|
23
|
+
id?: string;
|
|
24
|
+
objectName: string;
|
|
25
|
+
token?: string;
|
|
26
|
+
}
|
|
27
|
+
interface TableKeyParams {
|
|
28
|
+
filterString?: string;
|
|
29
|
+
pluralType: string;
|
|
30
|
+
token?: string;
|
|
31
|
+
}
|
|
32
|
+
interface FormattedInvoiceKeyParams {
|
|
33
|
+
id?: string;
|
|
34
|
+
token?: string;
|
|
35
|
+
}
|
|
36
|
+
interface InvoiceKeyParams {
|
|
37
|
+
id?: string;
|
|
38
|
+
token?: string;
|
|
39
|
+
}
|
|
40
|
+
interface PlanChangeOptionsKeyParams {
|
|
41
|
+
subscriptionId?: string | null;
|
|
42
|
+
productId?: string | null;
|
|
43
|
+
token?: string;
|
|
44
|
+
}
|
|
45
|
+
interface PortalPreviewDataKeyParams {
|
|
46
|
+
productId?: string | null;
|
|
47
|
+
token?: string;
|
|
48
|
+
}
|
|
49
|
+
interface QuoteKeyParams {
|
|
50
|
+
id?: string;
|
|
51
|
+
token?: string;
|
|
52
|
+
}
|
|
53
|
+
interface QuoteTaxCalculateKeyParams {
|
|
54
|
+
id?: string;
|
|
55
|
+
token?: string;
|
|
56
|
+
}
|
|
57
|
+
interface TaxationRequiredAccountFieldsKeyParams {
|
|
58
|
+
entityId?: string;
|
|
59
|
+
token?: string;
|
|
60
|
+
}
|
|
61
|
+
interface TransactionsKeyParams {
|
|
62
|
+
filter?: string;
|
|
63
|
+
token?: string;
|
|
64
|
+
}
|
|
65
|
+
declare const QueryKeyFactory: {
|
|
66
|
+
accountPaymentMethodsKey: ({ accountId, entityId, token }: AccountPaymentMethodKeyParams) => string[];
|
|
67
|
+
billingDetailsKey: ({ entityId, token }: BillingDetailsKeyParams) => string[];
|
|
68
|
+
brandingKey: (token?: string) => string[];
|
|
69
|
+
calculatedPricesKey: ({ priceListId, quantity, token }: CalculatedPricesKeyParams) => (string | number)[];
|
|
70
|
+
createEventsKey: ({ entityId, pluralType, token }: EventsKeyParams) => string[];
|
|
71
|
+
createFormattedInvoiceKey: ({ id, token }: FormattedInvoiceKeyParams) => (string | undefined)[];
|
|
72
|
+
createInvoiceKey: ({ id, token }: InvoiceKeyParams) => (string | undefined)[];
|
|
73
|
+
createObjectKey: ({ id, objectName, token }: ObjectKeyParams) => string[];
|
|
74
|
+
createQuoteKey: ({ id, token }: QuoteKeyParams) => (string | undefined)[];
|
|
75
|
+
createQuoteTaxCalculateKey: ({ id, token }: QuoteTaxCalculateKeyParams) => string[];
|
|
76
|
+
createTableKey: ({ filterString, pluralType, token }: TableKeyParams) => (string | undefined)[];
|
|
77
|
+
currentUserKey: (token?: string) => string[];
|
|
78
|
+
editingQuoteKey: (token?: string) => string[];
|
|
79
|
+
finixAchKey: (token?: string) => string[];
|
|
80
|
+
finixKey: (token?: string) => string[];
|
|
81
|
+
planChangeOptionsKey: ({ subscriptionId, productId, token }: PlanChangeOptionsKeyParams) => string[];
|
|
82
|
+
pluginsKey: (token?: string) => string[];
|
|
83
|
+
portalPreviewDataKey: ({ productId, token }: PortalPreviewDataKeyParams) => string[];
|
|
84
|
+
taxationRequiredAccountFieldsKey: ({ entityId, token, }: TaxationRequiredAccountFieldsKeyParams) => string[];
|
|
85
|
+
transactionsKey: ({ filter, token }: TransactionsKeyParams) => string[];
|
|
86
|
+
availableAddonPlansKey: ({ priceListId, token, }: {
|
|
87
|
+
priceListId: string | undefined;
|
|
88
|
+
token?: string;
|
|
89
|
+
}) => (string | undefined)[];
|
|
90
|
+
addonPlansKey: ({ priceListId, token }: {
|
|
91
|
+
priceListId: string;
|
|
92
|
+
token?: string;
|
|
93
|
+
}) => string[];
|
|
94
|
+
paymentPluginsKey: (token?: string) => string[];
|
|
95
|
+
};
|
|
96
|
+
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 {};
|