type alias AttendeeWithBookings

An attendee with all their listing bookings (for token resolution)

Properties

id: number

Base attendee fields (PII, token, created — shared across listings)

created: string
kind: string
pii_blob: OwnerKeyEncrypted

Order-level remaining balance in minor units (plaintext).

status_id: number | null

Owner-defined status id (plaintext); null for legacy/default.

The registration webhooks still owed, so a failed send stays visible.

email_owed: number

1 while a booked listing still collects an email (emailOwedSql).

0 none, 1 online booking, 2 admin add — an owed confirmation email.

bookings: TokenBookingRow[]

Per-listing bookings, sorted by start_at then listing_id