@seatsio/seatsio-types 6.0.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +18 -1
  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,13 +889,25 @@ 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;
890
895
  };
891
896
  export type PricingForCategory = (SimplePricing | MultiLevelPricing);
892
897
  export type PricingForObjects = (SimplePricingForObjects | MultiLevelPricingForObjects);
893
- type LegacyPricing = (PricingForCategory | PricingForObjects)[];
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)[];
894
909
  export type Pricing = {
910
+ allFeesIncluded?: boolean;
895
911
  priceFormatter?: (price: number) => string;
896
912
  prices: (PricingForCategory | PricingForObjects)[];
897
913
  showSectionPricingOverlay?: boolean;
@@ -952,6 +968,7 @@ interface TicketTypeJsonWithoutPrice {
952
968
  export interface TicketTypeJson {
953
969
  ticketType: string;
954
970
  price: number;
971
+ fee?: number;
955
972
  originalPrice?: number;
956
973
  label?: string;
957
974
  description?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seatsio/seatsio-types",
3
3
  "description": "Type definitions for Seats.io",
4
- "version": "6.0.0",
4
+ "version": "6.1.0",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",