Files
scan-wave/src/lib/types.ts
Roman Krček b6d9b8df44 Looking better
2025-06-21 21:35:52 +02:00

31 lines
633 B
TypeScript

export enum ScanState {
scanning,
scan_successful,
scan_failed
}
export type TicketData = {
id: string;
name: string;
surname: string;
email: string;
event: { id: string; name: string };
created_at: string;
created_by: { id: string; display_name: string } | null;
scanned: boolean;
scanned_at: string | null;
scanned_by: { id: string; display_name: string } | null;
};
export const defaultTicketData: TicketData = {
id: '',
name: '',
surname: '',
email: '',
event: '',
created_at: new Date().toISOString(),
created_by: null,
scanned: false,
scanned_at: null,
scanned_by: null,
};