@seatsio/seatsio-types 6.26.0 → 6.28.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/dist/index.d.ts +24 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -100,6 +100,10 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
|
|
|
100
100
|
* Defines the available listing types, each with an optional icon and label.
|
|
101
101
|
*/
|
|
102
102
|
listingTypes?: ListingTypes;
|
|
103
|
+
/**
|
|
104
|
+
* Dims out the objects that don't pass every filter. Filtered-out objects stay selectable.
|
|
105
|
+
*/
|
|
106
|
+
filters?: Filters;
|
|
103
107
|
/**
|
|
104
108
|
* Formats the price into a custom defined string when showing it to and en user. {@link https://docs.seats.io/docs/renderer/config-priceformatter See documentation}
|
|
105
109
|
*/
|
|
@@ -199,6 +203,7 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
|
|
|
199
203
|
unavailableCategories?: CategoryKey[];
|
|
200
204
|
/**
|
|
201
205
|
* Leaves the specified categories normally visible, while making all others dimmed out. The array can be a list of category keys or labels.
|
|
206
|
+
* @deprecated Use `filters.categories` instead.
|
|
202
207
|
*/
|
|
203
208
|
filteredCategories?: CategoryKey[];
|
|
204
209
|
objectColor?: (object: SelectableObject, defaultColor: string, extraConfig: ExtraConfig) => string;
|
|
@@ -477,7 +482,11 @@ export interface BaseEventManagerOrderModeConfigOptions extends BaseEventManager
|
|
|
477
482
|
categoryFilter?: CategoryFilter;
|
|
478
483
|
availableCategories?: CategoryKey[];
|
|
479
484
|
unavailableCategories?: CategoryKey[];
|
|
485
|
+
/**
|
|
486
|
+
* @deprecated Use `filters.categories` instead.
|
|
487
|
+
*/
|
|
480
488
|
filteredCategories?: CategoryKey[];
|
|
489
|
+
filters?: Pick<Filters, 'categories'>;
|
|
481
490
|
session?: Session;
|
|
482
491
|
holdToken?: string;
|
|
483
492
|
showLegend?: boolean;
|
|
@@ -579,7 +588,7 @@ export interface ChartDesignerFeatures {
|
|
|
579
588
|
}
|
|
580
589
|
export interface ChartDesigner extends Pick<SeatingChart, 'render' | 'destroy'> {
|
|
581
590
|
}
|
|
582
|
-
export type ConfigChange = Pick<ChartRendererConfigOptions, 'availableCategories' | 'channels' | 'extraConfig' | 'filteredCategories' | 'maxSelectedObjects' | 'numberOfPlacesToSelect' | 'objectColor' | 'objectLabel' | 'pricing' | 'unavailableCategories'>;
|
|
591
|
+
export type ConfigChange = Pick<ChartRendererConfigOptions, 'availableCategories' | 'channels' | 'extraConfig' | 'filteredCategories' | 'filters' | 'maxSelectedObjects' | 'numberOfPlacesToSelect' | 'objectColor' | 'objectLabel' | 'pricing' | 'unavailableCategories'>;
|
|
583
592
|
type ChartRendererBuiltInStrings = {
|
|
584
593
|
[key in ChartRendererStringKey]: string;
|
|
585
594
|
};
|
|
@@ -1066,23 +1075,15 @@ export interface NonBookableTableSeat extends InteractiveObject {
|
|
|
1066
1075
|
};
|
|
1067
1076
|
}
|
|
1068
1077
|
export type WheelchairSpaceType = 'WHEELCHAIR_ACCESSIBLE_SEAT' | 'WHEELCHAIR_SPACE';
|
|
1069
|
-
export interface AbstractSelectableObject extends InteractiveObject {
|
|
1078
|
+
export interface AbstractSelectableObject extends InteractiveObject, Readonly<Record<FilterableAccessibleType, boolean | undefined>> {
|
|
1070
1079
|
readonly objectType: string;
|
|
1071
1080
|
readonly selected: boolean;
|
|
1072
1081
|
readonly selectedTicketType: string | undefined;
|
|
1073
|
-
readonly accessible: boolean | undefined;
|
|
1074
1082
|
readonly wheelchairSpaceType: WheelchairSpaceType | undefined;
|
|
1075
|
-
readonly hearingImpaired: boolean | undefined;
|
|
1076
|
-
readonly signLanguageInterpretation: boolean | undefined;
|
|
1077
|
-
readonly cartServices: boolean | undefined;
|
|
1078
|
-
readonly plusSize: boolean | undefined;
|
|
1079
1083
|
readonly restrictedView: boolean | undefined;
|
|
1080
1084
|
readonly vertigo: boolean | undefined;
|
|
1081
1085
|
readonly limitedLegroom: boolean | undefined;
|
|
1082
1086
|
readonly companionSeat: boolean | undefined;
|
|
1083
|
-
readonly semiAmbulatorySeat: boolean | undefined;
|
|
1084
|
-
readonly liftUpArmrests: boolean | undefined;
|
|
1085
|
-
readonly aisleSeat: boolean | undefined;
|
|
1086
1087
|
readonly displayObjectType: string | undefined;
|
|
1087
1088
|
readonly category?: CategoryToJSON;
|
|
1088
1089
|
readonly pricing: PricingJson;
|
|
@@ -1254,6 +1255,19 @@ export interface ListingType {
|
|
|
1254
1255
|
iconColor?: string;
|
|
1255
1256
|
}
|
|
1256
1257
|
export type ListingTypes = Dict<ListingType>;
|
|
1258
|
+
export type FilterableAccessibleType = 'accessible' | 'semiAmbulatorySeat' | 'hearingImpaired' | 'signLanguageInterpretation' | 'cartServices' | 'plusSize' | 'liftUpArmrests' | 'aisleSeat';
|
|
1259
|
+
export type ListingTypeFilter = 'primary' | 'resale' | 'both';
|
|
1260
|
+
export interface Filters {
|
|
1261
|
+
price?: {
|
|
1262
|
+
min?: number;
|
|
1263
|
+
max?: number;
|
|
1264
|
+
};
|
|
1265
|
+
categories?: CategoryKey[];
|
|
1266
|
+
ticketTypes?: string[];
|
|
1267
|
+
sections?: string[];
|
|
1268
|
+
accessibilityTypes?: FilterableAccessibleType[];
|
|
1269
|
+
listingType?: ListingTypeFilter;
|
|
1270
|
+
}
|
|
1257
1271
|
export declare function isBooth(object: SelectableObject): object is Booth;
|
|
1258
1272
|
export declare function isSeat(object: SelectableObject): object is Seat;
|
|
1259
1273
|
export declare function isGeneralAdmission(object: SelectableObject): object is GeneralAdmissionArea;
|