@duffel/components 3.12.1 → 3.12.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.
- package/components/Stays/lib/types.d.ts +9 -24
- package/custom-elements.js +2 -2
- package/custom-elements.js.map +3 -3
- package/index.js +3 -3
- package/index.js.map +3 -3
- package/package.json +2 -2
- package/stories/StaysRoomRateCard.stories.d.ts +6 -0
- package/stories/StaysSummary.stories.d.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,29 +1,14 @@
|
|
|
1
|
+
/// <reference types="@duffel/api" />
|
|
1
2
|
import { IconName } from "@components/shared/Icon";
|
|
2
|
-
import { StaysRoomRate } from "@duffel/api/types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
choice_privileges: string;
|
|
6
|
-
marriott_bonvoy: string;
|
|
7
|
-
best_western_rewards: string;
|
|
8
|
-
world_of_hyatt: string;
|
|
9
|
-
hilton_honors: string;
|
|
10
|
-
ihg_one_rewards: string;
|
|
11
|
-
leaders_club: string;
|
|
12
|
-
stash_rewards: string;
|
|
13
|
-
omni_select_guest: string;
|
|
14
|
-
i_prefer: string;
|
|
15
|
-
accor_live_limitless: string;
|
|
16
|
-
my_6: string;
|
|
17
|
-
jumeirah_one: string;
|
|
18
|
-
global_hotel_alliance_discovery: string;
|
|
19
|
-
duffel_hotel_group_rewards: string;
|
|
3
|
+
import { StaysRoomRate, StaysSource, StaysLoyaltyProgrammeReference } from "@duffel/api/types";
|
|
4
|
+
type LoyaltyProgrammeReferenceToText = {
|
|
5
|
+
[PropertyKey in StaysLoyaltyProgrammeReference]: string;
|
|
20
6
|
};
|
|
21
|
-
export declare const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
priceline: string;
|
|
25
|
-
travelport: string;
|
|
26
|
-
duffel_hotel_group: string;
|
|
7
|
+
export declare const LOYALTY_PROGRAMS_NAME_MAP: LoyaltyProgrammeReferenceToText;
|
|
8
|
+
type SourceToText = {
|
|
9
|
+
[PropertyKey in StaysSource]: string;
|
|
27
10
|
};
|
|
11
|
+
export declare const SOURCE_NAME_MAP: SourceToText;
|
|
28
12
|
export declare const getBoardTypeLabel: (boardType: StaysRoomRate["board_type"]) => "Room only, no meals" | "Breakfast included" | "Half board" | "Full board" | "All inclusive";
|
|
29
13
|
export declare const boardTypeIcon: (boardType: StaysRoomRate["board_type"]) => IconName;
|
|
14
|
+
export {};
|