@seatmap.pro/renderer 1.70.2 → 1.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -49,6 +49,14 @@ interface IBaseSeat {
49
49
  isMarked?: boolean;
50
50
  customState?: string;
51
51
  }
52
+ /**
53
+ * A photo attached to a section, shown by the host page.
54
+ */
55
+ interface ISectionPhoto {
56
+ url: string;
57
+ thumbUrl?: string;
58
+ caption?: string;
59
+ }
52
60
  /**
53
61
  * Base interface for sector properties.
54
62
  */
@@ -101,6 +109,8 @@ interface IBaseSector {
101
109
  labelStyle?: ILabelStyle;
102
110
  /** Whether the section name label should render (SEAT-895) */
103
111
  labelVisible?: boolean;
112
+ /** Photos attached to the section, in display order */
113
+ photos?: ISectionPhoto[];
104
114
  }
105
115
  /**
106
116
  * Label style overrides for GA section labels (SEAT-624).
@@ -282,6 +292,41 @@ interface IPriceListDTO {
282
292
  requestTime?: number;
283
293
  responseSize?: number;
284
294
  }
295
+ /**
296
+ * Interface representing the price assignments of an event, regardless of seat availability.
297
+ *
298
+ * Seats are addressed by position in `seatIds`, which is ascending and delta encoded: the
299
+ * first element is an absolute seat id and each later element is the increment from the one
300
+ * before it. `seatPriceRuns` holds `[priceId, count]` pairs covering those seats in sequence,
301
+ * and `seatPropertyIndexes` names the positions of the few seats carrying properties, whose
302
+ * values are in `seatProperties`.
303
+ * @hidden
304
+ */
305
+ interface IAssignmentListDTO {
306
+ version?: string;
307
+ seatIds: number[];
308
+ seatPriceRuns: [IPriceId, number][];
309
+ seatPropertyIndexes: number[];
310
+ seatProperties: ISpecialState[];
311
+ groupOfSeats: [number, number, ISpecialState?][];
312
+ prices: IPriceDTO[];
313
+ requestTime?: number;
314
+ responseSize?: number;
315
+ }
316
+ /**
317
+ * Interface representing the availability of an event, which changes on every lock, unlock and sale.
318
+ *
319
+ * `unavailableSeats` is delta encoded, so the first element is an absolute seat id and each
320
+ * later element is the increment from the one before it.
321
+ * @hidden
322
+ */
323
+ interface IAvailabilityDTO {
324
+ version?: string;
325
+ unavailableSeats: number[];
326
+ groupOfSeats: [number, number, number][];
327
+ requestTime?: number;
328
+ responseSize?: number;
329
+ }
285
330
  declare const emptyPriceList: () => IPriceListDTO;
286
331
  /**
287
332
  * Interface representing a price data transfer object from the API.
@@ -372,6 +417,7 @@ declare class ApiError extends Error {
372
417
  */
373
418
  declare class BookingApiClient {
374
419
  private settings;
420
+ private splitPricingUnsupported;
375
421
  constructor(settings: IBookingApiClientSettings);
376
422
  /**
377
423
  * Returns schema data
@@ -406,6 +452,7 @@ declare class BookingApiClient {
406
452
  * @param eventId Event GUID
407
453
  */
408
454
  fetchPricesForEvent(eventId: string): Promise<IPriceListDTO>;
455
+ private fetchSplitPricesForEvent;
409
456
  /**
410
457
  * Return rows SVG information
411
458
  * @param eventId Event GUID
@@ -415,7 +462,10 @@ declare class BookingApiClient {
415
462
  * Makes request to booking API
416
463
  * @param url Relative API endpoint URL, e.g. 'event/prices/?id=XXX'
417
464
  */
418
- request<T>(url: string): Promise<T>;
465
+ request<T>(url: string, options?: {
466
+ baseUrl?: string;
467
+ silent?: boolean;
468
+ }): Promise<T>;
419
469
  /**
420
470
  * Makes request to booking API
421
471
  * @param url Relative API endpoint URL, e.g. 'event/prices/?id=XXX'
@@ -1075,6 +1125,10 @@ interface ISection {
1075
1125
  * Text color for the section label (e.g., GA section name).
1076
1126
  */
1077
1127
  textColor?: string;
1128
+ /**
1129
+ * Photos attached to the section, in the order set in the editor.
1130
+ */
1131
+ photos?: ISectionPhoto[];
1078
1132
  }
1079
1133
  /**
1080
1134
  * Visual and interaction states that can be applied to entities
@@ -2254,7 +2308,7 @@ declare class OutlineLayer {
2254
2308
  private createOrGetOutlineShapes;
2255
2309
  private appendFallbackOutlines;
2256
2310
  private appendShapeOutlines;
2257
- createFallbackOutlineRect(section: ISector): SVGRectElement;
2311
+ createFallbackOutlineRect(section: ISector): SVGRectElement | null;
2258
2312
  private getRenderContext;
2259
2313
  handleChangeEagleView(isEagleView?: boolean): void;
2260
2314
  /** @deprecated Use disableSection() instead */
@@ -3806,4 +3860,4 @@ declare class RotationAnimation {
3806
3860
  getAnimation(): IRotationAnimation | null;
3807
3861
  }
3808
3862
 
3809
- export { type AdminHotkeyAction, ApiError, BookingApiClient, type BrandingLevel, type BuiltinSeatStateKey, type ById, type ColorById, type ColorSequenceSettings, DataManager, type DataManagerEvent, type DataManagerEventCallback, type DeepPartial, type DestEvent, DestEventType, type HotkeysSetting, type IAdminRenderer, type IAdminRendererSettings, type IBackgroundImageLoadedEvent, type IBaseSeat, type IBaseSector, type IBasicSeatStyle, type IBeforeSeatDrawEvent, type IBookingRendererSettings, type ICart, type ICartGa, type ICartSeat, type IClickSrcEvent, type IColoredPrice, type IConfigurationDTO, type ICustomSeatStyle, type IDeselectDestEvent, type IDragEndSrcEvent, type IDragMoveSrcEvent, type IDragStartSrcEvent, type IEntityStates, type IErrorMessage, type IExtendedSeat, type ILabelStyle, type ILoadProgressEvent, type ILoaderSettings, type ILoaderTheme, type IMarker, type IMarkerSettings, type IMinimapSettings, type IMouseMoveSrcEvent, type IPanDestEvent, type IPanZoomDestEvent, type IPlainSeatsDTO, type IPngBackgroundDTO, type IPoint, type IPrice, type IPriceDTO, type IPriceId, type IPriceListDTO, type IRectSelectDestEvent, type IRemovedCartGa, type IRenderer, type IRendererAnimation, type IRendererMachineContext, type IRendererSettings, type IRendererSvgSectionStylesSetting, type IRendererTheme, type IResolvedMarker, type IRowDTO, type ISVGBackgroundDTO, type ISchemaDTO, type ISeat, type ISeatCartSwitchDestEvent, type ISeatDTO, type ISeatMetadata, type ISeatMouseEnterDestEvent, type ISeatMouseLeaveDestEvent, type ISeatPriceScheme, type ISeatSelectDestEvent, type ISeatStateRenderArgs, type ISeatStyle, type ISection, type ISectionClickDestEvent, type ISectionGridDTO, type ISectionMetadata, type ISectionMouseEnterDestEvent, type ISectionMouseLeaveDestEvent, type ISectionRect, type ISectionWithCoords, type ISector, type ISectorDTO, type IShapeMetadata, type ISpecialPrice, type ISpecialState, type ISvgSectionStateStyles, type ISvgSectionStyle, type ITileGrid, type IVenueDTO, type IVisibilitySettings, type IWatermarkSettings, type IZoomSettings, type InteractionZoomStrategy, type InteractionZoomStrategyType, type LoaderStyle, type LoadingPhase, type MarkerAppearance, type MarkerTarget, type MinimapPosition, type Nullable, Renderer, type RendererMachine, type RendererMachineReducer, type RendererMachineService, RendererSelectMode, RendererTargetType, type RequestMetrics, RotationAnimation, type SeatFilter, type SeatInteractionState, type SeatStylesMap, SeatmapAdminRenderer, SeatmapBookingRenderer, type SrcEvent, SrcEventType, StateManager, type StateManagerEvent, type StateManagerEventCallback, type TransformArray, VERSION, convertPricesToColored, convertPricesToColoredById, defaultZoomSettings, emptyPriceList, mergeSettings, sortPrices };
3863
+ export { type AdminHotkeyAction, ApiError, BookingApiClient, type BrandingLevel, type BuiltinSeatStateKey, type ById, type ColorById, type ColorSequenceSettings, DataManager, type DataManagerEvent, type DataManagerEventCallback, type DeepPartial, type DestEvent, DestEventType, type HotkeysSetting, type IAdminRenderer, type IAdminRendererSettings, type IAssignmentListDTO, type IAvailabilityDTO, type IBackgroundImageLoadedEvent, type IBaseSeat, type IBaseSector, type IBasicSeatStyle, type IBeforeSeatDrawEvent, type IBookingRendererSettings, type ICart, type ICartGa, type ICartSeat, type IClickSrcEvent, type IColoredPrice, type IConfigurationDTO, type ICustomSeatStyle, type IDeselectDestEvent, type IDragEndSrcEvent, type IDragMoveSrcEvent, type IDragStartSrcEvent, type IEntityStates, type IErrorMessage, type IExtendedSeat, type ILabelStyle, type ILoadProgressEvent, type ILoaderSettings, type ILoaderTheme, type IMarker, type IMarkerSettings, type IMinimapSettings, type IMouseMoveSrcEvent, type IPanDestEvent, type IPanZoomDestEvent, type IPlainSeatsDTO, type IPngBackgroundDTO, type IPoint, type IPrice, type IPriceDTO, type IPriceId, type IPriceListDTO, type IRectSelectDestEvent, type IRemovedCartGa, type IRenderer, type IRendererAnimation, type IRendererMachineContext, type IRendererSettings, type IRendererSvgSectionStylesSetting, type IRendererTheme, type IResolvedMarker, type IRowDTO, type ISVGBackgroundDTO, type ISchemaDTO, type ISeat, type ISeatCartSwitchDestEvent, type ISeatDTO, type ISeatMetadata, type ISeatMouseEnterDestEvent, type ISeatMouseLeaveDestEvent, type ISeatPriceScheme, type ISeatSelectDestEvent, type ISeatStateRenderArgs, type ISeatStyle, type ISection, type ISectionClickDestEvent, type ISectionGridDTO, type ISectionMetadata, type ISectionMouseEnterDestEvent, type ISectionMouseLeaveDestEvent, type ISectionPhoto, type ISectionRect, type ISectionWithCoords, type ISector, type ISectorDTO, type IShapeMetadata, type ISpecialPrice, type ISpecialState, type ISvgSectionStateStyles, type ISvgSectionStyle, type ITileGrid, type IVenueDTO, type IVisibilitySettings, type IWatermarkSettings, type IZoomSettings, type InteractionZoomStrategy, type InteractionZoomStrategyType, type LoaderStyle, type LoadingPhase, type MarkerAppearance, type MarkerTarget, type MinimapPosition, type Nullable, Renderer, type RendererMachine, type RendererMachineReducer, type RendererMachineService, RendererSelectMode, RendererTargetType, type RequestMetrics, RotationAnimation, type SeatFilter, type SeatInteractionState, type SeatStylesMap, SeatmapAdminRenderer, SeatmapBookingRenderer, type SrcEvent, SrcEventType, StateManager, type StateManagerEvent, type StateManagerEventCallback, type TransformArray, VERSION, convertPricesToColored, convertPricesToColoredById, defaultZoomSettings, emptyPriceList, mergeSettings, sortPrices };