@burdenoff/microfe-billing 2026.510.114
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 +12 -0
- package/dist/billing/BillingAdminRoutes.d.ts +6 -0
- package/dist/billing/BillingAdminRoutes.d.ts.map +1 -0
- package/dist/billing/BillingAdminRoutes.js +359 -0
- package/dist/billing/BillingAdminRoutes.js.map +1 -0
- package/dist/billing/BillingRoot.d.ts +37 -0
- package/dist/billing/BillingRoot.d.ts.map +1 -0
- package/dist/billing/BillingRoot.js +190 -0
- package/dist/billing/BillingRoot.js.map +1 -0
- package/dist/billing/BillingUserRoutes.d.ts +7 -0
- package/dist/billing/BillingUserRoutes.d.ts.map +1 -0
- package/dist/billing/BillingUserRoutes.js +479 -0
- package/dist/billing/BillingUserRoutes.js.map +1 -0
- package/dist/billing/constants/permissions.d.ts +18 -0
- package/dist/billing/constants/permissions.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingAccountSelection.d.ts +36 -0
- package/dist/billing/hooks/useBillingAccountSelection.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingAccountSelection.js +81 -0
- package/dist/billing/hooks/useBillingAccountSelection.js.map +1 -0
- package/dist/billing/hooks/useBillingEventEmitter.d.ts +8 -0
- package/dist/billing/hooks/useBillingEventEmitter.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingEventEmitter.js +15 -0
- package/dist/billing/hooks/useBillingEventEmitter.js.map +1 -0
- package/dist/billing/hooks/useBillingNavigate.d.ts +30 -0
- package/dist/billing/hooks/useBillingNavigate.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingNavigate.js +23 -0
- package/dist/billing/hooks/useBillingNavigate.js.map +1 -0
- package/dist/billing/hooks/useBillingPermissions.d.ts +94 -0
- package/dist/billing/hooks/useBillingPermissions.d.ts.map +1 -0
- package/dist/billing/hooks/useBillingPermissions.js +78 -0
- package/dist/billing/hooks/useBillingPermissions.js.map +1 -0
- package/dist/billing/hooks/useDefaultBillingCurrency.d.ts +14 -0
- package/dist/billing/hooks/useDefaultBillingCurrency.d.ts.map +1 -0
- package/dist/billing/hooks/useDefaultBillingCurrency.js +23 -0
- package/dist/billing/hooks/useDefaultBillingCurrency.js.map +1 -0
- package/dist/billing/index.d.ts +31 -0
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/lib/native-purchases.d.ts +51 -0
- package/dist/billing/lib/native-purchases.d.ts.map +1 -0
- package/dist/billing/lib/native-purchases.js +44 -0
- package/dist/billing/lib/native-purchases.js.map +1 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts +4 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts.map +1 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js +179 -0
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js.map +1 -0
- package/dist/billing/modules/addons/components/index.d.ts +5 -0
- package/dist/billing/modules/addons/components/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/index.d.ts +6 -0
- package/dist/billing/modules/addons/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/index.js +1 -0
- package/dist/billing/modules/addons/hooks/useAddons.d.ts +55 -0
- package/dist/billing/modules/addons/hooks/useAddons.d.ts.map +1 -0
- package/dist/billing/modules/addons/hooks/useAddons.js +77 -0
- package/dist/billing/modules/addons/hooks/useAddons.js.map +1 -0
- package/dist/billing/modules/addons/index.d.ts +7 -0
- package/dist/billing/modules/addons/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/index.js +10 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js +266 -0
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js.map +1 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.js +369 -0
- package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.js +280 -0
- package/dist/billing/modules/addons/pages/AddonDetailPage.js.map +1 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.js +396 -0
- package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js +582 -0
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.d.ts +4 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.js +744 -0
- package/dist/billing/modules/addons/pages/AddonsListPage.js.map +1 -0
- package/dist/billing/modules/addons/pages/index.d.ts +11 -0
- package/dist/billing/modules/addons/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/addons/pages/index.js +6 -0
- package/dist/billing/modules/addons/store/addonCartStore.d.ts +38 -0
- package/dist/billing/modules/addons/store/addonCartStore.d.ts.map +1 -0
- package/dist/billing/modules/addons/store/addonCartStore.js +74 -0
- package/dist/billing/modules/addons/store/addonCartStore.js.map +1 -0
- package/dist/billing/modules/affiliate/api.d.ts +101 -0
- package/dist/billing/modules/affiliate/api.d.ts.map +1 -0
- package/dist/billing/modules/affiliate/api.js +38 -0
- package/dist/billing/modules/affiliate/api.js.map +1 -0
- package/dist/billing/modules/affiliate/index.d.ts +2 -0
- package/dist/billing/modules/affiliate/index.d.ts.map +1 -0
- package/dist/billing/modules/affiliate/index.js +2 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts +4 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts.map +1 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +464 -0
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -0
- package/dist/billing/modules/analytics/index.d.ts +5 -0
- package/dist/billing/modules/analytics/index.d.ts.map +1 -0
- package/dist/billing/modules/analytics/index.js +3 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts +4 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts.map +1 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +469 -0
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -0
- package/dist/billing/modules/analytics/pages/index.d.ts +5 -0
- package/dist/billing/modules/analytics/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/analytics/pages/index.js +1 -0
- package/dist/billing/modules/billing/hooks/index.d.ts +10 -0
- package/dist/billing/modules/billing/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/index.js +4 -0
- package/dist/billing/modules/billing/hooks/useInvoices.d.ts +67 -0
- package/dist/billing/modules/billing/hooks/useInvoices.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useInvoices.js +87 -0
- package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -0
- package/dist/billing/modules/billing/hooks/usePayments.d.ts +62 -0
- package/dist/billing/modules/billing/hooks/usePayments.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/usePayments.js +3 -0
- package/dist/billing/modules/billing/hooks/useRefunds.d.ts +191 -0
- package/dist/billing/modules/billing/hooks/useRefunds.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useRefunds.js +162 -0
- package/dist/billing/modules/billing/hooks/useRefunds.js.map +1 -0
- package/dist/billing/modules/billing/hooks/useTransactions.d.ts +41 -0
- package/dist/billing/modules/billing/hooks/useTransactions.d.ts.map +1 -0
- package/dist/billing/modules/billing/hooks/useTransactions.js +55 -0
- package/dist/billing/modules/billing/hooks/useTransactions.js.map +1 -0
- package/dist/billing/modules/billing/index.d.ts +7 -0
- package/dist/billing/modules/billing/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/index.js +11 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts +4 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js +631 -0
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts +4 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +382 -0
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts +4 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +147 -0
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/RefundsPage.d.ts +4 -0
- package/dist/billing/modules/billing/pages/RefundsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/RefundsPage.js +1074 -0
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.d.ts +4 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.js +587 -0
- package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/index.d.ts +10 -0
- package/dist/billing/modules/billing/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/billing/pages/index.js +5 -0
- package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts +14 -0
- package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/AutoPayToggle.js +3 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts +14 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js +151 -0
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js.map +1 -0
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts +14 -0
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CompactAutoPayToggle.js +4 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts +14 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js +130 -0
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js.map +1 -0
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts +16 -0
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CreditsPaymentOption.js +5 -0
- package/dist/billing/modules/checkout/components/CurrencySelector.d.ts +19 -0
- package/dist/billing/modules/checkout/components/CurrencySelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/CurrencySelector.js +5 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts +14 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.js +273 -0
- package/dist/billing/modules/checkout/components/NativeCheckoutView.js.map +1 -0
- package/dist/billing/modules/checkout/components/OrderSummary.d.ts +22 -0
- package/dist/billing/modules/checkout/components/OrderSummary.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/OrderSummary.js +293 -0
- package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -0
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts +19 -0
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/PaymentProviderSelector.js +3 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts +19 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.js +102 -0
- package/dist/billing/modules/checkout/components/PromoCodeInput.js.map +1 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts +25 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +169 -0
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -0
- package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts +13 -0
- package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SavedCardSelector.js +4 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts +13 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js +78 -0
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js.map +1 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts +16 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.js +253 -0
- package/dist/billing/modules/checkout/components/StripePaymentForm.js.map +1 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts +26 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js +84 -0
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js.map +1 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts +23 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js +229 -0
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js.map +1 -0
- package/dist/billing/modules/checkout/components/index.d.ts +20 -0
- package/dist/billing/modules/checkout/components/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/components/index.js +16 -0
- package/dist/billing/modules/checkout/graphql/index.d.ts +6 -0
- package/dist/billing/modules/checkout/graphql/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/index.d.ts +9 -0
- package/dist/billing/modules/checkout/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/index.js +4 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.d.ts +69 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.js +377 -0
- package/dist/billing/modules/checkout/hooks/useCheckout.js.map +1 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts +26 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.js +88 -0
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.js.map +1 -0
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts +19 -0
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.js +16 -0
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.js.map +1 -0
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts +59 -0
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts.map +1 -0
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.js +107 -0
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.js.map +1 -0
- package/dist/billing/modules/checkout/index.d.ts +24 -0
- package/dist/billing/modules/checkout/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/index.js +19 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts +4 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts.map +1 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +1248 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -0
- package/dist/billing/modules/checkout/pages/index.d.ts +5 -0
- package/dist/billing/modules/checkout/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/pages/index.js +1 -0
- package/dist/billing/modules/checkout/types/index.d.ts +270 -0
- package/dist/billing/modules/checkout/types/index.d.ts.map +1 -0
- package/dist/billing/modules/checkout/utils/storeOrder.d.ts +20 -0
- package/dist/billing/modules/checkout/utils/storeOrder.d.ts.map +1 -0
- package/dist/billing/modules/checkout/utils/storeOrder.js +27 -0
- package/dist/billing/modules/checkout/utils/storeOrder.js.map +1 -0
- package/dist/billing/modules/coupons/index.d.ts +5 -0
- package/dist/billing/modules/coupons/index.d.ts.map +1 -0
- package/dist/billing/modules/coupons/index.js +6 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts +4 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js +489 -0
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts +4 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.js +544 -0
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts +4 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js +421 -0
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts +4 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.js +379 -0
- package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -0
- package/dist/billing/modules/coupons/pages/index.d.ts +8 -0
- package/dist/billing/modules/coupons/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/coupons/pages/index.js +4 -0
- package/dist/billing/modules/credits/hooks/index.d.ts +5 -0
- package/dist/billing/modules/credits/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/credits/hooks/index.js +1 -0
- package/dist/billing/modules/credits/hooks/useCredits.d.ts +75 -0
- package/dist/billing/modules/credits/hooks/useCredits.d.ts.map +1 -0
- package/dist/billing/modules/credits/hooks/useCredits.js +78 -0
- package/dist/billing/modules/credits/hooks/useCredits.js.map +1 -0
- package/dist/billing/modules/credits/index.d.ts +6 -0
- package/dist/billing/modules/credits/index.d.ts.map +1 -0
- package/dist/billing/modules/credits/index.js +8 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts +4 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js +140 -0
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts +4 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js +331 -0
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts +4 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +770 -0
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -0
- package/dist/billing/modules/credits/pages/CreditsPage.d.ts +4 -0
- package/dist/billing/modules/credits/pages/CreditsPage.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/CreditsPage.js +324 -0
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -0
- package/dist/billing/modules/credits/pages/index.d.ts +8 -0
- package/dist/billing/modules/credits/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/credits/pages/index.js +4 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts +14 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js +185 -0
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js.map +1 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts +111 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js +388 -0
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts +16 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js +146 -0
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js.map +1 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts +13 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js +1044 -0
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts +15 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js +216 -0
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js.map +1 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts +27 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js +193 -0
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js.map +1 -0
- package/dist/billing/modules/dashboard/components/index.d.ts +10 -0
- package/dist/billing/modules/dashboard/components/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/components/index.js +6 -0
- package/dist/billing/modules/dashboard/hooks/index.d.ts +6 -0
- package/dist/billing/modules/dashboard/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/index.js +2 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts +17 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.js +42 -0
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.js.map +1 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts +145 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.js +118 -0
- package/dist/billing/modules/dashboard/hooks/useDashboard.js.map +1 -0
- package/dist/billing/modules/dashboard/index.d.ts +8 -0
- package/dist/billing/modules/dashboard/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/index.js +12 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts +4 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.js +478 -0
- package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -0
- package/dist/billing/modules/dashboard/pages/index.d.ts +5 -0
- package/dist/billing/modules/dashboard/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/dashboard/pages/index.js +1 -0
- package/dist/billing/modules/discounts/index.d.ts +6 -0
- package/dist/billing/modules/discounts/index.d.ts.map +1 -0
- package/dist/billing/modules/discounts/index.js +3 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts +4 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts.map +1 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js +1009 -0
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -0
- package/dist/billing/modules/discounts/pages/index.d.ts +6 -0
- package/dist/billing/modules/discounts/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/discounts/pages/index.js +1 -0
- package/dist/billing/modules/earnings/api.d.ts +131 -0
- package/dist/billing/modules/earnings/api.d.ts.map +1 -0
- package/dist/billing/modules/earnings/api.js +122 -0
- package/dist/billing/modules/earnings/api.js.map +1 -0
- package/dist/billing/modules/earnings/index.d.ts +4 -0
- package/dist/billing/modules/earnings/index.d.ts.map +1 -0
- package/dist/billing/modules/earnings/index.js +4 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.d.ts +4 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.js +435 -0
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts +4 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +273 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts +4 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +480 -0
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -0
- package/dist/billing/modules/plans/hooks/index.d.ts +7 -0
- package/dist/billing/modules/plans/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/index.js +2 -0
- package/dist/billing/modules/plans/hooks/usePlans.d.ts +46 -0
- package/dist/billing/modules/plans/hooks/usePlans.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/usePlans.js +77 -0
- package/dist/billing/modules/plans/hooks/usePlans.js.map +1 -0
- package/dist/billing/modules/plans/hooks/useQuotas.d.ts +27 -0
- package/dist/billing/modules/plans/hooks/useQuotas.d.ts.map +1 -0
- package/dist/billing/modules/plans/hooks/useQuotas.js +21 -0
- package/dist/billing/modules/plans/hooks/useQuotas.js.map +1 -0
- package/dist/billing/modules/plans/index.d.ts +7 -0
- package/dist/billing/modules/plans/index.d.ts.map +1 -0
- package/dist/billing/modules/plans/index.js +11 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js +264 -0
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js.map +1 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.js +368 -0
- package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.js +356 -0
- package/dist/billing/modules/plans/pages/PlanDetailPage.js.map +1 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.js +395 -0
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js +314 -0
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -0
- package/dist/billing/modules/plans/pages/PlansListPage.d.ts +4 -0
- package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/PlansListPage.js +438 -0
- package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -0
- package/dist/billing/modules/plans/pages/index.d.ts +11 -0
- package/dist/billing/modules/plans/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/plans/pages/index.js +6 -0
- package/dist/billing/modules/quota/hooks/index.d.ts +6 -0
- package/dist/billing/modules/quota/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/index.js +2 -0
- package/dist/billing/modules/quota/hooks/useQuota.d.ts +102 -0
- package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/useQuota.js +63 -0
- package/dist/billing/modules/quota/hooks/useQuota.js.map +1 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +39 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +1 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.js +67 -0
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.js.map +1 -0
- package/dist/billing/modules/quota/index.d.ts +6 -0
- package/dist/billing/modules/quota/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/index.js +10 -0
- package/dist/billing/modules/quota/pages/QuotaPage.d.ts +4 -0
- package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaPage.js +337 -0
- package/dist/billing/modules/quota/pages/QuotaPage.js.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +4 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js +273 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +4 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js +272 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +4 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js +316 -0
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +4 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js +401 -0
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -0
- package/dist/billing/modules/quota/pages/index.d.ts +9 -0
- package/dist/billing/modules/quota/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/quota/pages/index.js +5 -0
- package/dist/billing/modules/settings/index.d.ts +5 -0
- package/dist/billing/modules/settings/index.d.ts.map +1 -0
- package/dist/billing/modules/settings/index.js +4 -0
- package/dist/billing/modules/settings/pages/SettingsPage.d.ts +4 -0
- package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/SettingsPage.js +632 -0
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +4 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js +270 -0
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -0
- package/dist/billing/modules/settings/pages/index.d.ts +6 -0
- package/dist/billing/modules/settings/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/settings/pages/index.js +2 -0
- package/dist/billing/modules/store/graphql/index.d.ts +6 -0
- package/dist/billing/modules/store/graphql/index.d.ts.map +1 -0
- package/dist/billing/modules/store/graphql/index.js +1 -0
- package/dist/billing/modules/store/index.d.ts +6 -0
- package/dist/billing/modules/store/index.d.ts.map +1 -0
- package/dist/billing/modules/store/index.js +3 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +11 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +1 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.js +18 -0
- package/dist/billing/modules/store/pages/StoreCheckoutPage.js.map +1 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +12 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js +167 -0
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.map +1 -0
- package/dist/billing/modules/subscriptions/hooks/index.d.ts +6 -0
- package/dist/billing/modules/subscriptions/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/hooks/index.js +1 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +92 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js +136 -0
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js.map +1 -0
- package/dist/billing/modules/subscriptions/index.d.ts +7 -0
- package/dist/billing/modules/subscriptions/index.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/index.js +7 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +4 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +551 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +4 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +529 -0
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +4 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +430 -0
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -0
- package/dist/billing/modules/subscriptions/pages/index.d.ts +8 -0
- package/dist/billing/modules/subscriptions/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/subscriptions/pages/index.js +3 -0
- package/dist/billing/modules/usage/hooks/index.d.ts +6 -0
- package/dist/billing/modules/usage/hooks/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/hooks/index.js +1 -0
- package/dist/billing/modules/usage/hooks/useUsage.d.ts +203 -0
- package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +1 -0
- package/dist/billing/modules/usage/hooks/useUsage.js +271 -0
- package/dist/billing/modules/usage/hooks/useUsage.js.map +1 -0
- package/dist/billing/modules/usage/index.d.ts +6 -0
- package/dist/billing/modules/usage/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/index.js +5 -0
- package/dist/billing/modules/usage/pages/UsagePage.d.ts +4 -0
- package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +1 -0
- package/dist/billing/modules/usage/pages/UsagePage.js +817 -0
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -0
- package/dist/billing/modules/usage/pages/index.d.ts +5 -0
- package/dist/billing/modules/usage/pages/index.d.ts.map +1 -0
- package/dist/billing/modules/usage/pages/index.js +1 -0
- package/dist/billing/providers/BillingProvider.d.ts +16 -0
- package/dist/billing/providers/BillingProvider.d.ts.map +1 -0
- package/dist/billing/providers/BillingProvider.js +40 -0
- package/dist/billing/providers/BillingProvider.js.map +1 -0
- package/dist/billing/shared/components/AccessDenied.d.ts +8 -0
- package/dist/billing/shared/components/AccessDenied.d.ts.map +1 -0
- package/dist/billing/shared/components/AccessDenied.js +44 -0
- package/dist/billing/shared/components/AccessDenied.js.map +1 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +11 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +1 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js +230 -0
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js.map +1 -0
- package/dist/billing/shared/components/EmptyState.d.ts +11 -0
- package/dist/billing/shared/components/EmptyState.d.ts.map +1 -0
- package/dist/billing/shared/components/EmptyState.js +27 -0
- package/dist/billing/shared/components/EmptyState.js.map +1 -0
- package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +11 -0
- package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +1 -0
- package/dist/billing/shared/components/GeoPricingOverridesEditor.js +1 -0
- package/dist/billing/shared/components/PageHeader.d.ts +11 -0
- package/dist/billing/shared/components/PageHeader.d.ts.map +1 -0
- package/dist/billing/shared/components/PageHeader.js +25 -0
- package/dist/billing/shared/components/PageHeader.js.map +1 -0
- package/dist/billing/shared/components/ServerError.d.ts +11 -0
- package/dist/billing/shared/components/ServerError.d.ts.map +1 -0
- package/dist/billing/shared/components/ServerError.js +75 -0
- package/dist/billing/shared/components/ServerError.js.map +1 -0
- package/dist/billing/shared/components/StatCard.d.ts +15 -0
- package/dist/billing/shared/components/StatCard.d.ts.map +1 -0
- package/dist/billing/shared/components/StatCard.js +37 -0
- package/dist/billing/shared/components/StatCard.js.map +1 -0
- package/dist/billing/shared/components/index.d.ts +11 -0
- package/dist/billing/shared/components/index.d.ts.map +1 -0
- package/dist/billing/shared/components/index.js +7 -0
- package/dist/billing/shared/index.d.ts +8 -0
- package/dist/billing/shared/index.d.ts.map +1 -0
- package/dist/billing/shared/types/graphql.d.ts +926 -0
- package/dist/billing/shared/types/graphql.d.ts.map +1 -0
- package/dist/billing/shared/types/graphql.js +30 -0
- package/dist/billing/shared/types/graphql.js.map +1 -0
- package/dist/billing/shared/types/index.d.ts +96 -0
- package/dist/billing/shared/types/index.d.ts.map +1 -0
- package/dist/billing/shared/utils/directActivityGraphql.d.ts +13 -0
- package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/directActivityGraphql.js +2 -0
- package/dist/billing/shared/utils/directBillingGraphql.d.ts +13 -0
- package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/directBillingGraphql.js +22 -0
- package/dist/billing/shared/utils/directBillingGraphql.js.map +1 -0
- package/dist/billing/shared/utils/error.d.ts +30 -0
- package/dist/billing/shared/utils/error.d.ts.map +1 -0
- package/dist/billing/shared/utils/error.js +16 -0
- package/dist/billing/shared/utils/error.js.map +1 -0
- package/dist/billing/shared/utils/format.d.ts +28 -0
- package/dist/billing/shared/utils/format.d.ts.map +1 -0
- package/dist/billing/shared/utils/format.js +65 -0
- package/dist/billing/shared/utils/format.js.map +1 -0
- package/dist/billing/shared/utils/gatewayGraphql.d.ts +15 -0
- package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +1 -0
- package/dist/billing/shared/utils/gatewayGraphql.js +27 -0
- package/dist/billing/shared/utils/gatewayGraphql.js.map +1 -0
- package/dist/billing/shared/utils/index.d.ts +13 -0
- package/dist/billing/shared/utils/index.d.ts.map +1 -0
- package/dist/billing/shared/utils/index.js +8 -0
- package/dist/billing/shared/utils/navigation.d.ts +2 -0
- package/dist/billing/shared/utils/navigation.d.ts.map +1 -0
- package/dist/billing/shared/utils/navigation.js +8 -0
- package/dist/billing/shared/utils/navigation.js.map +1 -0
- package/dist/billing/shared/utils/paymentTheme.d.ts +18 -0
- package/dist/billing/shared/utils/paymentTheme.d.ts.map +1 -0
- package/dist/billing/shared/utils/paymentTheme.js +32 -0
- package/dist/billing/shared/utils/paymentTheme.js.map +1 -0
- package/dist/billing/shared/utils/status.d.ts +28 -0
- package/dist/billing/shared/utils/status.d.ts.map +1 -0
- package/dist/billing/shared/utils/status.js +57 -0
- package/dist/billing/shared/utils/status.js.map +1 -0
- package/dist/billing/shared/utils/tokens.d.ts +156 -0
- package/dist/billing/shared/utils/tokens.d.ts.map +1 -0
- package/dist/billing/shared/utils/tokens.js +128 -0
- package/dist/billing/shared/utils/tokens.js.map +1 -0
- package/dist/billing/types/index.d.ts +268 -0
- package/dist/billing/types/index.d.ts.map +1 -0
- package/dist/billing/utils/index.d.ts +128 -0
- package/dist/billing/utils/index.d.ts.map +1 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +9544 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-operations.js +3542 -0
- package/dist/generated/global-operations.js.map +1 -0
- package/dist/generated/global-types.d.ts +22208 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/global-types.js +12 -0
- package/dist/generated/global-types.js.map +1 -0
- package/dist/generated/wspace-operations.d.ts +61 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-operations.js +35 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +48578 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/@capacitor/core/dist/index.js +270 -0
- package/dist/node_modules/@capacitor/core/dist/index.js.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +112 -0
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
import { AccessDenied as e } from "../../../shared/components/AccessDenied.js";
|
|
2
|
+
import { PageHeader as t } from "../../../shared/components/PageHeader.js";
|
|
3
|
+
import { EmptyState as n } from "../../../shared/components/EmptyState.js";
|
|
4
|
+
import { ServerError as r } from "../../../shared/components/ServerError.js";
|
|
5
|
+
import "../../../shared/components/index.js";
|
|
6
|
+
import { formatCurrency as i, formatDateTime as a } from "../../../shared/utils/format.js";
|
|
7
|
+
import { getStatusBadgeClasses as o, getTransactionStatusColor as s } from "../../../shared/utils/status.js";
|
|
8
|
+
import { isServerError as c } from "../../../shared/utils/error.js";
|
|
9
|
+
import "../../../shared/utils/index.js";
|
|
10
|
+
import { useBillingPermissions as l } from "../../../hooks/useBillingPermissions.js";
|
|
11
|
+
import { nativeImpact as u, nativeOpenUrl as d } from "../../../../utils/nativeBridge.js";
|
|
12
|
+
import { useBillingNavigate as f } from "../../../hooks/useBillingNavigate.js";
|
|
13
|
+
import { useTransactions as p } from "../hooks/useTransactions.js";
|
|
14
|
+
import "../hooks/index.js";
|
|
15
|
+
import { useEffect as m, useRef as h, useState as g } from "react";
|
|
16
|
+
import { ArrowLeft as _, Calendar as v, CheckCircle as y, ChevronLeft as b, ChevronRight as x, CreditCard as S, Eye as C, FileText as w, Mail as T, MoreHorizontal as E, Wallet as D, X as O, XCircle as k } from "lucide-react";
|
|
17
|
+
import { useParams as A } from "react-router-dom";
|
|
18
|
+
import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
19
|
+
import { useI18n as P } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
20
|
+
//#region src/billing/modules/billing/pages/TransactionsPage.tsx
|
|
21
|
+
var F = {
|
|
22
|
+
payment: "Payment",
|
|
23
|
+
refund: "Refund",
|
|
24
|
+
adjustment: "Adjustment"
|
|
25
|
+
}, I = (e) => F[e.toLowerCase()] ?? e, L = ({ transaction: e, onViewDetails: t, onViewInvoice: n, hasInvoiceUrl: r }) => {
|
|
26
|
+
let [i, a] = g(!1), o = h(null);
|
|
27
|
+
return m(() => {
|
|
28
|
+
let e = (e) => {
|
|
29
|
+
o.current && !o.current.contains(e.target) && a(!1);
|
|
30
|
+
};
|
|
31
|
+
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
32
|
+
}, []), /* @__PURE__ */ N("div", {
|
|
33
|
+
className: "relative overflow-visible",
|
|
34
|
+
ref: o,
|
|
35
|
+
children: [/* @__PURE__ */ M("button", {
|
|
36
|
+
onClick: () => a(!i),
|
|
37
|
+
className: "p-1.5 rounded-md hover:bg-muted/50 transition-colors",
|
|
38
|
+
"aria-label": "Transaction actions",
|
|
39
|
+
children: /* @__PURE__ */ M(E, { className: "w-4 h-4 text-muted-foreground" })
|
|
40
|
+
}), i && /* @__PURE__ */ N("div", {
|
|
41
|
+
className: "absolute right-0 top-full mt-1 z-50 min-w-[160px] bg-popover border border-border rounded-md shadow-lg py-1",
|
|
42
|
+
children: [/* @__PURE__ */ N("button", {
|
|
43
|
+
onClick: () => {
|
|
44
|
+
t(), a(!1);
|
|
45
|
+
},
|
|
46
|
+
className: "w-full flex items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-muted/50 transition-colors whitespace-nowrap",
|
|
47
|
+
children: [/* @__PURE__ */ M(C, { className: "w-4 h-4" }), "View Details"]
|
|
48
|
+
}), e.type === "payment" && r && /* @__PURE__ */ N("button", {
|
|
49
|
+
onClick: () => {
|
|
50
|
+
n(), a(!1);
|
|
51
|
+
},
|
|
52
|
+
className: "w-full flex items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-muted/50 transition-colors whitespace-nowrap",
|
|
53
|
+
children: [/* @__PURE__ */ M(w, { className: "w-4 h-4" }), "View Invoice"]
|
|
54
|
+
})]
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
}, R = ({ transaction: e, onClose: t, onViewInvoice: n, invoiceUrl: r, invoiceProvider: c }) => {
|
|
58
|
+
if (!e) return null;
|
|
59
|
+
let l = e.metadata, f = l?.subtotal, p = l?.taxAmount, m = l?.taxRate, h = l?.taxType, g = l?.total, _ = l?.invoiceNumber, v = l?.invoiceStatus, y = e.type === "refund", b = l?.refundRecordId, x = l?.originalTransactionId, S = l?.creditNoteId, C = l?.creditNoteNumber, T = l?.creditNotePdfUrl, E = l?.reason, D = l?.purchaseType, k = l?.purchaseDetail, A = g && p !== void 0 && p > 0;
|
|
60
|
+
return /* @__PURE__ */ N("div", {
|
|
61
|
+
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
62
|
+
children: [/* @__PURE__ */ M("div", {
|
|
63
|
+
className: "absolute inset-0 bg-overlay-scrim",
|
|
64
|
+
onClick: t
|
|
65
|
+
}), /* @__PURE__ */ N("div", {
|
|
66
|
+
className: "relative bg-background border border-border rounded-lg shadow-xl max-w-md w-full mx-4 max-h-[90vh] overflow-auto",
|
|
67
|
+
role: "dialog",
|
|
68
|
+
"aria-modal": "true",
|
|
69
|
+
"aria-labelledby": "transaction-details-title",
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ N("div", {
|
|
72
|
+
className: "flex items-center justify-between p-4 border-b border-border",
|
|
73
|
+
children: [/* @__PURE__ */ M("h2", {
|
|
74
|
+
id: "transaction-details-title",
|
|
75
|
+
className: "text-lg font-semibold",
|
|
76
|
+
children: "Transaction Details"
|
|
77
|
+
}), /* @__PURE__ */ M("button", {
|
|
78
|
+
onClick: t,
|
|
79
|
+
className: "p-1 rounded-md hover:bg-muted/50 transition-colors",
|
|
80
|
+
"aria-label": "Close transaction details",
|
|
81
|
+
children: /* @__PURE__ */ M(O, { className: "w-5 h-5" })
|
|
82
|
+
})]
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ N("div", {
|
|
85
|
+
className: "p-4 space-y-4",
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ N("div", {
|
|
88
|
+
className: "grid grid-cols-2 gap-4",
|
|
89
|
+
children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
90
|
+
className: "text-xs text-muted-foreground mb-1",
|
|
91
|
+
children: "Transaction ID"
|
|
92
|
+
}), /* @__PURE__ */ M("p", {
|
|
93
|
+
className: "text-sm font-mono break-all",
|
|
94
|
+
children: e.id
|
|
95
|
+
})] }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
96
|
+
className: "text-xs text-muted-foreground mb-1",
|
|
97
|
+
children: "Type"
|
|
98
|
+
}), /* @__PURE__ */ M("p", {
|
|
99
|
+
className: "text-sm capitalize",
|
|
100
|
+
children: I(e.type)
|
|
101
|
+
})] })]
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ M("div", {
|
|
104
|
+
className: "space-y-2",
|
|
105
|
+
children: A ? /* @__PURE__ */ N(j, { children: [
|
|
106
|
+
/* @__PURE__ */ N("div", {
|
|
107
|
+
className: "flex justify-between text-sm",
|
|
108
|
+
children: [/* @__PURE__ */ M("span", {
|
|
109
|
+
className: "text-muted-foreground",
|
|
110
|
+
children: "Subtotal"
|
|
111
|
+
}), /* @__PURE__ */ M("span", { children: i(f || e.amount, e.currency) })]
|
|
112
|
+
}),
|
|
113
|
+
p > 0 && /* @__PURE__ */ N("div", {
|
|
114
|
+
className: "flex justify-between text-sm",
|
|
115
|
+
children: [/* @__PURE__ */ N("span", {
|
|
116
|
+
className: "text-muted-foreground",
|
|
117
|
+
children: [
|
|
118
|
+
h || "Tax",
|
|
119
|
+
" ",
|
|
120
|
+
m ? `(${(m * 100).toFixed(0)}%)` : ""
|
|
121
|
+
]
|
|
122
|
+
}), /* @__PURE__ */ M("span", { children: i(p, e.currency) })]
|
|
123
|
+
}),
|
|
124
|
+
/* @__PURE__ */ N("div", {
|
|
125
|
+
className: "flex justify-between text-sm font-semibold border-t border-border pt-2",
|
|
126
|
+
children: [/* @__PURE__ */ M("span", { children: "Total" }), /* @__PURE__ */ N("span", {
|
|
127
|
+
className: e.type === "refund" ? "text-status-error-text" : "",
|
|
128
|
+
children: [e.type === "refund" ? "-" : "", i(g, e.currency)]
|
|
129
|
+
})]
|
|
130
|
+
})
|
|
131
|
+
] }) : /* @__PURE__ */ N("div", {
|
|
132
|
+
className: "grid grid-cols-2 gap-4",
|
|
133
|
+
children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
134
|
+
className: "text-xs text-muted-foreground mb-1",
|
|
135
|
+
children: "Amount"
|
|
136
|
+
}), /* @__PURE__ */ N("p", {
|
|
137
|
+
className: `text-sm font-medium ${e.type === "refund" ? "text-status-error-text" : ""}`,
|
|
138
|
+
children: [e.type === "refund" ? "-" : "", i(g || e.amount, e.currency)]
|
|
139
|
+
})] }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
140
|
+
className: "text-xs text-muted-foreground mb-1",
|
|
141
|
+
children: "Status"
|
|
142
|
+
}), /* @__PURE__ */ M("span", {
|
|
143
|
+
className: `px-2 py-0.5 text-xs font-medium rounded ${o(s(e.status))}`,
|
|
144
|
+
children: e.status
|
|
145
|
+
})] })]
|
|
146
|
+
})
|
|
147
|
+
}),
|
|
148
|
+
A && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
149
|
+
className: "text-xs text-muted-foreground mb-1",
|
|
150
|
+
children: "Status"
|
|
151
|
+
}), /* @__PURE__ */ M("span", {
|
|
152
|
+
className: `px-2 py-0.5 text-xs font-medium rounded ${o(s(e.status))}`,
|
|
153
|
+
children: e.status
|
|
154
|
+
})] }),
|
|
155
|
+
/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
156
|
+
className: "text-xs text-muted-foreground mb-1",
|
|
157
|
+
children: "Date & Time"
|
|
158
|
+
}), /* @__PURE__ */ M("p", {
|
|
159
|
+
className: "text-sm",
|
|
160
|
+
children: a(e.createdAt)
|
|
161
|
+
})] }),
|
|
162
|
+
e.description && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
163
|
+
className: "text-xs text-muted-foreground mb-1",
|
|
164
|
+
children: "Description"
|
|
165
|
+
}), /* @__PURE__ */ M("p", {
|
|
166
|
+
className: "text-sm",
|
|
167
|
+
children: e.description
|
|
168
|
+
})] }),
|
|
169
|
+
_ && /* @__PURE__ */ N("div", {
|
|
170
|
+
className: "p-3 bg-muted/50 rounded-lg space-y-2",
|
|
171
|
+
children: [
|
|
172
|
+
/* @__PURE__ */ N("div", {
|
|
173
|
+
className: "flex items-center justify-between",
|
|
174
|
+
children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
175
|
+
className: "text-xs text-muted-foreground mb-1",
|
|
176
|
+
children: "Invoice"
|
|
177
|
+
}), /* @__PURE__ */ M("p", {
|
|
178
|
+
className: "text-sm font-mono",
|
|
179
|
+
children: _
|
|
180
|
+
})] }), v && /* @__PURE__ */ M("span", {
|
|
181
|
+
className: `px-2 py-0.5 text-xs font-medium rounded ${v === "PAID" ? "bg-status-success-bg-subtle text-status-success-text" : "bg-status-warning-bg-subtle text-status-warning-text"}`,
|
|
182
|
+
children: v
|
|
183
|
+
})]
|
|
184
|
+
}),
|
|
185
|
+
c && /* @__PURE__ */ N("p", {
|
|
186
|
+
className: "text-xs text-muted-foreground",
|
|
187
|
+
children: ["Provider: ", c]
|
|
188
|
+
}),
|
|
189
|
+
r && n && /* @__PURE__ */ N("button", {
|
|
190
|
+
onClick: () => n(e),
|
|
191
|
+
className: "flex items-center gap-2 text-sm text-primary hover:underline",
|
|
192
|
+
children: [/* @__PURE__ */ M(w, { className: "w-4 h-4" }), "View Invoice"]
|
|
193
|
+
})
|
|
194
|
+
]
|
|
195
|
+
}),
|
|
196
|
+
!_ && r && n && /* @__PURE__ */ M("div", {
|
|
197
|
+
className: "p-3 bg-muted/50 rounded-lg",
|
|
198
|
+
children: /* @__PURE__ */ N("button", {
|
|
199
|
+
onClick: () => n(e),
|
|
200
|
+
className: "flex items-center gap-2 text-sm text-primary hover:underline",
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ M(w, { className: "w-4 h-4" }),
|
|
203
|
+
"View Invoice ",
|
|
204
|
+
c && `(${c})`
|
|
205
|
+
]
|
|
206
|
+
})
|
|
207
|
+
}),
|
|
208
|
+
y && (S || E || D) && /* @__PURE__ */ N("div", {
|
|
209
|
+
className: "p-3 bg-status-error-bg-subtle/20 border border-border-subtle rounded-lg space-y-3",
|
|
210
|
+
children: [
|
|
211
|
+
/* @__PURE__ */ N("div", {
|
|
212
|
+
className: "flex items-center gap-2",
|
|
213
|
+
children: [/* @__PURE__ */ M("div", { className: "w-1.5 h-1.5 rounded-full bg-status-error-bg" }), /* @__PURE__ */ M("p", {
|
|
214
|
+
className: "text-sm font-semibold text-status-error-text",
|
|
215
|
+
children: "Refund Information"
|
|
216
|
+
})]
|
|
217
|
+
}),
|
|
218
|
+
C && /* @__PURE__ */ N("div", {
|
|
219
|
+
className: "space-y-2",
|
|
220
|
+
children: [/* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
221
|
+
className: "text-xs text-status-error-text mb-1",
|
|
222
|
+
children: "Credit Note"
|
|
223
|
+
}), /* @__PURE__ */ M("p", {
|
|
224
|
+
className: "text-sm font-mono text-status-error-text",
|
|
225
|
+
children: C
|
|
226
|
+
})] }), T && /* @__PURE__ */ N("button", {
|
|
227
|
+
onClick: () => {
|
|
228
|
+
u("light"), d(T);
|
|
229
|
+
},
|
|
230
|
+
className: "flex items-center gap-2 text-sm text-status-error-text hover:underline",
|
|
231
|
+
children: [/* @__PURE__ */ M(w, { className: "w-4 h-4" }), "Download Credit Note PDF"]
|
|
232
|
+
})]
|
|
233
|
+
}),
|
|
234
|
+
D && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
235
|
+
className: "text-xs text-status-error-text mb-1",
|
|
236
|
+
children: "Purchase Type"
|
|
237
|
+
}), /* @__PURE__ */ N("p", {
|
|
238
|
+
className: "text-sm text-status-error-text",
|
|
239
|
+
children: [D, k && ` - ${k}`]
|
|
240
|
+
})] }),
|
|
241
|
+
E && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
242
|
+
className: "text-xs text-status-error-text mb-1",
|
|
243
|
+
children: "Reason"
|
|
244
|
+
}), /* @__PURE__ */ M("p", {
|
|
245
|
+
className: "text-sm text-status-error-text",
|
|
246
|
+
children: E
|
|
247
|
+
})] }),
|
|
248
|
+
x && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
249
|
+
className: "text-xs text-status-error-text mb-1",
|
|
250
|
+
children: "Original Transaction"
|
|
251
|
+
}), /* @__PURE__ */ M("p", {
|
|
252
|
+
className: "text-sm font-mono text-status-error-text break-all",
|
|
253
|
+
children: x
|
|
254
|
+
})] }),
|
|
255
|
+
b && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
256
|
+
className: "text-xs text-status-error-text mb-1",
|
|
257
|
+
children: "Refund Record ID"
|
|
258
|
+
}), /* @__PURE__ */ M("p", {
|
|
259
|
+
className: "text-sm font-mono text-status-error-text break-all",
|
|
260
|
+
children: b
|
|
261
|
+
})] })
|
|
262
|
+
]
|
|
263
|
+
}),
|
|
264
|
+
e.stripePaymentId && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
265
|
+
className: "text-xs text-muted-foreground mb-1",
|
|
266
|
+
children: "Stripe Payment ID"
|
|
267
|
+
}), /* @__PURE__ */ M("p", {
|
|
268
|
+
className: "text-sm font-mono break-all",
|
|
269
|
+
children: e.stripePaymentId
|
|
270
|
+
})] }),
|
|
271
|
+
e.razorpayPaymentId && /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
272
|
+
className: "text-xs text-muted-foreground mb-1",
|
|
273
|
+
children: "Razorpay Payment ID"
|
|
274
|
+
}), /* @__PURE__ */ M("p", {
|
|
275
|
+
className: "text-sm font-mono break-all",
|
|
276
|
+
children: e.razorpayPaymentId
|
|
277
|
+
})] })
|
|
278
|
+
]
|
|
279
|
+
}),
|
|
280
|
+
/* @__PURE__ */ M("div", {
|
|
281
|
+
className: "p-4 border-t border-border",
|
|
282
|
+
children: /* @__PURE__ */ M("button", {
|
|
283
|
+
onClick: t,
|
|
284
|
+
className: "w-full py-2 px-4 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",
|
|
285
|
+
children: "Close"
|
|
286
|
+
})
|
|
287
|
+
})
|
|
288
|
+
]
|
|
289
|
+
})]
|
|
290
|
+
});
|
|
291
|
+
}, z = () => {
|
|
292
|
+
let { t: m } = P(), h = (e, t) => {
|
|
293
|
+
let n = m(e);
|
|
294
|
+
return n === e ? t : n;
|
|
295
|
+
}, { billingAccountId: C } = A(), E = l(), O = f(), { billingAccount: j, transactions: z, pagination: B, isLoading: V, error: H, refetch: U, goToNextPage: W, goToPreviousPage: G } = p(C), [K, q] = g("all"), [J, Y] = g(null), X = (e) => {
|
|
296
|
+
let t = e.metadata;
|
|
297
|
+
return t?.zohoBooksInvoiceUrl ? t.zohoBooksInvoiceUrl : t?.invoiceUrl ? t.invoiceUrl : t?.invoicePdf ? t.invoicePdf : null;
|
|
298
|
+
}, Z = (e) => {
|
|
299
|
+
let t = e.metadata;
|
|
300
|
+
return t?.total && typeof t.total == "number" ? t.total : e.amount;
|
|
301
|
+
}, ee = (e) => {
|
|
302
|
+
let t = e.metadata;
|
|
303
|
+
return t?.zohoBooksInvoiceUrl ? "Zoho Books" : t?.invoiceUrl || t?.invoicePdf ? "Stripe" : null;
|
|
304
|
+
}, Q = (e) => {
|
|
305
|
+
let t = X(e);
|
|
306
|
+
t ? (u("light"), d(t)) : O("/invoices");
|
|
307
|
+
};
|
|
308
|
+
if (!E.canViewPayments) return /* @__PURE__ */ M(e, { message: h("billing.transactions.noPermission", "You don't have permission to view transaction history.") });
|
|
309
|
+
if (!C) return /* @__PURE__ */ M("div", {
|
|
310
|
+
className: "p-6",
|
|
311
|
+
children: /* @__PURE__ */ M(n, {
|
|
312
|
+
icon: /* @__PURE__ */ M("svg", {
|
|
313
|
+
className: "w-6 h-6 text-muted-foreground",
|
|
314
|
+
fill: "none",
|
|
315
|
+
viewBox: "0 0 24 24",
|
|
316
|
+
stroke: "currentColor",
|
|
317
|
+
children: /* @__PURE__ */ M("path", {
|
|
318
|
+
strokeLinecap: "round",
|
|
319
|
+
strokeLinejoin: "round",
|
|
320
|
+
strokeWidth: 2,
|
|
321
|
+
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
322
|
+
})
|
|
323
|
+
}),
|
|
324
|
+
title: h("billing.transactions.noAccountSelected", "No billing account selected"),
|
|
325
|
+
description: h("billing.transactions.noAccountSelectedDesc", "Please select a billing account from the overview page to view transactions.")
|
|
326
|
+
})
|
|
327
|
+
});
|
|
328
|
+
if (H && c(H)) return /* @__PURE__ */ M("div", {
|
|
329
|
+
className: "p-6",
|
|
330
|
+
children: /* @__PURE__ */ M(r, {
|
|
331
|
+
title: h("billing.transactions.serverUnavailable", "Server Unavailable"),
|
|
332
|
+
message: h("billing.transactions.serverUnavailableMessage", "Unable to load transactions. The server might be down or experiencing issues."),
|
|
333
|
+
onRetry: () => U(),
|
|
334
|
+
showRetry: !0
|
|
335
|
+
})
|
|
336
|
+
});
|
|
337
|
+
let $ = K === "all" ? z : z.filter((e) => e.type === K);
|
|
338
|
+
return V ? /* @__PURE__ */ N("div", {
|
|
339
|
+
className: "space-y-6 p-6",
|
|
340
|
+
children: [/* @__PURE__ */ M("div", { className: "h-8 w-48 bg-muted animate-pulse rounded" }), /* @__PURE__ */ M("div", {
|
|
341
|
+
className: "space-y-2",
|
|
342
|
+
children: [
|
|
343
|
+
1,
|
|
344
|
+
2,
|
|
345
|
+
3,
|
|
346
|
+
4,
|
|
347
|
+
5
|
|
348
|
+
].map((e) => /* @__PURE__ */ M("div", { className: "h-16 bg-muted animate-pulse rounded" }, e))
|
|
349
|
+
})]
|
|
350
|
+
}) : /* @__PURE__ */ N("div", {
|
|
351
|
+
className: "space-y-6 p-6",
|
|
352
|
+
children: [
|
|
353
|
+
/* @__PURE__ */ N("button", {
|
|
354
|
+
onClick: () => O("/overview"),
|
|
355
|
+
className: "inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",
|
|
356
|
+
children: [/* @__PURE__ */ M(_, { className: "w-4 h-4" }), "Back to Overview"]
|
|
357
|
+
}),
|
|
358
|
+
/* @__PURE__ */ M(t, {
|
|
359
|
+
title: h("billing.transactions.title", "Transaction History"),
|
|
360
|
+
description: j ? `Transactions for ${j.name}` : "View all your billing transactions"
|
|
361
|
+
}),
|
|
362
|
+
j && /* @__PURE__ */ M("div", {
|
|
363
|
+
className: "border border-border rounded-lg p-4 bg-card",
|
|
364
|
+
children: /* @__PURE__ */ N("div", {
|
|
365
|
+
className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4",
|
|
366
|
+
children: [
|
|
367
|
+
/* @__PURE__ */ N("div", {
|
|
368
|
+
className: "flex items-start gap-2",
|
|
369
|
+
children: [/* @__PURE__ */ M(S, { className: "w-4 h-4 text-muted-foreground mt-0.5" }), /* @__PURE__ */ N("div", { children: [
|
|
370
|
+
/* @__PURE__ */ M("p", {
|
|
371
|
+
className: "text-xs text-muted-foreground mb-0.5",
|
|
372
|
+
children: "Account"
|
|
373
|
+
}),
|
|
374
|
+
/* @__PURE__ */ M("p", {
|
|
375
|
+
className: "text-sm font-medium",
|
|
376
|
+
children: j.name
|
|
377
|
+
}),
|
|
378
|
+
j.isActive ? /* @__PURE__ */ N("span", {
|
|
379
|
+
className: "inline-flex items-center gap-1 mt-1 px-1.5 py-0.5 text-xs font-medium rounded bg-status-success-bg-subtle text-status-success-text",
|
|
380
|
+
children: [/* @__PURE__ */ M(y, { className: "w-3 h-3" }), "Active"]
|
|
381
|
+
}) : /* @__PURE__ */ N("span", {
|
|
382
|
+
className: "inline-flex items-center gap-1 mt-1 px-1.5 py-0.5 text-xs font-medium rounded bg-status-error-bg-subtle text-status-error-text",
|
|
383
|
+
children: [/* @__PURE__ */ M(k, { className: "w-3 h-3" }), "Inactive"]
|
|
384
|
+
})
|
|
385
|
+
] })]
|
|
386
|
+
}),
|
|
387
|
+
/* @__PURE__ */ N("div", {
|
|
388
|
+
className: "flex items-start gap-2",
|
|
389
|
+
children: [/* @__PURE__ */ M(T, { className: "w-4 h-4 text-muted-foreground mt-0.5" }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
390
|
+
className: "text-xs text-muted-foreground mb-0.5",
|
|
391
|
+
children: "Email"
|
|
392
|
+
}), /* @__PURE__ */ M("p", {
|
|
393
|
+
className: "text-sm font-medium break-all",
|
|
394
|
+
children: j.billingEmail || j.email
|
|
395
|
+
})] })]
|
|
396
|
+
}),
|
|
397
|
+
/* @__PURE__ */ N("div", {
|
|
398
|
+
className: "flex items-start gap-2",
|
|
399
|
+
children: [/* @__PURE__ */ M(D, { className: "w-4 h-4 text-muted-foreground mt-0.5" }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
400
|
+
className: "text-xs text-muted-foreground mb-0.5",
|
|
401
|
+
children: "Credits Balance"
|
|
402
|
+
}), /* @__PURE__ */ N("p", {
|
|
403
|
+
className: "text-sm font-semibold text-foreground",
|
|
404
|
+
children: [(j.creditAmount || 0).toLocaleString(), " Credits"]
|
|
405
|
+
})] })]
|
|
406
|
+
}),
|
|
407
|
+
/* @__PURE__ */ N("div", {
|
|
408
|
+
className: "flex items-start gap-2",
|
|
409
|
+
children: [/* @__PURE__ */ M(w, { className: "w-4 h-4 text-muted-foreground mt-0.5" }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
410
|
+
className: "text-xs text-muted-foreground mb-0.5",
|
|
411
|
+
children: "Tax ID"
|
|
412
|
+
}), /* @__PURE__ */ M("p", {
|
|
413
|
+
className: "text-sm font-medium",
|
|
414
|
+
children: j.taxId || "-"
|
|
415
|
+
})] })]
|
|
416
|
+
}),
|
|
417
|
+
/* @__PURE__ */ N("div", {
|
|
418
|
+
className: "flex items-start gap-2",
|
|
419
|
+
children: [/* @__PURE__ */ M(v, { className: "w-4 h-4 text-muted-foreground mt-0.5" }), /* @__PURE__ */ N("div", { children: [/* @__PURE__ */ M("p", {
|
|
420
|
+
className: "text-xs text-muted-foreground mb-0.5",
|
|
421
|
+
children: "Member Since"
|
|
422
|
+
}), /* @__PURE__ */ M("p", {
|
|
423
|
+
className: "text-sm font-medium",
|
|
424
|
+
children: j.createdAt ? a(j.createdAt) : "-"
|
|
425
|
+
})] })]
|
|
426
|
+
})
|
|
427
|
+
]
|
|
428
|
+
})
|
|
429
|
+
}),
|
|
430
|
+
/* @__PURE__ */ M("div", {
|
|
431
|
+
className: "flex items-center gap-4",
|
|
432
|
+
children: /* @__PURE__ */ M("div", {
|
|
433
|
+
className: "inline-flex rounded-lg border border-border p-1 bg-muted/50",
|
|
434
|
+
children: [
|
|
435
|
+
"all",
|
|
436
|
+
"payment",
|
|
437
|
+
"refund",
|
|
438
|
+
"adjustment"
|
|
439
|
+
].map((e) => /* @__PURE__ */ M("button", {
|
|
440
|
+
onClick: () => q(e),
|
|
441
|
+
className: `px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${K === e ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"}`,
|
|
442
|
+
children: e === "all" ? "All" : F[e]
|
|
443
|
+
}, e))
|
|
444
|
+
})
|
|
445
|
+
}),
|
|
446
|
+
$.length === 0 ? /* @__PURE__ */ M(n, {
|
|
447
|
+
icon: /* @__PURE__ */ M("svg", {
|
|
448
|
+
className: "w-6 h-6 text-muted-foreground",
|
|
449
|
+
fill: "none",
|
|
450
|
+
viewBox: "0 0 24 24",
|
|
451
|
+
stroke: "currentColor",
|
|
452
|
+
children: /* @__PURE__ */ M("path", {
|
|
453
|
+
strokeLinecap: "round",
|
|
454
|
+
strokeLinejoin: "round",
|
|
455
|
+
strokeWidth: 2,
|
|
456
|
+
d: "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"
|
|
457
|
+
})
|
|
458
|
+
}),
|
|
459
|
+
title: h("billing.transactions.noTransactionsFound", "No transactions found"),
|
|
460
|
+
description: K === "all" ? h("billing.transactions.noTransactionsYet", "Your transaction history will appear here.") : h("billing.transactions.noTransactionsFiltered", "No transactions match your filter.")
|
|
461
|
+
}) : /* @__PURE__ */ M("div", {
|
|
462
|
+
className: "border border-border rounded-lg overflow-visible",
|
|
463
|
+
children: /* @__PURE__ */ N("table", {
|
|
464
|
+
className: "w-full",
|
|
465
|
+
children: [/* @__PURE__ */ M("thead", {
|
|
466
|
+
className: "bg-muted/50",
|
|
467
|
+
children: /* @__PURE__ */ N("tr", { children: [
|
|
468
|
+
/* @__PURE__ */ M("th", {
|
|
469
|
+
className: "text-left text-sm font-medium text-muted-foreground px-3 py-2 whitespace-nowrap",
|
|
470
|
+
children: "Date"
|
|
471
|
+
}),
|
|
472
|
+
/* @__PURE__ */ M("th", {
|
|
473
|
+
className: "text-left text-sm font-medium text-muted-foreground px-3 py-2 whitespace-nowrap",
|
|
474
|
+
children: "Type"
|
|
475
|
+
}),
|
|
476
|
+
/* @__PURE__ */ M("th", {
|
|
477
|
+
className: "text-left text-sm font-medium text-muted-foreground px-3 py-2 whitespace-nowrap",
|
|
478
|
+
children: "Description"
|
|
479
|
+
}),
|
|
480
|
+
/* @__PURE__ */ M("th", {
|
|
481
|
+
className: "text-right text-sm font-medium text-muted-foreground px-3 py-2 whitespace-nowrap",
|
|
482
|
+
children: "Amount"
|
|
483
|
+
}),
|
|
484
|
+
/* @__PURE__ */ M("th", {
|
|
485
|
+
className: "text-center text-sm font-medium text-muted-foreground px-3 py-2 whitespace-nowrap",
|
|
486
|
+
children: "Status"
|
|
487
|
+
}),
|
|
488
|
+
/* @__PURE__ */ M("th", { className: "px-2 py-2 w-10" })
|
|
489
|
+
] })
|
|
490
|
+
}), /* @__PURE__ */ M("tbody", {
|
|
491
|
+
className: "divide-y divide-border",
|
|
492
|
+
children: $.map((e) => /* @__PURE__ */ N("tr", {
|
|
493
|
+
className: "hover:bg-muted/30 transition-colors",
|
|
494
|
+
children: [
|
|
495
|
+
/* @__PURE__ */ M("td", {
|
|
496
|
+
className: "px-3 py-2 text-sm text-foreground whitespace-nowrap",
|
|
497
|
+
children: a(e.createdAt)
|
|
498
|
+
}),
|
|
499
|
+
/* @__PURE__ */ M("td", {
|
|
500
|
+
className: "px-3 py-2 text-sm text-foreground capitalize whitespace-nowrap",
|
|
501
|
+
children: I(e.type)
|
|
502
|
+
}),
|
|
503
|
+
/* @__PURE__ */ M("td", {
|
|
504
|
+
className: "px-3 py-2 text-sm text-muted-foreground",
|
|
505
|
+
children: e.description ?? "-"
|
|
506
|
+
}),
|
|
507
|
+
/* @__PURE__ */ N("td", {
|
|
508
|
+
className: `px-3 py-2 text-sm text-right font-medium whitespace-nowrap ${e.type === "refund" ? "text-status-error-text" : "text-foreground"}`,
|
|
509
|
+
children: [e.type === "refund" ? "-" : "", i(Z(e), e.currency)]
|
|
510
|
+
}),
|
|
511
|
+
/* @__PURE__ */ M("td", {
|
|
512
|
+
className: "px-3 py-2 text-center whitespace-nowrap",
|
|
513
|
+
children: /* @__PURE__ */ M("span", {
|
|
514
|
+
className: `px-1.5 py-0.5 text-xs font-medium rounded ${o(s(e.status))}`,
|
|
515
|
+
children: e.status
|
|
516
|
+
})
|
|
517
|
+
}),
|
|
518
|
+
/* @__PURE__ */ M("td", {
|
|
519
|
+
className: "px-2 py-2 text-center",
|
|
520
|
+
children: /* @__PURE__ */ M(L, {
|
|
521
|
+
transaction: e,
|
|
522
|
+
onViewDetails: () => Y(e),
|
|
523
|
+
onViewInvoice: () => Q(e),
|
|
524
|
+
hasInvoiceUrl: !!X(e)
|
|
525
|
+
})
|
|
526
|
+
})
|
|
527
|
+
]
|
|
528
|
+
}, e.id))
|
|
529
|
+
})]
|
|
530
|
+
})
|
|
531
|
+
}),
|
|
532
|
+
B.totalCount > 0 && /* @__PURE__ */ N("div", {
|
|
533
|
+
className: "flex items-center justify-between border-t border-border pt-4",
|
|
534
|
+
children: [/* @__PURE__ */ N("p", {
|
|
535
|
+
className: "text-sm text-muted-foreground",
|
|
536
|
+
children: [
|
|
537
|
+
"Showing ",
|
|
538
|
+
B.page * B.pageSize + 1,
|
|
539
|
+
" to",
|
|
540
|
+
" ",
|
|
541
|
+
Math.min((B.page + 1) * B.pageSize, B.totalCount),
|
|
542
|
+
" of",
|
|
543
|
+
" ",
|
|
544
|
+
B.totalCount,
|
|
545
|
+
" transactions"
|
|
546
|
+
]
|
|
547
|
+
}), /* @__PURE__ */ N("div", {
|
|
548
|
+
className: "flex items-center gap-2",
|
|
549
|
+
children: [
|
|
550
|
+
/* @__PURE__ */ N("button", {
|
|
551
|
+
onClick: G,
|
|
552
|
+
disabled: !B.hasPrevious,
|
|
553
|
+
className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-muted/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
554
|
+
children: [/* @__PURE__ */ M(b, { className: "w-4 h-4" }), "Previous"]
|
|
555
|
+
}),
|
|
556
|
+
/* @__PURE__ */ N("span", {
|
|
557
|
+
className: "text-sm text-muted-foreground px-2",
|
|
558
|
+
children: [
|
|
559
|
+
"Page ",
|
|
560
|
+
B.page + 1,
|
|
561
|
+
" of ",
|
|
562
|
+
Math.ceil(B.totalCount / B.pageSize)
|
|
563
|
+
]
|
|
564
|
+
}),
|
|
565
|
+
/* @__PURE__ */ N("button", {
|
|
566
|
+
onClick: W,
|
|
567
|
+
disabled: !B.hasMore,
|
|
568
|
+
className: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-muted/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
569
|
+
children: ["Next", /* @__PURE__ */ M(x, { className: "w-4 h-4" })]
|
|
570
|
+
})
|
|
571
|
+
]
|
|
572
|
+
})]
|
|
573
|
+
}),
|
|
574
|
+
/* @__PURE__ */ M(R, {
|
|
575
|
+
transaction: J,
|
|
576
|
+
onClose: () => Y(null),
|
|
577
|
+
onViewInvoice: Q,
|
|
578
|
+
invoiceUrl: J ? X(J) : null,
|
|
579
|
+
invoiceProvider: J ? ee(J) : null
|
|
580
|
+
})
|
|
581
|
+
]
|
|
582
|
+
});
|
|
583
|
+
};
|
|
584
|
+
//#endregion
|
|
585
|
+
export { z as TransactionsPage };
|
|
586
|
+
|
|
587
|
+
//# sourceMappingURL=TransactionsPage.js.map
|