@bunnyapp/components 1.0.49 → 1.0.52
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 +300 -400
- package/dist/cjs/src/components/Signup/Signup.d.ts +3 -1
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PriceListSelector.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +5 -4
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +4 -4
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerUtils.d.ts +6 -6
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardFeature.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPrice.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardTitle.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +3 -3
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +3 -3
- package/dist/cjs/src/graphql/mutations/accountSignup.d.ts +2 -1
- package/dist/cjs/src/graphql/mutations/quoteAccountSignup.d.ts +2 -1
- package/dist/cjs/src/graphql/queries/getPriceListChangeOptions.d.ts +9 -0
- package/dist/esm/index.js +300 -400
- package/dist/esm/src/components/Signup/Signup.d.ts +3 -1
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListGrid.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PriceListSelector.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +5 -4
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +4 -4
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerUtils.d.ts +6 -6
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardFeature.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPrice.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardPriceDescription.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardTitle.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +3 -3
- package/dist/esm/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +3 -3
- package/dist/esm/src/graphql/mutations/accountSignup.d.ts +2 -1
- package/dist/esm/src/graphql/mutations/quoteAccountSignup.d.ts +2 -1
- package/dist/esm/src/graphql/queries/getPriceListChangeOptions.d.ts +9 -0
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import "../../styles/index.less";
|
|
3
3
|
import { ShadowType } from "../../types/shadowType";
|
|
4
|
-
export default function Signup({ companyName, priceListCode, returnUrl, isCardEnabled, className, shadow, style, }: {
|
|
4
|
+
export default function Signup({ companyName, priceListCode, returnUrl, isCardEnabled, className, shadow, style, entityId, }: {
|
|
5
5
|
/** The company name to display on the signup page */
|
|
6
6
|
companyName: string;
|
|
7
7
|
/** The price list code to use for the signup */
|
|
@@ -16,4 +16,6 @@ export default function Signup({ companyName, priceListCode, returnUrl, isCardEn
|
|
|
16
16
|
shadow?: ShadowType;
|
|
17
17
|
/** A custom style to apply to the component */
|
|
18
18
|
style?: React.CSSProperties;
|
|
19
|
+
/** The entity ID to use for the signup */
|
|
20
|
+
entityId: string;
|
|
19
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PlanChangeOptions, PriceList, Product, Subscription } from "@bunnyapp/common";
|
|
2
1
|
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { PriceListChangeOptions, PriceList, Subscription, Product } from "@bunnyapp/common";
|
|
3
3
|
type PriceListGridProps = {
|
|
4
4
|
availablePriceLists: PriceList[];
|
|
5
5
|
onChangePriceList: (selectedPriceList: PriceList) => void;
|
|
6
|
-
|
|
6
|
+
priceListChangeOptions?: PriceListChangeOptions;
|
|
7
7
|
selectedPriceList?: PriceList;
|
|
8
8
|
selectedProduct?: Product;
|
|
9
9
|
subscriptions: Subscription[];
|
|
@@ -11,5 +11,5 @@ type PriceListGridProps = {
|
|
|
11
11
|
setPriceListStart: Dispatch<SetStateAction<number>>;
|
|
12
12
|
upgradingSubscriptionState?: Subscription;
|
|
13
13
|
};
|
|
14
|
-
declare const PriceListGrid: ({ availablePriceLists, onChangePriceList,
|
|
14
|
+
declare const PriceListGrid: ({ availablePriceLists, onChangePriceList, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, upgradingSubscriptionState, }: PriceListGridProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default PriceListGrid;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, onChangePriceList,
|
|
1
|
+
import { PriceList, Subscription, PriceListChangeOptions } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, onChangePriceList, priceListChangeOptions, selectedPriceList, subscriptions, upgradingSubscription, }: {
|
|
3
3
|
arePlanChangeOptionsLoading: boolean;
|
|
4
4
|
areSubscriptionsLoading: boolean;
|
|
5
5
|
onChangePriceList: (selectedPriceList: PriceList) => void;
|
|
6
|
-
|
|
6
|
+
priceListChangeOptions?: PriceListChangeOptions | undefined;
|
|
7
7
|
selectedPriceList?: PriceList | undefined;
|
|
8
8
|
subscriptions: Subscription[];
|
|
9
9
|
upgradingSubscription?: Subscription | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const EverythingPlanFeatures: ({
|
|
3
|
-
|
|
1
|
+
import { PriceList, Product } from "@bunnyapp/common";
|
|
2
|
+
declare const EverythingPlanFeatures: ({ availablePriceLists, selectedProduct, }: {
|
|
3
|
+
availablePriceLists: PriceList[];
|
|
4
4
|
selectedProduct?: Product | undefined;
|
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default EverythingPlanFeatures;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Plan, Product } from "@bunnyapp/common";
|
|
2
|
-
declare const PlanFeatures: ({ availablePlansArray,
|
|
2
|
+
declare const PlanFeatures: ({ availablePlansArray, selectedProduct, }: {
|
|
3
3
|
availablePlansArray: Plan[];
|
|
4
|
-
plans?: Plan[] | undefined;
|
|
5
4
|
selectedProduct?: Product | undefined;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default PlanFeatures;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Feature, PriceList,
|
|
2
|
-
declare const PriceListCardDesktop: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick,
|
|
1
|
+
import { Feature, PriceList, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardDesktop: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, priceList, subscriptionPlan, trialRemainingDays, }: {
|
|
3
3
|
description: string;
|
|
4
4
|
disableOnClick: boolean;
|
|
5
5
|
feature?: Feature | undefined;
|
|
6
6
|
isPriceListCurrentSubscription: boolean;
|
|
7
7
|
isSelected: boolean;
|
|
8
8
|
onClick: (priceList: PriceList) => void;
|
|
9
|
-
plan: Plan;
|
|
10
9
|
priceList: PriceList;
|
|
11
10
|
subscriptionPlan?: Subscription | undefined;
|
|
12
11
|
trialRemainingDays?: number | undefined;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Product, PriceList, Subscription, PriceListChangeOptions } from "@bunnyapp/common";
|
|
2
2
|
import { Dispatch, SetStateAction } from "react";
|
|
3
|
+
export declare const PLANS_TO_DISPLAY = 3;
|
|
3
4
|
type PriceListGridDesktopProps = {
|
|
4
5
|
availablePriceLists: PriceList[];
|
|
5
6
|
onChangePriceList: (selectedPriceList: PriceList) => void;
|
|
6
|
-
|
|
7
|
+
priceListChangeOptions?: PriceListChangeOptions;
|
|
7
8
|
priceListStart: number;
|
|
8
|
-
|
|
9
|
+
selectedPriceList?: PriceList;
|
|
9
10
|
selectedProduct?: Product;
|
|
10
11
|
setPriceListStart: Dispatch<SetStateAction<number>>;
|
|
11
12
|
subscriptions: Subscription[];
|
|
12
13
|
trialRemainingDays: number;
|
|
13
14
|
};
|
|
14
|
-
declare const PriceListGridDesktop: ({ availablePriceLists, onChangePriceList,
|
|
15
|
+
declare const PriceListGridDesktop: ({ availablePriceLists, onChangePriceList, priceListChangeOptions, priceListStart, selectedPriceList, selectedProduct, setPriceListStart, subscriptions, trialRemainingDays, }: PriceListGridDesktopProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export default PriceListGridDesktop;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Feature,
|
|
2
|
-
declare const PriceListCardMobile: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick,
|
|
1
|
+
import { Feature, PriceList, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardMobile: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, priceList, subscriptionPlan, trialRemainingDays, }: {
|
|
3
3
|
description: string;
|
|
4
4
|
disableOnClick: boolean;
|
|
5
5
|
feature?: Feature | undefined;
|
|
6
6
|
isPriceListCurrentSubscription: boolean;
|
|
7
7
|
isSelected: boolean;
|
|
8
8
|
onClick: (priceList: PriceList) => void;
|
|
9
|
-
plan: Plan;
|
|
10
9
|
priceList: PriceList;
|
|
11
10
|
subscriptionPlan?: Subscription | undefined;
|
|
12
11
|
trialRemainingDays?: number | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const PriceListGridMobile: ({ availablePriceLists, onChangePriceList,
|
|
1
|
+
import { PriceList, PriceListChangeOptions, Product, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListGridMobile: ({ availablePriceLists, onChangePriceList, priceListChangeOptions, selectedPriceList, selectedProduct, subscriptions, trialRemainingDays, }: {
|
|
3
3
|
availablePriceLists: PriceList[];
|
|
4
4
|
onChangePriceList: (selectedPriceList: PriceList) => void;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
priceListChangeOptions?: PriceListChangeOptions | undefined;
|
|
6
|
+
selectedPriceList?: PriceList | undefined;
|
|
7
7
|
selectedProduct?: Product | undefined;
|
|
8
8
|
subscriptions?: Subscription[] | undefined;
|
|
9
9
|
trialRemainingDays?: number | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getAvailablePlansAndPriceLists: ({ availablePriceLists,
|
|
1
|
+
import { PriceList, PriceListChangeOptions } from "@bunnyapp/common";
|
|
2
|
+
export declare const getAvailablePlansAndPriceLists: ({ availablePriceLists, priceListChangeOptions, priceListStart, }: {
|
|
3
3
|
availablePriceLists: PriceList[];
|
|
4
|
-
|
|
4
|
+
priceListChangeOptions?: PriceListChangeOptions | undefined;
|
|
5
5
|
priceListStart: number;
|
|
6
6
|
}) => {
|
|
7
|
-
availablePlansArray: Plan[];
|
|
7
|
+
availablePlansArray: import("@bunnyapp/common").Plan[];
|
|
8
8
|
displayPriceLists: PriceList[];
|
|
9
9
|
};
|
|
10
|
-
export declare const everythingInPlusString: ({
|
|
11
|
-
|
|
10
|
+
export declare const everythingInPlusString: ({ priceList }: {
|
|
11
|
+
priceList: PriceList;
|
|
12
12
|
}) => string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const PriceListCard: ({ isSelected, onClick,
|
|
1
|
+
import { PriceList, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCard: ({ isSelected, onClick, priceList, subscriptions, trialRemainingDays, }: {
|
|
3
3
|
isSelected: boolean;
|
|
4
4
|
onClick: (priceList: PriceList) => void;
|
|
5
|
-
plan: Plan;
|
|
6
5
|
priceList: PriceList;
|
|
7
6
|
subscriptions?: Subscription[] | undefined;
|
|
8
7
|
trialRemainingDays?: number | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const PriceListCardButton: ({ disableOnClick, isPriceListCurrentSubscription, isSelected,
|
|
1
|
+
import { PriceList, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardButton: ({ disableOnClick, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, }: {
|
|
3
3
|
disableOnClick: boolean;
|
|
4
4
|
isPriceListCurrentSubscription: boolean;
|
|
5
5
|
isSelected: boolean;
|
|
6
|
-
|
|
6
|
+
priceList: PriceList;
|
|
7
7
|
subscriptionPlan?: Subscription | undefined;
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default PriceListCardButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const PriceListCardFeature: ({
|
|
1
|
+
import { PlanFeature } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardFeature: ({ index, planFeature, }: {
|
|
3
3
|
index: number;
|
|
4
|
-
|
|
4
|
+
planFeature: PlanFeature;
|
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default PriceListCardFeature;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const PriceListCardPrice: ({
|
|
3
|
-
plan: Plan;
|
|
1
|
+
import { PriceList } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardPrice: ({ priceList }: {
|
|
4
3
|
priceList: PriceList;
|
|
5
4
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default PriceListCardPrice;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Feature,
|
|
2
|
-
declare const PriceListCardPriceDescription: ({ feature,
|
|
1
|
+
import { Feature, PriceList } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardPriceDescription: ({ feature, priceList, }: {
|
|
3
3
|
feature?: Feature | undefined;
|
|
4
|
-
plan: Plan;
|
|
5
4
|
priceList: PriceList;
|
|
6
5
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
6
|
export default PriceListCardPriceDescription;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const PriceListCardTitle: ({
|
|
3
|
-
|
|
1
|
+
import { PriceList } from "@bunnyapp/common";
|
|
2
|
+
declare const PriceListCardTitle: ({ priceList, isPriceListCurrentSubscription, trialRemainingDays, }: {
|
|
3
|
+
priceList: PriceList;
|
|
4
4
|
isPriceListCurrentSubscription: boolean;
|
|
5
5
|
trialRemainingDays?: number | undefined;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const createPlanDescription: (
|
|
3
|
-
export declare const getActivePlanPriceData: (
|
|
1
|
+
import { PriceList, PriceListCharge, Subscription } from "@bunnyapp/common";
|
|
2
|
+
export declare const createPlanDescription: (priceList: PriceList) => string;
|
|
3
|
+
export declare const getActivePlanPriceData: (priceList?: PriceList, selectedPriceList?: PriceList) => {
|
|
4
4
|
activeCharge: PriceListCharge | undefined;
|
|
5
5
|
} | undefined;
|
|
6
6
|
export declare const isPriceListDisabled: ({ priceList, subscriptions, upgradingSubscription, }: {
|
package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const SubscriptionCardActions: ({ onChangePlanClick, onCancelSubscriptionClick,
|
|
1
|
+
import { PriceListChangeOptions, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionCardActions: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, }: {
|
|
3
3
|
onChangePlanClick: (subscription: Subscription) => void;
|
|
4
4
|
onCancelSubscriptionClick: (subscription: Subscription) => void;
|
|
5
|
-
|
|
5
|
+
priceListChangeOptions?: PriceListChangeOptions | undefined;
|
|
6
6
|
subscription: Subscription;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
8
|
export default SubscriptionCardActions;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const SubscriptionCardHeader: ({ onChangePlanClick, onCancelSubscriptionClick,
|
|
1
|
+
import { PriceListChangeOptions, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionCardHeader: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, }: {
|
|
3
3
|
onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
|
|
4
4
|
onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
|
|
5
|
-
|
|
5
|
+
priceListChangeOptions?: PriceListChangeOptions | undefined;
|
|
6
6
|
subscription: Subscription;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default SubscriptionCardHeader;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const SubscriptionsList: ({ hideExpired, onChangePlanClick, onCancelSubscriptionClick,
|
|
1
|
+
import { PriceListChangeOptions, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionsList: ({ hideExpired, onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscriptions, }: {
|
|
3
3
|
hideExpired: boolean;
|
|
4
4
|
onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
|
|
5
5
|
onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
|
|
6
|
-
|
|
6
|
+
priceListChangeOptions?: PriceListChangeOptions | undefined;
|
|
7
7
|
subscriptions: Subscription[];
|
|
8
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default SubscriptionsList;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const SubscriptionCardDesktop: ({ onChangePlanClick, onCancelSubscriptionClick,
|
|
1
|
+
import { PriceListChangeOptions, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionCardDesktop: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, }: {
|
|
3
3
|
onChangePlanClick?: ((subscription: Subscription) => void) | undefined;
|
|
4
4
|
onCancelSubscriptionClick?: ((subscription: Subscription) => void) | undefined;
|
|
5
|
-
|
|
5
|
+
priceListChangeOptions?: PriceListChangeOptions | undefined;
|
|
6
6
|
subscription: Subscription;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default SubscriptionCardDesktop;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const accountSignup: ({ token, apiHost, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, }: {
|
|
1
|
+
declare const accountSignup: ({ token, apiHost, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, entityId, }: {
|
|
2
2
|
token: string;
|
|
3
3
|
apiHost: string;
|
|
4
4
|
accountId: string;
|
|
@@ -7,5 +7,6 @@ declare const accountSignup: ({ token, apiHost, accountId, quoteId, paymentToken
|
|
|
7
7
|
paymentMethodId?: string | undefined;
|
|
8
8
|
pluginId: string;
|
|
9
9
|
priceListCode: string;
|
|
10
|
+
entityId: string;
|
|
10
11
|
}) => Promise<any>;
|
|
11
12
|
export default accountSignup;
|
|
@@ -3,11 +3,12 @@ type BillingContact = {
|
|
|
3
3
|
lastName: string;
|
|
4
4
|
email: string;
|
|
5
5
|
};
|
|
6
|
-
declare const quoteAccountSignup: ({ token, apiHost, priceListCode, accountName, billingContact, }: {
|
|
6
|
+
declare const quoteAccountSignup: ({ token, apiHost, priceListCode, accountName, billingContact, entityId, }: {
|
|
7
7
|
token?: string | undefined;
|
|
8
8
|
apiHost: string;
|
|
9
9
|
priceListCode: string;
|
|
10
10
|
accountName: string;
|
|
11
11
|
billingContact: BillingContact;
|
|
12
|
+
entityId: string;
|
|
12
13
|
}) => Promise<any>;
|
|
13
14
|
export default quoteAccountSignup;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, productId, token, upgradingSubscription, }: {
|
|
3
|
+
apiHost: string;
|
|
4
|
+
isInPreviewMode?: boolean | undefined;
|
|
5
|
+
productId?: string | undefined;
|
|
6
|
+
token: string;
|
|
7
|
+
upgradingSubscription?: Subscription | undefined;
|
|
8
|
+
}) => Promise<any>;
|
|
9
|
+
export default getPriceListChangeOptions;
|