@seatsio/seatsio-types 5.9.0 → 5.11.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -292,7 +292,7 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
292
292
  fitTo?: 'widthAndHeight' | 'width';
293
293
  /**
294
294
  * This setting should only be used for accounts created before May 15th 2019. See the {@link https://docs.seats.io/docs/renderer/config-unifiedobjectpropertiesincallbacks documentation} for more details.
295
- * @deprecated
295
+ * @remarks For accounts created after May 15th 2019, this property is set to true by default. You cannot set it to false.
296
296
  */
297
297
  unifiedObjectPropertiesInCallbacks?: boolean;
298
298
  /**
@@ -325,6 +325,11 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
325
325
  * For charts with sections, enabling this setting will hide sections where all bookable objects are set as not for sale. By extension, this will also hide entire floors if every object on it is set as not for sale. {@link https://docs.seats.io/docs/renderer/config-hidesectionsnotforsale/ See documentation}
326
326
  */
327
327
  hideSectionsNotForSale?: boolean;
328
+ /**
329
+ * The ticket buyer ID.
330
+ * Must be a valid UUID if provided.
331
+ */
332
+ ticketBuyerId?: string;
328
333
  }
329
334
  export type ExtractedEventManagerProps = Pick<ChartRendererConfigOptions, 'colors' | 'colorScheme' | 'extraConfig' | 'fitTo' | 'objectColor' | 'showFullScreenButton' | 'style' | 'stylePreset' | 'popoverInfo' | 'tooltipInfo' | 'themePreset' | 'themeColors'>;
330
335
  export interface BaseEventManagerConfigOptions extends CommonConfigOptions, ExtractedEventManagerProps, EventManagerCallbacks {
@@ -894,7 +899,12 @@ export type TicketType = {
894
899
  };
895
900
  export type PricingForCategory = (SimplePricing | MultiLevelPricing);
896
901
  export type PricingForObjects = (SimplePricingForObjects | MultiLevelPricingForObjects);
897
- export type Pricing = (PricingForCategory | PricingForObjects)[];
902
+ type LegacyPricing = (PricingForCategory | PricingForObjects)[];
903
+ export type Pricing = {
904
+ priceFormatter?: (price: number) => string;
905
+ prices: (PricingForCategory | PricingForObjects)[];
906
+ showSectionPricingOverlay?: boolean;
907
+ } | LegacyPricing;
898
908
  export type SelectionValidator = SelectionValidatorNoOrphanSeats | SelectionValidatorConsecutiveSeats | SelectionValidatorMinimumSelectedPlaces;
899
909
  interface SelectionValidatorNoOrphanSeats {
900
910
  type: 'noOrphanSeats';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seatsio/seatsio-types",
3
3
  "description": "Type definitions for Seats.io",
4
- "version": "5.9.0",
4
+ "version": "5.11.0",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",