Files
BarevClub/apps/api/package.json
T
zabudko-ruandClaude Opus 5.5 23ffb2bf1d Backoffice stage 2: chats (support + concierge, files)
- ChatThread per client/provider and channel; messages get files, internal notes,
  source (bot/mini app) and delivery errors; reply templates. Migration moves old
  concierge messages into threads.
- Routing: subscribers write to the concierge, others to support; /support and
  /concierge in the client bot; staff can take, transfer, close and move threads.
- Telegram: photos/documents from clients and providers, replies with the channel
  header, files sent from storage, notifications only to the assignee or the
  channel's staff, "Reply" into a specific thread.
- New admin: /chats with list, conversation, notes, files, templates, client panel;
  "Message" button on the client card; dashboard counts threads awaiting reply.
- Client mini app: in-app chat screen sharing the same conversation.
- Old admin keeps working on the same data (notes hidden there).
- Tests for routing, notes, assign/close/move, lists, recipients; separate test DB
  via TEST_DB_NAME; dev:chats-demo script.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 01:50:37 +04:00

42 lines
1.1 KiB
JSON

{
"name": "@barev/api",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": {
".": "./src/router.ts",
"./telegram": "./src/auth/telegram.ts"
},
"scripts": {
"dev": "tsx watch --clear-screen=false src/server.ts",
"start": "tsx src/server.ts",
"test": "vitest run",
"typecheck": "tsc --noEmit",
"dev:initdata": "tsx scripts/dev-initdata.ts",
"dev:demo": "tsx scripts/dev-demo.ts",
"dev:bo-demo": "tsx scripts/dev-backoffice-demo.ts",
"dev:chats-demo": "tsx scripts/dev-chats-demo.ts"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.1152.0",
"@aws-sdk/s3-request-presigner": "^3.1152.0",
"@barev/core": "workspace:*",
"@barev/db": "workspace:*",
"@barev/services": "workspace:*",
"@fastify/cookie": "^11.0.0",
"@fastify/cors": "^11.1.0",
"@fastify/multipart": "^10.0.0",
"@node-rs/argon2": "^2.0.2",
"@sentry/node": "^10.0.0",
"@trpc/server": "^11.19.0",
"dotenv": "^17.0.0",
"fastify": "^5.12.0",
"superjson": "^2.2.6",
"zod": "^4.3.0"
},
"devDependencies": {
"tsx": "^4.20.0",
"vitest": "^4.1.0"
}
}