getLayoutmethod | (layoutId: string, options?: RequestOptions) => Promise<LayoutDocument> | |
saveLayoutmethod | (request: LayoutSaveRequest, options?: RequestOptions) => Promise<LayoutSaveResult> | Saves with optimistic concurrency: sends If-Match: "<baseRevision>". A 409 or 412 response with the stored layout resolves as a conflict. Matches the SaveHandler signature of @openseat/editor. |
createLayoutmethod | (layout: LayoutDocument, options?: CreateLayoutOptions) => Promise<{ readonly revision: number; }> | |
holdSeatsmethod | (input: HoldInput, options?: RequestOptions) => Promise<Hold> | Holds all seats and area quantities, or none. Rejects with SEATS_UNAVAILABLE (listing the seats in unavailableSeatIds) when any seat is taken, AREA_SOLD_OUT (listing unavailableAreaIds) when an area has too few places left, and LIMIT_EXCEEDED when the request is over the per-buyer ticket limit. From BookingAdapter |
confirmHoldmethod | (input: { readonly holdId: string; readonly paymentReference: string; readonly idempotencyKey?: string; }, options?: RequestOptions) => Promise<Booking> | Converts a hold into a booking after the host's payment flow succeeds. paymentReference is whatever your payment provider returns; the server must verify it. The SDK never handles card data. From BookingAdapter |
releaseHoldmethod | (holdId: string, options?: RequestOptions) => Promise<void> | From BookingAdapter |
getHoldoptionalmethod | (holdId: string, options?: RequestOptions) => Promise<Hold> | Optional: current hold state, for recovering after a reload. From BookingAdapter |
getStatusesmethod | (input: { readonly eventId: string; readonly seatIds?: readonly string[]; }, options?: RequestOptions) => Promise<SeatStatusRecord[]> | From InventoryAdapter |
subscribeoptionalmethod | (eventId: string, listener: (changes: SeatStatusRecord[]) => void, onError?: (error: BookingError) => void) => () => void | Optional real-time updates. Return an unsubscribe function. Updates are hints that make the map fresher; they do not make it authoritative. From InventoryAdapter |
getAreaStatusesoptionalmethod | (input: { readonly eventId: string; readonly inventoryIds?: readonly string[]; }, options?: RequestOptions) => Promise<AreaStatusRecord[]> | Optional: availability of GA areas, booths and whole tables (remaining capacity and status). Adapters without it simply do not report areas. From InventoryAdapter |
subscribeAreasoptionalmethod | (eventId: string, listener: (changes: AreaStatusRecord[]) => void, onError?: (error: BookingError) => void) => () => void | Optional real-time area updates (remaining capacity), like subscribe for seats. From InventoryAdapter |