Auto-sync POs via DynamoDB Streams + pagination #2

Merged
amoussa1229 merged 2 commits from feature/auto-sync-pos into main 2026-04-03 18:30:48 +00:00

2 commits

Author SHA1 Message Date
Adam Moussa
102999165f Add DynamoDB Streams real-time PO sync and hardcode Google Client ID
- New po-sync Lambda triggered by DynamoDB Streams on the external
  purchase-orders table for near-real-time upsert into ledgerflow-pos
- GET /pos skips blocking sync when streams are configured
- Hardcode GOOGLE_CLIENT_ID fallback in CDK stack so /auth/config
  and JWT verification work without env var

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 14:29:32 -04:00
Adam Moussa
3854750597 Add PO auto-sync from external purchase-orders table
POs now auto-sync from the external DynamoDB purchase-orders table on
every GET /pos request, replacing manual import. Adds cursor-based
pagination support and SAM template for local development.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 13:58:15 -04:00