@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,3542 @@
|
|
|
1
|
+
import * as e from "@apollo/client/react";
|
|
2
|
+
import { gql as t } from "@apollo/client";
|
|
3
|
+
//#region src/generated/global-operations.ts
|
|
4
|
+
var n = {}, r = t`
|
|
5
|
+
fragment AddonFields on Addon {
|
|
6
|
+
id
|
|
7
|
+
productID
|
|
8
|
+
name
|
|
9
|
+
price
|
|
10
|
+
currency
|
|
11
|
+
currencyPrices
|
|
12
|
+
duration
|
|
13
|
+
isActive
|
|
14
|
+
context
|
|
15
|
+
createdAt
|
|
16
|
+
updatedAt
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
t`
|
|
20
|
+
fragment AddonSubscriptionFields on AddonSubscription {
|
|
21
|
+
id
|
|
22
|
+
addonId
|
|
23
|
+
currentSubscriptionId
|
|
24
|
+
quantity
|
|
25
|
+
startDate
|
|
26
|
+
endDate
|
|
27
|
+
context
|
|
28
|
+
createdAt
|
|
29
|
+
updatedAt
|
|
30
|
+
addon {
|
|
31
|
+
...AddonFields
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
${r}`;
|
|
35
|
+
var i = t`
|
|
36
|
+
fragment AddonWithFeaturesFields on Addon {
|
|
37
|
+
...AddonFields
|
|
38
|
+
features {
|
|
39
|
+
id
|
|
40
|
+
quotaId
|
|
41
|
+
quota {
|
|
42
|
+
id
|
|
43
|
+
name
|
|
44
|
+
limits
|
|
45
|
+
reusable
|
|
46
|
+
quotaType
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
${r}`, a = t`
|
|
51
|
+
fragment RefundFields on Refund {
|
|
52
|
+
id
|
|
53
|
+
chargeId
|
|
54
|
+
amount
|
|
55
|
+
currency
|
|
56
|
+
status
|
|
57
|
+
reason
|
|
58
|
+
provider
|
|
59
|
+
gatewayRefundId
|
|
60
|
+
processedAt
|
|
61
|
+
context
|
|
62
|
+
metadata
|
|
63
|
+
createdAt
|
|
64
|
+
updatedAt
|
|
65
|
+
}
|
|
66
|
+
`, o = t`
|
|
67
|
+
fragment ChargeFields on Charge {
|
|
68
|
+
id
|
|
69
|
+
orgId
|
|
70
|
+
amount
|
|
71
|
+
currency
|
|
72
|
+
status
|
|
73
|
+
description
|
|
74
|
+
provider
|
|
75
|
+
gatewayChargeId
|
|
76
|
+
gatewayPaymentId
|
|
77
|
+
context
|
|
78
|
+
metadata
|
|
79
|
+
createdAt
|
|
80
|
+
updatedAt
|
|
81
|
+
refunds {
|
|
82
|
+
...RefundFields
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
${a}`, s = t`
|
|
86
|
+
fragment InvoiceFields on Invoice {
|
|
87
|
+
id
|
|
88
|
+
orgId
|
|
89
|
+
billingAccountId
|
|
90
|
+
subscriptionId
|
|
91
|
+
paymentId
|
|
92
|
+
invoiceNumber
|
|
93
|
+
status
|
|
94
|
+
subtotal
|
|
95
|
+
tax
|
|
96
|
+
total
|
|
97
|
+
amountPaid
|
|
98
|
+
currency
|
|
99
|
+
dueDate
|
|
100
|
+
paidAt
|
|
101
|
+
gatewayInvoiceId
|
|
102
|
+
invoiceUrl
|
|
103
|
+
pdfUrl
|
|
104
|
+
itemDescription
|
|
105
|
+
context
|
|
106
|
+
metadata
|
|
107
|
+
createdAt
|
|
108
|
+
updatedAt
|
|
109
|
+
}
|
|
110
|
+
`, c = t`
|
|
111
|
+
fragment InvoiceItemFields on InvoiceItem {
|
|
112
|
+
id
|
|
113
|
+
invoiceId
|
|
114
|
+
description
|
|
115
|
+
quantity
|
|
116
|
+
unitPrice
|
|
117
|
+
amount
|
|
118
|
+
context
|
|
119
|
+
metadata
|
|
120
|
+
}
|
|
121
|
+
`, l = t`
|
|
122
|
+
fragment InvoiceWithItemsFields on Invoice {
|
|
123
|
+
...InvoiceFields
|
|
124
|
+
items {
|
|
125
|
+
...InvoiceItemFields
|
|
126
|
+
}
|
|
127
|
+
subscription {
|
|
128
|
+
id
|
|
129
|
+
status
|
|
130
|
+
plan {
|
|
131
|
+
id
|
|
132
|
+
name
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
payment {
|
|
136
|
+
id
|
|
137
|
+
amount
|
|
138
|
+
status
|
|
139
|
+
method
|
|
140
|
+
provider
|
|
141
|
+
paidAt
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
${s}
|
|
145
|
+
${c}`, u = t`
|
|
146
|
+
fragment PaymentFields on Payment {
|
|
147
|
+
id
|
|
148
|
+
orgId
|
|
149
|
+
transactionId
|
|
150
|
+
amount
|
|
151
|
+
currency
|
|
152
|
+
status
|
|
153
|
+
method
|
|
154
|
+
provider
|
|
155
|
+
gatewayPaymentId
|
|
156
|
+
gatewayOrderId
|
|
157
|
+
failureReason
|
|
158
|
+
paidAt
|
|
159
|
+
context
|
|
160
|
+
metadata
|
|
161
|
+
createdAt
|
|
162
|
+
updatedAt
|
|
163
|
+
}
|
|
164
|
+
`, d = t`
|
|
165
|
+
fragment PaymentMethodFields on PaymentMethod {
|
|
166
|
+
id
|
|
167
|
+
orgId
|
|
168
|
+
billingAccountId
|
|
169
|
+
type
|
|
170
|
+
brand
|
|
171
|
+
last4
|
|
172
|
+
expiryMonth
|
|
173
|
+
expiryYear
|
|
174
|
+
isDefault
|
|
175
|
+
isVerified
|
|
176
|
+
verifiedAt
|
|
177
|
+
stripeCustomerId
|
|
178
|
+
stripePaymentMethodId
|
|
179
|
+
razorpayCustomerId
|
|
180
|
+
razorpayPaymentMethodId
|
|
181
|
+
context
|
|
182
|
+
metadata
|
|
183
|
+
createdAt
|
|
184
|
+
updatedAt
|
|
185
|
+
}
|
|
186
|
+
`, f = t`
|
|
187
|
+
fragment RefundRecordFields on RefundRecord {
|
|
188
|
+
id
|
|
189
|
+
orgId
|
|
190
|
+
billingAccountId
|
|
191
|
+
source
|
|
192
|
+
status
|
|
193
|
+
provider
|
|
194
|
+
gatewayPaymentId
|
|
195
|
+
gatewayOrderId
|
|
196
|
+
amount
|
|
197
|
+
currency
|
|
198
|
+
purchaseType
|
|
199
|
+
purchaseDetail
|
|
200
|
+
reason
|
|
201
|
+
notes
|
|
202
|
+
webhookLogId
|
|
203
|
+
transactionId
|
|
204
|
+
processedBy
|
|
205
|
+
processedAt
|
|
206
|
+
gatewayRefundId
|
|
207
|
+
errorMessage
|
|
208
|
+
retryCount
|
|
209
|
+
metadata
|
|
210
|
+
createdAt
|
|
211
|
+
updatedAt
|
|
212
|
+
}
|
|
213
|
+
`, ee = t`
|
|
214
|
+
fragment RefundRecordWithRelationsFields on RefundRecord {
|
|
215
|
+
...RefundRecordFields
|
|
216
|
+
webhookLog {
|
|
217
|
+
id
|
|
218
|
+
event
|
|
219
|
+
provider
|
|
220
|
+
payload
|
|
221
|
+
processed
|
|
222
|
+
error
|
|
223
|
+
createdAt
|
|
224
|
+
}
|
|
225
|
+
transaction {
|
|
226
|
+
id
|
|
227
|
+
amount
|
|
228
|
+
currency
|
|
229
|
+
status
|
|
230
|
+
type
|
|
231
|
+
description
|
|
232
|
+
createdAt
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
${f}`, p = t`
|
|
236
|
+
fragment CreditNoteFields on CreditNote {
|
|
237
|
+
id
|
|
238
|
+
orgId
|
|
239
|
+
invoiceId
|
|
240
|
+
number
|
|
241
|
+
amount
|
|
242
|
+
currency
|
|
243
|
+
reason
|
|
244
|
+
metadata
|
|
245
|
+
context
|
|
246
|
+
createdAt
|
|
247
|
+
updatedAt
|
|
248
|
+
}
|
|
249
|
+
`, m = t`
|
|
250
|
+
fragment CreditTransactionFields on CreditTransaction {
|
|
251
|
+
id
|
|
252
|
+
billingAccountId
|
|
253
|
+
productId
|
|
254
|
+
amount
|
|
255
|
+
type
|
|
256
|
+
status
|
|
257
|
+
entityType
|
|
258
|
+
entityId
|
|
259
|
+
transactionId
|
|
260
|
+
context
|
|
261
|
+
createdAt
|
|
262
|
+
updatedAt
|
|
263
|
+
}
|
|
264
|
+
`, h = t`
|
|
265
|
+
fragment ActiveSubscriptionFields on BillingSubscription {
|
|
266
|
+
id
|
|
267
|
+
billingAccountId
|
|
268
|
+
planId
|
|
269
|
+
status
|
|
270
|
+
startDate
|
|
271
|
+
endDate
|
|
272
|
+
autoRenewal
|
|
273
|
+
recurrence
|
|
274
|
+
seatCount
|
|
275
|
+
nextBillingDate
|
|
276
|
+
paymentGateway
|
|
277
|
+
createdAt
|
|
278
|
+
plan {
|
|
279
|
+
id
|
|
280
|
+
name
|
|
281
|
+
price
|
|
282
|
+
currency
|
|
283
|
+
duration
|
|
284
|
+
isActive
|
|
285
|
+
productID
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
`, g = t`
|
|
289
|
+
fragment BillingAccountFields on BillingAccount {
|
|
290
|
+
id
|
|
291
|
+
orgId
|
|
292
|
+
name
|
|
293
|
+
email
|
|
294
|
+
billingEmail
|
|
295
|
+
currency
|
|
296
|
+
creditAmount
|
|
297
|
+
stripeCustomerId
|
|
298
|
+
razorpayCustomerId
|
|
299
|
+
defaultPaymentMethod
|
|
300
|
+
taxId
|
|
301
|
+
isActive
|
|
302
|
+
isDefault
|
|
303
|
+
createdAt
|
|
304
|
+
updatedAt
|
|
305
|
+
}
|
|
306
|
+
`, _ = t`
|
|
307
|
+
fragment BillingAddressFields on BillingAddress {
|
|
308
|
+
id
|
|
309
|
+
orgId
|
|
310
|
+
billingAccountId
|
|
311
|
+
line1
|
|
312
|
+
line2
|
|
313
|
+
city
|
|
314
|
+
state
|
|
315
|
+
postalCode
|
|
316
|
+
country
|
|
317
|
+
createdAt
|
|
318
|
+
updatedAt
|
|
319
|
+
}
|
|
320
|
+
`, te = t`
|
|
321
|
+
fragment CreditTransactionSummaryFields on CreditTransaction {
|
|
322
|
+
id
|
|
323
|
+
billingAccountId
|
|
324
|
+
productId
|
|
325
|
+
amount
|
|
326
|
+
type
|
|
327
|
+
status
|
|
328
|
+
entityType
|
|
329
|
+
entityId
|
|
330
|
+
createdAt
|
|
331
|
+
}
|
|
332
|
+
`, v = t`
|
|
333
|
+
fragment DashboardPaymentMethodFields on PaymentMethod {
|
|
334
|
+
id
|
|
335
|
+
orgId
|
|
336
|
+
billingAccountId
|
|
337
|
+
type
|
|
338
|
+
brand
|
|
339
|
+
last4
|
|
340
|
+
expiryMonth
|
|
341
|
+
expiryYear
|
|
342
|
+
isDefault
|
|
343
|
+
isVerified
|
|
344
|
+
verifiedAt
|
|
345
|
+
stripePaymentMethodId
|
|
346
|
+
razorpayPaymentMethodId
|
|
347
|
+
createdAt
|
|
348
|
+
updatedAt
|
|
349
|
+
}
|
|
350
|
+
`;
|
|
351
|
+
t`
|
|
352
|
+
fragment TransactionSummaryFields on Transaction {
|
|
353
|
+
id
|
|
354
|
+
billingAccountId
|
|
355
|
+
amount
|
|
356
|
+
currency
|
|
357
|
+
status
|
|
358
|
+
type
|
|
359
|
+
description
|
|
360
|
+
createdAt
|
|
361
|
+
}
|
|
362
|
+
`;
|
|
363
|
+
var y = t`
|
|
364
|
+
fragment CouponFields on Coupon {
|
|
365
|
+
id
|
|
366
|
+
code
|
|
367
|
+
name
|
|
368
|
+
description
|
|
369
|
+
scope
|
|
370
|
+
status
|
|
371
|
+
type
|
|
372
|
+
value
|
|
373
|
+
currency
|
|
374
|
+
minPurchaseAmount
|
|
375
|
+
maxDiscountAmount
|
|
376
|
+
maxTotalUses
|
|
377
|
+
maxUsesPerUser
|
|
378
|
+
currentUses
|
|
379
|
+
validFrom
|
|
380
|
+
validUntil
|
|
381
|
+
restrictedToUserIds
|
|
382
|
+
applicableProducts
|
|
383
|
+
applicableServices
|
|
384
|
+
excludedProducts
|
|
385
|
+
excludedServices
|
|
386
|
+
campaignId
|
|
387
|
+
campaignName
|
|
388
|
+
metadata
|
|
389
|
+
createdAt
|
|
390
|
+
updatedAt
|
|
391
|
+
createdBy
|
|
392
|
+
onBehalfOf
|
|
393
|
+
}
|
|
394
|
+
`, b = t`
|
|
395
|
+
fragment PlanWithFeaturesFields on Plan {
|
|
396
|
+
...PlanFields
|
|
397
|
+
features {
|
|
398
|
+
id
|
|
399
|
+
quotaId
|
|
400
|
+
quota {
|
|
401
|
+
id
|
|
402
|
+
name
|
|
403
|
+
limits
|
|
404
|
+
reusable
|
|
405
|
+
quotaType
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
itemEntitlements {
|
|
409
|
+
id
|
|
410
|
+
itemId
|
|
411
|
+
accessType
|
|
412
|
+
discountPercentage
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
${t`
|
|
416
|
+
fragment PlanFields on Plan {
|
|
417
|
+
id
|
|
418
|
+
productID
|
|
419
|
+
name
|
|
420
|
+
price
|
|
421
|
+
currency
|
|
422
|
+
currencyPrices
|
|
423
|
+
duration
|
|
424
|
+
pricingModel
|
|
425
|
+
pricePerSeat
|
|
426
|
+
minSeats
|
|
427
|
+
maxSeats
|
|
428
|
+
isActive
|
|
429
|
+
context
|
|
430
|
+
createdAt
|
|
431
|
+
updatedAt
|
|
432
|
+
}
|
|
433
|
+
`}`, ne = t`
|
|
434
|
+
fragment QuotaFields on Quota {
|
|
435
|
+
id
|
|
436
|
+
name
|
|
437
|
+
limits
|
|
438
|
+
quotaType
|
|
439
|
+
reusable
|
|
440
|
+
resetPeriod
|
|
441
|
+
isActive
|
|
442
|
+
context
|
|
443
|
+
createdAt
|
|
444
|
+
updatedAt
|
|
445
|
+
}
|
|
446
|
+
`, x = t`
|
|
447
|
+
fragment QuotaAssignmentFields on QuotaAssignment {
|
|
448
|
+
id
|
|
449
|
+
billingAccountId
|
|
450
|
+
subscriptionId
|
|
451
|
+
name
|
|
452
|
+
limits
|
|
453
|
+
quotaType
|
|
454
|
+
reusable
|
|
455
|
+
currentUsageSum
|
|
456
|
+
totalUsageCount
|
|
457
|
+
endtime
|
|
458
|
+
context
|
|
459
|
+
createdAt
|
|
460
|
+
}
|
|
461
|
+
`, S = t`
|
|
462
|
+
fragment QuotaUsageAnalyticsFields on QuotaUsageAnalytics {
|
|
463
|
+
dailyUsage {
|
|
464
|
+
date
|
|
465
|
+
usage
|
|
466
|
+
count
|
|
467
|
+
}
|
|
468
|
+
usageByType {
|
|
469
|
+
resourceType
|
|
470
|
+
usage
|
|
471
|
+
count
|
|
472
|
+
percentage
|
|
473
|
+
}
|
|
474
|
+
peakUsage {
|
|
475
|
+
peakDate
|
|
476
|
+
maxDailyUsage
|
|
477
|
+
peakHour
|
|
478
|
+
}
|
|
479
|
+
trends {
|
|
480
|
+
averageDailyUsage
|
|
481
|
+
growthRate
|
|
482
|
+
predictedUsage
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
`, re = t`
|
|
486
|
+
fragment QuotaAssignmentWithAnalyticsFields on QuotaAssignmentWithAnalytics {
|
|
487
|
+
id
|
|
488
|
+
billingAccountId
|
|
489
|
+
subscriptionId
|
|
490
|
+
name
|
|
491
|
+
limits
|
|
492
|
+
quotaType
|
|
493
|
+
reusable
|
|
494
|
+
currentUsageSum
|
|
495
|
+
totalUsageCount
|
|
496
|
+
status
|
|
497
|
+
healthScore
|
|
498
|
+
usagePercentage
|
|
499
|
+
limitLeft
|
|
500
|
+
endtime
|
|
501
|
+
createdAt
|
|
502
|
+
analytics {
|
|
503
|
+
...QuotaUsageAnalyticsFields
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
${S}`, ie = t`
|
|
507
|
+
fragment QuotaTemplateFields on Quota {
|
|
508
|
+
id
|
|
509
|
+
name
|
|
510
|
+
limits
|
|
511
|
+
quotaType
|
|
512
|
+
reusable
|
|
513
|
+
resetPeriod
|
|
514
|
+
isActive
|
|
515
|
+
context
|
|
516
|
+
createdAt
|
|
517
|
+
updatedAt
|
|
518
|
+
}
|
|
519
|
+
`, C = t`
|
|
520
|
+
fragment SubscriptionFields on BillingSubscription {
|
|
521
|
+
id
|
|
522
|
+
billingAccountId
|
|
523
|
+
planId
|
|
524
|
+
status
|
|
525
|
+
startDate
|
|
526
|
+
endDate
|
|
527
|
+
autoRenewal
|
|
528
|
+
recurrence
|
|
529
|
+
seatCount
|
|
530
|
+
lastSeatChangeAt
|
|
531
|
+
lastBillingDate
|
|
532
|
+
nextBillingDate
|
|
533
|
+
lastRenewalDate
|
|
534
|
+
canceledAt
|
|
535
|
+
canceledBy
|
|
536
|
+
cancellationReason
|
|
537
|
+
stripeSubscriptionId
|
|
538
|
+
razorpaySubscriptionId
|
|
539
|
+
paymentGateway
|
|
540
|
+
context
|
|
541
|
+
createdAt
|
|
542
|
+
updatedAt
|
|
543
|
+
}
|
|
544
|
+
`, w = t`
|
|
545
|
+
fragment SubscriptionWithPlanFields on BillingSubscription {
|
|
546
|
+
...SubscriptionFields
|
|
547
|
+
plan {
|
|
548
|
+
id
|
|
549
|
+
productID
|
|
550
|
+
name
|
|
551
|
+
price
|
|
552
|
+
currency
|
|
553
|
+
duration
|
|
554
|
+
isActive
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
${C}`, ae = t`
|
|
558
|
+
fragment SubscriptionFullFields on BillingSubscription {
|
|
559
|
+
...SubscriptionWithPlanFields
|
|
560
|
+
billingAccount {
|
|
561
|
+
id
|
|
562
|
+
name
|
|
563
|
+
email
|
|
564
|
+
currency
|
|
565
|
+
}
|
|
566
|
+
addonSubscriptions {
|
|
567
|
+
id
|
|
568
|
+
addonId
|
|
569
|
+
quantity
|
|
570
|
+
startDate
|
|
571
|
+
endDate
|
|
572
|
+
addon {
|
|
573
|
+
id
|
|
574
|
+
name
|
|
575
|
+
price
|
|
576
|
+
currency
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
quotas {
|
|
580
|
+
id
|
|
581
|
+
name
|
|
582
|
+
limits
|
|
583
|
+
currentUsageSum
|
|
584
|
+
endtime
|
|
585
|
+
quotaType
|
|
586
|
+
reusable
|
|
587
|
+
}
|
|
588
|
+
transactions {
|
|
589
|
+
id
|
|
590
|
+
amount
|
|
591
|
+
currency
|
|
592
|
+
type
|
|
593
|
+
status
|
|
594
|
+
createdAt
|
|
595
|
+
}
|
|
596
|
+
history {
|
|
597
|
+
id
|
|
598
|
+
fromStatus
|
|
599
|
+
toStatus
|
|
600
|
+
reason
|
|
601
|
+
createdAt
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
${w}`;
|
|
605
|
+
t`
|
|
606
|
+
fragment QuotaUsageSummaryFields on QuotaUsageSummary {
|
|
607
|
+
quotaId
|
|
608
|
+
quotaName
|
|
609
|
+
usage
|
|
610
|
+
limit
|
|
611
|
+
percentage
|
|
612
|
+
status
|
|
613
|
+
}
|
|
614
|
+
`, t`
|
|
615
|
+
fragment UsageActivityFields on UsageActivity {
|
|
616
|
+
id
|
|
617
|
+
quotaName
|
|
618
|
+
amount
|
|
619
|
+
description
|
|
620
|
+
tags
|
|
621
|
+
timestamp
|
|
622
|
+
}
|
|
623
|
+
`;
|
|
624
|
+
var oe = t`
|
|
625
|
+
fragment UsageDashboardFields on UsageDashboard {
|
|
626
|
+
totalQuotas
|
|
627
|
+
healthyQuotas
|
|
628
|
+
warningQuotas
|
|
629
|
+
criticalQuotas
|
|
630
|
+
exhaustedQuotas
|
|
631
|
+
}
|
|
632
|
+
`;
|
|
633
|
+
t`
|
|
634
|
+
fragment UsageFields on Usage {
|
|
635
|
+
id
|
|
636
|
+
quotaAssignmentId
|
|
637
|
+
userId
|
|
638
|
+
productId
|
|
639
|
+
amount
|
|
640
|
+
description
|
|
641
|
+
tags
|
|
642
|
+
timestamp
|
|
643
|
+
lastUpdated
|
|
644
|
+
context
|
|
645
|
+
}
|
|
646
|
+
`, t`
|
|
647
|
+
fragment UsageRecordFields on UsageRecord {
|
|
648
|
+
id
|
|
649
|
+
orgId
|
|
650
|
+
subscriptionId
|
|
651
|
+
metricType
|
|
652
|
+
quantity
|
|
653
|
+
unitCost
|
|
654
|
+
totalCost
|
|
655
|
+
timestamp
|
|
656
|
+
metadata
|
|
657
|
+
context
|
|
658
|
+
createdAt
|
|
659
|
+
}
|
|
660
|
+
`, t`
|
|
661
|
+
fragment UsageTrendsFields on UsageTrends {
|
|
662
|
+
averageDailyUsage
|
|
663
|
+
growthRate
|
|
664
|
+
predictedUsage
|
|
665
|
+
}
|
|
666
|
+
`;
|
|
667
|
+
var se = t`
|
|
668
|
+
mutation CreateAddOns($input: createAddOnsInput!) {
|
|
669
|
+
createAddOns(input: $input)
|
|
670
|
+
}
|
|
671
|
+
`;
|
|
672
|
+
function ce(t) {
|
|
673
|
+
let r = {
|
|
674
|
+
...n,
|
|
675
|
+
...t
|
|
676
|
+
};
|
|
677
|
+
return e.useMutation(se, r);
|
|
678
|
+
}
|
|
679
|
+
var le = t`
|
|
680
|
+
mutation ToggleAddOn($id: ID!, $status: Boolean!) {
|
|
681
|
+
toggleAddOn(id: $id, status: $status)
|
|
682
|
+
}
|
|
683
|
+
`;
|
|
684
|
+
function ue(t) {
|
|
685
|
+
let r = {
|
|
686
|
+
...n,
|
|
687
|
+
...t
|
|
688
|
+
};
|
|
689
|
+
return e.useMutation(le, r);
|
|
690
|
+
}
|
|
691
|
+
var de = t`
|
|
692
|
+
mutation UpdateAddOnDetails($input: updateAddOnsInput!) {
|
|
693
|
+
updateAddOnDetails(input: $input)
|
|
694
|
+
}
|
|
695
|
+
`;
|
|
696
|
+
function fe(t) {
|
|
697
|
+
let r = {
|
|
698
|
+
...n,
|
|
699
|
+
...t
|
|
700
|
+
};
|
|
701
|
+
return e.useMutation(de, r);
|
|
702
|
+
}
|
|
703
|
+
var T = t`
|
|
704
|
+
query GetAllAddOns($filter: AddonsFilter) {
|
|
705
|
+
getAllAddOns(filter: $filter) {
|
|
706
|
+
...AddonWithFeaturesFields
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
${i}`;
|
|
710
|
+
function E(t) {
|
|
711
|
+
let r = {
|
|
712
|
+
...n,
|
|
713
|
+
...t
|
|
714
|
+
};
|
|
715
|
+
return e.useQuery(T, r);
|
|
716
|
+
}
|
|
717
|
+
var D = t`
|
|
718
|
+
query GetSelectedAddons($addonIDs: [String!]!) {
|
|
719
|
+
getSelectedAddons(addonIDs: $addonIDs) {
|
|
720
|
+
...AddonWithFeaturesFields
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
${i}`;
|
|
724
|
+
function O(t) {
|
|
725
|
+
let r = {
|
|
726
|
+
...n,
|
|
727
|
+
...t
|
|
728
|
+
};
|
|
729
|
+
return e.useQuery(D, r);
|
|
730
|
+
}
|
|
731
|
+
var k = t`
|
|
732
|
+
query GetBillingAnalyticsPageData {
|
|
733
|
+
getBillingAccountsByOrg {
|
|
734
|
+
...BillingAccountFields
|
|
735
|
+
subscriptions {
|
|
736
|
+
id
|
|
737
|
+
status
|
|
738
|
+
seatCount
|
|
739
|
+
startDate
|
|
740
|
+
endDate
|
|
741
|
+
canceledAt
|
|
742
|
+
createdAt
|
|
743
|
+
plan {
|
|
744
|
+
id
|
|
745
|
+
name
|
|
746
|
+
price
|
|
747
|
+
currency
|
|
748
|
+
duration
|
|
749
|
+
isActive
|
|
750
|
+
productID
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
getPayments(status: SUCCEEDED) {
|
|
755
|
+
id
|
|
756
|
+
amount
|
|
757
|
+
currency
|
|
758
|
+
status
|
|
759
|
+
provider
|
|
760
|
+
paidAt
|
|
761
|
+
createdAt
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
${g}`;
|
|
765
|
+
function A(t) {
|
|
766
|
+
let r = {
|
|
767
|
+
...n,
|
|
768
|
+
...t
|
|
769
|
+
};
|
|
770
|
+
return e.useQuery(k, r);
|
|
771
|
+
}
|
|
772
|
+
t`
|
|
773
|
+
mutation AddPaymentMethod($input: CreatePaymentMethodInput!) {
|
|
774
|
+
addPaymentMethod(input: $input) {
|
|
775
|
+
...PaymentMethodFields
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
${d}`, t`
|
|
779
|
+
mutation CreateRefund($chargeId: ID!, $billingAccountId: ID!, $amount: Float!, $reason: String, $currency: String, $metadata: JSON) {
|
|
780
|
+
createRefund(
|
|
781
|
+
chargeId: $chargeId
|
|
782
|
+
billingAccountId: $billingAccountId
|
|
783
|
+
amount: $amount
|
|
784
|
+
reason: $reason
|
|
785
|
+
currency: $currency
|
|
786
|
+
metadata: $metadata
|
|
787
|
+
) {
|
|
788
|
+
...RefundFields
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
${a}`;
|
|
792
|
+
var j = t`
|
|
793
|
+
mutation CreateRefundRecord($billingAccountId: String, $provider: String!, $gatewayPaymentId: String!, $gatewayOrderId: String, $amount: Float!, $currency: String!, $purchaseType: String, $purchaseDetail: String, $reason: String, $notes: String, $transactionId: String, $metadata: JSON) {
|
|
794
|
+
createRefundRecord(
|
|
795
|
+
billingAccountId: $billingAccountId
|
|
796
|
+
provider: $provider
|
|
797
|
+
gatewayPaymentId: $gatewayPaymentId
|
|
798
|
+
gatewayOrderId: $gatewayOrderId
|
|
799
|
+
amount: $amount
|
|
800
|
+
currency: $currency
|
|
801
|
+
purchaseType: $purchaseType
|
|
802
|
+
purchaseDetail: $purchaseDetail
|
|
803
|
+
reason: $reason
|
|
804
|
+
notes: $notes
|
|
805
|
+
transactionId: $transactionId
|
|
806
|
+
metadata: $metadata
|
|
807
|
+
) {
|
|
808
|
+
...RefundRecordFields
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
${f}`;
|
|
812
|
+
function M(t) {
|
|
813
|
+
let r = {
|
|
814
|
+
...n,
|
|
815
|
+
...t
|
|
816
|
+
};
|
|
817
|
+
return e.useMutation(j, r);
|
|
818
|
+
}
|
|
819
|
+
var N = t`
|
|
820
|
+
mutation CreateRefundRecordFromWebhook($webhookLogId: ID!) {
|
|
821
|
+
createRefundRecordFromWebhook(webhookLogId: $webhookLogId) {
|
|
822
|
+
...RefundRecordFields
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
${f}`;
|
|
826
|
+
function P(t) {
|
|
827
|
+
let r = {
|
|
828
|
+
...n,
|
|
829
|
+
...t
|
|
830
|
+
};
|
|
831
|
+
return e.useMutation(N, r);
|
|
832
|
+
}
|
|
833
|
+
var F = t`
|
|
834
|
+
mutation CreateRefundRecordsFromFailedWebhooks {
|
|
835
|
+
createRefundRecordsFromFailedWebhooks {
|
|
836
|
+
...RefundRecordFields
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
${f}`;
|
|
840
|
+
function I(t) {
|
|
841
|
+
let r = {
|
|
842
|
+
...n,
|
|
843
|
+
...t
|
|
844
|
+
};
|
|
845
|
+
return e.useMutation(F, r);
|
|
846
|
+
}
|
|
847
|
+
t`
|
|
848
|
+
mutation DeletePaymentMethod($id: ID!, $billingAccountId: ID!) {
|
|
849
|
+
deletePaymentMethod(id: $id, billingAccountId: $billingAccountId)
|
|
850
|
+
}
|
|
851
|
+
`;
|
|
852
|
+
var L = t`
|
|
853
|
+
mutation GenerateInvoice($subscriptionId: ID!, $billingAccountId: ID!) {
|
|
854
|
+
generateInvoice(
|
|
855
|
+
subscriptionId: $subscriptionId
|
|
856
|
+
billingAccountId: $billingAccountId
|
|
857
|
+
) {
|
|
858
|
+
...InvoiceWithItemsFields
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
${l}`;
|
|
862
|
+
function R(t) {
|
|
863
|
+
let r = {
|
|
864
|
+
...n,
|
|
865
|
+
...t
|
|
866
|
+
};
|
|
867
|
+
return e.useMutation(L, r);
|
|
868
|
+
}
|
|
869
|
+
var z = t`
|
|
870
|
+
mutation PayInvoice($invoiceId: ID!, $paymentMethodId: ID!, $billingAccountId: ID!) {
|
|
871
|
+
payInvoice(
|
|
872
|
+
invoiceId: $invoiceId
|
|
873
|
+
paymentMethodId: $paymentMethodId
|
|
874
|
+
billingAccountId: $billingAccountId
|
|
875
|
+
) {
|
|
876
|
+
...InvoiceWithItemsFields
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
${l}`;
|
|
880
|
+
function B(t) {
|
|
881
|
+
let r = {
|
|
882
|
+
...n,
|
|
883
|
+
...t
|
|
884
|
+
};
|
|
885
|
+
return e.useMutation(z, r);
|
|
886
|
+
}
|
|
887
|
+
var V = t`
|
|
888
|
+
mutation ProcessRefund($id: ID!, $notes: String) {
|
|
889
|
+
processRefund(id: $id, notes: $notes) {
|
|
890
|
+
success
|
|
891
|
+
refundRecord {
|
|
892
|
+
...RefundRecordFields
|
|
893
|
+
}
|
|
894
|
+
gatewayRefundId
|
|
895
|
+
error
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
${f}`;
|
|
899
|
+
function pe(t) {
|
|
900
|
+
let r = {
|
|
901
|
+
...n,
|
|
902
|
+
...t
|
|
903
|
+
};
|
|
904
|
+
return e.useMutation(V, r);
|
|
905
|
+
}
|
|
906
|
+
var me = t`
|
|
907
|
+
mutation RetryRefund($id: ID!) {
|
|
908
|
+
retryRefund(id: $id) {
|
|
909
|
+
success
|
|
910
|
+
refundRecord {
|
|
911
|
+
...RefundRecordFields
|
|
912
|
+
}
|
|
913
|
+
gatewayRefundId
|
|
914
|
+
error
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
${f}`;
|
|
918
|
+
function he(t) {
|
|
919
|
+
let r = {
|
|
920
|
+
...n,
|
|
921
|
+
...t
|
|
922
|
+
};
|
|
923
|
+
return e.useMutation(me, r);
|
|
924
|
+
}
|
|
925
|
+
var ge = t`
|
|
926
|
+
mutation SkipRefund($id: ID!, $reason: String!) {
|
|
927
|
+
skipRefund(id: $id, reason: $reason) {
|
|
928
|
+
...RefundRecordFields
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
${f}`;
|
|
932
|
+
function _e(t) {
|
|
933
|
+
let r = {
|
|
934
|
+
...n,
|
|
935
|
+
...t
|
|
936
|
+
};
|
|
937
|
+
return e.useMutation(ge, r);
|
|
938
|
+
}
|
|
939
|
+
t`
|
|
940
|
+
mutation UpdatePaymentMethod($id: ID!, $isDefault: Boolean!, $billingAccountId: ID!) {
|
|
941
|
+
updatePaymentMethod(
|
|
942
|
+
id: $id
|
|
943
|
+
isDefault: $isDefault
|
|
944
|
+
billingAccountId: $billingAccountId
|
|
945
|
+
) {
|
|
946
|
+
...PaymentMethodFields
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
${d}`;
|
|
950
|
+
var ve = t`
|
|
951
|
+
mutation VoidInvoice($invoiceId: ID!, $billingAccountId: ID!) {
|
|
952
|
+
voidInvoice(invoiceId: $invoiceId, billingAccountId: $billingAccountId) {
|
|
953
|
+
...InvoiceFields
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
${s}`;
|
|
957
|
+
function ye(t) {
|
|
958
|
+
let r = {
|
|
959
|
+
...n,
|
|
960
|
+
...t
|
|
961
|
+
};
|
|
962
|
+
return e.useMutation(ve, r);
|
|
963
|
+
}
|
|
964
|
+
t`
|
|
965
|
+
query GetCharge($id: ID!, $billingAccountId: ID!) {
|
|
966
|
+
getCharge(id: $id, billingAccountId: $billingAccountId) {
|
|
967
|
+
...ChargeFields
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
${o}`, t`
|
|
971
|
+
query GetCharges($status: ChargeStatus) {
|
|
972
|
+
getCharges(status: $status) {
|
|
973
|
+
...ChargeFields
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
${o}`, t`
|
|
977
|
+
query GetDefaultPaymentMethod($billingAccountId: ID!) {
|
|
978
|
+
getDefaultPaymentMethod(billingAccountId: $billingAccountId) {
|
|
979
|
+
...PaymentMethodFields
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
${d}`;
|
|
983
|
+
var be = t`
|
|
984
|
+
query GetInvoice($id: ID!, $billingAccountId: ID!) {
|
|
985
|
+
getInvoice(id: $id, billingAccountId: $billingAccountId) {
|
|
986
|
+
...InvoiceWithItemsFields
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
${l}`;
|
|
990
|
+
function xe(t) {
|
|
991
|
+
let r = {
|
|
992
|
+
...n,
|
|
993
|
+
...t
|
|
994
|
+
};
|
|
995
|
+
return e.useQuery(be, r);
|
|
996
|
+
}
|
|
997
|
+
t`
|
|
998
|
+
query GetInvoiceByNumber($invoiceNumber: String!, $billingAccountId: ID!) {
|
|
999
|
+
getInvoiceByNumber(
|
|
1000
|
+
invoiceNumber: $invoiceNumber
|
|
1001
|
+
billingAccountId: $billingAccountId
|
|
1002
|
+
) {
|
|
1003
|
+
...InvoiceWithItemsFields
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
${l}`;
|
|
1007
|
+
var H = t`
|
|
1008
|
+
query GetInvoices($status: InvoiceStatus, $billingAccountId: ID) {
|
|
1009
|
+
getInvoices(status: $status, billingAccountId: $billingAccountId) {
|
|
1010
|
+
...InvoiceWithItemsFields
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
${l}`;
|
|
1014
|
+
function Se(t) {
|
|
1015
|
+
let r = {
|
|
1016
|
+
...n,
|
|
1017
|
+
...t
|
|
1018
|
+
};
|
|
1019
|
+
return e.useQuery(H, r);
|
|
1020
|
+
}
|
|
1021
|
+
t`
|
|
1022
|
+
query GetPaginatedInvoices($status: InvoiceStatus, $billingAccountId: ID, $page: Int, $pageSize: Int) {
|
|
1023
|
+
getPaginatedInvoices(
|
|
1024
|
+
status: $status
|
|
1025
|
+
billingAccountId: $billingAccountId
|
|
1026
|
+
page: $page
|
|
1027
|
+
pageSize: $pageSize
|
|
1028
|
+
) {
|
|
1029
|
+
invoices {
|
|
1030
|
+
...InvoiceWithItemsFields
|
|
1031
|
+
}
|
|
1032
|
+
totalCount
|
|
1033
|
+
hasMore
|
|
1034
|
+
page
|
|
1035
|
+
pageSize
|
|
1036
|
+
totalPages
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
${l}`, t`
|
|
1040
|
+
query GetPayment($id: ID!, $billingAccountId: ID!) {
|
|
1041
|
+
getPayment(id: $id, billingAccountId: $billingAccountId) {
|
|
1042
|
+
...PaymentFields
|
|
1043
|
+
invoice {
|
|
1044
|
+
id
|
|
1045
|
+
invoiceNumber
|
|
1046
|
+
total
|
|
1047
|
+
items {
|
|
1048
|
+
...InvoiceItemFields
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
${u}
|
|
1054
|
+
${c}`, t`
|
|
1055
|
+
query GetPaymentMethods($billingAccountId: ID!) {
|
|
1056
|
+
getPaymentMethods(billingAccountId: $billingAccountId) {
|
|
1057
|
+
...PaymentMethodFields
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
${d}`, t`
|
|
1061
|
+
query GetPayments($status: PaymentStatus) {
|
|
1062
|
+
getPayments(status: $status) {
|
|
1063
|
+
...PaymentFields
|
|
1064
|
+
invoice {
|
|
1065
|
+
id
|
|
1066
|
+
invoiceNumber
|
|
1067
|
+
total
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
${u}`;
|
|
1072
|
+
var Ce = t`
|
|
1073
|
+
query GetPendingRefunds($page: Int, $pageSize: Int) {
|
|
1074
|
+
getPendingRefunds(page: $page, pageSize: $pageSize) {
|
|
1075
|
+
records {
|
|
1076
|
+
...RefundRecordFields
|
|
1077
|
+
}
|
|
1078
|
+
totalCount
|
|
1079
|
+
hasMore
|
|
1080
|
+
page
|
|
1081
|
+
pageSize
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
${f}`;
|
|
1085
|
+
t`
|
|
1086
|
+
query GetRefundRecord($id: ID!) {
|
|
1087
|
+
getRefundRecord(id: $id) {
|
|
1088
|
+
...RefundRecordWithRelationsFields
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
${ee}`;
|
|
1092
|
+
var U = t`
|
|
1093
|
+
query GetRefundRecords($status: RefundRecordStatus, $source: RefundSource, $provider: String, $orgIdFilter: String, $billingAccountId: String, $fromDate: DateTime, $toDate: DateTime, $page: Int, $pageSize: Int) {
|
|
1094
|
+
getRefundRecords(
|
|
1095
|
+
status: $status
|
|
1096
|
+
source: $source
|
|
1097
|
+
provider: $provider
|
|
1098
|
+
orgIdFilter: $orgIdFilter
|
|
1099
|
+
billingAccountId: $billingAccountId
|
|
1100
|
+
fromDate: $fromDate
|
|
1101
|
+
toDate: $toDate
|
|
1102
|
+
page: $page
|
|
1103
|
+
pageSize: $pageSize
|
|
1104
|
+
) {
|
|
1105
|
+
records {
|
|
1106
|
+
...RefundRecordFields
|
|
1107
|
+
}
|
|
1108
|
+
totalCount
|
|
1109
|
+
hasMore
|
|
1110
|
+
page
|
|
1111
|
+
pageSize
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
${f}`;
|
|
1115
|
+
function we(t) {
|
|
1116
|
+
let r = {
|
|
1117
|
+
...n,
|
|
1118
|
+
...t
|
|
1119
|
+
};
|
|
1120
|
+
return e.useQuery(U, r);
|
|
1121
|
+
}
|
|
1122
|
+
var W = t`
|
|
1123
|
+
query GetRefundStats {
|
|
1124
|
+
getRefundStats {
|
|
1125
|
+
pending
|
|
1126
|
+
processing
|
|
1127
|
+
completed
|
|
1128
|
+
failed
|
|
1129
|
+
skipped
|
|
1130
|
+
totalPendingAmount
|
|
1131
|
+
totalCompletedAmount
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
`;
|
|
1135
|
+
function Te(t) {
|
|
1136
|
+
let r = {
|
|
1137
|
+
...n,
|
|
1138
|
+
...t
|
|
1139
|
+
};
|
|
1140
|
+
return e.useQuery(W, r);
|
|
1141
|
+
}
|
|
1142
|
+
var Ee = t`
|
|
1143
|
+
query GetTransaction($id: ID!, $billingAccountId: ID!) {
|
|
1144
|
+
getTransaction(id: $id, billingAccountId: $billingAccountId) {
|
|
1145
|
+
id
|
|
1146
|
+
billingAccountId
|
|
1147
|
+
amount
|
|
1148
|
+
currency
|
|
1149
|
+
status
|
|
1150
|
+
type
|
|
1151
|
+
description
|
|
1152
|
+
razorpayPaymentId
|
|
1153
|
+
stripePaymentId
|
|
1154
|
+
metadata
|
|
1155
|
+
createdAt
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
`, De = t`
|
|
1159
|
+
query GetTransactionsByBillingAccount($billingAccountId: ID!, $limit: Int, $offset: Int) {
|
|
1160
|
+
getTransactionsByBillingAccount(
|
|
1161
|
+
billingAccountId: $billingAccountId
|
|
1162
|
+
limit: $limit
|
|
1163
|
+
offset: $offset
|
|
1164
|
+
) {
|
|
1165
|
+
id
|
|
1166
|
+
name
|
|
1167
|
+
email
|
|
1168
|
+
billingEmail
|
|
1169
|
+
currency
|
|
1170
|
+
creditAmount
|
|
1171
|
+
isActive
|
|
1172
|
+
taxId
|
|
1173
|
+
createdAt
|
|
1174
|
+
transactions {
|
|
1175
|
+
id
|
|
1176
|
+
billingAccountId
|
|
1177
|
+
amount
|
|
1178
|
+
currency
|
|
1179
|
+
status
|
|
1180
|
+
type
|
|
1181
|
+
description
|
|
1182
|
+
razorpayPaymentId
|
|
1183
|
+
stripePaymentId
|
|
1184
|
+
metadata
|
|
1185
|
+
createdAt
|
|
1186
|
+
updatedAt
|
|
1187
|
+
}
|
|
1188
|
+
totalCount
|
|
1189
|
+
hasMore
|
|
1190
|
+
page
|
|
1191
|
+
pageSize
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
`;
|
|
1195
|
+
function Oe(t) {
|
|
1196
|
+
let r = {
|
|
1197
|
+
...n,
|
|
1198
|
+
...t
|
|
1199
|
+
};
|
|
1200
|
+
return e.useQuery(De, r);
|
|
1201
|
+
}
|
|
1202
|
+
var G = t`
|
|
1203
|
+
query GetUnprocessedFailedWebhooks {
|
|
1204
|
+
getUnprocessedFailedWebhooks {
|
|
1205
|
+
id
|
|
1206
|
+
event
|
|
1207
|
+
provider
|
|
1208
|
+
payload
|
|
1209
|
+
processed
|
|
1210
|
+
error
|
|
1211
|
+
createdAt
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
`;
|
|
1215
|
+
function ke(t) {
|
|
1216
|
+
let r = {
|
|
1217
|
+
...n,
|
|
1218
|
+
...t
|
|
1219
|
+
};
|
|
1220
|
+
return e.useQuery(G, r);
|
|
1221
|
+
}
|
|
1222
|
+
var Ae = t`
|
|
1223
|
+
mutation InitiatePaymentCheckout($input: InitiatePaymentInput!) {
|
|
1224
|
+
initiatePayment(input: $input) {
|
|
1225
|
+
success
|
|
1226
|
+
provider
|
|
1227
|
+
paymentId
|
|
1228
|
+
clientSecret
|
|
1229
|
+
orderId
|
|
1230
|
+
razorpayKeyId
|
|
1231
|
+
razorpayCustomerId
|
|
1232
|
+
subtotal
|
|
1233
|
+
taxAmount
|
|
1234
|
+
taxRate
|
|
1235
|
+
total
|
|
1236
|
+
taxType
|
|
1237
|
+
jurisdiction
|
|
1238
|
+
taxBreakdown
|
|
1239
|
+
currency
|
|
1240
|
+
requiresAction
|
|
1241
|
+
paymentComplete
|
|
1242
|
+
prefillName
|
|
1243
|
+
prefillEmail
|
|
1244
|
+
prefillContact
|
|
1245
|
+
error
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
`;
|
|
1249
|
+
function je(t) {
|
|
1250
|
+
let r = {
|
|
1251
|
+
...n,
|
|
1252
|
+
...t
|
|
1253
|
+
};
|
|
1254
|
+
return e.useMutation(Ae, r);
|
|
1255
|
+
}
|
|
1256
|
+
var Me = t`
|
|
1257
|
+
mutation SpendCreditsCheckout($input: SpendCreditsInput!) {
|
|
1258
|
+
spendCredits(input: $input) {
|
|
1259
|
+
creditTransactionID
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
`;
|
|
1263
|
+
function Ne(t) {
|
|
1264
|
+
let r = {
|
|
1265
|
+
...n,
|
|
1266
|
+
...t
|
|
1267
|
+
};
|
|
1268
|
+
return e.useMutation(Me, r);
|
|
1269
|
+
}
|
|
1270
|
+
t`
|
|
1271
|
+
query CalculateTax($input: CalculateTaxInput!) {
|
|
1272
|
+
calculateTax(input: $input) {
|
|
1273
|
+
subtotal
|
|
1274
|
+
taxAmount
|
|
1275
|
+
taxRate
|
|
1276
|
+
total
|
|
1277
|
+
taxType
|
|
1278
|
+
jurisdiction
|
|
1279
|
+
taxBreakdown
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
`;
|
|
1283
|
+
var Pe = t`
|
|
1284
|
+
query ConvertCurrency($amount: Float!, $toCurrency: String!, $fromCurrency: String) {
|
|
1285
|
+
convertCurrency(
|
|
1286
|
+
amount: $amount
|
|
1287
|
+
toCurrency: $toCurrency
|
|
1288
|
+
fromCurrency: $fromCurrency
|
|
1289
|
+
) {
|
|
1290
|
+
amount
|
|
1291
|
+
fromCurrency
|
|
1292
|
+
toCurrency
|
|
1293
|
+
exchangeRate
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
`;
|
|
1297
|
+
function Fe(t) {
|
|
1298
|
+
let r = {
|
|
1299
|
+
...n,
|
|
1300
|
+
...t
|
|
1301
|
+
};
|
|
1302
|
+
return e.useLazyQuery(Pe, r);
|
|
1303
|
+
}
|
|
1304
|
+
var Ie = t`
|
|
1305
|
+
query GetActiveSubscriptionsCheckout($billingAccountId: ID!) {
|
|
1306
|
+
getActiveSubscriptions(billingAccountId: $billingAccountId) {
|
|
1307
|
+
id
|
|
1308
|
+
billingAccountId
|
|
1309
|
+
planId
|
|
1310
|
+
status
|
|
1311
|
+
startDate
|
|
1312
|
+
endDate
|
|
1313
|
+
autoRenewal
|
|
1314
|
+
recurrence
|
|
1315
|
+
nextBillingDate
|
|
1316
|
+
paymentGateway
|
|
1317
|
+
createdAt
|
|
1318
|
+
plan {
|
|
1319
|
+
id
|
|
1320
|
+
name
|
|
1321
|
+
price
|
|
1322
|
+
currency
|
|
1323
|
+
duration
|
|
1324
|
+
isActive
|
|
1325
|
+
productID
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
`;
|
|
1330
|
+
function Le(t) {
|
|
1331
|
+
let r = {
|
|
1332
|
+
...n,
|
|
1333
|
+
...t
|
|
1334
|
+
};
|
|
1335
|
+
return e.useQuery(Ie, r);
|
|
1336
|
+
}
|
|
1337
|
+
var Re = t`
|
|
1338
|
+
query GetSelectedAddonCheckout($addonIDs: [String!]!) {
|
|
1339
|
+
getSelectedAddons(addonIDs: $addonIDs) {
|
|
1340
|
+
id
|
|
1341
|
+
name
|
|
1342
|
+
price
|
|
1343
|
+
currency
|
|
1344
|
+
currencyPrices
|
|
1345
|
+
duration
|
|
1346
|
+
isActive
|
|
1347
|
+
context
|
|
1348
|
+
features {
|
|
1349
|
+
id
|
|
1350
|
+
quotaId
|
|
1351
|
+
quota {
|
|
1352
|
+
id
|
|
1353
|
+
name
|
|
1354
|
+
limits
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
`;
|
|
1360
|
+
function ze(t) {
|
|
1361
|
+
let r = {
|
|
1362
|
+
...n,
|
|
1363
|
+
...t
|
|
1364
|
+
};
|
|
1365
|
+
return e.useQuery(Re, r);
|
|
1366
|
+
}
|
|
1367
|
+
var Be = t`
|
|
1368
|
+
query GetBillingAccountsCheckout {
|
|
1369
|
+
getBillingAccountsByOrg {
|
|
1370
|
+
id
|
|
1371
|
+
name
|
|
1372
|
+
email
|
|
1373
|
+
currency
|
|
1374
|
+
creditAmount
|
|
1375
|
+
isActive
|
|
1376
|
+
billingAddresses {
|
|
1377
|
+
id
|
|
1378
|
+
country
|
|
1379
|
+
state
|
|
1380
|
+
city
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
`;
|
|
1385
|
+
function Ve(t) {
|
|
1386
|
+
let r = {
|
|
1387
|
+
...n,
|
|
1388
|
+
...t
|
|
1389
|
+
};
|
|
1390
|
+
return e.useQuery(Be, r);
|
|
1391
|
+
}
|
|
1392
|
+
var He = t`
|
|
1393
|
+
query GetCostOfCreditsCheckout($creditAmount: Float!, $currency: String!) {
|
|
1394
|
+
getCostOfCredits(creditAmount: $creditAmount, currency: $currency) {
|
|
1395
|
+
amount
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
`;
|
|
1399
|
+
function Ue(t) {
|
|
1400
|
+
let r = {
|
|
1401
|
+
...n,
|
|
1402
|
+
...t
|
|
1403
|
+
};
|
|
1404
|
+
return e.useQuery(He, r);
|
|
1405
|
+
}
|
|
1406
|
+
var We = t`
|
|
1407
|
+
query GetCreditTransactionStatus($creditTransactionID: ID!, $billingAccountId: ID!) {
|
|
1408
|
+
getCreditTransactionDetails(
|
|
1409
|
+
creditTransactionID: $creditTransactionID
|
|
1410
|
+
billingAccountId: $billingAccountId
|
|
1411
|
+
) {
|
|
1412
|
+
id
|
|
1413
|
+
status
|
|
1414
|
+
type
|
|
1415
|
+
amount
|
|
1416
|
+
billingAccountId
|
|
1417
|
+
transactionId
|
|
1418
|
+
productId
|
|
1419
|
+
entityId
|
|
1420
|
+
entityType
|
|
1421
|
+
createdAt
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
`;
|
|
1425
|
+
function Ge(t) {
|
|
1426
|
+
let r = {
|
|
1427
|
+
...n,
|
|
1428
|
+
...t
|
|
1429
|
+
};
|
|
1430
|
+
return e.useLazyQuery(We, r);
|
|
1431
|
+
}
|
|
1432
|
+
var Ke = t`
|
|
1433
|
+
query GetDefaultBillingAccountCheckout {
|
|
1434
|
+
getDefaultBillingAccount {
|
|
1435
|
+
id
|
|
1436
|
+
name
|
|
1437
|
+
email
|
|
1438
|
+
currency
|
|
1439
|
+
creditAmount
|
|
1440
|
+
isActive
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
`;
|
|
1444
|
+
function qe(t) {
|
|
1445
|
+
let r = {
|
|
1446
|
+
...n,
|
|
1447
|
+
...t
|
|
1448
|
+
};
|
|
1449
|
+
return e.useQuery(Ke, r);
|
|
1450
|
+
}
|
|
1451
|
+
t`
|
|
1452
|
+
query GetDiscountByCode($code: String!) {
|
|
1453
|
+
getDiscountByCode(code: $code) {
|
|
1454
|
+
id
|
|
1455
|
+
code
|
|
1456
|
+
type
|
|
1457
|
+
value
|
|
1458
|
+
currency
|
|
1459
|
+
maxUses
|
|
1460
|
+
usedCount
|
|
1461
|
+
validFrom
|
|
1462
|
+
validUntil
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
`;
|
|
1466
|
+
var Je = t`
|
|
1467
|
+
query GetPaymentMethodsCheckout($billingAccountId: ID!) {
|
|
1468
|
+
getPaymentMethods(billingAccountId: $billingAccountId) {
|
|
1469
|
+
id
|
|
1470
|
+
type
|
|
1471
|
+
isDefault
|
|
1472
|
+
last4
|
|
1473
|
+
expiryMonth
|
|
1474
|
+
expiryYear
|
|
1475
|
+
brand
|
|
1476
|
+
stripePaymentMethodId
|
|
1477
|
+
razorpayPaymentMethodId
|
|
1478
|
+
isVerified
|
|
1479
|
+
createdAt
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
`;
|
|
1483
|
+
function Ye(t) {
|
|
1484
|
+
let r = {
|
|
1485
|
+
...n,
|
|
1486
|
+
...t
|
|
1487
|
+
};
|
|
1488
|
+
return e.useQuery(Je, r);
|
|
1489
|
+
}
|
|
1490
|
+
var Xe = t`
|
|
1491
|
+
query GetPaymentProviderConfigCheckout {
|
|
1492
|
+
getPaymentProviderConfig {
|
|
1493
|
+
stripeEnabled
|
|
1494
|
+
stripePublishableKey
|
|
1495
|
+
razorpayEnabled
|
|
1496
|
+
razorpayKeyId
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
`;
|
|
1500
|
+
function Ze(t) {
|
|
1501
|
+
let r = {
|
|
1502
|
+
...n,
|
|
1503
|
+
...t
|
|
1504
|
+
};
|
|
1505
|
+
return e.useQuery(Xe, r);
|
|
1506
|
+
}
|
|
1507
|
+
var Qe = t`
|
|
1508
|
+
query GetPaymentStatus($id: ID!, $billingAccountId: ID!) {
|
|
1509
|
+
getPayment(id: $id, billingAccountId: $billingAccountId) {
|
|
1510
|
+
id
|
|
1511
|
+
status
|
|
1512
|
+
amount
|
|
1513
|
+
currency
|
|
1514
|
+
paidAt
|
|
1515
|
+
failureReason
|
|
1516
|
+
transactionId
|
|
1517
|
+
gatewayPaymentId
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
`;
|
|
1521
|
+
function $e(t) {
|
|
1522
|
+
let r = {
|
|
1523
|
+
...n,
|
|
1524
|
+
...t
|
|
1525
|
+
};
|
|
1526
|
+
return e.useLazyQuery(Qe, r);
|
|
1527
|
+
}
|
|
1528
|
+
var et = t`
|
|
1529
|
+
query GetPlanCheckout($id: ID!) {
|
|
1530
|
+
getPlan(id: $id) {
|
|
1531
|
+
id
|
|
1532
|
+
name
|
|
1533
|
+
price
|
|
1534
|
+
currency
|
|
1535
|
+
currencyPrices
|
|
1536
|
+
duration
|
|
1537
|
+
isActive
|
|
1538
|
+
context
|
|
1539
|
+
features {
|
|
1540
|
+
id
|
|
1541
|
+
quotaId
|
|
1542
|
+
quota {
|
|
1543
|
+
id
|
|
1544
|
+
name
|
|
1545
|
+
limits
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
`;
|
|
1551
|
+
function tt(t) {
|
|
1552
|
+
let r = {
|
|
1553
|
+
...n,
|
|
1554
|
+
...t
|
|
1555
|
+
};
|
|
1556
|
+
return e.useQuery(et, r);
|
|
1557
|
+
}
|
|
1558
|
+
var nt = t`
|
|
1559
|
+
query GetStoreOrderCheckout($id: ID!) {
|
|
1560
|
+
getStoreOrder(id: $id) {
|
|
1561
|
+
id
|
|
1562
|
+
billingAccountId
|
|
1563
|
+
billingOrderId
|
|
1564
|
+
currency
|
|
1565
|
+
status
|
|
1566
|
+
transactionId
|
|
1567
|
+
total
|
|
1568
|
+
lineItems
|
|
1569
|
+
appliedEntitlementId
|
|
1570
|
+
purchasedAt
|
|
1571
|
+
processedAt
|
|
1572
|
+
createdAt
|
|
1573
|
+
updatedAt
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
`;
|
|
1577
|
+
function rt(t) {
|
|
1578
|
+
let r = {
|
|
1579
|
+
...n,
|
|
1580
|
+
...t
|
|
1581
|
+
};
|
|
1582
|
+
return e.useQuery(nt, r);
|
|
1583
|
+
}
|
|
1584
|
+
var it = t`
|
|
1585
|
+
mutation CreateCoupon($input: CreateCouponInput!) {
|
|
1586
|
+
createCoupon(input: $input) {
|
|
1587
|
+
id
|
|
1588
|
+
code
|
|
1589
|
+
name
|
|
1590
|
+
description
|
|
1591
|
+
scope
|
|
1592
|
+
status
|
|
1593
|
+
type
|
|
1594
|
+
value
|
|
1595
|
+
currency
|
|
1596
|
+
minPurchaseAmount
|
|
1597
|
+
maxDiscountAmount
|
|
1598
|
+
maxTotalUses
|
|
1599
|
+
maxUsesPerUser
|
|
1600
|
+
currentUses
|
|
1601
|
+
validFrom
|
|
1602
|
+
validUntil
|
|
1603
|
+
restrictedToUserIds
|
|
1604
|
+
applicableProducts
|
|
1605
|
+
applicableServices
|
|
1606
|
+
excludedProducts
|
|
1607
|
+
excludedServices
|
|
1608
|
+
campaignName
|
|
1609
|
+
createdAt
|
|
1610
|
+
updatedAt
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
`;
|
|
1614
|
+
function at(t) {
|
|
1615
|
+
let r = {
|
|
1616
|
+
...n,
|
|
1617
|
+
...t
|
|
1618
|
+
};
|
|
1619
|
+
return e.useMutation(it, r);
|
|
1620
|
+
}
|
|
1621
|
+
var ot = t`
|
|
1622
|
+
mutation DeactivateCoupon($id: ID!) {
|
|
1623
|
+
deactivateCoupon(id: $id) {
|
|
1624
|
+
...CouponFields
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
${y}`;
|
|
1628
|
+
function st(t) {
|
|
1629
|
+
let r = {
|
|
1630
|
+
...n,
|
|
1631
|
+
...t
|
|
1632
|
+
};
|
|
1633
|
+
return e.useMutation(ot, r);
|
|
1634
|
+
}
|
|
1635
|
+
var ct = t`
|
|
1636
|
+
mutation UpdateCoupon($id: ID!, $input: UpdateCouponInput!) {
|
|
1637
|
+
updateCoupon(id: $id, input: $input) {
|
|
1638
|
+
...CouponFields
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
${y}`;
|
|
1642
|
+
function lt(t) {
|
|
1643
|
+
let r = {
|
|
1644
|
+
...n,
|
|
1645
|
+
...t
|
|
1646
|
+
};
|
|
1647
|
+
return e.useMutation(ct, r);
|
|
1648
|
+
}
|
|
1649
|
+
var ut = t`
|
|
1650
|
+
query GetCoupon($id: ID!) {
|
|
1651
|
+
getCoupon(id: $id) {
|
|
1652
|
+
...CouponFields
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
${y}`;
|
|
1656
|
+
function dt(t) {
|
|
1657
|
+
let r = {
|
|
1658
|
+
...n,
|
|
1659
|
+
...t
|
|
1660
|
+
};
|
|
1661
|
+
return e.useLazyQuery(ut, r);
|
|
1662
|
+
}
|
|
1663
|
+
var ft = t`
|
|
1664
|
+
query GetCouponUsageHistory($couponId: ID, $userId: String, $limit: Int, $offset: Int) {
|
|
1665
|
+
getCouponUsageHistory(
|
|
1666
|
+
couponId: $couponId
|
|
1667
|
+
userId: $userId
|
|
1668
|
+
limit: $limit
|
|
1669
|
+
offset: $offset
|
|
1670
|
+
) {
|
|
1671
|
+
usages {
|
|
1672
|
+
id
|
|
1673
|
+
userId
|
|
1674
|
+
orderId
|
|
1675
|
+
transactionId
|
|
1676
|
+
discountType
|
|
1677
|
+
discountValue
|
|
1678
|
+
originalAmount
|
|
1679
|
+
finalAmount
|
|
1680
|
+
currency
|
|
1681
|
+
usedAt
|
|
1682
|
+
}
|
|
1683
|
+
total
|
|
1684
|
+
hasMore
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
`;
|
|
1688
|
+
function pt(t) {
|
|
1689
|
+
let r = {
|
|
1690
|
+
...n,
|
|
1691
|
+
...t
|
|
1692
|
+
};
|
|
1693
|
+
return e.useQuery(ft, r);
|
|
1694
|
+
}
|
|
1695
|
+
var mt = t`
|
|
1696
|
+
query ListCoupons($filter: CouponFilterInput, $limit: Int, $offset: Int) {
|
|
1697
|
+
listCoupons(filter: $filter, limit: $limit, offset: $offset) {
|
|
1698
|
+
coupons {
|
|
1699
|
+
id
|
|
1700
|
+
code
|
|
1701
|
+
name
|
|
1702
|
+
description
|
|
1703
|
+
scope
|
|
1704
|
+
status
|
|
1705
|
+
type
|
|
1706
|
+
value
|
|
1707
|
+
currency
|
|
1708
|
+
minPurchaseAmount
|
|
1709
|
+
maxDiscountAmount
|
|
1710
|
+
maxTotalUses
|
|
1711
|
+
maxUsesPerUser
|
|
1712
|
+
currentUses
|
|
1713
|
+
validFrom
|
|
1714
|
+
validUntil
|
|
1715
|
+
campaignName
|
|
1716
|
+
createdAt
|
|
1717
|
+
updatedAt
|
|
1718
|
+
}
|
|
1719
|
+
hasMore
|
|
1720
|
+
total
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
`;
|
|
1724
|
+
function ht(t) {
|
|
1725
|
+
let r = {
|
|
1726
|
+
...n,
|
|
1727
|
+
...t
|
|
1728
|
+
};
|
|
1729
|
+
return e.useQuery(mt, r);
|
|
1730
|
+
}
|
|
1731
|
+
var gt = t`
|
|
1732
|
+
query ValidateCoupon($input: ValidateCouponInput!) {
|
|
1733
|
+
validateCoupon(input: $input) {
|
|
1734
|
+
valid
|
|
1735
|
+
coupon {
|
|
1736
|
+
id
|
|
1737
|
+
code
|
|
1738
|
+
name
|
|
1739
|
+
description
|
|
1740
|
+
type
|
|
1741
|
+
value
|
|
1742
|
+
minPurchaseAmount
|
|
1743
|
+
maxDiscountAmount
|
|
1744
|
+
}
|
|
1745
|
+
discountAmount
|
|
1746
|
+
error
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
`;
|
|
1750
|
+
function _t(t) {
|
|
1751
|
+
let r = {
|
|
1752
|
+
...n,
|
|
1753
|
+
...t
|
|
1754
|
+
};
|
|
1755
|
+
return e.useLazyQuery(gt, r);
|
|
1756
|
+
}
|
|
1757
|
+
var vt = t`
|
|
1758
|
+
mutation CreateCreditNote($billingAccountId: ID!, $amount: Float!, $reason: String, $invoiceId: String, $currency: String, $metadata: JSON) {
|
|
1759
|
+
createCreditNote(
|
|
1760
|
+
billingAccountId: $billingAccountId
|
|
1761
|
+
amount: $amount
|
|
1762
|
+
reason: $reason
|
|
1763
|
+
invoiceId: $invoiceId
|
|
1764
|
+
currency: $currency
|
|
1765
|
+
metadata: $metadata
|
|
1766
|
+
) {
|
|
1767
|
+
...CreditNoteFields
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
${p}`;
|
|
1771
|
+
function yt(t) {
|
|
1772
|
+
let r = {
|
|
1773
|
+
...n,
|
|
1774
|
+
...t
|
|
1775
|
+
};
|
|
1776
|
+
return e.useMutation(vt, r);
|
|
1777
|
+
}
|
|
1778
|
+
var bt = t`
|
|
1779
|
+
mutation GrantCredits($input: GrantCreditsInput!) {
|
|
1780
|
+
grantCredits(input: $input) {
|
|
1781
|
+
id
|
|
1782
|
+
amount
|
|
1783
|
+
status
|
|
1784
|
+
type
|
|
1785
|
+
billingAccountId
|
|
1786
|
+
productId
|
|
1787
|
+
entityType
|
|
1788
|
+
context
|
|
1789
|
+
createdAt
|
|
1790
|
+
updatedAt
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
`, xt = t`
|
|
1794
|
+
mutation RequestCreditWithdrawal($input: RequestCreditWithdrawalInput!) {
|
|
1795
|
+
requestCreditWithdrawal(input: $input) {
|
|
1796
|
+
id
|
|
1797
|
+
status
|
|
1798
|
+
requestedAmount
|
|
1799
|
+
currency
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
`, St = t`
|
|
1803
|
+
query CreditWithdrawalHistory($billingAccountId: ID!) {
|
|
1804
|
+
myPayoutRequests(billingAccountId: $billingAccountId, limit: 20, offset: 0) {
|
|
1805
|
+
items {
|
|
1806
|
+
id
|
|
1807
|
+
requestedAmount
|
|
1808
|
+
approvedAmount
|
|
1809
|
+
currency
|
|
1810
|
+
provider
|
|
1811
|
+
status
|
|
1812
|
+
externalReference
|
|
1813
|
+
failureReason
|
|
1814
|
+
userNotes
|
|
1815
|
+
createdAt
|
|
1816
|
+
processedAt
|
|
1817
|
+
paidAt
|
|
1818
|
+
payoutAccount {
|
|
1819
|
+
id
|
|
1820
|
+
label
|
|
1821
|
+
type
|
|
1822
|
+
displayName
|
|
1823
|
+
accountLast4
|
|
1824
|
+
currency
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
`, Ct = t`
|
|
1830
|
+
query GetBillingAccountCreditTransactions($billingAccountID: ID!, $days: Int!, $page: Int, $pageSize: Int) {
|
|
1831
|
+
getBillingAccountCreditTransactions(
|
|
1832
|
+
billingAccountID: $billingAccountID
|
|
1833
|
+
days: $days
|
|
1834
|
+
page: $page
|
|
1835
|
+
pageSize: $pageSize
|
|
1836
|
+
) {
|
|
1837
|
+
creditTransactions {
|
|
1838
|
+
...CreditTransactionFields
|
|
1839
|
+
billingAccount {
|
|
1840
|
+
id
|
|
1841
|
+
name
|
|
1842
|
+
email
|
|
1843
|
+
}
|
|
1844
|
+
transaction {
|
|
1845
|
+
id
|
|
1846
|
+
amount
|
|
1847
|
+
currency
|
|
1848
|
+
type
|
|
1849
|
+
status
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
page
|
|
1853
|
+
pageSize
|
|
1854
|
+
totalCount
|
|
1855
|
+
hasMore
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
${m}`;
|
|
1859
|
+
function wt(t) {
|
|
1860
|
+
let r = {
|
|
1861
|
+
...n,
|
|
1862
|
+
...t
|
|
1863
|
+
};
|
|
1864
|
+
return e.useQuery(Ct, r);
|
|
1865
|
+
}
|
|
1866
|
+
t`
|
|
1867
|
+
query GetCostOfCredits($creditAmount: Float!, $currency: String!) {
|
|
1868
|
+
getCostOfCredits(creditAmount: $creditAmount, currency: $currency) {
|
|
1869
|
+
amount
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
`;
|
|
1873
|
+
var Tt = t`
|
|
1874
|
+
query GetCreditBalanceByType($billingAccountId: ID!) {
|
|
1875
|
+
getCreditBalanceByType(billingAccountId: $billingAccountId) {
|
|
1876
|
+
purchased
|
|
1877
|
+
earned
|
|
1878
|
+
granted
|
|
1879
|
+
withdrawable
|
|
1880
|
+
total
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
`, Et = t`
|
|
1884
|
+
query GetCreditNotes {
|
|
1885
|
+
getCreditNotes {
|
|
1886
|
+
...CreditNoteFields
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
${p}`;
|
|
1890
|
+
t`
|
|
1891
|
+
query GetCreditTransactionDetails($creditTransactionID: ID!, $billingAccountId: ID!) {
|
|
1892
|
+
getCreditTransactionDetails(
|
|
1893
|
+
creditTransactionID: $creditTransactionID
|
|
1894
|
+
billingAccountId: $billingAccountId
|
|
1895
|
+
) {
|
|
1896
|
+
...CreditTransactionFields
|
|
1897
|
+
billingAccount {
|
|
1898
|
+
id
|
|
1899
|
+
name
|
|
1900
|
+
email
|
|
1901
|
+
creditAmount
|
|
1902
|
+
currency
|
|
1903
|
+
}
|
|
1904
|
+
transaction {
|
|
1905
|
+
id
|
|
1906
|
+
amount
|
|
1907
|
+
currency
|
|
1908
|
+
type
|
|
1909
|
+
status
|
|
1910
|
+
description
|
|
1911
|
+
createdAt
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
${m}`;
|
|
1916
|
+
var Dt = t`
|
|
1917
|
+
mutation AddPaymentMethodDashboard($input: CreatePaymentMethodInput!) {
|
|
1918
|
+
addPaymentMethod(input: $input) {
|
|
1919
|
+
...DashboardPaymentMethodFields
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
${v}`;
|
|
1923
|
+
function Ot(t) {
|
|
1924
|
+
let r = {
|
|
1925
|
+
...n,
|
|
1926
|
+
...t
|
|
1927
|
+
};
|
|
1928
|
+
return e.useMutation(Dt, r);
|
|
1929
|
+
}
|
|
1930
|
+
var kt = t`
|
|
1931
|
+
mutation CreateBillingAccount($input: CreateBillingAccountInput!) {
|
|
1932
|
+
createBillingAccount(input: $input) {
|
|
1933
|
+
...BillingAccountFields
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
${g}`;
|
|
1937
|
+
function At(t) {
|
|
1938
|
+
let r = {
|
|
1939
|
+
...n,
|
|
1940
|
+
...t
|
|
1941
|
+
};
|
|
1942
|
+
return e.useMutation(kt, r);
|
|
1943
|
+
}
|
|
1944
|
+
var jt = t`
|
|
1945
|
+
mutation DeletePaymentMethodDashboard($id: ID!, $billingAccountId: ID!) {
|
|
1946
|
+
deletePaymentMethod(id: $id, billingAccountId: $billingAccountId)
|
|
1947
|
+
}
|
|
1948
|
+
`;
|
|
1949
|
+
function Mt(t) {
|
|
1950
|
+
let r = {
|
|
1951
|
+
...n,
|
|
1952
|
+
...t
|
|
1953
|
+
};
|
|
1954
|
+
return e.useMutation(jt, r);
|
|
1955
|
+
}
|
|
1956
|
+
var Nt = t`
|
|
1957
|
+
mutation InitiatePayment($input: InitiatePaymentInput!) {
|
|
1958
|
+
initiatePayment(input: $input) {
|
|
1959
|
+
success
|
|
1960
|
+
provider
|
|
1961
|
+
clientSecret
|
|
1962
|
+
orderId
|
|
1963
|
+
razorpayKeyId
|
|
1964
|
+
subtotal
|
|
1965
|
+
taxAmount
|
|
1966
|
+
taxRate
|
|
1967
|
+
taxType
|
|
1968
|
+
taxBreakdown
|
|
1969
|
+
jurisdiction
|
|
1970
|
+
total
|
|
1971
|
+
currency
|
|
1972
|
+
error
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
`;
|
|
1976
|
+
function Pt(t) {
|
|
1977
|
+
let r = {
|
|
1978
|
+
...n,
|
|
1979
|
+
...t
|
|
1980
|
+
};
|
|
1981
|
+
return e.useMutation(Nt, r);
|
|
1982
|
+
}
|
|
1983
|
+
var Ft = t`
|
|
1984
|
+
mutation SetBillingAddress($input: SetBillingAddressInput!) {
|
|
1985
|
+
setBillingAddress(input: $input) {
|
|
1986
|
+
...BillingAddressFields
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
${_}`;
|
|
1990
|
+
function It(t) {
|
|
1991
|
+
let r = {
|
|
1992
|
+
...n,
|
|
1993
|
+
...t
|
|
1994
|
+
};
|
|
1995
|
+
return e.useMutation(Ft, r);
|
|
1996
|
+
}
|
|
1997
|
+
var Lt = t`
|
|
1998
|
+
mutation SetDefaultBillingAccount($id: ID!) {
|
|
1999
|
+
setDefaultBillingAccount(id: $id) {
|
|
2000
|
+
...BillingAccountFields
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
${g}`;
|
|
2004
|
+
function Rt(t) {
|
|
2005
|
+
let r = {
|
|
2006
|
+
...n,
|
|
2007
|
+
...t
|
|
2008
|
+
};
|
|
2009
|
+
return e.useMutation(Lt, r);
|
|
2010
|
+
}
|
|
2011
|
+
var zt = t`
|
|
2012
|
+
mutation SpendCredits($input: SpendCreditsInput!) {
|
|
2013
|
+
spendCredits(input: $input) {
|
|
2014
|
+
creditTransactionID
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
`;
|
|
2018
|
+
function Bt(t) {
|
|
2019
|
+
let r = {
|
|
2020
|
+
...n,
|
|
2021
|
+
...t
|
|
2022
|
+
};
|
|
2023
|
+
return e.useMutation(zt, r);
|
|
2024
|
+
}
|
|
2025
|
+
var Vt = t`
|
|
2026
|
+
mutation UpdateBillingAccount($input: UpdateBillingAccountInput!) {
|
|
2027
|
+
updateBillingAccount(input: $input) {
|
|
2028
|
+
...BillingAccountFields
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
${g}`;
|
|
2032
|
+
function Ht(t) {
|
|
2033
|
+
let r = {
|
|
2034
|
+
...n,
|
|
2035
|
+
...t
|
|
2036
|
+
};
|
|
2037
|
+
return e.useMutation(Vt, r);
|
|
2038
|
+
}
|
|
2039
|
+
var Ut = t`
|
|
2040
|
+
mutation UpdatePaymentMethodDashboard($id: ID!, $isDefault: Boolean!, $billingAccountId: ID!) {
|
|
2041
|
+
updatePaymentMethod(
|
|
2042
|
+
id: $id
|
|
2043
|
+
isDefault: $isDefault
|
|
2044
|
+
billingAccountId: $billingAccountId
|
|
2045
|
+
) {
|
|
2046
|
+
...DashboardPaymentMethodFields
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
${v}`;
|
|
2050
|
+
function Wt(t) {
|
|
2051
|
+
let r = {
|
|
2052
|
+
...n,
|
|
2053
|
+
...t
|
|
2054
|
+
};
|
|
2055
|
+
return e.useMutation(Ut, r);
|
|
2056
|
+
}
|
|
2057
|
+
var Gt = t`
|
|
2058
|
+
mutation VerifyPaymentMethod($input: VerifyPaymentMethodInput!) {
|
|
2059
|
+
verifyBillingPaymentMethod(input: $input) {
|
|
2060
|
+
success
|
|
2061
|
+
provider
|
|
2062
|
+
orderId
|
|
2063
|
+
razorpayKeyId
|
|
2064
|
+
razorpayCustomerId
|
|
2065
|
+
clientSecret
|
|
2066
|
+
amount
|
|
2067
|
+
currency
|
|
2068
|
+
prefillName
|
|
2069
|
+
prefillEmail
|
|
2070
|
+
prefillContact
|
|
2071
|
+
error
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
`;
|
|
2075
|
+
function Kt(t) {
|
|
2076
|
+
let r = {
|
|
2077
|
+
...n,
|
|
2078
|
+
...t
|
|
2079
|
+
};
|
|
2080
|
+
return e.useMutation(Gt, r);
|
|
2081
|
+
}
|
|
2082
|
+
t`
|
|
2083
|
+
query GetActiveSubscriptions($billingAccountId: ID!) {
|
|
2084
|
+
getActiveSubscriptions(billingAccountId: $billingAccountId) {
|
|
2085
|
+
...ActiveSubscriptionFields
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
${h}`, t`
|
|
2089
|
+
query GetAvailablePlans {
|
|
2090
|
+
getAllPlans {
|
|
2091
|
+
id
|
|
2092
|
+
productID
|
|
2093
|
+
name
|
|
2094
|
+
price
|
|
2095
|
+
currency
|
|
2096
|
+
duration
|
|
2097
|
+
isActive
|
|
2098
|
+
features {
|
|
2099
|
+
id
|
|
2100
|
+
quota {
|
|
2101
|
+
id
|
|
2102
|
+
name
|
|
2103
|
+
limits
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
`, t`
|
|
2109
|
+
query GetBillingAccountDashboard($id: ID!) {
|
|
2110
|
+
getBillingAccount(id: $id) {
|
|
2111
|
+
...BillingAccountFields
|
|
2112
|
+
paymentMethods {
|
|
2113
|
+
...DashboardPaymentMethodFields
|
|
2114
|
+
}
|
|
2115
|
+
billingAddresses {
|
|
2116
|
+
...BillingAddressFields
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
${g}
|
|
2121
|
+
${v}
|
|
2122
|
+
${_}`;
|
|
2123
|
+
var K = t`
|
|
2124
|
+
query GetBillingAccountsByOrg {
|
|
2125
|
+
getBillingAccountsByOrg {
|
|
2126
|
+
...BillingAccountFields
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
${g}`;
|
|
2130
|
+
function qt(t) {
|
|
2131
|
+
let r = {
|
|
2132
|
+
...n,
|
|
2133
|
+
...t
|
|
2134
|
+
};
|
|
2135
|
+
return e.useQuery(K, r);
|
|
2136
|
+
}
|
|
2137
|
+
var Jt = t`
|
|
2138
|
+
query GetBillingAddress($billingAccountId: ID!) {
|
|
2139
|
+
getBillingAddress(billingAccountId: $billingAccountId) {
|
|
2140
|
+
...BillingAddressFields
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
${_}`, Yt = t`
|
|
2144
|
+
query GetBillingOverview($addonsFilter: AddonsFilter) {
|
|
2145
|
+
getBillingAccountsByOrg {
|
|
2146
|
+
...BillingAccountFields
|
|
2147
|
+
}
|
|
2148
|
+
getDefaultBillingAccount {
|
|
2149
|
+
...BillingAccountFields
|
|
2150
|
+
paymentMethods {
|
|
2151
|
+
...DashboardPaymentMethodFields
|
|
2152
|
+
}
|
|
2153
|
+
billingAddresses {
|
|
2154
|
+
...BillingAddressFields
|
|
2155
|
+
}
|
|
2156
|
+
subscriptions {
|
|
2157
|
+
...ActiveSubscriptionFields
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
getAllAddOns(filter: $addonsFilter, limit: 3) {
|
|
2161
|
+
id
|
|
2162
|
+
productID
|
|
2163
|
+
name
|
|
2164
|
+
price
|
|
2165
|
+
currency
|
|
2166
|
+
duration
|
|
2167
|
+
isActive
|
|
2168
|
+
features {
|
|
2169
|
+
id
|
|
2170
|
+
quota {
|
|
2171
|
+
id
|
|
2172
|
+
name
|
|
2173
|
+
limits
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
${g}
|
|
2179
|
+
${v}
|
|
2180
|
+
${_}
|
|
2181
|
+
${h}`;
|
|
2182
|
+
function Xt(t) {
|
|
2183
|
+
let r = {
|
|
2184
|
+
...n,
|
|
2185
|
+
...t
|
|
2186
|
+
};
|
|
2187
|
+
return e.useQuery(Yt, r);
|
|
2188
|
+
}
|
|
2189
|
+
var Zt = t`
|
|
2190
|
+
query GetBillingOverviewAccount($id: ID!) {
|
|
2191
|
+
getBillingAccount(id: $id) {
|
|
2192
|
+
...BillingAccountFields
|
|
2193
|
+
paymentMethods {
|
|
2194
|
+
...DashboardPaymentMethodFields
|
|
2195
|
+
}
|
|
2196
|
+
billingAddresses {
|
|
2197
|
+
...BillingAddressFields
|
|
2198
|
+
}
|
|
2199
|
+
subscriptions {
|
|
2200
|
+
...ActiveSubscriptionFields
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
${g}
|
|
2205
|
+
${v}
|
|
2206
|
+
${_}
|
|
2207
|
+
${h}`;
|
|
2208
|
+
function Qt(t) {
|
|
2209
|
+
let r = {
|
|
2210
|
+
...n,
|
|
2211
|
+
...t
|
|
2212
|
+
};
|
|
2213
|
+
return e.useQuery(Zt, r);
|
|
2214
|
+
}
|
|
2215
|
+
var $t = t`
|
|
2216
|
+
query GetCreditTransactionsSummary($billingAccountID: ID!, $days: Int!, $page: Int, $pageSize: Int) {
|
|
2217
|
+
getBillingAccountCreditTransactions(
|
|
2218
|
+
billingAccountID: $billingAccountID
|
|
2219
|
+
days: $days
|
|
2220
|
+
page: $page
|
|
2221
|
+
pageSize: $pageSize
|
|
2222
|
+
) {
|
|
2223
|
+
creditTransactions {
|
|
2224
|
+
...CreditTransactionSummaryFields
|
|
2225
|
+
}
|
|
2226
|
+
totalCount
|
|
2227
|
+
hasMore
|
|
2228
|
+
page
|
|
2229
|
+
pageSize
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
${te}`, q = t`
|
|
2233
|
+
query GetDefaultBillingAccountDashboard {
|
|
2234
|
+
getDefaultBillingAccount {
|
|
2235
|
+
...BillingAccountFields
|
|
2236
|
+
paymentMethods {
|
|
2237
|
+
...DashboardPaymentMethodFields
|
|
2238
|
+
}
|
|
2239
|
+
billingAddresses {
|
|
2240
|
+
...BillingAddressFields
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
${g}
|
|
2245
|
+
${v}
|
|
2246
|
+
${_}`;
|
|
2247
|
+
function en(t) {
|
|
2248
|
+
let r = {
|
|
2249
|
+
...n,
|
|
2250
|
+
...t
|
|
2251
|
+
};
|
|
2252
|
+
return e.useQuery(q, r);
|
|
2253
|
+
}
|
|
2254
|
+
t`
|
|
2255
|
+
query GetPaymentMethodsDashboard($billingAccountId: ID!) {
|
|
2256
|
+
getPaymentMethods(billingAccountId: $billingAccountId) {
|
|
2257
|
+
...DashboardPaymentMethodFields
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
${v}`;
|
|
2261
|
+
var tn = t`
|
|
2262
|
+
query GetPaymentProviderConfig {
|
|
2263
|
+
getPaymentProviderConfig {
|
|
2264
|
+
stripeEnabled
|
|
2265
|
+
stripePublishableKey
|
|
2266
|
+
razorpayEnabled
|
|
2267
|
+
razorpayKeyId
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
`;
|
|
2271
|
+
function nn(t) {
|
|
2272
|
+
let r = {
|
|
2273
|
+
...n,
|
|
2274
|
+
...t
|
|
2275
|
+
};
|
|
2276
|
+
return e.useQuery(tn, r);
|
|
2277
|
+
}
|
|
2278
|
+
t`
|
|
2279
|
+
query GetRecommendedAddons($limit: Int) {
|
|
2280
|
+
getAllAddOns(limit: $limit) {
|
|
2281
|
+
id
|
|
2282
|
+
productID
|
|
2283
|
+
name
|
|
2284
|
+
price
|
|
2285
|
+
currency
|
|
2286
|
+
duration
|
|
2287
|
+
isActive
|
|
2288
|
+
features {
|
|
2289
|
+
id
|
|
2290
|
+
quota {
|
|
2291
|
+
id
|
|
2292
|
+
name
|
|
2293
|
+
limits
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
`;
|
|
2299
|
+
var rn = t`
|
|
2300
|
+
mutation CreateDiscount($code: String!, $type: String!, $value: Float!, $currency: String, $maxUses: Int, $validFrom: DateTime!, $validUntil: DateTime, $metadata: JSON) {
|
|
2301
|
+
createDiscount(
|
|
2302
|
+
code: $code
|
|
2303
|
+
type: $type
|
|
2304
|
+
value: $value
|
|
2305
|
+
currency: $currency
|
|
2306
|
+
maxUses: $maxUses
|
|
2307
|
+
validFrom: $validFrom
|
|
2308
|
+
validUntil: $validUntil
|
|
2309
|
+
metadata: $metadata
|
|
2310
|
+
) {
|
|
2311
|
+
id
|
|
2312
|
+
code
|
|
2313
|
+
type
|
|
2314
|
+
value
|
|
2315
|
+
currency
|
|
2316
|
+
maxUses
|
|
2317
|
+
usedCount
|
|
2318
|
+
validFrom
|
|
2319
|
+
validUntil
|
|
2320
|
+
metadata
|
|
2321
|
+
context
|
|
2322
|
+
createdAt
|
|
2323
|
+
updatedAt
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
`;
|
|
2327
|
+
function an(t) {
|
|
2328
|
+
let r = {
|
|
2329
|
+
...n,
|
|
2330
|
+
...t
|
|
2331
|
+
};
|
|
2332
|
+
return e.useMutation(rn, r);
|
|
2333
|
+
}
|
|
2334
|
+
var on = t`
|
|
2335
|
+
mutation DeleteDiscount($id: ID!) {
|
|
2336
|
+
deleteDiscount(id: $id)
|
|
2337
|
+
}
|
|
2338
|
+
`;
|
|
2339
|
+
function sn(t) {
|
|
2340
|
+
let r = {
|
|
2341
|
+
...n,
|
|
2342
|
+
...t
|
|
2343
|
+
};
|
|
2344
|
+
return e.useMutation(on, r);
|
|
2345
|
+
}
|
|
2346
|
+
var cn = t`
|
|
2347
|
+
mutation UpdateDiscount($id: ID!, $maxUses: Int, $validUntil: DateTime) {
|
|
2348
|
+
updateDiscount(id: $id, maxUses: $maxUses, validUntil: $validUntil) {
|
|
2349
|
+
id
|
|
2350
|
+
code
|
|
2351
|
+
type
|
|
2352
|
+
value
|
|
2353
|
+
currency
|
|
2354
|
+
maxUses
|
|
2355
|
+
usedCount
|
|
2356
|
+
validFrom
|
|
2357
|
+
validUntil
|
|
2358
|
+
metadata
|
|
2359
|
+
context
|
|
2360
|
+
createdAt
|
|
2361
|
+
updatedAt
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
`;
|
|
2365
|
+
function ln(t) {
|
|
2366
|
+
let r = {
|
|
2367
|
+
...n,
|
|
2368
|
+
...t
|
|
2369
|
+
};
|
|
2370
|
+
return e.useMutation(cn, r);
|
|
2371
|
+
}
|
|
2372
|
+
var un = t`
|
|
2373
|
+
query GetDiscounts {
|
|
2374
|
+
getDiscounts {
|
|
2375
|
+
id
|
|
2376
|
+
code
|
|
2377
|
+
type
|
|
2378
|
+
value
|
|
2379
|
+
currency
|
|
2380
|
+
maxUses
|
|
2381
|
+
usedCount
|
|
2382
|
+
validFrom
|
|
2383
|
+
validUntil
|
|
2384
|
+
metadata
|
|
2385
|
+
context
|
|
2386
|
+
createdAt
|
|
2387
|
+
updatedAt
|
|
2388
|
+
}
|
|
2389
|
+
}
|
|
2390
|
+
`;
|
|
2391
|
+
function dn(t) {
|
|
2392
|
+
let r = {
|
|
2393
|
+
...n,
|
|
2394
|
+
...t
|
|
2395
|
+
};
|
|
2396
|
+
return e.useQuery(un, r);
|
|
2397
|
+
}
|
|
2398
|
+
var fn = t`
|
|
2399
|
+
mutation AddPayoutAccount($input: AddPayoutAccountInput!) {
|
|
2400
|
+
addPayoutAccount(input: $input) {
|
|
2401
|
+
id
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
`, pn = t`
|
|
2405
|
+
mutation ApprovePayoutRequest($id: ID!, $notes: String) {
|
|
2406
|
+
approvePayoutRequest(id: $id, notes: $notes) {
|
|
2407
|
+
id
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
`, mn = t`
|
|
2411
|
+
mutation ArchivePayoutAccount($id: ID!, $billingAccountId: ID!) {
|
|
2412
|
+
archivePayoutAccount(id: $id, billingAccountId: $billingAccountId)
|
|
2413
|
+
}
|
|
2414
|
+
`, hn = t`
|
|
2415
|
+
mutation ProcessPayoutRequest($id: ID!) {
|
|
2416
|
+
processPayoutRequest(id: $id) {
|
|
2417
|
+
id
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
`, gn = t`
|
|
2421
|
+
mutation RejectPayoutRequest($id: ID!, $reason: String!) {
|
|
2422
|
+
rejectPayoutRequest(id: $id, reason: $reason) {
|
|
2423
|
+
id
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
`, _n = t`
|
|
2427
|
+
mutation SetDefaultPayoutAccount($id: ID!, $billingAccountId: ID!) {
|
|
2428
|
+
setDefaultPayoutAccount(id: $id, billingAccountId: $billingAccountId) {
|
|
2429
|
+
id
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
`, vn = t`
|
|
2433
|
+
mutation UpdatePayoutAccount($id: ID!, $billingAccountId: ID!, $input: UpdatePayoutAccountInput!) {
|
|
2434
|
+
updatePayoutAccount(id: $id, billingAccountId: $billingAccountId, input: $input) {
|
|
2435
|
+
id
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
`, yn = t`
|
|
2439
|
+
query AdminPayoutRequests {
|
|
2440
|
+
adminPayoutRequests(limit: 50, offset: 0) {
|
|
2441
|
+
items {
|
|
2442
|
+
id
|
|
2443
|
+
requestedAmount
|
|
2444
|
+
approvedAmount
|
|
2445
|
+
currency
|
|
2446
|
+
provider
|
|
2447
|
+
status
|
|
2448
|
+
externalReference
|
|
2449
|
+
failureReason
|
|
2450
|
+
internalNotes
|
|
2451
|
+
userNotes
|
|
2452
|
+
createdAt
|
|
2453
|
+
processedAt
|
|
2454
|
+
paidAt
|
|
2455
|
+
payoutAccount {
|
|
2456
|
+
id
|
|
2457
|
+
label
|
|
2458
|
+
type
|
|
2459
|
+
providerPreference
|
|
2460
|
+
status
|
|
2461
|
+
displayName
|
|
2462
|
+
accountLast4
|
|
2463
|
+
country
|
|
2464
|
+
currency
|
|
2465
|
+
isDefault
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
`, bn = t`
|
|
2471
|
+
query AdminPayoutSummary {
|
|
2472
|
+
adminPayoutSummary {
|
|
2473
|
+
totalRequestedAmount
|
|
2474
|
+
totalProcessingAmount
|
|
2475
|
+
totalPaidAmount
|
|
2476
|
+
pendingCount
|
|
2477
|
+
failedCount
|
|
2478
|
+
statusBreakdown {
|
|
2479
|
+
status
|
|
2480
|
+
count
|
|
2481
|
+
totalAmount
|
|
2482
|
+
}
|
|
2483
|
+
providerBreakdown {
|
|
2484
|
+
provider
|
|
2485
|
+
count
|
|
2486
|
+
totalAmount
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
`, xn = t`
|
|
2491
|
+
query BillingDeveloperPortalRevenue($organizationId: ID!) {
|
|
2492
|
+
developerOrgRevenueSummary(organizationId: $organizationId, period: "monthly") {
|
|
2493
|
+
totalGrossRevenue
|
|
2494
|
+
totalNetRevenue
|
|
2495
|
+
totalPlatformFees
|
|
2496
|
+
totalRefunds
|
|
2497
|
+
totalRefundsCount
|
|
2498
|
+
totalSales
|
|
2499
|
+
pendingBalance
|
|
2500
|
+
nextPayoutDate
|
|
2501
|
+
nextPayoutAmount
|
|
2502
|
+
}
|
|
2503
|
+
developerOrgSales(organizationId: $organizationId, limit: 10, offset: 0) {
|
|
2504
|
+
edges {
|
|
2505
|
+
node {
|
|
2506
|
+
id
|
|
2507
|
+
grossAmount
|
|
2508
|
+
netAmount
|
|
2509
|
+
currency
|
|
2510
|
+
pricingModel
|
|
2511
|
+
status
|
|
2512
|
+
purchasedAt
|
|
2513
|
+
application {
|
|
2514
|
+
id
|
|
2515
|
+
name
|
|
2516
|
+
slug
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
developerOrgPayouts(organizationId: $organizationId, limit: 10, offset: 0) {
|
|
2522
|
+
edges {
|
|
2523
|
+
node {
|
|
2524
|
+
id
|
|
2525
|
+
periodLabel
|
|
2526
|
+
netAmount
|
|
2527
|
+
currency
|
|
2528
|
+
status
|
|
2529
|
+
scheduledAt
|
|
2530
|
+
completedAt
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
`, Sn = t`
|
|
2536
|
+
query MyEarningsEntries($billingAccountId: ID!) {
|
|
2537
|
+
myEarningsEntries(billingAccountId: $billingAccountId, limit: 50, offset: 0) {
|
|
2538
|
+
items {
|
|
2539
|
+
id
|
|
2540
|
+
sourceCategory
|
|
2541
|
+
sourceSubcategory
|
|
2542
|
+
description
|
|
2543
|
+
unitType
|
|
2544
|
+
amount
|
|
2545
|
+
currency
|
|
2546
|
+
status
|
|
2547
|
+
createdAt
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
`, Cn = t`
|
|
2552
|
+
query MyEarningsSummary($billingAccountId: ID!) {
|
|
2553
|
+
myEarningsSummary(billingAccountId: $billingAccountId) {
|
|
2554
|
+
totalLifetimeAmount
|
|
2555
|
+
availableAmount
|
|
2556
|
+
reservedAmount
|
|
2557
|
+
paidAmount
|
|
2558
|
+
pendingAmount
|
|
2559
|
+
moneyAmount
|
|
2560
|
+
creditsAmount
|
|
2561
|
+
categoryBreakdown {
|
|
2562
|
+
category
|
|
2563
|
+
amount
|
|
2564
|
+
count
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
`, wn = t`
|
|
2569
|
+
query MyPayoutAccounts($billingAccountId: ID!) {
|
|
2570
|
+
myPayoutAccounts(billingAccountId: $billingAccountId) {
|
|
2571
|
+
id
|
|
2572
|
+
label
|
|
2573
|
+
type
|
|
2574
|
+
providerPreference
|
|
2575
|
+
status
|
|
2576
|
+
displayName
|
|
2577
|
+
accountLast4
|
|
2578
|
+
country
|
|
2579
|
+
currency
|
|
2580
|
+
isDefault
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
`, Tn = t`
|
|
2584
|
+
query MyPayoutRequests($billingAccountId: ID!) {
|
|
2585
|
+
myPayoutRequests(billingAccountId: $billingAccountId, limit: 50, offset: 0) {
|
|
2586
|
+
items {
|
|
2587
|
+
id
|
|
2588
|
+
requestedAmount
|
|
2589
|
+
approvedAmount
|
|
2590
|
+
currency
|
|
2591
|
+
provider
|
|
2592
|
+
status
|
|
2593
|
+
externalReference
|
|
2594
|
+
failureReason
|
|
2595
|
+
internalNotes
|
|
2596
|
+
userNotes
|
|
2597
|
+
createdAt
|
|
2598
|
+
processedAt
|
|
2599
|
+
paidAt
|
|
2600
|
+
payoutAccount {
|
|
2601
|
+
id
|
|
2602
|
+
label
|
|
2603
|
+
type
|
|
2604
|
+
providerPreference
|
|
2605
|
+
status
|
|
2606
|
+
displayName
|
|
2607
|
+
accountLast4
|
|
2608
|
+
country
|
|
2609
|
+
currency
|
|
2610
|
+
isDefault
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
`;
|
|
2616
|
+
t`
|
|
2617
|
+
mutation CreateEntitlement($input: CreateEntitlementInput!) {
|
|
2618
|
+
createEntitlement(input: $input) {
|
|
2619
|
+
id
|
|
2620
|
+
planId
|
|
2621
|
+
itemId
|
|
2622
|
+
accessType
|
|
2623
|
+
discountPercentage
|
|
2624
|
+
createdAt
|
|
2625
|
+
}
|
|
2626
|
+
}
|
|
2627
|
+
`;
|
|
2628
|
+
var En = t`
|
|
2629
|
+
mutation CreatePlan($input: createPlanInput!) {
|
|
2630
|
+
createPlan(input: $input)
|
|
2631
|
+
}
|
|
2632
|
+
`;
|
|
2633
|
+
function Dn(t) {
|
|
2634
|
+
let r = {
|
|
2635
|
+
...n,
|
|
2636
|
+
...t
|
|
2637
|
+
};
|
|
2638
|
+
return e.useMutation(En, r);
|
|
2639
|
+
}
|
|
2640
|
+
t`
|
|
2641
|
+
mutation CreateQuota($input: createQuotaInput!) {
|
|
2642
|
+
createQuota(input: $input)
|
|
2643
|
+
}
|
|
2644
|
+
`, t`
|
|
2645
|
+
mutation DeleteEntitlement($id: ID!) {
|
|
2646
|
+
deleteEntitlement(id: $id)
|
|
2647
|
+
}
|
|
2648
|
+
`;
|
|
2649
|
+
var On = t`
|
|
2650
|
+
mutation TogglePlan($planID: ID!, $status: Boolean!) {
|
|
2651
|
+
togglePlan(planID: $planID, status: $status)
|
|
2652
|
+
}
|
|
2653
|
+
`;
|
|
2654
|
+
function kn(t) {
|
|
2655
|
+
let r = {
|
|
2656
|
+
...n,
|
|
2657
|
+
...t
|
|
2658
|
+
};
|
|
2659
|
+
return e.useMutation(On, r);
|
|
2660
|
+
}
|
|
2661
|
+
t`
|
|
2662
|
+
mutation UpdateEntitlement($input: UpdateEntitlementInput!) {
|
|
2663
|
+
updateEntitlement(input: $input) {
|
|
2664
|
+
id
|
|
2665
|
+
accessType
|
|
2666
|
+
discountPercentage
|
|
2667
|
+
updatedAt
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
`;
|
|
2671
|
+
var An = t`
|
|
2672
|
+
mutation UpdatePlan($input: updatePlanInput!) {
|
|
2673
|
+
updatePlan(input: $input)
|
|
2674
|
+
}
|
|
2675
|
+
`;
|
|
2676
|
+
function jn(t) {
|
|
2677
|
+
let r = {
|
|
2678
|
+
...n,
|
|
2679
|
+
...t
|
|
2680
|
+
};
|
|
2681
|
+
return e.useMutation(An, r);
|
|
2682
|
+
}
|
|
2683
|
+
t`
|
|
2684
|
+
mutation UpdateQuota($input: updateQuotaInput!) {
|
|
2685
|
+
updateQuota(input: $input)
|
|
2686
|
+
}
|
|
2687
|
+
`, t`
|
|
2688
|
+
query CheckPlanEntitlement($planId: ID!, $itemId: ID!) {
|
|
2689
|
+
checkPlanEntitlement(planId: $planId, itemId: $itemId) {
|
|
2690
|
+
id
|
|
2691
|
+
accessType
|
|
2692
|
+
discountPercentage
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
`;
|
|
2696
|
+
var J = t`
|
|
2697
|
+
query GetAllPlans($filter: PlansFilter) {
|
|
2698
|
+
getAllPlans(filter: $filter) {
|
|
2699
|
+
...PlanWithFeaturesFields
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
${b}`;
|
|
2703
|
+
function Mn(t) {
|
|
2704
|
+
let r = {
|
|
2705
|
+
...n,
|
|
2706
|
+
...t
|
|
2707
|
+
};
|
|
2708
|
+
return e.useQuery(J, r);
|
|
2709
|
+
}
|
|
2710
|
+
var Nn = t`
|
|
2711
|
+
query GetAllQuotas {
|
|
2712
|
+
getAllQuotas {
|
|
2713
|
+
...QuotaFields
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
${ne}`;
|
|
2717
|
+
function Pn(t) {
|
|
2718
|
+
let r = {
|
|
2719
|
+
...n,
|
|
2720
|
+
...t
|
|
2721
|
+
};
|
|
2722
|
+
return e.useQuery(Nn, r);
|
|
2723
|
+
}
|
|
2724
|
+
var Fn = t`
|
|
2725
|
+
query GetPlan($id: ID!) {
|
|
2726
|
+
getPlan(id: $id) {
|
|
2727
|
+
...PlanWithFeaturesFields
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
${b}`;
|
|
2731
|
+
function In(t) {
|
|
2732
|
+
let r = {
|
|
2733
|
+
...n,
|
|
2734
|
+
...t
|
|
2735
|
+
};
|
|
2736
|
+
return e.useQuery(Fn, r);
|
|
2737
|
+
}
|
|
2738
|
+
t`
|
|
2739
|
+
query GetPlanEntitlements($planId: ID!) {
|
|
2740
|
+
getPlanEntitlements(planId: $planId) {
|
|
2741
|
+
id
|
|
2742
|
+
planId
|
|
2743
|
+
itemId
|
|
2744
|
+
accessType
|
|
2745
|
+
discountPercentage
|
|
2746
|
+
createdAt
|
|
2747
|
+
updatedAt
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
`, t`
|
|
2751
|
+
mutation AddUsage($billingAccountId: ID!, $quotaName: String!, $value: Int!, $description: String!, $userId: ID, $productId: String, $hash: String, $tags: JSON) {
|
|
2752
|
+
addUsage(
|
|
2753
|
+
billingAccountId: $billingAccountId
|
|
2754
|
+
quotaName: $quotaName
|
|
2755
|
+
value: $value
|
|
2756
|
+
description: $description
|
|
2757
|
+
userId: $userId
|
|
2758
|
+
productId: $productId
|
|
2759
|
+
hash: $hash
|
|
2760
|
+
tags: $tags
|
|
2761
|
+
)
|
|
2762
|
+
}
|
|
2763
|
+
`;
|
|
2764
|
+
var Ln = t`
|
|
2765
|
+
mutation CreateQuotaTemplate($input: createQuotaInput!) {
|
|
2766
|
+
createQuota(input: $input)
|
|
2767
|
+
}
|
|
2768
|
+
`;
|
|
2769
|
+
function Rn(t) {
|
|
2770
|
+
let r = {
|
|
2771
|
+
...n,
|
|
2772
|
+
...t
|
|
2773
|
+
};
|
|
2774
|
+
return e.useMutation(Ln, r);
|
|
2775
|
+
}
|
|
2776
|
+
t`
|
|
2777
|
+
mutation FreeUpUsage($billingAccountId: ID!, $quotaName: String!, $value: Int!, $description: String, $userId: ID, $productId: String, $hash: String, $tags: JSON) {
|
|
2778
|
+
freeUpUsage(
|
|
2779
|
+
billingAccountId: $billingAccountId
|
|
2780
|
+
quotaName: $quotaName
|
|
2781
|
+
value: $value
|
|
2782
|
+
description: $description
|
|
2783
|
+
userId: $userId
|
|
2784
|
+
productId: $productId
|
|
2785
|
+
hash: $hash
|
|
2786
|
+
tags: $tags
|
|
2787
|
+
)
|
|
2788
|
+
}
|
|
2789
|
+
`;
|
|
2790
|
+
var zn = t`
|
|
2791
|
+
mutation UpdateQuotaTemplate($input: updateQuotaInput!) {
|
|
2792
|
+
updateQuota(input: $input)
|
|
2793
|
+
}
|
|
2794
|
+
`;
|
|
2795
|
+
function Bn(t) {
|
|
2796
|
+
let r = {
|
|
2797
|
+
...n,
|
|
2798
|
+
...t
|
|
2799
|
+
};
|
|
2800
|
+
return e.useMutation(zn, r);
|
|
2801
|
+
}
|
|
2802
|
+
t`
|
|
2803
|
+
query CheckQuotaExhausted($billingAccountId: ID!, $quotaName: String!, $productId: String) {
|
|
2804
|
+
checkQuotaExhausted(
|
|
2805
|
+
billingAccountId: $billingAccountId
|
|
2806
|
+
quotaName: $quotaName
|
|
2807
|
+
productId: $productId
|
|
2808
|
+
) {
|
|
2809
|
+
limitLeft
|
|
2810
|
+
noLimit
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
`;
|
|
2814
|
+
var Y = t`
|
|
2815
|
+
query GetAllQuotaTemplates {
|
|
2816
|
+
getAllQuotas {
|
|
2817
|
+
...QuotaTemplateFields
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
${ie}`;
|
|
2821
|
+
function Vn(t) {
|
|
2822
|
+
let r = {
|
|
2823
|
+
...n,
|
|
2824
|
+
...t
|
|
2825
|
+
};
|
|
2826
|
+
return e.useQuery(Y, r);
|
|
2827
|
+
}
|
|
2828
|
+
t`
|
|
2829
|
+
query GetAllQuotasAssignment($billingAccountId: ID!, $page: Int, $pageSize: Int, $searchQuery: String, $status: [QuotaStatus!], $fromDate: DateTime, $toDate: DateTime, $sortBy: String, $sortOrder: String) {
|
|
2830
|
+
getAllQuotasAssignment(
|
|
2831
|
+
billingAccountId: $billingAccountId
|
|
2832
|
+
page: $page
|
|
2833
|
+
pageSize: $pageSize
|
|
2834
|
+
searchQuery: $searchQuery
|
|
2835
|
+
status: $status
|
|
2836
|
+
fromDate: $fromDate
|
|
2837
|
+
toDate: $toDate
|
|
2838
|
+
sortBy: $sortBy
|
|
2839
|
+
sortOrder: $sortOrder
|
|
2840
|
+
) {
|
|
2841
|
+
quotaAssignments {
|
|
2842
|
+
...QuotaAssignmentFields
|
|
2843
|
+
}
|
|
2844
|
+
page
|
|
2845
|
+
pageSize
|
|
2846
|
+
totalCount
|
|
2847
|
+
totalPages
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2850
|
+
${x}`;
|
|
2851
|
+
var Hn = t`
|
|
2852
|
+
query GetBillingAccountQuotasSummary($billingAccountId: ID!, $productId: String) {
|
|
2853
|
+
getBillingAccountQuotasSummary(
|
|
2854
|
+
billingAccountId: $billingAccountId
|
|
2855
|
+
productId: $productId
|
|
2856
|
+
) {
|
|
2857
|
+
billingAccountId
|
|
2858
|
+
totalUsage
|
|
2859
|
+
totalLimit
|
|
2860
|
+
pooledQuotas {
|
|
2861
|
+
id
|
|
2862
|
+
name
|
|
2863
|
+
quotaType
|
|
2864
|
+
reusable
|
|
2865
|
+
limit
|
|
2866
|
+
limitLeft
|
|
2867
|
+
used
|
|
2868
|
+
usagePercentage
|
|
2869
|
+
noLimit
|
|
2870
|
+
createdAt
|
|
2871
|
+
endtime
|
|
2872
|
+
}
|
|
2873
|
+
subscriptionQuotas {
|
|
2874
|
+
id
|
|
2875
|
+
name
|
|
2876
|
+
quotaType
|
|
2877
|
+
reusable
|
|
2878
|
+
limit
|
|
2879
|
+
limitLeft
|
|
2880
|
+
used
|
|
2881
|
+
usagePercentage
|
|
2882
|
+
noLimit
|
|
2883
|
+
subscriptionId
|
|
2884
|
+
createdAt
|
|
2885
|
+
endtime
|
|
2886
|
+
}
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
`;
|
|
2890
|
+
function Un(t) {
|
|
2891
|
+
let r = {
|
|
2892
|
+
...n,
|
|
2893
|
+
...t
|
|
2894
|
+
};
|
|
2895
|
+
return e.useQuery(Hn, r);
|
|
2896
|
+
}
|
|
2897
|
+
t`
|
|
2898
|
+
query GetQuotaAnalytics($quotaAssignmentId: ID!, $billingAccountId: ID!, $period: AnalyticsPeriod) {
|
|
2899
|
+
getQuotaAnalytics(
|
|
2900
|
+
quotaAssignmentId: $quotaAssignmentId
|
|
2901
|
+
billingAccountId: $billingAccountId
|
|
2902
|
+
period: $period
|
|
2903
|
+
) {
|
|
2904
|
+
...QuotaUsageAnalyticsFields
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
${S}`;
|
|
2908
|
+
var Wn = t`
|
|
2909
|
+
query GetQuotaAssignmentsWithAnalytics($billingAccountId: ID!, $page: Int, $pageSize: Int, $searchQuery: String, $status: [QuotaStatus!], $fromDate: DateTime, $toDate: DateTime, $sortBy: String, $sortOrder: String) {
|
|
2910
|
+
getQuotaAssignmentsWithAnalytics(
|
|
2911
|
+
billingAccountId: $billingAccountId
|
|
2912
|
+
page: $page
|
|
2913
|
+
pageSize: $pageSize
|
|
2914
|
+
searchQuery: $searchQuery
|
|
2915
|
+
status: $status
|
|
2916
|
+
fromDate: $fromDate
|
|
2917
|
+
toDate: $toDate
|
|
2918
|
+
sortBy: $sortBy
|
|
2919
|
+
sortOrder: $sortOrder
|
|
2920
|
+
) {
|
|
2921
|
+
quotaAssignments {
|
|
2922
|
+
...QuotaAssignmentWithAnalyticsFields
|
|
2923
|
+
}
|
|
2924
|
+
page
|
|
2925
|
+
pageSize
|
|
2926
|
+
totalCount
|
|
2927
|
+
totalPages
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
${re}`;
|
|
2931
|
+
function Gn(t) {
|
|
2932
|
+
let r = {
|
|
2933
|
+
...n,
|
|
2934
|
+
...t
|
|
2935
|
+
};
|
|
2936
|
+
return e.useQuery(Wn, r);
|
|
2937
|
+
}
|
|
2938
|
+
t`
|
|
2939
|
+
query GetQuotaUsageAndLimit($billingAccountId: ID!, $quotaName: String!, $productId: String) {
|
|
2940
|
+
getQuotaUsageAndLimit(
|
|
2941
|
+
billingAccountId: $billingAccountId
|
|
2942
|
+
quotaName: $quotaName
|
|
2943
|
+
productId: $productId
|
|
2944
|
+
) {
|
|
2945
|
+
limit
|
|
2946
|
+
limitLeft
|
|
2947
|
+
noLimit
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
`;
|
|
2951
|
+
var Kn = t`
|
|
2952
|
+
mutation ArchiveBillingAccountSettings($id: ID!, $reason: String, $replacementDefaultBillingAccountId: ID) {
|
|
2953
|
+
archiveBillingAccount(
|
|
2954
|
+
id: $id
|
|
2955
|
+
reason: $reason
|
|
2956
|
+
replacementDefaultBillingAccountId: $replacementDefaultBillingAccountId
|
|
2957
|
+
) {
|
|
2958
|
+
id
|
|
2959
|
+
isActive
|
|
2960
|
+
isDefault
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
`, qn = t`
|
|
2964
|
+
mutation SetDefaultBillingAccountSettings($id: ID!) {
|
|
2965
|
+
setDefaultBillingAccount(id: $id) {
|
|
2966
|
+
id
|
|
2967
|
+
name
|
|
2968
|
+
email
|
|
2969
|
+
isActive
|
|
2970
|
+
isDefault
|
|
2971
|
+
updatedAt
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
`;
|
|
2975
|
+
function Jn(t) {
|
|
2976
|
+
let r = {
|
|
2977
|
+
...n,
|
|
2978
|
+
...t
|
|
2979
|
+
};
|
|
2980
|
+
return e.useMutation(qn, r);
|
|
2981
|
+
}
|
|
2982
|
+
var Yn = t`
|
|
2983
|
+
mutation UpdateBillingAccountSettings($input: UpdateBillingAccountInput!) {
|
|
2984
|
+
updateBillingAccount(input: $input) {
|
|
2985
|
+
id
|
|
2986
|
+
name
|
|
2987
|
+
email
|
|
2988
|
+
billingEmail
|
|
2989
|
+
taxId
|
|
2990
|
+
currency
|
|
2991
|
+
isActive
|
|
2992
|
+
isDefault
|
|
2993
|
+
updatedAt
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
`;
|
|
2997
|
+
function Xn(t) {
|
|
2998
|
+
let r = {
|
|
2999
|
+
...n,
|
|
3000
|
+
...t
|
|
3001
|
+
};
|
|
3002
|
+
return e.useMutation(Yn, r);
|
|
3003
|
+
}
|
|
3004
|
+
var Zn = t`
|
|
3005
|
+
query GetBillingAccountSettings($id: ID!) {
|
|
3006
|
+
getBillingAccount(id: $id) {
|
|
3007
|
+
id
|
|
3008
|
+
orgId
|
|
3009
|
+
name
|
|
3010
|
+
email
|
|
3011
|
+
billingEmail
|
|
3012
|
+
currency
|
|
3013
|
+
creditAmount
|
|
3014
|
+
isActive
|
|
3015
|
+
isDefault
|
|
3016
|
+
taxId
|
|
3017
|
+
createdAt
|
|
3018
|
+
updatedAt
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
3021
|
+
`;
|
|
3022
|
+
function Qn(t) {
|
|
3023
|
+
let r = {
|
|
3024
|
+
...n,
|
|
3025
|
+
...t
|
|
3026
|
+
};
|
|
3027
|
+
return e.useQuery(Zn, r);
|
|
3028
|
+
}
|
|
3029
|
+
var $n = t`
|
|
3030
|
+
query GetBillingAccountsSettings {
|
|
3031
|
+
getBillingAccountsByOrg {
|
|
3032
|
+
id
|
|
3033
|
+
orgId
|
|
3034
|
+
name
|
|
3035
|
+
email
|
|
3036
|
+
isActive
|
|
3037
|
+
isDefault
|
|
3038
|
+
}
|
|
3039
|
+
}
|
|
3040
|
+
`;
|
|
3041
|
+
function er(t) {
|
|
3042
|
+
let r = {
|
|
3043
|
+
...n,
|
|
3044
|
+
...t
|
|
3045
|
+
};
|
|
3046
|
+
return e.useQuery($n, r);
|
|
3047
|
+
}
|
|
3048
|
+
var tr = t`
|
|
3049
|
+
query GetDefaultBillingAccountSettings {
|
|
3050
|
+
getDefaultBillingAccount {
|
|
3051
|
+
id
|
|
3052
|
+
orgId
|
|
3053
|
+
name
|
|
3054
|
+
email
|
|
3055
|
+
billingEmail
|
|
3056
|
+
currency
|
|
3057
|
+
creditAmount
|
|
3058
|
+
isActive
|
|
3059
|
+
isDefault
|
|
3060
|
+
taxId
|
|
3061
|
+
createdAt
|
|
3062
|
+
updatedAt
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
`;
|
|
3066
|
+
function nr(t) {
|
|
3067
|
+
let r = {
|
|
3068
|
+
...n,
|
|
3069
|
+
...t
|
|
3070
|
+
};
|
|
3071
|
+
return e.useQuery(tr, r);
|
|
3072
|
+
}
|
|
3073
|
+
var rr = t`
|
|
3074
|
+
mutation UpdateSubscriptionSeats($input: UpdateSubscriptionSeatsInput!) {
|
|
3075
|
+
updateSubscriptionSeats(input: $input) {
|
|
3076
|
+
...SubscriptionFields
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
${C}`;
|
|
3080
|
+
function ir(t) {
|
|
3081
|
+
let r = {
|
|
3082
|
+
...n,
|
|
3083
|
+
...t
|
|
3084
|
+
};
|
|
3085
|
+
return e.useMutation(rr, r);
|
|
3086
|
+
}
|
|
3087
|
+
var ar = t`
|
|
3088
|
+
mutation CancelSubscription($input: CancelSubscriptionInput!) {
|
|
3089
|
+
cancelSubscription(input: $input) {
|
|
3090
|
+
...SubscriptionFields
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
${C}`;
|
|
3094
|
+
function or(t) {
|
|
3095
|
+
let r = {
|
|
3096
|
+
...n,
|
|
3097
|
+
...t
|
|
3098
|
+
};
|
|
3099
|
+
return e.useMutation(ar, r);
|
|
3100
|
+
}
|
|
3101
|
+
var sr = t`
|
|
3102
|
+
mutation CreateBillingAccountSubscriptions($input: CreateBillingAccountInput!) {
|
|
3103
|
+
createBillingAccount(input: $input) {
|
|
3104
|
+
id
|
|
3105
|
+
orgId
|
|
3106
|
+
name
|
|
3107
|
+
email
|
|
3108
|
+
currency
|
|
3109
|
+
isActive
|
|
3110
|
+
createdAt
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
`;
|
|
3114
|
+
function cr(t) {
|
|
3115
|
+
let r = {
|
|
3116
|
+
...n,
|
|
3117
|
+
...t
|
|
3118
|
+
};
|
|
3119
|
+
return e.useMutation(sr, r);
|
|
3120
|
+
}
|
|
3121
|
+
var lr = t`
|
|
3122
|
+
mutation InitiatePaymentSubscriptions($input: InitiatePaymentInput!) {
|
|
3123
|
+
initiatePayment(input: $input) {
|
|
3124
|
+
success
|
|
3125
|
+
provider
|
|
3126
|
+
clientSecret
|
|
3127
|
+
orderId
|
|
3128
|
+
razorpayKeyId
|
|
3129
|
+
subtotal
|
|
3130
|
+
taxAmount
|
|
3131
|
+
taxRate
|
|
3132
|
+
taxType
|
|
3133
|
+
taxBreakdown
|
|
3134
|
+
jurisdiction
|
|
3135
|
+
total
|
|
3136
|
+
currency
|
|
3137
|
+
error
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
`;
|
|
3141
|
+
function ur(t) {
|
|
3142
|
+
let r = {
|
|
3143
|
+
...n,
|
|
3144
|
+
...t
|
|
3145
|
+
};
|
|
3146
|
+
return e.useMutation(lr, r);
|
|
3147
|
+
}
|
|
3148
|
+
var X = t`
|
|
3149
|
+
mutation SpendCreditsSubscriptions($input: SpendCreditsInput!) {
|
|
3150
|
+
spendCredits(input: $input) {
|
|
3151
|
+
creditTransactionID
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
`;
|
|
3155
|
+
function dr(t) {
|
|
3156
|
+
let r = {
|
|
3157
|
+
...n,
|
|
3158
|
+
...t
|
|
3159
|
+
};
|
|
3160
|
+
return e.useMutation(X, r);
|
|
3161
|
+
}
|
|
3162
|
+
var fr = t`
|
|
3163
|
+
mutation UpdateBillingAccountSubscriptions($input: UpdateBillingAccountInput!) {
|
|
3164
|
+
updateBillingAccount(input: $input) {
|
|
3165
|
+
id
|
|
3166
|
+
name
|
|
3167
|
+
email
|
|
3168
|
+
billingEmail
|
|
3169
|
+
currency
|
|
3170
|
+
taxId
|
|
3171
|
+
isActive
|
|
3172
|
+
updatedAt
|
|
3173
|
+
}
|
|
3174
|
+
}
|
|
3175
|
+
`;
|
|
3176
|
+
function pr(t) {
|
|
3177
|
+
let r = {
|
|
3178
|
+
...n,
|
|
3179
|
+
...t
|
|
3180
|
+
};
|
|
3181
|
+
return e.useMutation(fr, r);
|
|
3182
|
+
}
|
|
3183
|
+
var Z = t`
|
|
3184
|
+
query GetBillingAccount($id: ID!) {
|
|
3185
|
+
getBillingAccount(id: $id) {
|
|
3186
|
+
id
|
|
3187
|
+
orgId
|
|
3188
|
+
name
|
|
3189
|
+
email
|
|
3190
|
+
billingEmail
|
|
3191
|
+
currency
|
|
3192
|
+
creditAmount
|
|
3193
|
+
isActive
|
|
3194
|
+
stripeCustomerId
|
|
3195
|
+
razorpayCustomerId
|
|
3196
|
+
taxId
|
|
3197
|
+
createdAt
|
|
3198
|
+
updatedAt
|
|
3199
|
+
subscriptions {
|
|
3200
|
+
...SubscriptionWithPlanFields
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
${w}`;
|
|
3205
|
+
function mr(t) {
|
|
3206
|
+
let r = {
|
|
3207
|
+
...n,
|
|
3208
|
+
...t
|
|
3209
|
+
};
|
|
3210
|
+
return e.useQuery(Z, r);
|
|
3211
|
+
}
|
|
3212
|
+
var hr = t`
|
|
3213
|
+
query GetBillingAccountsForSubscriptions {
|
|
3214
|
+
getBillingAccountsByOrg {
|
|
3215
|
+
id
|
|
3216
|
+
name
|
|
3217
|
+
email
|
|
3218
|
+
currency
|
|
3219
|
+
creditAmount
|
|
3220
|
+
isActive
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
`;
|
|
3224
|
+
function gr(t) {
|
|
3225
|
+
let r = {
|
|
3226
|
+
...n,
|
|
3227
|
+
...t
|
|
3228
|
+
};
|
|
3229
|
+
return e.useQuery(hr, r);
|
|
3230
|
+
}
|
|
3231
|
+
var Q = t`
|
|
3232
|
+
query GetDefaultBillingAccount {
|
|
3233
|
+
getDefaultBillingAccount {
|
|
3234
|
+
id
|
|
3235
|
+
orgId
|
|
3236
|
+
name
|
|
3237
|
+
email
|
|
3238
|
+
billingEmail
|
|
3239
|
+
currency
|
|
3240
|
+
creditAmount
|
|
3241
|
+
isActive
|
|
3242
|
+
createdAt
|
|
3243
|
+
subscriptions {
|
|
3244
|
+
...SubscriptionWithPlanFields
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
3248
|
+
${w}`;
|
|
3249
|
+
function _r(t) {
|
|
3250
|
+
let r = {
|
|
3251
|
+
...n,
|
|
3252
|
+
...t
|
|
3253
|
+
};
|
|
3254
|
+
return e.useQuery(Q, r);
|
|
3255
|
+
}
|
|
3256
|
+
var vr = t`
|
|
3257
|
+
query GetPaginatedSubscriptions($billingAccountId: ID!, $page: Int, $pageSize: Int) {
|
|
3258
|
+
getPaginatedSubscriptions(
|
|
3259
|
+
billingAccountId: $billingAccountId
|
|
3260
|
+
page: $page
|
|
3261
|
+
pageSize: $pageSize
|
|
3262
|
+
) {
|
|
3263
|
+
subscriptions {
|
|
3264
|
+
...SubscriptionWithPlanFields
|
|
3265
|
+
addonSubscriptions {
|
|
3266
|
+
id
|
|
3267
|
+
addonId
|
|
3268
|
+
quantity
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
totalCount
|
|
3272
|
+
page
|
|
3273
|
+
pageSize
|
|
3274
|
+
totalPages
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
${w}`;
|
|
3278
|
+
function yr(t) {
|
|
3279
|
+
let r = {
|
|
3280
|
+
...n,
|
|
3281
|
+
...t
|
|
3282
|
+
};
|
|
3283
|
+
return e.useQuery(vr, r);
|
|
3284
|
+
}
|
|
3285
|
+
var $ = t`
|
|
3286
|
+
query GetSubscription($id: ID!, $billingAccountId: ID!) {
|
|
3287
|
+
getSubscription(id: $id, billingAccountId: $billingAccountId) {
|
|
3288
|
+
...SubscriptionFullFields
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
${ae}`;
|
|
3292
|
+
function br(t) {
|
|
3293
|
+
let r = {
|
|
3294
|
+
...n,
|
|
3295
|
+
...t
|
|
3296
|
+
};
|
|
3297
|
+
return e.useQuery($, r);
|
|
3298
|
+
}
|
|
3299
|
+
t`
|
|
3300
|
+
query GetSubscriptionUsageOverview($billingAccountId: ID!, $page: Int, $pageSize: Int) {
|
|
3301
|
+
getSubscriptionUsageOverview(
|
|
3302
|
+
billingAccountId: $billingAccountId
|
|
3303
|
+
page: $page
|
|
3304
|
+
pageSize: $pageSize
|
|
3305
|
+
) {
|
|
3306
|
+
id
|
|
3307
|
+
status
|
|
3308
|
+
createdAt
|
|
3309
|
+
quotas {
|
|
3310
|
+
id
|
|
3311
|
+
name
|
|
3312
|
+
limits
|
|
3313
|
+
currentUsageSum
|
|
3314
|
+
usageCount
|
|
3315
|
+
endtime
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
}
|
|
3319
|
+
`;
|
|
3320
|
+
var xr = t`
|
|
3321
|
+
query GetBillingAccountQuotasSummaryForUsage($billingAccountId: ID!, $productId: String) {
|
|
3322
|
+
getBillingAccountQuotasSummary(
|
|
3323
|
+
billingAccountId: $billingAccountId
|
|
3324
|
+
productId: $productId
|
|
3325
|
+
) {
|
|
3326
|
+
billingAccountId
|
|
3327
|
+
totalLimit
|
|
3328
|
+
totalUsage
|
|
3329
|
+
pooledQuotas {
|
|
3330
|
+
id
|
|
3331
|
+
name
|
|
3332
|
+
quotaType
|
|
3333
|
+
reusable
|
|
3334
|
+
limit
|
|
3335
|
+
limitLeft
|
|
3336
|
+
used
|
|
3337
|
+
usagePercentage
|
|
3338
|
+
noLimit
|
|
3339
|
+
createdAt
|
|
3340
|
+
endtime
|
|
3341
|
+
}
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
3344
|
+
`;
|
|
3345
|
+
function Sr(t) {
|
|
3346
|
+
let r = {
|
|
3347
|
+
...n,
|
|
3348
|
+
...t
|
|
3349
|
+
};
|
|
3350
|
+
return e.useQuery(xr, r);
|
|
3351
|
+
}
|
|
3352
|
+
var Cr = t`
|
|
3353
|
+
query GetBillingAccountsForUsage {
|
|
3354
|
+
getBillingAccountsByOrg {
|
|
3355
|
+
id
|
|
3356
|
+
name
|
|
3357
|
+
email
|
|
3358
|
+
currency
|
|
3359
|
+
creditAmount
|
|
3360
|
+
isActive
|
|
3361
|
+
isDefault
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
`;
|
|
3365
|
+
function wr(t) {
|
|
3366
|
+
let r = {
|
|
3367
|
+
...n,
|
|
3368
|
+
...t
|
|
3369
|
+
};
|
|
3370
|
+
return e.useQuery(Cr, r);
|
|
3371
|
+
}
|
|
3372
|
+
var Tr = t`
|
|
3373
|
+
query GetPastSubscriptionsWithQuotas($billingAccountId: ID!, $searchQuery: String, $page: Int, $pageSize: Int) {
|
|
3374
|
+
getSubscriptionUsageOverview(
|
|
3375
|
+
billingAccountId: $billingAccountId
|
|
3376
|
+
page: $page
|
|
3377
|
+
pageSize: $pageSize
|
|
3378
|
+
onlyExpired: true
|
|
3379
|
+
searchQuery: $searchQuery
|
|
3380
|
+
) {
|
|
3381
|
+
id
|
|
3382
|
+
status
|
|
3383
|
+
createdAt
|
|
3384
|
+
quotas {
|
|
3385
|
+
id
|
|
3386
|
+
name
|
|
3387
|
+
limits
|
|
3388
|
+
currentUsageSum
|
|
3389
|
+
usageCount
|
|
3390
|
+
createdAt
|
|
3391
|
+
endtime
|
|
3392
|
+
}
|
|
3393
|
+
}
|
|
3394
|
+
}
|
|
3395
|
+
`;
|
|
3396
|
+
function Er(t) {
|
|
3397
|
+
let r = {
|
|
3398
|
+
...n,
|
|
3399
|
+
...t
|
|
3400
|
+
};
|
|
3401
|
+
return e.useQuery(Tr, r);
|
|
3402
|
+
}
|
|
3403
|
+
t`
|
|
3404
|
+
query GetQuotaAnalyticsForUsage($quotaAssignmentId: ID!, $billingAccountId: ID!, $period: AnalyticsPeriod) {
|
|
3405
|
+
getQuotaAnalytics(
|
|
3406
|
+
quotaAssignmentId: $quotaAssignmentId
|
|
3407
|
+
billingAccountId: $billingAccountId
|
|
3408
|
+
period: $period
|
|
3409
|
+
) {
|
|
3410
|
+
dailyUsage {
|
|
3411
|
+
date
|
|
3412
|
+
usage
|
|
3413
|
+
count
|
|
3414
|
+
}
|
|
3415
|
+
usageByType {
|
|
3416
|
+
resourceType
|
|
3417
|
+
usage
|
|
3418
|
+
count
|
|
3419
|
+
percentage
|
|
3420
|
+
}
|
|
3421
|
+
trends {
|
|
3422
|
+
growthRate
|
|
3423
|
+
predictedUsage
|
|
3424
|
+
averageDailyUsage
|
|
3425
|
+
}
|
|
3426
|
+
peakUsage {
|
|
3427
|
+
maxDailyUsage
|
|
3428
|
+
peakDate
|
|
3429
|
+
peakHour
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
`, t`
|
|
3434
|
+
query GetQuotaUsageDetails($quotaAssignmentId: ID!, $billingAccountId: ID!, $page: Int, $pageSize: Int, $fromDate: DateTime, $toDate: DateTime, $sortBy: String, $sortOrder: String) {
|
|
3435
|
+
getQuotaUsageDetails(
|
|
3436
|
+
quotaAssignmentId: $quotaAssignmentId
|
|
3437
|
+
billingAccountId: $billingAccountId
|
|
3438
|
+
page: $page
|
|
3439
|
+
pageSize: $pageSize
|
|
3440
|
+
fromDate: $fromDate
|
|
3441
|
+
toDate: $toDate
|
|
3442
|
+
sortBy: $sortBy
|
|
3443
|
+
sortOrder: $sortOrder
|
|
3444
|
+
) {
|
|
3445
|
+
usages {
|
|
3446
|
+
id
|
|
3447
|
+
amount
|
|
3448
|
+
description
|
|
3449
|
+
tags
|
|
3450
|
+
productId
|
|
3451
|
+
userId
|
|
3452
|
+
timestamp
|
|
3453
|
+
lastUpdated
|
|
3454
|
+
}
|
|
3455
|
+
totalCount
|
|
3456
|
+
page
|
|
3457
|
+
pageSize
|
|
3458
|
+
totalPages
|
|
3459
|
+
}
|
|
3460
|
+
}
|
|
3461
|
+
`;
|
|
3462
|
+
var Dr = t`
|
|
3463
|
+
query GetSubscriptionsWithQuotas($billingAccountId: ID!, $searchQuery: String) {
|
|
3464
|
+
getSubscriptionUsageOverview(
|
|
3465
|
+
billingAccountId: $billingAccountId
|
|
3466
|
+
page: 1
|
|
3467
|
+
pageSize: 100
|
|
3468
|
+
searchQuery: $searchQuery
|
|
3469
|
+
) {
|
|
3470
|
+
id
|
|
3471
|
+
status
|
|
3472
|
+
createdAt
|
|
3473
|
+
quotas {
|
|
3474
|
+
id
|
|
3475
|
+
name
|
|
3476
|
+
limits
|
|
3477
|
+
currentUsageSum
|
|
3478
|
+
usageCount
|
|
3479
|
+
createdAt
|
|
3480
|
+
endtime
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
`;
|
|
3485
|
+
function Or(t) {
|
|
3486
|
+
let r = {
|
|
3487
|
+
...n,
|
|
3488
|
+
...t
|
|
3489
|
+
};
|
|
3490
|
+
return e.useQuery(Dr, r);
|
|
3491
|
+
}
|
|
3492
|
+
var kr = t`
|
|
3493
|
+
query GetUsageDashboard($billingAccountId: ID!, $period: AnalyticsPeriod) {
|
|
3494
|
+
getUsageDashboard(billingAccountId: $billingAccountId, period: $period) {
|
|
3495
|
+
...UsageDashboardFields
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
${oe}`;
|
|
3499
|
+
function Ar(t) {
|
|
3500
|
+
let r = {
|
|
3501
|
+
...n,
|
|
3502
|
+
...t
|
|
3503
|
+
};
|
|
3504
|
+
return e.useQuery(kr, r);
|
|
3505
|
+
}
|
|
3506
|
+
t`
|
|
3507
|
+
query GetMyOrders {
|
|
3508
|
+
myOrders {
|
|
3509
|
+
id
|
|
3510
|
+
billingAccountId
|
|
3511
|
+
status
|
|
3512
|
+
transactionId
|
|
3513
|
+
total
|
|
3514
|
+
lineItems
|
|
3515
|
+
appliedEntitlementId
|
|
3516
|
+
purchasedAt
|
|
3517
|
+
processedAt
|
|
3518
|
+
createdAt
|
|
3519
|
+
updatedAt
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
`, t`
|
|
3523
|
+
query GetStoreOrder($id: ID!) {
|
|
3524
|
+
getStoreOrder(id: $id) {
|
|
3525
|
+
id
|
|
3526
|
+
billingAccountId
|
|
3527
|
+
status
|
|
3528
|
+
transactionId
|
|
3529
|
+
total
|
|
3530
|
+
lineItems
|
|
3531
|
+
appliedEntitlementId
|
|
3532
|
+
purchasedAt
|
|
3533
|
+
processedAt
|
|
3534
|
+
createdAt
|
|
3535
|
+
updatedAt
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
`;
|
|
3539
|
+
//#endregion
|
|
3540
|
+
export { fn as AddPayoutAccountDocument, yn as AdminPayoutRequestsDocument, bn as AdminPayoutSummaryDocument, pn as ApprovePayoutRequestDocument, Kn as ArchiveBillingAccountSettingsDocument, mn as ArchivePayoutAccountDocument, xn as BillingDeveloperPortalRevenueDocument, St as CreditWithdrawalHistoryDocument, T as GetAllAddOnsDocument, J as GetAllPlansDocument, Y as GetAllQuotaTemplatesDocument, Z as GetBillingAccountDocument, K as GetBillingAccountsByOrgDocument, Jt as GetBillingAddressDocument, Tt as GetCreditBalanceByTypeDocument, Et as GetCreditNotesDocument, $t as GetCreditTransactionsSummaryDocument, q as GetDefaultBillingAccountDashboardDocument, Q as GetDefaultBillingAccountDocument, H as GetInvoicesDocument, Ce as GetPendingRefundsDocument, U as GetRefundRecordsDocument, W as GetRefundStatsDocument, $ as GetSubscriptionDocument, Ee as GetTransactionDocument, G as GetUnprocessedFailedWebhooksDocument, bt as GrantCreditsDocument, Sn as MyEarningsEntriesDocument, Cn as MyEarningsSummaryDocument, wn as MyPayoutAccountsDocument, Tn as MyPayoutRequestsDocument, hn as ProcessPayoutRequestDocument, gn as RejectPayoutRequestDocument, xt as RequestCreditWithdrawalDocument, _n as SetDefaultPayoutAccountDocument, vn as UpdatePayoutAccountDocument, Ot as useAddPaymentMethodDashboardMutation, or as useCancelSubscriptionMutation, Fe as useConvertCurrencyLazyQuery, ce as useCreateAddOnsMutation, At as useCreateBillingAccountMutation, cr as useCreateBillingAccountSubscriptionsMutation, at as useCreateCouponMutation, yt as useCreateCreditNoteMutation, an as useCreateDiscountMutation, Dn as useCreatePlanMutation, Rn as useCreateQuotaTemplateMutation, P as useCreateRefundRecordFromWebhookMutation, M as useCreateRefundRecordMutation, I as useCreateRefundRecordsFromFailedWebhooksMutation, st as useDeactivateCouponMutation, sn as useDeleteDiscountMutation, Mt as useDeletePaymentMethodDashboardMutation, R as useGenerateInvoiceMutation, Le as useGetActiveSubscriptionsCheckoutQuery, E as useGetAllAddOnsQuery, Mn as useGetAllPlansQuery, Vn as useGetAllQuotaTemplatesQuery, Pn as useGetAllQuotasQuery, wt as useGetBillingAccountCreditTransactionsQuery, mr as useGetBillingAccountQuery, Sr as useGetBillingAccountQuotasSummaryForUsageQuery, Un as useGetBillingAccountQuotasSummaryQuery, Qn as useGetBillingAccountSettingsQuery, qt as useGetBillingAccountsByOrgQuery, Ve as useGetBillingAccountsCheckoutQuery, gr as useGetBillingAccountsForSubscriptionsQuery, wr as useGetBillingAccountsForUsageQuery, er as useGetBillingAccountsSettingsQuery, A as useGetBillingAnalyticsPageDataQuery, Qt as useGetBillingOverviewAccountQuery, Xt as useGetBillingOverviewQuery, Ue as useGetCostOfCreditsCheckoutQuery, dt as useGetCouponLazyQuery, pt as useGetCouponUsageHistoryQuery, Ge as useGetCreditTransactionStatusLazyQuery, qe as useGetDefaultBillingAccountCheckoutQuery, en as useGetDefaultBillingAccountDashboardQuery, _r as useGetDefaultBillingAccountQuery, nr as useGetDefaultBillingAccountSettingsQuery, dn as useGetDiscountsQuery, xe as useGetInvoiceQuery, Se as useGetInvoicesQuery, yr as useGetPaginatedSubscriptionsQuery, Er as useGetPastSubscriptionsWithQuotasQuery, Ye as useGetPaymentMethodsCheckoutQuery, Ze as useGetPaymentProviderConfigCheckoutQuery, nn as useGetPaymentProviderConfigQuery, $e as useGetPaymentStatusLazyQuery, tt as useGetPlanCheckoutQuery, In as useGetPlanQuery, Gn as useGetQuotaAssignmentsWithAnalyticsQuery, we as useGetRefundRecordsQuery, Te as useGetRefundStatsQuery, ze as useGetSelectedAddonCheckoutQuery, O as useGetSelectedAddonsQuery, rt as useGetStoreOrderCheckoutQuery, br as useGetSubscriptionQuery, Or as useGetSubscriptionsWithQuotasQuery, Oe as useGetTransactionsByBillingAccountQuery, ke as useGetUnprocessedFailedWebhooksQuery, Ar as useGetUsageDashboardQuery, je as useInitiatePaymentCheckoutMutation, Pt as useInitiatePaymentMutation, ur as useInitiatePaymentSubscriptionsMutation, ht as useListCouponsQuery, B as usePayInvoiceMutation, pe as useProcessRefundMutation, he as useRetryRefundMutation, It as useSetBillingAddressMutation, Rt as useSetDefaultBillingAccountMutation, Jn as useSetDefaultBillingAccountSettingsMutation, _e as useSkipRefundMutation, Ne as useSpendCreditsCheckoutMutation, Bt as useSpendCreditsMutation, dr as useSpendCreditsSubscriptionsMutation, ue as useToggleAddOnMutation, kn as useTogglePlanMutation, fe as useUpdateAddOnDetailsMutation, Ht as useUpdateBillingAccountMutation, Xn as useUpdateBillingAccountSettingsMutation, pr as useUpdateBillingAccountSubscriptionsMutation, lt as useUpdateCouponMutation, ln as useUpdateDiscountMutation, Wt as useUpdatePaymentMethodDashboardMutation, jn as useUpdatePlanMutation, Bn as useUpdateQuotaTemplateMutation, ir as useUpdateSubscriptionSeatsMutation, _t as useValidateCouponLazyQuery, Kt as useVerifyPaymentMethodMutation, ye as useVoidInvoiceMutation };
|
|
3541
|
+
|
|
3542
|
+
//# sourceMappingURL=global-operations.js.map
|