Interface: SeatingManager
Interface: SeatingManager in @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#
| Parameter | Type |
|---|---|
occurrenceId | string |
request | BestAvailableRequest |
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#
| Parameter | Type |
|---|---|
occurrenceId | string |
chunk | string |
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#
| Parameter | Type |
|---|---|
occurrenceId | string |
path | string |
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#
| Parameter | Type |
|---|---|
occurrenceId | string |
path | string |
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#
| Parameter | Type |
|---|---|
occurrenceId | string |
Returns#
Promise<SeatmapModel | null>
getPointer()#
getPointer(occurrenceId: string): Promise<SeatmapPointer | null>;Defined in: seating.ts:112
Parameters#
| Parameter | Type |
|---|---|
occurrenceId | string |
Returns#
Promise<SeatmapPointer | null>
getSeatmap()#
getSeatmap(occurrenceId: string): Promise<Seatmap>;Defined in: seating.ts:113
Parameters#
| Parameter | Type |
|---|---|
occurrenceId | string |
Returns#
Promise<Seatmap>
getStatus()#
getStatus(occurrenceId: string): Promise<SeatStatus | null>;Defined in: seating.ts:144
Parameters#
| Parameter | Type |
|---|---|
occurrenceId | string |
Returns#
Promise<SeatStatus | null>
getView()#
getView(occurrenceId: string, seat: number): Promise<SeatView | null>;Defined in: seating.ts:115
Parameters#
| Parameter | Type |
|---|---|
occurrenceId | string |
seat | number |
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#
| Parameter | Type |
|---|---|
occurrenceId | string |
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#
| Parameter | Type |
|---|---|
occurrenceId | string |
views | string |
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#
| Parameter | Type |
|---|---|
occurrenceId | string |
Returns#
void
watchStatus()#
watchStatus(occurrenceId: string, callback: (status: SeatStatus) => void): () => void;Defined in: seating.ts:145
Parameters#
| Parameter | Type |
|---|---|
occurrenceId | string |
callback | (status: SeatStatus) => void |
Returns#
() => void