@wopr-network/platform-core 0.1.0 → 1.0.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.
- package/.github/workflows/ci.yml +43 -0
- package/.github/workflows/dependabot-auto-merge.yml +11 -0
- package/.github/workflows/publish.yml +12 -0
- package/.pr_agent.toml +10 -0
- package/coverage/coverage-summary.json +119 -0
- package/dist/admin/index.d.ts +1 -1
- package/dist/billing/drizzle-webhook-seen-repository.d.ts +1 -1
- package/dist/billing/index.d.ts +4 -4
- package/dist/billing/index.js +4 -4
- package/dist/billing/payram/webhook.test.js +1 -1
- package/dist/billing/stripe/index.d.ts +5 -5
- package/dist/billing/stripe/index.js +2 -2
- package/dist/billing/stripe/stripe-payment-processor.js +1 -1
- package/dist/credits/auto-topup-charge.d.ts +2 -2
- package/dist/credits/auto-topup-charge.test.js +1 -1
- package/dist/credits/auto-topup-schedule.d.ts +1 -1
- package/dist/credits/auto-topup-schedule.test.js +1 -1
- package/dist/credits/auto-topup-settings-repository.test.js +1 -1
- package/dist/credits/auto-topup-usage.d.ts +1 -1
- package/dist/credits/auto-topup-usage.test.js +1 -1
- package/dist/credits/index.d.ts +1 -1
- package/dist/credits/index.js +1 -1
- package/dist/db/schema/index.d.ts +1 -1
- package/dist/db/schema/index.js +1 -1
- package/dist/email/index.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -3
- package/dist/metering/aggregator.test.js +1 -1
- package/dist/metering/emitter.test.js +1 -1
- package/dist/metering/load-test.bench.js +1 -1
- package/dist/metering/metering.test.js +1 -1
- package/dist/metering/reconciliation-cron.test.js +2 -2
- package/dist/metering/reconciliation-repository.test.js +1 -1
- package/dist/middleware/index.d.ts +3 -3
- package/dist/middleware/index.js +2 -2
- package/dist/security/credential-vault/index.d.ts +2 -2
- package/dist/security/index.d.ts +7 -7
- package/dist/security/index.js +7 -7
- package/dist/security/redirect-allowlist.js +10 -8
- package/dist/security/tenant-keys/index.d.ts +6 -6
- package/dist/security/tenant-keys/index.js +3 -3
- package/dist/tenancy/index.d.ts +3 -3
- package/dist/tenancy/org-service.d.ts +1 -1
- package/dist/tenancy/org-service.test.js +1 -1
- package/dist/trpc/index.d.ts +1 -1
- package/dist/trpc/index.js +1 -1
- package/dist/trpc/init.test.js +3 -5
- package/package.json +10 -1
- package/src/admin/index.ts +1 -1
- package/src/auth/better-auth.ts +1 -1
- package/src/billing/drizzle-webhook-seen-repository.ts +1 -1
- package/src/billing/index.ts +11 -13
- package/src/billing/payram/webhook.test.ts +1 -1
- package/src/billing/stripe/index.ts +17 -5
- package/src/billing/stripe/stripe-payment-processor.test.ts +2 -3
- package/src/billing/stripe/stripe-payment-processor.ts +1 -1
- package/src/credits/auto-topup-charge.test.ts +2 -2
- package/src/credits/auto-topup-charge.ts +2 -2
- package/src/credits/auto-topup-schedule.test.ts +1 -1
- package/src/credits/auto-topup-schedule.ts +1 -1
- package/src/credits/auto-topup-settings-repository.test.ts +1 -1
- package/src/credits/auto-topup-usage.test.ts +1 -1
- package/src/credits/auto-topup-usage.ts +1 -1
- package/src/credits/index.ts +1 -1
- package/src/db/schema/index.ts +1 -1
- package/src/email/index.ts +3 -3
- package/src/index.ts +13 -17
- package/src/metering/aggregator.test.ts +1 -1
- package/src/metering/emitter.test.ts +1 -1
- package/src/metering/load-test.bench.ts +1 -1
- package/src/metering/metering.test.ts +1 -1
- package/src/metering/reconciliation-cron.test.ts +2 -2
- package/src/metering/reconciliation-repository.test.ts +2 -2
- package/src/middleware/index.ts +5 -5
- package/src/middleware/rate-limit.test.ts +1 -1
- package/src/middleware/rate-limit.ts +1 -1
- package/src/security/credential-vault/index.ts +2 -2
- package/src/security/index.ts +43 -38
- package/src/security/redirect-allowlist.ts +11 -8
- package/src/security/tenant-keys/index.ts +10 -6
- package/src/tenancy/index.ts +3 -3
- package/src/tenancy/org-service.test.ts +1 -1
- package/src/tenancy/org-service.ts +1 -1
- package/src/trpc/index.ts +5 -5
- package/src/trpc/init.test.ts +8 -10
- package/vitest.config.ts +4 -0
- package/dist/email/require-verified.test.d.ts +0 -1
- package/dist/email/require-verified.test.js +0 -62
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
merge_group:
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [main]
|
|
9
|
+
|
|
10
|
+
permissions: {}
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
ci:
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
pull-requests: write
|
|
17
|
+
runs-on: [self-hosted, Linux, X64]
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- uses: pnpm/action-setup@v4
|
|
22
|
+
|
|
23
|
+
- uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: "24"
|
|
26
|
+
cache: "pnpm"
|
|
27
|
+
|
|
28
|
+
- run: pnpm install --frozen-lockfile
|
|
29
|
+
|
|
30
|
+
- name: Lint and Type Check
|
|
31
|
+
run: pnpm check
|
|
32
|
+
|
|
33
|
+
- name: Build
|
|
34
|
+
run: pnpm build
|
|
35
|
+
|
|
36
|
+
- name: Test
|
|
37
|
+
run: pnpm test -- --coverage
|
|
38
|
+
|
|
39
|
+
- name: Coverage Report
|
|
40
|
+
if: github.event_name == 'pull_request'
|
|
41
|
+
uses: davelosert/vitest-coverage-report-action@v2
|
|
42
|
+
with:
|
|
43
|
+
json-summary-path: coverage/coverage-summary.json
|
package/.pr_agent.toml
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{"total": {"lines":{"total":2379,"covered":2080,"skipped":0,"pct":87.43},"statements":{"total":2523,"covered":2197,"skipped":0,"pct":87.07},"functions":{"total":580,"covered":517,"skipped":0,"pct":89.13},"branches":{"total":1460,"covered":1075,"skipped":0,"pct":73.63},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
2
|
+
,"/home/tsavo/platform-core/src/admin/admin-audit-log-repository.ts": {"lines":{"total":38,"covered":4,"skipped":0,"pct":10.52},"functions":{"total":7,"covered":2,"skipped":0,"pct":28.57},"statements":{"total":40,"covered":4,"skipped":0,"pct":10},"branches":{"total":28,"covered":0,"skipped":0,"pct":0}}
|
|
3
|
+
,"/home/tsavo/platform-core/src/admin/audit-log.ts": {"lines":{"total":16,"covered":5,"skipped":0,"pct":31.25},"functions":{"total":6,"covered":2,"skipped":0,"pct":33.33},"statements":{"total":17,"covered":5,"skipped":0,"pct":29.41},"branches":{"total":24,"covered":10,"skipped":0,"pct":41.66}}
|
|
4
|
+
,"/home/tsavo/platform-core/src/auth/index.ts": {"lines":{"total":143,"covered":57,"skipped":0,"pct":39.86},"functions":{"total":20,"covered":10,"skipped":0,"pct":50},"statements":{"total":156,"covered":64,"skipped":0,"pct":41.02},"branches":{"total":90,"covered":40,"skipped":0,"pct":44.44}}
|
|
5
|
+
,"/home/tsavo/platform-core/src/auth/login-history-repository.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":3,"covered":2,"skipped":0,"pct":66.66}}
|
|
6
|
+
,"/home/tsavo/platform-core/src/auth/middleware.ts": {"lines":{"total":36,"covered":36,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":36,"covered":36,"skipped":0,"pct":100},"branches":{"total":18,"covered":16,"skipped":0,"pct":88.88}}
|
|
7
|
+
,"/home/tsavo/platform-core/src/auth/user-creator.ts": {"lines":{"total":15,"covered":15,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
8
|
+
,"/home/tsavo/platform-core/src/auth/user-role-repository.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
9
|
+
,"/home/tsavo/platform-core/src/billing/drizzle-webhook-seen-repository.ts": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
10
|
+
,"/home/tsavo/platform-core/src/billing/payment-processor.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
11
|
+
,"/home/tsavo/platform-core/src/billing/webhook-seen-repository.ts": {"lines":{"total":4,"covered":3,"skipped":0,"pct":75},"functions":{"total":3,"covered":2,"skipped":0,"pct":66.66},"statements":{"total":4,"covered":3,"skipped":0,"pct":75},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
12
|
+
,"/home/tsavo/platform-core/src/billing/payram/charge-store.ts": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
|
|
13
|
+
,"/home/tsavo/platform-core/src/billing/payram/checkout.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":6,"covered":6,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
14
|
+
,"/home/tsavo/platform-core/src/billing/payram/client.ts": {"lines":{"total":5,"covered":5,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":6,"covered":6,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
15
|
+
,"/home/tsavo/platform-core/src/billing/payram/webhook.ts": {"lines":{"total":21,"covered":21,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":22,"covered":22,"skipped":0,"pct":100},"branches":{"total":16,"covered":15,"skipped":0,"pct":93.75}}
|
|
16
|
+
,"/home/tsavo/platform-core/src/billing/stripe/checkout.ts": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
17
|
+
,"/home/tsavo/platform-core/src/billing/stripe/client.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":7,"covered":7,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
18
|
+
,"/home/tsavo/platform-core/src/billing/stripe/credit-prices.ts": {"lines":{"total":17,"covered":17,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":19,"covered":19,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
|
|
19
|
+
,"/home/tsavo/platform-core/src/billing/stripe/payment-methods.ts": {"lines":{"total":21,"covered":21,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":23,"covered":23,"skipped":0,"pct":100},"branches":{"total":12,"covered":12,"skipped":0,"pct":100}}
|
|
20
|
+
,"/home/tsavo/platform-core/src/billing/stripe/portal.ts": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
21
|
+
,"/home/tsavo/platform-core/src/billing/stripe/setup-intent.ts": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
22
|
+
,"/home/tsavo/platform-core/src/billing/stripe/stripe-payment-processor.ts": {"lines":{"total":66,"covered":63,"skipped":0,"pct":95.45},"functions":{"total":15,"covered":15,"skipped":0,"pct":100},"statements":{"total":68,"covered":65,"skipped":0,"pct":95.58},"branches":{"total":48,"covered":41,"skipped":0,"pct":85.41}}
|
|
23
|
+
,"/home/tsavo/platform-core/src/billing/stripe/tenant-store.ts": {"lines":{"total":22,"covered":19,"skipped":0,"pct":86.36},"functions":{"total":12,"covered":10,"skipped":0,"pct":83.33},"statements":{"total":22,"covered":19,"skipped":0,"pct":86.36},"branches":{"total":12,"covered":9,"skipped":0,"pct":75}}
|
|
24
|
+
,"/home/tsavo/platform-core/src/config/index.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
25
|
+
,"/home/tsavo/platform-core/src/config/logger.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
26
|
+
,"/home/tsavo/platform-core/src/config/provider-endpoints.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
27
|
+
,"/home/tsavo/platform-core/src/credits/auto-topup-charge.ts": {"lines":{"total":54,"covered":44,"skipped":0,"pct":81.48},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":54,"covered":44,"skipped":0,"pct":81.48},"branches":{"total":32,"covered":20,"skipped":0,"pct":62.5}}
|
|
28
|
+
,"/home/tsavo/platform-core/src/credits/auto-topup-event-log-repository.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
29
|
+
,"/home/tsavo/platform-core/src/credits/auto-topup-schedule.ts": {"lines":{"total":31,"covered":30,"skipped":0,"pct":96.77},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":31,"covered":30,"skipped":0,"pct":96.77},"branches":{"total":12,"covered":9,"skipped":0,"pct":75}}
|
|
30
|
+
,"/home/tsavo/platform-core/src/credits/auto-topup-settings-repository.ts": {"lines":{"total":69,"covered":57,"skipped":0,"pct":82.6},"functions":{"total":16,"covered":15,"skipped":0,"pct":93.75},"statements":{"total":71,"covered":57,"skipped":0,"pct":80.28},"branches":{"total":31,"covered":20,"skipped":0,"pct":64.51}}
|
|
31
|
+
,"/home/tsavo/platform-core/src/credits/auto-topup-usage.ts": {"lines":{"total":22,"covered":21,"skipped":0,"pct":95.45},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":26,"covered":25,"skipped":0,"pct":96.15},"branches":{"total":20,"covered":17,"skipped":0,"pct":85}}
|
|
32
|
+
,"/home/tsavo/platform-core/src/credits/credit-expiry-cron.ts": {"lines":{"total":21,"covered":14,"skipped":0,"pct":66.66},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":21,"covered":14,"skipped":0,"pct":66.66},"branches":{"total":12,"covered":6,"skipped":0,"pct":50}}
|
|
33
|
+
,"/home/tsavo/platform-core/src/credits/credit-ledger.ts": {"lines":{"total":69,"covered":48,"skipped":0,"pct":69.56},"functions":{"total":17,"covered":12,"skipped":0,"pct":70.58},"statements":{"total":72,"covered":49,"skipped":0,"pct":68.05},"branches":{"total":67,"covered":55,"skipped":0,"pct":82.08}}
|
|
34
|
+
,"/home/tsavo/platform-core/src/credits/credit-transaction-repository.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":2,"covered":1,"skipped":0,"pct":50}}
|
|
35
|
+
,"/home/tsavo/platform-core/src/credits/credit.ts": {"lines":{"total":39,"covered":35,"skipped":0,"pct":89.74},"functions":{"total":23,"covered":23,"skipped":0,"pct":100},"statements":{"total":39,"covered":35,"skipped":0,"pct":89.74},"branches":{"total":10,"covered":6,"skipped":0,"pct":60}}
|
|
36
|
+
,"/home/tsavo/platform-core/src/credits/dividend-cron.ts": {"lines":{"total":35,"covered":30,"skipped":0,"pct":85.71},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":35,"covered":30,"skipped":0,"pct":85.71},"branches":{"total":10,"covered":7,"skipped":0,"pct":70}}
|
|
37
|
+
,"/home/tsavo/platform-core/src/credits/dividend-repository.ts": {"lines":{"total":32,"covered":32,"skipped":0,"pct":100},"functions":{"total":8,"covered":8,"skipped":0,"pct":100},"statements":{"total":34,"covered":34,"skipped":0,"pct":100},"branches":{"total":10,"covered":7,"skipped":0,"pct":70}}
|
|
38
|
+
,"/home/tsavo/platform-core/src/credits/signup-grant.ts": {"lines":{"total":12,"covered":10,"skipped":0,"pct":83.33},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":15,"covered":12,"skipped":0,"pct":80},"branches":{"total":10,"covered":5,"skipped":0,"pct":50}}
|
|
39
|
+
,"/home/tsavo/platform-core/src/db/credit-column.ts": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
40
|
+
,"/home/tsavo/platform-core/src/db/schema/account-deletion-requests.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
41
|
+
,"/home/tsavo/platform-core/src/db/schema/account-export-requests.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
42
|
+
,"/home/tsavo/platform-core/src/db/schema/admin-audit.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
43
|
+
,"/home/tsavo/platform-core/src/db/schema/admin-users.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
44
|
+
,"/home/tsavo/platform-core/src/db/schema/affiliate-fraud.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
45
|
+
,"/home/tsavo/platform-core/src/db/schema/affiliate.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
46
|
+
,"/home/tsavo/platform-core/src/db/schema/coupon-codes.ts": {"lines":{"total":3,"covered":2,"skipped":0,"pct":66.66},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":3,"covered":2,"skipped":0,"pct":66.66},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
47
|
+
,"/home/tsavo/platform-core/src/db/schema/credit-auto-topup-settings.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
48
|
+
,"/home/tsavo/platform-core/src/db/schema/credit-auto-topup.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
49
|
+
,"/home/tsavo/platform-core/src/db/schema/credits.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
50
|
+
,"/home/tsavo/platform-core/src/db/schema/dividend-distributions.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
51
|
+
,"/home/tsavo/platform-core/src/db/schema/email-notifications.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
52
|
+
,"/home/tsavo/platform-core/src/db/schema/index.ts": {"lines":{"total":0,"covered":0,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":0,"covered":0,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
53
|
+
,"/home/tsavo/platform-core/src/db/schema/meter-events.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":6,"covered":6,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
54
|
+
,"/home/tsavo/platform-core/src/db/schema/notification-preferences.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
55
|
+
,"/home/tsavo/platform-core/src/db/schema/notification-queue.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
56
|
+
,"/home/tsavo/platform-core/src/db/schema/org-memberships.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
57
|
+
,"/home/tsavo/platform-core/src/db/schema/organization-members.ts": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
58
|
+
,"/home/tsavo/platform-core/src/db/schema/payram.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
59
|
+
,"/home/tsavo/platform-core/src/db/schema/platform-api-keys.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
60
|
+
,"/home/tsavo/platform-core/src/db/schema/promotion-redemptions.ts": {"lines":{"total":4,"covered":2,"skipped":0,"pct":50},"functions":{"total":3,"covered":1,"skipped":0,"pct":33.33},"statements":{"total":4,"covered":2,"skipped":0,"pct":50},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
61
|
+
,"/home/tsavo/platform-core/src/db/schema/promotions.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":6,"covered":6,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
62
|
+
,"/home/tsavo/platform-core/src/db/schema/provider-credentials.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
63
|
+
,"/home/tsavo/platform-core/src/db/schema/rate-limit-entries.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
64
|
+
,"/home/tsavo/platform-core/src/db/schema/secret-audit-log.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
65
|
+
,"/home/tsavo/platform-core/src/db/schema/session-usage.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
66
|
+
,"/home/tsavo/platform-core/src/db/schema/spending-limits.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
67
|
+
,"/home/tsavo/platform-core/src/db/schema/tenant-addons.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
68
|
+
,"/home/tsavo/platform-core/src/db/schema/tenant-api-keys.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
69
|
+
,"/home/tsavo/platform-core/src/db/schema/tenant-capability-settings.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
70
|
+
,"/home/tsavo/platform-core/src/db/schema/tenant-customers.ts": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
71
|
+
,"/home/tsavo/platform-core/src/db/schema/tenants.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
72
|
+
,"/home/tsavo/platform-core/src/db/schema/user-roles.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
73
|
+
,"/home/tsavo/platform-core/src/db/schema/webhook-seen-events.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
74
|
+
,"/home/tsavo/platform-core/src/email/billing-emails.ts": {"lines":{"total":51,"covered":43,"skipped":0,"pct":84.31},"functions":{"total":9,"covered":9,"skipped":0,"pct":100},"statements":{"total":51,"covered":43,"skipped":0,"pct":84.31},"branches":{"total":22,"covered":12,"skipped":0,"pct":54.54}}
|
|
75
|
+
,"/home/tsavo/platform-core/src/email/client.ts": {"lines":{"total":24,"covered":24,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":24,"covered":24,"skipped":0,"pct":100},"branches":{"total":14,"covered":14,"skipped":0,"pct":100}}
|
|
76
|
+
,"/home/tsavo/platform-core/src/email/drizzle-billing-email-repository.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":6,"covered":6,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
77
|
+
,"/home/tsavo/platform-core/src/email/notification-preferences-store.ts": {"lines":{"total":19,"covered":19,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":27,"covered":27,"skipped":0,"pct":100},"branches":{"total":18,"covered":18,"skipped":0,"pct":100}}
|
|
78
|
+
,"/home/tsavo/platform-core/src/email/notification-queue-store.ts": {"lines":{"total":22,"covered":22,"skipped":0,"pct":100},"functions":{"total":8,"covered":8,"skipped":0,"pct":100},"statements":{"total":24,"covered":24,"skipped":0,"pct":100},"branches":{"total":26,"covered":25,"skipped":0,"pct":96.15}}
|
|
79
|
+
,"/home/tsavo/platform-core/src/email/notification-service.ts": {"lines":{"total":32,"covered":17,"skipped":0,"pct":53.12},"functions":{"total":30,"covered":16,"skipped":0,"pct":53.33},"statements":{"total":32,"covered":17,"skipped":0,"pct":53.12},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
80
|
+
,"/home/tsavo/platform-core/src/email/notification-templates.ts": {"lines":{"total":165,"covered":132,"skipped":0,"pct":80},"functions":{"total":28,"covered":25,"skipped":0,"pct":89.28},"statements":{"total":176,"covered":140,"skipped":0,"pct":79.54},"branches":{"total":201,"covered":87,"skipped":0,"pct":43.28}}
|
|
81
|
+
,"/home/tsavo/platform-core/src/email/notification-worker.ts": {"lines":{"total":34,"covered":34,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":35,"covered":34,"skipped":0,"pct":97.14},"branches":{"total":12,"covered":10,"skipped":0,"pct":83.33}}
|
|
82
|
+
,"/home/tsavo/platform-core/src/email/resend-adapter.ts": {"lines":{"total":15,"covered":15,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":13,"covered":11,"skipped":0,"pct":84.61}}
|
|
83
|
+
,"/home/tsavo/platform-core/src/email/templates.ts": {"lines":{"total":83,"covered":77,"skipped":0,"pct":92.77},"functions":{"total":17,"covered":16,"skipped":0,"pct":94.11},"statements":{"total":90,"covered":84,"skipped":0,"pct":93.33},"branches":{"total":59,"covered":57,"skipped":0,"pct":96.61}}
|
|
84
|
+
,"/home/tsavo/platform-core/src/email/verification.ts": {"lines":{"total":23,"covered":21,"skipped":0,"pct":91.3},"functions":{"total":7,"covered":5,"skipped":0,"pct":71.42},"statements":{"total":27,"covered":25,"skipped":0,"pct":92.59},"branches":{"total":12,"covered":12,"skipped":0,"pct":100}}
|
|
85
|
+
,"/home/tsavo/platform-core/src/metering/aggregator.ts": {"lines":{"total":36,"covered":36,"skipped":0,"pct":100},"functions":{"total":8,"covered":7,"skipped":0,"pct":87.5},"statements":{"total":37,"covered":36,"skipped":0,"pct":97.29},"branches":{"total":21,"covered":19,"skipped":0,"pct":90.47}}
|
|
86
|
+
,"/home/tsavo/platform-core/src/metering/dlq.ts": {"lines":{"total":30,"covered":28,"skipped":0,"pct":93.33},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":33,"covered":31,"skipped":0,"pct":93.93},"branches":{"total":16,"covered":14,"skipped":0,"pct":87.5}}
|
|
87
|
+
,"/home/tsavo/platform-core/src/metering/drizzle-usage-summary-repository.ts": {"lines":{"total":22,"covered":22,"skipped":0,"pct":100},"functions":{"total":10,"covered":10,"skipped":0,"pct":100},"statements":{"total":25,"covered":25,"skipped":0,"pct":100},"branches":{"total":19,"covered":16,"skipped":0,"pct":84.21}}
|
|
88
|
+
,"/home/tsavo/platform-core/src/metering/emitter.ts": {"lines":{"total":71,"covered":70,"skipped":0,"pct":98.59},"functions":{"total":15,"covered":14,"skipped":0,"pct":93.33},"statements":{"total":79,"covered":77,"skipped":0,"pct":97.46},"branches":{"total":58,"covered":53,"skipped":0,"pct":91.37}}
|
|
89
|
+
,"/home/tsavo/platform-core/src/metering/meter-event-repository.ts": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
90
|
+
,"/home/tsavo/platform-core/src/metering/reconciliation-cron.ts": {"lines":{"total":37,"covered":36,"skipped":0,"pct":97.29},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":37,"covered":36,"skipped":0,"pct":97.29},"branches":{"total":22,"covered":18,"skipped":0,"pct":81.81}}
|
|
91
|
+
,"/home/tsavo/platform-core/src/metering/reconciliation-repository.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
92
|
+
,"/home/tsavo/platform-core/src/metering/wal.ts": {"lines":{"total":45,"covered":43,"skipped":0,"pct":95.55},"functions":{"total":15,"covered":15,"skipped":0,"pct":100},"statements":{"total":47,"covered":45,"skipped":0,"pct":95.74},"branches":{"total":18,"covered":15,"skipped":0,"pct":83.33}}
|
|
93
|
+
,"/home/tsavo/platform-core/src/middleware/csrf.ts": {"lines":{"total":32,"covered":31,"skipped":0,"pct":96.87},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":34,"covered":33,"skipped":0,"pct":97.05},"branches":{"total":22,"covered":20,"skipped":0,"pct":90.9}}
|
|
94
|
+
,"/home/tsavo/platform-core/src/middleware/drizzle-rate-limit-repository.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":17,"covered":17,"skipped":0,"pct":100},"branches":{"total":6,"covered":6,"skipped":0,"pct":100}}
|
|
95
|
+
,"/home/tsavo/platform-core/src/middleware/get-client-ip.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":19,"covered":19,"skipped":0,"pct":100},"branches":{"total":18,"covered":16,"skipped":0,"pct":88.88}}
|
|
96
|
+
,"/home/tsavo/platform-core/src/middleware/rate-limit.ts": {"lines":{"total":54,"covered":54,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":55,"covered":54,"skipped":0,"pct":98.18},"branches":{"total":28,"covered":25,"skipped":0,"pct":89.28}}
|
|
97
|
+
,"/home/tsavo/platform-core/src/security/encryption.ts": {"lines":{"total":21,"covered":21,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":21,"covered":21,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
98
|
+
,"/home/tsavo/platform-core/src/security/host-validation.ts": {"lines":{"total":46,"covered":45,"skipped":0,"pct":97.82},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":60,"covered":58,"skipped":0,"pct":96.66},"branches":{"total":67,"covered":63,"skipped":0,"pct":94.02}}
|
|
99
|
+
,"/home/tsavo/platform-core/src/security/key-audit.ts": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
100
|
+
,"/home/tsavo/platform-core/src/security/key-injection.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":3,"covered":2,"skipped":0,"pct":66.66},"statements":{"total":17,"covered":16,"skipped":0,"pct":94.11},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
101
|
+
,"/home/tsavo/platform-core/src/security/key-validation.ts": {"lines":{"total":19,"covered":16,"skipped":0,"pct":84.21},"functions":{"total":7,"covered":5,"skipped":0,"pct":71.42},"statements":{"total":19,"covered":16,"skipped":0,"pct":84.21},"branches":{"total":10,"covered":8,"skipped":0,"pct":80}}
|
|
102
|
+
,"/home/tsavo/platform-core/src/security/redirect-allowlist.ts": {"lines":{"total":14,"covered":13,"skipped":0,"pct":92.85},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":14,"covered":13,"skipped":0,"pct":92.85},"branches":{"total":12,"covered":10,"skipped":0,"pct":83.33}}
|
|
103
|
+
,"/home/tsavo/platform-core/src/security/credential-vault/audit-repository.ts": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":2,"covered":1,"skipped":0,"pct":50}}
|
|
104
|
+
,"/home/tsavo/platform-core/src/security/credential-vault/credential-repository.ts": {"lines":{"total":24,"covered":24,"skipped":0,"pct":100},"functions":{"total":16,"covered":16,"skipped":0,"pct":100},"statements":{"total":24,"covered":24,"skipped":0,"pct":100},"branches":{"total":6,"covered":6,"skipped":0,"pct":100}}
|
|
105
|
+
,"/home/tsavo/platform-core/src/security/credential-vault/key-rotation.ts": {"lines":{"total":25,"covered":24,"skipped":0,"pct":96},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":25,"covered":24,"skipped":0,"pct":96},"branches":{"total":4,"covered":1,"skipped":0,"pct":25}}
|
|
106
|
+
,"/home/tsavo/platform-core/src/security/credential-vault/migrate-plaintext.ts": {"lines":{"total":36,"covered":35,"skipped":0,"pct":97.22},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":37,"covered":35,"skipped":0,"pct":94.59},"branches":{"total":22,"covered":18,"skipped":0,"pct":81.81}}
|
|
107
|
+
,"/home/tsavo/platform-core/src/security/credential-vault/migration-check.ts": {"lines":{"total":22,"covered":20,"skipped":0,"pct":90.9},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":23,"covered":20,"skipped":0,"pct":86.95},"branches":{"total":26,"covered":13,"skipped":0,"pct":50}}
|
|
108
|
+
,"/home/tsavo/platform-core/src/security/credential-vault/store.ts": {"lines":{"total":55,"covered":54,"skipped":0,"pct":98.18},"functions":{"total":16,"covered":15,"skipped":0,"pct":93.75},"statements":{"total":63,"covered":62,"skipped":0,"pct":98.41},"branches":{"total":26,"covered":23,"skipped":0,"pct":88.46}}
|
|
109
|
+
,"/home/tsavo/platform-core/src/security/tenant-keys/capability-settings-store.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":7,"covered":7,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
110
|
+
,"/home/tsavo/platform-core/src/security/tenant-keys/key-resolution-repository.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
111
|
+
,"/home/tsavo/platform-core/src/security/tenant-keys/key-resolution.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":7,"covered":7,"skipped":0,"pct":100}}
|
|
112
|
+
,"/home/tsavo/platform-core/src/security/tenant-keys/org-key-resolution.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":10,"covered":10,"skipped":0,"pct":100}}
|
|
113
|
+
,"/home/tsavo/platform-core/src/security/tenant-keys/tenant-key-repository.ts": {"lines":{"total":20,"covered":20,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":22,"covered":22,"skipped":0,"pct":100},"branches":{"total":5,"covered":5,"skipped":0,"pct":100}}
|
|
114
|
+
,"/home/tsavo/platform-core/src/tenancy/drizzle-org-repository.ts": {"lines":{"total":38,"covered":37,"skipped":0,"pct":97.36},"functions":{"total":13,"covered":13,"skipped":0,"pct":100},"statements":{"total":45,"covered":42,"skipped":0,"pct":93.33},"branches":{"total":34,"covered":25,"skipped":0,"pct":73.52}}
|
|
115
|
+
,"/home/tsavo/platform-core/src/tenancy/org-member-repository.ts": {"lines":{"total":23,"covered":19,"skipped":0,"pct":82.6},"functions":{"total":16,"covered":13,"skipped":0,"pct":81.25},"statements":{"total":23,"covered":19,"skipped":0,"pct":82.6},"branches":{"total":6,"covered":4,"skipped":0,"pct":66.66}}
|
|
116
|
+
,"/home/tsavo/platform-core/src/tenancy/org-service.ts": {"lines":{"total":91,"covered":87,"skipped":0,"pct":95.6},"functions":{"total":19,"covered":18,"skipped":0,"pct":94.73},"statements":{"total":92,"covered":88,"skipped":0,"pct":95.65},"branches":{"total":47,"covered":42,"skipped":0,"pct":89.36}}
|
|
117
|
+
,"/home/tsavo/platform-core/src/test/db.ts": {"lines":{"total":23,"covered":22,"skipped":0,"pct":95.65},"functions":{"total":9,"covered":8,"skipped":0,"pct":88.88},"statements":{"total":25,"covered":24,"skipped":0,"pct":96},"branches":{"total":20,"covered":13,"skipped":0,"pct":65}}
|
|
118
|
+
,"/home/tsavo/platform-core/src/trpc/init.ts": {"lines":{"total":45,"covered":41,"skipped":0,"pct":91.11},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":45,"covered":41,"skipped":0,"pct":91.11},"branches":{"total":24,"covered":20,"skipped":0,"pct":83.33}}
|
|
119
|
+
}
|
package/dist/admin/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { IAdminAuditLogRepository } from "./admin-audit-log-repository.js";
|
|
2
2
|
export { DrizzleAdminAuditLogRepository } from "./admin-audit-log-repository.js";
|
|
3
|
-
export type { AuditCategory, AuditEntry,
|
|
3
|
+
export type { AdminAuditLogRow, AuditCategory, AuditEntry, AuditFilters } from "./audit-log.js";
|
|
4
4
|
export { AdminAuditLog } from "./audit-log.js";
|
|
5
5
|
export type { Role, UserRoleRow } from "./role-store.js";
|
|
6
6
|
export { isValidRole, RoleStore } from "./role-store.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PlatformDb } from "../db/index.js";
|
|
2
1
|
import type { WebhookSeenEvent } from "../credits/repository-types.js";
|
|
2
|
+
import type { PlatformDb } from "../db/index.js";
|
|
3
3
|
import type { IWebhookSeenRepository } from "./webhook-seen-repository.js";
|
|
4
4
|
export declare class DrizzleWebhookSeenRepository implements IWebhookSeenRepository {
|
|
5
5
|
private readonly db;
|
package/dist/billing/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DrizzleWebhookSeenRepository } from "./drizzle-webhook-seen-repository.js";
|
|
2
|
+
export type { ChargeOpts, ChargeResult, CheckoutOpts, CheckoutSession, Invoice, IPaymentProcessor, PortalOpts, SavedPaymentMethod, SetupResult, WebhookResult, } from "./payment-processor.js";
|
|
2
3
|
export { PaymentMethodOwnershipError } from "./payment-processor.js";
|
|
4
|
+
export * from "./payram/index.js";
|
|
5
|
+
export * from "./stripe/index.js";
|
|
3
6
|
export type { IWebhookSeenRepository } from "./webhook-seen-repository.js";
|
|
4
7
|
export { noOpReplayGuard } from "./webhook-seen-repository.js";
|
|
5
|
-
export { DrizzleWebhookSeenRepository } from "./drizzle-webhook-seen-repository.js";
|
|
6
|
-
export * from "./stripe/index.js";
|
|
7
|
-
export * from "./payram/index.js";
|
package/dist/billing/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { PaymentMethodOwnershipError } from "./payment-processor.js";
|
|
2
|
-
export { noOpReplayGuard } from "./webhook-seen-repository.js";
|
|
3
1
|
export { DrizzleWebhookSeenRepository } from "./drizzle-webhook-seen-repository.js";
|
|
4
|
-
|
|
5
|
-
export * from "./stripe/index.js";
|
|
2
|
+
export { PaymentMethodOwnershipError } from "./payment-processor.js";
|
|
6
3
|
// PayRam
|
|
7
4
|
export * from "./payram/index.js";
|
|
5
|
+
// Stripe
|
|
6
|
+
export * from "./stripe/index.js";
|
|
7
|
+
export { noOpReplayGuard } from "./webhook-seen-repository.js";
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* no-op status, idempotency, replay guard, and bot reactivation.
|
|
6
6
|
*/
|
|
7
7
|
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
|
8
|
-
import { createTestDb, truncateAllTables } from "../../test/db.js";
|
|
9
8
|
import { CreditLedger } from "../../credits/credit-ledger.js";
|
|
9
|
+
import { createTestDb, truncateAllTables } from "../../test/db.js";
|
|
10
10
|
import { DrizzleWebhookSeenRepository } from "../drizzle-webhook-seen-repository.js";
|
|
11
11
|
import { noOpReplayGuard } from "../webhook-seen-repository.js";
|
|
12
12
|
import { PayRamChargeRepository } from "./charge-store.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { createCreditCheckoutSession, createVpsCheckoutSession } from "./checkout.js";
|
|
2
2
|
export { createStripeClient, loadStripeConfig } from "./client.js";
|
|
3
|
-
export type {
|
|
4
|
-
export { CREDIT_PRICE_POINTS,
|
|
5
|
-
export { detachPaymentMethod, detachAllPaymentMethods } from "./payment-methods.js";
|
|
3
|
+
export type { CreditPriceMap, CreditPricePoint } from "./credit-prices.js";
|
|
4
|
+
export { CREDIT_PRICE_POINTS, getConfiguredPriceIds, getCreditAmountForPurchase, loadCreditPriceMap, lookupCreditPrice, } from "./credit-prices.js";
|
|
6
5
|
export type { DetachPaymentMethodOpts } from "./payment-methods.js";
|
|
6
|
+
export { detachAllPaymentMethods, detachPaymentMethod } from "./payment-methods.js";
|
|
7
7
|
export { createPortalSession } from "./portal.js";
|
|
8
8
|
export type { SetupIntentOpts } from "./setup-intent.js";
|
|
9
9
|
export { createSetupIntent } from "./setup-intent.js";
|
|
10
|
-
export type {
|
|
10
|
+
export type { StripePaymentProcessorDeps, StripeWebhookHandlerResult } from "./stripe-payment-processor.js";
|
|
11
11
|
export { StripePaymentProcessor } from "./stripe-payment-processor.js";
|
|
12
12
|
export type { ITenantCustomerRepository } from "./tenant-store.js";
|
|
13
13
|
export { DrizzleTenantCustomerRepository, TenantCustomerRepository } from "./tenant-store.js";
|
|
14
|
-
export type {
|
|
14
|
+
export type { CreditCheckoutOpts, PortalSessionOpts, StripeBillingConfig, TenantCustomerRow, VpsCheckoutOpts, } from "./types.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { createCreditCheckoutSession, createVpsCheckoutSession } from "./checkout.js";
|
|
2
2
|
export { createStripeClient, loadStripeConfig } from "./client.js";
|
|
3
|
-
export { CREDIT_PRICE_POINTS,
|
|
4
|
-
export {
|
|
3
|
+
export { CREDIT_PRICE_POINTS, getConfiguredPriceIds, getCreditAmountForPurchase, loadCreditPriceMap, lookupCreditPrice, } from "./credit-prices.js";
|
|
4
|
+
export { detachAllPaymentMethods, detachPaymentMethod } from "./payment-methods.js";
|
|
5
5
|
export { createPortalSession } from "./portal.js";
|
|
6
6
|
export { createSetupIntent } from "./setup-intent.js";
|
|
7
7
|
export { StripePaymentProcessor } from "./stripe-payment-processor.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Credit } from "../../credits/credit.js";
|
|
2
1
|
import { chargeAutoTopup } from "../../credits/auto-topup-charge.js";
|
|
2
|
+
import { Credit } from "../../credits/credit.js";
|
|
3
3
|
import { PaymentMethodOwnershipError, } from "../payment-processor.js";
|
|
4
4
|
import { createCreditCheckoutSession } from "./checkout.js";
|
|
5
5
|
import { createPortalSession } from "./portal.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Stripe from "stripe";
|
|
2
|
-
import type { Credit } from "./credit.js";
|
|
3
|
-
import type { ITenantCustomerRepository } from "./tenant-customer-repository.js";
|
|
4
2
|
import type { IAutoTopupEventLogRepository } from "./auto-topup-event-log-repository.js";
|
|
3
|
+
import type { Credit } from "./credit.js";
|
|
5
4
|
import type { ICreditLedger } from "./credit-ledger.js";
|
|
5
|
+
import type { ITenantCustomerRepository } from "./tenant-customer-repository.js";
|
|
6
6
|
/** After this many consecutive Stripe failures, the auto-topup mode is disabled. */
|
|
7
7
|
export declare const MAX_CONSECUTIVE_FAILURES = 3;
|
|
8
8
|
export interface AutoTopupChargeDeps {
|
|
@@ -3,9 +3,9 @@ import Stripe from "stripe";
|
|
|
3
3
|
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
|
4
4
|
import { creditAutoTopup } from "../db/schema/credit-auto-topup.js";
|
|
5
5
|
import { createTestDb, truncateAllTables } from "../test/db.js";
|
|
6
|
-
import { Credit } from "./credit.js";
|
|
7
6
|
import { chargeAutoTopup, MAX_CONSECUTIVE_FAILURES } from "./auto-topup-charge.js";
|
|
8
7
|
import { DrizzleAutoTopupEventLogRepository } from "./auto-topup-event-log-repository.js";
|
|
8
|
+
import { Credit } from "./credit.js";
|
|
9
9
|
import { CreditLedger } from "./credit-ledger.js";
|
|
10
10
|
function mockStripe(overrides) {
|
|
11
11
|
const piId = overrides?.paymentIntentId ?? `pi_${crypto.randomUUID()}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Credit } from "./credit.js";
|
|
2
1
|
import type { AutoTopupChargeResult } from "./auto-topup-charge.js";
|
|
3
2
|
import type { IAutoTopupSettingsRepository } from "./auto-topup-settings-repository.js";
|
|
3
|
+
import type { Credit } from "./credit.js";
|
|
4
4
|
export interface ScheduleTopupDeps {
|
|
5
5
|
settingsRepo: IAutoTopupSettingsRepository;
|
|
6
6
|
chargeAutoTopup: (tenantId: string, amount: Credit, source: string) => Promise<AutoTopupChargeResult>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
|
2
2
|
import { beginTestTransaction, createTestDb, endTestTransaction, rollbackTestTransaction } from "../test/db.js";
|
|
3
|
-
import { Credit } from "./credit.js";
|
|
4
3
|
import { runScheduledTopups } from "./auto-topup-schedule.js";
|
|
5
4
|
import { DrizzleAutoTopupSettingsRepository } from "./auto-topup-settings-repository.js";
|
|
5
|
+
import { Credit } from "./credit.js";
|
|
6
6
|
describe("runScheduledTopups", () => {
|
|
7
7
|
let pool;
|
|
8
8
|
let db;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
|
2
2
|
import { beginTestTransaction, createTestDb, endTestTransaction, rollbackTestTransaction } from "../test/db.js";
|
|
3
|
-
import { Credit } from "./credit.js";
|
|
4
3
|
import { DrizzleAutoTopupSettingsRepository } from "./auto-topup-settings-repository.js";
|
|
4
|
+
import { Credit } from "./credit.js";
|
|
5
5
|
describe("DrizzleAutoTopupSettingsRepository", () => {
|
|
6
6
|
let pool;
|
|
7
7
|
let db;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Credit } from "./credit.js";
|
|
2
1
|
import type { AutoTopupChargeResult } from "./auto-topup-charge.js";
|
|
3
2
|
import type { IAutoTopupSettingsRepository } from "./auto-topup-settings-repository.js";
|
|
3
|
+
import type { Credit } from "./credit.js";
|
|
4
4
|
import type { ICreditLedger } from "./credit-ledger.js";
|
|
5
5
|
export interface UsageTopupDeps {
|
|
6
6
|
settingsRepo: IAutoTopupSettingsRepository;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
|
2
2
|
import { createTestDb, truncateAllTables } from "../test/db.js";
|
|
3
|
-
import { Credit } from "./credit.js";
|
|
4
3
|
import { DrizzleAutoTopupSettingsRepository } from "./auto-topup-settings-repository.js";
|
|
5
4
|
import { maybeTriggerUsageTopup } from "./auto-topup-usage.js";
|
|
5
|
+
import { Credit } from "./credit.js";
|
|
6
6
|
import { CreditLedger } from "./credit-ledger.js";
|
|
7
7
|
describe("maybeTriggerUsageTopup", () => {
|
|
8
8
|
let pool;
|
package/dist/credits/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type { AutoTopupSettings, IAutoTopupSettingsRepository, } from "./auto-topup-settings-repository.js";
|
|
2
2
|
export { ALLOWED_SCHEDULE_INTERVALS, ALLOWED_THRESHOLDS, ALLOWED_TOPUP_AMOUNTS, computeNextScheduleAt, DrizzleAutoTopupSettingsRepository, } from "./auto-topup-settings-repository.js";
|
|
3
|
+
export { Credit } from "./credit.js";
|
|
3
4
|
export type { CreditExpiryCronConfig, CreditExpiryCronResult } from "./credit-expiry-cron.js";
|
|
4
5
|
export { runCreditExpiryCron } from "./credit-expiry-cron.js";
|
|
5
6
|
export type { CreditTransaction, CreditType, DebitType, HistoryOptions, ICreditLedger, TransactionType, } from "./credit-ledger.js";
|
|
6
7
|
export { CreditLedger, DrizzleCreditLedger, InsufficientBalanceError } from "./credit-ledger.js";
|
|
7
8
|
export { grantSignupCredits, SIGNUP_GRANT } from "./signup-grant.js";
|
|
8
|
-
export { Credit } from "./credit.js";
|
|
9
9
|
export type { ITenantCustomerRepository, TenantCustomerRow } from "./tenant-customer-repository.js";
|
package/dist/credits/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ALLOWED_SCHEDULE_INTERVALS, ALLOWED_THRESHOLDS, ALLOWED_TOPUP_AMOUNTS, computeNextScheduleAt, DrizzleAutoTopupSettingsRepository, } from "./auto-topup-settings-repository.js";
|
|
2
|
+
export { Credit } from "./credit.js";
|
|
2
3
|
export { runCreditExpiryCron } from "./credit-expiry-cron.js";
|
|
3
4
|
export { CreditLedger, DrizzleCreditLedger, InsufficientBalanceError } from "./credit-ledger.js";
|
|
4
5
|
export { grantSignupCredits, SIGNUP_GRANT } from "./signup-grant.js";
|
|
5
|
-
export { Credit } from "./credit.js";
|
|
@@ -5,9 +5,9 @@ export * from "./admin-users.js";
|
|
|
5
5
|
export * from "./affiliate.js";
|
|
6
6
|
export * from "./affiliate-fraud.js";
|
|
7
7
|
export * from "./coupon-codes.js";
|
|
8
|
-
export * from "./credits.js";
|
|
9
8
|
export * from "./credit-auto-topup.js";
|
|
10
9
|
export * from "./credit-auto-topup-settings.js";
|
|
10
|
+
export * from "./credits.js";
|
|
11
11
|
export * from "./dividend-distributions.js";
|
|
12
12
|
export * from "./email-notifications.js";
|
|
13
13
|
export * from "./meter-events.js";
|
package/dist/db/schema/index.js
CHANGED
|
@@ -5,9 +5,9 @@ export * from "./admin-users.js";
|
|
|
5
5
|
export * from "./affiliate.js";
|
|
6
6
|
export * from "./affiliate-fraud.js";
|
|
7
7
|
export * from "./coupon-codes.js";
|
|
8
|
-
export * from "./credits.js";
|
|
9
8
|
export * from "./credit-auto-topup.js";
|
|
10
9
|
export * from "./credit-auto-topup-settings.js";
|
|
10
|
+
export * from "./credits.js";
|
|
11
11
|
export * from "./dividend-distributions.js";
|
|
12
12
|
export * from "./email-notifications.js";
|
|
13
13
|
export * from "./meter-events.js";
|
package/dist/email/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type { INotificationPreferencesRepository } from "./notification-preferen
|
|
|
18
18
|
export { DrizzleNotificationPreferencesStore } from "./notification-preferences-store.js";
|
|
19
19
|
export type { INotificationQueueRepository } from "./notification-queue-store.js";
|
|
20
20
|
export { DrizzleNotificationQueueStore } from "./notification-queue-store.js";
|
|
21
|
-
export type {
|
|
21
|
+
export type { NotificationEmailType, NotificationInput, NotificationPrefs, NotificationRow, NotificationStatus, QueuedNotification, } from "./notification-repository-types.js";
|
|
22
22
|
export { NotificationService } from "./notification-service.js";
|
|
23
23
|
export type { TemplateName as NotificationTemplateName } from "./notification-templates.js";
|
|
24
24
|
export { renderNotificationTemplate } from "./notification-templates.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type { PlatformDb, PlatformSchema } from "./db/index.js";
|
|
2
|
-
export { createDb, schema } from "./db/index.js";
|
|
3
1
|
export * from "./admin/index.js";
|
|
4
2
|
export * from "./auth/index.js";
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
3
|
+
export { type ChargeOpts, type ChargeResult, type CheckoutOpts, type CheckoutSession, DrizzleWebhookSeenRepository, type Invoice, type IPaymentProcessor, type IWebhookSeenRepository, noOpReplayGuard, PaymentMethodOwnershipError, type PortalOpts, type SavedPaymentMethod, type SetupResult, type WebhookResult, } from "./billing/index.js";
|
|
4
|
+
export { billingConfigSchema, config, type PlatformConfig } from "./config/index.js";
|
|
7
5
|
export * from "./credits/index.js";
|
|
6
|
+
export type { PlatformDb, PlatformSchema } from "./db/index.js";
|
|
7
|
+
export { createDb, schema } from "./db/index.js";
|
|
8
8
|
export * from "./email/index.js";
|
|
9
9
|
export * from "./metering/index.js";
|
|
10
10
|
export * from "./middleware/index.js";
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
// Database
|
|
2
2
|
// Admin
|
|
3
3
|
export * from "./admin/index.js";
|
|
4
4
|
// Auth
|
|
5
5
|
export * from "./auth/index.js";
|
|
6
6
|
// Billing (selective — ITenantCustomerRepository/TenantCustomerRow also in credits)
|
|
7
|
-
export {
|
|
7
|
+
export { DrizzleWebhookSeenRepository, noOpReplayGuard, PaymentMethodOwnershipError, } from "./billing/index.js";
|
|
8
8
|
// Config
|
|
9
|
-
export {
|
|
9
|
+
export { billingConfigSchema, config } from "./config/index.js";
|
|
10
10
|
// Credits
|
|
11
11
|
export * from "./credits/index.js";
|
|
12
|
+
export { createDb, schema } from "./db/index.js";
|
|
12
13
|
// Email
|
|
13
14
|
export * from "./email/index.js";
|
|
14
15
|
// Metering
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import crypto from "node:crypto";
|
|
2
2
|
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
|
3
|
+
import { Credit } from "../credits/credit.js";
|
|
3
4
|
import { meterEvents, usageSummaries } from "../db/schema/meter-events.js";
|
|
4
5
|
import { createTestDb } from "../test/db.js";
|
|
5
|
-
import { Credit } from "../credits/credit.js";
|
|
6
6
|
import { DrizzleMeterAggregator } from "./aggregator.js";
|
|
7
7
|
import { DrizzleUsageSummaryRepository } from "./drizzle-usage-summary-repository.js";
|
|
8
8
|
const WINDOW_MS = 60_000; // 1-minute windows
|
|
@@ -2,8 +2,8 @@ import { mkdirSync, rmSync } from "node:fs";
|
|
|
2
2
|
import { tmpdir } from "node:os";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
|
5
|
-
import { beginTestTransaction, createTestDb, endTestTransaction, rollbackTestTransaction } from "../test/db.js";
|
|
6
5
|
import { Credit } from "../credits/credit.js";
|
|
6
|
+
import { beginTestTransaction, createTestDb, endTestTransaction, rollbackTestTransaction } from "../test/db.js";
|
|
7
7
|
import { MeterDLQ } from "./dlq.js";
|
|
8
8
|
import { DrizzleMeterEmitter } from "./emitter.js";
|
|
9
9
|
import { DrizzleMeterEventRepository } from "./meter-event-repository.js";
|