Skip to content
Docs
Reference

Interface: SeatingManager

Interface: SeatingManager in @ticketlayer/live.

@ticketlayer/live


@ticketlayer/live / index / SeatingManager

Defined in: seating.ts:111

Methods#

bestAvailable()#

bestAvailable(occurrenceId: string, request: BestAvailableRequest): Promise<BestAvailableAnswer>;

Defined in: seating.ts:153

Best available (3dvenue/docs/best-available.md): a few options that differ for a party, asked of Live's POST /sales/occurrences/{occ}/best-available. Makes the session first, because Live seeds the engine's spread from it. Nothing is held: an option is reserved by passing its seats to the cart (cart.reserveSeats).

Parameters#

ParameterType
occurrenceIdstring
requestBestAvailableRequest

Returns#

Promise<BestAvailableAnswer>


destroy()#

destroy(): void;

Defined in: seating.ts:157

Stop every poller and timer.

Returns#

void


getChunk()#

getChunk(occurrenceId: string, chunk: string): Promise<SeatChunk>;

Defined in: seating.ts:114

Parameters#

ParameterType
occurrenceIdstring
chunkstring

Returns#

Promise<SeatChunk>


getMedia()#

getMedia(occurrenceId: string, path: string): Promise<SeatMedia>;

Defined in: seating.ts:126

One published image by its path under the version (stills/..., still/... or pano/..., contract 3), read with the token. Rejects a path that is not one of those, and when the occurrence has no media.

Parameters#

ParameterType
occurrenceIdstring
pathstring

Returns#

Promise<SeatMedia>


getMesh()#

getMesh(occurrenceId: string, path: string): Promise<SeatMedia>;

Defined in: seating.ts:143

One display mesh (mesh/<level>(.meshopt).<h>.glb) as bytes, read with the token and kept, since a model is a few files read once. Rejects a path that is not a mesh, and when the version has no model.

Parameters#

ParameterType
occurrenceIdstring
pathstring

Returns#

Promise<SeatMedia>


getModel()#

getModel(occurrenceId: string): Promise<SeatmapModel | null>;

Defined in: seating.ts:137

The venue model the overview names (modelOf): a display mesh per level, or null when the version has none (the pointer's hasModel).

Parameters#

ParameterType
occurrenceIdstring

Returns#

Promise<SeatmapModel | null>


getPointer()#

getPointer(occurrenceId: string): Promise<SeatmapPointer | null>;

Defined in: seating.ts:112

Parameters#

ParameterType
occurrenceIdstring

Returns#

Promise<SeatmapPointer | null>


getSeatmap()#

getSeatmap(occurrenceId: string): Promise<Seatmap>;

Defined in: seating.ts:113

Parameters#

ParameterType
occurrenceIdstring

Returns#

Promise<Seatmap>


getStatus()#

getStatus(occurrenceId: string): Promise<SeatStatus | null>;

Defined in: seating.ts:144

Parameters#

ParameterType
occurrenceIdstring

Returns#

Promise<SeatStatus | null>


getView()#

getView(occurrenceId: string, seat: number): Promise<SeatView | null>;

Defined in: seating.ts:115

Parameters#

ParameterType
occurrenceIdstring
seatnumber

Returns#

Promise<SeatView | null>


getViewpoints()#

getViewpoints(occurrenceId: string): Promise<SeatViewpoints | null>;

Defined in: seating.ts:120

The viewpoints document (tl-viewpoints/1): per section-row, where its stills and panorama are. Null when the version publishes none.

Parameters#

ParameterType
occurrenceIdstring

Returns#

Promise<SeatViewpoints | null>


getViews()#

getViews(occurrenceId: string, views: string): Promise<SeatViews>;

Defined in: seating.ts:132

One block's views (TLSV/1), by the views name a section of the overview carries: every seat's eye, for a view that places the seats in 3D. Rejects when the version has no views.

Parameters#

ParameterType
occurrenceIdstring
viewsstring

Returns#

Promise<SeatViews>


invalidate()#

invalidate(occurrenceId: string): void;

Defined in: seating.ts:155

Forget the pointer (and so the plan version) of an occurrence, after PLAN_VERSION_CHANGED.

Parameters#

ParameterType
occurrenceIdstring

Returns#

void


watchStatus()#

watchStatus(occurrenceId: string, callback: (status: SeatStatus) => void): () => void;

Defined in: seating.ts:145

Parameters#

ParameterType
occurrenceIdstring
callback(status: SeatStatus) => void

Returns#

() => void