@bunnyapp/components 1.0.0
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 +99 -0
- package/dist/cjs/index.js +5179 -0
- package/dist/cjs/types/playground/main.d.ts +1 -0
- package/dist/cjs/types/src/atoms/pageContentRefAtom.d.ts +1 -0
- package/dist/cjs/types/src/atoms/planPickerQuoteDataAtom.d.ts +2 -0
- package/dist/cjs/types/src/atoms/updatingChargeQuantityIdAtom.d.ts +2 -0
- package/dist/cjs/types/src/components/BunnyProvider.d.ts +19 -0
- package/dist/cjs/types/src/components/Card.d.ts +5 -0
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +9 -0
- package/dist/cjs/types/src/components/Checkout/CouponComponent.d.ts +7 -0
- package/dist/cjs/types/src/components/Checkout/InvoiceCheckout.d.ts +7 -0
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +11 -0
- package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +2 -0
- package/dist/cjs/types/src/components/Checkout/index.d.ts +2 -0
- package/dist/cjs/types/src/components/DrawerHeader.d.ts +6 -0
- package/dist/cjs/types/src/components/Error.d.ts +5 -0
- package/dist/cjs/types/src/components/FeatureUsageGraph.d.ts +6 -0
- package/dist/cjs/types/src/components/Footer.d.ts +2 -0
- package/dist/cjs/types/src/components/HeaderModalWrapper.d.ts +2 -0
- package/dist/cjs/types/src/components/Icons/BunnyFooterIcon.d.ts +4 -0
- package/dist/cjs/types/src/components/Icons/CardIcon.d.ts +2 -0
- package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +10 -0
- package/dist/cjs/types/src/components/Invoice/Invoice.stories.d.ts +9 -0
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +12 -0
- package/dist/cjs/types/src/components/Invoice/index.d.ts +8 -0
- package/dist/cjs/types/src/components/LegacyInvoicePDF.d.ts +4 -0
- package/dist/cjs/types/src/components/PageContent.d.ts +7 -0
- package/dist/cjs/types/src/components/PageHeaderWithActions.d.ts +6 -0
- package/dist/cjs/types/src/components/PageWrapper.d.ts +1 -0
- package/dist/cjs/types/src/components/PandadocPollingModal.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/CheckoutFooter.d.ts +9 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +23 -0
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/index.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/Finix/FinixCardForm.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentForm/Finix/index.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/FinixAch.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +7 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentFormTypes.d.ts +56 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/CreditCard/CreditCard.d.ts +12 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/CreditCard/LargCardIcon.d.ts +2 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/CreditCard/PlusIcon.d.ts +4 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +5 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +6 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethod/index.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethodForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +8 -0
- package/dist/cjs/types/src/components/PaymentForm/PaymentOption.d.ts +8 -0
- package/dist/cjs/types/src/components/PaymentForm/StoredPaymentMethod/StoredPaymentMethodForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/CheckoutForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +3 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/index.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +20 -0
- package/dist/cjs/types/src/components/PaymentForm/index.d.ts +1 -0
- package/dist/cjs/types/src/components/PaymentForm/paymentUtils.d.ts +7 -0
- package/dist/cjs/types/src/components/Quote/AcceptQuoteModal.d.ts +9 -0
- package/dist/cjs/types/src/components/Quote/DocumentNameEnum.d.ts +4 -0
- package/dist/cjs/types/src/components/Quote/Quote.d.ts +6 -0
- package/dist/cjs/types/src/components/Quote/Quote.stories.d.ts +8 -0
- package/dist/cjs/types/src/components/Quote/QuoteContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Quote/StyledModal.d.ts +3 -0
- package/dist/cjs/types/src/components/Quote/index.d.ts +1 -0
- package/dist/cjs/types/src/components/StateTag.d.ts +6 -0
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +21 -0
- package/dist/cjs/types/src/components/Subscriptions/index.d.ts +1 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +7 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +6 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +6 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +10 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionsCardCell.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardCellMobile.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +20 -0
- package/dist/cjs/types/src/components/TaxationForm.d.ts +6 -0
- package/dist/cjs/types/src/components/Transactions/DocumentNameEnum.d.ts +4 -0
- package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +27 -0
- package/dist/cjs/types/src/components/Transactions/Transactions.stories.d.ts +17 -0
- package/dist/cjs/types/src/components/Transactions/TransactionsListContext.d.ts +17 -0
- package/dist/cjs/types/src/components/Transactions/index.d.ts +1 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDate.d.ts +4 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +7 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionGridCell.d.ts +7 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +5 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsEmptyState.d.ts +2 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +7 -0
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +6 -0
- package/dist/cjs/types/src/components/index.d.ts +7 -0
- package/dist/cjs/types/src/consts/paymentConsts.d.ts +16 -0
- package/dist/cjs/types/src/contexts/BrandContext.d.ts +7 -0
- package/dist/cjs/types/src/contexts/NavigationContext.d.ts +9 -0
- package/dist/cjs/types/src/enums/SubscriptionState.d.ts +8 -0
- package/dist/cjs/types/src/features/quantityChangeDrawer/QuantityChangeGridRow.d.ts +11 -0
- package/dist/cjs/types/src/features/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +6 -0
- package/dist/cjs/types/src/features/quantityChangeDrawer/QuantityInput.d.ts +21 -0
- package/dist/cjs/types/src/features/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +9 -0
- package/dist/cjs/types/src/features/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +14 -0
- package/dist/cjs/types/src/graphql/QuoteRequests.d.ts +6 -0
- package/dist/cjs/types/src/graphql/SubscriptionRequests.d.ts +2 -0
- package/dist/cjs/types/src/graphql/mutations/accountUpdate.d.ts +6 -0
- package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +23 -0
- package/dist/cjs/types/src/graphql/mutations/quoteAddCoupon.d.ts +7 -0
- package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +11 -0
- package/dist/cjs/types/src/graphql/mutations/quoteRecalculateTaxes.d.ts +5 -0
- package/dist/cjs/types/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +7 -0
- package/dist/cjs/types/src/graphql/queries/getBranding.d.ts +6 -0
- package/dist/cjs/types/src/graphql/queries/getCurrentUserData.d.ts +12 -0
- package/dist/cjs/types/src/graphql/queries/getFeatureUsage.d.ts +9 -0
- package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +7 -0
- package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +3 -0
- package/dist/cjs/types/src/graphql/queries/getInvoice.d.ts +7 -0
- package/dist/cjs/types/src/graphql/queries/getPlanChangeOptions.d.ts +8 -0
- package/dist/cjs/types/src/graphql/queries/getQuote.d.ts +7 -0
- package/dist/cjs/types/src/graphql/queries/getSubscriptions.d.ts +7 -0
- package/dist/cjs/types/src/graphql/queries/getTransactions.d.ts +3 -0
- package/dist/cjs/types/src/hooks/index.d.ts +1 -0
- package/dist/cjs/types/src/hooks/quotes/useSendAcceptQuote.d.ts +14 -0
- package/dist/cjs/types/src/hooks/quotes/useSigningComplete.d.ts +5 -0
- package/dist/cjs/types/src/hooks/subscriptions/useSubscriptions.d.ts +5 -0
- package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +2 -0
- package/dist/cjs/types/src/hooks/useFocusFirstInput.d.ts +7 -0
- package/dist/cjs/types/src/hooks/useHasTaxPlugin.d.ts +5 -0
- package/dist/cjs/types/src/hooks/useIsExpired.d.ts +2 -0
- package/dist/cjs/types/src/hooks/useIsMobile.d.ts +10 -0
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +2 -0
- package/dist/cjs/types/src/hooks/useSigningPlugins.d.ts +2 -0
- package/dist/cjs/types/src/index.d.ts +2 -0
- package/dist/cjs/types/src/mocks/browser.d.ts +1 -0
- package/dist/cjs/types/src/mocks/handlers.d.ts +1 -0
- package/dist/cjs/types/src/stories/Button.d.ts +15 -0
- package/dist/cjs/types/src/stories/Button.stories.d.ts +9 -0
- package/dist/cjs/types/src/stories/Header.d.ts +12 -0
- package/dist/cjs/types/src/stories/Header.stories.d.ts +7 -0
- package/dist/cjs/types/src/stories/Page.d.ts +3 -0
- package/dist/cjs/types/src/stories/Page.stories.d.ts +7 -0
- package/dist/cjs/types/src/utils.d.ts +9 -0
- package/dist/cjs/types/vite.config.d.ts +2 -0
- package/dist/esm/index.js +5143 -0
- package/dist/esm/types/playground/main.d.ts +1 -0
- package/dist/esm/types/src/atoms/pageContentRefAtom.d.ts +1 -0
- package/dist/esm/types/src/atoms/planPickerQuoteDataAtom.d.ts +2 -0
- package/dist/esm/types/src/atoms/updatingChargeQuantityIdAtom.d.ts +2 -0
- package/dist/esm/types/src/components/BunnyProvider.d.ts +19 -0
- package/dist/esm/types/src/components/Card.d.ts +5 -0
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +9 -0
- package/dist/esm/types/src/components/Checkout/CouponComponent.d.ts +7 -0
- package/dist/esm/types/src/components/Checkout/InvoiceCheckout.d.ts +7 -0
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +11 -0
- package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +2 -0
- package/dist/esm/types/src/components/Checkout/index.d.ts +2 -0
- package/dist/esm/types/src/components/DrawerHeader.d.ts +6 -0
- package/dist/esm/types/src/components/Error.d.ts +5 -0
- package/dist/esm/types/src/components/FeatureUsageGraph.d.ts +6 -0
- package/dist/esm/types/src/components/Footer.d.ts +2 -0
- package/dist/esm/types/src/components/HeaderModalWrapper.d.ts +2 -0
- package/dist/esm/types/src/components/Icons/BunnyFooterIcon.d.ts +4 -0
- package/dist/esm/types/src/components/Icons/CardIcon.d.ts +2 -0
- package/dist/esm/types/src/components/Invoice/Invoice.d.ts +10 -0
- package/dist/esm/types/src/components/Invoice/Invoice.stories.d.ts +9 -0
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.d.ts +12 -0
- package/dist/esm/types/src/components/Invoice/index.d.ts +8 -0
- package/dist/esm/types/src/components/LegacyInvoicePDF.d.ts +4 -0
- package/dist/esm/types/src/components/PageContent.d.ts +7 -0
- package/dist/esm/types/src/components/PageHeaderWithActions.d.ts +6 -0
- package/dist/esm/types/src/components/PageWrapper.d.ts +1 -0
- package/dist/esm/types/src/components/PandadocPollingModal.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/CheckoutFooter.d.ts +9 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayCardCvc.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayCardNumber.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayExpiry.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/DemoPayForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +23 -0
- package/dist/esm/types/src/components/PaymentForm/DemoPay/index.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/Finix/FinixCardForm.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentForm/Finix/index.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/FinixAch.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +7 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentFormTypes.d.ts +56 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/CreditCard/CreditCard.d.ts +12 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/CreditCard/LargCardIcon.d.ts +2 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/CreditCard/PlusIcon.d.ts +4 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/PaymentMethod.d.ts +5 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/PaymentMethodContext.d.ts +6 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethod/index.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethodForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentMethodSelector.d.ts +8 -0
- package/dist/esm/types/src/components/PaymentForm/PaymentOption.d.ts +8 -0
- package/dist/esm/types/src/components/PaymentForm/StoredPaymentMethod/StoredPaymentMethodForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/CheckoutForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/PaymentMethodForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/StripeForm.d.ts +3 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/index.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +20 -0
- package/dist/esm/types/src/components/PaymentForm/index.d.ts +1 -0
- package/dist/esm/types/src/components/PaymentForm/paymentUtils.d.ts +7 -0
- package/dist/esm/types/src/components/Quote/AcceptQuoteModal.d.ts +9 -0
- package/dist/esm/types/src/components/Quote/DocumentNameEnum.d.ts +4 -0
- package/dist/esm/types/src/components/Quote/Quote.d.ts +6 -0
- package/dist/esm/types/src/components/Quote/Quote.stories.d.ts +8 -0
- package/dist/esm/types/src/components/Quote/QuoteContext.d.ts +5 -0
- package/dist/esm/types/src/components/Quote/StyledModal.d.ts +3 -0
- package/dist/esm/types/src/components/Quote/index.d.ts +1 -0
- package/dist/esm/types/src/components/StateTag.d.ts +6 -0
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +21 -0
- package/dist/esm/types/src/components/Subscriptions/index.d.ts +1 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/ChangeQuantitiesButton.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/HideExpiredToggle.d.ts +7 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardHeader.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +6 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +6 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +10 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardColumnHeaders.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionsCardCell.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardCellMobile.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +20 -0
- package/dist/esm/types/src/components/TaxationForm.d.ts +6 -0
- package/dist/esm/types/src/components/Transactions/DocumentNameEnum.d.ts +4 -0
- package/dist/esm/types/src/components/Transactions/Transactions.d.ts +27 -0
- package/dist/esm/types/src/components/Transactions/Transactions.stories.d.ts +17 -0
- package/dist/esm/types/src/components/Transactions/TransactionsListContext.d.ts +17 -0
- package/dist/esm/types/src/components/Transactions/index.d.ts +1 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDate.d.ts +4 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +7 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionGridCell.d.ts +7 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +5 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsEmptyState.d.ts +2 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +7 -0
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +6 -0
- package/dist/esm/types/src/components/index.d.ts +7 -0
- package/dist/esm/types/src/consts/paymentConsts.d.ts +16 -0
- package/dist/esm/types/src/contexts/BrandContext.d.ts +7 -0
- package/dist/esm/types/src/contexts/NavigationContext.d.ts +9 -0
- package/dist/esm/types/src/enums/SubscriptionState.d.ts +8 -0
- package/dist/esm/types/src/features/quantityChangeDrawer/QuantityChangeGridRow.d.ts +11 -0
- package/dist/esm/types/src/features/quantityChangeDrawer/QuantityChangeGridTitle.d.ts +6 -0
- package/dist/esm/types/src/features/quantityChangeDrawer/QuantityInput.d.ts +21 -0
- package/dist/esm/types/src/features/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +9 -0
- package/dist/esm/types/src/features/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +14 -0
- package/dist/esm/types/src/graphql/QuoteRequests.d.ts +6 -0
- package/dist/esm/types/src/graphql/SubscriptionRequests.d.ts +2 -0
- package/dist/esm/types/src/graphql/mutations/accountUpdate.d.ts +6 -0
- package/dist/esm/types/src/graphql/mutations/checkout.d.ts +23 -0
- package/dist/esm/types/src/graphql/mutations/quoteAddCoupon.d.ts +7 -0
- package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +11 -0
- package/dist/esm/types/src/graphql/mutations/quoteRecalculateTaxes.d.ts +5 -0
- package/dist/esm/types/src/graphql/mutations/quoteSubscriptionReinstate.d.ts +7 -0
- package/dist/esm/types/src/graphql/queries/getBranding.d.ts +6 -0
- package/dist/esm/types/src/graphql/queries/getCurrentUserData.d.ts +12 -0
- package/dist/esm/types/src/graphql/queries/getFeatureUsage.d.ts +9 -0
- package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +7 -0
- package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +3 -0
- package/dist/esm/types/src/graphql/queries/getInvoice.d.ts +7 -0
- package/dist/esm/types/src/graphql/queries/getPlanChangeOptions.d.ts +8 -0
- package/dist/esm/types/src/graphql/queries/getQuote.d.ts +7 -0
- package/dist/esm/types/src/graphql/queries/getSubscriptions.d.ts +7 -0
- package/dist/esm/types/src/graphql/queries/getTransactions.d.ts +3 -0
- package/dist/esm/types/src/hooks/index.d.ts +1 -0
- package/dist/esm/types/src/hooks/quotes/useSendAcceptQuote.d.ts +14 -0
- package/dist/esm/types/src/hooks/quotes/useSigningComplete.d.ts +5 -0
- package/dist/esm/types/src/hooks/subscriptions/useSubscriptions.d.ts +5 -0
- package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +2 -0
- package/dist/esm/types/src/hooks/useFocusFirstInput.d.ts +7 -0
- package/dist/esm/types/src/hooks/useHasTaxPlugin.d.ts +5 -0
- package/dist/esm/types/src/hooks/useIsExpired.d.ts +2 -0
- package/dist/esm/types/src/hooks/useIsMobile.d.ts +10 -0
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +2 -0
- package/dist/esm/types/src/hooks/useSigningPlugins.d.ts +2 -0
- package/dist/esm/types/src/index.d.ts +2 -0
- package/dist/esm/types/src/mocks/browser.d.ts +1 -0
- package/dist/esm/types/src/mocks/handlers.d.ts +1 -0
- package/dist/esm/types/src/stories/Button.d.ts +15 -0
- package/dist/esm/types/src/stories/Button.stories.d.ts +9 -0
- package/dist/esm/types/src/stories/Header.d.ts +12 -0
- package/dist/esm/types/src/stories/Header.stories.d.ts +7 -0
- package/dist/esm/types/src/stories/Page.d.ts +3 -0
- package/dist/esm/types/src/stories/Page.stories.d.ts +7 -0
- package/dist/esm/types/src/utils.d.ts +9 -0
- package/dist/esm/types/vite.config.d.ts +2 -0
- package/dist/index.d.ts +100 -0
- package/package.json +82 -0
package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Subscription, SubscriptionCharge } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionChargeTotal: ({ charge, subscription, }: {
|
|
3
|
+
charge: SubscriptionCharge;
|
|
4
|
+
subscription: Subscription;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default SubscriptionChargeTotal;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Subscription, SubscriptionCharge } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionChargeUnitPrice: ({ charge, subscription, }: {
|
|
3
|
+
charge: SubscriptionCharge;
|
|
4
|
+
subscription: Subscription;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default SubscriptionChargeUnitPrice;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Invoice, PlanChangeOptions, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionsList: ({ hideExpired, planChangeOptions, setEditingQuoteData, setPayModalVisible, subscriptions, }: {
|
|
3
|
+
hideExpired: boolean;
|
|
4
|
+
invoice?: Invoice | undefined;
|
|
5
|
+
planChangeOptions?: PlanChangeOptions | undefined;
|
|
6
|
+
setEditingQuoteData: (value: any) => void;
|
|
7
|
+
setPayModalVisible: (value: any) => void;
|
|
8
|
+
subscriptions: Subscription[];
|
|
9
|
+
}) => (import("react/jsx-runtime").JSX.Element | null)[];
|
|
10
|
+
export default SubscriptionsList;
|
package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionsNavigation: ({ hideExpired, setHideExpired, setQuantityDrawerOpen, subscriptions, }: {
|
|
3
|
+
hideExpired: boolean;
|
|
4
|
+
setHideExpired: (value: boolean) => void;
|
|
5
|
+
setQuantityDrawerOpen: (value: boolean) => void;
|
|
6
|
+
subscriptions: Subscription[];
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SubscriptionsNavigation;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const SubscriptionCardColumnHeaders: ({ columns, }: {
|
|
2
|
+
columns: ({
|
|
3
|
+
title: string;
|
|
4
|
+
width: string;
|
|
5
|
+
className?: undefined;
|
|
6
|
+
} | {
|
|
7
|
+
className: string;
|
|
8
|
+
title: string;
|
|
9
|
+
width: string;
|
|
10
|
+
})[];
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element[];
|
|
12
|
+
export default SubscriptionCardColumnHeaders;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PlanChangeOptions, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionCardDesktop: ({ planChangeOptions, setEditingQuoteData, setPayModalVisible, subscription, }: {
|
|
3
|
+
planChangeOptions?: PlanChangeOptions | undefined;
|
|
4
|
+
setEditingQuoteData: (value: any) => void;
|
|
5
|
+
setPayModalVisible: (value: any) => void;
|
|
6
|
+
subscription: Subscription;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SubscriptionCardDesktop;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
|
+
declare const SubscriptionsListCell: ({ children, className, gridColumn, right, style, }: {
|
|
3
|
+
children?: ReactNode | ReactNode[];
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
gridColumn?: string | number | undefined;
|
|
6
|
+
right?: boolean | undefined;
|
|
7
|
+
style?: CSSProperties | undefined;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SubscriptionsListCell;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
|
+
type SubscriptionCardCellMobileProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
};
|
|
7
|
+
declare const SubscriptionCardCellMobile: ({ children, className, style, }: SubscriptionCardCellMobileProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SubscriptionCardCellMobile;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PlanChangeOptions, Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const SubscriptionCard: ({ planChangeOptions, setEditingQuoteData, setPayModalVisible, subscription, }: {
|
|
3
|
+
planChangeOptions?: PlanChangeOptions | undefined;
|
|
4
|
+
setEditingQuoteData: (value: any) => void;
|
|
5
|
+
setPayModalVisible: (value: any) => void;
|
|
6
|
+
subscription: Subscription;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SubscriptionCard;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Plan, Product, Quote, Subscription, SubscriptionCharge } from "@bunnyapp/common";
|
|
2
|
+
import { EditingSubscriptionType } from "../../../features/quantityChangeDrawer/QuantityInput";
|
|
3
|
+
export declare const canShowQuantitiesInput: (charge: SubscriptionCharge, subscription: Subscription) => boolean | undefined;
|
|
4
|
+
export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: number, editedSubscription?: EditingSubscriptionType) => {
|
|
5
|
+
charges: {
|
|
6
|
+
id: string;
|
|
7
|
+
quantity: number;
|
|
8
|
+
}[];
|
|
9
|
+
quoteChange: import("@bunnyapp/common").QuoteChange | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare const canShowChangeQuantities: ({ subscriptions, }: {
|
|
12
|
+
subscriptions: Subscription[];
|
|
13
|
+
}) => boolean;
|
|
14
|
+
export declare const isSubscriptionNotActive: (subscription: Subscription) => boolean;
|
|
15
|
+
export declare const productPlanName: ({ plan, product, }: {
|
|
16
|
+
plan: Plan;
|
|
17
|
+
product: Product;
|
|
18
|
+
}) => string;
|
|
19
|
+
export declare const canShowSubscriptionActions: (subscription: Subscription) => boolean;
|
|
20
|
+
export declare const canShowCanceledActions: (subscription: Subscription) => boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TransactionListColumnType } from "./transactionsList/TransactionsListDesktop";
|
|
3
|
+
import { FrontendTransaction as T, TransactionKind } from "@bunnyapp/common";
|
|
4
|
+
export default function Transactions({ transactionComponent, showSearchBar, showTitle, columns, className, shadow, searchBarClassName, useModal, onTransactionClick, suppressTransactionDisplay, kindsToShow, }: {
|
|
5
|
+
/** A custom component to render instead of the default invoice component */
|
|
6
|
+
transactionComponent?: React.ReactNode;
|
|
7
|
+
/** Whether to show the search bar */
|
|
8
|
+
showSearchBar?: boolean;
|
|
9
|
+
/** Whether to show the title */
|
|
10
|
+
showTitle?: boolean;
|
|
11
|
+
/** The columns to display in the transactions list */
|
|
12
|
+
columns?: TransactionListColumnType[];
|
|
13
|
+
/** A custom class name to apply to the component */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Whether to use a modal for the invoice drawer */
|
|
16
|
+
useModal?: boolean;
|
|
17
|
+
/** Whether to show a shadow around the transactions list */
|
|
18
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl";
|
|
19
|
+
/** A custom class name to apply to the search bar */
|
|
20
|
+
searchBarClassName?: string;
|
|
21
|
+
/** A function to call when a transaction is clicked */
|
|
22
|
+
onTransactionClick?: (transaction: T.Transaction) => void;
|
|
23
|
+
/** Whether to hide the display showing the transaction */
|
|
24
|
+
suppressTransactionDisplay?: boolean;
|
|
25
|
+
/** The kinds of transactions to show */
|
|
26
|
+
kindsToShow?: TransactionKind[];
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import Transactions from "./Transactions";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof Transactions;
|
|
5
|
+
tags: string[];
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Default: Story;
|
|
10
|
+
export declare const WithModal: Story;
|
|
11
|
+
export declare const WithoutSearchBar: Story;
|
|
12
|
+
export declare const Mobile: Story;
|
|
13
|
+
export declare const WithCustomTransactionComponent: Story;
|
|
14
|
+
export declare const WithCustomColumns1: Story;
|
|
15
|
+
export declare const WithCustomColumns2: Story;
|
|
16
|
+
export declare const WithCustomColumns3: Story;
|
|
17
|
+
export declare const WithCustomColumns4: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FrontendTransaction as T, TransactionKind } from "@bunnyapp/common";
|
|
3
|
+
import { TransactionListColumnType } from "./transactionsList/TransactionsListDesktop";
|
|
4
|
+
export type TransactionsContextValues = {
|
|
5
|
+
showSearchBar?: boolean;
|
|
6
|
+
showTitle?: boolean;
|
|
7
|
+
transactionComponent?: React.ReactNode;
|
|
8
|
+
columns: TransactionListColumnType[];
|
|
9
|
+
className?: string;
|
|
10
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl";
|
|
11
|
+
searchBarClassName?: string;
|
|
12
|
+
useModal?: boolean;
|
|
13
|
+
onTransactionClick?: (transaction: T.Transaction) => void;
|
|
14
|
+
suppressTransactionDisplay?: boolean;
|
|
15
|
+
kindsToShow: TransactionKind[];
|
|
16
|
+
};
|
|
17
|
+
export declare const TransactionsListContext: import("react").Context<TransactionsContextValues>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Transactions";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FrontendTransaction as T } from "@bunnyapp/common";
|
|
2
|
+
declare const TransactionDownload: ({ transaction, token, subdomain, }: {
|
|
3
|
+
transaction: T.Transaction;
|
|
4
|
+
token: string;
|
|
5
|
+
subdomain: string;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default TransactionDownload;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const TransactionGridCell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
gridColumn?: string | number | undefined;
|
|
4
|
+
padding?: string | undefined;
|
|
5
|
+
right?: boolean | undefined;
|
|
6
|
+
}>> & string;
|
|
7
|
+
export default TransactionGridCell;
|
package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FrontendTransaction as T } from "@bunnyapp/common";
|
|
2
|
+
export type TransactionListColumnType = "date-and-title" | "state" | "amount" | "download" | "actions";
|
|
3
|
+
declare const TransactionsListDesktop: ({ transactions, onTransactionClick, }: {
|
|
4
|
+
transactions: T.Transaction[];
|
|
5
|
+
onTransactionClick: (transaction: T.Transaction) => void;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[];
|
|
7
|
+
export default TransactionsListDesktop;
|
package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts
ADDED
|
@@ -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 | import("react/jsx-runtime").JSX.Element[];
|
|
6
|
+
export default TransactionsListMobile;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Invoice } from "./Invoice";
|
|
2
|
+
export { Quote } from "./Quote";
|
|
3
|
+
export { PaymentMethod } from "./PaymentForm/PaymentMethod";
|
|
4
|
+
export * from "./Checkout";
|
|
5
|
+
export { default as BunnyProvider } from "./BunnyProvider";
|
|
6
|
+
export { default as Transactions } from "./Transactions";
|
|
7
|
+
export { Subscriptions } from "./Subscriptions";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const finixStyles: (isMobile: boolean) => {
|
|
2
|
+
default: {
|
|
3
|
+
color: string;
|
|
4
|
+
border: string;
|
|
5
|
+
padding: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
fontSize: string;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
};
|
|
10
|
+
success: {
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
error: {
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type NavigationContextValues = {
|
|
3
|
+
searchParams: URLSearchParams;
|
|
4
|
+
location: Location;
|
|
5
|
+
subdomain?: string;
|
|
6
|
+
navigate?: (url: string) => void;
|
|
7
|
+
navigateBackAfterDownload?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const NavigationContext: import("react").Context<NavigationContextValues>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Quote, Subscription, SubscriptionCharge } from "@bunnyapp/common";
|
|
2
|
+
declare const QuantityChangeGridRow: ({ chargeIndex, editingQuote, subscriptions, subscriptionIndex, setEditingQuoteData, subscription, subscriptionCharge, }: {
|
|
3
|
+
chargeIndex: number;
|
|
4
|
+
editingQuote?: Quote | undefined;
|
|
5
|
+
subscriptions: Subscription[];
|
|
6
|
+
subscriptionIndex: number;
|
|
7
|
+
setEditingQuoteData: (value: any) => void;
|
|
8
|
+
subscription: Subscription;
|
|
9
|
+
subscriptionCharge: SubscriptionCharge;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export default QuantityChangeGridRow;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Subscription, SubscriptionCharge, Quote } from "@bunnyapp/common";
|
|
2
|
+
export type EditingSubscriptionType = {
|
|
3
|
+
chargeId: string;
|
|
4
|
+
chargeIndex: number;
|
|
5
|
+
quantity: number;
|
|
6
|
+
subscription: Subscription;
|
|
7
|
+
subscriptionIndex: number;
|
|
8
|
+
};
|
|
9
|
+
declare const QuantityInput: ({ charge, chargeIndex, editingQuote, setEditingQuoteData, subscription, subscriptionIndex, subscriptions, }: {
|
|
10
|
+
charge: SubscriptionCharge;
|
|
11
|
+
chargeIndex: number;
|
|
12
|
+
editingQuote?: Quote | undefined;
|
|
13
|
+
setEditingQuoteData: (editingQuoteData: {
|
|
14
|
+
id: string;
|
|
15
|
+
isTrial: boolean;
|
|
16
|
+
} | undefined) => void;
|
|
17
|
+
subscription: Subscription;
|
|
18
|
+
subscriptionIndex: number;
|
|
19
|
+
subscriptions: Subscription[];
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default QuantityInput;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Quote } from "@bunnyapp/common";
|
|
2
|
+
import { EditingQuoteDataType } from "../../components/Subscriptions/Subscriptions";
|
|
3
|
+
declare const QuoteChangeSummarySection: ({ editingQuote, editingQuoteData, openCheckout, setEditingQuoteData, }: {
|
|
4
|
+
editingQuote?: Quote | undefined;
|
|
5
|
+
editingQuoteData?: EditingQuoteDataType | undefined;
|
|
6
|
+
openCheckout: () => void;
|
|
7
|
+
setEditingQuoteData: (editingQuoteData: EditingQuoteDataType | undefined) => void;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default QuoteChangeSummarySection;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Subscription, Quote } from "@bunnyapp/common";
|
|
2
|
+
import { EditingQuoteDataType } from "../../../components/Subscriptions/Subscriptions";
|
|
3
|
+
export declare const QUANTITY_CHANGE_HEADER_TITLE = "Update unit quantity";
|
|
4
|
+
export declare const QUANTITY_CHANGE_HEADER_DESCRIPTION = "Adjust quantities below. The change will take effect immediately after checkout has been completed.";
|
|
5
|
+
declare const QuantityChangeDrawerDesktop: ({ editingQuote, editingQuoteData, onClose, open, openCheckout, setEditingQuoteData, subscriptions, }: {
|
|
6
|
+
editingQuote?: Quote | undefined;
|
|
7
|
+
editingQuoteData?: EditingQuoteDataType | undefined;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
open: boolean;
|
|
10
|
+
openCheckout: () => void;
|
|
11
|
+
setEditingQuoteData: (value: EditingQuoteDataType | undefined) => void;
|
|
12
|
+
subscriptions: Subscription[];
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export default QuantityChangeDrawerDesktop;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const useCreateSubscriptionQuote: () => (subscriptionIds: string[], token: string) => Promise<unknown>;
|
|
2
|
+
export declare const useQuoteChangeUpdate: () => (charges: {
|
|
3
|
+
id: string;
|
|
4
|
+
quantity: number;
|
|
5
|
+
}[], quoteChangeId: string, token: string) => Promise<unknown>;
|
|
6
|
+
export declare const useQuoteDelete: () => (quoteId: string, token: string) => Promise<unknown>;
|
|
@@ -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, subdomain, }: {
|
|
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;
|
|
19
|
+
subdomain?: string | undefined;
|
|
20
|
+
}) => Promise<{
|
|
21
|
+
savePaymentMethod: boolean | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export default checkout;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Quote } from "@bunnyapp/common";
|
|
2
|
+
type Options = {
|
|
3
|
+
quoteId?: string;
|
|
4
|
+
priceListId?: string;
|
|
5
|
+
subscriptionId?: string;
|
|
6
|
+
quantity?: number;
|
|
7
|
+
token: string;
|
|
8
|
+
};
|
|
9
|
+
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}";
|
|
10
|
+
declare const quoteCompose: ({ quoteId, priceListId, subscriptionId, quantity, token, }: Options) => Promise<Quote>;
|
|
11
|
+
export default quoteCompose;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const getCurrentUserData: ({ token, subdomain, }: {
|
|
2
|
+
token: string;
|
|
3
|
+
subdomain?: string | undefined;
|
|
4
|
+
}) => Promise<{
|
|
5
|
+
authObjectName: any;
|
|
6
|
+
companyName: any;
|
|
7
|
+
entityId: any;
|
|
8
|
+
returnUrl: any;
|
|
9
|
+
privacyUrl: any;
|
|
10
|
+
termsUrl: any;
|
|
11
|
+
}>;
|
|
12
|
+
export default getCurrentUserData;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FeatureUsage } from "@bunnyapp/common";
|
|
2
|
+
declare const getFeatureUsage: ({ subscriptionChargeId, startDate, endDate, dataInterval, token, }: {
|
|
3
|
+
subscriptionChargeId: string;
|
|
4
|
+
startDate?: string | undefined;
|
|
5
|
+
endDate?: string | undefined;
|
|
6
|
+
dataInterval?: number | undefined;
|
|
7
|
+
token: string;
|
|
8
|
+
}) => Promise<FeatureUsage>;
|
|
9
|
+
export default getFeatureUsage;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FormattedInvoice } from "@bunnyapp/common";
|
|
2
|
+
declare const getFormattedInvoice: ({ id, token, subdomain, }: {
|
|
3
|
+
id?: string | undefined;
|
|
4
|
+
subdomain?: string | undefined;
|
|
5
|
+
token: string;
|
|
6
|
+
}) => Promise<FormattedInvoice>;
|
|
7
|
+
export default getFormattedInvoice;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Subscription } from "@bunnyapp/common";
|
|
2
|
+
declare const getPlanChangeOptions: ({ isInPreviewMode, token, upgradingSubscription, subdomain, }: {
|
|
3
|
+
isInPreviewMode?: boolean | undefined;
|
|
4
|
+
token: string;
|
|
5
|
+
upgradingSubscription?: Subscription | undefined;
|
|
6
|
+
subdomain: string;
|
|
7
|
+
}) => Promise<any>;
|
|
8
|
+
export default getPlanChangeOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { usePaymentMethod } from "./usePaymentMethod";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useSendAcceptQuote: (token: string, subdomain?: string, quoteId?: string) => {
|
|
3
|
+
acceptBoxVisible: boolean;
|
|
4
|
+
isAccepting: boolean;
|
|
5
|
+
sendAccept: (changedFormItems: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
}) => void;
|
|
8
|
+
setAcceptBoxVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
9
|
+
setIsAccepting: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
+
startAcceptance: () => void;
|
|
11
|
+
pandadocPollingModalVisible: boolean;
|
|
12
|
+
setPandadocPollingModalVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
13
|
+
};
|
|
14
|
+
export default useSendAcceptQuote;
|