@bunnyapp/components 1.6.0-beta.16 → 1.6.0-beta.17
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/dist/cjs/index.js +5800 -5460
- 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/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/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/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 +2 -1
- package/dist/cjs/types/src/hooks/useToggleAddonQuoteChange.d.ts +1 -1
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +4 -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/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 +1 -1
- package/dist/esm/index.js +5802 -5462
- 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/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/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/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 +2 -1
- package/dist/esm/types/src/hooks/useToggleAddonQuoteChange.d.ts +1 -1
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +4 -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/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 +1 -1
- package/package.json +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -11
- package/dist/cjs/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
- package/dist/cjs/types/src/utils/addonPlanUtils.d.ts +0 -8
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanAddonsCard.d.ts +0 -11
- package/dist/esm/types/src/graphql/queries/getAddonPlans.d.ts +0 -37
- package/dist/esm/types/src/utils/addonPlanUtils.d.ts +0 -8
|
@@ -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,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,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;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PriceList as DeprecatedPriceList } from '@bunnyapp/common';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const AddonPlanRow_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
id: string;
|
|
5
|
+
plan: {
|
|
6
|
+
description: string | null;
|
|
7
|
+
name: string;
|
|
8
|
+
} | null;
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
PriceListCardPriceDescription_PriceListFragment: "PriceList";
|
|
11
|
+
} & {
|
|
12
|
+
PriceListCardPrice_PriceListFragment: "PriceList";
|
|
13
|
+
};
|
|
14
|
+
}, {}, {
|
|
15
|
+
fragment: "AddonPlanRow_PriceListFragment";
|
|
16
|
+
on: "PriceList";
|
|
17
|
+
masked: true;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function AddonPlanRow({ addonPriceList: maskedAddonPriceList, selectedPriceList, onClickSelect, isPurchased, }: {
|
|
20
|
+
addonPriceList: FragmentOf<typeof AddonPlanRow_PriceListFragment>;
|
|
21
|
+
selectedPriceList: DeprecatedPriceList;
|
|
22
|
+
onClickSelect: () => void;
|
|
23
|
+
isPurchased: boolean;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const AddonPlans_PlanFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
priceLists: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
periodMonths: number | null;
|
|
8
|
+
[$tada.fragmentRefs]: {
|
|
9
|
+
AddonPlanModal_PriceListFragment: "PriceList";
|
|
10
|
+
} & {
|
|
11
|
+
AddonPlanRow_PriceListFragment: "PriceList";
|
|
12
|
+
};
|
|
13
|
+
}[];
|
|
14
|
+
}, {}, {
|
|
15
|
+
fragment: "AddonPlans_PlanFragment";
|
|
16
|
+
on: "Plan";
|
|
17
|
+
masked: true;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const getAddonPlans: ({ token, id, apiHost, }: {
|
|
2
|
+
token?: string;
|
|
3
|
+
id: string;
|
|
4
|
+
apiHost: string;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
priceLists: {
|
|
7
|
+
isVisible: boolean | null;
|
|
8
|
+
}[];
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
AddonPlans_PlanFragment: "Plan";
|
|
11
|
+
};
|
|
12
|
+
}[] | undefined>;
|
|
13
|
+
export default getAddonPlans;
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
import { Feature, PriceList, Subscription } from '@bunnyapp/common';
|
|
2
|
-
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const PriceListCardMobile_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
plan: {
|
|
5
|
+
name: string;
|
|
6
|
+
} | null;
|
|
7
|
+
[$tada.fragmentRefs]: {
|
|
8
|
+
PriceListCardPriceDescription_PriceListFragment: "PriceList";
|
|
9
|
+
} & {
|
|
10
|
+
PriceListCardButton_PriceListFragment: "PriceList";
|
|
11
|
+
} & {
|
|
12
|
+
PriceListCardPrice_PriceListFragment: "PriceList";
|
|
13
|
+
};
|
|
14
|
+
}, {}, {
|
|
15
|
+
fragment: "PriceListCardMobile_PriceListFragment";
|
|
16
|
+
on: "PriceList";
|
|
17
|
+
masked: true;
|
|
18
|
+
}>;
|
|
19
|
+
declare const PriceListCardMobile: ({ description, feature, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, disableOnClickPriceListCard, onClickPriceListCard, }: {
|
|
3
20
|
description: string;
|
|
4
21
|
feature?: Feature;
|
|
5
22
|
isPriceListCurrentSubscription: boolean;
|
|
6
23
|
isSelected: boolean;
|
|
7
|
-
priceList:
|
|
24
|
+
priceList: FragmentOf<typeof PriceListCardMobile_PriceListFragment>;
|
|
8
25
|
subscriptionPlan?: Subscription;
|
|
9
26
|
trialRemainingDays?: number;
|
|
10
27
|
disableOnClickPriceListCard: boolean;
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import { Feature
|
|
2
|
-
|
|
1
|
+
import { Feature } from '@bunnyapp/common';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const PriceListCardPriceDescription_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
plan: {
|
|
5
|
+
pricingDescription: string | null;
|
|
6
|
+
} | null;
|
|
7
|
+
showPriceAsMonthly: boolean | null;
|
|
8
|
+
periodMonths: number | null;
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
DoesPriceListHaveFlatFeeCharges_PriceListFragment: "PriceList";
|
|
11
|
+
} & {
|
|
12
|
+
HasMultipleRecurringCharges_PriceListFragment: "PriceList";
|
|
13
|
+
};
|
|
14
|
+
}, {}, {
|
|
15
|
+
fragment: "PriceListCardPriceDescription_PriceListFragment";
|
|
16
|
+
on: "PriceList";
|
|
17
|
+
masked: true;
|
|
18
|
+
}>;
|
|
19
|
+
declare const PriceListCardPriceDescription: ({ feature, priceList: maskedPriceList, }: {
|
|
3
20
|
feature?: Feature;
|
|
4
|
-
priceList:
|
|
21
|
+
priceList: FragmentOf<typeof PriceListCardPriceDescription_PriceListFragment>;
|
|
5
22
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
23
|
export default PriceListCardPriceDescription;
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const HasMultipleRecurringCharges_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
charges: {
|
|
4
|
+
chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
|
|
5
|
+
featureAddon: boolean | null;
|
|
6
|
+
}[] | null;
|
|
7
|
+
}, {}, {
|
|
8
|
+
fragment: "HasMultipleRecurringCharges_PriceListFragment";
|
|
9
|
+
on: "PriceList";
|
|
10
|
+
masked: true;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const hasMultipleRecurringCharges: (maskedPriceList: FragmentOf<typeof HasMultipleRecurringCharges_PriceListFragment>) => boolean;
|
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import { PriceList, Subscription } from '@bunnyapp/common';
|
|
2
|
-
|
|
1
|
+
import { PriceList as DeprecatedPriceList, Subscription } from '@bunnyapp/common';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const PriceListCard_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
id: string;
|
|
5
|
+
plan: {
|
|
6
|
+
description: string | null;
|
|
7
|
+
id: string;
|
|
8
|
+
} | null;
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
PriceListCardDesktop_PriceListFragment: "PriceList";
|
|
11
|
+
} & {
|
|
12
|
+
PriceListCardMobile_PriceListFragment: "PriceList";
|
|
13
|
+
};
|
|
14
|
+
}, {}, {
|
|
15
|
+
fragment: "PriceListCard_PriceListFragment";
|
|
16
|
+
on: "PriceList";
|
|
17
|
+
masked: true;
|
|
18
|
+
}>;
|
|
19
|
+
declare const PriceListCard: ({ hideButton, isSelected, priceList: maskedPriceList, subscriptions, trialRemainingDays, noBorder, onClickPriceListCard, disableCurrentPlan, }: {
|
|
3
20
|
hideButton?: boolean;
|
|
4
21
|
isSelected: boolean;
|
|
5
|
-
priceList:
|
|
22
|
+
priceList: FragmentOf<typeof PriceListCard_PriceListFragment>;
|
|
6
23
|
subscriptions?: Subscription[];
|
|
7
24
|
trialRemainingDays?: number;
|
|
8
25
|
noBorder?: boolean;
|
|
9
|
-
onClickPriceListCard?: (priceList:
|
|
26
|
+
onClickPriceListCard?: (priceList: DeprecatedPriceList) => void;
|
|
10
27
|
disableCurrentPlan?: boolean;
|
|
11
28
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
29
|
export default PriceListCard;
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Subscription } from '@bunnyapp/common';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const PriceListCardButton_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
id: string;
|
|
5
|
+
plan: {
|
|
6
|
+
id: string;
|
|
7
|
+
pricingStyle: "PRICED" | "FREE" | "CONTACT_US";
|
|
8
|
+
contactUsLabel: string | null;
|
|
9
|
+
} | null;
|
|
10
|
+
}, {}, {
|
|
11
|
+
fragment: "PriceListCardButton_PriceListFragment";
|
|
12
|
+
on: "PriceList";
|
|
13
|
+
masked: true;
|
|
14
|
+
}>;
|
|
15
|
+
declare const PriceListCardButton: ({ disableSelectCurrentPlan, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, }: {
|
|
3
16
|
disableSelectCurrentPlan: boolean;
|
|
4
17
|
isPriceListCurrentSubscription: boolean;
|
|
5
18
|
isSelected: boolean;
|
|
6
|
-
priceList:
|
|
19
|
+
priceList: FragmentOf<typeof PriceListCardButton_PriceListFragment>;
|
|
7
20
|
subscriptionPlan?: Subscription;
|
|
8
21
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
22
|
export default PriceListCardButton;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PriceListCardPrice_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
[$tada.fragmentRefs]: {
|
|
4
|
+
PriceListPriceText_PriceListFragment: "PriceList";
|
|
5
|
+
};
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "PriceListCardPrice_PriceListFragment";
|
|
8
|
+
on: "PriceList";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
11
|
+
declare const PriceListCardPrice: ({ className, priceList: maskedPriceList, }: {
|
|
3
12
|
className?: string;
|
|
4
|
-
priceList:
|
|
13
|
+
priceList: FragmentOf<typeof PriceListCardPrice_PriceListFragment>;
|
|
5
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
15
|
export default PriceListCardPrice;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
priceList: PriceList;
|
|
1
|
+
declare const PriceListCardTitle: ({ planName, isPriceListCurrentSubscription, trialRemainingDays, }: {
|
|
2
|
+
planName: string;
|
|
4
3
|
isPriceListCurrentSubscription: boolean;
|
|
5
4
|
trialRemainingDays?: number;
|
|
6
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PriceList, PriceListCharge, Subscription } from '@bunnyapp/common';
|
|
2
|
-
export declare const createPlanDescription: (
|
|
2
|
+
export declare const createPlanDescription: (planDescription: string) => string;
|
|
3
3
|
export declare const getActivePlanPriceData: (priceList?: PriceList, selectedPriceList?: PriceList) => {
|
|
4
4
|
activeCharge: PriceListCharge | undefined;
|
|
5
5
|
} | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Transaction, TransactionKind } from '@bunnyapp/common';
|
|
3
|
+
import { TransactionDateType } from '../../contexts/TransactionsListContext';
|
|
3
4
|
import { ShadowType } from '../../types/shadowType';
|
|
4
5
|
import { TransactionListColumnType } from './transactionsList/TransactionsListDesktop';
|
|
5
|
-
import { TransactionDateType } from '../../contexts/TransactionsListContext';
|
|
6
6
|
export default function Transactions({ transactionComponent, showSearchBar, showTitle, title, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, style, filter, noTransactionsMessage, filterTransactions, sortTransactions, transactionDateType, hidePaymentForm, }: {
|
|
7
7
|
/** A custom component to render instead of the default invoice component */
|
|
8
8
|
transactionComponent?: React.ReactNode;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PlanPricingStyles, PricingModel } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
1
|
import { FragmentOf } from 'gql.tada';
|
|
3
2
|
export declare const PricingTooltip_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
3
|
priceListChargeTiers: {
|
|
@@ -13,6 +12,8 @@ export declare const PricingTooltip_PriceListChargeFragment: import("gql.tada").
|
|
|
13
12
|
basePrice: number;
|
|
14
13
|
name: string;
|
|
15
14
|
[$tada.fragmentRefs]: {
|
|
15
|
+
ChargeHasPriceTiers_PriceListChargeFragment: "PriceListCharge";
|
|
16
|
+
} & {
|
|
16
17
|
ChargePriceTiers_PriceListChargeFragment: "PriceListCharge";
|
|
17
18
|
};
|
|
18
19
|
}, {}, {
|
|
@@ -20,22 +21,23 @@ export declare const PricingTooltip_PriceListChargeFragment: import("gql.tada").
|
|
|
20
21
|
on: "PriceListCharge";
|
|
21
22
|
masked: true;
|
|
22
23
|
}>;
|
|
23
|
-
export declare const
|
|
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, }: {
|
|
24
39
|
className?: string;
|
|
25
40
|
priceListCharges: FragmentOf<typeof PricingTooltip_PriceListChargeFragment>[];
|
|
26
41
|
currencyId: string;
|
|
27
|
-
priceList:
|
|
28
|
-
showPriceAsMonthly?: boolean;
|
|
29
|
-
periodMonths?: number;
|
|
30
|
-
charges: {
|
|
31
|
-
pricingModel?: PricingModel;
|
|
32
|
-
basePrice?: number;
|
|
33
|
-
}[];
|
|
34
|
-
plan: {
|
|
35
|
-
pricingStyle?: PlanPricingStyles;
|
|
36
|
-
};
|
|
37
|
-
currencyId?: string;
|
|
38
|
-
monthlyBasePrice?: number;
|
|
39
|
-
basePrice?: number;
|
|
40
|
-
};
|
|
42
|
+
priceList: FragmentOf<typeof PricingTooltip_PriceListFragment>;
|
|
41
43
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PriceListHasPriceTiers_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
3
|
charges: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 };
|
|
@@ -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;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PriceListChangeOptions } from '@bunnyapp/common';
|
|
2
|
-
declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, token, subscriptionId, }: {
|
|
2
|
+
declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, token, subscriptionId, productId, }: {
|
|
3
3
|
apiHost: string;
|
|
4
4
|
isInPreviewMode?: boolean;
|
|
5
5
|
token?: string;
|
|
6
6
|
subscriptionId?: string;
|
|
7
|
+
productId?: string;
|
|
7
8
|
}) => Promise<PriceListChangeOptions>;
|
|
8
9
|
export default getPriceListChangeOptions;
|
|
@@ -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;
|
|
@@ -87,5 +87,9 @@ declare const QueryKeyFactory: {
|
|
|
87
87
|
priceListId: string | undefined;
|
|
88
88
|
token?: string;
|
|
89
89
|
}) => (string | undefined)[];
|
|
90
|
+
addonPlansKey: ({ priceListId, token }: {
|
|
91
|
+
priceListId: string;
|
|
92
|
+
token?: string;
|
|
93
|
+
}) => string[];
|
|
90
94
|
};
|
|
91
95
|
export default QueryKeyFactory;
|