- 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. Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
23 lines
517 B
JSON
23 lines
517 B
JSON
{
|
|
"results": [
|
|
{
|
|
"order_code": "PX-NEW-001",
|
|
"attendee_name": "New Attendee One",
|
|
"attendee_email": "[email protected]",
|
|
"ticket_type": "Regular"
|
|
},
|
|
{
|
|
"order_code": "PX-NEW-002",
|
|
"attendee_name": "New Speaker Two",
|
|
"attendee_email": "[email protected]",
|
|
"ticket_type": "Speaker"
|
|
},
|
|
{
|
|
"order_code": "PX-ANA-003",
|
|
"attendee_name": "Ana Silva",
|
|
"attendee_email": "[email protected]",
|
|
"ticket_type": "Regular"
|
|
}
|
|
]
|
|
}
|