@seatsio/seatsio-types 3.6.0 → 4.0.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 +8 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -100,11 +100,11 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
|
|
|
100
100
|
/**
|
|
101
101
|
* Render the chart with the specified objects selected (if they are still free). {@link https://docs.seats.io/docs/renderer/config-selectedobjects See documentation}
|
|
102
102
|
*/
|
|
103
|
-
selectedObjects?: (string |
|
|
103
|
+
selectedObjects?: (string | SelectedAmount)[];
|
|
104
104
|
/**
|
|
105
105
|
* Render the chart with the specified objects selectable. {@link https://docs.seats.io/docs/renderer/selectableobjects See documentation}
|
|
106
106
|
*/
|
|
107
|
-
selectableObjects?: string[];
|
|
107
|
+
selectableObjects?: (string | SelectableAmount)[];
|
|
108
108
|
/**
|
|
109
109
|
* Selection validators run every time a seat is selected or deselected. They check whether there are no orphan seats, and/or whether all selected seats are consecutive (meaning: next to each other and in the same category). {@link https://docs.seats.io/docs/renderer/config-selectionvalidators See documentation}
|
|
110
110
|
*/
|
|
@@ -383,7 +383,7 @@ export interface EventManagerSelectModeConfigOptions extends BaseEventManagerCon
|
|
|
383
383
|
maxSelectedObjects?: SelectionLimiter;
|
|
384
384
|
numberOfPlacesToSelect?: number;
|
|
385
385
|
isObjectSelectable?: (object: SelectableObject) => boolean;
|
|
386
|
-
selectedObjects?: (string |
|
|
386
|
+
selectedObjects?: (string | SelectedAmount)[];
|
|
387
387
|
selectionBy?: 'places' | 'objects';
|
|
388
388
|
ticketTypes?: TicketTypeJsonWithoutPrice[];
|
|
389
389
|
tooltipContents?: (object: object) => string;
|
|
@@ -760,11 +760,7 @@ interface SelectionValidatorMinimumSelectedPlaces {
|
|
|
760
760
|
type: 'minimumSelectedPlaces';
|
|
761
761
|
minimum: number;
|
|
762
762
|
}
|
|
763
|
-
export interface
|
|
764
|
-
label: string;
|
|
765
|
-
ticketType: string;
|
|
766
|
-
}
|
|
767
|
-
export interface SelectedGA {
|
|
763
|
+
export interface SelectableAmount {
|
|
768
764
|
label: string;
|
|
769
765
|
amount: number;
|
|
770
766
|
}
|
|
@@ -920,7 +916,7 @@ export interface SeatingChart {
|
|
|
920
916
|
changeConfig: (config: ConfigChange) => Promise<void>;
|
|
921
917
|
clearSelection: () => Promise<void>;
|
|
922
918
|
deselectCategories: (categoryIds: string[]) => Promise<void>;
|
|
923
|
-
deselectObjects: (objects: (string |
|
|
919
|
+
deselectObjects: (objects: (string | SelectedAmount)[]) => Promise<void>;
|
|
924
920
|
destroy: () => void;
|
|
925
921
|
findObject: (label: string) => Promise<SelectableObject>;
|
|
926
922
|
getReportBySelectability: () => Promise<Object>;
|
|
@@ -932,7 +928,7 @@ export interface SeatingChart {
|
|
|
932
928
|
resetView: () => Promise<void>;
|
|
933
929
|
selectCategories: (categoryIds: string[]) => Promise<void>;
|
|
934
930
|
selectedObjects: string[];
|
|
935
|
-
selectObjects: (objects: (string |
|
|
931
|
+
selectObjects: (objects: (string | SelectedAmount)[]) => Promise<void>;
|
|
936
932
|
pulse: (objects: string[]) => Promise<void>;
|
|
937
933
|
unpulse: (objects: string[]) => Promise<void>;
|
|
938
934
|
startNewSession: () => Promise<void>;
|
|
@@ -953,8 +949,8 @@ export interface Channel {
|
|
|
953
949
|
color: string;
|
|
954
950
|
index: number;
|
|
955
951
|
}
|
|
956
|
-
export type
|
|
957
|
-
|
|
952
|
+
export type SelectedAmount = {
|
|
953
|
+
label: string;
|
|
958
954
|
ticketType?: string;
|
|
959
955
|
amount?: number;
|
|
960
956
|
};
|