@skillsmith/core 0.6.2 → 0.7.0

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 (158) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +16 -0
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/src/api/client.d.ts.map +1 -1
  5. package/dist/src/api/client.events.d.ts.map +1 -1
  6. package/dist/src/api/client.events.js +10 -1
  7. package/dist/src/api/client.events.js.map +1 -1
  8. package/dist/src/api/client.health.d.ts.map +1 -1
  9. package/dist/src/api/client.health.js +7 -1
  10. package/dist/src/api/client.health.js.map +1 -1
  11. package/dist/src/api/client.js +11 -1
  12. package/dist/src/api/client.js.map +1 -1
  13. package/dist/src/api/utils.d.ts +14 -3
  14. package/dist/src/api/utils.d.ts.map +1 -1
  15. package/dist/src/api/utils.js +14 -4
  16. package/dist/src/api/utils.js.map +1 -1
  17. package/dist/src/db/createDatabase.d.ts.map +1 -1
  18. package/dist/src/db/createDatabase.js +18 -2
  19. package/dist/src/db/createDatabase.js.map +1 -1
  20. package/dist/src/db/drivers/betterSqlite3Driver.d.ts +7 -0
  21. package/dist/src/db/drivers/betterSqlite3Driver.d.ts.map +1 -1
  22. package/dist/src/db/drivers/betterSqlite3Driver.js +21 -1
  23. package/dist/src/db/drivers/betterSqlite3Driver.js.map +1 -1
  24. package/dist/src/db/drivers/corruption.d.ts +31 -0
  25. package/dist/src/db/drivers/corruption.d.ts.map +1 -0
  26. package/dist/src/db/drivers/corruption.js +57 -0
  27. package/dist/src/db/drivers/corruption.js.map +1 -0
  28. package/dist/src/db/drivers/sqljsDriver.d.ts.map +1 -1
  29. package/dist/src/db/drivers/sqljsDriver.js +48 -7
  30. package/dist/src/db/drivers/sqljsDriver.js.map +1 -1
  31. package/dist/src/exports/services.d.ts +0 -1
  32. package/dist/src/exports/services.d.ts.map +1 -1
  33. package/dist/src/exports/services.js +14 -3
  34. package/dist/src/exports/services.js.map +1 -1
  35. package/dist/src/index.d.ts +4 -1
  36. package/dist/src/index.d.ts.map +1 -1
  37. package/dist/src/index.js +8 -1
  38. package/dist/src/index.js.map +1 -1
  39. package/dist/src/indexer/meta-list-filter.d.ts +55 -0
  40. package/dist/src/indexer/meta-list-filter.d.ts.map +1 -0
  41. package/dist/src/indexer/meta-list-filter.js +65 -0
  42. package/dist/src/indexer/meta-list-filter.js.map +1 -0
  43. package/dist/src/indexer/meta-list-filter.test.d.ts +7 -0
  44. package/dist/src/indexer/meta-list-filter.test.d.ts.map +1 -0
  45. package/dist/src/indexer/meta-list-filter.test.js +139 -0
  46. package/dist/src/indexer/meta-list-filter.test.js.map +1 -0
  47. package/dist/src/types.d.ts +12 -0
  48. package/dist/src/types.d.ts.map +1 -1
  49. package/dist/tests/api/client.auth.test.js +50 -0
  50. package/dist/tests/api/client.auth.test.js.map +1 -1
  51. package/dist/tests/api/utils.test.js +7 -3
  52. package/dist/tests/api/utils.test.js.map +1 -1
  53. package/dist/tests/db/corruption.test.d.ts +11 -0
  54. package/dist/tests/db/corruption.test.d.ts.map +1 -0
  55. package/dist/tests/db/corruption.test.js +109 -0
  56. package/dist/tests/db/corruption.test.js.map +1 -0
  57. package/dist/tests/{billing/stripe-validators.test.d.ts → security/sanitization-stripe-ids.test.d.ts} +1 -1
  58. package/dist/tests/security/sanitization-stripe-ids.test.d.ts.map +1 -0
  59. package/dist/tests/{billing/stripe-validators.test.js → security/sanitization-stripe-ids.test.js} +1 -1
  60. package/dist/tests/security/sanitization-stripe-ids.test.js.map +1 -0
  61. package/dist/tests/shared.test.js.map +1 -1
  62. package/dist/tests/skill-scanner/allowlist.test.js +5 -1
  63. package/dist/tests/skill-scanner/allowlist.test.js.map +1 -1
  64. package/package.json +2 -7
  65. package/dist/src/billing/BillingService.d.ts +0 -101
  66. package/dist/src/billing/BillingService.d.ts.map +0 -1
  67. package/dist/src/billing/BillingService.helpers.d.ts +0 -15
  68. package/dist/src/billing/BillingService.helpers.d.ts.map +0 -1
  69. package/dist/src/billing/BillingService.helpers.js +0 -45
  70. package/dist/src/billing/BillingService.helpers.js.map +0 -1
  71. package/dist/src/billing/BillingService.js +0 -263
  72. package/dist/src/billing/BillingService.js.map +0 -1
  73. package/dist/src/billing/BillingService.types.d.ts +0 -52
  74. package/dist/src/billing/BillingService.types.d.ts.map +0 -1
  75. package/dist/src/billing/BillingService.types.js +0 -6
  76. package/dist/src/billing/BillingService.types.js.map +0 -1
  77. package/dist/src/billing/GDPRComplianceService.d.ts +0 -81
  78. package/dist/src/billing/GDPRComplianceService.d.ts.map +0 -1
  79. package/dist/src/billing/GDPRComplianceService.js +0 -361
  80. package/dist/src/billing/GDPRComplianceService.js.map +0 -1
  81. package/dist/src/billing/StripeClient.d.ts +0 -119
  82. package/dist/src/billing/StripeClient.d.ts.map +0 -1
  83. package/dist/src/billing/StripeClient.js +0 -405
  84. package/dist/src/billing/StripeClient.js.map +0 -1
  85. package/dist/src/billing/StripeReconciliationJob.d.ts +0 -50
  86. package/dist/src/billing/StripeReconciliationJob.d.ts.map +0 -1
  87. package/dist/src/billing/StripeReconciliationJob.js +0 -365
  88. package/dist/src/billing/StripeReconciliationJob.js.map +0 -1
  89. package/dist/src/billing/StripeWebhookHandler.d.ts +0 -49
  90. package/dist/src/billing/StripeWebhookHandler.d.ts.map +0 -1
  91. package/dist/src/billing/StripeWebhookHandler.js +0 -162
  92. package/dist/src/billing/StripeWebhookHandler.js.map +0 -1
  93. package/dist/src/billing/gdpr-types.d.ts +0 -103
  94. package/dist/src/billing/gdpr-types.d.ts.map +0 -1
  95. package/dist/src/billing/gdpr-types.js +0 -7
  96. package/dist/src/billing/gdpr-types.js.map +0 -1
  97. package/dist/src/billing/index.d.ts +0 -18
  98. package/dist/src/billing/index.d.ts.map +0 -1
  99. package/dist/src/billing/index.js +0 -19
  100. package/dist/src/billing/index.js.map +0 -1
  101. package/dist/src/billing/reconciliation-helpers.d.ts +0 -16
  102. package/dist/src/billing/reconciliation-helpers.d.ts.map +0 -1
  103. package/dist/src/billing/reconciliation-helpers.js +0 -53
  104. package/dist/src/billing/reconciliation-helpers.js.map +0 -1
  105. package/dist/src/billing/reconciliation-types.d.ts +0 -71
  106. package/dist/src/billing/reconciliation-types.d.ts.map +0 -1
  107. package/dist/src/billing/reconciliation-types.js +0 -7
  108. package/dist/src/billing/reconciliation-types.js.map +0 -1
  109. package/dist/src/billing/stripe-client-types.d.ts +0 -45
  110. package/dist/src/billing/stripe-client-types.d.ts.map +0 -1
  111. package/dist/src/billing/stripe-client-types.js +0 -7
  112. package/dist/src/billing/stripe-client-types.js.map +0 -1
  113. package/dist/src/billing/stripe-helpers.d.ts +0 -17
  114. package/dist/src/billing/stripe-helpers.d.ts.map +0 -1
  115. package/dist/src/billing/stripe-helpers.js +0 -50
  116. package/dist/src/billing/stripe-helpers.js.map +0 -1
  117. package/dist/src/billing/types.d.ts +0 -266
  118. package/dist/src/billing/types.d.ts.map +0 -1
  119. package/dist/src/billing/types.js +0 -23
  120. package/dist/src/billing/types.js.map +0 -1
  121. package/dist/src/billing/webhook-handlers.d.ts +0 -56
  122. package/dist/src/billing/webhook-handlers.d.ts.map +0 -1
  123. package/dist/src/billing/webhook-handlers.js +0 -303
  124. package/dist/src/billing/webhook-handlers.js.map +0 -1
  125. package/dist/src/billing/webhook-types.d.ts +0 -42
  126. package/dist/src/billing/webhook-types.d.ts.map +0 -1
  127. package/dist/src/billing/webhook-types.js +0 -7
  128. package/dist/src/billing/webhook-types.js.map +0 -1
  129. package/dist/tests/billing/BillingService.test.d.ts +0 -7
  130. package/dist/tests/billing/BillingService.test.d.ts.map +0 -1
  131. package/dist/tests/billing/BillingService.test.js +0 -168
  132. package/dist/tests/billing/BillingService.test.js.map +0 -1
  133. package/dist/tests/billing/GDPRCompliance.test.d.ts +0 -7
  134. package/dist/tests/billing/GDPRCompliance.test.d.ts.map +0 -1
  135. package/dist/tests/billing/GDPRCompliance.test.js +0 -380
  136. package/dist/tests/billing/GDPRCompliance.test.js.map +0 -1
  137. package/dist/tests/billing/StripeClient.test.d.ts +0 -18
  138. package/dist/tests/billing/StripeClient.test.d.ts.map +0 -1
  139. package/dist/tests/billing/StripeClient.test.js +0 -566
  140. package/dist/tests/billing/StripeClient.test.js.map +0 -1
  141. package/dist/tests/billing/StripeReconciliation.test.d.ts +0 -7
  142. package/dist/tests/billing/StripeReconciliation.test.d.ts.map +0 -1
  143. package/dist/tests/billing/StripeReconciliation.test.js +0 -266
  144. package/dist/tests/billing/StripeReconciliation.test.js.map +0 -1
  145. package/dist/tests/billing/StripeWebhookHandler.test.d.ts +0 -16
  146. package/dist/tests/billing/StripeWebhookHandler.test.d.ts.map +0 -1
  147. package/dist/tests/billing/StripeWebhookHandler.test.js +0 -240
  148. package/dist/tests/billing/StripeWebhookHandler.test.js.map +0 -1
  149. package/dist/tests/billing/stripe-helpers.test.d.ts +0 -7
  150. package/dist/tests/billing/stripe-helpers.test.d.ts.map +0 -1
  151. package/dist/tests/billing/stripe-helpers.test.js +0 -91
  152. package/dist/tests/billing/stripe-helpers.test.js.map +0 -1
  153. package/dist/tests/billing/stripe-validators.test.d.ts.map +0 -1
  154. package/dist/tests/billing/stripe-validators.test.js.map +0 -1
  155. package/dist/tests/billing/webhook-handlers.test.d.ts +0 -16
  156. package/dist/tests/billing/webhook-handlers.test.d.ts.map +0 -1
  157. package/dist/tests/billing/webhook-handlers.test.js +0 -519
  158. package/dist/tests/billing/webhook-handlers.test.js.map +0 -1
@@ -1,263 +0,0 @@
1
- /**
2
- * SMI-1063: Billing Service
3
- *
4
- * High-level billing operations that coordinate between:
5
- * - StripeClient (Stripe API)
6
- * - Database (subscription/invoice storage)
7
- * - LicenseKeyGenerator (license key generation)
8
- */
9
- import { randomUUID } from 'crypto';
10
- import { createLogger } from '../utils/logger.js';
11
- import { BillingError } from './types.js';
12
- // Import helpers
13
- import { mapRowToSubscription, mapRowToInvoice } from './BillingService.helpers.js';
14
- const logger = createLogger('BillingService');
15
- /**
16
- * Billing service for subscription management
17
- *
18
- * @example
19
- * ```typescript
20
- * const billing = new BillingService({
21
- * stripeClient,
22
- * db,
23
- * });
24
- *
25
- * // Create checkout session
26
- * const session = await billing.createCheckoutSession({
27
- * tier: 'team',
28
- * billingPeriod: 'monthly',
29
- * seatCount: 5,
30
- * email: 'admin@company.com',
31
- * successUrl: '/success',
32
- * cancelUrl: '/cancel',
33
- * });
34
- *
35
- * // Get subscription
36
- * const subscription = await billing.getSubscriptionByCustomerId('cust_123');
37
- * ```
38
- */
39
- export class BillingService {
40
- stripe;
41
- db;
42
- constructor(config) {
43
- this.stripe = config.stripeClient;
44
- this.db = config.db;
45
- logger.info('Billing service initialized');
46
- }
47
- // ==========================================================================
48
- // Checkout Flow
49
- // ==========================================================================
50
- /** Create a Stripe Checkout session */
51
- async createCheckoutSession(request) {
52
- return this.stripe.createCheckoutSession(request);
53
- }
54
- // ==========================================================================
55
- // Subscription Management
56
- // ==========================================================================
57
- /** Get subscription by customer ID (our internal ID) */
58
- getSubscriptionByCustomerId(customerId) {
59
- const row = this.db
60
- .prepare(`SELECT
61
- id, customer_id as customerId, stripe_subscription_id as stripeSubscriptionId,
62
- stripe_price_id as stripePriceId, tier, status, seat_count as seatCount,
63
- current_period_start as currentPeriodStart, current_period_end as currentPeriodEnd,
64
- canceled_at as canceledAt, created_at as createdAt, updated_at as updatedAt
65
- FROM user_subscriptions WHERE customer_id = ?`)
66
- .get(customerId);
67
- return row ? mapRowToSubscription(row) : null;
68
- }
69
- /** Get subscription by Stripe subscription ID */
70
- getSubscriptionByStripeId(stripeSubscriptionId) {
71
- const row = this.db
72
- .prepare(`SELECT
73
- id, customer_id as customerId, stripe_subscription_id as stripeSubscriptionId,
74
- stripe_price_id as stripePriceId, tier, status, seat_count as seatCount,
75
- current_period_start as currentPeriodStart, current_period_end as currentPeriodEnd,
76
- canceled_at as canceledAt, created_at as createdAt, updated_at as updatedAt
77
- FROM user_subscriptions WHERE stripe_subscription_id = ?`)
78
- .get(stripeSubscriptionId);
79
- return row ? mapRowToSubscription(row) : null;
80
- }
81
- /** Create or update subscription from Stripe data */
82
- upsertSubscription(params) {
83
- const id = randomUUID();
84
- const now = new Date().toISOString();
85
- this.db
86
- .prepare(`INSERT INTO user_subscriptions (
87
- id, customer_id, email, stripe_customer_id, stripe_subscription_id,
88
- stripe_price_id, tier, status, seat_count,
89
- current_period_start, current_period_end, canceled_at,
90
- created_at, updated_at
91
- ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
92
- ON CONFLICT(customer_id) DO UPDATE SET
93
- stripe_subscription_id = excluded.stripe_subscription_id,
94
- stripe_price_id = excluded.stripe_price_id,
95
- tier = excluded.tier, status = excluded.status,
96
- seat_count = excluded.seat_count,
97
- current_period_start = excluded.current_period_start,
98
- current_period_end = excluded.current_period_end,
99
- canceled_at = excluded.canceled_at, updated_at = excluded.updated_at`)
100
- .run(id, params.customerId, params.email, params.stripeCustomerId, params.stripeSubscriptionId, params.stripePriceId, params.tier, params.status, params.seatCount, params.currentPeriodStart.toISOString(), params.currentPeriodEnd.toISOString(), params.canceledAt?.toISOString() ?? null, now, now);
101
- logger.info('Subscription upserted', {
102
- customerId: params.customerId,
103
- tier: params.tier,
104
- status: params.status,
105
- });
106
- return this.getSubscriptionByCustomerId(params.customerId);
107
- }
108
- /** Update subscription status */
109
- updateSubscriptionStatus(stripeSubscriptionId, status, canceledAt) {
110
- this.db
111
- .prepare(`UPDATE user_subscriptions SET status = ?, canceled_at = ?, updated_at = ?
112
- WHERE stripe_subscription_id = ?`)
113
- .run(status, canceledAt?.toISOString() ?? null, new Date().toISOString(), stripeSubscriptionId);
114
- logger.info('Subscription status updated', { stripeSubscriptionId, status });
115
- }
116
- /** Update seat count */
117
- async updateSeatCount(stripeSubscriptionId, seatCount, prorate = true) {
118
- await this.stripe.updateSubscription(stripeSubscriptionId, { seatCount, prorate });
119
- this.db
120
- .prepare(`UPDATE user_subscriptions SET seat_count = ?, updated_at = ?
121
- WHERE stripe_subscription_id = ?`)
122
- .run(seatCount, new Date().toISOString(), stripeSubscriptionId);
123
- logger.info('Seat count updated', { stripeSubscriptionId, seatCount });
124
- return this.getSubscriptionByStripeId(stripeSubscriptionId);
125
- }
126
- /** Cancel a subscription */
127
- async cancelSubscription(customerId, options) {
128
- const subscription = this.getSubscriptionByCustomerId(customerId);
129
- if (!subscription?.stripeSubscriptionId) {
130
- throw new BillingError('Subscription not found', 'SUBSCRIPTION_NOT_FOUND');
131
- }
132
- await this.stripe.cancelSubscription(subscription.stripeSubscriptionId, options);
133
- const newStatus = options?.immediately ? 'canceled' : subscription.status;
134
- const canceledAt = options?.immediately ? new Date() : null;
135
- this.updateSubscriptionStatus(subscription.stripeSubscriptionId, newStatus, canceledAt);
136
- return this.getSubscriptionByCustomerId(customerId);
137
- }
138
- /** Upgrade subscription tier */
139
- async upgradeTier(customerId, newTier, billingPeriod) {
140
- const subscription = this.getSubscriptionByCustomerId(customerId);
141
- if (!subscription?.stripeSubscriptionId) {
142
- throw new BillingError('Subscription not found', 'SUBSCRIPTION_NOT_FOUND');
143
- }
144
- const tierOrder = ['community', 'individual', 'team', 'enterprise'];
145
- const currentIndex = tierOrder.indexOf(subscription.tier);
146
- const newIndex = tierOrder.indexOf(newTier);
147
- if (newIndex <= currentIndex) {
148
- throw new BillingError('Can only upgrade to a higher tier', 'DOWNGRADE_NOT_ALLOWED', {
149
- currentTier: subscription.tier,
150
- requestedTier: newTier,
151
- });
152
- }
153
- await this.stripe.updateSubscription(subscription.stripeSubscriptionId, { tier: newTier, billingPeriod, prorate: true });
154
- this.db
155
- .prepare(`UPDATE user_subscriptions SET tier = ?, updated_at = ? WHERE customer_id = ?`)
156
- .run(newTier, new Date().toISOString(), customerId);
157
- logger.info('Tier upgraded', {
158
- customerId,
159
- fromTier: subscription.tier,
160
- toTier: newTier,
161
- });
162
- return this.getSubscriptionByCustomerId(customerId);
163
- }
164
- // ==========================================================================
165
- // Customer Portal
166
- // ==========================================================================
167
- /** Create a Customer Portal session */
168
- async createPortalSession(customerId, returnUrl) {
169
- const subscription = this.getSubscriptionByCustomerId(customerId);
170
- if (!subscription) {
171
- throw new BillingError('Customer not found', 'CUSTOMER_NOT_FOUND');
172
- }
173
- const row = this.db
174
- .prepare(`SELECT stripe_customer_id FROM user_subscriptions WHERE customer_id = ?`)
175
- .get(customerId);
176
- if (!row?.stripe_customer_id) {
177
- throw new BillingError('No Stripe customer found', 'CUSTOMER_NOT_FOUND');
178
- }
179
- return this.stripe.createPortalSession({ customerId: row.stripe_customer_id, returnUrl });
180
- }
181
- // ==========================================================================
182
- // Invoice Management
183
- // ==========================================================================
184
- /** Get invoices for a customer */
185
- getInvoices(customerId, limit = 10) {
186
- const rows = this.db
187
- .prepare(`SELECT
188
- id, customer_id as customerId, stripe_invoice_id as stripeInvoiceId,
189
- subscription_id as subscriptionId, amount_cents as amountCents, currency, status,
190
- pdf_url as pdfUrl, hosted_invoice_url as hostedInvoiceUrl,
191
- invoice_number as invoiceNumber, paid_at as paidAt,
192
- period_start as periodStart, period_end as periodEnd, created_at as createdAt
193
- FROM invoices WHERE customer_id = ? ORDER BY created_at DESC LIMIT ?`)
194
- .all(customerId, limit);
195
- return rows.map(mapRowToInvoice);
196
- }
197
- /** Store an invoice from Stripe */
198
- storeInvoice(params) {
199
- const id = randomUUID();
200
- const now = new Date().toISOString();
201
- this.db
202
- .prepare(`INSERT INTO invoices (
203
- id, customer_id, stripe_invoice_id, subscription_id,
204
- amount_cents, currency, status, pdf_url, hosted_invoice_url,
205
- invoice_number, paid_at, period_start, period_end, created_at
206
- ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
207
- ON CONFLICT(stripe_invoice_id) DO UPDATE SET
208
- status = excluded.status, pdf_url = excluded.pdf_url, paid_at = excluded.paid_at`)
209
- .run(id, params.customerId, params.stripeInvoiceId, params.subscriptionId ?? null, params.amountCents, params.currency, params.status, params.pdfUrl ?? null, params.hostedInvoiceUrl ?? null, params.invoiceNumber ?? null, params.paidAt?.toISOString() ?? null, params.periodStart?.toISOString() ?? null, params.periodEnd?.toISOString() ?? null, now);
210
- logger.info('Invoice stored', {
211
- invoiceId: id,
212
- stripeInvoiceId: params.stripeInvoiceId,
213
- status: params.status,
214
- });
215
- const row = this.db
216
- .prepare(`SELECT
217
- id, customer_id as customerId, stripe_invoice_id as stripeInvoiceId,
218
- subscription_id as subscriptionId, amount_cents as amountCents, currency, status,
219
- pdf_url as pdfUrl, hosted_invoice_url as hostedInvoiceUrl,
220
- invoice_number as invoiceNumber, paid_at as paidAt,
221
- period_start as periodStart, period_end as periodEnd, created_at as createdAt
222
- FROM invoices WHERE stripe_invoice_id = ?`)
223
- .get(params.stripeInvoiceId);
224
- return mapRowToInvoice(row);
225
- }
226
- // ==========================================================================
227
- // Webhook Event Tracking (Idempotency)
228
- // ==========================================================================
229
- /** Check if a webhook event has already been processed */
230
- isEventProcessed(stripeEventId) {
231
- const row = this.db
232
- .prepare(`SELECT id FROM stripe_webhook_events WHERE stripe_event_id = ?`)
233
- .get(stripeEventId);
234
- return !!row;
235
- }
236
- /** Record a processed webhook event */
237
- recordWebhookEvent(params) {
238
- const id = randomUUID();
239
- const now = new Date().toISOString();
240
- this.db
241
- .prepare(`INSERT INTO stripe_webhook_events (
242
- id, stripe_event_id, event_type, processed_at,
243
- payload, success, error_message, created_at
244
- ) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`)
245
- .run(id, params.stripeEventId, params.eventType, now, params.payload ?? null, params.success !== false ? 1 : 0, params.errorMessage ?? null, now);
246
- logger.info('Webhook event recorded', {
247
- eventId: params.stripeEventId,
248
- eventType: params.eventType,
249
- success: params.success !== false,
250
- });
251
- return {
252
- id,
253
- stripeEventId: params.stripeEventId,
254
- eventType: params.eventType,
255
- processedAt: new Date(now),
256
- payload: params.payload ?? '',
257
- success: params.success !== false,
258
- errorMessage: params.errorMessage ?? null,
259
- createdAt: new Date(now),
260
- };
261
- }
262
- }
263
- //# sourceMappingURL=BillingService.js.map
@@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MlB;QACC,MAAM,EAAE,GAAG,UAAU,EAAE,CAAA;QACvB,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;QAEpC,IAAI,CAAC,EAAE;aACJ,OAAO,CACN;;;0CAGkC,CACnC;aACA,GAAG,CACF,EAAE,EACF,MAAM,CAAC,aAAa,EACpB,MAAM,CAAC,SAAS,EAChB,GAAG,EACH,MAAM,CAAC,OAAO,IAAI,IAAI,EACtB,MAAM,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAChC,MAAM,CAAC,YAAY,IAAI,IAAI,EAC3B,GAAG,CACJ,CAAA;QAEH,MAAM,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACpC,OAAO,EAAE,MAAM,CAAC,aAAa;YAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,KAAK;SAClC,CAAC,CAAA;QAEF,OAAO;YACL,EAAE;YACF,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,SAAS,EAAE,MAAM,CAAC,SAAsC;YACxD,WAAW,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC;YAC1B,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE;YAC7B,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,KAAK;YACjC,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,IAAI;YACzC,SAAS,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC;SACzB,CAAA;IACH,CAAC;CACF"}
@@ -1,52 +0,0 @@
1
- /**
2
- * BillingService Types
3
- * @module billing/BillingService.types
4
- */
5
- import type { Database as DatabaseType } from '../db/database-interface.js';
6
- import type { StripeClient } from './StripeClient.js';
7
- /**
8
- * BillingService configuration
9
- */
10
- export interface BillingServiceConfig {
11
- /** StripeClient instance */
12
- stripeClient: StripeClient;
13
- /** Database connection (better-sqlite3) */
14
- db: DatabaseType;
15
- }
16
- /**
17
- * Subscription row from SQLite
18
- */
19
- export interface SubscriptionRow {
20
- id: string;
21
- customerId: string;
22
- stripeSubscriptionId: string | null;
23
- stripePriceId: string | null;
24
- tier: string;
25
- status: string;
26
- seatCount: number | null;
27
- currentPeriodStart: string | null;
28
- currentPeriodEnd: string | null;
29
- canceledAt: string | null;
30
- createdAt: string;
31
- updatedAt: string;
32
- }
33
- /**
34
- * Invoice row from SQLite
35
- */
36
- export interface InvoiceRow {
37
- id: string;
38
- customerId: string;
39
- stripeInvoiceId: string;
40
- subscriptionId: string | null;
41
- amountCents: number;
42
- currency: string;
43
- status: string;
44
- pdfUrl: string | null;
45
- hostedInvoiceUrl: string | null;
46
- invoiceNumber: string | null;
47
- paidAt: string | null;
48
- periodStart: string | null;
49
- periodEnd: string | null;
50
- createdAt: string;
51
- }
52
- //# sourceMappingURL=BillingService.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BillingService.types.d.ts","sourceRoot":"","sources":["../../../src/billing/BillingService.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,4BAA4B;IAC5B,YAAY,EAAE,YAAY,CAAA;IAC1B,2CAA2C;IAC3C,EAAE,EAAE,YAAY,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;IAClB,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;CAClB"}
@@ -1,6 +0,0 @@
1
- /**
2
- * BillingService Types
3
- * @module billing/BillingService.types
4
- */
5
- export {};
6
- //# sourceMappingURL=BillingService.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BillingService.types.js","sourceRoot":"","sources":["../../../src/billing/BillingService.types.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,81 +0,0 @@
1
- /**
2
- * SMI-1068: GDPR Compliance Service
3
- *
4
- * Provides data subject rights implementation for billing data:
5
- * - Article 17: Right to Erasure (data deletion)
6
- * - Article 20: Right to Data Portability (data export)
7
- *
8
- * All operations are logged for audit purposes.
9
- */
10
- import type { GDPRComplianceServiceConfig, CustomerDataExport, DeletionResult } from './gdpr-types.js';
11
- export type { GDPRComplianceServiceConfig, CustomerDataExport, SubscriptionExportData, InvoiceExportData, LicenseKeyExportData, WebhookEventExportData, DeletionResult, } from './gdpr-types.js';
12
- /**
13
- * GDPR Compliance Service for billing data
14
- *
15
- * @example
16
- * ```typescript
17
- * const gdpr = new GDPRComplianceService({
18
- * db,
19
- * stripeClient,
20
- * });
21
- *
22
- * // Export customer data (Article 20)
23
- * const data = gdpr.exportCustomerData('customer_123');
24
- *
25
- * // Delete customer data (Article 17)
26
- * const result = await gdpr.deleteCustomerData('customer_123');
27
- * ```
28
- */
29
- export declare class GDPRComplianceService {
30
- private readonly db;
31
- private readonly stripe?;
32
- constructor(config: GDPRComplianceServiceConfig);
33
- /**
34
- * Export all billing data for a customer
35
- *
36
- * Returns a structured JSON export of all data associated with the customer.
37
- * This fulfills GDPR Article 20 requirements.
38
- *
39
- * @param customerId - The customer ID to export data for
40
- * @returns Complete data export in JSON format
41
- */
42
- exportCustomerData(customerId: string): CustomerDataExport;
43
- private exportSubscriptions;
44
- private exportInvoices;
45
- private exportLicenseKeys;
46
- private exportWebhookEvents;
47
- /**
48
- * Delete all billing data for a customer
49
- *
50
- * Performs cascading deletion of:
51
- * 1. License keys
52
- * 2. Invoices
53
- * 3. Webhook events (those containing customer data)
54
- * 4. Subscriptions
55
- * 5. Stripe customer (if stripeClient provided)
56
- *
57
- * This fulfills GDPR Article 17 requirements.
58
- *
59
- * @param customerId - The customer ID to delete data for
60
- * @param options - Deletion options
61
- * @returns Result of the deletion operation
62
- */
63
- deleteCustomerData(customerId: string, options?: {
64
- deleteFromStripe?: boolean;
65
- dryRun?: boolean;
66
- }): Promise<DeletionResult>;
67
- /**
68
- * Check if a customer has any billing data
69
- */
70
- hasCustomerData(customerId: string): boolean;
71
- /**
72
- * Get a summary of customer data (for consent/overview purposes)
73
- */
74
- getDataSummary(customerId: string): {
75
- hasSubscription: boolean;
76
- invoiceCount: number;
77
- licenseKeyCount: number;
78
- stripeCustomerId: string | null;
79
- };
80
- }
81
- //# sourceMappingURL=GDPRComplianceService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GDPRComplianceService.d.ts","sourceRoot":"","sources":["../../../src/billing/GDPRComplianceService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EACV,2BAA2B,EAC3B,kBAAkB,EAKlB,cAAc,EACf,MAAM,iBAAiB,CAAA;AAGxB,YAAY,EACV,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,GACf,MAAM,iBAAiB,CAAA;AAQxB;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAc;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAc;gBAE1B,MAAM,EAAE,2BAA2B;IAW/C;;;;;;;;OAQG;IACH,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB;IAgC1D,OAAO,CAAC,mBAAmB;IAyB3B,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,iBAAiB;IA4CzB,OAAO,CAAC,mBAAmB;IA2C3B;;;;;;;;;;;;;;;OAeG;IACG,kBAAkB,CACtB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE;QACR,gBAAgB,CAAC,EAAE,OAAO,CAAA;QAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;KACjB,GACA,OAAO,CAAC,cAAc,CAAC;IA+I1B;;OAEG;IACH,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAQ5C;;OAEG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG;QAClC,eAAe,EAAE,OAAO,CAAA;QACxB,YAAY,EAAE,MAAM,CAAA;QACpB,eAAe,EAAE,MAAM,CAAA;QACvB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;KAChC;CA+BF"}