pretix: per-event API key + live organizer/event picker

This commit is contained in:
Lago committed 2026-09-09 18:03:18 +02:00
1 parent d288fbf2f8
commit 08ab41898b
5 files changed
+228 -47

No files matched your search

+10
View File
@@ -8,6 +8,7 @@ import type {
Feedback,
LeaderboardRow,
PointsLogRow,
PretixOptions,
PretixSyncResult,
Registration,
ResetQrResult,
@@ -168,6 +169,7 @@ export async function upsertEvent(
sessionize_endpoint?: string | null;
pretix_organizer?: string | null;
pretix_event_slug?: string | null;
pretix_api_key?: string | null;
use_realtime_clock?: boolean;
},
): Promise<void> {
@@ -209,6 +211,14 @@ export const runSessionizeSync = (eventId: string) =>
export const runPretixSync = (eventId: string) =>
sidecarFetch<PretixSyncResult>('/run-pretix', { method: 'POST', body: JSON.stringify({ event_id: eventId }) });
/**
* Ask the sidecar to list the given Pretix API key's organizers + their active
* events. Used by the event-settings "paste the API key" flow to populate the
* organizer + event-slug dropdowns from real data.
*/
export const fetchPretixOptions = (apiKey: string) =>
sidecarFetch<PretixOptions>('/pretix-options', { method: 'POST', body: JSON.stringify({ api_key: apiKey }) });
/**
* Upload the Sessionize "Sessions and speakers (advanced)" .xlsx for an event.
* The sidecar parses it and imports speakers/sessions/agenda + speaker