Files
mercadodevida/work/artifacts/POS-004/implementer.md
2026-08-22 13:31:19 +02:00

1.2 KiB

POS-004 — Implementer evidence

What

POS API Phase 1 routes registered in build-app.ts. tsc 0, tests 8/8, verify.sh verde.

Files

  • src/modules/pos/api/pos.routes.ts — all POS endpoints (admin stores, terminals; terminal me/config/sessions; Zod schemas)
  • src/app/build-app.ts — registered POS routes with pool + authenticate

Verification

  • npm run build → 0 TypeScript errors.
  • npm test -- --run src/modules/pos/tests/ → 8 passed.
  • check-module-boundaries.mjs src → 0 NEW violations.
  • ./scripts/verify.sh → green.

Endpoints

Route Method Auth
/pos/admin/stores GET admin
/pos/admin/stores POST admin
/pos/admin/terminals GET admin
/pos/admin/terminals POST admin
/pos/admin/terminals/:id GET admin
/pos/admin/terminals/:id DELETE admin
/pos/terminals/me GET admin/pos_manager/pos_cashier
/pos/terminals/bind POST admin/pos_manager/pos_cashier
/pos/config GET admin/pos_manager/pos_cashier
/pos/sessions/me GET admin/pos_manager/pos_cashier
/pos/sessions POST admin/pos_manager/pos_cashier
/pos/sessions/:id/close POST admin/pos_manager/pos_cashier