@bunnyapp/components 1.0.58-beta.0.5 → 1.0.60
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 +338 -439
- package/dist/cjs/src/components/Checkout/Checkout.d.ts +2 -2
- package/dist/cjs/src/components/Checkout/CouponComponent.d.ts +7 -0
- package/dist/cjs/src/components/Checkout/QuoteCheckout.d.ts +2 -2
- package/dist/cjs/src/components/Invoice/Invoice.d.ts +2 -2
- package/dist/cjs/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
- package/dist/cjs/src/components/LegacyInvoicePDF.d.ts +4 -3
- package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +1 -1
- package/dist/cjs/src/components/PaymentForm/PaymentMethodSelector.d.ts +1 -1
- package/dist/cjs/src/components/Quote/Quote.stories.d.ts +5 -5
- package/dist/cjs/src/components/Signup/PriceListDisplay.d.ts +4 -3
- package/dist/cjs/src/components/Signup/Signup.d.ts +5 -5
- package/dist/cjs/src/components/Signup/Signup.stories.d.ts +3 -2
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +1 -1
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +1 -1
- package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +1 -1
- package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +1 -2
- package/dist/cjs/src/components/Subscriptions/SubscriptionsContext.d.ts +2 -3
- package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +2 -2
- package/dist/cjs/src/components/icons/CardIcon.d.ts +1 -3
- package/dist/cjs/src/graphql/mutations/checkout.d.ts +1 -1
- package/dist/cjs/src/graphql/mutations/quoteAddCoupon.d.ts +1 -1
- package/dist/cjs/src/graphql/mutations/quoteCompose.d.ts +1 -1
- package/dist/cjs/src/graphql/queries/getBillingDetails.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getBranding.d.ts +2 -2
- package/dist/cjs/src/graphql/queries/getFeatureUsage.d.ts +1 -1
- package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +1 -1
- package/dist/cjs/src/graphql/queries/getPlanChangeOptions.d.ts +1 -1
- package/dist/cjs/src/graphql/queries/getPriceList.d.ts +1 -1
- package/dist/cjs/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
- package/dist/cjs/src/graphql/queries/getQuote.d.ts +1 -1
- package/dist/cjs/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
- package/dist/cjs/src/mocks/handlers.d.ts +1 -1
- package/dist/cjs/src/utils/apiUtils.d.ts +0 -8
- package/dist/esm/index.js +320 -421
- package/dist/esm/src/components/Checkout/Checkout.d.ts +2 -2
- package/dist/esm/src/components/Checkout/CouponComponent.d.ts +7 -0
- package/dist/esm/src/components/Checkout/QuoteCheckout.d.ts +2 -2
- package/dist/esm/src/components/Invoice/Invoice.d.ts +2 -2
- package/dist/esm/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
- package/dist/esm/src/components/LegacyInvoicePDF.d.ts +4 -3
- package/dist/esm/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/PaymentMethodSelector.d.ts +1 -1
- package/dist/esm/src/components/Quote/Quote.stories.d.ts +5 -5
- package/dist/esm/src/components/Signup/PriceListDisplay.d.ts +4 -3
- package/dist/esm/src/components/Signup/Signup.d.ts +5 -5
- package/dist/esm/src/components/Signup/Signup.stories.d.ts +3 -2
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +1 -1
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +1 -1
- package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +1 -1
- package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +1 -2
- package/dist/esm/src/components/Subscriptions/SubscriptionsContext.d.ts +2 -3
- package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +2 -2
- package/dist/esm/src/components/icons/CardIcon.d.ts +1 -3
- package/dist/esm/src/graphql/mutations/checkout.d.ts +1 -1
- package/dist/esm/src/graphql/mutations/quoteAddCoupon.d.ts +1 -1
- package/dist/esm/src/graphql/mutations/quoteCompose.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getBillingDetails.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getBranding.d.ts +2 -2
- package/dist/esm/src/graphql/queries/getFeatureUsage.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getPlanChangeOptions.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getPriceList.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getQuote.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
- package/dist/esm/src/mocks/handlers.d.ts +1 -1
- package/dist/esm/src/utils/apiUtils.d.ts +0 -8
- package/dist/index.d.ts +4 -5
- package/package.json +3 -3
- package/dist/cjs/src/components/PaymentForm/CouponEditor.d.ts +0 -8
- package/dist/esm/src/components/PaymentForm/CouponEditor.d.ts +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PaymentMethod } from
|
|
2
|
-
import { CheckoutProps } from
|
|
1
|
+
import { PaymentMethod } from "@bunnyapp/common";
|
|
2
|
+
import { CheckoutProps } from "../PaymentForm/PaymentFormTypes";
|
|
3
3
|
interface CheckoutComponentProps extends CheckoutProps {
|
|
4
4
|
isMobile: boolean;
|
|
5
5
|
token?: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Quote } from "@bunnyapp/common";
|
|
2
|
+
declare const CouponComponent: ({ quote, onSuccess, onFail, }: {
|
|
3
|
+
quote: Quote;
|
|
4
|
+
onSuccess?: ((couponCode: string) => void) | undefined;
|
|
5
|
+
onFail?: ((error: any) => void) | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default CouponComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Account, PaymentMethod, Quote, TaxationRequiredAccountFields } from
|
|
2
|
-
import { InvoiceQuoteParentProps } from
|
|
1
|
+
import { Account, PaymentMethod, Quote, TaxationRequiredAccountFields } from "@bunnyapp/common";
|
|
2
|
+
import { InvoiceQuoteParentProps } from "../PaymentForm/PaymentFormTypes";
|
|
3
3
|
interface QuoteCheckoutProps extends InvoiceQuoteParentProps {
|
|
4
4
|
account: Account;
|
|
5
5
|
quote: Quote;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { InvoiceQuoteContextProps } from
|
|
1
|
+
import "../../styles/index.less";
|
|
2
|
+
import { InvoiceQuoteContextProps } from "./InvoiceQuoteContext";
|
|
3
3
|
export default function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onInvoiceLoaded, }: InvoiceQuoteContextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { FormattedInvoice } from
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { FormattedInvoice } from "@bunnyapp/common";
|
|
3
3
|
declare const InvoiceQuoteView: ({ children, formattedInvoice, html, backButtonName, onBackButtonClick, onDownloadError, }: {
|
|
4
4
|
html: string;
|
|
5
5
|
children?: ReactNode;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export default function
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default function InvoicePDF({ invoiceUuid, apiHost, token, }: {
|
|
2
|
+
invoiceUuid?: string;
|
|
3
|
+
apiHost: string;
|
|
4
|
+
token?: string;
|
|
4
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormattedInvoice, PaymentMethod, PluginData, Quote } from
|
|
1
|
+
import { FormattedInvoice, PaymentMethod, PluginData, Quote } from "@bunnyapp/common";
|
|
2
2
|
export declare function usePay({ onPaymentSuccess, onPaymentError, quote, invoice, storedPaymentMethod, plugin, }: {
|
|
3
3
|
onPaymentSuccess: (response: any) => void;
|
|
4
4
|
onPaymentError?: (error: any) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginData } from
|
|
1
|
+
import { PluginData } from "@bunnyapp/common";
|
|
2
2
|
declare const PaymentMethodSelector: ({ paymentMethodAllowedPlugins, onSelect, value, }: {
|
|
3
3
|
onSelect: (paymentPlugin?: PluginData) => void;
|
|
4
4
|
paymentMethodAllowedPlugins?: PluginData[] | undefined;
|
|
@@ -18,11 +18,11 @@ export declare const Default: import("@storybook/core/csf").StoryAnnotations<imp
|
|
|
18
18
|
onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
className?: string | undefined;
|
|
21
|
+
id?: string | undefined;
|
|
21
22
|
backButtonName?: string | undefined;
|
|
22
23
|
onBackButtonClick?: (() => void) | undefined;
|
|
23
24
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
24
25
|
hideDownloadButton?: boolean | undefined;
|
|
25
|
-
id?: string | undefined;
|
|
26
26
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
27
27
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
28
28
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -43,11 +43,11 @@ export declare const NoShadow: import("@storybook/core/csf").StoryAnnotations<im
|
|
|
43
43
|
onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
|
|
44
44
|
}, {
|
|
45
45
|
className?: string | undefined;
|
|
46
|
+
id?: string | undefined;
|
|
46
47
|
backButtonName?: string | undefined;
|
|
47
48
|
onBackButtonClick?: (() => void) | undefined;
|
|
48
49
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
49
50
|
hideDownloadButton?: boolean | undefined;
|
|
50
|
-
id?: string | undefined;
|
|
51
51
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
52
52
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
53
53
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -68,11 +68,11 @@ export declare const Mobile: import("@storybook/core/csf").StoryAnnotations<impo
|
|
|
68
68
|
onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
className?: string | undefined;
|
|
71
|
+
id?: string | undefined;
|
|
71
72
|
backButtonName?: string | undefined;
|
|
72
73
|
onBackButtonClick?: (() => void) | undefined;
|
|
73
74
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
74
75
|
hideDownloadButton?: boolean | undefined;
|
|
75
|
-
id?: string | undefined;
|
|
76
76
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
77
77
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
78
78
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -93,11 +93,11 @@ export declare const CustomClassName: import("@storybook/core/csf").StoryAnnotat
|
|
|
93
93
|
onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
|
|
94
94
|
}, {
|
|
95
95
|
className?: string | undefined;
|
|
96
|
+
id?: string | undefined;
|
|
96
97
|
backButtonName?: string | undefined;
|
|
97
98
|
onBackButtonClick?: (() => void) | undefined;
|
|
98
99
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
99
100
|
hideDownloadButton?: boolean | undefined;
|
|
100
|
-
id?: string | undefined;
|
|
101
101
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
102
102
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
103
103
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -121,11 +121,11 @@ export declare const DarkMode: import("@storybook/core/csf").StoryAnnotations<im
|
|
|
121
121
|
onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
|
|
122
122
|
}, {
|
|
123
123
|
className?: string | undefined;
|
|
124
|
+
id?: string | undefined;
|
|
124
125
|
backButtonName?: string | undefined;
|
|
125
126
|
onBackButtonClick?: (() => void) | undefined;
|
|
126
127
|
shadow?: import("../../types/shadowType").ShadowType | undefined;
|
|
127
128
|
hideDownloadButton?: boolean | undefined;
|
|
128
|
-
id?: string | undefined;
|
|
129
129
|
onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
|
|
130
130
|
invoiceQuoteViewComponent?: import("react").ReactNode;
|
|
131
131
|
onInvoiceDownloadError?: (() => void) | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PriceList } from
|
|
3
|
-
export default function PriceListDisplay({ priceListData }: {
|
|
1
|
+
import "../../styles/index.less";
|
|
2
|
+
import { PriceList } from "@bunnyapp/common";
|
|
3
|
+
export default function PriceListDisplay({ priceListData, topNavImageUrl, }: {
|
|
4
4
|
priceListData?: PriceList;
|
|
5
|
+
topNavImageUrl: string;
|
|
5
6
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
import { ShadowType } from
|
|
4
|
-
export default function Signup({ companyName, priceListCode, returnUrl,
|
|
2
|
+
import "../../styles/index.less";
|
|
3
|
+
import { ShadowType } from "../../types/shadowType";
|
|
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 */
|
|
8
8
|
priceListCode: string;
|
|
9
9
|
/** The return URL to that customers can be redirected to after signup */
|
|
10
10
|
returnUrl?: string;
|
|
11
|
-
/**
|
|
12
|
-
|
|
11
|
+
/** Whether or not to display signup within a card */
|
|
12
|
+
isCardEnabled?: boolean;
|
|
13
13
|
/** A custom class name to apply to the component */
|
|
14
14
|
className?: string;
|
|
15
15
|
/** The shadow level to apply to the component */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from
|
|
2
|
-
import Signup from
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import Signup from "./Signup";
|
|
3
3
|
declare const meta: Meta<typeof Signup>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
+
export declare const NoCard: Story;
|
|
7
8
|
export declare const Mobile: Story;
|
|
8
9
|
export declare const CustomClassName: Story;
|
|
9
10
|
export declare const DarkMode: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Feature, PriceList, Subscription } from
|
|
1
|
+
import { Feature, PriceList, Subscription } from "@bunnyapp/common";
|
|
2
2
|
declare const PriceListCardDesktop: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, priceList, subscriptionPlan, trialRemainingDays, }: {
|
|
3
3
|
description: string;
|
|
4
4
|
disableOnClick: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PriceList, Subscription } from
|
|
1
|
+
import { PriceList, Subscription } from "@bunnyapp/common";
|
|
2
2
|
declare const PriceListCard: ({ isSelected, onClick, priceList, subscriptions, trialRemainingDays, }: {
|
|
3
3
|
isSelected: boolean;
|
|
4
4
|
onClick: (priceList: PriceList) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PriceList, Subscription } from
|
|
1
|
+
import { PriceList, Subscription } from "@bunnyapp/common";
|
|
2
2
|
declare const PriceListCardButton: ({ disableOnClick, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, }: {
|
|
3
3
|
disableOnClick: boolean;
|
|
4
4
|
isPriceListCurrentSubscription: boolean;
|
|
@@ -3,7 +3,7 @@ export type EditingQuoteDataType = {
|
|
|
3
3
|
id: string;
|
|
4
4
|
isTrial: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, hideTitle,
|
|
6
|
+
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, hideTitle, hideExpiredToggle, }: {
|
|
7
7
|
handlePortalErrors?: ((errors: any) => void) | undefined;
|
|
8
8
|
companyName: string;
|
|
9
9
|
isInPreviewMode?: boolean | undefined;
|
|
@@ -16,7 +16,6 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
|
|
|
16
16
|
} | undefined;
|
|
17
17
|
noSubscriptionsComponent?: React.ReactNode;
|
|
18
18
|
hideTitle?: boolean | undefined;
|
|
19
|
-
hideExpired?: boolean | undefined;
|
|
20
19
|
hideExpiredToggle?: boolean | undefined;
|
|
21
20
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
export default SubscriptionsWrapper;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { QuotePreviewData, Subscription } from
|
|
2
|
+
import { QuotePreviewData, Subscription } from "@bunnyapp/common";
|
|
3
3
|
export type SubscriptionsContextValues = {
|
|
4
4
|
gap?: number;
|
|
5
|
-
shadow?:
|
|
5
|
+
shadow?: "none" | "sm" | "md" | "lg";
|
|
6
6
|
showTitle?: boolean;
|
|
7
7
|
className?: string;
|
|
8
8
|
subscriptionProductNameStyle?: React.CSSProperties;
|
|
9
9
|
productId?: string;
|
|
10
10
|
isInPreviewMode: boolean;
|
|
11
|
-
hideExpired?: boolean;
|
|
12
11
|
upgradingSubscription?: Subscription;
|
|
13
12
|
setUpgradingSubscription: React.Dispatch<React.SetStateAction<Subscription | undefined>>;
|
|
14
13
|
updatingChargeQuantityId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Quote, Subscription } from
|
|
2
|
-
import { EditingQuoteDataType } from
|
|
1
|
+
import { Quote, Subscription } from "@bunnyapp/common";
|
|
2
|
+
import { EditingQuoteDataType } from "../../SubscriptionsListContainer";
|
|
3
3
|
export declare const QUANTITY_CHANGE_HEADER_TITLE = "Update unit quantity";
|
|
4
4
|
export declare const QUANTITY_CHANGE_HEADER_DESCRIPTION = "Adjust quantities below. The change will take effect immediately after checkout has been completed.";
|
|
5
5
|
declare const QuantityChangeDrawerDesktop: ({ editingQuote, editingQuoteData, onClose, open, openCheckout, setEditingQuoteData, subscriptions, }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Quote } from
|
|
1
|
+
import { Quote } from "@bunnyapp/common";
|
|
2
2
|
export declare const QUOTE_FIELDS = "quote {\n formattedQuote {\n html\n }\n acceptedByName\n acceptedByTitle\n accountId\n amount\n amountDue\n applicationDate\n applied\n billingDay\n contactId\n createdAt\n credits\n currencyId\n dealId\n discount\n discountValue\n endDate\n evergreen\n expiresAt\n id\n invoiceUntil\n isPendingApprovalRequest\n kind\n message\n name\n netPaymentDays\n notes\n ownerId\n periodAmount\n poNumber\n requiresApproval\n startDate\n state\n subtotal\n taxAmount\n updatedAt\n uuid\n amountsByPeriod {\n amount\n id\n name\n }\n endDateOptions {\n endDate\n label\n }\n invoiceUntilOptions {\n endDate\n label\n }\n quoteChanges {\n id\n priceListId\n charges {\n amount\n amountsByPeriod { amount startDate }\n billingPeriod\n billingPeriodAmounts { id amount prorationRate }\n chargeType\n couponId\n createdAt\n currencyId\n discount\n endDate\n feature { id name code isUnit unitName }\n id\n invoiceLineText\n name\n price\n priceDecimals\n priceTiers { starts price }\n pricingModel\n prorationRate\n quantity\n quantityMax\n quantityMin\n startDate\n tieredAveragePrice\n updatedAt\n }\n }\n}";
|
|
3
3
|
type Options = {
|
|
4
4
|
quoteId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BillingDetails from
|
|
2
|
-
declare const getBillingDetails: ({ token, apiHost }: {
|
|
1
|
+
import BillingDetails from "../../types/billingDetails";
|
|
2
|
+
declare const getBillingDetails: ({ token, apiHost, }: {
|
|
3
3
|
token?: string | undefined;
|
|
4
4
|
apiHost: string;
|
|
5
5
|
}) => Promise<BillingDetails>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntityBranding } from
|
|
2
|
-
declare const getBranding: ({ token, apiHost }: {
|
|
1
|
+
import { EntityBranding } from "@bunnyapp/common";
|
|
2
|
+
declare const getBranding: ({ token, apiHost, }: {
|
|
3
3
|
token?: string | undefined;
|
|
4
4
|
apiHost: string;
|
|
5
5
|
}) => Promise<EntityBranding>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FeatureUsage } from
|
|
1
|
+
import { FeatureUsage } from "@bunnyapp/common";
|
|
2
2
|
declare const getFeatureUsage: ({ subscriptionChargeId, startDate, endDate, dataInterval, token, apiHost, }: {
|
|
3
3
|
subscriptionChargeId: string;
|
|
4
4
|
startDate?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Subscription } from
|
|
1
|
+
import { Subscription } from "@bunnyapp/common";
|
|
2
2
|
declare const getPlanChangeOptions: ({ isInPreviewMode, token, upgradingSubscription, apiHost, }: {
|
|
3
3
|
isInPreviewMode?: boolean | undefined;
|
|
4
4
|
token?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Subscription } from
|
|
1
|
+
import { Subscription } from "@bunnyapp/common";
|
|
2
2
|
declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, productId, token, upgradingSubscription, }: {
|
|
3
3
|
apiHost: string;
|
|
4
4
|
isInPreviewMode?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const handlers: import("msw/lib/core/GraphQLHandler-C5CUIS_N").G[];
|
|
1
|
+
export declare const handlers: (import("msw/lib/core/handlers/HttpHandler").HttpHandler | import("msw/lib/core/GraphQLHandler-C5CUIS_N").G)[];
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "__PACKAGE_VERSION__";
|
|
2
1
|
export declare const getGraphQLBaseURL: (apiHost: string) => string;
|
|
3
2
|
export declare const useGraphQLRequest: () => (query: string, apiHost: string, token?: string, variables?: any) => Promise<unknown>;
|
|
4
|
-
export declare const gqlRequest: ({ query, apiHost, token, vars, isInPreviewMode, }: {
|
|
5
|
-
query: string;
|
|
6
|
-
apiHost: string;
|
|
7
|
-
token?: string | undefined;
|
|
8
|
-
vars?: any;
|
|
9
|
-
isInPreviewMode?: boolean | undefined;
|
|
10
|
-
}) => Promise<unknown>;
|