@burdenoff/microfe-billing 2026.1030.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 (431) 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/PlanEditPage.js +90 -92
  256. package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
  257. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +3 -0
  258. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +1 -0
  259. package/dist/billing/modules/plans/pages/PlansListPage.d.ts +3 -0
  260. package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +1 -0
  261. package/dist/billing/modules/plans/pages/index.d.ts +12 -0
  262. package/dist/billing/modules/plans/pages/index.d.ts.map +1 -0
  263. package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts +3 -0
  264. package/dist/billing/modules/plans/utils/currencyPriceOverrides.d.ts.map +1 -0
  265. package/dist/billing/modules/plans/utils/planSelector.d.ts +3 -0
  266. package/dist/billing/modules/plans/utils/planSelector.d.ts.map +1 -0
  267. package/dist/billing/modules/promotions/index.d.ts +2 -0
  268. package/dist/billing/modules/promotions/index.d.ts.map +1 -0
  269. package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts +3 -0
  270. package/dist/billing/modules/promotions/pages/CreatePromotionPage.d.ts.map +1 -0
  271. package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts +3 -0
  272. package/dist/billing/modules/promotions/pages/PromotionsListPage.d.ts.map +1 -0
  273. package/dist/billing/modules/promotions/pages/index.d.ts +3 -0
  274. package/dist/billing/modules/promotions/pages/index.d.ts.map +1 -0
  275. package/dist/billing/modules/quota/hooks/index.d.ts +6 -0
  276. package/dist/billing/modules/quota/hooks/index.d.ts.map +1 -0
  277. package/dist/billing/modules/quota/hooks/useQuota.d.ts +132 -0
  278. package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +1 -0
  279. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +38 -0
  280. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +1 -0
  281. package/dist/billing/modules/quota/index.d.ts +6 -0
  282. package/dist/billing/modules/quota/index.d.ts.map +1 -0
  283. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts +3 -0
  284. package/dist/billing/modules/quota/pages/QuotaAssignFreePage.d.ts.map +1 -0
  285. package/dist/billing/modules/quota/pages/QuotaPage.d.ts +3 -0
  286. package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +1 -0
  287. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +3 -0
  288. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +1 -0
  289. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +3 -0
  290. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +1 -0
  291. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +3 -0
  292. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +1 -0
  293. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +3 -0
  294. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +1 -0
  295. package/dist/billing/modules/quota/pages/index.d.ts +10 -0
  296. package/dist/billing/modules/quota/pages/index.d.ts.map +1 -0
  297. package/dist/billing/modules/quota/utils/quotaSelector.d.ts +4 -0
  298. package/dist/billing/modules/quota/utils/quotaSelector.d.ts.map +1 -0
  299. package/dist/billing/modules/settings/index.d.ts +5 -0
  300. package/dist/billing/modules/settings/index.d.ts.map +1 -0
  301. package/dist/billing/modules/settings/pages/SettingsPage.d.ts +3 -0
  302. package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +1 -0
  303. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +3 -0
  304. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +1 -0
  305. package/dist/billing/modules/settings/pages/index.d.ts +6 -0
  306. package/dist/billing/modules/settings/pages/index.d.ts.map +1 -0
  307. package/dist/billing/modules/store/graphql/index.d.ts +6 -0
  308. package/dist/billing/modules/store/graphql/index.d.ts.map +1 -0
  309. package/dist/billing/modules/store/index.d.ts +6 -0
  310. package/dist/billing/modules/store/index.d.ts.map +1 -0
  311. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +10 -0
  312. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +1 -0
  313. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +11 -0
  314. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +1 -0
  315. package/dist/billing/modules/subscriptions/hooks/index.d.ts +6 -0
  316. package/dist/billing/modules/subscriptions/hooks/index.d.ts.map +1 -0
  317. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +91 -0
  318. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +1 -0
  319. package/dist/billing/modules/subscriptions/index.d.ts +7 -0
  320. package/dist/billing/modules/subscriptions/index.d.ts.map +1 -0
  321. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +3 -0
  322. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +1 -0
  323. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +3 -0
  324. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +1 -0
  325. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +3 -0
  326. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +1 -0
  327. package/dist/billing/modules/subscriptions/pages/index.d.ts +8 -0
  328. package/dist/billing/modules/subscriptions/pages/index.d.ts.map +1 -0
  329. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts +7 -0
  330. package/dist/billing/modules/usage/components/WorkspaceAiSpendPanel.d.ts.map +1 -0
  331. package/dist/billing/modules/usage/hooks/index.d.ts +6 -0
  332. package/dist/billing/modules/usage/hooks/index.d.ts.map +1 -0
  333. package/dist/billing/modules/usage/hooks/useUsage.d.ts +316 -0
  334. package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +1 -0
  335. package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts +13 -0
  336. package/dist/billing/modules/usage/hooks/useWorkspaceAiSpend.d.ts.map +1 -0
  337. package/dist/billing/modules/usage/index.d.ts +6 -0
  338. package/dist/billing/modules/usage/index.d.ts.map +1 -0
  339. package/dist/billing/modules/usage/pages/UsagePage.d.ts +3 -0
  340. package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +1 -0
  341. package/dist/billing/modules/usage/pages/index.d.ts +5 -0
  342. package/dist/billing/modules/usage/pages/index.d.ts.map +1 -0
  343. package/dist/billing/modules/usage/utils/aiSpend.d.ts +71 -0
  344. package/dist/billing/modules/usage/utils/aiSpend.d.ts.map +1 -0
  345. package/dist/billing/providers/BillingProvider.d.ts +20 -0
  346. package/dist/billing/providers/BillingProvider.d.ts.map +1 -0
  347. package/dist/billing/shared/components/AccessDenied.d.ts +7 -0
  348. package/dist/billing/shared/components/AccessDenied.d.ts.map +1 -0
  349. package/dist/billing/shared/components/ActorIdentity.d.ts +9 -0
  350. package/dist/billing/shared/components/ActorIdentity.d.ts.map +1 -0
  351. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +10 -0
  352. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +1 -0
  353. package/dist/billing/shared/components/EmptyState.d.ts +10 -0
  354. package/dist/billing/shared/components/EmptyState.d.ts.map +1 -0
  355. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +10 -0
  356. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +1 -0
  357. package/dist/billing/shared/components/PageHeader.d.ts +10 -0
  358. package/dist/billing/shared/components/PageHeader.d.ts.map +1 -0
  359. package/dist/billing/shared/components/PushPermissionNudge.d.ts +7 -0
  360. package/dist/billing/shared/components/PushPermissionNudge.d.ts.map +1 -0
  361. package/dist/billing/shared/components/ServerError.d.ts +10 -0
  362. package/dist/billing/shared/components/ServerError.d.ts.map +1 -0
  363. package/dist/billing/shared/components/StatCard.d.ts +14 -0
  364. package/dist/billing/shared/components/StatCard.d.ts.map +1 -0
  365. package/dist/billing/shared/components/index.d.ts +13 -0
  366. package/dist/billing/shared/components/index.d.ts.map +1 -0
  367. package/dist/billing/shared/hooks/index.d.ts +4 -0
  368. package/dist/billing/shared/hooks/index.d.ts.map +1 -0
  369. package/dist/billing/shared/hooks/useActorProfiles.d.ts +17 -0
  370. package/dist/billing/shared/hooks/useActorProfiles.d.ts.map +1 -0
  371. package/dist/billing/shared/hooks/useTr.d.ts +17 -0
  372. package/dist/billing/shared/hooks/useTr.d.ts.map +1 -0
  373. package/dist/billing/shared/index.d.ts +9 -0
  374. package/dist/billing/shared/index.d.ts.map +1 -0
  375. package/dist/billing/shared/types/graphql.d.ts +946 -0
  376. package/dist/billing/shared/types/graphql.d.ts.map +1 -0
  377. package/dist/billing/shared/types/index.d.ts +101 -0
  378. package/dist/billing/shared/types/index.d.ts.map +1 -0
  379. package/dist/billing/shared/ui/Card.d.ts +17 -0
  380. package/dist/billing/shared/ui/Card.d.ts.map +1 -0
  381. package/dist/billing/shared/ui/MetricCard.d.ts +20 -0
  382. package/dist/billing/shared/ui/MetricCard.d.ts.map +1 -0
  383. package/dist/billing/shared/ui/ProgressBar.d.ts +15 -0
  384. package/dist/billing/shared/ui/ProgressBar.d.ts.map +1 -0
  385. package/dist/billing/shared/ui/SectionHeader.d.ts +15 -0
  386. package/dist/billing/shared/ui/SectionHeader.d.ts.map +1 -0
  387. package/dist/billing/shared/ui/StatusPill.d.ts +14 -0
  388. package/dist/billing/shared/ui/StatusPill.d.ts.map +1 -0
  389. package/dist/billing/shared/ui/index.d.ts +13 -0
  390. package/dist/billing/shared/ui/index.d.ts.map +1 -0
  391. package/dist/billing/shared/utils/directActivityGraphql.d.ts +12 -0
  392. package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +1 -0
  393. package/dist/billing/shared/utils/directBillingGraphql.d.ts +12 -0
  394. package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +1 -0
  395. package/dist/billing/shared/utils/error.d.ts +30 -0
  396. package/dist/billing/shared/utils/error.d.ts.map +1 -0
  397. package/dist/billing/shared/utils/format.d.ts +33 -0
  398. package/dist/billing/shared/utils/format.d.ts.map +1 -0
  399. package/dist/billing/shared/utils/gatewayGraphql.d.ts +14 -0
  400. package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +1 -0
  401. package/dist/billing/shared/utils/index.d.ts +14 -0
  402. package/dist/billing/shared/utils/index.d.ts.map +1 -0
  403. package/dist/billing/shared/utils/navigation.d.ts +2 -0
  404. package/dist/billing/shared/utils/navigation.d.ts.map +1 -0
  405. package/dist/billing/shared/utils/paymentTheme.d.ts +18 -0
  406. package/dist/billing/shared/utils/paymentTheme.d.ts.map +1 -0
  407. package/dist/billing/shared/utils/planFeatureQuantity.d.ts +40 -0
  408. package/dist/billing/shared/utils/planFeatureQuantity.d.ts.map +1 -0
  409. package/dist/billing/shared/utils/status.d.ts +27 -0
  410. package/dist/billing/shared/utils/status.d.ts.map +1 -0
  411. package/dist/billing/shared/utils/tokens.d.ts +156 -0
  412. package/dist/billing/shared/utils/tokens.d.ts.map +1 -0
  413. package/dist/billing/translations/en.d.ts +534 -0
  414. package/dist/billing/translations/en.d.ts.map +1 -0
  415. package/dist/billing/types/index.d.ts +275 -0
  416. package/dist/billing/types/index.d.ts.map +1 -0
  417. package/dist/dev/main.d.ts +1 -0
  418. package/dist/dev/main.d.ts.map +1 -0
  419. package/dist/generated/global-operations.d.ts +10856 -0
  420. package/dist/generated/global-operations.d.ts.map +1 -0
  421. package/dist/generated/global-types.d.ts +26958 -0
  422. package/dist/generated/global-types.d.ts.map +1 -0
  423. package/dist/generated/wspace-operations.d.ts +261 -0
  424. package/dist/generated/wspace-operations.d.ts.map +1 -0
  425. package/dist/generated/wspace-types.d.ts +49193 -0
  426. package/dist/generated/wspace-types.d.ts.map +1 -0
  427. package/dist/index.d.ts +8 -0
  428. package/dist/index.d.ts.map +1 -0
  429. package/dist/utils/nativeBridge.d.ts +3 -0
  430. package/dist/utils/nativeBridge.d.ts.map +1 -0
  431. package/package.json +2 -2
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ /**
3
+ * Legacy route adapter.
4
+ *
5
+ * Historical links still point at `/billing/store/:orderId`, while the real checkout
6
+ * flow now lives under `/billing/checkout/store/:storeOrderId` and is implemented by
7
+ * the shared Checkout page.
8
+ */
9
+ export declare const StoreCheckoutPage: FC;
10
+ //# sourceMappingURL=StoreCheckoutPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoreCheckoutPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/store/pages/StoreCheckoutPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAQ/B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { BillingSubscription } from '../../../shared/types';
3
+ interface ManageSeatsModalProps {
4
+ subscription: BillingSubscription;
5
+ onClose: () => void;
6
+ onConfirm: (seatCount: number) => Promise<void>;
7
+ isLoading?: boolean;
8
+ }
9
+ export declare const ManageSeatsModal: FC<ManageSeatsModalProps>;
10
+ export {};
11
+ //# sourceMappingURL=ManageSeatsModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ManageSeatsModal.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/subscriptions/components/ManageSeatsModal.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAUjE,UAAU,qBAAqB;IAC7B,YAAY,EAAE,mBAAmB,CAAC;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA4NtD,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Subscriptions Module - Hooks
3
+ * Re-exports all hooks for the Subscriptions module
4
+ */
5
+ export { useSubscription, useBillingAccount, useBillingAccounts, useDefaultBillingAccount, useSubscriptionsList, useSubscriptionUsageOverview, useSubscriptionMutations, usePaginatedSubscriptions, } from './useSubscriptions';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/subscriptions/hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,91 @@
1
+ import { BillingSubscription, BillingAccount, CreateBillingAccountInput, UpdateBillingAccountInput, InitiatePaymentInput, InitiatePaymentResponse, SpendCreditsInput, CancelSubscriptionInput, UpdateSubscriptionSeatsInput } from '../../../shared/types';
2
+ interface UseSubscriptionResult {
3
+ subscription: BillingSubscription | null;
4
+ isLoading: boolean;
5
+ error: Error | undefined;
6
+ refetch: () => Promise<void>;
7
+ }
8
+ interface UseBillingAccountResult {
9
+ billingAccount: BillingAccount | null;
10
+ subscriptions: BillingSubscription[];
11
+ isLoading: boolean;
12
+ error: Error | undefined;
13
+ refetch: () => Promise<void>;
14
+ }
15
+ interface UseSubscriptionsListResult {
16
+ subscriptions: BillingSubscription[];
17
+ activeSubscriptions: BillingSubscription[];
18
+ isLoading: boolean;
19
+ error: Error | undefined;
20
+ refetch: () => Promise<void>;
21
+ }
22
+ interface UseSubscriptionMutationsResult {
23
+ createBillingAccount: (input: CreateBillingAccountInput) => Promise<BillingAccount>;
24
+ updateBillingAccount: (input: UpdateBillingAccountInput) => Promise<BillingAccount>;
25
+ initiatePayment: (input: InitiatePaymentInput) => Promise<InitiatePaymentResponse>;
26
+ spendCredits: (input: SpendCreditsInput) => Promise<{
27
+ creditTransactionID: string;
28
+ }>;
29
+ cancelSubscription: (input: CancelSubscriptionInput) => Promise<BillingSubscription>;
30
+ updateSubscriptionSeats: (input: UpdateSubscriptionSeatsInput) => Promise<BillingSubscription>;
31
+ isCreating: boolean;
32
+ isUpdating: boolean;
33
+ isInitiatingPayment: boolean;
34
+ isSpendingCredits: boolean;
35
+ isCanceling: boolean;
36
+ isUpdatingSeats: boolean;
37
+ }
38
+ /**
39
+ * Hook for fetching a single subscription by ID
40
+ */
41
+ export declare function useSubscription(id: string | undefined, billingAccountId: string | undefined): UseSubscriptionResult;
42
+ /**
43
+ * Hook for fetching billing account by ID
44
+ */
45
+ export declare function useBillingAccount(id: string | undefined): UseBillingAccountResult;
46
+ /**
47
+ * Hook for fetching default billing account for an org
48
+ */
49
+ export declare function useDefaultBillingAccount(): UseBillingAccountResult;
50
+ /**
51
+ * Hook for listing subscriptions from a billing account
52
+ */
53
+ export declare function useSubscriptionsList(billingAccountId: string | undefined): UseSubscriptionsListResult;
54
+ /**
55
+ * Hook for subscription usage overview
56
+ */
57
+ export declare function useSubscriptionUsageOverview(billingAccountId: string | undefined, page?: number, pageSize?: number): {
58
+ subscriptionsWithQuotas: any;
59
+ isLoading: boolean;
60
+ error: Error | undefined;
61
+ refetch: () => Promise<void>;
62
+ };
63
+ /**
64
+ * Hook for subscription mutations
65
+ */
66
+ export declare function useSubscriptionMutations(): UseSubscriptionMutationsResult;
67
+ /**
68
+ * Hook for fetching all billing accounts for an org
69
+ */
70
+ export declare function useBillingAccounts(): {
71
+ billingAccounts: BillingAccount[];
72
+ isLoading: boolean;
73
+ error: Error | undefined;
74
+ refetch: () => Promise<void>;
75
+ };
76
+ /**
77
+ * Hook for fetching paginated subscriptions for a billing account
78
+ */
79
+ export declare function usePaginatedSubscriptions(billingAccountId: string | undefined, page?: number, pageSize?: number, search?: string): {
80
+ subscriptions: BillingSubscription[];
81
+ activeSubscriptions: BillingSubscription[];
82
+ totalCount: any;
83
+ page: any;
84
+ pageSize: any;
85
+ totalPages: any;
86
+ isLoading: boolean;
87
+ error: Error | undefined;
88
+ refetch: () => Promise<void>;
89
+ };
90
+ export {};
91
+ //# sourceMappingURL=useSubscriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSubscriptions.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/subscriptions/hooks/useSubscriptions.ts"],"names":[],"mappings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
1
+ /**
2
+ * Subscriptions Module
3
+ * Provides subscription management functionality
4
+ */
5
+ export * from './pages';
6
+ export * from './hooks';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/billing/modules/subscriptions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ export declare const SubscriptionDetailPage: FC;
3
+ //# sourceMappingURL=SubscriptionDetailPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionDetailPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/subscriptions/pages/SubscriptionDetailPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAyE1C,eAAO,MAAM,sBAAsB,EAAE,EAu0BpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ export declare const SubscriptionsListPage: FC;
3
+ //# sourceMappingURL=SubscriptionsListPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionsListPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/subscriptions/pages/SubscriptionsListPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA+B,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AA2B7D,eAAO,MAAM,qBAAqB,EAAE,EAkhBnC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ export declare const UpgradeSubscriptionPage: FC;
3
+ //# sourceMappingURL=UpgradeSubscriptionPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpgradeSubscriptionPage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAqB,MAAM,OAAO,CAAC;AA2NnD,eAAO,MAAM,uBAAuB,EAAE,EAsarC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Subscriptions Module - Pages
3
+ * Re-exports all page components
4
+ */
5
+ export { SubscriptionsListPage } from './SubscriptionsListPage';
6
+ export { SubscriptionDetailPage } from './SubscriptionDetailPage';
7
+ export { UpgradeSubscriptionPage } from './UpgradeSubscriptionPage';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/subscriptions/pages/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface WorkspaceAiSpendPanelProps {
3
+ workspaceId: string;
4
+ }
5
+ export declare const WorkspaceAiSpendPanel: FC<WorkspaceAiSpendPanelProps>;
6
+ export {};
7
+ //# sourceMappingURL=WorkspaceAiSpendPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceAiSpendPanel.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/usage/components/WorkspaceAiSpendPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAY,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAY1C,UAAU,0BAA0B;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CA8IhE,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Usage Module - Hooks
3
+ */
4
+ export { useUsageDashboard, useBillingAccountsForUsage, useBillingAccountQuotasSummary, useSubscriptionsWithQuotas, useQuotaUsageDetails, useQuotaAnalytics, useEnhancedUsagePage, } from './useUsage';
5
+ export type { AggregatedQuota, SubscriptionWithAggregatedQuotas } from './useUsage';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/usage/hooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAC1B,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAEpB,YAAY,EAAE,eAAe,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,316 @@
1
+ import { GetUsageRecordsQuery, GetUsageRecordsQueryVariables } from '../../../../generated/wspace-operations';
2
+ import { AnalyticsPeriod, QuotaStatus, UsageDashboard } from '../../../shared/types';
3
+ export interface WorkspaceQuotaAssignmentItem {
4
+ id: string;
5
+ workspaceId: string;
6
+ quotaName: string;
7
+ productId: string;
8
+ quotaMode: 'dedicated' | 'pooled';
9
+ billingAccountId: string | null;
10
+ subscriptionId: string | null;
11
+ limit: number | null;
12
+ used: number;
13
+ noLimit: boolean;
14
+ resetPeriod: string;
15
+ lastResetAt: string | null;
16
+ isActive: boolean;
17
+ createdAt: string;
18
+ }
19
+ export interface WorkspaceQuotaOverviewItem {
20
+ assignment: WorkspaceQuotaAssignmentItem;
21
+ liveStatus: WorkspaceQuotaStatusItem | null;
22
+ effectiveUsed: number;
23
+ remaining: number | null;
24
+ usagePercentage: number;
25
+ }
26
+ export interface AssignWorkspaceQuotaInput {
27
+ workspaceId: string;
28
+ quotaName: string;
29
+ productId: string;
30
+ quotaMode?: 'dedicated' | 'pooled';
31
+ billingAccountId?: string;
32
+ subscriptionId?: string;
33
+ limit?: number;
34
+ noLimit?: boolean;
35
+ resetPeriod?: string;
36
+ metadata?: Record<string, unknown>;
37
+ }
38
+ export interface MyWorkspaceOption {
39
+ id: string;
40
+ name: string;
41
+ }
42
+ interface UseMyWorkspacesResult {
43
+ workspaces: MyWorkspaceOption[];
44
+ isLoading: boolean;
45
+ error: Error | null;
46
+ }
47
+ /**
48
+ * The actor's real workspace list — used to let the user pick which
49
+ * workspace a plan/addon's quota should activate for. Orgs with a single
50
+ * workspace never need this (auto-activated server-side); orgs with 2+ do.
51
+ */
52
+ export declare function useMyWorkspaces(): UseMyWorkspacesResult;
53
+ interface UseWorkspaceQuotaOverviewResult {
54
+ overview: WorkspaceQuotaOverviewItem[];
55
+ isLoading: boolean;
56
+ error: Error | null;
57
+ refetch: () => void;
58
+ }
59
+ export declare function useWorkspaceQuotaOverview(workspaceId?: string, productId?: string): UseWorkspaceQuotaOverviewResult;
60
+ export interface ActivateSubscriptionForWorkspaceResult {
61
+ workspaceId: string;
62
+ assignedQuotas: number;
63
+ skippedQuotas: number;
64
+ }
65
+ interface UseActivateSubscriptionForWorkspaceResult {
66
+ activate: (subscriptionId: string, billingAccountId: string, workspaceId: string) => Promise<ActivateSubscriptionForWorkspaceResult | null>;
67
+ isLoading: boolean;
68
+ error: Error | null;
69
+ }
70
+ export declare function useActivateSubscriptionForWorkspace(): UseActivateSubscriptionForWorkspaceResult;
71
+ interface UseUnassignWorkspaceQuotaResult {
72
+ unassign: (id: string, workspaceId: string) => Promise<boolean>;
73
+ isLoading: boolean;
74
+ error: Error | null;
75
+ }
76
+ export declare function useUnassignWorkspaceQuota(): UseUnassignWorkspaceQuotaResult;
77
+ export interface WorkspaceQuotaStatusItem {
78
+ workspaceId: string;
79
+ quotaName: string;
80
+ productId: string;
81
+ currentValue: number;
82
+ limit: number | null;
83
+ noLimit: boolean;
84
+ scrapedAt: string;
85
+ }
86
+ export interface WorkspaceQuotaSnapshotItem {
87
+ id: string;
88
+ workspaceId: string;
89
+ quotaName: string;
90
+ productId: string;
91
+ value: number;
92
+ limit: number | null;
93
+ noLimit: boolean;
94
+ snapshotAt: string;
95
+ }
96
+ interface UseWorkspaceQuotaStatusesResult {
97
+ statuses: WorkspaceQuotaStatusItem[];
98
+ statusMap: Map<string, WorkspaceQuotaStatusItem>;
99
+ isLoading: boolean;
100
+ error: Error | null;
101
+ }
102
+ export declare function useWorkspaceQuotaStatuses(workspaceId?: string): UseWorkspaceQuotaStatusesResult;
103
+ interface UseWorkspaceQuotaHistoryResult {
104
+ snapshots: WorkspaceQuotaSnapshotItem[];
105
+ isLoading: boolean;
106
+ error: Error | null;
107
+ }
108
+ export declare function useWorkspaceQuotaHistory(workspaceId?: string, quotaName?: string, limit?: number): UseWorkspaceQuotaHistoryResult;
109
+ interface UseUsageDashboardParams {
110
+ billingAccountId?: string;
111
+ period?: AnalyticsPeriod;
112
+ }
113
+ interface UseUsageDashboardResult {
114
+ dashboard: UsageDashboard | null;
115
+ isLoading: boolean;
116
+ error: Error | null;
117
+ refetch: () => void;
118
+ }
119
+ export declare function useUsageDashboard({ billingAccountId, period, }: UseUsageDashboardParams): UseUsageDashboardResult;
120
+ /**
121
+ * Quota assignment from the API
122
+ */
123
+ interface QuotaAssignmentSummary {
124
+ id: string;
125
+ name: string;
126
+ unit: string;
127
+ quotaType: 'POOLED' | 'PRODUCT_SPECIFIC';
128
+ reusable: boolean;
129
+ limit: number;
130
+ limitLeft: number;
131
+ used: number;
132
+ usagePercentage: number;
133
+ noLimit: boolean;
134
+ subscriptionId?: string;
135
+ context?: Record<string, unknown> | null;
136
+ recentUsages: Array<{
137
+ id: string;
138
+ amount: number;
139
+ description: string;
140
+ timestamp: string;
141
+ tags?: Record<string, unknown>;
142
+ }>;
143
+ createdAt: string;
144
+ endtime: string;
145
+ }
146
+ /**
147
+ * Aggregated quota for display (multiple quota assignments with same name combined)
148
+ */
149
+ export interface AggregatedQuota {
150
+ name: string;
151
+ displayName?: string;
152
+ description?: string;
153
+ unit: string;
154
+ totalLimit: number;
155
+ totalUsed: number;
156
+ usagePercentage: number;
157
+ status: QuotaStatus;
158
+ quotaCount: number;
159
+ noLimit: boolean;
160
+ reusable: boolean;
161
+ /** True when usage comes from the activity-svc scraper, not billing recordUsage events. */
162
+ isCollectorBased: boolean;
163
+ quotaAssignments: QuotaAssignmentSummary[];
164
+ }
165
+ /**
166
+ * Subscription with aggregated quotas
167
+ */
168
+ export interface SubscriptionWithAggregatedQuotas {
169
+ id: string;
170
+ status: string;
171
+ planName?: string;
172
+ productId?: string;
173
+ createdAt: string;
174
+ aggregatedQuotas: AggregatedQuota[];
175
+ }
176
+ /**
177
+ * Hook to get billing accounts for the selector
178
+ */
179
+ interface UseBillingAccountsForUsageResult {
180
+ billingAccounts: Array<{
181
+ id: string;
182
+ name: string;
183
+ email: string;
184
+ currency: string;
185
+ creditAmount: number;
186
+ isActive: boolean;
187
+ isDefault: boolean;
188
+ }>;
189
+ isLoading: boolean;
190
+ error: Error | null;
191
+ }
192
+ export declare function useBillingAccountsForUsage(): UseBillingAccountsForUsageResult;
193
+ /**
194
+ * Hook to get billing account quotas summary with aggregation
195
+ * Only returns pooled quotas - subscription quotas come from useSubscriptionsWithQuotas
196
+ */
197
+ interface UseBillingAccountQuotasSummaryResult {
198
+ pooledQuotas: AggregatedQuota[];
199
+ isLoading: boolean;
200
+ error: Error | null;
201
+ refetch: () => void;
202
+ }
203
+ export declare function useBillingAccountQuotasSummary(billingAccountId: string | undefined, productId?: string): UseBillingAccountQuotasSummaryResult;
204
+ /**
205
+ * Hook to get subscriptions with their quotas grouped by status
206
+ * Uses lazy loading for past subscriptions and supports backend search
207
+ */
208
+ type ViewMode = 'active' | 'past' | 'all';
209
+ interface UseSubscriptionsWithQuotasOptions {
210
+ searchQuery?: string;
211
+ viewMode?: ViewMode;
212
+ productId?: string;
213
+ }
214
+ interface UseSubscriptionsWithQuotasResult {
215
+ activeSubscriptions: SubscriptionWithAggregatedQuotas[];
216
+ pastSubscriptions: SubscriptionWithAggregatedQuotas[];
217
+ isLoading: boolean;
218
+ isPastSubscriptionsLoading: boolean;
219
+ error: Error | null;
220
+ refetch: () => void;
221
+ loadMorePastSubscriptions: () => void;
222
+ hasMorePastSubscriptions: boolean;
223
+ isLoadingMorePast: boolean;
224
+ pastSubscriptionsCount: number;
225
+ }
226
+ export declare function useSubscriptionsWithQuotas(billingAccountId: string | undefined, options?: UseSubscriptionsWithQuotasOptions): UseSubscriptionsWithQuotasResult;
227
+ /**
228
+ * Hook to get quota usage details for drill-down using cursor-based pagination.
229
+ *
230
+ * The activity-svc API is cursor-based (limit / cursor → items / hasNextPage / nextCursor).
231
+ * Callers should maintain a cursor stack:
232
+ * - push nextCursor to go forward
233
+ * - pop to go back
234
+ * - pass null as cursor for the first page
235
+ */
236
+ export interface QuotaUsageDetail {
237
+ id: string;
238
+ amount: number;
239
+ description: string;
240
+ tags?: Record<string, unknown>;
241
+ productId?: string;
242
+ userId?: string;
243
+ timestamp: string;
244
+ lastUpdated?: string;
245
+ }
246
+ interface UseQuotaUsageDetailsResult {
247
+ usages: QuotaUsageDetail[];
248
+ hasNextPage: boolean;
249
+ nextCursor: string | null;
250
+ isLoading: boolean;
251
+ error: Error | null;
252
+ refetch: () => void;
253
+ }
254
+ type UsageRecord = GetUsageRecordsQuery['getUsageRecords']['items'][number];
255
+ export declare function buildUsageRecordsVariables(quotaAssignmentId: string | undefined, pageSize: number, cursor: string | null, workspaceId?: string): GetUsageRecordsQueryVariables;
256
+ export declare function mapUsageRecordToQuotaUsageDetail(record: UsageRecord): QuotaUsageDetail;
257
+ export declare function useQuotaUsageDetails(quotaAssignmentId: string | undefined, pageSize?: number, cursor?: string | null, workspaceId?: string): UseQuotaUsageDetailsResult;
258
+ /**
259
+ * Hook to get quota analytics
260
+ */
261
+ interface UseQuotaAnalyticsResult {
262
+ analytics: {
263
+ dailyUsage: Array<{
264
+ date: string;
265
+ usage: number;
266
+ count: number;
267
+ }>;
268
+ usageByType: Array<{
269
+ resourceType: string;
270
+ usage: number;
271
+ count: number;
272
+ percentage: number;
273
+ }>;
274
+ trends?: {
275
+ growthRate?: number;
276
+ predictedUsage?: number;
277
+ averageDailyUsage?: number;
278
+ };
279
+ peakUsage?: {
280
+ maxDailyUsage: number;
281
+ peakDate: string;
282
+ peakHour?: number;
283
+ };
284
+ } | null;
285
+ isLoading: boolean;
286
+ error: Error | null;
287
+ }
288
+ export declare function useQuotaAnalytics(quotaAssignmentId: string | undefined, period?: AnalyticsPeriod): UseQuotaAnalyticsResult;
289
+ /**
290
+ * Combined hook for the enhanced usage page
291
+ */
292
+ interface UseEnhancedUsagePageParams {
293
+ billingAccountId: string | undefined;
294
+ workspaceId?: string;
295
+ productId?: string;
296
+ period?: AnalyticsPeriod;
297
+ searchQuery?: string;
298
+ viewMode?: ViewMode;
299
+ }
300
+ interface UseEnhancedUsagePageResult {
301
+ dashboard: UsageDashboard | null;
302
+ pooledQuotas: AggregatedQuota[];
303
+ activeSubscriptions: SubscriptionWithAggregatedQuotas[];
304
+ pastSubscriptions: SubscriptionWithAggregatedQuotas[];
305
+ isLoading: boolean;
306
+ isPastSubscriptionsLoading: boolean;
307
+ error: Error | null;
308
+ refetch: () => void;
309
+ loadMorePastSubscriptions: () => void;
310
+ hasMorePastSubscriptions: boolean;
311
+ isLoadingMorePast: boolean;
312
+ pastSubscriptionsCount: number;
313
+ }
314
+ export declare function useEnhancedUsagePage({ billingAccountId, workspaceId, productId, period, searchQuery, viewMode, }: UseEnhancedUsagePageParams): UseEnhancedUsagePageResult;
315
+ export {};
316
+ //# sourceMappingURL=useUsage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUsage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/usage/hooks/useUsage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EACnC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KA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iB,CAC/B,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,MAAM,GAAE,eAA8C,GACrD,uBAAuB,CAYzB;AAED;;GAEG;AACH,UAAU,0BAA0B;IAClC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,UAAU,0BAA0B;IAElC,SAAS,EAAE,cAAc,GAAG,IAAI,CAAC;IAGjC,YAAY,EAAE,eAAe,EAAE,CAAC;IAGhC,mBAAmB,EAAE,gCAAgC,EAAE,CAAC;IACxD,iBAAiB,EAAE,gCAAgC,EAAE,CAAC;IAGtD,SAAS,EAAE,OAAO,CAAC;IACnB,0BAA0B,EAAE,OAAO,CAAC;IACpC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAGpB,OAAO,EAAE,MAAM,IAAI,CAAC;IAGpB,yBAAyB,EAAE,MAAM,IAAI,CAAC;IACtC,wBAAwB,EAAE,OAAO,CAAC;IAClC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,wBAAgB,oBAAoB,CAAC,EACnC,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,MAAqC,EACrC,WAAW,EACX,QAAmB,GACpB,EAAE,0BAA0B,GAAG,0BAA0B,CAkEzD"}
@@ -0,0 +1,13 @@
1
+ import { AiSpendSummary, AiSpendWindow } from '../utils/aiSpend';
2
+ export declare const WORKSPACE_AI_SPEND_QUERY: import('graphql').DocumentNode;
3
+ export interface UseWorkspaceAiSpendResult {
4
+ summary: AiSpendSummary | null;
5
+ truncated: boolean;
6
+ isLoading: boolean;
7
+ /** The caller may not read this workspace's AI usage; render nothing. */
8
+ isForbidden: boolean;
9
+ error: Error | null;
10
+ refetch: () => void;
11
+ }
12
+ export declare function useWorkspaceAiSpend(workspaceId: string | undefined, window: AiSpendWindow): UseWorkspaceAiSpendResult;
13
+ //# sourceMappingURL=useWorkspaceAiSpend.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWorkspaceAiSpend.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/usage/hooks/useWorkspaceAiSpend.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAE1B,eAAO,MAAM,wBAAwB,gCAiBpC,CAAC;AAWF,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,yEAAyE;IACzE,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,MAAM,EAAE,aAAa,GACpB,yBAAyB,CA6B3B"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Usage Module
3
+ */
4
+ export * from './pages';
5
+ export * from './hooks';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/billing/modules/usage/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ export declare const UsagePage: FC;
3
+ //# sourceMappingURL=UsagePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UsagePage.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/usage/pages/UsagePage.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAA8D,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AA0iC5F,eAAO,MAAM,SAAS,EAAE,EAirBvB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Usage Module - Pages
3
+ */
4
+ export { UsagePage } from './UsagePage';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/billing/modules/usage/pages/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}