@zonastery/bursar 2.0.3 → 2.0.5

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 (376) hide show
  1. package/README.md +1 -1
  2. package/dist/billing/auto-recharge-port.d.ts +3 -2
  3. package/dist/billing/auto-recharge-port.d.ts.map +1 -1
  4. package/dist/billing/auto-recharge-port.js.map +1 -1
  5. package/dist/billing/auto-recharge-service.d.ts.map +1 -1
  6. package/dist/billing/auto-recharge-service.js +3 -3
  7. package/dist/billing/auto-recharge-service.js.map +1 -1
  8. package/dist/billing/billing-service.d.ts +3 -2
  9. package/dist/billing/billing-service.d.ts.map +1 -1
  10. package/dist/billing/billing-service.js +2 -10
  11. package/dist/billing/billing-service.js.map +1 -1
  12. package/dist/billing/billing-store.d.ts +6 -6
  13. package/dist/billing/billing-store.d.ts.map +1 -1
  14. package/dist/billing/billing-store.js.map +1 -1
  15. package/dist/billing/contracts.d.ts +8 -7
  16. package/dist/billing/contracts.d.ts.map +1 -1
  17. package/dist/billing/contracts.js.map +1 -1
  18. package/dist/billing/event-handlers.d.ts +5 -9
  19. package/dist/billing/event-handlers.d.ts.map +1 -1
  20. package/dist/billing/event-handlers.js +191 -285
  21. package/dist/billing/event-handlers.js.map +1 -1
  22. package/dist/billing/event-processor.d.ts +1 -1
  23. package/dist/billing/event-processor.d.ts.map +1 -1
  24. package/dist/billing/event-processor.js +32 -23
  25. package/dist/billing/event-processor.js.map +1 -1
  26. package/dist/billing/financial-event-handlers.d.ts +3 -9
  27. package/dist/billing/financial-event-handlers.d.ts.map +1 -1
  28. package/dist/billing/financial-event-handlers.js +10 -12
  29. package/dist/billing/financial-event-handlers.js.map +1 -1
  30. package/dist/billing/index.d.ts +1 -1
  31. package/dist/billing/index.d.ts.map +1 -1
  32. package/dist/billing/index.js.map +1 -1
  33. package/dist/billing/management.d.ts +3 -2
  34. package/dist/billing/management.d.ts.map +1 -1
  35. package/dist/billing/management.js.map +1 -1
  36. package/dist/billing/policy-window.js.map +1 -1
  37. package/dist/billing/postgres/repositories/auto-recharge.d.ts +2 -1
  38. package/dist/billing/postgres/repositories/auto-recharge.d.ts.map +1 -1
  39. package/dist/billing/postgres/repositories/auto-recharge.js +58 -40
  40. package/dist/billing/postgres/repositories/auto-recharge.js.map +1 -1
  41. package/dist/billing/postgres/repositories/customer.d.ts.map +1 -1
  42. package/dist/billing/postgres/repositories/customer.js.map +1 -1
  43. package/dist/billing/postgres/repositories/dispute.d.ts +2 -1
  44. package/dist/billing/postgres/repositories/dispute.d.ts.map +1 -1
  45. package/dist/billing/postgres/repositories/dispute.js.map +1 -1
  46. package/dist/billing/postgres/repositories/event.d.ts +2 -2
  47. package/dist/billing/postgres/repositories/event.d.ts.map +1 -1
  48. package/dist/billing/postgres/repositories/event.js.map +1 -1
  49. package/dist/billing/postgres/repositories/invoice.d.ts +2 -1
  50. package/dist/billing/postgres/repositories/invoice.d.ts.map +1 -1
  51. package/dist/billing/postgres/repositories/invoice.js +8 -12
  52. package/dist/billing/postgres/repositories/invoice.js.map +1 -1
  53. package/dist/billing/postgres/repositories/offer.d.ts.map +1 -1
  54. package/dist/billing/postgres/repositories/offer.js +5 -0
  55. package/dist/billing/postgres/repositories/offer.js.map +1 -1
  56. package/dist/billing/postgres/repositories/payment.d.ts +4 -4
  57. package/dist/billing/postgres/repositories/payment.d.ts.map +1 -1
  58. package/dist/billing/postgres/repositories/payment.js +1 -1
  59. package/dist/billing/postgres/repositories/payment.js.map +1 -1
  60. package/dist/billing/postgres/repositories/preferences.d.ts.map +1 -1
  61. package/dist/billing/postgres/repositories/preferences.js.map +1 -1
  62. package/dist/billing/postgres/repositories/refund.d.ts.map +1 -1
  63. package/dist/billing/postgres/repositories/refund.js.map +1 -1
  64. package/dist/billing/postgres/repositories/subscription-change.d.ts.map +1 -1
  65. package/dist/billing/postgres/repositories/subscription-change.js +1 -9
  66. package/dist/billing/postgres/repositories/subscription-change.js.map +1 -1
  67. package/dist/billing/postgres/repositories/subscription.d.ts +11 -11
  68. package/dist/billing/postgres/repositories/subscription.d.ts.map +1 -1
  69. package/dist/billing/postgres/repositories/subscription.js +29 -30
  70. package/dist/billing/postgres/repositories/subscription.js.map +1 -1
  71. package/dist/billing/postgres/repositories/topup.d.ts +1 -1
  72. package/dist/billing/postgres/repositories/topup.d.ts.map +1 -1
  73. package/dist/billing/postgres/repositories/topup.js.map +1 -1
  74. package/dist/billing/postgres/store.d.ts +6 -5
  75. package/dist/billing/postgres/store.d.ts.map +1 -1
  76. package/dist/billing/postgres/store.js +15 -13
  77. package/dist/billing/postgres/store.js.map +1 -1
  78. package/dist/billing/types/auto-recharge.d.ts +2 -1
  79. package/dist/billing/types/auto-recharge.d.ts.map +1 -1
  80. package/dist/billing/types/auto-recharge.js.map +1 -1
  81. package/dist/billing/types/documents.d.ts +2 -1
  82. package/dist/billing/types/documents.d.ts.map +1 -1
  83. package/dist/billing/types/documents.js.map +1 -1
  84. package/dist/billing/types/events.d.ts +3 -2
  85. package/dist/billing/types/events.d.ts.map +1 -1
  86. package/dist/billing/types/events.js +73 -39
  87. package/dist/billing/types/events.js.map +1 -1
  88. package/dist/billing/types/subscriptions.d.ts +4 -1
  89. package/dist/billing/types/subscriptions.d.ts.map +1 -1
  90. package/dist/billing/types/subscriptions.js.map +1 -1
  91. package/dist/breakdown.d.ts +3 -2
  92. package/dist/breakdown.d.ts.map +1 -1
  93. package/dist/breakdown.js.map +1 -1
  94. package/dist/bursar.d.ts.map +1 -1
  95. package/dist/bursar.js +4 -3
  96. package/dist/bursar.js.map +1 -1
  97. package/dist/catalog.d.ts.map +1 -1
  98. package/dist/catalog.js +45 -42
  99. package/dist/catalog.js.map +1 -1
  100. package/dist/commerce/errors.d.ts.map +1 -1
  101. package/dist/commerce/errors.js.map +1 -1
  102. package/dist/commerce/provider-registry.d.ts.map +1 -1
  103. package/dist/commerce/provider-registry.js +11 -6
  104. package/dist/commerce/provider-registry.js.map +1 -1
  105. package/dist/commerce/service.d.ts +1 -1
  106. package/dist/commerce/service.d.ts.map +1 -1
  107. package/dist/commerce/service.js +16 -22
  108. package/dist/commerce/service.js.map +1 -1
  109. package/dist/commerce/types.d.ts.map +1 -1
  110. package/dist/commerce/types.js.map +1 -1
  111. package/dist/config/parse-access.d.ts +5 -2
  112. package/dist/config/parse-access.d.ts.map +1 -1
  113. package/dist/config/parse-access.js +60 -41
  114. package/dist/config/parse-access.js.map +1 -1
  115. package/dist/config/parse-commerce.d.ts +2 -1
  116. package/dist/config/parse-commerce.d.ts.map +1 -1
  117. package/dist/config/parse-commerce.js +49 -29
  118. package/dist/config/parse-commerce.js.map +1 -1
  119. package/dist/config/parse-credits.d.ts +2 -1
  120. package/dist/config/parse-credits.d.ts.map +1 -1
  121. package/dist/config/parse-credits.js +39 -23
  122. package/dist/config/parse-credits.js.map +1 -1
  123. package/dist/config/parse-plans.d.ts +7 -2
  124. package/dist/config/parse-plans.d.ts.map +1 -1
  125. package/dist/config/parse-plans.js +49 -22
  126. package/dist/config/parse-plans.js.map +1 -1
  127. package/dist/config/parse-pricing.d.ts +2 -1
  128. package/dist/config/parse-pricing.d.ts.map +1 -1
  129. package/dist/config/parse-pricing.js +41 -31
  130. package/dist/config/parse-pricing.js.map +1 -1
  131. package/dist/config/parse-utils.d.ts +15 -11
  132. package/dist/config/parse-utils.d.ts.map +1 -1
  133. package/dist/config/parse-utils.js +90 -27
  134. package/dist/config/parse-utils.js.map +1 -1
  135. package/dist/config/types.d.ts.map +1 -1
  136. package/dist/config/types.js.map +1 -1
  137. package/dist/config.d.ts +6 -5
  138. package/dist/config.d.ts.map +1 -1
  139. package/dist/config.js +65 -35
  140. package/dist/config.js.map +1 -1
  141. package/dist/credits/amount.d.ts +1 -1
  142. package/dist/credits/amount.d.ts.map +1 -1
  143. package/dist/credits/amount.js +5 -4
  144. package/dist/credits/amount.js.map +1 -1
  145. package/dist/credits/catalog-runtime.d.ts.map +1 -1
  146. package/dist/credits/catalog-runtime.js +2 -3
  147. package/dist/credits/catalog-runtime.js.map +1 -1
  148. package/dist/credits/events.d.ts +12 -1
  149. package/dist/credits/events.d.ts.map +1 -1
  150. package/dist/credits/events.js +35 -21
  151. package/dist/credits/events.js.map +1 -1
  152. package/dist/credits/lease-workflow.d.ts +2 -1
  153. package/dist/credits/lease-workflow.d.ts.map +1 -1
  154. package/dist/credits/lease-workflow.js +3 -2
  155. package/dist/credits/lease-workflow.js.map +1 -1
  156. package/dist/credits/low-balance-monitor.d.ts +2 -1
  157. package/dist/credits/low-balance-monitor.d.ts.map +1 -1
  158. package/dist/credits/low-balance-monitor.js.map +1 -1
  159. package/dist/credits/postgres/repositories/analytics.d.ts +2 -2
  160. package/dist/credits/postgres/repositories/analytics.d.ts.map +1 -1
  161. package/dist/credits/postgres/repositories/analytics.js +14 -6
  162. package/dist/credits/postgres/repositories/analytics.js.map +1 -1
  163. package/dist/credits/postgres/repositories/balance.d.ts.map +1 -1
  164. package/dist/credits/postgres/repositories/balance.js +6 -6
  165. package/dist/credits/postgres/repositories/balance.js.map +1 -1
  166. package/dist/credits/postgres/repositories/bucket.d.ts.map +1 -1
  167. package/dist/credits/postgres/repositories/bucket.js.map +1 -1
  168. package/dist/credits/postgres/repositories/catalog.d.ts +5 -4
  169. package/dist/credits/postgres/repositories/catalog.d.ts.map +1 -1
  170. package/dist/credits/postgres/repositories/catalog.js +4 -3
  171. package/dist/credits/postgres/repositories/catalog.js.map +1 -1
  172. package/dist/credits/postgres/repositories/deduction.d.ts.map +1 -1
  173. package/dist/credits/postgres/repositories/deduction.js +2 -2
  174. package/dist/credits/postgres/repositories/deduction.js.map +1 -1
  175. package/dist/credits/postgres/repositories/lease.d.ts +2 -2
  176. package/dist/credits/postgres/repositories/lease.d.ts.map +1 -1
  177. package/dist/credits/postgres/repositories/lease.js.map +1 -1
  178. package/dist/credits/postgres/repositories/plan.d.ts +11 -11
  179. package/dist/credits/postgres/repositories/plan.d.ts.map +1 -1
  180. package/dist/credits/postgres/repositories/plan.js.map +1 -1
  181. package/dist/credits/postgres/repositories/team.d.ts +2 -2
  182. package/dist/credits/postgres/repositories/team.d.ts.map +1 -1
  183. package/dist/credits/postgres/repositories/team.js.map +1 -1
  184. package/dist/credits/postgres/store.d.ts +3 -2
  185. package/dist/credits/postgres/store.d.ts.map +1 -1
  186. package/dist/credits/postgres/store.js +17 -10
  187. package/dist/credits/postgres/store.js.map +1 -1
  188. package/dist/credits/postgres/value-mappers.d.ts +4 -3
  189. package/dist/credits/postgres/value-mappers.d.ts.map +1 -1
  190. package/dist/credits/postgres/value-mappers.js +10 -11
  191. package/dist/credits/postgres/value-mappers.js.map +1 -1
  192. package/dist/credits/queries.d.ts.map +1 -1
  193. package/dist/credits/queries.js.map +1 -1
  194. package/dist/credits/service.d.ts.map +1 -1
  195. package/dist/credits/service.js +10 -5
  196. package/dist/credits/service.js.map +1 -1
  197. package/dist/credits/store.d.ts +5 -4
  198. package/dist/credits/store.d.ts.map +1 -1
  199. package/dist/credits/store.js.map +1 -1
  200. package/dist/credits/types/account.d.ts +5 -4
  201. package/dist/credits/types/account.d.ts.map +1 -1
  202. package/dist/credits/types/account.js.map +1 -1
  203. package/dist/credits/types/catalog.d.ts +2 -1
  204. package/dist/credits/types/catalog.d.ts.map +1 -1
  205. package/dist/credits/types/catalog.js.map +1 -1
  206. package/dist/credits/types/grants.d.ts.map +1 -1
  207. package/dist/credits/types/grants.js.map +1 -1
  208. package/dist/credits/types/ledger.d.ts +3 -2
  209. package/dist/credits/types/ledger.d.ts.map +1 -1
  210. package/dist/credits/types/ledger.js.map +1 -1
  211. package/dist/engine.d.ts +2 -2
  212. package/dist/engine.d.ts.map +1 -1
  213. package/dist/engine.js +39 -10
  214. package/dist/engine.js.map +1 -1
  215. package/dist/errors.d.ts +7 -4
  216. package/dist/errors.d.ts.map +1 -1
  217. package/dist/errors.js +18 -11
  218. package/dist/errors.js.map +1 -1
  219. package/dist/expr/ast.d.ts.map +1 -1
  220. package/dist/expr/ast.js.map +1 -1
  221. package/dist/expr/evaluator.js.map +1 -1
  222. package/dist/expr/parser.d.ts.map +1 -1
  223. package/dist/expr/parser.js.map +1 -1
  224. package/dist/expr/tokenizer.d.ts.map +1 -1
  225. package/dist/expr/tokenizer.js +34 -12
  226. package/dist/expr/tokenizer.js.map +1 -1
  227. package/dist/expr.d.ts.map +1 -1
  228. package/dist/expr.js +12 -6
  229. package/dist/expr.js.map +1 -1
  230. package/dist/generated/pricing-config.schema.json +0 -12
  231. package/dist/generated/pricing-config.types.d.ts +2 -8
  232. package/dist/generated/pricing-config.types.d.ts.map +1 -1
  233. package/dist/generated/pricing-config.types.js.map +1 -1
  234. package/dist/integrations/better-auth.d.ts +4 -1
  235. package/dist/integrations/better-auth.d.ts.map +1 -1
  236. package/dist/integrations/better-auth.js +7 -4
  237. package/dist/integrations/better-auth.js.map +1 -1
  238. package/dist/load-config-file.d.ts +2 -1
  239. package/dist/load-config-file.d.ts.map +1 -1
  240. package/dist/load-config-file.js +19 -13
  241. package/dist/load-config-file.js.map +1 -1
  242. package/dist/metrics.d.ts +2 -1
  243. package/dist/metrics.d.ts.map +1 -1
  244. package/dist/metrics.js.map +1 -1
  245. package/dist/node.d.ts +1 -1
  246. package/dist/node.d.ts.map +1 -1
  247. package/dist/node.js.map +1 -1
  248. package/dist/providers/_shared.d.ts +8 -5
  249. package/dist/providers/_shared.d.ts.map +1 -1
  250. package/dist/providers/_shared.js +15 -11
  251. package/dist/providers/_shared.js.map +1 -1
  252. package/dist/providers/dodo/better-auth-core.d.ts +30 -0
  253. package/dist/providers/dodo/better-auth-core.d.ts.map +1 -0
  254. package/dist/providers/dodo/better-auth-core.js +14 -0
  255. package/dist/providers/dodo/better-auth-core.js.map +1 -0
  256. package/dist/providers/dodo/better-auth.d.ts +5 -9
  257. package/dist/providers/dodo/better-auth.d.ts.map +1 -1
  258. package/dist/providers/dodo/better-auth.js +16 -13
  259. package/dist/providers/dodo/better-auth.js.map +1 -1
  260. package/dist/providers/dodo/client-contract.d.ts +12 -10
  261. package/dist/providers/dodo/client-contract.d.ts.map +1 -1
  262. package/dist/providers/dodo/client-contract.js.map +1 -1
  263. package/dist/providers/dodo/event-mapper.d.ts +7 -4
  264. package/dist/providers/dodo/event-mapper.d.ts.map +1 -1
  265. package/dist/providers/dodo/event-mapper.js +121 -113
  266. package/dist/providers/dodo/event-mapper.js.map +1 -1
  267. package/dist/providers/dodo/nextjs-core.d.ts +22 -0
  268. package/dist/providers/dodo/nextjs-core.d.ts.map +1 -0
  269. package/dist/providers/dodo/nextjs-core.js +14 -0
  270. package/dist/providers/dodo/nextjs-core.js.map +1 -0
  271. package/dist/providers/dodo/nextjs.d.ts +5 -7
  272. package/dist/providers/dodo/nextjs.d.ts.map +1 -1
  273. package/dist/providers/dodo/nextjs.js +11 -10
  274. package/dist/providers/dodo/nextjs.js.map +1 -1
  275. package/dist/providers/dodo/provider.d.ts +3 -3
  276. package/dist/providers/dodo/provider.d.ts.map +1 -1
  277. package/dist/providers/dodo/provider.js +42 -35
  278. package/dist/providers/dodo/provider.js.map +1 -1
  279. package/dist/providers/dodo/react-native-core.d.ts +56 -0
  280. package/dist/providers/dodo/react-native-core.d.ts.map +1 -0
  281. package/dist/providers/dodo/react-native-core.js +56 -0
  282. package/dist/providers/dodo/react-native-core.js.map +1 -0
  283. package/dist/providers/dodo/react-native.d.ts +6 -50
  284. package/dist/providers/dodo/react-native.d.ts.map +1 -1
  285. package/dist/providers/dodo/react-native.js +5 -49
  286. package/dist/providers/dodo/react-native.js.map +1 -1
  287. package/dist/providers/dodo/webhook-bridge.d.ts +4 -2
  288. package/dist/providers/dodo/webhook-bridge.d.ts.map +1 -1
  289. package/dist/providers/dodo/webhook-bridge.js.map +1 -1
  290. package/dist/providers/environment.d.ts +1 -1
  291. package/dist/providers/environment.d.ts.map +1 -1
  292. package/dist/providers/environment.js +4 -2
  293. package/dist/providers/environment.js.map +1 -1
  294. package/dist/providers/mock/provider.d.ts.map +1 -1
  295. package/dist/providers/mock/provider.js +5 -10
  296. package/dist/providers/mock/provider.js.map +1 -1
  297. package/dist/providers/stripe/event-mapper.d.ts.map +1 -1
  298. package/dist/providers/stripe/event-mapper.js +33 -9
  299. package/dist/providers/stripe/event-mapper.js.map +1 -1
  300. package/dist/providers/stripe/provider.d.ts.map +1 -1
  301. package/dist/providers/stripe/provider.js +101 -61
  302. package/dist/providers/stripe/provider.js.map +1 -1
  303. package/dist/providers/types.d.ts.map +1 -1
  304. package/dist/providers/types.js.map +1 -1
  305. package/dist/retry.d.ts.map +1 -1
  306. package/dist/retry.js +16 -9
  307. package/dist/retry.js.map +1 -1
  308. package/dist/shared/diagnostics.d.ts +5 -5
  309. package/dist/shared/diagnostics.d.ts.map +1 -1
  310. package/dist/shared/diagnostics.js +32 -22
  311. package/dist/shared/diagnostics.js.map +1 -1
  312. package/dist/shared/idempotency.d.ts +4 -3
  313. package/dist/shared/idempotency.d.ts.map +1 -1
  314. package/dist/shared/idempotency.js +21 -10
  315. package/dist/shared/idempotency.js.map +1 -1
  316. package/dist/shared/json.d.ts +28 -0
  317. package/dist/shared/json.d.ts.map +1 -0
  318. package/dist/shared/json.js +41 -0
  319. package/dist/shared/json.js.map +1 -0
  320. package/dist/shared/logger.d.ts +10 -4
  321. package/dist/shared/logger.d.ts.map +1 -1
  322. package/dist/shared/logger.js +28 -4
  323. package/dist/shared/logger.js.map +1 -1
  324. package/dist/shared/postgres-client.d.ts +8 -6
  325. package/dist/shared/postgres-client.d.ts.map +1 -1
  326. package/dist/shared/postgres-client.js +69 -47
  327. package/dist/shared/postgres-client.js.map +1 -1
  328. package/dist/shared/postgres-errors.d.ts +1 -1
  329. package/dist/shared/postgres-errors.d.ts.map +1 -1
  330. package/dist/shared/postgres-errors.js +32 -31
  331. package/dist/shared/postgres-errors.js.map +1 -1
  332. package/dist/shared/postgres-types.d.ts +3 -2
  333. package/dist/shared/postgres-types.d.ts.map +1 -1
  334. package/dist/shared/postgres-types.js.map +1 -1
  335. package/dist/shared/postgres-validation.d.ts +7 -6
  336. package/dist/shared/postgres-validation.d.ts.map +1 -1
  337. package/dist/shared/postgres-validation.js +17 -10
  338. package/dist/shared/postgres-validation.js.map +1 -1
  339. package/dist/storage/adapters/clickhouse.d.ts +11 -4
  340. package/dist/storage/adapters/clickhouse.d.ts.map +1 -1
  341. package/dist/storage/adapters/clickhouse.js +8 -6
  342. package/dist/storage/adapters/clickhouse.js.map +1 -1
  343. package/dist/storage/adapters/s3.d.ts +28 -5
  344. package/dist/storage/adapters/s3.d.ts.map +1 -1
  345. package/dist/storage/adapters/s3.js +48 -33
  346. package/dist/storage/adapters/s3.js.map +1 -1
  347. package/dist/storage/diagnostics.d.ts +1 -1
  348. package/dist/storage/diagnostics.d.ts.map +1 -1
  349. package/dist/storage/diagnostics.js +13 -12
  350. package/dist/storage/diagnostics.js.map +1 -1
  351. package/dist/storage/maintenance.d.ts.map +1 -1
  352. package/dist/storage/maintenance.js +31 -25
  353. package/dist/storage/maintenance.js.map +1 -1
  354. package/dist/storage/outbox-worker.d.ts +1 -1
  355. package/dist/storage/outbox-worker.d.ts.map +1 -1
  356. package/dist/storage/outbox-worker.js +18 -18
  357. package/dist/storage/outbox-worker.js.map +1 -1
  358. package/dist/storage/ports.d.ts +10 -7
  359. package/dist/storage/ports.d.ts.map +1 -1
  360. package/dist/storage/ports.js.map +1 -1
  361. package/dist/storage/postgres-repository.d.ts +3 -1
  362. package/dist/storage/postgres-repository.d.ts.map +1 -1
  363. package/dist/storage/postgres-repository.js +10 -4
  364. package/dist/storage/postgres-repository.js.map +1 -1
  365. package/dist/storage/runtime.d.ts +1 -1
  366. package/dist/storage/runtime.d.ts.map +1 -1
  367. package/dist/storage/runtime.js +165 -182
  368. package/dist/storage/runtime.js.map +1 -1
  369. package/dist/telemetry/index.d.ts +10 -6
  370. package/dist/telemetry/index.d.ts.map +1 -1
  371. package/dist/telemetry/index.js +26 -23
  372. package/dist/telemetry/index.js.map +1 -1
  373. package/dist/telemetry/opentelemetry.d.ts.map +1 -1
  374. package/dist/telemetry/opentelemetry.js +3 -3
  375. package/dist/telemetry/opentelemetry.js.map +1 -1
  376. package/package.json +40 -40
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/billing/contracts.ts"],"names":[],"mappings":"","sourcesContent":["import type { AutoRechargeService } from \"./auto-recharge-service.js\";\nimport type { Decimal } from \"decimal.js\";\nimport type {\n BillingAutoRechargeAttempt,\n BillingAutoRechargeAttemptState,\n BillingAutoRechargeProfile,\n BillingCustomerRecord,\n BillingDisputeInfo,\n BillingEvent,\n BillingEventResult,\n BillingInvoiceInfo,\n BillingInvoiceRecord,\n BillingOfferResult,\n BillingPaymentInfo,\n BillingPreferences,\n BillingRefundInfo,\n BillingSubscriptionChange,\n BillingSubscriptionChangeInput,\n BillingSubscriptionState,\n BillingTopupResult,\n CheckoutIntent,\n} from \"./types/index.js\";\n\nexport interface CheckoutIntentCreate {\n subjectId: string;\n provider: string;\n operationKey: string;\n checkoutKind: \"subscription\" | \"credit_topup\";\n productKey: string;\n requestDigest: string;\n expiresAt: string;\n}\n\nexport interface CheckoutIntentUpdate {\n status?: \"open\" | \"completed\" | \"failed\" | \"expired\";\n providerSessionId?: string | null;\n checkoutUrl?: string | null;\n}\n\nexport interface BillingSubscriptionChangeUpdate {\n state?: BillingSubscriptionChange[\"state\"];\n providerOperationId?: string | null;\n errorMessage?: string | null;\n}\n\nexport interface BillingSubscriptionConflictCreate {\n userId?: string | null;\n provider: string;\n duplicateSubscriptionId: string;\n existingSubscriptionId?: string | null;\n eventId?: string | null;\n metadata?: Record<string, unknown>;\n}\n\nexport interface BillingPaymentUpsert {\n provider: string;\n providerPaymentId: string;\n providerInvoiceId?: string | null;\n userId: string;\n amountMinor: number;\n taxMinor: number;\n currency: string;\n purpose: \"subscription\" | \"credit_topup\";\n status: \"pending\" | \"succeeded\" | \"failed\" | \"canceled\";\n providerUpdatedAt: string;\n metadata?: Record<string, unknown> | null;\n}\n\nexport interface BillingCreditGrantCreate {\n paymentId?: string | null;\n subscriptionId?: string | null;\n topupId?: string | null;\n configuredCredits: Decimal;\n quantity: number;\n billingEventId?: string | null;\n}\n\nexport interface BillingRefundUpsert {\n provider: string;\n providerRefundId: string;\n providerPaymentId: string;\n userId: string;\n amountMinor: number;\n currency: string;\n reason?: string | null;\n status: \"pending\" | \"succeeded\" | \"failed\" | \"canceled\";\n providerUpdatedAt: string;\n metadata?: Record<string, unknown> | null;\n}\n\nexport interface BillingInvoiceUpsert {\n provider: string;\n providerInvoiceId: string;\n providerSubscriptionId?: string | null;\n userId: string;\n status: \"draft\" | \"open\" | \"paid\" | \"void\" | \"uncollectible\";\n amountPaidMinor: number;\n amountDueMinor: number;\n currency: string;\n periodStart?: string | null;\n periodEnd?: string | null;\n metadata?: Record<string, unknown> | null;\n providerUpdatedAt: string;\n}\n\nexport interface BillingDisputeUpsert {\n provider: string;\n providerDisputeId: string;\n providerPaymentId: string;\n status: \"needs_response\" | \"under_review\" | \"won\" | \"lost\" | \"closed\";\n reason?: string | null;\n metadata?: Record<string, unknown> | null;\n providerUpdatedAt: string;\n}\n\nexport interface AutoRechargeAttemptClaim {\n userId: string;\n idempotencyKey: string;\n}\n\nexport interface AutoRechargeAttemptUpdate {\n id: string;\n state: BillingAutoRechargeAttemptState;\n providerAttemptId?: string | null;\n failureCode?: string | null;\n failureMessage?: string | null;\n metadata?: Record<string, unknown>;\n}\n\nexport interface AutoRechargeProviderPaymentUpdate {\n provider: string;\n providerPaymentId: string;\n state: BillingAutoRechargeAttemptState;\n failureCode?: string | null;\n failureMessage?: string | null;\n}\n\n/** Boundary used by payment providers to submit normalized lifecycle events. */\nexport interface BillingEventSink {\n ingestBillingEvent(event: BillingEvent): Promise<BillingEventResult>;\n}\n\n/** Application-facing billing capability exposed by Bursar. */\nexport interface BillingCapability extends BillingEventSink {\n readonly autoRecharge: AutoRechargeService;\n readonly hasProvisioning: boolean;\n createOrGetCheckoutIntent(input: CheckoutIntentCreate): Promise<CheckoutIntent>;\n updateCheckoutIntent(id: string, update: CheckoutIntentUpdate): Promise<void>;\n getCheckoutIntent(id: string, subjectId: string): Promise<CheckoutIntent | null>;\n getUserSubscription(userId: string): Promise<BillingSubscriptionState | null>;\n getActiveSubscription(userId: string): Promise<BillingSubscriptionState | null>;\n getBlockingSubscription(userId: string): Promise<BillingSubscriptionState | null>;\n getUserPreferences(userId: string): Promise<BillingPreferences | null>;\n getActiveCatalogDocument(): Promise<Record<string, unknown> | null>;\n listCancellableProviderSubscriptionIds(userId: string): Promise<string[]>;\n listCancellableSubscriptions(userId: string): Promise<BillingSubscriptionState[]>;\n listBillingInvoices(userId: string): Promise<BillingInvoiceRecord[]>;\n createBillingSubscriptionChange(\n input: BillingSubscriptionChangeInput,\n ): Promise<BillingSubscriptionChange>;\n getOpenBillingSubscriptionChange(\n provider: string,\n providerSubscriptionId: string,\n ): Promise<BillingSubscriptionChange | null>;\n updateBillingSubscriptionChange(\n id: string,\n update: BillingSubscriptionChangeUpdate,\n ): Promise<void>;\n recordSubscriptionConflict(input: BillingSubscriptionConflictCreate): Promise<void>;\n upsertBillingSubscription(state: BillingSubscriptionState): Promise<void>;\n updateUserPreferences(preferences: BillingPreferences): Promise<void>;\n getAutoRechargeProfile(userId: string): Promise<BillingAutoRechargeProfile | null>;\n upsertAutoRechargeProfile(\n profile: BillingAutoRechargeProfile,\n options?: { resetCooldown?: boolean },\n ): Promise<void>;\n claimAutoRechargeAttempt(\n input: AutoRechargeAttemptClaim,\n ): Promise<BillingAutoRechargeAttempt | null>;\n updateAutoRechargeAttempt(input: AutoRechargeAttemptUpdate): Promise<void>;\n updateAutoRechargeAttemptByProviderPayment(\n input: AutoRechargeProviderPaymentUpdate,\n ): Promise<void>;\n countAutoRechargeAttempts(userId: string, since: string | Date): Promise<number>;\n expirePastDueGracePeriods(now?: Date): Promise<number>;\n invalidateOfferCache(): void;\n getCustomerByUserId(\n userId: string,\n provider?: string | null,\n ): Promise<BillingCustomerRecord | null>;\n resolveOffer(\n provider: string,\n productId?: string | null,\n priceId?: string | null,\n ): Promise<BillingOfferResult | null>;\n resolveOfferByLookup(provider: string, lookupKey: string): Promise<BillingOfferResult | null>;\n resolveTopup(\n provider: string,\n productId?: string | null,\n priceId?: string | null,\n ): Promise<BillingTopupResult | null>;\n resolveTopupByLookup(provider: string, lookupKey: string): Promise<BillingTopupResult | null>;\n upsertCustomer(\n provider: string,\n providerCustomerId: string,\n userId: string,\n email?: string | null,\n ): Promise<void>;\n pseudonymizeFinancialSubject(userId: string): Promise<void>;\n}\n\n// Keep document-record types reachable from the contract module for store\n// implementers without forcing them to import the broad billing type barrel.\nexport type {\n BillingDisputeInfo,\n BillingInvoiceInfo,\n BillingInvoiceRecord,\n BillingPaymentInfo,\n BillingRefundInfo,\n};\n"]}
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/billing/contracts.ts"],"names":[],"mappings":"","sourcesContent":["import type { AutoRechargeService } from \"./auto-recharge-service.js\";\nimport type { Decimal } from \"decimal.js\";\nimport type { JsonObject } from \"../shared/json.js\";\nimport type {\n BillingAutoRechargeAttempt,\n BillingAutoRechargeAttemptState,\n BillingAutoRechargeProfile,\n BillingCustomerRecord,\n BillingDisputeInfo,\n BillingEvent,\n BillingEventResult,\n BillingInvoiceInfo,\n BillingInvoiceRecord,\n BillingOfferResult,\n BillingPaymentInfo,\n BillingPreferences,\n BillingRefundInfo,\n BillingSubscriptionChange,\n BillingSubscriptionChangeInput,\n BillingSubscriptionState,\n BillingTopupResult,\n CheckoutIntent,\n} from \"./types/index.js\";\n\nexport interface CheckoutIntentCreate {\n subjectId: string;\n provider: string;\n operationKey: string;\n checkoutKind: \"subscription\" | \"credit_topup\";\n productKey: string;\n requestDigest: string;\n expiresAt: string;\n}\n\nexport interface CheckoutIntentUpdate {\n status?: \"open\" | \"completed\" | \"failed\" | \"expired\";\n providerSessionId?: string | null;\n checkoutUrl?: string | null;\n}\n\nexport interface BillingSubscriptionChangeUpdate {\n state?: BillingSubscriptionChange[\"state\"];\n providerOperationId?: string | null;\n errorMessage?: string | null;\n}\n\nexport interface BillingSubscriptionConflictCreate {\n userId?: string | null;\n provider: string;\n duplicateSubscriptionId: string;\n existingSubscriptionId?: string | null;\n eventId?: string | null;\n metadata?: JsonObject;\n}\n\nexport interface BillingPaymentUpsert {\n provider: string;\n providerPaymentId: string;\n providerInvoiceId?: string | null;\n userId: string;\n amountMinor: number;\n taxMinor: number;\n currency: string;\n purpose: \"subscription\" | \"credit_topup\";\n status: \"pending\" | \"succeeded\" | \"failed\" | \"canceled\";\n providerUpdatedAt: string;\n metadata?: JsonObject | null;\n}\n\nexport interface BillingCreditGrantCreate {\n paymentId?: string | null;\n subscriptionId?: string | null;\n topupId?: string | null;\n configuredCredits: Decimal;\n quantity: number;\n billingEventId?: string | null;\n}\n\nexport interface BillingRefundUpsert {\n provider: string;\n providerRefundId: string;\n providerPaymentId: string;\n userId: string;\n amountMinor: number;\n currency: string;\n reason?: string | null;\n status: \"pending\" | \"succeeded\" | \"failed\" | \"canceled\";\n providerUpdatedAt: string;\n metadata?: JsonObject | null;\n}\n\nexport interface BillingInvoiceUpsert {\n provider: string;\n providerInvoiceId: string;\n providerSubscriptionId?: string | null;\n userId: string;\n status: \"draft\" | \"open\" | \"paid\" | \"void\" | \"uncollectible\";\n amountPaidMinor: number;\n amountDueMinor: number;\n currency: string;\n periodStart?: string | null;\n periodEnd?: string | null;\n metadata?: JsonObject | null;\n providerUpdatedAt: string;\n}\n\nexport interface BillingDisputeUpsert {\n provider: string;\n providerDisputeId: string;\n providerPaymentId: string;\n status: \"needs_response\" | \"under_review\" | \"won\" | \"lost\" | \"closed\";\n reason?: string | null;\n metadata?: JsonObject | null;\n providerUpdatedAt: string;\n}\n\nexport interface AutoRechargeAttemptClaim {\n userId: string;\n idempotencyKey: string;\n}\n\nexport interface AutoRechargeAttemptUpdate {\n id: string;\n state: BillingAutoRechargeAttemptState;\n providerAttemptId?: string | null;\n failureCode?: string | null;\n failureMessage?: string | null;\n metadata?: JsonObject;\n}\n\nexport interface AutoRechargeProviderPaymentUpdate {\n provider: string;\n providerPaymentId: string;\n state: BillingAutoRechargeAttemptState;\n failureCode?: string | null;\n failureMessage?: string | null;\n}\n\n/** Boundary used by payment providers to submit normalized lifecycle events. */\nexport interface BillingEventSink {\n ingestBillingEvent(event: BillingEvent): Promise<BillingEventResult>;\n}\n\n/** Application-facing billing capability exposed by Bursar. */\nexport interface BillingCapability extends BillingEventSink {\n readonly autoRecharge: AutoRechargeService;\n readonly hasProvisioning: boolean;\n createOrGetCheckoutIntent(input: CheckoutIntentCreate): Promise<CheckoutIntent>;\n updateCheckoutIntent(id: string, update: CheckoutIntentUpdate): Promise<void>;\n getCheckoutIntent(id: string, subjectId: string): Promise<CheckoutIntent | null>;\n getUserSubscription(userId: string): Promise<BillingSubscriptionState | null>;\n getActiveSubscription(userId: string): Promise<BillingSubscriptionState | null>;\n getBlockingSubscription(userId: string): Promise<BillingSubscriptionState | null>;\n getUserPreferences(userId: string): Promise<BillingPreferences | null>;\n getActiveCatalogDocument(): Promise<JsonObject | null>;\n listCancellableProviderSubscriptionIds(userId: string): Promise<string[]>;\n listCancellableSubscriptions(userId: string): Promise<BillingSubscriptionState[]>;\n listBillingInvoices(userId: string): Promise<BillingInvoiceRecord[]>;\n createBillingSubscriptionChange(\n input: BillingSubscriptionChangeInput,\n ): Promise<BillingSubscriptionChange>;\n getOpenBillingSubscriptionChange(\n provider: string,\n providerSubscriptionId: string,\n ): Promise<BillingSubscriptionChange | null>;\n updateBillingSubscriptionChange(\n id: string,\n update: BillingSubscriptionChangeUpdate,\n ): Promise<void>;\n recordSubscriptionConflict(input: BillingSubscriptionConflictCreate): Promise<void>;\n upsertBillingSubscription(state: BillingSubscriptionState): Promise<void>;\n updateUserPreferences(preferences: BillingPreferences): Promise<void>;\n getAutoRechargeProfile(userId: string): Promise<BillingAutoRechargeProfile | null>;\n upsertAutoRechargeProfile(\n profile: BillingAutoRechargeProfile,\n options?: { resetCooldown?: boolean },\n ): Promise<void>;\n claimAutoRechargeAttempt(\n input: AutoRechargeAttemptClaim,\n ): Promise<BillingAutoRechargeAttempt | null>;\n updateAutoRechargeAttempt(input: AutoRechargeAttemptUpdate): Promise<void>;\n updateAutoRechargeAttemptByProviderPayment(\n input: AutoRechargeProviderPaymentUpdate,\n ): Promise<void>;\n countAutoRechargeAttempts(userId: string, since: string | Date): Promise<number>;\n expirePastDueGracePeriods(now?: Date): Promise<number>;\n invalidateOfferCache(): void;\n getCustomerByUserId(\n userId: string,\n provider?: string | null,\n ): Promise<BillingCustomerRecord | null>;\n resolveOffer(\n provider: string,\n productId?: string | null,\n priceId?: string | null,\n ): Promise<BillingOfferResult | null>;\n resolveOfferByLookup(provider: string, lookupKey: string): Promise<BillingOfferResult | null>;\n resolveTopup(\n provider: string,\n productId?: string | null,\n priceId?: string | null,\n ): Promise<BillingTopupResult | null>;\n resolveTopupByLookup(provider: string, lookupKey: string): Promise<BillingTopupResult | null>;\n upsertCustomer(\n provider: string,\n providerCustomerId: string,\n userId: string,\n email?: string | null,\n ): Promise<void>;\n pseudonymizeFinancialSubject(userId: string): Promise<void>;\n}\n\n// Keep document-record types reachable from the contract module for store\n// implementers without forcing them to import the broad billing type barrel.\nexport type {\n BillingDisputeInfo,\n BillingInvoiceInfo,\n BillingInvoiceRecord,\n BillingPaymentInfo,\n BillingRefundInfo,\n};\n"]}
@@ -13,6 +13,7 @@ export declare class BillingEventHandlers {
13
13
  private readonly financial;
14
14
  private readonly handlerMap;
15
15
  get hasProvisioning(): boolean;
16
+ get terminalPlan(): string | null;
16
17
  constructor(store: BillingStore, options?: BillingServiceOptions);
17
18
  getHandler(eventType: BillingEventType): ((event: BillingEvent) => Promise<BillingEventResult>) | undefined;
18
19
  invalidateOfferCache(): void;
@@ -30,6 +31,9 @@ export declare class BillingEventHandlers {
30
31
  private getExistingSubscription;
31
32
  private buildSubscriptionState;
32
33
  private resolveOfferAndKeys;
34
+ private subscriptionPlanAnchor;
35
+ private reconcileSubscriptionEvent;
36
+ private applySubscriptionEvent;
33
37
  private handleSubscriptionCreated;
34
38
  private handleSubscriptionUpdated;
35
39
  private handleSubscriptionActivated;
@@ -42,15 +46,7 @@ export declare class BillingEventHandlers {
42
46
  private handleSubscriptionPaused;
43
47
  private handleSubscriptionResumed;
44
48
  private handleTrialWillEnd;
45
- private provisionSubscription;
46
49
  private grantSubscriptionCycle;
47
- private revokeSubscription;
48
- /**
49
- * Do not revoke access because a stale subscription record ended while a
50
- * newer subscription for the same user is still active.
51
- */
52
- revokeIfCurrentSubscription(uid: string, subscriptionId: string): Promise<void>;
53
- private reEvaluateAccess;
54
- private resolveOfferFromEvent;
50
+ private revokeCustomerAccess;
55
51
  }
56
52
  //# sourceMappingURL=event-handlers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"event-handlers.d.ts","sourceRoot":"","sources":["../../src/billing/event-handlers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAInB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,KAAK,EAA2B,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAYzF,qBAAa,oBAAoB;IAe7B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAdxB,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAiC;IAC9D,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAU;IACtD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAS;IAC9C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAgB;IAChD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAC1C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkD;IAC7E,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgC;IAC1D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuE;IAElG,IAAI,eAAe,IAA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