@bunnyapp/components 1.6.0-beta.14 → 1.6.0-beta.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/dist/cjs/index.js +6859 -6187
- package/dist/cjs/types/src/components/BunnyProvider.d.ts +0 -2
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +1 -1
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +4 -4
- package/dist/cjs/types/src/components/Quote/Quote.d.ts +5 -1
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +16 -112
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +0 -5
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.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/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 +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +3 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -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 +41 -4
- 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/planPickerMobile/PriceListCardMobile.d.ts +19 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +20 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -2
- 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 -5
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -4
- 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/{esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawerQuoteFragment.d.ts → cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts} +4 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -3
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +2 -2
- 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} +2 -9
- 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/utils.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
- 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/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/Transactions/Transactions.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +18 -16
- package/dist/cjs/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +12 -8
- package/dist/cjs/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
- package/dist/cjs/types/src/contexts/BrandContext.d.ts +11 -2
- package/dist/cjs/types/src/graphql/queries/getBranding.d.ts +7 -2
- package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
- 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/useToggleAddonQuoteChange.d.ts +1 -1
- package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +39 -0
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +95 -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/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/{esm/types/src/utils → cjs/types/src/utils/featureAddonUtils}/featureAddonUtils.d.ts +2 -3
- package/dist/cjs/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
- package/dist/cjs/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +11 -6
- package/dist/cjs/types/src/utils/priceListUtils/getPrice.d.ts +11 -5
- package/dist/cjs/types/src/utils/priceListUtils/priceDescription.d.ts +3 -3
- package/dist/cjs/types/src/utils/priceListUtils/priceListPriceText.d.ts +17 -10
- package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +2 -2
- package/dist/esm/index.js +7890 -7218
- package/dist/esm/types/src/components/BunnyProvider.d.ts +0 -2
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +1 -1
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +4 -4
- package/dist/esm/types/src/components/Quote/Quote.d.ts +5 -1
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +16 -112
- package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +0 -5
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.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/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 +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +3 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +2 -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 +41 -4
- 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/planPickerMobile/PriceListCardMobile.d.ts +19 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +20 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +12 -2
- 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 -5
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -4
- 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/{cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawerQuoteFragment.d.ts → esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts} +4 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -3
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +2 -2
- 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} +2 -9
- 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/utils.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
- 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/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/Transactions/Transactions.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +18 -16
- package/dist/esm/types/src/components/priceListPricing/utils/hasPriceTiers.d.ts +12 -8
- package/dist/esm/types/src/components/priceListPricing/utils/priceListChargeUtil.ts/chargeHasPriceTiers.d.ts +12 -0
- package/dist/esm/types/src/contexts/BrandContext.d.ts +11 -2
- package/dist/esm/types/src/graphql/queries/getBranding.d.ts +7 -2
- package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +4 -4
- 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/useToggleAddonQuoteChange.d.ts +1 -1
- package/dist/esm/types/src/types/SubscriptionCharge.d.ts +39 -0
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +95 -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/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/{cjs/types/src/utils → esm/types/src/utils/featureAddonUtils}/featureAddonUtils.d.ts +2 -3
- package/dist/esm/types/src/utils/featureAddonUtils/isAddonPurchased.d.ts +24 -0
- package/dist/esm/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +11 -6
- package/dist/esm/types/src/utils/priceListUtils/getPrice.d.ts +11 -5
- package/dist/esm/types/src/utils/priceListUtils/priceDescription.d.ts +3 -3
- package/dist/esm/types/src/utils/priceListUtils/priceListPriceText.d.ts +17 -10
- package/dist/esm/types/src/utils/pricePickerUtils.d.ts +2 -2
- package/dist/index.d.ts +4 -1
- package/package.json +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +0 -23
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -11
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
- 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/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 -8
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +0 -23
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -11
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
- 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/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 -8
- /package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeCreate.d.ts +0 -0
- /package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeUpdate.d.ts +0 -0
- /package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteSubscriptionUpdate.d.ts +0 -0
- /package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
- /package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeCreate.d.ts +0 -0
- /package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeUpdate.d.ts +0 -0
- /package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteSubscriptionUpdate.d.ts +0 -0
- /package/dist/esm/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { QueryClient } from '@tanstack/react-query';
|
|
2
2
|
import { ThemeConfig } from 'antd';
|
|
3
|
-
import { GraphQLClient } from 'graphql-request';
|
|
4
3
|
export type BunnyContextValues = {
|
|
5
4
|
apiHost: string;
|
|
6
|
-
graphQLClient: GraphQLClient;
|
|
7
5
|
token?: string;
|
|
8
6
|
darkMode?: boolean;
|
|
9
7
|
onTokenExpired?: () => void;
|
|
@@ -20,7 +20,7 @@ type CheckoutProps = {
|
|
|
20
20
|
onFail: (error: any) => void;
|
|
21
21
|
onSuccess: () => void;
|
|
22
22
|
open: boolean;
|
|
23
|
-
quote?: FragmentOf<typeof Checkout_QuoteFragment
|
|
23
|
+
quote?: FragmentOf<typeof Checkout_QuoteFragment> | null;
|
|
24
24
|
token?: string;
|
|
25
25
|
isUpdatingQuote: boolean;
|
|
26
26
|
};
|
|
@@ -9,7 +9,7 @@ export declare const QuoteCheckout_QuoteFragment: import("gql.tada").TadaDocumen
|
|
|
9
9
|
quoteChanges: ({
|
|
10
10
|
id: string | null;
|
|
11
11
|
charges: {
|
|
12
|
-
kind: "
|
|
12
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
13
13
|
coupon: {
|
|
14
14
|
couponCode: string;
|
|
15
15
|
} | null;
|
|
@@ -17,7 +17,7 @@ export declare const QuoteCheckout_QuoteFragment: import("gql.tada").TadaDocumen
|
|
|
17
17
|
}[] & {
|
|
18
18
|
currencyId: string;
|
|
19
19
|
id: string | null;
|
|
20
|
-
kind: "
|
|
20
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
21
21
|
charges: {
|
|
22
22
|
subtotal: number | null;
|
|
23
23
|
amountsByPeriod: {
|
|
@@ -42,7 +42,7 @@ export declare const QuoteCheckout_QuoteFragment: import("gql.tada").TadaDocumen
|
|
|
42
42
|
couponCode: string;
|
|
43
43
|
} | null;
|
|
44
44
|
quantity: number | null;
|
|
45
|
-
kind: "
|
|
45
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
46
46
|
}[];
|
|
47
47
|
priceList: {
|
|
48
48
|
id: string;
|
|
@@ -68,7 +68,7 @@ export declare const QuoteCheckout_QuoteFragment: import("gql.tada").TadaDocumen
|
|
|
68
68
|
amount: number | null;
|
|
69
69
|
startDate: unknown;
|
|
70
70
|
}[];
|
|
71
|
-
kind: "
|
|
71
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
72
72
|
}, {}, {
|
|
73
73
|
fragment: "QuoteCheckout_QuoteFragment";
|
|
74
74
|
on: "Quote";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { InvoiceQuoteContextProps } from '../../contexts/InvoiceQuoteContext';
|
|
2
2
|
export declare const MarkupContainer: any;
|
|
3
|
-
|
|
3
|
+
type QuoteProps = InvoiceQuoteContextProps & {
|
|
4
|
+
onQuoteAccepted?: () => void;
|
|
5
|
+
};
|
|
6
|
+
export default function Quote({ id, invoiceQuoteViewComponent, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onQuoteLoaded, onQuoteAccepted, }: QuoteProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
accountId: string;
|
|
3
|
+
amount: number;
|
|
4
|
+
amountDue: number | null;
|
|
5
|
+
smallUnitAmountDue: number | null;
|
|
6
|
+
currencyId: string;
|
|
7
|
+
id: string | null;
|
|
8
|
+
payableId: string | null;
|
|
9
|
+
periodAmount: number | null;
|
|
10
|
+
subtotal: number;
|
|
11
|
+
taxAmount: number;
|
|
12
|
+
startDate: unknown;
|
|
13
|
+
formattedQuote: {
|
|
14
|
+
html: string | null;
|
|
15
|
+
} | null;
|
|
16
|
+
amountsByPeriod: {
|
|
17
|
+
amount: number | null;
|
|
18
|
+
startDate: unknown;
|
|
19
|
+
}[];
|
|
20
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
21
|
+
quoteChanges: {
|
|
22
|
+
currencyId: string;
|
|
23
|
+
id: string | null;
|
|
24
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
25
|
+
charges: {
|
|
26
|
+
subtotal: number | null;
|
|
27
|
+
amountsByPeriod: {
|
|
28
|
+
amount: number | null;
|
|
29
|
+
startDate: unknown;
|
|
30
|
+
}[] | null;
|
|
31
|
+
amount: number | null;
|
|
32
|
+
billingPeriod: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | null;
|
|
33
|
+
currencyId: string;
|
|
34
|
+
feature: {
|
|
35
|
+
unitName: string | null;
|
|
36
|
+
} | null;
|
|
37
|
+
id: string | null;
|
|
38
|
+
name: string | null;
|
|
39
|
+
priceListCharge: {
|
|
40
|
+
id: string;
|
|
41
|
+
} | null;
|
|
42
|
+
priceList: {
|
|
43
|
+
id: string;
|
|
44
|
+
} | null;
|
|
45
|
+
coupon: {
|
|
46
|
+
couponCode: string;
|
|
47
|
+
} | null;
|
|
48
|
+
quantity: number | null;
|
|
49
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
50
|
+
}[];
|
|
51
|
+
priceList: {
|
|
52
|
+
id: string;
|
|
53
|
+
plan: {
|
|
54
|
+
name: string;
|
|
55
|
+
} | null;
|
|
56
|
+
product: {
|
|
57
|
+
name: string;
|
|
58
|
+
} | null;
|
|
59
|
+
} | null;
|
|
60
|
+
}[] | null;
|
|
61
|
+
}, {}, {
|
|
62
|
+
fragment: "QuoteFields_QuoteFragment";
|
|
63
|
+
on: "Quote";
|
|
64
|
+
masked: false;
|
|
65
|
+
}>;
|
|
@@ -1,68 +1,3 @@
|
|
|
1
|
-
export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
-
accountId: string;
|
|
3
|
-
amount: number;
|
|
4
|
-
amountDue: number | null;
|
|
5
|
-
smallUnitAmountDue: number | null;
|
|
6
|
-
currencyId: string;
|
|
7
|
-
id: string | null;
|
|
8
|
-
payableId: string | null;
|
|
9
|
-
periodAmount: number | null;
|
|
10
|
-
subtotal: number;
|
|
11
|
-
taxAmount: number;
|
|
12
|
-
startDate: unknown;
|
|
13
|
-
formattedQuote: {
|
|
14
|
-
html: string | null;
|
|
15
|
-
} | null;
|
|
16
|
-
amountsByPeriod: {
|
|
17
|
-
amount: number | null;
|
|
18
|
-
startDate: unknown;
|
|
19
|
-
}[];
|
|
20
|
-
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
21
|
-
quoteChanges: {
|
|
22
|
-
currencyId: string;
|
|
23
|
-
id: string | null;
|
|
24
|
-
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
25
|
-
charges: {
|
|
26
|
-
subtotal: number | null;
|
|
27
|
-
amountsByPeriod: {
|
|
28
|
-
amount: number | null;
|
|
29
|
-
startDate: unknown;
|
|
30
|
-
}[] | null;
|
|
31
|
-
amount: number | null;
|
|
32
|
-
billingPeriod: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | null;
|
|
33
|
-
currencyId: string;
|
|
34
|
-
feature: {
|
|
35
|
-
unitName: string | null;
|
|
36
|
-
} | null;
|
|
37
|
-
id: string | null;
|
|
38
|
-
name: string | null;
|
|
39
|
-
priceListCharge: {
|
|
40
|
-
id: string;
|
|
41
|
-
} | null;
|
|
42
|
-
priceList: {
|
|
43
|
-
id: string;
|
|
44
|
-
} | null;
|
|
45
|
-
coupon: {
|
|
46
|
-
couponCode: string;
|
|
47
|
-
} | null;
|
|
48
|
-
quantity: number | null;
|
|
49
|
-
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
50
|
-
}[];
|
|
51
|
-
priceList: {
|
|
52
|
-
id: string;
|
|
53
|
-
plan: {
|
|
54
|
-
name: string;
|
|
55
|
-
} | null;
|
|
56
|
-
product: {
|
|
57
|
-
name: string;
|
|
58
|
-
} | null;
|
|
59
|
-
} | null;
|
|
60
|
-
}[] | null;
|
|
61
|
-
}, {}, {
|
|
62
|
-
fragment: "QuoteFields_QuoteFragment";
|
|
63
|
-
on: "Quote";
|
|
64
|
-
masked: false;
|
|
65
|
-
}>;
|
|
66
1
|
/**
|
|
67
2
|
* Central quote fragment for QuoteProvider context.
|
|
68
3
|
*
|
|
@@ -76,65 +11,34 @@ export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentN
|
|
|
76
11
|
* - Type safety ensures all required fields are fetched
|
|
77
12
|
*/
|
|
78
13
|
export declare const QuoteContext_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
79
|
-
accountId: string;
|
|
80
|
-
amount: number;
|
|
81
|
-
amountDue: number | null;
|
|
82
|
-
smallUnitAmountDue: number | null;
|
|
83
|
-
currencyId: string;
|
|
84
14
|
id: string | null;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
subtotal: number;
|
|
88
|
-
taxAmount: number;
|
|
89
|
-
startDate: unknown;
|
|
90
|
-
formattedQuote: {
|
|
91
|
-
html: string | null;
|
|
92
|
-
} | null;
|
|
93
|
-
amountsByPeriod: {
|
|
94
|
-
amount: number | null;
|
|
95
|
-
startDate: unknown;
|
|
96
|
-
}[];
|
|
97
|
-
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
15
|
+
currencyId: string;
|
|
16
|
+
amountDue: number | null;
|
|
98
17
|
quoteChanges: {
|
|
99
|
-
currencyId: string;
|
|
100
18
|
id: string | null;
|
|
101
|
-
kind: "
|
|
19
|
+
kind: "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "COUPON" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
20
|
+
priceList: {
|
|
21
|
+
id: string;
|
|
22
|
+
} | null;
|
|
102
23
|
charges: {
|
|
103
|
-
subtotal: number | null;
|
|
104
|
-
amountsByPeriod: {
|
|
105
|
-
amount: number | null;
|
|
106
|
-
startDate: unknown;
|
|
107
|
-
}[] | null;
|
|
108
|
-
amount: number | null;
|
|
109
|
-
billingPeriod: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | null;
|
|
110
|
-
currencyId: string;
|
|
111
|
-
feature: {
|
|
112
|
-
unitName: string | null;
|
|
113
|
-
} | null;
|
|
114
|
-
id: string | null;
|
|
115
|
-
name: string | null;
|
|
116
24
|
priceListCharge: {
|
|
117
25
|
id: string;
|
|
26
|
+
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
27
|
+
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
28
|
+
quantityMin: number | null;
|
|
29
|
+
quantityMax: number | null;
|
|
30
|
+
selfServiceQuantity: boolean | null;
|
|
118
31
|
} | null;
|
|
119
|
-
|
|
32
|
+
feature: {
|
|
120
33
|
id: string;
|
|
121
34
|
} | null;
|
|
122
|
-
coupon: {
|
|
123
|
-
couponCode: string;
|
|
124
|
-
} | null;
|
|
125
35
|
quantity: number | null;
|
|
126
|
-
|
|
36
|
+
id: string | null;
|
|
127
37
|
}[];
|
|
128
|
-
priceList: {
|
|
129
|
-
id: string;
|
|
130
|
-
plan: {
|
|
131
|
-
name: string;
|
|
132
|
-
} | null;
|
|
133
|
-
product: {
|
|
134
|
-
name: string;
|
|
135
|
-
} | null;
|
|
136
|
-
} | null;
|
|
137
38
|
}[] | null;
|
|
39
|
+
[$tada.fragmentRefs]: {
|
|
40
|
+
PlanPickerCheckoutBar_QuoteFragment: "Quote";
|
|
41
|
+
};
|
|
138
42
|
}, {}, {
|
|
139
43
|
fragment: "QuoteContext_QuoteFragment";
|
|
140
44
|
on: "Quote";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type FeatureQuantitiesDict = Record<string, number | undefined>;
|
|
2
|
+
/**
|
|
3
|
+
* Hook to manage feature quantities using a dictionary keyed by feature ID
|
|
4
|
+
* This tracks quantities for each unique feature.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useFeatureQuantities({ onFeatureQuantitiesChanged, }: {
|
|
7
|
+
onFeatureQuantitiesChanged?: (featureQuantities: FeatureQuantitiesDict) => void;
|
|
8
|
+
}): {
|
|
9
|
+
featureQuantities: FeatureQuantitiesDict;
|
|
10
|
+
getFeatureQuantity: (featureId: string, featureQuantities: FeatureQuantitiesDict) => number | undefined;
|
|
11
|
+
onUpdateFeatureQuantity: (featureId: string, quantity: number) => void;
|
|
12
|
+
};
|
|
@@ -9,8 +9,3 @@ export declare const useQuoteQuantities: ({ selectedPriceList, quote, }: {
|
|
|
9
9
|
getFeatureQuantity: (featureId: string) => number | undefined;
|
|
10
10
|
isUpdatingCharges: boolean;
|
|
11
11
|
};
|
|
12
|
-
/**
|
|
13
|
-
* Hook to manage feature quantities using a dictionary keyed by feature ID
|
|
14
|
-
* This tracks quantities for each unique feature.
|
|
15
|
-
*/
|
|
16
|
-
export type FeatureQuantitiesDict = Record<string, number | undefined>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const quoteChangeUpdate: ({ quoteChangeId, charges, apiHost, token, }: {
|
|
2
|
+
quoteChangeId: string;
|
|
3
|
+
charges: {
|
|
4
|
+
id: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
}[];
|
|
7
|
+
apiHost: string;
|
|
8
|
+
token: string;
|
|
9
|
+
}) => Promise<{
|
|
10
|
+
quote: {
|
|
11
|
+
[$tada.fragmentRefs]: {
|
|
12
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
} | null | undefined>;
|
|
16
|
+
export default quoteChangeUpdate;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
export declare const Subscriptions_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
-
state: "ACTIVE" | "TRIAL" | "
|
|
2
|
+
state: "ACTIVE" | "TRIAL" | "PENDING" | "EXPIRED" | "CANCELED" | "TRIAL_EXPIRED";
|
|
3
3
|
}, {}, {
|
|
4
4
|
fragment: "Subscriptions_SubscriptionFragment";
|
|
5
5
|
on: "Subscription";
|
|
6
6
|
masked: true;
|
|
7
7
|
}>;
|
|
8
|
-
export type EditingQuoteDataType = {
|
|
9
|
-
id: string;
|
|
10
|
-
isTrial: boolean;
|
|
11
|
-
};
|
|
12
8
|
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, }: {
|
|
13
9
|
handlePortalErrors?: (errors: any) => void;
|
|
14
10
|
companyName: string;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { Subscription } from '@bunnyapp/common';
|
|
2
2
|
import '../../styles/index.less';
|
|
3
|
-
export type EditingQuoteDataType = {
|
|
4
|
-
id: string;
|
|
5
|
-
isTrial: boolean;
|
|
6
|
-
};
|
|
7
3
|
declare const SubscriptionsListContainer: ({ companyName, showInactive, onCancelSubscriptionClick, onChangePlanClick, noSubscriptionsComponent, subscriptions, subscriptionsAreLoading, }: {
|
|
8
4
|
companyName: string;
|
|
9
5
|
showInactive?: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Subscription } from '@bunnyapp/common';
|
|
2
|
-
declare const PlanPicker: ({
|
|
3
|
-
upgradingSubscription?: Subscription;
|
|
2
|
+
declare const PlanPicker: ({ onGoBack, areSubscriptionsLoading, subscriptions, }: {
|
|
4
3
|
onGoBack?: () => void;
|
|
5
4
|
areSubscriptionsLoading: boolean;
|
|
6
5
|
subscriptions: Subscription[];
|
|
@@ -9,7 +9,7 @@ type PriceListGridProps = {
|
|
|
9
9
|
subscriptions: Subscription[];
|
|
10
10
|
priceListStart: number;
|
|
11
11
|
setPriceListStart: Dispatch<SetStateAction<number>>;
|
|
12
|
-
selectedBillingPeriod
|
|
12
|
+
selectedBillingPeriod: BillingPeriod | null;
|
|
13
13
|
onClickPriceListCard: (priceList: PriceList) => void;
|
|
14
14
|
};
|
|
15
15
|
declare const PriceListGrid: ({ availablePriceLists, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, selectedBillingPeriod, onClickPriceListCard, }: PriceListGridProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
import { PriceList } from '@bunnyapp/common';
|
|
2
|
+
export declare const PlanPickerCheckoutBar_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
[$tada.fragmentRefs]: {
|
|
4
|
+
Checkout_QuoteFragment: "Quote";
|
|
5
|
+
};
|
|
6
|
+
quoteChanges: {
|
|
7
|
+
priceList: {
|
|
8
|
+
id: string;
|
|
9
|
+
} | null;
|
|
10
|
+
charges: {
|
|
11
|
+
priceListCharge: {
|
|
12
|
+
id: string;
|
|
13
|
+
} | null;
|
|
14
|
+
}[];
|
|
15
|
+
}[] | null;
|
|
16
|
+
}, {}, {
|
|
17
|
+
fragment: "PlanPickerCheckoutBar_QuoteFragment";
|
|
18
|
+
on: "Quote";
|
|
19
|
+
masked: true;
|
|
20
|
+
}>;
|
|
2
21
|
declare const PlanPickerCheckoutBar: ({ selectedPriceList, handlePortalErrors, onCheckoutSuccess, }: {
|
|
3
22
|
selectedPriceList: PriceList;
|
|
4
23
|
handlePortalErrors?: (errors: any) => void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Product } from '@bunnyapp/common';
|
|
2
1
|
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
+
import { Product } from '@bunnyapp/common';
|
|
3
3
|
type PeriodMonths = number;
|
|
4
4
|
declare const BillingPeriodSelector: ({ availableBillingPeriods, onChangeBillingPeriod, products, selectedBillingPeriod, selectedProduct, onChangeProduct, }: {
|
|
5
5
|
availableBillingPeriods?: PeriodMonths[];
|
|
6
|
-
onChangeBillingPeriod: (billingPeriod: BillingPeriod) => void;
|
|
6
|
+
onChangeBillingPeriod: (billingPeriod: BillingPeriod | null) => void;
|
|
7
7
|
products?: Product[];
|
|
8
|
-
selectedBillingPeriod
|
|
8
|
+
selectedBillingPeriod: BillingPeriod | null;
|
|
9
9
|
selectedProduct?: Product;
|
|
10
10
|
onChangeProduct: (product: Product) => void;
|
|
11
11
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
1
2
|
import { PriceList, PriceListChangeOptions, Product, Subscription } from '@bunnyapp/common';
|
|
2
3
|
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
4
4
|
type PriceListGridDesktopProps = {
|
|
5
5
|
availablePriceLists: PriceList[];
|
|
6
6
|
priceListChangeOptions?: PriceListChangeOptions;
|
|
@@ -10,7 +10,7 @@ type PriceListGridDesktopProps = {
|
|
|
10
10
|
setPriceListStart: Dispatch<SetStateAction<number>>;
|
|
11
11
|
subscriptions: Subscription[];
|
|
12
12
|
trialRemainingDays: number;
|
|
13
|
-
selectedBillingPeriod
|
|
13
|
+
selectedBillingPeriod: BillingPeriod | null;
|
|
14
14
|
onClickPriceListCard: (priceList: PriceList) => void;
|
|
15
15
|
};
|
|
16
16
|
declare const PriceListGridDesktop: ({ availablePriceLists, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, trialRemainingDays, selectedBillingPeriod, onClickPriceListCard, }: PriceListGridDesktopProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const FeatureAddonRow_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
id: string;
|
|
4
|
+
currencyId: string;
|
|
5
|
+
charges: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
}[] | null;
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
PricingTooltip_PriceListFragment: "PriceList";
|
|
11
|
+
};
|
|
12
|
+
}, {}, {
|
|
13
|
+
fragment: "FeatureAddonRow_PriceListFragment";
|
|
14
|
+
on: "PriceList";
|
|
15
|
+
masked: true;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const FeatureAddonRow_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
[$tada.fragmentRefs]: {
|
|
21
|
+
isAddonPurchased_PriceListChargeFragment: "PriceListCharge";
|
|
22
|
+
} & {
|
|
23
|
+
PricingTooltip_PriceListChargeFragment: "PriceListCharge";
|
|
24
|
+
};
|
|
25
|
+
}, {}, {
|
|
26
|
+
fragment: "FeatureAddonRow_PriceListChargeFragment";
|
|
27
|
+
on: "PriceListCharge";
|
|
28
|
+
masked: true;
|
|
29
|
+
}>;
|
|
30
|
+
export declare function FeatureAddonRow({ featureAddon: maskedFeatureAddon, priceList: maskedPriceList, }: {
|
|
31
|
+
featureAddon: FragmentOf<typeof FeatureAddonRow_PriceListChargeFragment>;
|
|
32
|
+
priceList: FragmentOf<typeof FeatureAddonRow_PriceListFragment>;
|
|
33
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
3
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PlanFeatureAddons_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
[$tada.fragmentRefs]: {
|
|
4
|
+
FeatureAddonsList_PriceListFragment: "PriceList";
|
|
5
|
+
};
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "PlanFeatureAddons_PriceListFragment";
|
|
8
|
+
on: "PriceList";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
11
|
+
declare const PlanFeatureAddons: ({ displayPriceLists: maskedDisplayPriceLists, plansToDisplay, everythingInPlus, }: {
|
|
12
|
+
displayPriceLists: FragmentOf<typeof PlanFeatureAddons_PriceListFragment>[];
|
|
4
13
|
plansToDisplay: number;
|
|
5
14
|
everythingInPlus: boolean;
|
|
6
15
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare
|
|
3
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const FeatureAddonsList_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
id: string;
|
|
4
|
+
currencyId: string;
|
|
5
|
+
charges: {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
featureAddon: boolean | null;
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
PricingTooltip_PriceListChargeFragment: "PriceListCharge";
|
|
11
|
+
} & {
|
|
12
|
+
FeatureAddonRow_PriceListChargeFragment: "PriceListCharge";
|
|
13
|
+
};
|
|
14
|
+
}[] | null;
|
|
15
|
+
[$tada.fragmentRefs]: {
|
|
16
|
+
PricingTooltip_PriceListFragment: "PriceList";
|
|
17
|
+
} & {
|
|
18
|
+
FeatureAddonRow_PriceListFragment: "PriceList";
|
|
19
|
+
};
|
|
20
|
+
}, {}, {
|
|
21
|
+
fragment: "FeatureAddonsList_PriceListFragment";
|
|
22
|
+
on: "PriceList";
|
|
23
|
+
masked: true;
|
|
24
|
+
}>;
|
|
25
|
+
export declare function FeatureAddonsList({ priceList: maskedPriceList, }: {
|
|
26
|
+
priceList: FragmentOf<typeof FeatureAddonsList_PriceListFragment>;
|
|
4
27
|
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export default FeatureAddonsList;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const calculateNewQuantity: (priceListCharge: {
|
|
2
|
+
quantityMax: number | null;
|
|
3
|
+
quantityMin: number | null;
|
|
4
|
+
selfServiceQuantity: boolean | null;
|
|
5
|
+
}, currentQuantity?: number) => number;
|
|
@@ -1,15 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { PriceList as DeprecatedPriceList, Feature, Subscription } from '@bunnyapp/common';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const PriceListCardDesktop_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
id: string;
|
|
5
|
+
plan: {
|
|
6
|
+
id: string;
|
|
7
|
+
pricingStyle: "PRICED" | "FREE" | "CONTACT_US";
|
|
8
|
+
contactUsUrl: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
} | null;
|
|
11
|
+
charges: {
|
|
12
|
+
id: string;
|
|
13
|
+
featureAddon: boolean | null;
|
|
14
|
+
priceListChargeTiers: {
|
|
15
|
+
starts: number | null;
|
|
16
|
+
price: number | null;
|
|
17
|
+
}[] | null;
|
|
18
|
+
[$tada.fragmentRefs]: {
|
|
19
|
+
PricingTooltip_PriceListChargeFragment: "PriceListCharge";
|
|
20
|
+
};
|
|
21
|
+
}[] | null;
|
|
22
|
+
currencyId: string;
|
|
23
|
+
[$tada.fragmentRefs]: {
|
|
24
|
+
PriceListCardButton_PriceListFragment: "PriceList";
|
|
25
|
+
} & {
|
|
26
|
+
PriceListHasPriceTiers_PriceListFragment: "PriceList";
|
|
27
|
+
} & {
|
|
28
|
+
PricingTooltip_PriceListFragment: "PriceList";
|
|
29
|
+
} & {
|
|
30
|
+
PriceListCardPrice_PriceListFragment: "PriceList";
|
|
31
|
+
} & {
|
|
32
|
+
PriceListCardPriceDescription_PriceListFragment: "PriceList";
|
|
33
|
+
};
|
|
34
|
+
}, {}, {
|
|
35
|
+
fragment: "PriceListCardDesktop_PriceListFragment";
|
|
36
|
+
on: "PriceList";
|
|
37
|
+
masked: true;
|
|
38
|
+
}>;
|
|
39
|
+
declare const PriceListCardDesktop: ({ hideButton, description, disableSelectCurrentPlan, feature, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, noBorder, onClickPriceListCard, }: {
|
|
3
40
|
hideButton?: boolean;
|
|
4
41
|
description: string;
|
|
5
42
|
disableSelectCurrentPlan: boolean;
|
|
6
43
|
feature?: Feature;
|
|
7
44
|
isPriceListCurrentSubscription: boolean;
|
|
8
45
|
isSelected: boolean;
|
|
9
|
-
priceList:
|
|
46
|
+
priceList: FragmentOf<typeof PriceListCardDesktop_PriceListFragment>;
|
|
10
47
|
subscriptionPlan?: Subscription;
|
|
11
48
|
trialRemainingDays?: number;
|
|
12
49
|
noBorder?: boolean;
|
|
13
|
-
onClickPriceListCard?: (priceList:
|
|
50
|
+
onClickPriceListCard?: (priceList: DeprecatedPriceList) => void;
|
|
14
51
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
52
|
export default PriceListCardDesktop;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
+
import { PriceList, Subscription } from '@bunnyapp/common';
|
|
3
|
+
type PlanAddonsCardProps = {
|
|
4
|
+
selectedPriceList: PriceList;
|
|
5
|
+
subscriptions: Subscription[];
|
|
6
|
+
selectedBillingPeriod: BillingPeriod;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const AddonPlans: ({ selectedPriceList, subscriptions, selectedBillingPeriod, className, }: PlanAddonsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const AddonPlanModal_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
charges: {
|
|
4
|
+
featureAddon: boolean | null;
|
|
5
|
+
}[] | null;
|
|
6
|
+
[$tada.fragmentRefs]: {
|
|
7
|
+
PriceListCard_PriceListFragment: "PriceList";
|
|
8
|
+
} & {
|
|
9
|
+
FeatureAddonsList_PriceListFragment: "PriceList";
|
|
10
|
+
};
|
|
11
|
+
}, {}, {
|
|
12
|
+
fragment: "AddonPlanModal_PriceListFragment";
|
|
13
|
+
on: "PriceList";
|
|
14
|
+
masked: true;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function AddonPlanModal({ onClose, priceList: maskedPriceList, }: {
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
priceList: FragmentOf<typeof AddonPlanModal_PriceListFragment> | undefined;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|