@burdenoff/microfe-billing 2026.1031.1 → 2026.1101.1

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.
Files changed (429) hide show
  1. package/dist/billing/BillingAdminRoutes.d.ts +6 -0
  2. package/dist/billing/BillingAdminRoutes.d.ts.map +1 -0
  3. package/dist/billing/BillingRoot.d.ts +36 -0
  4. package/dist/billing/BillingRoot.d.ts.map +1 -0
  5. package/dist/billing/BillingUserRoutes.d.ts +7 -0
  6. package/dist/billing/BillingUserRoutes.d.ts.map +1 -0
  7. package/dist/billing/hooks/useBillingAccountSelection.d.ts +36 -0
  8. package/dist/billing/hooks/useBillingAccountSelection.d.ts.map +1 -0
  9. package/dist/billing/hooks/useBillingEventEmitter.d.ts +7 -0
  10. package/dist/billing/hooks/useBillingEventEmitter.d.ts.map +1 -0
  11. package/dist/billing/hooks/useBillingNavigate.d.ts +30 -0
  12. package/dist/billing/hooks/useBillingNavigate.d.ts.map +1 -0
  13. package/dist/billing/hooks/useBillingPermissions.d.ts +106 -0
  14. package/dist/billing/hooks/useBillingPermissions.d.ts.map +1 -0
  15. package/dist/billing/hooks/useDefaultBillingCurrency.d.ts +14 -0
  16. package/dist/billing/hooks/useDefaultBillingCurrency.d.ts.map +1 -0
  17. package/dist/billing/hooks/useProducts.d.ts +18 -0
  18. package/dist/billing/hooks/useProducts.d.ts.map +1 -0
  19. package/dist/billing/index.d.ts +31 -0
  20. package/dist/billing/index.d.ts.map +1 -0
  21. package/dist/billing/lib/native-purchases.d.ts +10 -0
  22. package/dist/billing/lib/native-purchases.d.ts.map +1 -0
  23. package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts +3 -0
  24. package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts.map +1 -0
  25. package/dist/billing/modules/addons/hooks/index.d.ts +8 -0
  26. package/dist/billing/modules/addons/hooks/index.d.ts.map +1 -0
  27. package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts +23 -0
  28. package/dist/billing/modules/addons/hooks/useAddonPurchaseEligibility.d.ts.map +1 -0
  29. package/dist/billing/modules/addons/hooks/useAddons.d.ts +54 -0
  30. package/dist/billing/modules/addons/hooks/useAddons.d.ts.map +1 -0
  31. package/dist/billing/modules/addons/index.d.ts +7 -0
  32. package/dist/billing/modules/addons/index.d.ts.map +1 -0
  33. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts +3 -0
  34. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts.map +1 -0
  35. package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts +3 -0
  36. package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts.map +1 -0
  37. package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts +3 -0
  38. package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts.map +1 -0
  39. package/dist/billing/modules/addons/pages/AddonEditPage.d.ts +3 -0
  40. package/dist/billing/modules/addons/pages/AddonEditPage.d.ts.map +1 -0
  41. package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts +3 -0
  42. package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts.map +1 -0
  43. package/dist/billing/modules/addons/pages/AddonsListPage.d.ts +3 -0
  44. package/dist/billing/modules/addons/pages/AddonsListPage.d.ts.map +1 -0
  45. package/dist/billing/modules/addons/pages/index.d.ts +11 -0
  46. package/dist/billing/modules/addons/pages/index.d.ts.map +1 -0
  47. package/dist/billing/modules/addons/store/addonCartStore.d.ts +37 -0
  48. package/dist/billing/modules/addons/store/addonCartStore.d.ts.map +1 -0
  49. package/dist/billing/modules/affiliate/api.d.ts +101 -0
  50. package/dist/billing/modules/affiliate/api.d.ts.map +1 -0
  51. package/dist/billing/modules/affiliate/index.d.ts +2 -0
  52. package/dist/billing/modules/affiliate/index.d.ts.map +1 -0
  53. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts +3 -0
  54. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts.map +1 -0
  55. package/dist/billing/modules/analytics/index.d.ts +5 -0
  56. package/dist/billing/modules/analytics/index.d.ts.map +1 -0
  57. package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts +3 -0
  58. package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts.map +1 -0
  59. package/dist/billing/modules/analytics/pages/index.d.ts +5 -0
  60. package/dist/billing/modules/analytics/pages/index.d.ts.map +1 -0
  61. package/dist/billing/modules/billing/hooks/index.d.ts +12 -0
  62. package/dist/billing/modules/billing/hooks/index.d.ts.map +1 -0
  63. package/dist/billing/modules/billing/hooks/useInvoices.d.ts +76 -0
  64. package/dist/billing/modules/billing/hooks/useInvoices.d.ts.map +1 -0
  65. package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts +57 -0
  66. package/dist/billing/modules/billing/hooks/useOrderCallbacks.d.ts.map +1 -0
  67. package/dist/billing/modules/billing/hooks/usePayments.d.ts +61 -0
  68. package/dist/billing/modules/billing/hooks/usePayments.d.ts.map +1 -0
  69. package/dist/billing/modules/billing/hooks/useRefunds.d.ts +216 -0
  70. package/dist/billing/modules/billing/hooks/useRefunds.d.ts.map +1 -0
  71. package/dist/billing/modules/billing/hooks/useTransactions.d.ts +40 -0
  72. package/dist/billing/modules/billing/hooks/useTransactions.d.ts.map +1 -0
  73. package/dist/billing/modules/billing/index.d.ts +7 -0
  74. package/dist/billing/modules/billing/index.d.ts.map +1 -0
  75. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts +3 -0
  76. package/dist/billing/modules/billing/pages/BillingWebhookLogsPage.d.ts.map +1 -0
  77. package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts +3 -0
  78. package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts.map +1 -0
  79. package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts +3 -0
  80. package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts.map +1 -0
  81. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts +3 -0
  82. package/dist/billing/modules/billing/pages/OrderCallbackLogsPage.d.ts.map +1 -0
  83. package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts +3 -0
  84. package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts.map +1 -0
  85. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts +3 -0
  86. package/dist/billing/modules/billing/pages/RefundIssueLogsPage.d.ts.map +1 -0
  87. package/dist/billing/modules/billing/pages/RefundsPage.d.ts +3 -0
  88. package/dist/billing/modules/billing/pages/RefundsPage.d.ts.map +1 -0
  89. package/dist/billing/modules/billing/pages/TransactionsPage.d.ts +3 -0
  90. package/dist/billing/modules/billing/pages/TransactionsPage.d.ts.map +1 -0
  91. package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts +3 -0
  92. package/dist/billing/modules/billing/pages/UserRefundsPage.d.ts.map +1 -0
  93. package/dist/billing/modules/billing/pages/index.d.ts +14 -0
  94. package/dist/billing/modules/billing/pages/index.d.ts.map +1 -0
  95. package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts +13 -0
  96. package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts.map +1 -0
  97. package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts +13 -0
  98. package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts.map +1 -0
  99. package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts +13 -0
  100. package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts.map +1 -0
  101. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts +23 -0
  102. package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.d.ts.map +1 -0
  103. package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts +13 -0
  104. package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts.map +1 -0
  105. package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts +15 -0
  106. package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts.map +1 -0
  107. package/dist/billing/modules/checkout/components/CurrencySelector.d.ts +18 -0
  108. package/dist/billing/modules/checkout/components/CurrencySelector.d.ts.map +1 -0
  109. package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts +13 -0
  110. package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts.map +1 -0
  111. package/dist/billing/modules/checkout/components/OrderSummary.d.ts +36 -0
  112. package/dist/billing/modules/checkout/components/OrderSummary.d.ts.map +1 -0
  113. package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts +18 -0
  114. package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts.map +1 -0
  115. package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts +18 -0
  116. package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts.map +1 -0
  117. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts +34 -0
  118. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts.map +1 -0
  119. package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts +12 -0
  120. package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts.map +1 -0
  121. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts +12 -0
  122. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts.map +1 -0
  123. package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts +17 -0
  124. package/dist/billing/modules/checkout/components/StoreShippingSection.d.ts.map +1 -0
  125. package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts +15 -0
  126. package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts.map +1 -0
  127. package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts +25 -0
  128. package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts.map +1 -0
  129. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts +28 -0
  130. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts.map +1 -0
  131. package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts +11 -0
  132. package/dist/billing/modules/checkout/components/WebCheckoutRedirectView.d.ts.map +1 -0
  133. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts +30 -0
  134. package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.d.ts.map +1 -0
  135. package/dist/billing/modules/checkout/components/index.d.ts +24 -0
  136. package/dist/billing/modules/checkout/components/index.d.ts.map +1 -0
  137. package/dist/billing/modules/checkout/hooks/index.d.ts +9 -0
  138. package/dist/billing/modules/checkout/hooks/index.d.ts.map +1 -0
  139. package/dist/billing/modules/checkout/hooks/useCheckout.d.ts +78 -0
  140. package/dist/billing/modules/checkout/hooks/useCheckout.d.ts.map +1 -0
  141. package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts +25 -0
  142. package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts.map +1 -0
  143. package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts +19 -0
  144. package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts.map +1 -0
  145. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts +59 -0
  146. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts.map +1 -0
  147. package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts +122 -0
  148. package/dist/billing/modules/checkout/hooks/useStoreShipping.d.ts.map +1 -0
  149. package/dist/billing/modules/checkout/index.d.ts +24 -0
  150. package/dist/billing/modules/checkout/index.d.ts.map +1 -0
  151. package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts +3 -0
  152. package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts.map +1 -0
  153. package/dist/billing/modules/checkout/pages/index.d.ts +5 -0
  154. package/dist/billing/modules/checkout/pages/index.d.ts.map +1 -0
  155. package/dist/billing/modules/checkout/types/index.d.ts +279 -0
  156. package/dist/billing/modules/checkout/types/index.d.ts.map +1 -0
  157. package/dist/billing/modules/checkout/utils/storeOrder.d.ts +19 -0
  158. package/dist/billing/modules/checkout/utils/storeOrder.d.ts.map +1 -0
  159. package/dist/billing/modules/coupons/index.d.ts +5 -0
  160. package/dist/billing/modules/coupons/index.d.ts.map +1 -0
  161. package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts +3 -0
  162. package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts.map +1 -0
  163. package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts +3 -0
  164. package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts.map +1 -0
  165. package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts +3 -0
  166. package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts.map +1 -0
  167. package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts +3 -0
  168. package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts.map +1 -0
  169. package/dist/billing/modules/coupons/pages/index.d.ts +8 -0
  170. package/dist/billing/modules/coupons/pages/index.d.ts.map +1 -0
  171. package/dist/billing/modules/credits/hooks/index.d.ts +5 -0
  172. package/dist/billing/modules/credits/hooks/index.d.ts.map +1 -0
  173. package/dist/billing/modules/credits/hooks/useCredits.d.ts +74 -0
  174. package/dist/billing/modules/credits/hooks/useCredits.d.ts.map +1 -0
  175. package/dist/billing/modules/credits/index.d.ts +6 -0
  176. package/dist/billing/modules/credits/index.d.ts.map +1 -0
  177. package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts +3 -0
  178. package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts.map +1 -0
  179. package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts +3 -0
  180. package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts.map +1 -0
  181. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts +3 -0
  182. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts.map +1 -0
  183. package/dist/billing/modules/credits/pages/CreditsPage.d.ts +3 -0
  184. package/dist/billing/modules/credits/pages/CreditsPage.d.ts.map +1 -0
  185. package/dist/billing/modules/credits/pages/index.d.ts +8 -0
  186. package/dist/billing/modules/credits/pages/index.d.ts.map +1 -0
  187. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts +15 -0
  188. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts.map +1 -0
  189. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts +71 -0
  190. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts.map +1 -0
  191. package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts +17 -0
  192. package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts.map +1 -0
  193. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts +12 -0
  194. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts.map +1 -0
  195. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts +16 -0
  196. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts.map +1 -0
  197. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts +28 -0
  198. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts.map +1 -0
  199. package/dist/billing/modules/dashboard/components/index.d.ts +10 -0
  200. package/dist/billing/modules/dashboard/components/index.d.ts.map +1 -0
  201. package/dist/billing/modules/dashboard/hooks/index.d.ts +6 -0
  202. package/dist/billing/modules/dashboard/hooks/index.d.ts.map +1 -0
  203. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts +16 -0
  204. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts.map +1 -0
  205. package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts +144 -0
  206. package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts.map +1 -0
  207. package/dist/billing/modules/dashboard/index.d.ts +8 -0
  208. package/dist/billing/modules/dashboard/index.d.ts.map +1 -0
  209. package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts +3 -0
  210. package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts.map +1 -0
  211. package/dist/billing/modules/dashboard/pages/index.d.ts +5 -0
  212. package/dist/billing/modules/dashboard/pages/index.d.ts.map +1 -0
  213. package/dist/billing/modules/discounts/index.d.ts +6 -0
  214. package/dist/billing/modules/discounts/index.d.ts.map +1 -0
  215. package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts +3 -0
  216. package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts.map +1 -0
  217. package/dist/billing/modules/discounts/pages/index.d.ts +6 -0
  218. package/dist/billing/modules/discounts/pages/index.d.ts.map +1 -0
  219. package/dist/billing/modules/earnings/api.d.ts +226 -0
  220. package/dist/billing/modules/earnings/api.d.ts.map +1 -0
  221. package/dist/billing/modules/earnings/index.d.ts +6 -0
  222. package/dist/billing/modules/earnings/index.d.ts.map +1 -0
  223. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts +3 -0
  224. package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.d.ts.map +1 -0
  225. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts +3 -0
  226. package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.d.ts.map +1 -0
  227. package/dist/billing/modules/earnings/pages/EarningsPage.d.ts +3 -0
  228. package/dist/billing/modules/earnings/pages/EarningsPage.d.ts.map +1 -0
  229. package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts +3 -0
  230. package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts.map +1 -0
  231. package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts +3 -0
  232. package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts.map +1 -0
  233. package/dist/billing/modules/plans/constants/enterprise.d.ts +20 -0
  234. package/dist/billing/modules/plans/constants/enterprise.d.ts.map +1 -0
  235. package/dist/billing/modules/plans/constants/featuredQuotas.d.ts +10 -0
  236. package/dist/billing/modules/plans/constants/featuredQuotas.d.ts.map +1 -0
  237. package/dist/billing/modules/plans/hooks/index.d.ts +7 -0
  238. package/dist/billing/modules/plans/hooks/index.d.ts.map +1 -0
  239. package/dist/billing/modules/plans/hooks/usePlans.d.ts +45 -0
  240. package/dist/billing/modules/plans/hooks/usePlans.d.ts.map +1 -0
  241. package/dist/billing/modules/plans/hooks/useQuotas.d.ts +26 -0
  242. package/dist/billing/modules/plans/hooks/useQuotas.d.ts.map +1 -0
  243. package/dist/billing/modules/plans/index.d.ts +7 -0
  244. package/dist/billing/modules/plans/index.d.ts.map +1 -0
  245. package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts +3 -0
  246. package/dist/billing/modules/plans/pages/PlanAssignFreePage.d.ts.map +1 -0
  247. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts +3 -0
  248. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts.map +1 -0
  249. package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts +3 -0
  250. package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts.map +1 -0
  251. package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts +3 -0
  252. package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts.map +1 -0
  253. package/dist/billing/modules/plans/pages/PlanEditPage.d.ts +3 -0
  254. package/dist/billing/modules/plans/pages/PlanEditPage.d.ts.map +1 -0
  255. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +3 -0
  256. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +1 -0
  257. package/dist/billing/modules/plans/pages/PlansListPage.d.ts +3 -0
  258. package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +1 -0
  259. package/dist/billing/modules/plans/pages/index.d.ts +12 -0
  260. package/dist/billing/modules/plans/pages/index.d.ts.map +1 -0
  261. package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts +3 -0
  262. package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts.map +1 -0
  263. package/dist/billing/modules/plans/utils/planSelector.d.ts +3 -0
  264. package/dist/billing/modules/plans/utils/planSelector.d.ts.map +1 -0
  265. package/dist/billing/modules/promotions/index.d.ts +2 -0
  266. package/dist/billing/modules/promotions/index.d.ts.map +1 -0
  267. package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts +3 -0
  268. package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts.map +1 -0
  269. package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts +3 -0
  270. package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts.map +1 -0
  271. package/dist/billing/modules/promotions/pages/index.d.ts +3 -0
  272. package/dist/billing/modules/promotions/pages/index.d.ts.map +1 -0
  273. package/dist/billing/modules/quota/hooks/index.d.ts +6 -0
  274. package/dist/billing/modules/quota/hooks/index.d.ts.map +1 -0
  275. package/dist/billing/modules/quota/hooks/useQuota.d.ts +132 -0
  276. package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +1 -0
  277. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +38 -0
  278. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +1 -0
  279. package/dist/billing/modules/quota/index.d.ts +6 -0
  280. package/dist/billing/modules/quota/index.d.ts.map +1 -0
  281. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts +3 -0
  282. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts.map +1 -0
  283. package/dist/billing/modules/quota/pages/QuotaPage.d.ts +3 -0
  284. package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +1 -0
  285. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +3 -0
  286. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +1 -0
  287. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +3 -0
  288. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +1 -0
  289. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +3 -0
  290. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +1 -0
  291. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +3 -0
  292. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +1 -0
  293. package/dist/billing/modules/quota/pages/index.d.ts +10 -0
  294. package/dist/billing/modules/quota/pages/index.d.ts.map +1 -0
  295. package/dist/billing/modules/quota/utils/quotaSelector.d.ts +4 -0
  296. package/dist/billing/modules/quota/utils/quotaSelector.d.ts.map +1 -0
  297. package/dist/billing/modules/settings/index.d.ts +5 -0
  298. package/dist/billing/modules/settings/index.d.ts.map +1 -0
  299. package/dist/billing/modules/settings/pages/SettingsPage.d.ts +3 -0
  300. package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +1 -0
  301. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +3 -0
  302. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +1 -0
  303. package/dist/billing/modules/settings/pages/index.d.ts +6 -0
  304. package/dist/billing/modules/settings/pages/index.d.ts.map +1 -0
  305. package/dist/billing/modules/store/graphql/index.d.ts +6 -0
  306. package/dist/billing/modules/store/graphql/index.d.ts.map +1 -0
  307. package/dist/billing/modules/store/index.d.ts +6 -0
  308. package/dist/billing/modules/store/index.d.ts.map +1 -0
  309. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +10 -0
  310. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +1 -0
  311. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +11 -0
  312. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +1 -0
  313. package/dist/billing/modules/subscriptions/hooks/index.d.ts +6 -0
  314. package/dist/billing/modules/subscriptions/hooks/index.d.ts.map +1 -0
  315. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +91 -0
  316. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +1 -0
  317. package/dist/billing/modules/subscriptions/index.d.ts +7 -0
  318. package/dist/billing/modules/subscriptions/index.d.ts.map +1 -0
  319. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +3 -0
  320. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +1 -0
  321. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +3 -0
  322. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +1 -0
  323. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +3 -0
  324. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +1 -0
  325. package/dist/billing/modules/subscriptions/pages/index.d.ts +8 -0
  326. package/dist/billing/modules/subscriptions/pages/index.d.ts.map +1 -0
  327. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts +7 -0
  328. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts.map +1 -0
  329. package/dist/billing/modules/usage/hooks/index.d.ts +6 -0
  330. package/dist/billing/modules/usage/hooks/index.d.ts.map +1 -0
  331. package/dist/billing/modules/usage/hooks/useUsage.d.ts +316 -0
  332. package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +1 -0
  333. package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts +13 -0
  334. package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts.map +1 -0
  335. package/dist/billing/modules/usage/index.d.ts +6 -0
  336. package/dist/billing/modules/usage/index.d.ts.map +1 -0
  337. package/dist/billing/modules/usage/pages/UsagePage.d.ts +3 -0
  338. package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +1 -0
  339. package/dist/billing/modules/usage/pages/index.d.ts +5 -0
  340. package/dist/billing/modules/usage/pages/index.d.ts.map +1 -0
  341. package/dist/billing/modules/usage/utils/aiSpend.d.ts +71 -0
  342. package/dist/billing/modules/usage/utils/aiSpend.d.ts.map +1 -0
  343. package/dist/billing/providers/BillingProvider.d.ts +20 -0
  344. package/dist/billing/providers/BillingProvider.d.ts.map +1 -0
  345. package/dist/billing/shared/components/AccessDenied.d.ts +7 -0
  346. package/dist/billing/shared/components/AccessDenied.d.ts.map +1 -0
  347. package/dist/billing/shared/components/ActorIdentity.d.ts +9 -0
  348. package/dist/billing/shared/components/ActorIdentity.d.ts.map +1 -0
  349. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +10 -0
  350. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +1 -0
  351. package/dist/billing/shared/components/EmptyState.d.ts +10 -0
  352. package/dist/billing/shared/components/EmptyState.d.ts.map +1 -0
  353. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +10 -0
  354. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +1 -0
  355. package/dist/billing/shared/components/PageHeader.d.ts +10 -0
  356. package/dist/billing/shared/components/PageHeader.d.ts.map +1 -0
  357. package/dist/billing/shared/components/PushPermissionNudge.d.ts +7 -0
  358. package/dist/billing/shared/components/PushPermissionNudge.d.ts.map +1 -0
  359. package/dist/billing/shared/components/ServerError.d.ts +10 -0
  360. package/dist/billing/shared/components/ServerError.d.ts.map +1 -0
  361. package/dist/billing/shared/components/StatCard.d.ts +14 -0
  362. package/dist/billing/shared/components/StatCard.d.ts.map +1 -0
  363. package/dist/billing/shared/components/index.d.ts +13 -0
  364. package/dist/billing/shared/components/index.d.ts.map +1 -0
  365. package/dist/billing/shared/hooks/index.d.ts +4 -0
  366. package/dist/billing/shared/hooks/index.d.ts.map +1 -0
  367. package/dist/billing/shared/hooks/useActorProfiles.d.ts +17 -0
  368. package/dist/billing/shared/hooks/useActorProfiles.d.ts.map +1 -0
  369. package/dist/billing/shared/hooks/useTr.d.ts +17 -0
  370. package/dist/billing/shared/hooks/useTr.d.ts.map +1 -0
  371. package/dist/billing/shared/index.d.ts +9 -0
  372. package/dist/billing/shared/index.d.ts.map +1 -0
  373. package/dist/billing/shared/types/graphql.d.ts +946 -0
  374. package/dist/billing/shared/types/graphql.d.ts.map +1 -0
  375. package/dist/billing/shared/types/index.d.ts +101 -0
  376. package/dist/billing/shared/types/index.d.ts.map +1 -0
  377. package/dist/billing/shared/ui/Card.d.ts +17 -0
  378. package/dist/billing/shared/ui/Card.d.ts.map +1 -0
  379. package/dist/billing/shared/ui/MetricCard.d.ts +20 -0
  380. package/dist/billing/shared/ui/MetricCard.d.ts.map +1 -0
  381. package/dist/billing/shared/ui/ProgressBar.d.ts +15 -0
  382. package/dist/billing/shared/ui/ProgressBar.d.ts.map +1 -0
  383. package/dist/billing/shared/ui/SectionHeader.d.ts +15 -0
  384. package/dist/billing/shared/ui/SectionHeader.d.ts.map +1 -0
  385. package/dist/billing/shared/ui/StatusPill.d.ts +14 -0
  386. package/dist/billing/shared/ui/StatusPill.d.ts.map +1 -0
  387. package/dist/billing/shared/ui/index.d.ts +13 -0
  388. package/dist/billing/shared/ui/index.d.ts.map +1 -0
  389. package/dist/billing/shared/utils/directActivityGraphql.d.ts +12 -0
  390. package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +1 -0
  391. package/dist/billing/shared/utils/directBillingGraphql.d.ts +12 -0
  392. package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +1 -0
  393. package/dist/billing/shared/utils/error.d.ts +30 -0
  394. package/dist/billing/shared/utils/error.d.ts.map +1 -0
  395. package/dist/billing/shared/utils/format.d.ts +33 -0
  396. package/dist/billing/shared/utils/format.d.ts.map +1 -0
  397. package/dist/billing/shared/utils/gatewayGraphql.d.ts +14 -0
  398. package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +1 -0
  399. package/dist/billing/shared/utils/index.d.ts +14 -0
  400. package/dist/billing/shared/utils/index.d.ts.map +1 -0
  401. package/dist/billing/shared/utils/navigation.d.ts +2 -0
  402. package/dist/billing/shared/utils/navigation.d.ts.map +1 -0
  403. package/dist/billing/shared/utils/paymentTheme.d.ts +18 -0
  404. package/dist/billing/shared/utils/paymentTheme.d.ts.map +1 -0
  405. package/dist/billing/shared/utils/planFeatureQuantity.d.ts +40 -0
  406. package/dist/billing/shared/utils/planFeatureQuantity.d.ts.map +1 -0
  407. package/dist/billing/shared/utils/status.d.ts +27 -0
  408. package/dist/billing/shared/utils/status.d.ts.map +1 -0
  409. package/dist/billing/shared/utils/tokens.d.ts +156 -0
  410. package/dist/billing/shared/utils/tokens.d.ts.map +1 -0
  411. package/dist/billing/translations/en.d.ts +534 -0
  412. package/dist/billing/translations/en.d.ts.map +1 -0
  413. package/dist/billing/types/index.d.ts +275 -0
  414. package/dist/billing/types/index.d.ts.map +1 -0
  415. package/dist/dev/main.d.ts +1 -0
  416. package/dist/dev/main.d.ts.map +1 -0
  417. package/dist/generated/global-operations.d.ts +10856 -0
  418. package/dist/generated/global-operations.d.ts.map +1 -0
  419. package/dist/generated/global-types.d.ts +26958 -0
  420. package/dist/generated/global-types.d.ts.map +1 -0
  421. package/dist/generated/wspace-operations.d.ts +261 -0
  422. package/dist/generated/wspace-operations.d.ts.map +1 -0
  423. package/dist/generated/wspace-types.d.ts +49193 -0
  424. package/dist/generated/wspace-types.d.ts.map +1 -0
  425. package/dist/index.d.ts +8 -0
  426. package/dist/index.d.ts.map +1 -0
  427. package/dist/utils/nativeBridge.d.ts +3 -0
  428. package/dist/utils/nativeBridge.d.ts.map +1 -0
  429. package/package.json +2 -2
@@ -0,0 +1,946 @@
1
+ /**
2
+ * GraphQL Types for Billing Module
3
+ * Auto-generated types matching the backend billing service schema
4
+ */
5
+ export declare enum SubscriptionStatus {
6
+ ACTIVE = "active",
7
+ CANCELED = "canceled",
8
+ EXPIRED = "expired",
9
+ UPGRADED = "upgraded"
10
+ }
11
+ export declare enum InvoiceStatus {
12
+ DRAFT = "DRAFT",
13
+ OPEN = "OPEN",
14
+ PAID = "PAID",
15
+ VOID = "VOID",
16
+ UNCOLLECTIBLE = "UNCOLLECTIBLE"
17
+ }
18
+ export declare enum PaymentStatus {
19
+ PENDING = "PENDING",
20
+ SUCCEEDED = "SUCCEEDED",
21
+ FAILED = "FAILED",
22
+ CANCELED = "CANCELED",
23
+ REFUNDED = "REFUNDED"
24
+ }
25
+ export declare enum ChargeStatus {
26
+ PENDING = "PENDING",
27
+ SUCCEEDED = "SUCCEEDED",
28
+ FAILED = "FAILED",
29
+ REFUNDED = "REFUNDED"
30
+ }
31
+ export declare enum RefundStatus {
32
+ PENDING = "PENDING",
33
+ SUCCEEDED = "SUCCEEDED",
34
+ FAILED = "FAILED",
35
+ CANCELED = "CANCELED"
36
+ }
37
+ export declare enum PaymentMethodType {
38
+ CREDIT_CARD = "CREDIT_CARD",
39
+ DEBIT_CARD = "DEBIT_CARD",
40
+ BANK_TRANSFER = "BANK_TRANSFER",
41
+ PAYPAL = "PAYPAL",
42
+ CRYPTO = "CRYPTO",
43
+ WALLET = "WALLET",
44
+ NETBANKING = "NETBANKING"
45
+ }
46
+ export declare enum PlanDuration {
47
+ MONTHLY = "monthly",
48
+ YEARLY = "yearly"
49
+ }
50
+ export declare enum PricingModel {
51
+ FLAT_RATE = "FLAT_RATE",
52
+ PER_SEAT = "PER_SEAT"
53
+ }
54
+ export declare enum QuotaType {
55
+ POOLED = "POOLED",
56
+ PRODUCT_SPECIFIC = "PRODUCT_SPECIFIC"
57
+ }
58
+ export declare enum QuotaScope {
59
+ WORKSPACE = "WORKSPACE",
60
+ GLOBAL = "GLOBAL"
61
+ }
62
+ export declare enum QuotaResetPeriod {
63
+ NEVER = "NEVER",
64
+ DAILY = "DAILY",
65
+ MONTHLY = "MONTHLY"
66
+ }
67
+ export declare enum QuotaStatus {
68
+ HEALTHY = "HEALTHY",
69
+ WARNING = "WARNING",
70
+ CRITICAL = "CRITICAL",
71
+ EXHAUSTED = "EXHAUSTED",
72
+ INACTIVE = "INACTIVE"
73
+ }
74
+ export declare enum TransactionType {
75
+ PAYMENT = "payment",
76
+ REFUND = "refund",
77
+ ADJUSTMENT = "adjustment"
78
+ }
79
+ export declare enum TransactionStatus {
80
+ PENDING = "pending",
81
+ SUCCESS = "success",
82
+ FAILED = "failed"
83
+ }
84
+ export declare enum CreditTransactionType {
85
+ PURCHASE = "purchase",
86
+ USAGE = "usage",
87
+ ADJUSTMENT = "adjustment",
88
+ GRANTED = "granted"
89
+ }
90
+ export declare enum CreditTransactionStatus {
91
+ PENDING = "pending",
92
+ SUCCESS = "success",
93
+ FAILED = "failed",
94
+ REFUND = "refund"
95
+ }
96
+ export declare enum EntitlementAccessType {
97
+ FREE_ACCESS = "FREE_ACCESS",
98
+ DISCOUNT = "DISCOUNT"
99
+ }
100
+ export declare enum PurchaseType {
101
+ PLAN = "PLAN",
102
+ ADDON = "ADDON",
103
+ CREDITS = "CREDITS"
104
+ }
105
+ export declare enum PaymentProviderPreference {
106
+ AUTO = "AUTO",
107
+ STRIPE = "STRIPE",
108
+ RAZORPAY = "RAZORPAY"
109
+ }
110
+ export declare enum AnalyticsPeriod {
111
+ LAST_7_DAYS = "LAST_7_DAYS",
112
+ LAST_30_DAYS = "LAST_30_DAYS",
113
+ LAST_90_DAYS = "LAST_90_DAYS",
114
+ LAST_MONTH = "LAST_MONTH",
115
+ CURRENT_MONTH = "CURRENT_MONTH"
116
+ }
117
+ export declare enum UsageMetricType {
118
+ USERS = "USERS",
119
+ STORAGE = "STORAGE",
120
+ API_CALLS = "API_CALLS",
121
+ BANDWIDTH = "BANDWIDTH",
122
+ REQUESTS = "REQUESTS",
123
+ COMPUTE_HOURS = "COMPUTE_HOURS",
124
+ TRANSACTIONS = "TRANSACTIONS",
125
+ CUSTOM = "CUSTOM"
126
+ }
127
+ export interface BillingAccount {
128
+ id: string;
129
+ orgId: string;
130
+ name: string;
131
+ email: string;
132
+ billingEmail?: string;
133
+ currency: string;
134
+ creditAmount: number;
135
+ stripeCustomerId?: string;
136
+ razorpayCustomerId?: string;
137
+ defaultPaymentMethod?: string;
138
+ taxId?: string;
139
+ isActive: boolean;
140
+ isDefault?: boolean;
141
+ metadata?: Record<string, unknown>;
142
+ context?: Record<string, unknown>;
143
+ createdAt: string;
144
+ updatedAt: string;
145
+ subscriptions?: BillingSubscription[];
146
+ paymentMethods?: PaymentMethod[];
147
+ creditTransactions?: CreditTransaction[];
148
+ quotaAssignments?: QuotaAssignment[];
149
+ billingAddresses?: BillingAddress[];
150
+ transactions?: Transaction[];
151
+ }
152
+ export interface BillingAddress {
153
+ id: string;
154
+ billingAccountId: string;
155
+ orgId: string;
156
+ line1: string;
157
+ line2?: string;
158
+ city: string;
159
+ state?: string;
160
+ postalCode: string;
161
+ country: string;
162
+ metadata?: Record<string, unknown>;
163
+ context?: Record<string, unknown>;
164
+ createdAt: string;
165
+ updatedAt: string;
166
+ }
167
+ export interface Plan {
168
+ id: string;
169
+ productID: string;
170
+ name: string;
171
+ price: number;
172
+ currency: string;
173
+ currencyPrices?: Record<string, number>;
174
+ geoPricingOverrides?: GeoPricingOverrideInput[];
175
+ duration: PlanDuration;
176
+ pricingModel?: PricingModel;
177
+ pricePerSeat?: number;
178
+ minSeats?: number;
179
+ maxSeats?: number;
180
+ /** Max distinct workspaces one subscription to this plan can activate its
181
+ * WORKSPACE-scoped quotas against (each gets the full allotment, not
182
+ * divided). Unset/null = today's implicit single-workspace behavior. */
183
+ maxWorkspaces?: number;
184
+ isActive: boolean;
185
+ isPurchasable: boolean;
186
+ features?: SubscriptionFeatures[];
187
+ itemEntitlements?: SubscriptionEntitlement[];
188
+ subscriptions?: BillingSubscription[];
189
+ context?: Record<string, unknown>;
190
+ createdAt: string;
191
+ updatedAt: string;
192
+ product?: Product;
193
+ }
194
+ export interface SubscriptionFeatures {
195
+ id: string;
196
+ planId?: string;
197
+ addonId?: string;
198
+ quotaId?: string;
199
+ plan?: Plan;
200
+ addon?: Addon;
201
+ quota?: Quota;
202
+ context?: Record<string, unknown>;
203
+ }
204
+ export interface SubscriptionEntitlement {
205
+ id: string;
206
+ planId: string;
207
+ itemId: string;
208
+ accessType: EntitlementAccessType;
209
+ discountPercentage?: number;
210
+ plan?: Plan;
211
+ item?: {
212
+ id: string;
213
+ };
214
+ context?: Record<string, unknown>;
215
+ createdAt: string;
216
+ updatedAt: string;
217
+ }
218
+ export interface BillingSubscription {
219
+ id: string;
220
+ billingAccountId: string;
221
+ planId: string;
222
+ status: SubscriptionStatus;
223
+ startDate: string;
224
+ endDate: string;
225
+ autoRenewal: boolean;
226
+ recurrence: boolean;
227
+ seatCount?: number;
228
+ lastSeatChangeAt?: string;
229
+ lastBillingDate?: string;
230
+ nextBillingDate?: string;
231
+ lastRenewalDate?: string;
232
+ canceledAt?: string;
233
+ canceledBy?: string;
234
+ cancellationReason?: string;
235
+ stripeSubscriptionId?: string;
236
+ razorpaySubscriptionId?: string;
237
+ paymentGateway?: string;
238
+ assignedWorkspaceId?: string | null;
239
+ activatedWorkspaceIds?: string[];
240
+ context?: Record<string, unknown>;
241
+ createdAt: string;
242
+ updatedAt: string;
243
+ plan?: Plan;
244
+ billingAccount?: BillingAccount;
245
+ addonSubscriptions?: AddonSubscription[];
246
+ quotas?: QuotaAssignment[];
247
+ transactions?: Transaction[];
248
+ history?: SubscriptionHistory[];
249
+ }
250
+ export interface SubscriptionHistory {
251
+ id: string;
252
+ subscriptionId: string;
253
+ fromStatus: SubscriptionStatus;
254
+ toStatus: SubscriptionStatus;
255
+ reason?: string;
256
+ metadata?: Record<string, unknown>;
257
+ context?: Record<string, unknown>;
258
+ createdAt: string;
259
+ }
260
+ export interface Addon {
261
+ id: string;
262
+ productID: string;
263
+ name: string;
264
+ price: number;
265
+ currency: string;
266
+ currencyPrices?: Record<string, number>;
267
+ geoPricingOverrides?: GeoPricingOverrideInput[];
268
+ duration: PlanDuration;
269
+ isActive: boolean;
270
+ /** BOFF-9889: buying it needs a paid subscription to its product. */
271
+ requiresPaidSubscription?: boolean | null;
272
+ features?: SubscriptionFeatures[];
273
+ addonSubscriptions?: AddonSubscription[];
274
+ context?: Record<string, unknown>;
275
+ createdAt: string;
276
+ updatedAt: string;
277
+ product?: Product;
278
+ }
279
+ export interface AddonSubscription {
280
+ id: string;
281
+ addonId: string;
282
+ currentSubscriptionId: string;
283
+ quantity: number;
284
+ startDate: string;
285
+ endDate: string;
286
+ context?: Record<string, unknown>;
287
+ createdAt: string;
288
+ updatedAt: string;
289
+ addon?: Addon;
290
+ currentSubscription?: BillingSubscription;
291
+ }
292
+ export interface Invoice {
293
+ id: string;
294
+ orgId: string;
295
+ billingAccountId?: string;
296
+ subscriptionId?: string;
297
+ paymentId?: string;
298
+ invoiceNumber: string;
299
+ status: InvoiceStatus;
300
+ subtotal: number;
301
+ tax: number;
302
+ total: number;
303
+ amountPaid: number;
304
+ currency: string;
305
+ dueDate?: string;
306
+ paidAt?: string;
307
+ gatewayInvoiceId?: string;
308
+ invoiceUrl?: string;
309
+ pdfUrl?: string;
310
+ itemDescription?: string;
311
+ metadata?: Record<string, unknown>;
312
+ context?: Record<string, unknown>;
313
+ createdAt: string;
314
+ updatedAt: string;
315
+ items: InvoiceItem[];
316
+ subscription?: BillingSubscription;
317
+ payment?: Payment;
318
+ }
319
+ export interface InvoiceItem {
320
+ id: string;
321
+ invoiceId: string;
322
+ description: string;
323
+ quantity: number;
324
+ unitPrice: number;
325
+ amount: number;
326
+ metadata?: Record<string, unknown>;
327
+ context?: Record<string, unknown>;
328
+ }
329
+ export interface Payment {
330
+ id: string;
331
+ orgId: string;
332
+ transactionId?: string;
333
+ amount: number;
334
+ currency: string;
335
+ status: PaymentStatus;
336
+ method: PaymentMethodType;
337
+ provider?: string;
338
+ gatewayPaymentId?: string;
339
+ gatewayOrderId?: string;
340
+ failureReason?: string;
341
+ paidAt?: string;
342
+ metadata?: Record<string, unknown>;
343
+ context?: Record<string, unknown>;
344
+ createdAt: string;
345
+ updatedAt: string;
346
+ invoice?: Invoice;
347
+ }
348
+ export interface PaymentMethod {
349
+ id: string;
350
+ orgId: string;
351
+ billingAccountId?: string;
352
+ type: PaymentMethodType;
353
+ brand?: string;
354
+ last4?: string;
355
+ expiryMonth?: number;
356
+ expiryYear?: number;
357
+ isDefault: boolean;
358
+ isVerified: boolean;
359
+ verifiedAt?: string;
360
+ stripeCustomerId?: string;
361
+ stripePaymentMethodId?: string;
362
+ razorpayCustomerId?: string;
363
+ razorpayPaymentMethodId?: string;
364
+ metadata?: Record<string, unknown>;
365
+ context?: Record<string, unknown>;
366
+ createdAt: string;
367
+ updatedAt: string;
368
+ billingAccount?: BillingAccount;
369
+ transactions?: Transaction[];
370
+ }
371
+ export interface Charge {
372
+ id: string;
373
+ orgId: string;
374
+ amount: number;
375
+ currency: string;
376
+ status: ChargeStatus;
377
+ description?: string;
378
+ provider?: string;
379
+ gatewayChargeId?: string;
380
+ gatewayPaymentId?: string;
381
+ metadata?: Record<string, unknown>;
382
+ context?: Record<string, unknown>;
383
+ createdAt: string;
384
+ updatedAt: string;
385
+ refunds: Refund[];
386
+ }
387
+ export interface Refund {
388
+ id: string;
389
+ chargeId: string;
390
+ amount: number;
391
+ currency: string;
392
+ status: RefundStatus;
393
+ reason?: string;
394
+ provider?: string;
395
+ gatewayRefundId?: string;
396
+ processedAt?: string;
397
+ metadata?: Record<string, unknown>;
398
+ context?: Record<string, unknown>;
399
+ createdAt: string;
400
+ updatedAt: string;
401
+ charge?: Charge;
402
+ }
403
+ export interface Transaction {
404
+ id: string;
405
+ billingAccountId: string;
406
+ amount: number;
407
+ currency: string;
408
+ type: TransactionType;
409
+ status: TransactionStatus;
410
+ description?: string;
411
+ stripePaymentId?: string;
412
+ razorpayPaymentId?: string;
413
+ metadata?: Record<string, unknown>;
414
+ context?: Record<string, unknown>;
415
+ createdAt: string;
416
+ updatedAt: string;
417
+ }
418
+ export interface CreditTransaction {
419
+ id: string;
420
+ billingAccountId: string;
421
+ productId: string;
422
+ amount: number;
423
+ type: CreditTransactionType;
424
+ status: CreditTransactionStatus;
425
+ fromType?: CreditTransactionType | null;
426
+ payoutRequestId?: string | null;
427
+ entityType?: string;
428
+ entityId?: string;
429
+ transactionId?: string;
430
+ context?: Record<string, unknown>;
431
+ createdAt: string;
432
+ updatedAt: string;
433
+ billingAccount?: BillingAccount;
434
+ transaction?: Transaction;
435
+ }
436
+ export interface CreditBalanceByType {
437
+ purchased: number;
438
+ earned: number;
439
+ granted: number;
440
+ withdrawable: number;
441
+ total: number;
442
+ }
443
+ export interface CreditNote {
444
+ id: string;
445
+ orgId: string;
446
+ invoiceId?: string;
447
+ number: string;
448
+ amount: number;
449
+ currency: string;
450
+ reason?: string;
451
+ metadata?: Record<string, unknown>;
452
+ context?: Record<string, unknown>;
453
+ createdAt: string;
454
+ updatedAt: string;
455
+ }
456
+ export interface CreditRate {
457
+ id: string;
458
+ rateUSD: number;
459
+ effectiveFrom: string;
460
+ context?: Record<string, unknown>;
461
+ createdAt: string;
462
+ updatedAt: string;
463
+ }
464
+ export interface Quota {
465
+ id: string;
466
+ name: string;
467
+ limits: Record<string, unknown>;
468
+ quotaType: QuotaType;
469
+ reusable: boolean;
470
+ resetPeriod: QuotaResetPeriod;
471
+ isActive: boolean;
472
+ scope?: QuotaScope;
473
+ subscriptions?: SubscriptionFeatures[];
474
+ context?: Record<string, unknown>;
475
+ createdAt: string;
476
+ updatedAt: string;
477
+ }
478
+ export interface QuotaAssignment {
479
+ id: string;
480
+ billingAccountId?: string;
481
+ subscriptionId?: string;
482
+ name: string;
483
+ limits: Record<string, unknown>;
484
+ quotaType: QuotaType;
485
+ reusable: boolean;
486
+ currentUsageSum: number;
487
+ totalUsageCount: number;
488
+ endtime: string;
489
+ context?: Record<string, unknown>;
490
+ createdAt: string;
491
+ billingAccount?: BillingAccount;
492
+ subscription?: BillingSubscription;
493
+ usages?: Usage[];
494
+ recentUsages?: Usage[];
495
+ usageAnalytics?: QuotaUsageAnalytics;
496
+ }
497
+ export interface QuotaAssignmentWithAnalytics extends QuotaAssignment {
498
+ status: QuotaStatus;
499
+ healthScore: number;
500
+ usagePercentage: number;
501
+ limitLeft: number;
502
+ analytics: QuotaUsageAnalytics;
503
+ }
504
+ export interface QuotaAssignmentUsageSummary {
505
+ id: string;
506
+ name: string;
507
+ quotaType: QuotaType;
508
+ reusable: boolean;
509
+ limit: number;
510
+ limitLeft: number;
511
+ used: number;
512
+ usagePercentage: number;
513
+ noLimit: boolean;
514
+ subscriptionId?: string;
515
+ recentUsages: Usage[];
516
+ createdAt: string;
517
+ endtime: string;
518
+ }
519
+ export interface Usage {
520
+ id: string;
521
+ quotaAssignmentId: string;
522
+ userId?: string;
523
+ productId?: string;
524
+ amount: number;
525
+ description?: string;
526
+ tags?: Record<string, unknown>;
527
+ timestamp: string;
528
+ lastUpdated: string;
529
+ context?: Record<string, unknown>;
530
+ quotaAssignment?: QuotaAssignment;
531
+ user?: {
532
+ id: string;
533
+ };
534
+ }
535
+ export interface UsageRecord {
536
+ id: string;
537
+ orgId: string;
538
+ subscriptionId?: string;
539
+ metricType: UsageMetricType;
540
+ quantity: number;
541
+ unitCost?: number;
542
+ totalCost?: number;
543
+ timestamp: string;
544
+ metadata?: Record<string, unknown>;
545
+ context?: Record<string, unknown>;
546
+ createdAt: string;
547
+ }
548
+ export interface DailyUsage {
549
+ date: string;
550
+ usage: number;
551
+ count: number;
552
+ }
553
+ export interface PeakUsage {
554
+ peakDate: string;
555
+ maxDailyUsage: number;
556
+ peakHour?: number;
557
+ }
558
+ export interface UsageTrends {
559
+ averageDailyUsage?: number;
560
+ growthRate?: number;
561
+ predictedUsage?: number;
562
+ }
563
+ export interface UsageByType {
564
+ resourceType: string;
565
+ usage: number;
566
+ count: number;
567
+ percentage: number;
568
+ }
569
+ export interface QuotaUsageAnalytics {
570
+ dailyUsage: DailyUsage[];
571
+ usageByType: UsageByType[];
572
+ peakUsage?: PeakUsage;
573
+ trends?: UsageTrends;
574
+ }
575
+ export interface QuotaUsageSummary {
576
+ quotaId: string;
577
+ quotaName: string;
578
+ usage: number;
579
+ limit: number;
580
+ percentage: number;
581
+ status: QuotaStatus;
582
+ }
583
+ export interface UsageActivity {
584
+ id: string;
585
+ quotaName: string;
586
+ amount: number;
587
+ description: string;
588
+ tags?: Record<string, unknown>;
589
+ timestamp: string;
590
+ }
591
+ export interface UsageDashboard {
592
+ totalUsage: number;
593
+ totalQuotas: number;
594
+ activeQuotas: number;
595
+ healthyQuotas: number;
596
+ warningQuotas: number;
597
+ criticalQuotas: number;
598
+ exhaustedQuotas: number;
599
+ topUsageByQuota: QuotaUsageSummary[];
600
+ recentActivities: UsageActivity[];
601
+ overallTrends: UsageTrends;
602
+ }
603
+ export interface BillingAccountQuotasSummary {
604
+ billingAccountId: string;
605
+ totalUsage: number;
606
+ totalLimit: number;
607
+ pooledQuotas: QuotaAssignmentUsageSummary[];
608
+ subscriptionQuotas: QuotaAssignmentUsageSummary[];
609
+ }
610
+ export interface Product {
611
+ id: string;
612
+ name: string;
613
+ url?: string;
614
+ context?: Record<string, unknown>;
615
+ createdAt: string;
616
+ updatedAt: string;
617
+ }
618
+ export interface Discount {
619
+ id: string;
620
+ code: string;
621
+ type: string;
622
+ value: number;
623
+ currency?: string;
624
+ maxUses?: number;
625
+ usedCount: number;
626
+ validFrom: string;
627
+ validUntil?: string;
628
+ metadata?: Record<string, unknown>;
629
+ context?: Record<string, unknown>;
630
+ createdAt: string;
631
+ updatedAt: string;
632
+ transactions?: Transaction[];
633
+ }
634
+ export interface TaxRate {
635
+ id: string;
636
+ country: string;
637
+ state?: string;
638
+ rate: number;
639
+ description?: string;
640
+ active: boolean;
641
+ context?: Record<string, unknown>;
642
+ createdAt: string;
643
+ updatedAt: string;
644
+ }
645
+ export interface BillingNotification {
646
+ id: string;
647
+ orgId: string;
648
+ type: string;
649
+ message: string;
650
+ sentAt?: string;
651
+ metadata?: Record<string, unknown>;
652
+ context?: Record<string, unknown>;
653
+ createdAt: string;
654
+ }
655
+ export interface InitiatePaymentInput {
656
+ billingAccountId: string;
657
+ purchaseType: PurchaseType;
658
+ amount: number;
659
+ currency: string;
660
+ planId?: string;
661
+ addonId?: string;
662
+ quantity?: number;
663
+ addonIds?: string[];
664
+ quantities?: number[];
665
+ creditAmount?: number;
666
+ productId?: string;
667
+ provider?: PaymentProviderPreference;
668
+ paymentMethodId?: string;
669
+ saveCard?: boolean;
670
+ upgradeFromSubscriptionId?: string;
671
+ downgradeFromSubscriptionId?: string;
672
+ metadata?: Record<string, unknown>;
673
+ autoRenew?: boolean;
674
+ autoRenewPaymentMethodId?: string;
675
+ }
676
+ export interface InitiatePaymentResponse {
677
+ success: boolean;
678
+ provider: string;
679
+ paymentId?: string;
680
+ clientSecret?: string;
681
+ orderId?: string;
682
+ razorpayKeyId?: string;
683
+ razorpayCustomerId?: string;
684
+ prefillName?: string;
685
+ prefillEmail?: string;
686
+ prefillContact?: string;
687
+ subtotal: number;
688
+ taxAmount: number;
689
+ taxRate: number;
690
+ taxType: string;
691
+ taxBreakdown?: Record<string, unknown>;
692
+ jurisdiction: string;
693
+ total: number;
694
+ currency: string;
695
+ error?: string;
696
+ }
697
+ export interface VerifyPaymentMethodInput {
698
+ billingAccountId: string;
699
+ currency: string;
700
+ provider?: PaymentProviderPreference;
701
+ setAsDefault?: boolean;
702
+ metadata?: Record<string, unknown>;
703
+ }
704
+ export interface VerifyPaymentMethodResponse {
705
+ success: boolean;
706
+ provider: string;
707
+ orderId?: string;
708
+ razorpayKeyId?: string;
709
+ razorpayCustomerId?: string;
710
+ clientSecret?: string;
711
+ amount: number;
712
+ currency: string;
713
+ prefillName?: string;
714
+ prefillEmail?: string;
715
+ prefillContact?: string;
716
+ error?: string;
717
+ }
718
+ export interface PaginationInput {
719
+ page?: number;
720
+ limit?: number;
721
+ offset?: number;
722
+ cursor?: string;
723
+ }
724
+ export interface PaginatedResponse<T> {
725
+ items: T[];
726
+ page: number;
727
+ pageSize: number;
728
+ totalCount: number;
729
+ totalPages: number;
730
+ hasMore: boolean;
731
+ }
732
+ export interface PaginatedCreditTransactions {
733
+ creditTransactions: CreditTransaction[];
734
+ page: number;
735
+ pageSize: number;
736
+ totalCount: number;
737
+ hasMore: boolean;
738
+ }
739
+ export interface PaginatedQuotaAssignments {
740
+ quotaAssignments: QuotaAssignment[];
741
+ page: number;
742
+ pageSize: number;
743
+ totalCount: number;
744
+ totalPages: number;
745
+ }
746
+ export interface PaginatedQuotaAssignmentsWithAnalytics {
747
+ quotaAssignments: QuotaAssignmentWithAnalytics[];
748
+ page: number;
749
+ pageSize: number;
750
+ totalCount: number;
751
+ totalPages: number;
752
+ }
753
+ export interface PaginatedUsages {
754
+ usages: Usage[];
755
+ page: number;
756
+ pageSize: number;
757
+ totalCount: number;
758
+ totalPages: number;
759
+ }
760
+ export interface CreateBillingAccountInput {
761
+ name: string;
762
+ email: string;
763
+ billingEmail?: string;
764
+ currency?: string;
765
+ taxId?: string;
766
+ metadata?: Record<string, unknown>;
767
+ }
768
+ export interface UpdateBillingAccountInput {
769
+ id: string;
770
+ name?: string;
771
+ email?: string;
772
+ billingEmail?: string;
773
+ currency?: string;
774
+ taxId?: string;
775
+ isActive?: boolean;
776
+ metadata?: Record<string, unknown>;
777
+ }
778
+ export interface CreatePaymentMethodInput {
779
+ billingAccountId: string;
780
+ type: PaymentMethodType;
781
+ brand?: string;
782
+ last4?: string;
783
+ expiryMonth?: number;
784
+ expiryYear?: number;
785
+ isDefault?: boolean;
786
+ stripePaymentMethodId?: string;
787
+ razorpayPaymentMethodId?: string;
788
+ metadata?: Record<string, unknown>;
789
+ }
790
+ export interface SetBillingAddressInput {
791
+ billingAccountId: string;
792
+ line1: string;
793
+ line2?: string;
794
+ city: string;
795
+ state?: string;
796
+ postalCode: string;
797
+ country: string;
798
+ metadata?: Record<string, unknown>;
799
+ }
800
+ export interface CreatePlanInput {
801
+ productId: string;
802
+ name: string;
803
+ price: number;
804
+ currency?: string;
805
+ duration: PlanDuration;
806
+ isPurchasable?: boolean;
807
+ quotas: {
808
+ quotaId: string;
809
+ quantity: number;
810
+ }[];
811
+ geoPricingOverrides?: GeoPricingOverrideInput[];
812
+ currencyPriceOverrides?: CurrencyPriceOverrideInput[];
813
+ }
814
+ export interface UpdatePlanInput {
815
+ id: string;
816
+ name?: string;
817
+ price?: number;
818
+ currency?: string;
819
+ duration?: PlanDuration;
820
+ isActive?: boolean;
821
+ isPurchasable?: boolean;
822
+ quotas: {
823
+ quotaId: string;
824
+ quantity: number;
825
+ }[];
826
+ geoPricingOverrides?: GeoPricingOverrideInput[];
827
+ currencyPriceOverrides?: CurrencyPriceOverrideInput[];
828
+ }
829
+ export interface GeoPricingOverrideInput {
830
+ country?: string;
831
+ state?: string;
832
+ region?: string;
833
+ currency: string;
834
+ amount?: number;
835
+ perSeatAmount?: number;
836
+ }
837
+ export interface CurrencyPriceOverrideInput {
838
+ currency: string;
839
+ amount: number;
840
+ perSeatAmount?: number;
841
+ }
842
+ export interface CreateAddonInput {
843
+ productId: string;
844
+ name: string;
845
+ price: number;
846
+ currency: string;
847
+ duration: PlanDuration;
848
+ quotas: {
849
+ quotaId: string;
850
+ quantity: number;
851
+ }[];
852
+ geoPricingOverrides?: GeoPricingOverrideInput[];
853
+ currencyPriceOverrides?: CurrencyPriceOverrideInput[];
854
+ requiresPaidSubscription?: boolean;
855
+ }
856
+ export interface UpdateAddonInput {
857
+ id: string;
858
+ name?: string;
859
+ price?: number;
860
+ currency?: string;
861
+ duration?: PlanDuration;
862
+ isActive?: boolean;
863
+ requiresPaidSubscription?: boolean;
864
+ quotas: {
865
+ quotaId: string;
866
+ quantity: number;
867
+ }[];
868
+ geoPricingOverrides?: GeoPricingOverrideInput[];
869
+ currencyPriceOverrides?: CurrencyPriceOverrideInput[];
870
+ }
871
+ export interface CreateQuotaInput {
872
+ name: string;
873
+ limits: Record<string, unknown>;
874
+ quotaType?: QuotaType;
875
+ reusable: boolean;
876
+ resetPeriod?: QuotaResetPeriod;
877
+ context?: Record<string, unknown>;
878
+ }
879
+ export interface UpdateQuotaInput {
880
+ id: string;
881
+ name?: string;
882
+ limits?: Record<string, unknown>;
883
+ reusable?: boolean;
884
+ isActive: boolean;
885
+ resetPeriod?: QuotaResetPeriod;
886
+ context?: Record<string, unknown>;
887
+ }
888
+ export interface SpendCreditsInput {
889
+ billingAccountId: string;
890
+ planId?: string;
891
+ storeItemId?: string;
892
+ isAnnual?: boolean;
893
+ addOnIds?: {
894
+ id: string;
895
+ quantity?: number;
896
+ }[];
897
+ upgradeFromSubscriptionId?: string;
898
+ subscriptionId?: string;
899
+ /** Seat count for PER_SEAT plans. Credits charged = pricePerSeat × seatCount. */
900
+ seatCount?: number;
901
+ }
902
+ export interface CancelSubscriptionInput {
903
+ billingAccountId: string;
904
+ subscriptionId: string;
905
+ reason?: string;
906
+ canceledBy?: string;
907
+ }
908
+ export interface UpdateSubscriptionSeatsInput {
909
+ subscriptionId: string;
910
+ seatCount: number;
911
+ }
912
+ export interface CreateEntitlementInput {
913
+ planId: string;
914
+ itemId: string;
915
+ accessType: EntitlementAccessType;
916
+ discountPercentage?: number;
917
+ }
918
+ export interface UpdateEntitlementInput {
919
+ id: string;
920
+ accessType?: EntitlementAccessType;
921
+ discountPercentage?: number;
922
+ }
923
+ export interface DateRangeInput {
924
+ from?: string;
925
+ to?: string;
926
+ }
927
+ export interface AmountRangeInput {
928
+ min?: number;
929
+ max?: number;
930
+ }
931
+ export interface ContextFilterInput {
932
+ orgId?: string;
933
+ userId?: string;
934
+ workspaceId?: string;
935
+ organizationId?: string;
936
+ projectId?: string;
937
+ }
938
+ export interface ContextInput {
939
+ orgId?: string;
940
+ userId?: string;
941
+ workspaceId?: string;
942
+ organizationId?: string;
943
+ projectId?: string;
944
+ custom?: Record<string, unknown>;
945
+ }
946
+ //# sourceMappingURL=graphql.d.ts.map