Phase 7+8: Pretix + Sessionize interfaces

- Migration 20260825000000_interfaces.sql: external_id on contacts/
  registrations/sessions (+ partial unique indexes), slots_id_seq, sync_runs
  audit table, and service-role-only sync_pretix_attendees /
  sync_sessionize_sessions RPCs (idempotent upserts).
- sync-trigger Edge Function: admin-JWT or CRON_SECRET auth, pulls from
  Pretix/Sessionize base URLs, normalizes, calls the service-role RPCs.
- interfaces/mock-api: dependency-free Node server (:54330) + fixtures so the
  full pipeline is testable without real tokens.
- APPE Admin 'Interfaces' view: per-source + 'Sync all' triggers, result
  counts, recent sync runs, and QR CSV export; /functions proxy added.
- Docs: new docs/backend/interfaces.md; updated README, roadmap, next-steps,
  schema, rls, rpcs, architecture, admin-app, and docs index.
This commit is contained in:
Lago committed 2026-08-23 03:34:30 +02:00
1 parent 22f5f1d317
commit 16f304d145
26 files changed
+1529 -80

No files matched your search

+22
View File
@@ -76,6 +76,28 @@ services:
retries: 5
start_period: 10s
# Mock Pretix + Sessionize API (Phase 7 + 8). Serves the same response shapes
# as the real APIs so the `sync-trigger` Edge Function can be tested end-to-end
# without real credentials. The Edge Function reaches it at http://mock-api:54330.
mock-api:
build:
context: ./interfaces/mock-api
image: convivo-mock-api:latest
container_name: convivo-mock-api
ports:
- "54330:54330"
environment:
PORT: "54330"
networks:
- supabase
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:54330/health"]
interval: 15s
timeout: 5s
retries: 5
start_period: 5s
networks:
supabase:
# External network created by `supabase start`. Name = supabase_network_<project_id>.