@bunnyapp/components 1.6.0 → 1.7.0-beta.12
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 +10327 -8114
- package/dist/cjs/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
- package/dist/cjs/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
- package/dist/cjs/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
- package/dist/cjs/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
- package/dist/cjs/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +10 -0
- package/dist/cjs/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
- package/dist/cjs/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
- package/dist/cjs/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
- package/dist/cjs/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
- package/dist/cjs/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +3 -2
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +21 -2
- package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +8 -2
- package/dist/cjs/types/src/components/FeatureUsageGraph.d.ts +31 -4
- package/dist/cjs/types/src/components/Invoice/Invoice.d.ts +0 -1
- package/dist/cjs/types/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +5 -2
- package/dist/cjs/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +5 -3
- package/dist/cjs/types/src/components/PaymentForm/PaymentForm.d.ts +16 -3
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +5 -2
- package/dist/cjs/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +5 -3
- package/dist/cjs/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -2
- package/dist/cjs/types/src/components/PaymentForm/components/CouponEditor.d.ts +0 -2
- package/dist/cjs/types/src/components/PaymentForm/context/PaymentProvider.d.ts +16 -4
- package/dist/cjs/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +1 -1
- package/dist/cjs/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +18 -3
- package/dist/cjs/types/src/components/PaymentForm/types/PaymentFormTypes.d.ts +1 -1
- package/dist/cjs/types/src/components/Quote/AcceptQuoteModal.d.ts +12 -3
- package/dist/cjs/types/src/components/Quote/PaymentHoldModal.d.ts +17 -3
- package/dist/cjs/types/src/components/Quote/components/QuoteButtons.d.ts +26 -0
- package/dist/cjs/types/src/components/QuoteProvider/context/QuoteContext.d.ts +2 -1
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -1
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/Quotes/Quotes.d.ts +1 -1
- package/dist/cjs/types/src/components/Signup/CheckoutSummary.d.ts +2 -2
- package/dist/cjs/types/src/components/Signup/PaymentForms.d.ts +12 -3
- package/dist/cjs/types/src/components/Signup/PriceListDisplay.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +17 -5
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +0 -7
- package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +12 -6
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +4 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +16 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +4 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +2 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
- package/dist/{esm/types/src/graphql → cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +4 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +15 -13
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +4 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerUtils.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +2 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +15 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +16 -1
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/utils/createAvailableBillingPeriods.d.ts +16 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +3 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +175 -0
- package/dist/cjs/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +14 -0
- package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +46 -0
- package/dist/cjs/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +4 -0
- package/dist/cjs/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +17 -0
- package/dist/cjs/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +26 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuantityInput.d.ts +10 -1
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +197 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +15 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +23 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +20 -5
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +23 -5
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +39 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +30 -5
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -5
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +20 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +19 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +31 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +13 -9
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +9 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +14 -2
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +15 -3
- package/dist/cjs/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -4
- package/dist/cjs/types/src/components/TaxationForm.d.ts +1 -1
- package/dist/cjs/types/src/components/Transactions/Transactions.d.ts +2 -1
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +1 -1
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/cjs/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
- package/dist/cjs/types/src/components/Transactions/transactionsList/utils.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +1 -1
- package/dist/cjs/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +1 -1
- package/dist/cjs/types/src/consts/AppConsts.d.ts +10 -0
- package/dist/cjs/types/src/consts/DefaultBranding.d.ts +4 -0
- package/dist/cjs/types/src/consts/Lists.d.ts +4 -0
- package/dist/cjs/types/src/consts/StyleConsts.d.ts +58 -0
- package/dist/cjs/types/src/consts/index.d.ts +4 -0
- package/dist/cjs/types/src/contexts/InvoiceQuoteContext.d.ts +2 -1
- package/dist/cjs/types/src/contexts/TransactionsListContext.d.ts +2 -1
- package/dist/cjs/types/src/enums/ChargeType.d.ts +6 -0
- package/dist/cjs/types/src/enums/ColumnFormat.d.ts +16 -0
- package/dist/cjs/types/src/enums/CreditNoteState.d.ts +8 -0
- package/dist/cjs/types/src/enums/PriceAdjustmentAction.d.ts +6 -0
- package/dist/cjs/types/src/enums/PriceAdjustmentTiming.d.ts +16 -0
- package/dist/cjs/types/src/enums/QuoteChangeKind.d.ts +16 -0
- package/dist/cjs/types/src/enums/TransactionState.d.ts +14 -0
- package/dist/cjs/types/src/graphql/mutations/checkout.d.ts +6 -3
- package/dist/cjs/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +1 -1
- package/dist/cjs/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +1 -1
- package/dist/cjs/types/src/graphql/mutations/quoteCompose.d.ts +1 -1
- package/dist/cjs/types/src/graphql/mutations/quoteCreate.d.ts +1 -1
- package/dist/cjs/types/src/graphql/mutations/quoteCreateWithDeal.d.ts +1 -1
- package/dist/cjs/types/src/graphql/queries/getAccount.d.ts +6 -0
- package/dist/cjs/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
- package/dist/cjs/types/src/graphql/queries/getFormattedQuote.d.ts +10 -3
- package/dist/cjs/types/src/graphql/queries/getPriceList.d.ts +1 -1
- package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
- package/dist/cjs/types/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
- package/dist/cjs/types/src/graphql/queries/getTransactions.d.ts +1 -1
- package/dist/cjs/types/src/graphql-codegen/exportedScalarTypes.d.ts +3 -0
- package/dist/cjs/types/src/hooks/useCurrentUserData.d.ts +3 -3
- package/dist/cjs/types/src/hooks/useHasTaxPlugin.d.ts +1 -1
- package/dist/cjs/types/src/hooks/usePaymentMethod.d.ts +2 -2
- package/dist/cjs/types/src/hooks/useSigningPlugins.d.ts +2 -2
- package/dist/cjs/types/src/hooks/useUpdateCoupons.d.ts +2 -2
- package/dist/cjs/types/src/types/Account.d.ts +73 -0
- package/dist/cjs/types/src/types/AccountBalance.d.ts +6 -0
- package/dist/cjs/types/src/types/AccountType.d.ts +7 -0
- package/dist/cjs/types/src/types/ApprovalDecision.d.ts +13 -0
- package/dist/cjs/types/src/types/ApprovalRequest.d.ts +18 -0
- package/dist/cjs/types/src/types/ApprovalRule.d.ts +15 -0
- package/dist/cjs/types/src/types/Approver.d.ts +10 -0
- package/dist/cjs/types/src/types/Campaign.d.ts +13 -0
- package/dist/cjs/types/src/types/Contact.d.ts +27 -0
- package/dist/cjs/types/src/types/Coupon.d.ts +19 -0
- package/dist/cjs/types/src/types/CreditNote.d.ts +45 -0
- package/dist/cjs/types/src/types/CreditNoteItem.d.ts +20 -0
- package/dist/cjs/types/src/types/Currency.d.ts +11 -0
- package/dist/cjs/types/src/types/Deal.d.ts +38 -0
- package/dist/cjs/types/src/types/DealStage.d.ts +12 -0
- package/dist/cjs/types/src/types/DisputeReason.d.ts +6 -0
- package/dist/cjs/types/src/types/DynamicComponent.d.ts +12 -0
- package/dist/cjs/types/src/types/Entity.d.ts +41 -0
- package/dist/cjs/types/src/types/Feature.d.ts +21 -0
- package/dist/cjs/types/src/types/FeatureUsage.d.ts +35 -0
- package/dist/cjs/types/src/types/FormattedInvoice.d.ts +50 -0
- package/dist/cjs/types/src/types/FormattedQuote.d.ts +49 -0
- package/dist/cjs/types/src/types/Invoice.d.ts +60 -0
- package/dist/cjs/types/src/types/InvoiceConnection.d.ts +6 -0
- package/dist/cjs/types/src/types/InvoiceItem.d.ts +43 -0
- package/dist/cjs/types/src/types/Payment.d.ts +21 -0
- package/dist/cjs/types/src/types/PaymentApplication.d.ts +13 -0
- package/dist/cjs/types/src/types/PaymentHold.d.ts +10 -0
- package/dist/cjs/types/src/types/PaymentMethod.d.ts +29 -0
- package/dist/cjs/types/src/types/Plan.d.ts +40 -0
- package/dist/cjs/types/src/types/PlanChangeOptions.d.ts +7 -0
- package/dist/cjs/types/src/types/Platform.d.ts +12 -0
- package/dist/cjs/types/src/types/Plugin.d.ts +44 -0
- package/dist/cjs/types/src/types/PluginDefinition.d.ts +23 -0
- package/dist/cjs/types/src/types/PluginParameter.d.ts +12 -0
- package/dist/cjs/types/src/types/PluginVendor.d.ts +6 -0
- package/dist/cjs/types/src/types/PriceList.d.ts +41 -0
- package/dist/cjs/types/src/types/PriceListChangeOptions.d.ts +7 -0
- package/dist/cjs/types/src/types/PriceListCharge.d.ts +45 -0
- package/dist/cjs/types/src/types/PriceListChargeTier.d.ts +6 -0
- package/dist/cjs/types/src/types/PriceTier.d.ts +5 -0
- package/dist/cjs/types/src/types/Product.d.ts +22 -0
- package/dist/cjs/types/src/types/ProductCategory.d.ts +9 -0
- package/dist/cjs/types/src/types/Quote.d.ts +81 -0
- package/dist/cjs/types/src/types/QuoteChange.d.ts +21 -0
- package/dist/cjs/types/src/types/QuoteCharge.d.ts +50 -0
- package/dist/cjs/types/src/types/Role.d.ts +6 -0
- package/dist/cjs/types/src/types/Subscription.d.ts +37 -0
- package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +8 -1
- package/dist/cjs/types/src/types/TaxationRequiredAccountFields.d.ts +2 -0
- package/dist/cjs/types/src/types/Tenant.d.ts +19 -0
- package/dist/cjs/types/src/types/TenantProvisioningChange.d.ts +12 -0
- package/dist/cjs/types/src/types/Transaction.d.ts +27 -0
- package/dist/cjs/types/src/types/User.d.ts +25 -0
- package/dist/cjs/types/src/types/UserProfile.d.ts +7 -0
- package/dist/cjs/types/src/types/billingDetails.d.ts +1 -1
- package/dist/cjs/types/src/types/frontendTypes/ComponentJSON.d.ts +285 -0
- package/dist/cjs/types/src/types/frontendTypes/Error.d.ts +3 -0
- package/dist/cjs/types/src/types/frontendTypes/FormLink.d.ts +8 -0
- package/dist/cjs/types/src/types/frontendTypes/FormattedLine.d.ts +50 -0
- package/dist/cjs/types/src/types/frontendTypes/PaymentComponentProps.d.ts +18 -0
- package/dist/cjs/types/src/types/frontendTypes/PeriodAmount.d.ts +9 -0
- package/dist/cjs/types/src/types/frontendTypes/PlanFeature.d.ts +12 -0
- package/dist/cjs/types/src/types/frontendTypes/PluginData.d.ts +26 -0
- package/dist/cjs/types/src/types/frontendTypes/QuoteDocument.d.ts +8 -0
- package/dist/cjs/types/src/types/frontendTypes/QuotePreviewData.d.ts +6 -0
- package/dist/cjs/types/src/types/frontendTypes/TableColumn.d.ts +9 -0
- package/dist/cjs/types/src/types/frontendTypes/TriggeredApprovalRule.d.ts +5 -0
- package/dist/cjs/types/src/types/frontendTypes/currentUser.d.ts +11 -0
- package/dist/cjs/types/src/types/frontendTypes/index.d.ts +13 -0
- package/dist/cjs/types/src/types/interfaces/Payable.d.ts +16 -0
- package/dist/cjs/types/src/types/interfaces/PayableItem.d.ts +11 -0
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +10 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanSwitchTestId.d.ts +1 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/consts.d.ts +1 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/findAddonSubscriptions.d.ts +12 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/findNonAddonSubscriptions.d.ts +17 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/findParentSubscription.d.ts +12 -0
- package/dist/cjs/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +1 -1
- package/dist/cjs/types/src/utils/apiUtils/apiUtils.d.ts +4 -4
- package/dist/cjs/types/src/utils/apiUtils/config.d.ts +9 -0
- package/dist/cjs/types/src/utils/apiUtils/invokePlugin.d.ts +1 -1
- package/dist/cjs/types/src/utils/couponUtils.d.ts +21 -2
- package/dist/cjs/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +4 -2
- package/dist/cjs/types/src/utils/formatDate.d.ts +1 -0
- package/dist/cjs/types/src/utils/graphql.d.ts +2 -0
- package/dist/cjs/types/src/utils/httpUtils.d.ts +10 -0
- package/dist/cjs/types/src/utils/isColorTooDark.d.ts +1 -0
- package/dist/cjs/types/src/utils/notificationUtils.d.ts +5 -0
- package/dist/cjs/types/src/utils/priceListChargeUtils/filterDeprecatedCharges.d.ts +11 -0
- package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +4 -3
- package/dist/esm/index.js +23368 -21155
- package/dist/esm/types/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +5 -0
- package/dist/esm/types/src/components/BillingDetails/BillingDetailsForm.d.ts +0 -1
- package/dist/esm/types/src/components/BillingDetails/components/AddContactButton.d.ts +3 -0
- package/dist/esm/types/src/components/BillingDetails/components/AddContactModal.d.ts +8 -0
- package/dist/esm/types/src/components/BillingDetails/fragments/AccountContactsFragment.d.ts +10 -0
- package/dist/esm/types/src/components/BillingDetails/fragments/BillingDetailsSection_AccountFragment.d.ts +20 -0
- package/dist/esm/types/src/components/BillingDetails/hooks/useSetAccountContactsQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/BillingDetails/mutations/accountUpdate.d.ts +22 -0
- package/dist/esm/types/src/components/BillingDetails/mutations/contactCreate.d.ts +22 -0
- package/dist/esm/types/src/components/BillingDetails/queries/getAccount.d.ts +9 -0
- package/dist/esm/types/src/components/BillingDetails/queries/getAccountContacts.d.ts +9 -0
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +3 -2
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +21 -2
- package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +8 -2
- package/dist/esm/types/src/components/FeatureUsageGraph.d.ts +31 -4
- package/dist/esm/types/src/components/Invoice/Invoice.d.ts +0 -1
- package/dist/esm/types/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
- package/dist/esm/types/src/components/PaymentForm/DemoPay/demoPayUtils.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/useApproveHold.d.ts +5 -2
- package/dist/esm/types/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +5 -3
- package/dist/esm/types/src/components/PaymentForm/PaymentForm.d.ts +16 -3
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/useApproveHold.d.ts +5 -2
- package/dist/esm/types/src/components/PaymentForm/Stripe/hooks/usePay.d.ts +5 -3
- package/dist/esm/types/src/components/PaymentForm/Stripe/stripeUtils.d.ts +6 -2
- package/dist/esm/types/src/components/PaymentForm/components/CouponEditor.d.ts +0 -2
- package/dist/esm/types/src/components/PaymentForm/context/PaymentProvider.d.ts +16 -4
- package/dist/esm/types/src/components/PaymentForm/context/SelectedPaymentPluginContext.d.ts +1 -1
- package/dist/esm/types/src/components/PaymentForm/hooks/useHandlePayment.d.ts +18 -3
- package/dist/esm/types/src/components/PaymentForm/types/PaymentFormTypes.d.ts +1 -1
- package/dist/esm/types/src/components/Quote/AcceptQuoteModal.d.ts +12 -3
- package/dist/esm/types/src/components/Quote/PaymentHoldModal.d.ts +17 -3
- package/dist/esm/types/src/components/Quote/components/QuoteButtons.d.ts +26 -0
- package/dist/esm/types/src/components/QuoteProvider/context/QuoteContext.d.ts +2 -1
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +1 -1
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +9 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteCreate.d.ts +2 -1
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +1 -1
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/Quotes/Quotes.d.ts +1 -1
- package/dist/esm/types/src/components/Signup/CheckoutSummary.d.ts +2 -2
- package/dist/esm/types/src/components/Signup/PaymentForms.d.ts +12 -3
- package/dist/esm/types/src/components/Signup/PriceListDisplay.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/AddonSubscriptionCards.d.ts +17 -5
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +0 -7
- package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +12 -6
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PriceListGrid.d.ts +4 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarInput.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutBarSummarySection.d.ts +16 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutButton.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/CheckoutPrice.d.ts +12 -3
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/BillingPeriodSelector.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/EverythingPlanFeatures.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PriceListGridDesktop.d.ts +4 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonsList.d.ts +2 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/FeatureAddonRow_QuoteFragment.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/fragments/useQuoteUpdateFeatureAddon_QuoteFragment.d.ts +8 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/hooks/useQuoteUpdateFeatureAddon.d.ts +9 -0
- package/dist/{cjs/types/src/graphql → esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons}/mutations/quoteChargeCreate.d.ts +12 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +4 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/AddonPlans.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/components/AddonPlanRow.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/AddonPlanRow_QuoteFragment.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/fragments/useToggleAddonPlan_QuoteFragment.d.ts +13 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/hooks/useToggleAddonQuoteChange.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeCreate.d.ts +18 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/addonPlans/mutations/quoteChangeDelete.d.ts +15 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts +15 -13
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +3 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListGridMobile.d.ts +4 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerUtils.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +2 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardButton.d.ts +15 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCardFeature.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +3 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/PriceListSelector.d.ts +16 -1
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListSelector/utils/createAvailableBillingPeriods.d.ts +16 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.d.ts +3 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/queries/getSubscriptions.d.ts +175 -0
- package/dist/esm/types/src/components/Subscriptions/context/changeUpgradingSubscriptionContext.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/context/subscriptionCancelContext.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/context/subscriptionPropsContext.d.ts +14 -0
- package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionContext.d.ts +46 -0
- package/dist/esm/types/src/components/Subscriptions/context/upgradingSubscriptionIdContext.d.ts +4 -0
- package/dist/esm/types/src/components/Subscriptions/fragments/Subscriptions_SubscriptionFragment.d.ts +17 -0
- package/dist/esm/types/src/components/Subscriptions/fragments/UpgradingSubscriptionContext_SubscriptionFragment.d.ts +26 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIsLoadingContext.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteRecalculateTaxesContext.d.ts +6 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteDelete.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/mutations/quoteRecalculateTaxes.d.ts +11 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuantityInput.d.ts +10 -1
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/QuoteIsLoadingUpdater.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/queries/getSubscriptions.d.ts +197 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +15 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeUnitPrice.d.ts +23 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsList.d.ts +20 -5
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktop.d.ts +23 -5
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardDesktop/SubscriptionCardDesktopRow.d.ts +39 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/SubscriptionCardHeader.d.ts +30 -5
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -5
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusAndActions.d.ts +20 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionStatusText.d.ts +19 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardMobile/SubscriptionCardMobile.d.ts +31 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionUtils.d.ts +13 -9
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrial.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/canSubscriptionUpgradeFromTrialExpired.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +9 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +14 -2
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/TieredDisplayDropdown.d.ts +15 -3
- package/dist/esm/types/src/components/Subscriptions/tieredDisplayDropdown/util.d.ts +9 -4
- package/dist/esm/types/src/components/TaxationForm.d.ts +1 -1
- package/dist/esm/types/src/components/Transactions/Transactions.d.ts +2 -1
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionDownload.d.ts +1 -1
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionTitle.d.ts +1 -1
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListDesktop.d.ts +1 -1
- package/dist/esm/types/src/components/Transactions/transactionsList/TransactionsListMobile.d.ts +1 -1
- package/dist/esm/types/src/components/Transactions/transactionsList/utils.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelDescription.d.ts +1 -1
- package/dist/esm/types/src/components/priceListPricing/utils/getPricingModelTitle.d.ts +1 -1
- package/dist/esm/types/src/consts/AppConsts.d.ts +10 -0
- package/dist/esm/types/src/consts/DefaultBranding.d.ts +4 -0
- package/dist/esm/types/src/consts/Lists.d.ts +4 -0
- package/dist/esm/types/src/consts/StyleConsts.d.ts +58 -0
- package/dist/esm/types/src/consts/index.d.ts +4 -0
- package/dist/esm/types/src/contexts/InvoiceQuoteContext.d.ts +2 -1
- package/dist/esm/types/src/contexts/TransactionsListContext.d.ts +2 -1
- package/dist/esm/types/src/enums/ChargeType.d.ts +6 -0
- package/dist/esm/types/src/enums/ColumnFormat.d.ts +16 -0
- package/dist/esm/types/src/enums/CreditNoteState.d.ts +8 -0
- package/dist/esm/types/src/enums/PriceAdjustmentAction.d.ts +6 -0
- package/dist/esm/types/src/enums/PriceAdjustmentTiming.d.ts +16 -0
- package/dist/esm/types/src/enums/QuoteChangeKind.d.ts +16 -0
- package/dist/esm/types/src/enums/TransactionState.d.ts +14 -0
- package/dist/esm/types/src/graphql/mutations/checkout.d.ts +6 -3
- package/dist/esm/types/src/graphql/mutations/quoteChangeAddCoupon.d.ts +1 -1
- package/dist/esm/types/src/graphql/mutations/quoteChangeRemoveCoupon.d.ts +1 -1
- package/dist/esm/types/src/graphql/mutations/quoteCompose.d.ts +1 -1
- package/dist/esm/types/src/graphql/mutations/quoteCreate.d.ts +1 -1
- package/dist/esm/types/src/graphql/mutations/quoteCreateWithDeal.d.ts +1 -1
- package/dist/esm/types/src/graphql/queries/getAccount.d.ts +6 -0
- package/dist/esm/types/src/graphql/queries/getFormattedInvoice.d.ts +1 -1
- package/dist/esm/types/src/graphql/queries/getFormattedQuote.d.ts +10 -3
- package/dist/esm/types/src/graphql/queries/getPriceList.d.ts +1 -1
- package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
- package/dist/esm/types/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
- package/dist/esm/types/src/graphql/queries/getTransactions.d.ts +1 -1
- package/dist/esm/types/src/graphql-codegen/exportedScalarTypes.d.ts +3 -0
- package/dist/esm/types/src/hooks/useCurrentUserData.d.ts +3 -3
- package/dist/esm/types/src/hooks/useHasTaxPlugin.d.ts +1 -1
- package/dist/esm/types/src/hooks/usePaymentMethod.d.ts +2 -2
- package/dist/esm/types/src/hooks/useSigningPlugins.d.ts +2 -2
- package/dist/esm/types/src/hooks/useUpdateCoupons.d.ts +2 -2
- package/dist/esm/types/src/types/Account.d.ts +73 -0
- package/dist/esm/types/src/types/AccountBalance.d.ts +6 -0
- package/dist/esm/types/src/types/AccountType.d.ts +7 -0
- package/dist/esm/types/src/types/ApprovalDecision.d.ts +13 -0
- package/dist/esm/types/src/types/ApprovalRequest.d.ts +18 -0
- package/dist/esm/types/src/types/ApprovalRule.d.ts +15 -0
- package/dist/esm/types/src/types/Approver.d.ts +10 -0
- package/dist/esm/types/src/types/Campaign.d.ts +13 -0
- package/dist/esm/types/src/types/Contact.d.ts +27 -0
- package/dist/esm/types/src/types/Coupon.d.ts +19 -0
- package/dist/esm/types/src/types/CreditNote.d.ts +45 -0
- package/dist/esm/types/src/types/CreditNoteItem.d.ts +20 -0
- package/dist/esm/types/src/types/Currency.d.ts +11 -0
- package/dist/esm/types/src/types/Deal.d.ts +38 -0
- package/dist/esm/types/src/types/DealStage.d.ts +12 -0
- package/dist/esm/types/src/types/DisputeReason.d.ts +6 -0
- package/dist/esm/types/src/types/DynamicComponent.d.ts +12 -0
- package/dist/esm/types/src/types/Entity.d.ts +41 -0
- package/dist/esm/types/src/types/Feature.d.ts +21 -0
- package/dist/esm/types/src/types/FeatureUsage.d.ts +35 -0
- package/dist/esm/types/src/types/FormattedInvoice.d.ts +50 -0
- package/dist/esm/types/src/types/FormattedQuote.d.ts +49 -0
- package/dist/esm/types/src/types/Invoice.d.ts +60 -0
- package/dist/esm/types/src/types/InvoiceConnection.d.ts +6 -0
- package/dist/esm/types/src/types/InvoiceItem.d.ts +43 -0
- package/dist/esm/types/src/types/Payment.d.ts +21 -0
- package/dist/esm/types/src/types/PaymentApplication.d.ts +13 -0
- package/dist/esm/types/src/types/PaymentHold.d.ts +10 -0
- package/dist/esm/types/src/types/PaymentMethod.d.ts +29 -0
- package/dist/esm/types/src/types/Plan.d.ts +40 -0
- package/dist/esm/types/src/types/PlanChangeOptions.d.ts +7 -0
- package/dist/esm/types/src/types/Platform.d.ts +12 -0
- package/dist/esm/types/src/types/Plugin.d.ts +44 -0
- package/dist/esm/types/src/types/PluginDefinition.d.ts +23 -0
- package/dist/esm/types/src/types/PluginParameter.d.ts +12 -0
- package/dist/esm/types/src/types/PluginVendor.d.ts +6 -0
- package/dist/esm/types/src/types/PriceList.d.ts +41 -0
- package/dist/esm/types/src/types/PriceListChangeOptions.d.ts +7 -0
- package/dist/esm/types/src/types/PriceListCharge.d.ts +45 -0
- package/dist/esm/types/src/types/PriceListChargeTier.d.ts +6 -0
- package/dist/esm/types/src/types/PriceTier.d.ts +5 -0
- package/dist/esm/types/src/types/Product.d.ts +22 -0
- package/dist/esm/types/src/types/ProductCategory.d.ts +9 -0
- package/dist/esm/types/src/types/Quote.d.ts +81 -0
- package/dist/esm/types/src/types/QuoteChange.d.ts +21 -0
- package/dist/esm/types/src/types/QuoteCharge.d.ts +50 -0
- package/dist/esm/types/src/types/Role.d.ts +6 -0
- package/dist/esm/types/src/types/Subscription.d.ts +37 -0
- package/dist/esm/types/src/types/SubscriptionCharge.d.ts +8 -1
- package/dist/esm/types/src/types/TaxationRequiredAccountFields.d.ts +2 -0
- package/dist/esm/types/src/types/Tenant.d.ts +19 -0
- package/dist/esm/types/src/types/TenantProvisioningChange.d.ts +12 -0
- package/dist/esm/types/src/types/Transaction.d.ts +27 -0
- package/dist/esm/types/src/types/User.d.ts +25 -0
- package/dist/esm/types/src/types/UserProfile.d.ts +7 -0
- package/dist/esm/types/src/types/billingDetails.d.ts +1 -1
- package/dist/esm/types/src/types/frontendTypes/ComponentJSON.d.ts +285 -0
- package/dist/esm/types/src/types/frontendTypes/Error.d.ts +3 -0
- package/dist/esm/types/src/types/frontendTypes/FormLink.d.ts +8 -0
- package/dist/esm/types/src/types/frontendTypes/FormattedLine.d.ts +50 -0
- package/dist/esm/types/src/types/frontendTypes/PaymentComponentProps.d.ts +18 -0
- package/dist/esm/types/src/types/frontendTypes/PeriodAmount.d.ts +9 -0
- package/dist/esm/types/src/types/frontendTypes/PlanFeature.d.ts +12 -0
- package/dist/esm/types/src/types/frontendTypes/PluginData.d.ts +26 -0
- package/dist/esm/types/src/types/frontendTypes/QuoteDocument.d.ts +8 -0
- package/dist/esm/types/src/types/frontendTypes/QuotePreviewData.d.ts +6 -0
- package/dist/esm/types/src/types/frontendTypes/TableColumn.d.ts +9 -0
- package/dist/esm/types/src/types/frontendTypes/TriggeredApprovalRule.d.ts +5 -0
- package/dist/esm/types/src/types/frontendTypes/currentUser.d.ts +11 -0
- package/dist/esm/types/src/types/frontendTypes/index.d.ts +13 -0
- package/dist/esm/types/src/types/interfaces/Payable.d.ts +16 -0
- package/dist/esm/types/src/types/interfaces/PayableItem.d.ts +11 -0
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +10 -0
- package/dist/esm/types/src/utils/addonPlanUtils/addonPlanSwitchTestId.d.ts +1 -0
- package/dist/esm/types/src/utils/addonPlanUtils/consts.d.ts +1 -0
- package/dist/esm/types/src/utils/addonPlanUtils/findAddonSubscriptions.d.ts +12 -0
- package/dist/esm/types/src/utils/addonPlanUtils/findNonAddonSubscriptions.d.ts +17 -0
- package/dist/esm/types/src/utils/addonPlanUtils/findParentSubscription.d.ts +12 -0
- package/dist/esm/types/src/utils/addonPlanUtils/hasUnpurchasedAddonPricelists.d.ts +1 -1
- package/dist/esm/types/src/utils/apiUtils/apiUtils.d.ts +4 -4
- package/dist/esm/types/src/utils/apiUtils/config.d.ts +9 -0
- package/dist/esm/types/src/utils/apiUtils/invokePlugin.d.ts +1 -1
- package/dist/esm/types/src/utils/couponUtils.d.ts +21 -2
- package/dist/esm/types/src/utils/featureAddonUtils/featureAddonUtils.d.ts +4 -2
- package/dist/esm/types/src/utils/formatDate.d.ts +1 -0
- package/dist/esm/types/src/utils/graphql.d.ts +2 -0
- package/dist/esm/types/src/utils/httpUtils.d.ts +10 -0
- package/dist/esm/types/src/utils/isColorTooDark.d.ts +1 -0
- package/dist/esm/types/src/utils/notificationUtils.d.ts +5 -0
- package/dist/esm/types/src/utils/priceListChargeUtils/filterDeprecatedCharges.d.ts +11 -0
- package/dist/esm/types/src/utils/pricePickerUtils.d.ts +4 -3
- package/dist/index.d.ts +22 -8
- package/package.json +18 -19
- package/dist/cjs/types/src/contexts/SubscriptionsContext.d.ts +0 -14
- package/dist/cjs/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
- package/dist/cjs/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
- package/dist/cjs/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
- package/dist/cjs/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
- package/dist/cjs/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
- package/dist/cjs/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
- package/dist/cjs/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
- package/dist/cjs/types/src/styles/constants.d.ts +0 -1
- package/dist/cjs/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +0 -5
- package/dist/esm/types/src/contexts/SubscriptionsContext.d.ts +0 -14
- package/dist/esm/types/src/graphql/mutations/billingDetailsUpdate.d.ts +0 -6
- package/dist/esm/types/src/graphql/mutations/quoteAddonCreate.d.ts +0 -7
- package/dist/esm/types/src/graphql/mutations/quoteChangeCreate.d.ts +0 -8
- package/dist/esm/types/src/graphql/mutations/quoteChangeDelete.d.ts +0 -6
- package/dist/esm/types/src/graphql/queries/getBillingDetails.d.ts +0 -6
- package/dist/esm/types/src/hooks/quotes/useQuoteUpdateFeatureAddon.d.ts +0 -7
- package/dist/esm/types/src/hooks/useToggleAddonQuoteChange.d.ts +0 -7
- package/dist/esm/types/src/styles/constants.d.ts +0 -1
- package/dist/esm/types/src/utils/addonPlanUtils/addonPlanUtils.d.ts +0 -5
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const quoteRecalculateTaxes: ({ quoteId, apiHost, token, }: {
|
|
2
|
+
quoteId: string;
|
|
3
|
+
apiHost: string;
|
|
4
|
+
token?: string;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
[$tada.fragmentRefs]: {
|
|
7
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
8
|
+
};
|
|
9
|
+
id: string | null;
|
|
10
|
+
} | null | undefined>;
|
|
11
|
+
export default quoteRecalculateTaxes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Transaction } from '
|
|
1
|
+
import { Transaction } from '@/types/Transaction';
|
|
2
2
|
import { ShadowType } from '../../types/shadowType';
|
|
3
3
|
import { TransactionListColumnType } from '../Transactions/transactionsList/TransactionsListDesktop';
|
|
4
4
|
declare function Quotes({ className, columns, filter, filterQuotes, sort, noQuotesMessage, onQuoteClick, renderQuote, searchBarClassName, shadow, showSearchBar, showTitle, title, style, suppressQuoteDisplay, useModal, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import {
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import { Quote } from '@/types/Quote';
|
|
3
3
|
export default function CheckoutSummary({ quote, className, onAddCoupon, onRemoveCoupon, isRemovingCoupon, priceListData, isAddingCoupon, couponCode, setCouponCode, activeCouponsExist, }: {
|
|
4
4
|
quote: Quote;
|
|
5
5
|
className?: string;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const PaymentForms_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
[$tada.fragmentRefs]: {
|
|
4
|
+
PaymentForm_QuoteFragment: "Quote";
|
|
5
|
+
};
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "PaymentForms_QuoteFragment";
|
|
8
|
+
on: "Quote";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
11
|
+
export default function PaymentForms({ quote: maskedQuote, handlePaymentSuccess, handleSubmit, proceedingToPayment, accountId, overrideToken, customCheckoutFunction, defaultValues, }: {
|
|
12
|
+
quote?: FragmentOf<typeof PaymentForms_QuoteFragment>;
|
|
4
13
|
handlePaymentSuccess: () => void;
|
|
5
14
|
handleSubmit: (formData: FormData) => void;
|
|
6
15
|
proceedingToPayment: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../styles/index.less';
|
|
2
|
-
import
|
|
2
|
+
import PriceList from '@/types/PriceList';
|
|
3
3
|
export default function PriceListDisplay({ priceListData }: {
|
|
4
4
|
priceListData?: PriceList;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const AddonSubscriptionsCards_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
id: string;
|
|
4
|
+
state: "ACTIVE" | "TRIAL" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
|
|
5
|
+
[$tada.fragmentRefs]: {
|
|
6
|
+
SubscriptionCardDesktop_SubscriptionFragment: "Subscription";
|
|
7
|
+
} & {
|
|
8
|
+
findAddonSubscriptions_SubscriptionFragment: "Subscription";
|
|
9
|
+
};
|
|
10
|
+
}, {}, {
|
|
11
|
+
fragment: "AddonSubscriptionsCards_SubscriptionFragment";
|
|
12
|
+
on: "Subscription";
|
|
13
|
+
masked: true;
|
|
14
|
+
}>;
|
|
15
|
+
export declare function AddonSubscriptionsCards({ subscriptions: maskedSubscriptions, subscription: maskedSubscription, showInactive, }: {
|
|
16
|
+
subscriptions: FragmentOf<typeof AddonSubscriptionsCards_SubscriptionFragment>[];
|
|
17
|
+
subscription: FragmentOf<typeof AddonSubscriptionsCards_SubscriptionFragment>;
|
|
6
18
|
showInactive: boolean;
|
|
7
19
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export declare const Subscriptions_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
-
state: "TRIAL" | "ACTIVE" | "CANCELED" | "EXPIRED" | "TRIAL_EXPIRED" | "PENDING";
|
|
3
|
-
}, {}, {
|
|
4
|
-
fragment: "Subscriptions_SubscriptionFragment";
|
|
5
|
-
on: "Subscription";
|
|
6
|
-
masked: true;
|
|
7
|
-
}>;
|
|
8
1
|
declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, showInactiveSubscriptions, showInactiveSubscriptionsToggle, }: {
|
|
9
2
|
handlePortalErrors?: (errors: any) => void;
|
|
10
3
|
companyName: string;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
export declare const SubscriptionsListContainer_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
[$tada.fragmentRefs]: {
|
|
4
|
+
SubscriptionsList_SubscriptionFragment: "Subscription";
|
|
5
|
+
};
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "SubscriptionsListContainer_SubscriptionFragment";
|
|
8
|
+
on: "Subscription";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
11
|
+
declare const SubscriptionsListContainer: ({ companyName, showInactive, noSubscriptionsComponent, subscriptions: maskedSubscriptions, subscriptionsAreLoading, }: {
|
|
4
12
|
companyName: string;
|
|
5
13
|
showInactive?: boolean;
|
|
6
|
-
onCancelSubscriptionClick?: (subscription: Subscription) => void;
|
|
7
|
-
onChangePlanClick?: (subscription: Subscription) => void;
|
|
8
14
|
noSubscriptionsComponent?: React.ReactNode;
|
|
9
|
-
subscriptions:
|
|
15
|
+
subscriptions: FragmentOf<typeof SubscriptionsListContainer_SubscriptionFragment>[];
|
|
10
16
|
subscriptionsAreLoading: boolean;
|
|
11
17
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
18
|
export default SubscriptionsListContainer;
|
package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/NextPriceListButton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PriceList from '@/types/PriceList';
|
|
3
3
|
declare const NextPriceListButton: ({ availablePriceLists, priceListStart, setPriceListStart, numberOfPlansToDisplay, }: {
|
|
4
4
|
availablePriceLists: PriceList[];
|
|
5
5
|
numberOfPlansToDisplay: number;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
-
import
|
|
2
|
+
import PriceList from '@/types/PriceList';
|
|
3
|
+
import PriceListChangeOptions from '@/types/PriceListChangeOptions';
|
|
4
|
+
import Product from '@/types/Product';
|
|
5
|
+
import Subscription from '@/types/Subscription';
|
|
3
6
|
import { Dispatch, SetStateAction } from 'react';
|
|
4
7
|
type PriceListGridProps = {
|
|
5
8
|
availablePriceLists: PriceList[];
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
3
|
-
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
export declare const CheckoutBarSummarySection_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
3
|
+
quoteChanges: {
|
|
4
|
+
charges: {
|
|
5
|
+
id: string | null;
|
|
6
|
+
}[];
|
|
7
|
+
}[] | null;
|
|
8
|
+
[$tada.fragmentRefs]: {
|
|
9
|
+
CheckoutPrice_QuoteFragment: "Quote";
|
|
10
|
+
};
|
|
11
|
+
}, {}, {
|
|
12
|
+
fragment: "CheckoutBarSummarySection_QuoteFragment";
|
|
13
|
+
on: "Quote";
|
|
14
|
+
masked: true;
|
|
15
|
+
}>;
|
|
16
|
+
declare const CheckoutBarSummarySection: ({ selectedPriceList, onClickCheckout, }: {
|
|
4
17
|
selectedPriceList: PriceList;
|
|
5
18
|
onClickCheckout: () => void;
|
|
6
19
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const CheckoutButton: ({
|
|
2
|
-
|
|
1
|
+
declare const CheckoutButton: ({ disabled, onClickCheckout, loading, tooltipText, }: {
|
|
2
|
+
disabled: boolean;
|
|
3
3
|
onClickCheckout: () => void;
|
|
4
4
|
loading: boolean;
|
|
5
5
|
tooltipText?: string;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const CheckoutPrice_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
periodAmount: number | null;
|
|
5
|
+
amountDue: number | null;
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "CheckoutPrice_QuoteFragment";
|
|
8
|
+
on: "Quote";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
11
|
+
declare const CheckoutPrice: ({ isUsage, quote: maskedQuote, selectedPriceList, }: {
|
|
3
12
|
isUsage: boolean;
|
|
4
|
-
quote?:
|
|
13
|
+
quote?: FragmentOf<typeof CheckoutPrice_QuoteFragment>;
|
|
5
14
|
selectedPriceList: PriceList;
|
|
6
15
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
16
|
export default CheckoutPrice;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
-
import
|
|
2
|
+
import Product from '@/types/Product';
|
|
3
3
|
type PeriodMonths = number;
|
|
4
4
|
declare const BillingPeriodSelector: ({ availableBillingPeriods, onChangeBillingPeriod, products, selectedBillingPeriod, selectedProduct, onChangeProduct, }: {
|
|
5
5
|
availableBillingPeriods?: PeriodMonths[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import Product from '@/types/Product';
|
|
2
3
|
declare const EverythingPlanFeatures: ({ displayPriceLists, selectedProduct, plansToDisplay, hideBorder, }: {
|
|
3
4
|
displayPriceLists: PriceList[];
|
|
4
5
|
plansToDisplay: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import Feature from '@/types/Feature';
|
|
2
3
|
export declare const PlanFeatures: ({ displayPriceLists, features, plansToDisplay, }: {
|
|
3
4
|
displayPriceLists: PriceList[];
|
|
4
5
|
plansToDisplay: number;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
-
import
|
|
2
|
+
import PriceList from '@/types/PriceList';
|
|
3
|
+
import PriceListChangeOptions from '@/types/PriceListChangeOptions';
|
|
4
|
+
import Product from '@/types/Product';
|
|
5
|
+
import Subscription from '@/types/Subscription';
|
|
3
6
|
import { Dispatch, SetStateAction } from 'react';
|
|
4
7
|
type PriceListGridDesktopProps = {
|
|
5
8
|
availablePriceLists: PriceList[];
|
|
@@ -6,6 +6,8 @@ export declare const FeatureAddonsList_PriceListFragment: import("gql.tada").Tad
|
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
8
|
featureAddon: boolean | null;
|
|
9
|
+
deprecated: boolean | null;
|
|
10
|
+
removeOnRenewal: boolean | null;
|
|
9
11
|
[$tada.fragmentRefs]: {
|
|
10
12
|
PricingTooltip_PriceListChargeFragment: "PriceListCharge";
|
|
11
13
|
} & {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const FeatureAddonRow_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
[$tada.fragmentRefs]: {
|
|
3
|
+
useQuoteUpdateFeatureAddon_QuoteFragment: "Quote";
|
|
4
|
+
};
|
|
5
|
+
}, {}, {
|
|
6
|
+
fragment: "FeatureAddonRow_QuoteFragment";
|
|
7
|
+
on: "Quote";
|
|
8
|
+
masked: true;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PriceListCharge } from '@/types/PriceListCharge';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
import { useQuoteUpdateFeatureAddon_QuoteFragment } from '../fragments/useQuoteUpdateFeatureAddon_QuoteFragment';
|
|
4
|
+
export declare const useQuoteUpdateFeatureAddon: (maskedQuote: FragmentOf<typeof useQuoteUpdateFeatureAddon_QuoteFragment> | null | undefined, featureAddon: PriceListCharge) => {
|
|
5
|
+
handleAddFeatureAddon: () => void;
|
|
6
|
+
handleRemoveFeatureAddon: () => void;
|
|
7
|
+
isPending: boolean;
|
|
8
|
+
isChecked: boolean;
|
|
9
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { QuoteCharge } from '@bunnyapp/common';
|
|
2
1
|
type QuoteChangeCreateChargeProps = {
|
|
3
2
|
apiHost: string;
|
|
4
3
|
price?: number;
|
|
@@ -9,5 +8,16 @@ type QuoteChangeCreateChargeProps = {
|
|
|
9
8
|
subscriptionChargeId?: string;
|
|
10
9
|
token?: string;
|
|
11
10
|
};
|
|
12
|
-
declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<
|
|
11
|
+
declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<{
|
|
12
|
+
quoteChange: {
|
|
13
|
+
id: string | null;
|
|
14
|
+
quoteId: string;
|
|
15
|
+
quote: {
|
|
16
|
+
[$tada.fragmentRefs]: {
|
|
17
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
id: string | null;
|
|
22
|
+
} | null | undefined>;
|
|
13
23
|
export default quoteChargeCreate;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import DeprecatedPriceList from '@/types/PriceList';
|
|
2
|
+
import Feature from '@/types/Feature';
|
|
3
|
+
import Subscription from '@/types/Subscription';
|
|
2
4
|
import { FragmentOf } from 'gql.tada';
|
|
3
5
|
export declare const PriceListCardDesktop_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
6
|
id: string;
|
|
7
|
+
deprecated: boolean | null;
|
|
5
8
|
plan: {
|
|
6
9
|
id: string;
|
|
7
10
|
pricingStyle: "PRICED" | "FREE" | "CONTACT_US";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
|
|
2
|
-
import
|
|
2
|
+
import PriceList from '@/types/PriceList';
|
|
3
|
+
import Subscription from '@/types/Subscription';
|
|
3
4
|
type PlanAddonsCardProps = {
|
|
4
5
|
selectedPriceList: PriceList;
|
|
5
6
|
subscriptions: Subscription[];
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import DeprecatedPriceList from '@/types/PriceList';
|
|
2
2
|
import { FragmentOf } from 'gql.tada';
|
|
3
3
|
export declare const AddonPlanRow_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
4
|
id: string;
|
|
5
5
|
plan: {
|
|
6
6
|
description: string | null;
|
|
7
7
|
name: string;
|
|
8
|
+
pricingDescription: string | null;
|
|
8
9
|
} | null;
|
|
9
10
|
[$tada.fragmentRefs]: {
|
|
10
11
|
PriceListCardPriceDescription_PriceListFragment: "PriceList";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const useToggleAddonPlan_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
quoteChanges: {
|
|
3
|
+
priceList: {
|
|
4
|
+
id: string;
|
|
5
|
+
} | null;
|
|
6
|
+
id: string | null;
|
|
7
|
+
}[] | null;
|
|
8
|
+
id: string | null;
|
|
9
|
+
}, {}, {
|
|
10
|
+
fragment: "useToggleAddonPlan_QuoteFragment";
|
|
11
|
+
on: "Quote";
|
|
12
|
+
masked: true;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
import { useToggleAddonPlan_QuoteFragment } from '../fragments/useToggleAddonPlan_QuoteFragment';
|
|
4
|
+
export declare const useToggleAddonPlan: (maskedQuote: FragmentOf<typeof useToggleAddonPlan_QuoteFragment> | null | undefined, addonPriceListId: string, selectedPriceList: PriceList, setIsAddonPlanLoading: React.Dispatch<React.SetStateAction<boolean>>) => {
|
|
5
|
+
isPending: boolean;
|
|
6
|
+
addedQuoteChange: boolean;
|
|
7
|
+
deleteQuoteChange: () => void;
|
|
8
|
+
addAddonQuoteChange: () => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const quoteChangeCreate: ({ parentQuoteChangeId, priceListId, apiHost, token, quoteId, }: {
|
|
2
|
+
parentQuoteChangeId: string;
|
|
3
|
+
priceListId: string;
|
|
4
|
+
apiHost: string;
|
|
5
|
+
token?: string;
|
|
6
|
+
quoteId: string;
|
|
7
|
+
}) => Promise<{
|
|
8
|
+
errors: string[] | null;
|
|
9
|
+
quoteChange: {
|
|
10
|
+
id: string | null;
|
|
11
|
+
quote: {
|
|
12
|
+
[$tada.fragmentRefs]: {
|
|
13
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | null;
|
|
17
|
+
} | null>;
|
|
18
|
+
export default quoteChangeCreate;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const quoteChangeDelete: ({ id, apiHost, token, }: {
|
|
2
|
+
id: string;
|
|
3
|
+
apiHost: string;
|
|
4
|
+
token?: string;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
errors: string[] | null;
|
|
7
|
+
quoteChange: {
|
|
8
|
+
quote: {
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
QuoteContext_QuoteFragment: "Quote";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
} | null;
|
|
14
|
+
} | null>;
|
|
15
|
+
export default quoteChangeDelete;
|
package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/util.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import { PlanFeature } from '@/types/frontendTypes';
|
|
2
3
|
export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
|
|
3
4
|
availablePriceLists: PriceList[];
|
|
4
5
|
}) => {
|
|
5
6
|
plan: {
|
|
6
7
|
planFeatures: PlanFeature[] | undefined;
|
|
7
8
|
addon?: boolean;
|
|
8
|
-
compatiblePlans?: import("
|
|
9
|
-
addonPlans?: import("
|
|
9
|
+
compatiblePlans?: import("../../../../../types/Plan").Plan[];
|
|
10
|
+
addonPlans?: import("../../../../../types/Plan").Plan[];
|
|
10
11
|
availableFrom?: string;
|
|
11
12
|
availableTo?: string;
|
|
12
13
|
basePrice?: number;
|
|
@@ -15,7 +16,7 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
|
|
|
15
16
|
contactUsUrl?: string;
|
|
16
17
|
createdAt: string;
|
|
17
18
|
description?: string;
|
|
18
|
-
features?: import("
|
|
19
|
+
features?: import("../../../../../types/Feature").default[];
|
|
19
20
|
id: string;
|
|
20
21
|
internalNotes?: string;
|
|
21
22
|
isAvailableNow?: boolean;
|
|
@@ -24,8 +25,8 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
|
|
|
24
25
|
position: number;
|
|
25
26
|
priceLists: PriceList[];
|
|
26
27
|
pricingDescription?: string;
|
|
27
|
-
pricingStyle: import("
|
|
28
|
-
product: import("
|
|
28
|
+
pricingStyle: import("../../../../../types/Plan").PricingStyle;
|
|
29
|
+
product: import("../../../../../types/Product").default;
|
|
29
30
|
productId: string;
|
|
30
31
|
selfServiceBuy?: boolean;
|
|
31
32
|
selfServiceCancel?: boolean;
|
|
@@ -34,10 +35,10 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
|
|
|
34
35
|
updatedAt: string;
|
|
35
36
|
};
|
|
36
37
|
basePrice: number;
|
|
37
|
-
charges: import("
|
|
38
|
+
charges: import("../../../../../types/PriceListCharge").PriceListCharge[];
|
|
38
39
|
code?: string;
|
|
39
40
|
createdAt: string;
|
|
40
|
-
currency?: import("
|
|
41
|
+
currency?: import("../../../../../types/Currency").default;
|
|
41
42
|
currencyId: string;
|
|
42
43
|
id: string;
|
|
43
44
|
isVisible?: boolean;
|
|
@@ -45,20 +46,21 @@ export declare const filterUniqueFeatures: ({ availablePriceLists, }: {
|
|
|
45
46
|
name: string;
|
|
46
47
|
periodMonths: 0 | 1 | 3 | 6 | 12;
|
|
47
48
|
planId: string;
|
|
48
|
-
priceAdjustmentAction?: import("
|
|
49
|
+
priceAdjustmentAction?: import("../../../../../enums/PriceAdjustmentAction").default;
|
|
49
50
|
priceAdjustmentActionOptions?: string[];
|
|
50
51
|
priceAdjustmentPercentage?: number;
|
|
51
|
-
priceAdjustmentTiming?: import("
|
|
52
|
+
priceAdjustmentTiming?: import("../../../../../enums/PriceAdjustmentTiming").default;
|
|
52
53
|
priceAdjustmentTimingOptions?: string[];
|
|
53
54
|
priceDescription?: string;
|
|
54
|
-
product: import("
|
|
55
|
+
product: import("../../../../../types/Product").default;
|
|
55
56
|
productId?: string;
|
|
56
57
|
renewalTermMonths?: number;
|
|
57
58
|
showPriceAsMonthly?: boolean;
|
|
58
59
|
sku?: string;
|
|
59
60
|
trialAllowed: boolean;
|
|
60
|
-
trialExpirationAction?: "
|
|
61
|
+
trialExpirationAction?: import("@/types/PriceList").TrialExpirationAction;
|
|
61
62
|
trialLengthDays?: number;
|
|
62
63
|
updatedAt: string;
|
|
63
|
-
addonPlans?: import("
|
|
64
|
+
addonPlans?: import("../../../../../types/Plan").Plan[];
|
|
65
|
+
deprecated?: boolean;
|
|
64
66
|
}[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Feature, PriceList, Subscription } from '@bunnyapp/common';
|
|
2
1
|
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
import Feature from '@/types/Feature';
|
|
3
|
+
import Subscription from '@/types/Subscription';
|
|
4
|
+
import PriceList from '@/types/PriceList';
|
|
3
5
|
export declare const PriceListCardMobile_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
6
|
plan: {
|
|
5
7
|
name: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import PriceListChangeOptions from '@/types/PriceListChangeOptions';
|
|
3
|
+
import Product from '@/types/Product';
|
|
4
|
+
import Subscription from '@/types/Subscription';
|
|
2
5
|
declare const PriceListGridMobile: ({ availablePriceLists, priceListChangeOptions, selectedPriceList, selectedProduct, subscriptions, trialRemainingDays, onClickPriceListCard, }: {
|
|
3
6
|
availablePriceLists: PriceList[];
|
|
4
7
|
priceListChangeOptions?: PriceListChangeOptions;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import PriceListChangeOptions from '@/types/PriceListChangeOptions';
|
|
2
3
|
export declare const getAvailablePlansAndPriceLists: ({ availablePriceLists, priceListChangeOptions, priceListStart, plansToDisplay, }: {
|
|
3
4
|
availablePriceLists: PriceList[];
|
|
4
5
|
priceListChangeOptions?: PriceListChangeOptions;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import DeprecatedPriceList from '@/types/PriceList';
|
|
2
|
+
import Subscription from '@/types/Subscription';
|
|
2
3
|
import { FragmentOf } from 'gql.tada';
|
|
3
4
|
export declare const PriceListCard_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
5
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Subscription from '@/types/Subscription';
|
|
2
2
|
import { FragmentOf } from 'gql.tada';
|
|
3
3
|
export declare const PriceListCardButton_PriceListFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
4
|
id: string;
|
|
@@ -12,6 +12,20 @@ export declare const PriceListCardButton_PriceListFragment: import("gql.tada").T
|
|
|
12
12
|
on: "PriceList";
|
|
13
13
|
masked: true;
|
|
14
14
|
}>;
|
|
15
|
+
export declare const PriceListCardButtonUpgradingSubscription_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
16
|
+
plan: {
|
|
17
|
+
id: string;
|
|
18
|
+
} | null;
|
|
19
|
+
[$tada.fragmentRefs]: {
|
|
20
|
+
canSubscriptionUpgradeFromTrial_SubscriptionFragment: "Subscription";
|
|
21
|
+
} & {
|
|
22
|
+
canSubscriptionUpgradeFromTrialExpired_SubscriptionFragment: "Subscription";
|
|
23
|
+
};
|
|
24
|
+
}, {}, {
|
|
25
|
+
fragment: "PriceListCardButtonUpgradingSubscription_SubscriptionFragment";
|
|
26
|
+
on: "Subscription";
|
|
27
|
+
masked: true;
|
|
28
|
+
}>;
|
|
15
29
|
declare const PriceListCardButton: ({ disableSelectCurrentPlan, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, }: {
|
|
16
30
|
disableSelectCurrentPlan: boolean;
|
|
17
31
|
isPriceListCurrentSubscription: boolean;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PriceList from '@/types/PriceList';
|
|
2
|
+
import { PriceListCharge } from '@/types/PriceListCharge';
|
|
3
|
+
import Subscription from '@/types/Subscription';
|
|
2
4
|
export declare const createPlanDescription: (planDescription: string) => string;
|
|
3
5
|
export declare const getActivePlanPriceData: (priceList?: PriceList, selectedPriceList?: PriceList) => {
|
|
4
6
|
activeCharge: PriceListCharge | undefined;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import PriceListChangeOptions from '@/types/PriceListChangeOptions';
|
|
2
|
+
import Subscription from '@/types/Subscription';
|
|
3
|
+
export declare const PriceListSelectorUpgradingSubscription_SubscriptionFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
priceList: {
|
|
5
|
+
id: string;
|
|
6
|
+
periodMonths: number | null;
|
|
7
|
+
plan: {
|
|
8
|
+
id: string;
|
|
9
|
+
addon: boolean | null;
|
|
10
|
+
} | null;
|
|
11
|
+
} | null;
|
|
12
|
+
}, {}, {
|
|
13
|
+
fragment: "PriceListSelectorUpgradingSubscription_SubscriptionFragment";
|
|
14
|
+
on: "Subscription";
|
|
15
|
+
masked: true;
|
|
16
|
+
}>;
|
|
2
17
|
declare const PriceListSelector: ({ arePlanChangeOptionsLoading, areSubscriptionsLoading, priceListChangeOptions, subscriptions, onGoBack, }: {
|
|
3
18
|
arePlanChangeOptionsLoading: boolean;
|
|
4
19
|
areSubscriptionsLoading: boolean;
|