@seatsio/seatsio-types 6.26.0 → 6.27.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 +19 -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
|
*/
|
|
@@ -579,7 +583,7 @@ export interface ChartDesignerFeatures {
|
|
|
579
583
|
}
|
|
580
584
|
export interface ChartDesigner extends Pick<SeatingChart, 'render' | 'destroy'> {
|
|
581
585
|
}
|
|
582
|
-
export type ConfigChange = Pick<ChartRendererConfigOptions, 'availableCategories' | 'channels' | 'extraConfig' | 'filteredCategories' | 'maxSelectedObjects' | 'numberOfPlacesToSelect' | 'objectColor' | 'objectLabel' | 'pricing' | 'unavailableCategories'>;
|
|
586
|
+
export type ConfigChange = Pick<ChartRendererConfigOptions, 'availableCategories' | 'channels' | 'extraConfig' | 'filteredCategories' | 'filters' | 'maxSelectedObjects' | 'numberOfPlacesToSelect' | 'objectColor' | 'objectLabel' | 'pricing' | 'unavailableCategories'>;
|
|
583
587
|
type ChartRendererBuiltInStrings = {
|
|
584
588
|
[key in ChartRendererStringKey]: string;
|
|
585
589
|
};
|
|
@@ -1066,23 +1070,15 @@ export interface NonBookableTableSeat extends InteractiveObject {
|
|
|
1066
1070
|
};
|
|
1067
1071
|
}
|
|
1068
1072
|
export type WheelchairSpaceType = 'WHEELCHAIR_ACCESSIBLE_SEAT' | 'WHEELCHAIR_SPACE';
|
|
1069
|
-
export interface AbstractSelectableObject extends InteractiveObject {
|
|
1073
|
+
export interface AbstractSelectableObject extends InteractiveObject, Readonly<Record<FilterableAccessibleType, boolean | undefined>> {
|
|
1070
1074
|
readonly objectType: string;
|
|
1071
1075
|
readonly selected: boolean;
|
|
1072
1076
|
readonly selectedTicketType: string | undefined;
|
|
1073
|
-
readonly accessible: boolean | undefined;
|
|
1074
1077
|
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
1078
|
readonly restrictedView: boolean | undefined;
|
|
1080
1079
|
readonly vertigo: boolean | undefined;
|
|
1081
1080
|
readonly limitedLegroom: boolean | undefined;
|
|
1082
1081
|
readonly companionSeat: boolean | undefined;
|
|
1083
|
-
readonly semiAmbulatorySeat: boolean | undefined;
|
|
1084
|
-
readonly liftUpArmrests: boolean | undefined;
|
|
1085
|
-
readonly aisleSeat: boolean | undefined;
|
|
1086
1082
|
readonly displayObjectType: string | undefined;
|
|
1087
1083
|
readonly category?: CategoryToJSON;
|
|
1088
1084
|
readonly pricing: PricingJson;
|
|
@@ -1254,6 +1250,19 @@ export interface ListingType {
|
|
|
1254
1250
|
iconColor?: string;
|
|
1255
1251
|
}
|
|
1256
1252
|
export type ListingTypes = Dict<ListingType>;
|
|
1253
|
+
export type FilterableAccessibleType = 'accessible' | 'semiAmbulatorySeat' | 'hearingImpaired' | 'signLanguageInterpretation' | 'cartServices' | 'plusSize' | 'liftUpArmrests' | 'aisleSeat';
|
|
1254
|
+
export type ListingTypeFilter = 'primary' | 'resale' | 'both';
|
|
1255
|
+
export interface Filters {
|
|
1256
|
+
price?: {
|
|
1257
|
+
min?: number;
|
|
1258
|
+
max?: number;
|
|
1259
|
+
};
|
|
1260
|
+
categories?: CategoryKey[];
|
|
1261
|
+
ticketTypes?: string[];
|
|
1262
|
+
sections?: string[];
|
|
1263
|
+
accessibilityTypes?: FilterableAccessibleType[];
|
|
1264
|
+
listingType?: ListingTypeFilter;
|
|
1265
|
+
}
|
|
1257
1266
|
export declare function isBooth(object: SelectableObject): object is Booth;
|
|
1258
1267
|
export declare function isSeat(object: SelectableObject): object is Seat;
|
|
1259
1268
|
export declare function isGeneralAdmission(object: SelectableObject): object is GeneralAdmissionArea;
|