@duffel/components 3.6.0 → 3.6.2

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@duffel/api" />
2
2
  import { Offer, OfferSlice } from "@duffel/api/types";
3
3
  import { NGSShelf } from ".";
4
- export type NGSOfferRow = Record<"slice", OfferSlice> & Record<NGSShelf, Offer | null>;
4
+ export type NGSOfferRow = Record<"slice", OfferSlice> & Record<NGSShelf, Offer[] | null>;
5
5
  export declare const getNGSSliceKey: (slice: OfferSlice) => string;
6
6
  export declare const groupOffersForNGSView: (offers: Offer[], sliceIndex: number, previousSliceKeys: string[]) => NGSOfferRow[];
@@ -2,7 +2,7 @@
2
2
  import { IconName } from "@components/shared/Icon";
3
3
  import { OfferSlice, SeatType } from "@duffel/api/types";
4
4
  export declare const NGS_SHELVES: readonly [1, 2, 3, 4, 5];
5
- export type NGSShelf = (typeof NGS_SHELVES)[number];
5
+ export type NGSShelf = OfferSlice["ngs_shelf"];
6
6
  type ShelfInfo = {
7
7
  short_title: string;
8
8
  full_title: string;
@@ -1,4 +1,6 @@
1
+ import { Offer } from "@duffel/api/types";
1
2
  import { NGSShelf } from ".";
2
3
  import { NGSOfferRow } from "./group-offers-for-ngs-view";
3
4
  export type SortDirection = "asc" | "desc";
5
+ export declare const getCheapestOfferAmount: (offers: Offer[] | null) => number | null;
4
6
  export declare const sortNGSRows: (rows: NGSOfferRow[], sortShelf: NGSShelf, sortDirection: SortDirection) => NGSOfferRow[];
@@ -18,5 +18,12 @@ export declare const LOYALTY_PROGRAMS_NAME_MAP: {
18
18
  global_hotel_alliance_discovery: string;
19
19
  duffel_hotel_group_rewards: string;
20
20
  };
21
+ export declare const SOURCE_NAME_MAP: {
22
+ bookingcom: string;
23
+ expedia: string;
24
+ priceline: string;
25
+ travelport: string;
26
+ duffel_hotel_group: string;
27
+ };
21
28
  export declare const getBoardTypeLabel: (boardType: StaysRoomRate["board_type"]) => "Room only, no meals" | "Breakfast included" | "Half board" | "Full board" | "All inclusive";
22
29
  export declare const boardTypeIcon: (boardType: StaysRoomRate["board_type"]) => IconName;
@@ -71,6 +71,7 @@ export declare const ICON_MAP: {
71
71
  seat: import("react/jsx-runtime").JSX.Element;
72
72
  seat_paid_indicator: import("react/jsx-runtime").JSX.Element;
73
73
  shield_with_moon: import("react/jsx-runtime").JSX.Element;
74
+ shopfront: import("react/jsx-runtime").JSX.Element;
74
75
  shopping_bag: import("react/jsx-runtime").JSX.Element;
75
76
  spa: import("react/jsx-runtime").JSX.Element;
76
77
  stairs: import("react/jsx-runtime").JSX.Element;