Files
BarevClub/apps/api/package.json
T
zabudko-ruandClaude Opus 5.5 0edc6432b7 Backoffice stage 5: products, broadcasts, activity log, settings
- Products: services with full setup — content (name, description, extras names
  in 5 languages via text overrides), price tiers and extras, booking window,
  late-cancel fee, on/off, checklist; category discounts by membership level;
  membership plan prices; promo codes; relocation steps and documents.
- Text overrides: TextOverride table on top of the i18n files; API, bots and the
  worker reload them every minute, mini apps fetch public.texts at start.
- Promo codes applied to orders (admin new-order form and client API): not
  stacked with membership discount — the larger wins; once per client; validity,
  limit and categories.
- Broadcasts to the client bot by any client filter, per-language texts with
  Russian fallback, test to yourself, ~25 msg/s, per-recipient status, resume after
  worker restart, history with progress and stop.
- Activity log (who/when/what, filters, details) and Settings page with all
  owner settings grouped, plus payment methods.
- Tests for promo codes and text overrides.

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

44 lines
1.2 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",
"dev:crm-demo": "tsx scripts/dev-crm-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/i18n": "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"
}
}