@bunnyapp/components 1.0.35 → 1.0.37
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 +59 -20
- package/dist/cjs/index.js +20857 -0
- package/dist/cjs/playground/billingdetails/index.d.ts +1 -0
- package/dist/cjs/playground/main.d.ts +1 -0
- package/dist/cjs/playground/transactions/index.d.ts +1 -0
- package/dist/cjs/src/ajax.d.ts +1 -0
- package/dist/cjs/src/components/BillingDetails/BillingDetails.d.ts +15 -0
- package/dist/cjs/src/components/BillingDetails/BillingDetails.stories.d.ts +14 -0
- package/dist/cjs/src/components/BillingDetails/BillingDetailsForm.d.ts +9 -0
- package/dist/cjs/src/components/BillingDetails/index.d.ts +1 -0
- package/dist/cjs/src/components/BunnyProvider.d.ts +23 -0
- package/dist/cjs/src/components/Card.d.ts +7 -0
- package/dist/cjs/src/components/Checkout/Checkout.d.ts +11 -0
- package/dist/cjs/src/components/Checkout/CouponComponent.d.ts +7 -0
- package/dist/cjs/src/components/Checkout/QuoteCheckout.d.ts +12 -0
- package/dist/cjs/src/components/Checkout/checkoutUtils.d.ts +2 -0
- package/dist/cjs/src/components/Checkout/index.d.ts +2 -0
- package/dist/cjs/src/components/DrawerHeader.d.ts +7 -0
- package/dist/cjs/src/components/Error.d.ts +5 -0
- package/dist/cjs/src/components/FeatureUsageGraph.d.ts +6 -0
- package/dist/cjs/src/components/HeaderModalWrapper.d.ts +2 -0
- package/dist/cjs/src/components/Invoice/Invoice.d.ts +3 -0
- package/dist/cjs/src/components/Invoice/Invoice.stories.d.ts +18 -0
- package/dist/cjs/src/components/Invoice/InvoiceQuoteContext.d.ts +18 -0
- package/dist/cjs/src/components/Invoice/InvoiceQuoteView.d.ts +11 -0
- package/dist/cjs/src/components/Invoice/index.d.ts +8 -0
- package/dist/cjs/src/components/LegacyInvoicePDF.d.ts +5 -0
- package/dist/cjs/src/components/PageWrapper.d.ts +1 -0
- package/dist/cjs/src/components/PandadocPollingModal.d.ts +7 -0
- package/dist/cjs/src/components/PaymentForm/CheckoutFooter.d.ts +9 -0
- package/dist/cjs/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +7 -0
- package/dist/cjs/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +7 -0
- package/dist/cjs/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +7 -0
- package/dist/cjs/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +7 -0
- package/dist/cjs/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +21 -0
- package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +12 -0
- package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +21 -0
- package/dist/cjs/src/components/PaymentForm/DemoPay/index.d.ts +1 -0
- package/dist/cjs/src/components/PaymentForm/PaymentForm.d.ts +17 -0
- package/dist/cjs/src/components/PaymentForm/PaymentFormTypes.d.ts +24 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/CreditCard/CreditCard.d.ts +22 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/CreditCard/LargCardIcon.d.ts +2 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/CreditCard/PlusIcon.d.ts +4 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +9 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/PaymentMethod.stories.d.ts +11 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethod/index.d.ts +1 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethodDetails.d.ts +9 -0
- package/dist/cjs/src/components/PaymentForm/PaymentMethodSelector.d.ts +7 -0
- package/dist/cjs/src/components/PaymentForm/SavePaymentMethodFooter.d.ts +6 -0
- package/dist/cjs/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +7 -0
- package/dist/cjs/src/components/PaymentForm/Stripe/StripeForm.d.ts +7 -0
- package/dist/cjs/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +12 -0
- package/dist/cjs/src/components/PaymentForm/Stripe/hooks/useSave.d.ts +10 -0
- package/dist/cjs/src/components/PaymentForm/Stripe/stripeUtils.d.ts +26 -0
- package/dist/cjs/src/components/PaymentForm/index.d.ts +2 -0
- package/dist/cjs/src/components/PaymentForm/useRemovePaymentMethod.d.ts +3 -0
- package/dist/cjs/src/components/Quote/AcceptQuoteModal.d.ts +9 -0
- package/dist/cjs/src/components/Quote/Quote.d.ts +3 -0
- package/dist/cjs/src/components/Quote/Quote.stories.d.ts +144 -0
- package/dist/cjs/src/components/Quote/StyledModal.d.ts +3 -0
- package/dist/cjs/src/components/Quote/index.d.ts +1 -0
- package/dist/cjs/src/components/Quotes/Quotes.d.ts +40 -0
- package/dist/cjs/src/components/Quotes/Quotes.stories.d.ts +22 -0
- package/dist/cjs/src/components/Quotes/index.d.ts +1 -0
- package/dist/cjs/src/components/Signup/PaymentForms.d.ts +18 -0
- package/dist/cjs/src/components/Signup/PaymentSuccess.d.ts +9 -0
- package/dist/cjs/src/components/Signup/PriceListDisplay.d.ts +6 -0
- package/dist/cjs/src/components/Signup/Signup.d.ts +21 -0
- package/dist/cjs/src/components/Signup/Signup.stories.d.ts +10 -0
- package/dist/cjs/src/components/Signup/index.d.ts +1 -0
- package/dist/cjs/src/components/StateTag.d.ts +4 -0
- package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +23 -0
- package/dist/cjs/src/components/Subscriptions/Subscriptions.stories.d.ts +10 -0
- package/dist/cjs/src/components/Subscriptions/SubscriptionsContext.d.ts +8 -0
- package/dist/cjs/src/components/Subscriptions/index.d.ts +1 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +8 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +8 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +6 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +6 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +9 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +12 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +8 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionsCardCell.d.ts +9 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardCellMobile.d.ts +8 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +5 -0
- package/dist/cjs/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +16 -0
- package/dist/cjs/src/components/TaxationForm.d.ts +6 -0
- package/dist/cjs/src/components/Transactions/Transactions.d.ts +55 -0
- package/dist/cjs/src/components/Transactions/Transactions.stories.d.ts +26 -0
- package/dist/cjs/src/components/Transactions/TransactionsListContext.d.ts +30 -0
- package/dist/cjs/src/components/Transactions/index.d.ts +1 -0
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionDate.d.ts +4 -0
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionDownload.d.ts +7 -0
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionGridCell.d.ts +2 -0
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionTitle.d.ts +5 -0
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsEmptyState.d.ts +2 -0
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +7 -0
- package/dist/cjs/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +6 -0
- package/dist/cjs/src/components/Transactions/transactionsList/utils.d.ts +3 -0
- package/dist/cjs/src/components/icons/ArrowDownToLine.d.ts +5 -0
- package/dist/cjs/src/components/icons/CardIcon.d.ts +2 -0
- package/dist/cjs/src/components/index.d.ts +10 -0
- package/dist/cjs/src/contexts/BrandContext.d.ts +7 -0
- package/dist/cjs/src/contexts/NavigationContext.d.ts +9 -0
- package/dist/cjs/src/contexts/PaymentContext.d.ts +10 -0
- package/dist/cjs/src/enums/SubscriptionState.d.ts +8 -0
- package/dist/cjs/src/graphql/mutations/accountSignup.d.ts +12 -0
- package/dist/cjs/src/graphql/mutations/accountUpdate.d.ts +7 -0
- package/dist/cjs/src/graphql/mutations/billingDetailsUpdate.d.ts +6 -0
- package/dist/cjs/src/graphql/mutations/checkout.d.ts +23 -0
- package/dist/cjs/src/graphql/mutations/quoteAccountSignup.d.ts +14 -0
- package/dist/cjs/src/graphql/mutations/quoteAddCoupon.d.ts +8 -0
- package/dist/cjs/src/graphql/mutations/quoteCompose.d.ts +13 -0
- package/dist/cjs/src/graphql/mutations/quoteRecalculateTaxes.d.ts +6 -0
- package/dist/cjs/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +7 -0
- package/dist/cjs/src/graphql/queries/getBillingDetails.d.ts +6 -0
- package/dist/cjs/src/graphql/queries/getBranding.d.ts +6 -0
- package/dist/cjs/src/graphql/queries/getFeatureUsage.d.ts +10 -0
- package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +7 -0
- package/dist/cjs/src/graphql/queries/getPlanChangeOptions.d.ts +8 -0
- package/dist/cjs/src/graphql/queries/getPriceList.d.ts +7 -0
- package/dist/cjs/src/graphql/queries/getQuotes.d.ts +6 -0
- package/dist/cjs/src/graphql/queries/getSubscriptions.d.ts +7 -0
- package/dist/cjs/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +6 -0
- package/dist/cjs/src/graphql/queries/getTransactions.d.ts +3 -0
- package/dist/cjs/src/hooks/index.d.ts +1 -0
- package/dist/cjs/src/hooks/quotes/useSendAcceptQuote.d.ts +20 -0
- package/dist/cjs/src/hooks/quotes/useSigningComplete.d.ts +5 -0
- package/dist/cjs/src/hooks/subscriptions/useSubscriptions.d.ts +5 -0
- package/dist/cjs/src/hooks/useFocusFirstInput.d.ts +7 -0
- package/dist/cjs/src/hooks/useHasTaxPlugin.d.ts +6 -0
- package/dist/cjs/src/hooks/useIsExpired.d.ts +2 -0
- package/dist/cjs/src/hooks/usePaymentMethod.d.ts +5 -0
- package/dist/cjs/src/hooks/usePaymentPlugins.d.ts +11 -0
- package/dist/cjs/src/hooks/usePlugins.d.ts +6 -0
- package/dist/cjs/src/hooks/useSigningPlugins.d.ts +6 -0
- package/dist/cjs/src/hooks/useToken.d.ts +2 -0
- package/dist/cjs/src/index.d.ts +3 -0
- package/dist/cjs/src/mocks/browser.d.ts +1 -0
- package/dist/cjs/src/mocks/handlers.d.ts +1 -0
- package/dist/cjs/src/storybook-utils.d.ts +10 -0
- package/dist/cjs/src/types/billingDetails.d.ts +14 -0
- package/dist/cjs/src/types/shadowType.d.ts +1 -0
- package/dist/cjs/src/utils/GraphQLClient.d.ts +2 -0
- package/dist/cjs/src/utils/quoteInvoiceUtils.d.ts +6 -0
- package/dist/cjs/src/utils/styled.d.ts +3 -0
- package/dist/cjs/vite.config.d.ts +2 -0
- package/dist/esm/index.js +218 -215
- package/dist/esm/src/ajax.d.ts +1 -1
- package/dist/esm/src/components/BillingDetails/BillingDetails.d.ts +2 -1
- package/dist/esm/src/components/BillingDetails/BillingDetails.stories.d.ts +3 -0
- package/dist/esm/src/components/BillingDetails/BillingDetailsForm.d.ts +9 -0
- package/dist/esm/src/components/BunnyProvider.d.ts +2 -2
- package/dist/esm/src/components/DrawerHeader.d.ts +3 -2
- package/dist/esm/src/components/LegacyInvoicePDF.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/DemoPay/hooks/useSave.d.ts +1 -1
- package/dist/esm/src/components/PaymentForm/PaymentForm.d.ts +3 -1
- package/dist/esm/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +2 -1
- package/dist/esm/src/components/PaymentForm/PaymentMethodDetails.d.ts +3 -1
- package/dist/esm/src/components/PaymentForm/Stripe/stripeUtils.d.ts +3 -3
- package/dist/esm/src/components/PaymentForm/index.d.ts +1 -0
- package/dist/esm/src/components/PaymentForm/useRemovePaymentMethod.d.ts +1 -1
- package/dist/esm/src/components/Transactions/Transactions.d.ts +2 -1
- package/dist/esm/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
- package/dist/esm/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/esm/src/components/index.d.ts +1 -1
- package/dist/esm/src/graphql/mutations/accountUpdate.d.ts +1 -1
- package/dist/esm/src/graphql/mutations/billingDetailsUpdate.d.ts +1 -1
- package/dist/esm/src/graphql/mutations/checkout.d.ts +1 -1
- package/dist/esm/src/graphql/mutations/quoteAccountSignup.d.ts +1 -1
- package/dist/esm/src/graphql/mutations/quoteAddCoupon.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getBillingDetails.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getBranding.d.ts +1 -1
- 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/getQuotes.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getSubscriptions.d.ts +1 -1
- package/dist/esm/src/graphql/queries/getTransactions.d.ts +1 -1
- package/dist/esm/src/hooks/quotes/useSendAcceptQuote.d.ts +1 -1
- package/dist/esm/src/hooks/quotes/useSigningComplete.d.ts +1 -1
- package/dist/esm/src/hooks/usePaymentMethod.d.ts +4 -1
- package/dist/esm/src/hooks/usePaymentPlugins.d.ts +1 -1
- package/dist/esm/src/hooks/usePlugins.d.ts +1 -1
- package/dist/esm/src/hooks/useSigningPlugins.d.ts +1 -1
- package/dist/esm/src/hooks/useToken.d.ts +1 -1
- package/dist/esm/src/utils/GraphQLClient.d.ts +1 -1
- package/dist/index.d.ts +30 -11
- package/package.json +2 -3
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FrontendTransaction as T } from "@bunnyapp/common";
|
|
2
|
+
declare const TransactionsListMobile: ({ transactions, onTransactionClick, }: {
|
|
3
|
+
transactions: T.Transaction[];
|
|
4
|
+
onTransactionClick: (transaction: T.Transaction) => void;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default TransactionsListMobile;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Invoice } from "./Invoice";
|
|
2
|
+
export { Quote } from "./Quote";
|
|
3
|
+
export { Quotes } from "./Quotes";
|
|
4
|
+
export { PaymentMethod, PaymentForm } from "./PaymentForm";
|
|
5
|
+
export * from "./Checkout";
|
|
6
|
+
export { Signup } from "./Signup";
|
|
7
|
+
export { default as BunnyProvider } from "./BunnyProvider";
|
|
8
|
+
export { default as Transactions } from "./Transactions";
|
|
9
|
+
export { Subscriptions } from "./Subscriptions";
|
|
10
|
+
export { BillingDetails } from "./BillingDetails";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type NavigationContextValues = {
|
|
3
|
+
searchParams: URLSearchParams;
|
|
4
|
+
location: Location;
|
|
5
|
+
apiHost: string;
|
|
6
|
+
navigate?: (url: string) => void;
|
|
7
|
+
navigateBackAfterDownload?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const NavigationContext: import("react").Context<NavigationContextValues>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PaymentMethod, PluginData } from "@bunnyapp/common";
|
|
3
|
+
export type PaymentContextValues = {
|
|
4
|
+
onClickCancel?: () => void;
|
|
5
|
+
accountId?: string;
|
|
6
|
+
overrideToken?: string;
|
|
7
|
+
storedPaymentMethod?: PaymentMethod;
|
|
8
|
+
customCheckoutFunction?: (plugin: PluginData | undefined) => Promise<any>;
|
|
9
|
+
};
|
|
10
|
+
export declare const PaymentContext: import("react").Context<PaymentContextValues>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const accountSignup: ({ token, apiHost, entityId, accountId, quoteId, paymentToken, paymentMethodId, pluginId, priceListCode, }: {
|
|
2
|
+
token: string;
|
|
3
|
+
apiHost: string;
|
|
4
|
+
entityId: string;
|
|
5
|
+
accountId: string;
|
|
6
|
+
quoteId?: string | undefined;
|
|
7
|
+
paymentToken?: string | undefined;
|
|
8
|
+
paymentMethodId?: string | undefined;
|
|
9
|
+
pluginId: string;
|
|
10
|
+
priceListCode: string;
|
|
11
|
+
}) => Promise<any>;
|
|
12
|
+
export default accountSignup;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Payment, Invoice, Transaction, PaymentApplication } from "@bunnyapp/common";
|
|
2
|
+
export type CheckoutResponse = {
|
|
3
|
+
invoice: Invoice;
|
|
4
|
+
payment: Payment;
|
|
5
|
+
paymentApplication: PaymentApplication;
|
|
6
|
+
transaction: Transaction;
|
|
7
|
+
};
|
|
8
|
+
declare const checkout: ({ quoteId, invoiceId, paymentMethodId, paymentMethodData, token, apiHost, }: {
|
|
9
|
+
quoteId?: string | undefined;
|
|
10
|
+
invoiceId?: string | undefined;
|
|
11
|
+
paymentMethodId?: string | undefined;
|
|
12
|
+
paymentMethodData?: {
|
|
13
|
+
token: string;
|
|
14
|
+
pluginGuid: string;
|
|
15
|
+
savePaymentMethod?: boolean | undefined;
|
|
16
|
+
metadata?: Record<string, any> | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
token?: string | undefined;
|
|
19
|
+
apiHost: string;
|
|
20
|
+
}) => Promise<{
|
|
21
|
+
savePaymentMethod: boolean | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export default checkout;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type BillingContact = {
|
|
2
|
+
firstName: string;
|
|
3
|
+
lastName: string;
|
|
4
|
+
email: string;
|
|
5
|
+
};
|
|
6
|
+
declare const quoteAccountSignup: ({ token, apiHost, entityId, priceListCode, accountName, billingContact, }: {
|
|
7
|
+
token?: string | undefined;
|
|
8
|
+
apiHost: string;
|
|
9
|
+
entityId: string;
|
|
10
|
+
priceListCode: string;
|
|
11
|
+
accountName: string;
|
|
12
|
+
billingContact: BillingContact;
|
|
13
|
+
}) => Promise<any>;
|
|
14
|
+
export default quoteAccountSignup;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Quote } from "@bunnyapp/common";
|
|
2
|
+
declare const quoteAddCoupon: ({ quoteId, couponCode, token, apiHost, }: {
|
|
3
|
+
quoteId?: string | undefined;
|
|
4
|
+
couponCode?: string | undefined;
|
|
5
|
+
token?: string | undefined;
|
|
6
|
+
apiHost: string;
|
|
7
|
+
}) => Promise<Quote>;
|
|
8
|
+
export default quoteAddCoupon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Quote } from "@bunnyapp/common";
|
|
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
|
+
type Options = {
|
|
4
|
+
quoteId?: string;
|
|
5
|
+
priceListId?: string;
|
|
6
|
+
subscriptionId?: string;
|
|
7
|
+
quantity: number;
|
|
8
|
+
accountId?: string;
|
|
9
|
+
token: string;
|
|
10
|
+
apiHost: string;
|
|
11
|
+
};
|
|
12
|
+
declare const quoteCompose: ({ quoteId, priceListId, subscriptionId, quantity, accountId, token, apiHost, }: Options) => Promise<Quote>;
|
|
13
|
+
export default quoteCompose;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FeatureUsage } from "@bunnyapp/common";
|
|
2
|
+
declare const getFeatureUsage: ({ subscriptionChargeId, startDate, endDate, dataInterval, token, apiHost, }: {
|
|
3
|
+
subscriptionChargeId: string;
|
|
4
|
+
startDate?: string | undefined;
|
|
5
|
+
endDate?: string | undefined;
|
|
6
|
+
dataInterval?: number | undefined;
|
|
7
|
+
token?: string | undefined;
|
|
8
|
+
apiHost: string;
|
|
9
|
+
}) => Promise<FeatureUsage>;
|
|
10
|
+
export default getFeatureUsage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const getPlanChangeOptions: ({ isInPreviewMode, token, upgradingSubscription, apiHost, }: {
|
|
3
|
+
isInPreviewMode?: boolean | undefined;
|
|
4
|
+
token?: string | undefined;
|
|
5
|
+
upgradingSubscription?: Subscription | undefined;
|
|
6
|
+
apiHost: string;
|
|
7
|
+
}) => Promise<any>;
|
|
8
|
+
export default getPlanChangeOptions;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TaxationRequiredAccountFields } from "@bunnyapp/common";
|
|
2
|
+
declare const getTaxationRequiredAccountFields: ({ token, apiHost, }: {
|
|
3
|
+
token: string;
|
|
4
|
+
apiHost: string;
|
|
5
|
+
}) => Promise<TaxationRequiredAccountFields | null>;
|
|
6
|
+
export default getTaxationRequiredAccountFields;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { usePaymentMethod } from "./usePaymentMethod";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useSendAcceptQuote: ({ entityId, onTokenExpired, quoteId, apiHost, token, }: {
|
|
3
|
+
entityId: string;
|
|
4
|
+
onTokenExpired?: (() => void) | undefined;
|
|
5
|
+
quoteId?: string | undefined;
|
|
6
|
+
apiHost: string;
|
|
7
|
+
token?: string | undefined;
|
|
8
|
+
}) => {
|
|
9
|
+
acceptBoxVisible: boolean;
|
|
10
|
+
isAccepting: boolean;
|
|
11
|
+
sendAccept: (changedFormItems: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
setAcceptBoxVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
15
|
+
setIsAccepting: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
16
|
+
startAcceptance: () => void;
|
|
17
|
+
pandadocPollingModalVisible: boolean;
|
|
18
|
+
setPandadocPollingModalVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
19
|
+
};
|
|
20
|
+
export default useSendAcceptQuote;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PluginData } from "@bunnyapp/common";
|
|
2
|
+
export declare const usePaymentPlugins: ({ entityId, apiHost, token, }: {
|
|
3
|
+
entityId: string;
|
|
4
|
+
apiHost: string;
|
|
5
|
+
token?: string | undefined;
|
|
6
|
+
}) => {
|
|
7
|
+
paymentPlugins: PluginData[] | undefined;
|
|
8
|
+
paymentMethodAllowedPlugins: PluginData[] | undefined;
|
|
9
|
+
isFetched: boolean;
|
|
10
|
+
};
|
|
11
|
+
export default usePaymentPlugins;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const worker: import("msw/browser").SetupWorker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handlers: (import("msw/lib/core/handlers/HttpHandler").HttpHandler | import("msw/lib/core/GraphQLHandler-C5CUIS_N").G)[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Currency } from "@bunnyapp/common";
|
|
2
|
+
export default interface BillingDetails {
|
|
3
|
+
name?: string;
|
|
4
|
+
billingCity?: string;
|
|
5
|
+
billingContact?: {
|
|
6
|
+
email?: string;
|
|
7
|
+
};
|
|
8
|
+
billingCountry?: string;
|
|
9
|
+
billingState?: string;
|
|
10
|
+
billingStreet?: string;
|
|
11
|
+
billingZip?: string;
|
|
12
|
+
taxNumber?: string;
|
|
13
|
+
currency?: Currency;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ShadowType = "shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl";
|