mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-09-30 15:03:19 +00:00
* feat(api): serve portal-shaped health and error envelope
Move liveness to GET /api/health { stage, sha } with a Node 24 image on 8080 so ALB probes and deploy verify do not need auth or a database ping.
* feat(api): switch live auth to host cookie BFF
Replace Bearer as the documented session path with Cognito hosted UI plus __Host-ap_* cookies so the SPA can call /api with credentials include.
* feat(web): add unused cookie SPA API client
Land a credentials-include fetch helper and hand-synced health/me types without wiring pages or domain hooks, so mocks stay the default data path.
* feat(api): add master-data OpenAPI and Hono stubs
* feat(api): add invoice, line, and document stubs
* feat(api): add approval policy, inbox, and activity stubs
* test(web): fix SPA client fetch mock types
* test(web): cast fetch mock call args for tsc
* fix(api): do not default DEV_AUTH_BYPASS outside local migrate
* fix(api): replace invoice lines in a single transaction
* fix(api): create invoices and lines in one transaction
* fix(api): inline GIT_SHA from the image build arg
* fix(api): stop PATCH from skipping the approval workflow
* fix(api): address review feedback
* fix(ci): format upsert-user test
* fix(api): document only the auth statuses the routes return
* fix(api): drop health 400 responses the routes never return
55 lines
1.4 KiB
JSON
55 lines
1.4 KiB
JSON
{
|
|
"name": "@seahaven-ap/api",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Sea Haven AP Hono API — Drizzle schema, auth/RBAC, local data plane",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"drizzle",
|
|
"openapi",
|
|
"docs"
|
|
],
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc --project tsconfig.build.json",
|
|
"typecheck": "tsc --noEmit --project tsconfig.json",
|
|
"start": "node dist/index.js",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:migrate": "tsx src/db/migrate.ts",
|
|
"db:seed": "tsx src/db/seed.ts",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-rds-data": "^3.1135.0",
|
|
"@aws-sdk/client-s3": "^3.1137.0",
|
|
"@aws-sdk/s3-request-presigner": "^3.1137.0",
|
|
"@hono/node-server": "^2.1.1",
|
|
"@seahaven-ap/shared": "*",
|
|
"drizzle-orm": "^0.45.2",
|
|
"hono": "^4.13.8",
|
|
"jose": "^6.2.12",
|
|
"pg": "^8.23.0"
|
|
},
|
|
"devDependencies": {
|
|
"@faker-js/faker": "^10.6.0",
|
|
"@types/node": "^24.13.5",
|
|
"@types/pg": "^8.23.1",
|
|
"drizzle-kit": "^0.31.10",
|
|
"tsx": "^4.23.13",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^5.0.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=24.21.0"
|
|
}
|
|
}
|