@burdenoff/microfe-billing 2026.522.1 → 2026.525.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 (357) hide show
  1. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js +58 -88
  2. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
  3. package/package.json +1 -1
  4. package/dist/billing/BillingAdminRoutes.d.ts +0 -6
  5. package/dist/billing/BillingAdminRoutes.d.ts.map +0 -1
  6. package/dist/billing/BillingRoot.d.ts +0 -37
  7. package/dist/billing/BillingRoot.d.ts.map +0 -1
  8. package/dist/billing/BillingUserRoutes.d.ts +0 -7
  9. package/dist/billing/BillingUserRoutes.d.ts.map +0 -1
  10. package/dist/billing/constants/permissions.d.ts +0 -18
  11. package/dist/billing/constants/permissions.d.ts.map +0 -1
  12. package/dist/billing/hooks/useBillingAccountSelection.d.ts +0 -36
  13. package/dist/billing/hooks/useBillingAccountSelection.d.ts.map +0 -1
  14. package/dist/billing/hooks/useBillingEventEmitter.d.ts +0 -8
  15. package/dist/billing/hooks/useBillingEventEmitter.d.ts.map +0 -1
  16. package/dist/billing/hooks/useBillingNavigate.d.ts +0 -30
  17. package/dist/billing/hooks/useBillingNavigate.d.ts.map +0 -1
  18. package/dist/billing/hooks/useBillingPermissions.d.ts +0 -106
  19. package/dist/billing/hooks/useBillingPermissions.d.ts.map +0 -1
  20. package/dist/billing/hooks/useDefaultBillingCurrency.d.ts +0 -14
  21. package/dist/billing/hooks/useDefaultBillingCurrency.d.ts.map +0 -1
  22. package/dist/billing/index.d.ts +0 -31
  23. package/dist/billing/index.d.ts.map +0 -1
  24. package/dist/billing/lib/native-purchases.d.ts +0 -51
  25. package/dist/billing/lib/native-purchases.d.ts.map +0 -1
  26. package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts +0 -4
  27. package/dist/billing/modules/addons/components/FloatingCartDrawer.d.ts.map +0 -1
  28. package/dist/billing/modules/addons/components/index.d.ts +0 -5
  29. package/dist/billing/modules/addons/components/index.d.ts.map +0 -1
  30. package/dist/billing/modules/addons/hooks/index.d.ts +0 -6
  31. package/dist/billing/modules/addons/hooks/index.d.ts.map +0 -1
  32. package/dist/billing/modules/addons/hooks/useAddons.d.ts +0 -55
  33. package/dist/billing/modules/addons/hooks/useAddons.d.ts.map +0 -1
  34. package/dist/billing/modules/addons/index.d.ts +0 -7
  35. package/dist/billing/modules/addons/index.d.ts.map +0 -1
  36. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts +0 -4
  37. package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.d.ts.map +0 -1
  38. package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts +0 -4
  39. package/dist/billing/modules/addons/pages/AddonCreatePage.d.ts.map +0 -1
  40. package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts +0 -4
  41. package/dist/billing/modules/addons/pages/AddonDetailPage.d.ts.map +0 -1
  42. package/dist/billing/modules/addons/pages/AddonEditPage.d.ts +0 -4
  43. package/dist/billing/modules/addons/pages/AddonEditPage.d.ts.map +0 -1
  44. package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts +0 -4
  45. package/dist/billing/modules/addons/pages/AddonsBrowsePage.d.ts.map +0 -1
  46. package/dist/billing/modules/addons/pages/AddonsListPage.d.ts +0 -4
  47. package/dist/billing/modules/addons/pages/AddonsListPage.d.ts.map +0 -1
  48. package/dist/billing/modules/addons/pages/index.d.ts +0 -11
  49. package/dist/billing/modules/addons/pages/index.d.ts.map +0 -1
  50. package/dist/billing/modules/addons/store/addonCartStore.d.ts +0 -38
  51. package/dist/billing/modules/addons/store/addonCartStore.d.ts.map +0 -1
  52. package/dist/billing/modules/affiliate/api.d.ts +0 -101
  53. package/dist/billing/modules/affiliate/api.d.ts.map +0 -1
  54. package/dist/billing/modules/affiliate/index.d.ts +0 -2
  55. package/dist/billing/modules/affiliate/index.d.ts.map +0 -1
  56. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts +0 -4
  57. package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.d.ts.map +0 -1
  58. package/dist/billing/modules/analytics/index.d.ts +0 -5
  59. package/dist/billing/modules/analytics/index.d.ts.map +0 -1
  60. package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts +0 -4
  61. package/dist/billing/modules/analytics/pages/AnalyticsPage.d.ts.map +0 -1
  62. package/dist/billing/modules/analytics/pages/index.d.ts +0 -5
  63. package/dist/billing/modules/analytics/pages/index.d.ts.map +0 -1
  64. package/dist/billing/modules/billing/hooks/index.d.ts +0 -10
  65. package/dist/billing/modules/billing/hooks/index.d.ts.map +0 -1
  66. package/dist/billing/modules/billing/hooks/useInvoices.d.ts +0 -68
  67. package/dist/billing/modules/billing/hooks/useInvoices.d.ts.map +0 -1
  68. package/dist/billing/modules/billing/hooks/usePayments.d.ts +0 -62
  69. package/dist/billing/modules/billing/hooks/usePayments.d.ts.map +0 -1
  70. package/dist/billing/modules/billing/hooks/useRefunds.d.ts +0 -191
  71. package/dist/billing/modules/billing/hooks/useRefunds.d.ts.map +0 -1
  72. package/dist/billing/modules/billing/hooks/useTransactions.d.ts +0 -41
  73. package/dist/billing/modules/billing/hooks/useTransactions.d.ts.map +0 -1
  74. package/dist/billing/modules/billing/index.d.ts +0 -7
  75. package/dist/billing/modules/billing/index.d.ts.map +0 -1
  76. package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts +0 -4
  77. package/dist/billing/modules/billing/pages/InvoiceDetailPage.d.ts.map +0 -1
  78. package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts +0 -4
  79. package/dist/billing/modules/billing/pages/InvoicesListPage.d.ts.map +0 -1
  80. package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts +0 -4
  81. package/dist/billing/modules/billing/pages/PaymentMethodsPage.d.ts.map +0 -1
  82. package/dist/billing/modules/billing/pages/RefundsPage.d.ts +0 -4
  83. package/dist/billing/modules/billing/pages/RefundsPage.d.ts.map +0 -1
  84. package/dist/billing/modules/billing/pages/TransactionsPage.d.ts +0 -4
  85. package/dist/billing/modules/billing/pages/TransactionsPage.d.ts.map +0 -1
  86. package/dist/billing/modules/billing/pages/index.d.ts +0 -10
  87. package/dist/billing/modules/billing/pages/index.d.ts.map +0 -1
  88. package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts +0 -14
  89. package/dist/billing/modules/checkout/components/AutoPayToggle.d.ts.map +0 -1
  90. package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts +0 -14
  91. package/dist/billing/modules/checkout/components/BillingAccountSelector.d.ts.map +0 -1
  92. package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts +0 -14
  93. package/dist/billing/modules/checkout/components/CompactAutoPayToggle.d.ts.map +0 -1
  94. package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts +0 -14
  95. package/dist/billing/modules/checkout/components/CreditsAmountInput.d.ts.map +0 -1
  96. package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts +0 -16
  97. package/dist/billing/modules/checkout/components/CreditsPaymentOption.d.ts.map +0 -1
  98. package/dist/billing/modules/checkout/components/CurrencySelector.d.ts +0 -19
  99. package/dist/billing/modules/checkout/components/CurrencySelector.d.ts.map +0 -1
  100. package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts +0 -14
  101. package/dist/billing/modules/checkout/components/NativeCheckoutView.d.ts.map +0 -1
  102. package/dist/billing/modules/checkout/components/OrderSummary.d.ts +0 -22
  103. package/dist/billing/modules/checkout/components/OrderSummary.d.ts.map +0 -1
  104. package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts +0 -19
  105. package/dist/billing/modules/checkout/components/PaymentProviderSelector.d.ts.map +0 -1
  106. package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts +0 -19
  107. package/dist/billing/modules/checkout/components/PromoCodeInput.d.ts.map +0 -1
  108. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts +0 -25
  109. package/dist/billing/modules/checkout/components/RazorpayPaymentButton.d.ts.map +0 -1
  110. package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts +0 -13
  111. package/dist/billing/modules/checkout/components/SavedCardSelector.d.ts.map +0 -1
  112. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts +0 -13
  113. package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.d.ts.map +0 -1
  114. package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts +0 -16
  115. package/dist/billing/modules/checkout/components/StripePaymentForm.d.ts.map +0 -1
  116. package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts +0 -26
  117. package/dist/billing/modules/checkout/components/SubscriptionSelector.d.ts.map +0 -1
  118. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts +0 -23
  119. package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.d.ts.map +0 -1
  120. package/dist/billing/modules/checkout/components/index.d.ts +0 -20
  121. package/dist/billing/modules/checkout/components/index.d.ts.map +0 -1
  122. package/dist/billing/modules/checkout/graphql/index.d.ts +0 -6
  123. package/dist/billing/modules/checkout/graphql/index.d.ts.map +0 -1
  124. package/dist/billing/modules/checkout/hooks/index.d.ts +0 -9
  125. package/dist/billing/modules/checkout/hooks/index.d.ts.map +0 -1
  126. package/dist/billing/modules/checkout/hooks/useCheckout.d.ts +0 -69
  127. package/dist/billing/modules/checkout/hooks/useCheckout.d.ts.map +0 -1
  128. package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts +0 -26
  129. package/dist/billing/modules/checkout/hooks/useNativeCheckout.d.ts.map +0 -1
  130. package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts +0 -19
  131. package/dist/billing/modules/checkout/hooks/usePaymentProviders.d.ts.map +0 -1
  132. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts +0 -59
  133. package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.d.ts.map +0 -1
  134. package/dist/billing/modules/checkout/index.d.ts +0 -24
  135. package/dist/billing/modules/checkout/index.d.ts.map +0 -1
  136. package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts +0 -4
  137. package/dist/billing/modules/checkout/pages/CheckoutPage.d.ts.map +0 -1
  138. package/dist/billing/modules/checkout/pages/index.d.ts +0 -5
  139. package/dist/billing/modules/checkout/pages/index.d.ts.map +0 -1
  140. package/dist/billing/modules/checkout/types/index.d.ts +0 -270
  141. package/dist/billing/modules/checkout/types/index.d.ts.map +0 -1
  142. package/dist/billing/modules/checkout/utils/storeOrder.d.ts +0 -20
  143. package/dist/billing/modules/checkout/utils/storeOrder.d.ts.map +0 -1
  144. package/dist/billing/modules/coupons/index.d.ts +0 -5
  145. package/dist/billing/modules/coupons/index.d.ts.map +0 -1
  146. package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts +0 -4
  147. package/dist/billing/modules/coupons/pages/CouponDetailPage.d.ts.map +0 -1
  148. package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts +0 -4
  149. package/dist/billing/modules/coupons/pages/CouponsListPage.d.ts.map +0 -1
  150. package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts +0 -4
  151. package/dist/billing/modules/coupons/pages/CreateCouponPage.d.ts.map +0 -1
  152. package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts +0 -4
  153. package/dist/billing/modules/coupons/pages/EditCouponPage.d.ts.map +0 -1
  154. package/dist/billing/modules/coupons/pages/index.d.ts +0 -8
  155. package/dist/billing/modules/coupons/pages/index.d.ts.map +0 -1
  156. package/dist/billing/modules/credits/hooks/index.d.ts +0 -5
  157. package/dist/billing/modules/credits/hooks/index.d.ts.map +0 -1
  158. package/dist/billing/modules/credits/hooks/useCredits.d.ts +0 -75
  159. package/dist/billing/modules/credits/hooks/useCredits.d.ts.map +0 -1
  160. package/dist/billing/modules/credits/index.d.ts +0 -6
  161. package/dist/billing/modules/credits/index.d.ts.map +0 -1
  162. package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts +0 -4
  163. package/dist/billing/modules/credits/pages/AdminCreditsPage.d.ts.map +0 -1
  164. package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts +0 -4
  165. package/dist/billing/modules/credits/pages/CreditTransactionsPage.d.ts.map +0 -1
  166. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts +0 -4
  167. package/dist/billing/modules/credits/pages/CreditWithdrawalPage.d.ts.map +0 -1
  168. package/dist/billing/modules/credits/pages/CreditsPage.d.ts +0 -4
  169. package/dist/billing/modules/credits/pages/CreditsPage.d.ts.map +0 -1
  170. package/dist/billing/modules/credits/pages/index.d.ts +0 -8
  171. package/dist/billing/modules/credits/pages/index.d.ts.map +0 -1
  172. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts +0 -14
  173. package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.d.ts.map +0 -1
  174. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts +0 -111
  175. package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.d.ts.map +0 -1
  176. package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts +0 -16
  177. package/dist/billing/modules/dashboard/components/BillingAccountCard.d.ts.map +0 -1
  178. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts +0 -13
  179. package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.d.ts.map +0 -1
  180. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts +0 -15
  181. package/dist/billing/modules/dashboard/components/PaymentMethodsSection.d.ts.map +0 -1
  182. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts +0 -27
  183. package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.d.ts.map +0 -1
  184. package/dist/billing/modules/dashboard/components/index.d.ts +0 -10
  185. package/dist/billing/modules/dashboard/components/index.d.ts.map +0 -1
  186. package/dist/billing/modules/dashboard/hooks/index.d.ts +0 -6
  187. package/dist/billing/modules/dashboard/hooks/index.d.ts.map +0 -1
  188. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts +0 -17
  189. package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.d.ts.map +0 -1
  190. package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts +0 -145
  191. package/dist/billing/modules/dashboard/hooks/useDashboard.d.ts.map +0 -1
  192. package/dist/billing/modules/dashboard/index.d.ts +0 -8
  193. package/dist/billing/modules/dashboard/index.d.ts.map +0 -1
  194. package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts +0 -4
  195. package/dist/billing/modules/dashboard/pages/OverviewPage.d.ts.map +0 -1
  196. package/dist/billing/modules/dashboard/pages/index.d.ts +0 -5
  197. package/dist/billing/modules/dashboard/pages/index.d.ts.map +0 -1
  198. package/dist/billing/modules/discounts/index.d.ts +0 -6
  199. package/dist/billing/modules/discounts/index.d.ts.map +0 -1
  200. package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts +0 -4
  201. package/dist/billing/modules/discounts/pages/DiscountsListPage.d.ts.map +0 -1
  202. package/dist/billing/modules/discounts/pages/index.d.ts +0 -6
  203. package/dist/billing/modules/discounts/pages/index.d.ts.map +0 -1
  204. package/dist/billing/modules/earnings/api.d.ts +0 -135
  205. package/dist/billing/modules/earnings/api.d.ts.map +0 -1
  206. package/dist/billing/modules/earnings/index.d.ts +0 -4
  207. package/dist/billing/modules/earnings/index.d.ts.map +0 -1
  208. package/dist/billing/modules/earnings/pages/EarningsPage.d.ts +0 -4
  209. package/dist/billing/modules/earnings/pages/EarningsPage.d.ts.map +0 -1
  210. package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts +0 -4
  211. package/dist/billing/modules/earnings/pages/PayoutAdminPage.d.ts.map +0 -1
  212. package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts +0 -4
  213. package/dist/billing/modules/earnings/pages/PayoutsPage.d.ts.map +0 -1
  214. package/dist/billing/modules/plans/hooks/index.d.ts +0 -7
  215. package/dist/billing/modules/plans/hooks/index.d.ts.map +0 -1
  216. package/dist/billing/modules/plans/hooks/usePlans.d.ts +0 -46
  217. package/dist/billing/modules/plans/hooks/usePlans.d.ts.map +0 -1
  218. package/dist/billing/modules/plans/hooks/useQuotas.d.ts +0 -27
  219. package/dist/billing/modules/plans/hooks/useQuotas.d.ts.map +0 -1
  220. package/dist/billing/modules/plans/index.d.ts +0 -7
  221. package/dist/billing/modules/plans/index.d.ts.map +0 -1
  222. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts +0 -4
  223. package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.d.ts.map +0 -1
  224. package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts +0 -4
  225. package/dist/billing/modules/plans/pages/PlanCreatePage.d.ts.map +0 -1
  226. package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts +0 -4
  227. package/dist/billing/modules/plans/pages/PlanDetailPage.d.ts.map +0 -1
  228. package/dist/billing/modules/plans/pages/PlanEditPage.d.ts +0 -4
  229. package/dist/billing/modules/plans/pages/PlanEditPage.d.ts.map +0 -1
  230. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts +0 -4
  231. package/dist/billing/modules/plans/pages/PlansBrowsePage.d.ts.map +0 -1
  232. package/dist/billing/modules/plans/pages/PlansListPage.d.ts +0 -4
  233. package/dist/billing/modules/plans/pages/PlansListPage.d.ts.map +0 -1
  234. package/dist/billing/modules/plans/pages/index.d.ts +0 -11
  235. package/dist/billing/modules/plans/pages/index.d.ts.map +0 -1
  236. package/dist/billing/modules/quota/hooks/index.d.ts +0 -6
  237. package/dist/billing/modules/quota/hooks/index.d.ts.map +0 -1
  238. package/dist/billing/modules/quota/hooks/useQuota.d.ts +0 -102
  239. package/dist/billing/modules/quota/hooks/useQuota.d.ts.map +0 -1
  240. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts +0 -39
  241. package/dist/billing/modules/quota/hooks/useQuotaTemplates.d.ts.map +0 -1
  242. package/dist/billing/modules/quota/index.d.ts +0 -6
  243. package/dist/billing/modules/quota/index.d.ts.map +0 -1
  244. package/dist/billing/modules/quota/pages/QuotaPage.d.ts +0 -4
  245. package/dist/billing/modules/quota/pages/QuotaPage.d.ts.map +0 -1
  246. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts +0 -4
  247. package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.d.ts.map +0 -1
  248. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts +0 -4
  249. package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.d.ts.map +0 -1
  250. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts +0 -4
  251. package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.d.ts.map +0 -1
  252. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts +0 -4
  253. package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.d.ts.map +0 -1
  254. package/dist/billing/modules/quota/pages/index.d.ts +0 -9
  255. package/dist/billing/modules/quota/pages/index.d.ts.map +0 -1
  256. package/dist/billing/modules/settings/index.d.ts +0 -5
  257. package/dist/billing/modules/settings/index.d.ts.map +0 -1
  258. package/dist/billing/modules/settings/pages/SettingsPage.d.ts +0 -4
  259. package/dist/billing/modules/settings/pages/SettingsPage.d.ts.map +0 -1
  260. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts +0 -4
  261. package/dist/billing/modules/settings/pages/TeamPermissionsPage.d.ts.map +0 -1
  262. package/dist/billing/modules/settings/pages/index.d.ts +0 -6
  263. package/dist/billing/modules/settings/pages/index.d.ts.map +0 -1
  264. package/dist/billing/modules/store/graphql/index.d.ts +0 -6
  265. package/dist/billing/modules/store/graphql/index.d.ts.map +0 -1
  266. package/dist/billing/modules/store/index.d.ts +0 -6
  267. package/dist/billing/modules/store/index.d.ts.map +0 -1
  268. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts +0 -11
  269. package/dist/billing/modules/store/pages/StoreCheckoutPage.d.ts.map +0 -1
  270. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts +0 -12
  271. package/dist/billing/modules/subscriptions/components/ManageSeatsModal.d.ts.map +0 -1
  272. package/dist/billing/modules/subscriptions/hooks/index.d.ts +0 -6
  273. package/dist/billing/modules/subscriptions/hooks/index.d.ts.map +0 -1
  274. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts +0 -92
  275. package/dist/billing/modules/subscriptions/hooks/useSubscriptions.d.ts.map +0 -1
  276. package/dist/billing/modules/subscriptions/index.d.ts +0 -7
  277. package/dist/billing/modules/subscriptions/index.d.ts.map +0 -1
  278. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts +0 -4
  279. package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.d.ts.map +0 -1
  280. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts +0 -4
  281. package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.d.ts.map +0 -1
  282. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts +0 -4
  283. package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.d.ts.map +0 -1
  284. package/dist/billing/modules/subscriptions/pages/index.d.ts +0 -8
  285. package/dist/billing/modules/subscriptions/pages/index.d.ts.map +0 -1
  286. package/dist/billing/modules/usage/hooks/index.d.ts +0 -6
  287. package/dist/billing/modules/usage/hooks/index.d.ts.map +0 -1
  288. package/dist/billing/modules/usage/hooks/useUsage.d.ts +0 -241
  289. package/dist/billing/modules/usage/hooks/useUsage.d.ts.map +0 -1
  290. package/dist/billing/modules/usage/index.d.ts +0 -6
  291. package/dist/billing/modules/usage/index.d.ts.map +0 -1
  292. package/dist/billing/modules/usage/pages/UsagePage.d.ts +0 -4
  293. package/dist/billing/modules/usage/pages/UsagePage.d.ts.map +0 -1
  294. package/dist/billing/modules/usage/pages/index.d.ts +0 -5
  295. package/dist/billing/modules/usage/pages/index.d.ts.map +0 -1
  296. package/dist/billing/providers/BillingProvider.d.ts +0 -16
  297. package/dist/billing/providers/BillingProvider.d.ts.map +0 -1
  298. package/dist/billing/shared/components/AccessDenied.d.ts +0 -8
  299. package/dist/billing/shared/components/AccessDenied.d.ts.map +0 -1
  300. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts +0 -11
  301. package/dist/billing/shared/components/CurrencyPriceOverridesEditor.d.ts.map +0 -1
  302. package/dist/billing/shared/components/EmptyState.d.ts +0 -11
  303. package/dist/billing/shared/components/EmptyState.d.ts.map +0 -1
  304. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts +0 -11
  305. package/dist/billing/shared/components/GeoPricingOverridesEditor.d.ts.map +0 -1
  306. package/dist/billing/shared/components/PageHeader.d.ts +0 -11
  307. package/dist/billing/shared/components/PageHeader.d.ts.map +0 -1
  308. package/dist/billing/shared/components/ServerError.d.ts +0 -11
  309. package/dist/billing/shared/components/ServerError.d.ts.map +0 -1
  310. package/dist/billing/shared/components/StatCard.d.ts +0 -15
  311. package/dist/billing/shared/components/StatCard.d.ts.map +0 -1
  312. package/dist/billing/shared/components/index.d.ts +0 -11
  313. package/dist/billing/shared/components/index.d.ts.map +0 -1
  314. package/dist/billing/shared/index.d.ts +0 -8
  315. package/dist/billing/shared/index.d.ts.map +0 -1
  316. package/dist/billing/shared/types/graphql.d.ts +0 -928
  317. package/dist/billing/shared/types/graphql.d.ts.map +0 -1
  318. package/dist/billing/shared/types/index.d.ts +0 -96
  319. package/dist/billing/shared/types/index.d.ts.map +0 -1
  320. package/dist/billing/shared/utils/directActivityGraphql.d.ts +0 -13
  321. package/dist/billing/shared/utils/directActivityGraphql.d.ts.map +0 -1
  322. package/dist/billing/shared/utils/directBillingGraphql.d.ts +0 -13
  323. package/dist/billing/shared/utils/directBillingGraphql.d.ts.map +0 -1
  324. package/dist/billing/shared/utils/error.d.ts +0 -30
  325. package/dist/billing/shared/utils/error.d.ts.map +0 -1
  326. package/dist/billing/shared/utils/format.d.ts +0 -28
  327. package/dist/billing/shared/utils/format.d.ts.map +0 -1
  328. package/dist/billing/shared/utils/gatewayGraphql.d.ts +0 -15
  329. package/dist/billing/shared/utils/gatewayGraphql.d.ts.map +0 -1
  330. package/dist/billing/shared/utils/index.d.ts +0 -13
  331. package/dist/billing/shared/utils/index.d.ts.map +0 -1
  332. package/dist/billing/shared/utils/navigation.d.ts +0 -2
  333. package/dist/billing/shared/utils/navigation.d.ts.map +0 -1
  334. package/dist/billing/shared/utils/paymentTheme.d.ts +0 -18
  335. package/dist/billing/shared/utils/paymentTheme.d.ts.map +0 -1
  336. package/dist/billing/shared/utils/status.d.ts +0 -28
  337. package/dist/billing/shared/utils/status.d.ts.map +0 -1
  338. package/dist/billing/shared/utils/tokens.d.ts +0 -156
  339. package/dist/billing/shared/utils/tokens.d.ts.map +0 -1
  340. package/dist/billing/types/index.d.ts +0 -268
  341. package/dist/billing/types/index.d.ts.map +0 -1
  342. package/dist/billing/utils/index.d.ts +0 -128
  343. package/dist/billing/utils/index.d.ts.map +0 -1
  344. package/dist/dev/main.d.ts +0 -2
  345. package/dist/dev/main.d.ts.map +0 -1
  346. package/dist/generated/global-operations.d.ts +0 -9595
  347. package/dist/generated/global-operations.d.ts.map +0 -1
  348. package/dist/generated/global-types.d.ts +0 -22485
  349. package/dist/generated/global-types.d.ts.map +0 -1
  350. package/dist/generated/wspace-operations.d.ts +0 -61
  351. package/dist/generated/wspace-operations.d.ts.map +0 -1
  352. package/dist/generated/wspace-types.d.ts +0 -49106
  353. package/dist/generated/wspace-types.d.ts.map +0 -1
  354. package/dist/index.d.ts +0 -8
  355. package/dist/index.d.ts.map +0 -1
  356. package/dist/utils/nativeBridge.d.ts +0 -3
  357. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1,268 +0,0 @@
1
- import { MicrofrontendRootProps } from '@burdenoff/fe-libs/shared/types';
2
- import { NavItem, FooterItem } from '@burdenoff/fe-libs/shared/hooks/shell';
3
-
4
- export type { NavItem, FooterItem };
5
- /**
6
- * Props for the BillingRoot component
7
- */
8
- export interface BillingRootProps extends MicrofrontendRootProps {
9
- /**
10
- * Rendering mode: 'user' for end-user billing pages, 'admin' for system admin management pages.
11
- * Defaults to 'user'.
12
- */
13
- mode?: 'user' | 'admin';
14
- /**
15
- * Org ID for billing ownership
16
- */
17
- orgId: string;
18
- /**
19
- * Product identifier for the host application (e.g. "vibecontrols", "workspaces").
20
- * In user mode, plans and addons are filtered to only show items for this product.
21
- * In admin mode, this is ignored and all products' items are shown.
22
- */
23
- productId?: string;
24
- /**
25
- * Stripe publishable key for payment processing
26
- */
27
- stripePublishableKey?: string;
28
- /**
29
- * Razorpay key ID for payment processing
30
- */
31
- razorpayKey?: string;
32
- /**
33
- * Optional callback when a subscription is created
34
- */
35
- onSubscriptionCreate?: (subscription: SubscriptionSummary) => void;
36
- /**
37
- * Optional callback when a subscription is updated
38
- */
39
- onSubscriptionUpdate?: (subscription: SubscriptionSummary) => void;
40
- /**
41
- * Optional callback when a payment is processed
42
- */
43
- onPaymentProcess?: (payment: PaymentSummary) => void;
44
- /**
45
- * Optional function to register navigation items with the shell
46
- */
47
- registerNavItems?: (items: NavItem | NavItem[]) => () => void;
48
- /**
49
- * Optional function to register footer items with the shell
50
- */
51
- registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
52
- }
53
- /**
54
- * Subscription summary for callbacks
55
- */
56
- export interface SubscriptionSummary {
57
- id: string;
58
- planId: string;
59
- planName: string;
60
- status: SubscriptionStatus;
61
- amount: number;
62
- currency: string;
63
- interval: PlanInterval;
64
- }
65
- /**
66
- * Payment summary for callbacks
67
- */
68
- export interface PaymentSummary {
69
- id: string;
70
- amount: number;
71
- currency: string;
72
- status: PaymentStatus;
73
- gateway: PaymentGateway;
74
- }
75
- /**
76
- * Subscription status
77
- */
78
- export type SubscriptionStatus = 'ACTIVE' | 'TRIALING' | 'PAST_DUE' | 'CANCELED' | 'UNPAID' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'PAUSED' | 'UPGRADED';
79
- /**
80
- * Invoice status
81
- */
82
- export type InvoiceStatus = 'DRAFT' | 'OPEN' | 'PAID' | 'VOID' | 'UNCOLLECTIBLE';
83
- /**
84
- * Payment status
85
- */
86
- export type PaymentStatus = 'PENDING' | 'SUCCEEDED' | 'FAILED' | 'CANCELED' | 'REQUIRES_ACTION';
87
- /**
88
- * Payment method type
89
- */
90
- export type PaymentMethodType = 'CARD' | 'CREDIT_CARD' | 'DEBIT_CARD' | 'BANK_TRANSFER' | 'PAYPAL' | 'UPI' | 'CRYPTO';
91
- /**
92
- * Payment gateway
93
- */
94
- export type PaymentGateway = 'STRIPE' | 'RAZORPAY' | 'PAYPAL';
95
- /**
96
- * Plan interval
97
- */
98
- export type PlanInterval = 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY';
99
- /**
100
- * Pricing model
101
- */
102
- export type PricingModel = 'FLAT_RATE' | 'PER_UNIT' | 'TIERED' | 'VOLUME';
103
- /**
104
- * Transaction type
105
- */
106
- export type TransactionType = 'PAYMENT' | 'REFUND' | 'CREDIT' | 'CHARGE' | 'ADJUSTMENT';
107
- /**
108
- * Usage dimension
109
- */
110
- export type UsageDimension = 'seats' | 'api_calls' | 'storage' | 'bandwidth' | 'requests' | 'compute_hours';
111
- /**
112
- * Usage period
113
- */
114
- export type UsagePeriod = 'day' | 'week' | 'month' | 'year';
115
- /**
116
- * View mode for lists
117
- */
118
- export type ViewMode = 'grid' | 'list' | 'timeline';
119
- /**
120
- * Billing account
121
- */
122
- export interface BillingAccount {
123
- id: string;
124
- orgId: string;
125
- name: string;
126
- email: string;
127
- currency: string;
128
- creditBalance: number;
129
- stripeCustomerId: string | null;
130
- razorpayCustomerId: string | null;
131
- paypalCustomerId: string | null;
132
- defaultPaymentMethodId: string | null;
133
- createdAt: string;
134
- updatedAt: string;
135
- }
136
- /**
137
- * Plan
138
- */
139
- export interface Plan {
140
- id: string;
141
- name: string;
142
- description: string;
143
- pricingModel: PricingModel;
144
- amount: number;
145
- currency: string;
146
- interval: PlanInterval;
147
- trialDays: number;
148
- active: boolean;
149
- features: PlanFeature[];
150
- createdAt: string;
151
- }
152
- /**
153
- * Plan feature
154
- */
155
- export interface PlanFeature {
156
- id: string;
157
- name: string;
158
- limit: number | null;
159
- }
160
- /**
161
- * Subscription
162
- */
163
- export interface Subscription {
164
- id: string;
165
- billingAccountId: string;
166
- planId: string;
167
- status: SubscriptionStatus;
168
- currentPeriodStart: string;
169
- currentPeriodEnd: string;
170
- cancelAtPeriodEnd: boolean;
171
- canceledAt: string | null;
172
- trialStart: string | null;
173
- trialEnd: string | null;
174
- createdAt: string;
175
- updatedAt: string;
176
- plan: Plan;
177
- }
178
- /**
179
- * Invoice
180
- */
181
- export interface Invoice {
182
- id: string;
183
- billingAccountId: string;
184
- invoiceNumber: string;
185
- status: InvoiceStatus;
186
- subtotal: number;
187
- tax: number;
188
- total: number;
189
- currency: string;
190
- dueDate: string;
191
- paidAt: string | null;
192
- voidedAt: string | null;
193
- createdAt: string;
194
- lineItems: InvoiceLineItem[];
195
- payments: Payment[];
196
- }
197
- /**
198
- * Invoice line item
199
- */
200
- export interface InvoiceLineItem {
201
- id: string;
202
- description: string;
203
- quantity: number;
204
- unitAmount: number;
205
- amount: number;
206
- }
207
- /**
208
- * Payment
209
- */
210
- export interface Payment {
211
- id: string;
212
- amount: number;
213
- currency: string;
214
- status: PaymentStatus;
215
- gateway: PaymentGateway;
216
- gatewayPaymentId: string | null;
217
- createdAt: string;
218
- }
219
- /**
220
- * Payment method
221
- */
222
- export interface PaymentMethod {
223
- id: string;
224
- billingAccountId: string;
225
- type: PaymentMethodType;
226
- gateway: PaymentGateway;
227
- gatewayPaymentMethodId: string;
228
- last4: string;
229
- brand: string | null;
230
- expiryMonth: number | null;
231
- expiryYear: number | null;
232
- isDefault: boolean;
233
- createdAt: string;
234
- }
235
- /**
236
- * Usage record
237
- */
238
- export interface UsageRecord {
239
- id: string;
240
- dimension: string;
241
- quantity: number;
242
- timestamp: string;
243
- createdAt: string;
244
- }
245
- /**
246
- * Transaction
247
- */
248
- export interface Transaction {
249
- id: string;
250
- type: TransactionType;
251
- amount: number;
252
- currency: string;
253
- description: string;
254
- status: string;
255
- createdAt: string;
256
- }
257
- /**
258
- * Revenue metrics
259
- */
260
- export interface RevenueMetrics {
261
- mrr: number;
262
- arr: number;
263
- arpu: number;
264
- churn: number;
265
- activeSubscriptions: number;
266
- paymentSuccessRate: number;
267
- }
268
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/billing/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEjF,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,sBAAsB;IAC9D;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAExB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAEnE;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAEnE;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAErD;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,KAAK,MAAM,IAAI,CAAC;IAE9D;;OAEG;IACH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AAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;CAC5B"}
@@ -1,128 +0,0 @@
1
- import { PlanInterval, SubscriptionStatus, InvoiceStatus, PaymentStatus } from '../types';
2
-
3
- /**
4
- * Format currency amount
5
- */
6
- export declare function formatCurrency(amount: number, currency: string): string;
7
- /**
8
- * Format date
9
- */
10
- export declare function formatDate(date: string | Date): string;
11
- /**
12
- * Format date with time
13
- */
14
- export declare function formatDateTime(date: string | Date): string;
15
- /**
16
- * Calculate days until date
17
- */
18
- export declare function daysUntil(date: string | Date): number;
19
- /**
20
- * Check if date is in past
21
- */
22
- export declare function isPastDue(date: string | Date): boolean;
23
- /**
24
- * Get subscription status badge color
25
- */
26
- export declare function getSubscriptionStatusColor(status: SubscriptionStatus): string;
27
- /**
28
- * Get invoice status badge color
29
- */
30
- export declare function getInvoiceStatusColor(status: InvoiceStatus): string;
31
- /**
32
- * Get payment status badge color
33
- */
34
- export declare function getPaymentStatusColor(status: PaymentStatus): string;
35
- /**
36
- * Format plan interval for display
37
- */
38
- export declare function formatInterval(interval: PlanInterval): string;
39
- /**
40
- * Calculate proration amount
41
- */
42
- export declare function calculateProration(currentAmount: number, newAmount: number, daysRemaining: number, totalDays: number): number;
43
- /**
44
- * Calculate usage percentage
45
- */
46
- export declare function calculateUsagePercentage(used: number, limit: number | null): number;
47
- /**
48
- * Get usage color based on percentage
49
- */
50
- export declare function getUsageColor(percentage: number): string;
51
- /**
52
- * Format large numbers (1K, 1M, etc.)
53
- */
54
- export declare function formatNumber(num: number): string;
55
- /**
56
- * Format bytes to human-readable size
57
- */
58
- export declare function formatBytes(bytes: number): string;
59
- /**
60
- * Validate credit card expiry
61
- */
62
- export declare function isCardExpired(month: number, year: number): boolean;
63
- /**
64
- * Mask card number
65
- */
66
- export declare function maskCardNumber(last4: string, _brand?: string): string;
67
- /**
68
- * Get card brand icon name
69
- */
70
- export declare function getCardBrandIcon(brand: string | null): string;
71
- /**
72
- * Calculate MRR (Monthly Recurring Revenue)
73
- */
74
- export declare function calculateMRR(subscriptions: Array<{
75
- amount: number;
76
- interval: PlanInterval;
77
- }>): number;
78
- /**
79
- * Convert amount to monthly equivalent
80
- */
81
- export declare function convertToMonthlyAmount(amount: number, interval: PlanInterval): number;
82
- /**
83
- * Calculate ARR (Annual Recurring Revenue)
84
- */
85
- export declare function calculateARR(mrr: number): number;
86
- /**
87
- * Calculate ARPU (Average Revenue Per User)
88
- */
89
- export declare function calculateARPU(totalRevenue: number, userCount: number): number;
90
- /**
91
- * Calculate churn rate
92
- */
93
- export declare function calculateChurnRate(startSubscriptions: number, canceledSubscriptions: number): number;
94
- /**
95
- * Validate discount code format
96
- */
97
- export declare function validateDiscountCode(code: string): boolean;
98
- /**
99
- * Format percentage
100
- */
101
- export declare function formatPercentage(value: number, decimals?: number): string;
102
- /**
103
- * Get billing cycle days
104
- */
105
- export declare function getBillingCycleDays(interval: PlanInterval): number;
106
- /**
107
- * Sort by date (newest first)
108
- */
109
- export declare function sortByDateDesc<T extends {
110
- createdAt: string;
111
- }>(items: T[]): T[];
112
- /**
113
- * Sort by date (oldest first)
114
- */
115
- export declare function sortByDateAsc<T extends {
116
- createdAt: string;
117
- }>(items: T[]): T[];
118
- /**
119
- * Group items by month
120
- */
121
- export declare function groupByMonth<T extends {
122
- createdAt: string;
123
- }>(items: T[]): Record<string, T[]>;
124
- /**
125
- * Debounce function
126
- */
127
- export declare function debounce<T extends (...args: unknown[]) => void>(func: T, wait: number): (...args: Parameters<T>) => void;
128
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","source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