Closes #2 ## Summary - make `markInvoicePaid` idempotent for already-paid invoices and reject invalid terminal transitions - add admin actor metadata and audit-log writes for `mark-paid`, including replayed no-op calls - add focused DB tests for first activation, replay safety, and invalid transition handling - document the current payment system, including invoice creation, manual activation, quota reset, and current limitations ## Testing - built `infra/docker/web.Dockerfile` - ran `pnpm --filter @nproxy/db test` inside the built container - verified `@nproxy/db build` and `@nproxy/web build` during the image build Co-authored-by: sirily <sirily@git.shararam.party> Reviewed-on: #18
37 lines
792 B
JSON
37 lines
792 B
JSON
{
|
|
"name": "@nproxy/db",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"prisma"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"check": "prisma validate",
|
|
"db:push": "prisma db push",
|
|
"generate": "prisma generate",
|
|
"migrate:deploy": "prisma migrate deploy",
|
|
"format": "prisma format",
|
|
"pretest": "pnpm build",
|
|
"test": "node --test dist/**/*.test.js"
|
|
},
|
|
"dependencies": {
|
|
"@nproxy/domain": "workspace:*",
|
|
"@nproxy/providers": "workspace:*",
|
|
"@prisma/client": "^6.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"prisma": "^6.5.0"
|
|
}
|
|
}
|