@seatsio/seatsio-types 5.11.0 → 6.1.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 +18 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -127,15 +127,6 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
|
|
|
127
127
|
* @default false
|
|
128
128
|
*/
|
|
129
129
|
multiSelectEnabled?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* This function is invoked when a user clicks on a GA area. If canGASelectionBeIncreased returns true, the user is able to increase the number of selected places by clicking on the + button of the ticket selector that pops up.
|
|
132
|
-
* @param gaArea The GA area that has been selected.
|
|
133
|
-
* @param defaultValue A boolean that indicates if additional GA places can be selected. This is determined by whether the number of selected places plus the number places booked by other users is smaller than the capacity of the GA area.
|
|
134
|
-
* @param extraConfig Variables and data from your application. See extraConfig.
|
|
135
|
-
* @param ticketType The ticket type for which the user clicked on the plus button. Optional.
|
|
136
|
-
* {@link https://docs.seats.io/docs/renderer/config-cangaselectionbeincreased See documentation}
|
|
137
|
-
*/
|
|
138
|
-
canGASelectionBeIncreased?: (gaArea: GeneralAdmissionArea, defaultValue: boolean, extraConfig: ExtraConfig, ticketType?: TicketTypeJson) => boolean;
|
|
139
130
|
/**
|
|
140
131
|
* If your chart div is enclosed within a <form>element, you can use this configuration option to automatically add the selected seat IDs to the form data. This is one of the ways you can pass the selected seats to your server, so that you can book them later on through the Seats API.
|
|
141
132
|
* {@link https://docs.seats.io/docs/renderer/config-selectedobjectsinputname See documentation}
|
|
@@ -643,6 +634,7 @@ export type Category = {
|
|
|
643
634
|
pricing: {
|
|
644
635
|
price: number;
|
|
645
636
|
formattedPrice: string;
|
|
637
|
+
fee?: number;
|
|
646
638
|
};
|
|
647
639
|
hasSelectableObjects: boolean;
|
|
648
640
|
};
|
|
@@ -864,12 +856,14 @@ export type SimplePricing = {
|
|
|
864
856
|
category: CategoryKey;
|
|
865
857
|
originalPrice?: number;
|
|
866
858
|
price: number;
|
|
859
|
+
fee?: number;
|
|
867
860
|
channels?: ChannelPricing[];
|
|
868
861
|
};
|
|
869
862
|
export type SimplePricingForObjects = {
|
|
870
863
|
objects: string[];
|
|
871
864
|
originalPrice?: number;
|
|
872
865
|
price: number;
|
|
866
|
+
fee?: number;
|
|
873
867
|
channels?: ChannelPricing[];
|
|
874
868
|
};
|
|
875
869
|
export type MultiLevelPricing = {
|
|
@@ -885,6 +879,7 @@ export type SimpleChannelPricing = {
|
|
|
885
879
|
channel: string;
|
|
886
880
|
originalPrice?: number;
|
|
887
881
|
price: number;
|
|
882
|
+
fee?: number;
|
|
888
883
|
};
|
|
889
884
|
export type MultiLevelChannelPricing = {
|
|
890
885
|
channel: string;
|
|
@@ -894,13 +889,25 @@ export type TicketType = {
|
|
|
894
889
|
ticketType: string;
|
|
895
890
|
originalPrice?: number;
|
|
896
891
|
price: number;
|
|
892
|
+
fee?: number;
|
|
897
893
|
label?: string;
|
|
898
894
|
description?: string;
|
|
899
895
|
};
|
|
900
896
|
export type PricingForCategory = (SimplePricing | MultiLevelPricing);
|
|
901
897
|
export type PricingForObjects = (SimplePricingForObjects | MultiLevelPricingForObjects);
|
|
902
|
-
type
|
|
898
|
+
type LegacySimplePricing = Omit<SimplePricing, 'fee'>;
|
|
899
|
+
type LegacyMultiLevelPricing = Omit<MultiLevelPricing, 'ticketTypes'> & {
|
|
900
|
+
ticketTypes: Omit<TicketType, 'fee'>[];
|
|
901
|
+
};
|
|
902
|
+
type LegacySimplePricingForObjects = Omit<SimplePricingForObjects, 'fee'>;
|
|
903
|
+
type LegacyMultiLevelPricingForObjects = Omit<MultiLevelPricingForObjects, 'ticketTypes'> & {
|
|
904
|
+
ticketTypes: Omit<TicketType, 'fee'>[];
|
|
905
|
+
};
|
|
906
|
+
type LegacyPricingForCategory = (LegacySimplePricing | LegacyMultiLevelPricing);
|
|
907
|
+
type LegacyPricingForObjects = (LegacySimplePricingForObjects | LegacyMultiLevelPricingForObjects);
|
|
908
|
+
export type LegacyPricing = (LegacyPricingForCategory | LegacyPricingForObjects)[];
|
|
903
909
|
export type Pricing = {
|
|
910
|
+
allFeesIncluded?: boolean;
|
|
904
911
|
priceFormatter?: (price: number) => string;
|
|
905
912
|
prices: (PricingForCategory | PricingForObjects)[];
|
|
906
913
|
showSectionPricingOverlay?: boolean;
|
|
@@ -961,6 +968,7 @@ interface TicketTypeJsonWithoutPrice {
|
|
|
961
968
|
export interface TicketTypeJson {
|
|
962
969
|
ticketType: string;
|
|
963
970
|
price: number;
|
|
971
|
+
fee?: number;
|
|
964
972
|
originalPrice?: number;
|
|
965
973
|
label?: string;
|
|
966
974
|
description?: string;
|