@seatsio/seatsio-types 6.0.0 → 6.2.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 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -634,6 +634,7 @@ export type Category = {
|
|
|
634
634
|
pricing: {
|
|
635
635
|
price: number;
|
|
636
636
|
formattedPrice: string;
|
|
637
|
+
fee?: number;
|
|
637
638
|
};
|
|
638
639
|
hasSelectableObjects: boolean;
|
|
639
640
|
};
|
|
@@ -855,12 +856,14 @@ export type SimplePricing = {
|
|
|
855
856
|
category: CategoryKey;
|
|
856
857
|
originalPrice?: number;
|
|
857
858
|
price: number;
|
|
859
|
+
fee?: number;
|
|
858
860
|
channels?: ChannelPricing[];
|
|
859
861
|
};
|
|
860
862
|
export type SimplePricingForObjects = {
|
|
861
863
|
objects: string[];
|
|
862
864
|
originalPrice?: number;
|
|
863
865
|
price: number;
|
|
866
|
+
fee?: number;
|
|
864
867
|
channels?: ChannelPricing[];
|
|
865
868
|
};
|
|
866
869
|
export type MultiLevelPricing = {
|
|
@@ -876,6 +879,7 @@ export type SimpleChannelPricing = {
|
|
|
876
879
|
channel: string;
|
|
877
880
|
originalPrice?: number;
|
|
878
881
|
price: number;
|
|
882
|
+
fee?: number;
|
|
879
883
|
};
|
|
880
884
|
export type MultiLevelChannelPricing = {
|
|
881
885
|
channel: string;
|
|
@@ -885,18 +889,31 @@ export type TicketType = {
|
|
|
885
889
|
ticketType: string;
|
|
886
890
|
originalPrice?: number;
|
|
887
891
|
price: number;
|
|
892
|
+
fee?: number;
|
|
888
893
|
label?: string;
|
|
889
894
|
description?: string;
|
|
895
|
+
primary?: boolean;
|
|
890
896
|
};
|
|
891
897
|
export type PricingForCategory = (SimplePricing | MultiLevelPricing);
|
|
892
898
|
export type PricingForObjects = (SimplePricingForObjects | MultiLevelPricingForObjects);
|
|
893
|
-
type
|
|
899
|
+
type LegacySimplePricing = Omit<SimplePricing, 'fee'>;
|
|
900
|
+
type LegacyMultiLevelPricing = Omit<MultiLevelPricing, 'ticketTypes'> & {
|
|
901
|
+
ticketTypes: Omit<TicketType, 'fee'>[];
|
|
902
|
+
};
|
|
903
|
+
type LegacySimplePricingForObjects = Omit<SimplePricingForObjects, 'fee'>;
|
|
904
|
+
type LegacyMultiLevelPricingForObjects = Omit<MultiLevelPricingForObjects, 'ticketTypes'> & {
|
|
905
|
+
ticketTypes: Omit<TicketType, 'fee'>[];
|
|
906
|
+
};
|
|
907
|
+
type LegacyPricingForCategory = (LegacySimplePricing | LegacyMultiLevelPricing);
|
|
908
|
+
type LegacyPricingForObjects = (LegacySimplePricingForObjects | LegacyMultiLevelPricingForObjects);
|
|
909
|
+
export type LegacyPricing = (LegacyPricingForCategory | LegacyPricingForObjects)[];
|
|
894
910
|
export type Pricing = {
|
|
911
|
+
allFeesIncluded?: boolean;
|
|
895
912
|
priceFormatter?: (price: number) => string;
|
|
896
913
|
prices: (PricingForCategory | PricingForObjects)[];
|
|
897
914
|
showSectionPricingOverlay?: boolean;
|
|
898
915
|
} | LegacyPricing;
|
|
899
|
-
export type SelectionValidator = SelectionValidatorNoOrphanSeats | SelectionValidatorConsecutiveSeats | SelectionValidatorMinimumSelectedPlaces;
|
|
916
|
+
export type SelectionValidator = SelectionValidatorNoOrphanSeats | SelectionValidatorConsecutiveSeats | SelectionValidatorMinimumSelectedPlaces | SelectionValidatorCompanionSeats;
|
|
900
917
|
interface SelectionValidatorNoOrphanSeats {
|
|
901
918
|
type: 'noOrphanSeats';
|
|
902
919
|
mode?: 'strict' | 'lenient';
|
|
@@ -910,6 +927,10 @@ interface SelectionValidatorMinimumSelectedPlaces {
|
|
|
910
927
|
type: 'minimumSelectedPlaces';
|
|
911
928
|
minimum: number;
|
|
912
929
|
}
|
|
930
|
+
interface SelectionValidatorCompanionSeats {
|
|
931
|
+
type: 'companionSeats';
|
|
932
|
+
enabled?: boolean;
|
|
933
|
+
}
|
|
913
934
|
export interface SelectableAmount {
|
|
914
935
|
label: string;
|
|
915
936
|
amount: number;
|
|
@@ -952,6 +973,7 @@ interface TicketTypeJsonWithoutPrice {
|
|
|
952
973
|
export interface TicketTypeJson {
|
|
953
974
|
ticketType: string;
|
|
954
975
|
price: number;
|
|
976
|
+
fee?: number;
|
|
955
977
|
originalPrice?: number;
|
|
956
978
|
label?: string;
|
|
957
979
|
description?: string;
|