@duffel/components 3.7.30 → 3.7.31
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/components/DuffelNGSView/lib/group-offers-for-ngs-view.d.ts +1 -1
- package/components/DuffelNGSView/lib/index.d.ts +1 -1
- package/components/Stays/lib/getRateLabel.d.ts +1 -1
- package/custom-elements.js +27 -27
- package/custom-elements.js.map +4 -4
- package/index.js +22 -22
- package/index.js.map +4 -4
- package/lib/isAmenityElement.d.ts +3 -0
- package/package.json +3 -3
- package/stories/SeatMap.stories.d.ts +3 -0
- package/stories/StaysRoomRateCard.stories.d.ts +0 -4
- package/stories/StaysSummary.stories.d.ts +1 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@duffel/api" />
|
|
2
2
|
import { OfferRequest, OfferSlice } from "@duffel/api/types";
|
|
3
3
|
import { NGSShelf } from ".";
|
|
4
|
-
export type NGSOfferRow = Record<"slice", OfferSlice> & Record<NGSShelf
|
|
4
|
+
export type NGSOfferRow = Record<"slice", OfferSlice> & Record<NonNullable<NGSShelf>, OfferRequest["offers"] | null>;
|
|
5
5
|
export declare const getNGSSliceKey: (slice: OfferSlice, ownerId: string | null, includeFareBrand?: boolean) => string;
|
|
6
6
|
export declare const groupOffersForNGSView: (offers: OfferRequest["offers"], sliceIndex: number, previousSliceKeys: string[]) => NGSOfferRow[];
|
|
@@ -9,6 +9,6 @@ type ShelfInfo = {
|
|
|
9
9
|
description: string;
|
|
10
10
|
icon: IconName;
|
|
11
11
|
};
|
|
12
|
-
export declare const NGS_SHELF_INFO: Record<OfferSlice["ngs_shelf"]
|
|
12
|
+
export declare const NGS_SHELF_INFO: Record<NonNullable<OfferSlice["ngs_shelf"]>, ShelfInfo>;
|
|
13
13
|
export declare const SEAT_ICONS_MAP: Record<SeatType, IconName>;
|
|
14
14
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { StaysRate } from "@duffel/api/types";
|
|
2
|
-
export declare const getRateLabel: (paymentMethod: StaysRate["
|
|
2
|
+
export declare const getRateLabel: (paymentMethod: StaysRate["available_payment_methods"][number], paymentType: StaysRate["payment_type"]) => string | undefined;
|