@duffel/components 3.7.20--canary.8 → 3.7.22
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/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +0 -1
- package/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +0 -1
- package/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +0 -1
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +0 -1
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +0 -1
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +0 -1
- package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +0 -1
- package/components/DuffelAncillaries/seats/Amenity.d.ts +0 -1
- package/components/DuffelAncillaries/seats/Element.d.ts +0 -1
- package/components/DuffelAncillaries/seats/Legend.d.ts +0 -1
- package/components/DuffelAncillaries/seats/Row.d.ts +0 -1
- package/components/DuffelAncillaries/seats/RowSection.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatElement.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatInfo.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatMap.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +0 -1
- package/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +0 -1
- package/components/DuffelCardForm/DuffelCardForm.d.ts +1 -4
- package/components/DuffelNGSView/DuffelNGSView.d.ts +2 -3
- package/components/DuffelNGSView/NGSSliceFareCard.d.ts +0 -1
- package/components/DuffelNGSView/NGSTable.d.ts +0 -1
- package/components/DuffelNGSView/SliceSummary.d.ts +0 -1
- package/components/DuffelNGSView/lib/deduplicate-mapped-offers-by-fare-brand.d.ts +3 -4
- package/components/DuffelNGSView/lib/does-slice-have-mixed-cabins.d.ts +1 -2
- package/components/DuffelNGSView/lib/filter-results.d.ts +1 -2
- package/components/DuffelNGSView/lib/get-initial-filter-values.d.ts +0 -1
- package/components/DuffelNGSView/lib/get-max-baggages-for-offer-slice.d.ts +1 -2
- package/components/DuffelNGSView/lib/getAirlines.d.ts +0 -1
- package/components/DuffelNGSView/lib/group-offers-for-ngs-view.d.ts +1 -2
- package/components/DuffelNGSView/lib/index.d.ts +0 -1
- package/components/DuffelNGSView/lib/sort-ngs-rows-by-shelf-price.d.ts +1 -2
- package/components/DuffelNGSView/lib/useFilters.d.ts +7 -20
- package/components/OfferSlice/OfferSlice.d.ts +0 -1
- package/components/OfferSlice/lib/getHighlightStyles.d.ts +1 -1
- package/components/Stays/StaysAmenities.d.ts +2 -3
- package/components/Stays/StaysRoomRateCard.d.ts +0 -1
- package/components/Stays/lib/getRateLabel.d.ts +1 -2
- package/components/Stays/lib/types.d.ts +2 -3
- package/components/shared/ErrorBoundary.d.ts +1 -1
- package/components/shared/Icon.d.ts +80 -80
- package/components/shared/SliceCarriersTitle.d.ts +0 -1
- package/fixtures/passengers/mock_passengers.d.ts +0 -1
- package/functions/createThreeDSecureSession/client.d.ts +2 -2
- package/lib/captureErrorInSentry.d.ts +1 -1
- package/lib/compileCreateOrderPayload.d.ts +1 -2
- package/lib/formatAvailableServices.d.ts +0 -1
- package/lib/getAirlinesText.d.ts +0 -1
- package/lib/getBaggageServiceDescription.d.ts +0 -1
- package/lib/getCabinsForSegmentAndDeck.d.ts +1 -3
- package/lib/getCarriers.d.ts +2 -3
- package/lib/getCurrencyForServices.d.ts +0 -1
- package/lib/getFareBrandName.d.ts +1 -1
- package/lib/getFirstSeatElementMatchingCriteria.d.ts +1 -2
- package/lib/getPassengerBySegmentList.d.ts +1 -6
- package/lib/getPassengerMapById.d.ts +2 -3
- package/lib/getPassengerName.d.ts +1 -1
- package/lib/getRowNumber.d.ts +0 -1
- package/lib/getSegmentDates.d.ts +2 -2
- package/lib/getSegmentList.d.ts +1 -3
- package/lib/getServicePriceMapById.d.ts +0 -1
- package/lib/getTotalAmountForServices.d.ts +3 -3
- package/lib/getTotalQuantity.d.ts +1 -2
- package/lib/hasAvailableSeatService.d.ts +0 -1
- package/lib/hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +0 -1
- package/lib/hasService.d.ts +2 -2
- package/lib/hasWings.d.ts +0 -1
- package/lib/isBaggageService.d.ts +0 -2
- package/lib/isCancelForAnyReasonService.d.ts +0 -2
- package/lib/isFixtureOfferId.d.ts +1 -2
- package/lib/isPayloadComplete.d.ts +1 -3
- package/lib/isSeatElement.d.ts +0 -1
- package/lib/offerIsExpired.d.ts +1 -2
- package/lib/retrieveOffer.d.ts +0 -1
- package/lib/retrieveSeatMaps.d.ts +0 -1
- package/package.json +1 -1
- package/stories/AirlineLogo.stories.d.ts +1 -1
- package/stories/AirlineSelector.stories.d.ts +2 -2
- package/stories/BaggageSelectionModalHeader.stories.d.ts +1 -1
- package/stories/Button.stories.d.ts +1 -1
- package/stories/DuffelAncillaries.stories.d.ts +1 -1
- package/stories/DuffelCardForm.stories.d.ts +1 -1
- package/stories/DuffelNGSView.stories.d.ts +1 -1
- package/stories/DuffelPayments.stories.d.ts +1 -1
- package/stories/Icon.stories.d.ts +1 -1
- package/stories/IconButton.stories.d.ts +1 -1
- package/stories/MapboxPlacesLookup.stories.d.ts +1 -1
- package/stories/NGSSliceFareCard.stories.d.ts +1 -1
- package/stories/OfferSlice.stories.d.ts +1 -1
- package/stories/OfferSliceModal.stories.d.ts +1 -1
- package/stories/PlacesLookup.stories.d.ts +1 -1
- package/stories/SliceCarriersTitle.stories.d.ts +1 -1
- package/stories/SliceSummary.stories.d.ts +1 -1
- package/stories/StaysAmenities.stories.d.ts +3 -4
- package/stories/StaysRating.stories.d.ts +3 -3
- package/stories/StaysRoomRateCard.stories.d.ts +11 -68
- package/stories/StaysSummary.stories.d.ts +4 -28
- package/tsconfig.tsbuildinfo +1 -1
- package/types/DuffelAncillariesProps.d.ts +0 -1
- package/types/TravelDetails.d.ts +0 -1
- package/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +0 -12
- package/components/DuffelCardForm/lib/postMessageToCreateCardForTemporaryUse.d.ts +0 -1
- package/components/DuffelCardForm/lib/postMessageToSaveCard.d.ts +0 -1
- package/components/DuffelCardForm/lib/postMessageWithStyles.d.ts +0 -2
- package/components/DuffelNGSView/FilterControls.d.ts +0 -13
- package/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +0 -13
- package/components/MapboxPlacesLookup/MapboxPlacesLookupCustomElement.d.ts +0 -13
- package/components/OfferSlice/OfferSliceConditions.d.ts +0 -7
- package/components/OfferSlice/OfferSliceDetailTravelItem.d.ts +0 -9
- package/components/OfferSliceModal/OfferSliceModal.d.ts +0 -7
- package/components/Stays/StaysAmenitiesCustomElement.d.ts +0 -12
- package/components/Stays/StaysRatingCustomElement.d.ts +0 -14
- package/components/Stays/StaysRoomRateCardCustomElement.d.ts +0 -14
- package/components/Stays/StaysSummary.d.ts +0 -12
- package/components/Stays/StaysSummaryCustomElement.d.ts +0 -12
- package/custom-elements.js +0 -69
- package/custom-elements.js.map +0 -7
- package/index.js +0 -60
- package/index.js.map +0 -7
- package/stories/NGSShelfInfoCard.stories.d.ts +0 -3
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { DuffelCardFormProps } from "./lib/types";
|
|
3
|
-
import { DuffelCardFormActions } from "./lib/useDuffelCardFormActions";
|
|
4
|
-
export declare const DuffelCardForm: React.ForwardRefExoticComponent<DuffelCardFormProps & React.RefAttributes<DuffelCardFormActions>>;
|
|
1
|
+
export declare const DuffelCardForm: any;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { OfferRequest } from "@duffel/api/types";
|
|
3
2
|
import * as React from "react";
|
|
4
3
|
import { NGSOfferRow } from "./lib/group-offers-for-ngs-view";
|
|
5
4
|
export declare function useSort(): {
|
|
6
|
-
sortOption:
|
|
7
|
-
setSortOption:
|
|
5
|
+
sortOption: any;
|
|
6
|
+
setSortOption: any;
|
|
8
7
|
sortingFunction: (rows: NGSOfferRow[]) => NGSOfferRow[];
|
|
9
8
|
};
|
|
10
9
|
export interface DuffelNGSViewProps {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { Offer, OfferRequest } from "@duffel/api/types";
|
|
1
|
+
import { Offer } from "@duffel/api/types";
|
|
3
2
|
import { NGSOfferRow } from "./group-offers-for-ngs-view";
|
|
4
3
|
export declare const deduplicateMappedOffersByFareBrand: (offersMap: Record<string, NGSOfferRow>) => Record<string, NGSOfferRow>;
|
|
5
4
|
export declare const getFareBrandNameForOffer: (offer: Omit<Offer, "available_services">, sliceIndex?: number) => string;
|
|
6
|
-
export declare const getCheapestOffer: (offers: OfferRequest
|
|
7
|
-
export declare const groupByFareBrandName: (offers: OfferRequest
|
|
5
|
+
export declare const getCheapestOffer: (offers: OfferRequest) => any;
|
|
6
|
+
export declare const groupByFareBrandName: (offers: OfferRequest) => OfferRequest[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { OfferRequest, OfferSlice } from "@duffel/api/types";
|
|
3
2
|
export declare function doesSliceHaveMixedCabins(slice: OfferSlice): boolean;
|
|
4
|
-
export declare function doOffersHaveMixedCabin(offer: OfferRequest["offers"] | null, sliceIndex?: number):
|
|
3
|
+
export declare function doOffersHaveMixedCabin(offer: OfferRequest["offers"] | null, sliceIndex?: number): any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { NGSTableProps } from "../NGSTable";
|
|
3
2
|
export interface Filters {
|
|
4
3
|
airlines: Array<{
|
|
@@ -11,4 +10,4 @@ export interface Filters {
|
|
|
11
10
|
arrival: [number, number];
|
|
12
11
|
};
|
|
13
12
|
}
|
|
14
|
-
export declare function filterResults(offers: NGSTableProps["offers"], currentSliceIndex: number, filters: Filters):
|
|
13
|
+
export declare function filterResults(offers: NGSTableProps["offers"], currentSliceIndex: number, filters: Filters): any;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { OfferAvailableServiceBaggageMetadata, OfferSlice, OfferSliceSegmentPassenger } from "@duffel/api/types";
|
|
2
1
|
/**
|
|
3
2
|
* Returns the passenger baggages object with the largest quantity of baggages
|
|
4
3
|
* of a specified type for a slice. Baggage quantity can (very occasionally)
|
|
5
4
|
* vary across passengers and segments in a slice, so the 'max' baggages can
|
|
6
5
|
* be used as the baseline for a slice.
|
|
7
6
|
*/
|
|
8
|
-
export declare const getMaxBaggagesForOfferSlice: (offerSlice: OfferSlice, type: OfferAvailableServiceBaggageMetadata
|
|
7
|
+
export declare const getMaxBaggagesForOfferSlice: (offerSlice: OfferSlice, type: OfferAvailableServiceBaggageMetadata) => OfferSliceSegmentPassenger;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { OfferRequest, OfferSlice } from "@duffel/api/types";
|
|
3
2
|
import { NGSShelf } from ".";
|
|
4
3
|
export type NGSOfferRow = Record<"slice", OfferSlice> & Record<NGSShelf, OfferRequest["offers"] | null>;
|
|
5
4
|
export declare const getNGSSliceKey: (slice: OfferSlice, ownerId: string | null, includeFareBrand?: boolean) => string;
|
|
6
|
-
export declare const groupOffersForNGSView: (offers: OfferRequest
|
|
5
|
+
export declare const groupOffersForNGSView: (offers: OfferRequest, sliceIndex: number, previousSliceKeys: string[]) => NGSOfferRow[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OfferRequest } from "@duffel/api/types";
|
|
2
|
-
import { NGSShelf } from ".";
|
|
3
2
|
import { NGSOfferRow } from "./group-offers-for-ngs-view";
|
|
4
3
|
export type SortDirection = "asc" | "desc";
|
|
5
4
|
export declare const getCheapestOfferAmount: (offers: OfferRequest["offers"] | null) => number | null;
|
|
6
|
-
export declare const sortNGSRowsByShelfPrice: (rows: NGSOfferRow[], sortShelf:
|
|
5
|
+
export declare const sortNGSRowsByShelfPrice: (rows: NGSOfferRow[], sortShelf: OfferSlice, sortDirection: SortDirection) => NGSOfferRow[];
|
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { OfferRequest } from "@duffel/api/types";
|
|
3
2
|
export declare function useFilters(offerRequest: OfferRequest, selectedSliceKeys: string[]): {
|
|
4
3
|
airlinesFilterOptions: {
|
|
5
4
|
iata_code: string;
|
|
6
5
|
name: string;
|
|
7
6
|
}[];
|
|
8
|
-
airlinesFilter:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
arrival: [number, number];
|
|
15
|
-
};
|
|
16
|
-
stopsFilter: "direct-only" | "1-stop-at-most" | "2-stops-at-most" | "any";
|
|
17
|
-
setAirlinesFilter: import("react").Dispatch<import("react").SetStateAction<{
|
|
18
|
-
iata_code: string;
|
|
19
|
-
name: string;
|
|
20
|
-
}[]>>;
|
|
21
|
-
setTimesFilter: import("react").Dispatch<import("react").SetStateAction<{
|
|
22
|
-
departure: [number, number];
|
|
23
|
-
arrival: [number, number];
|
|
24
|
-
}>>;
|
|
25
|
-
setStopsFilter: import("react").Dispatch<import("react").SetStateAction<"direct-only" | "1-stop-at-most" | "2-stops-at-most" | "any">>;
|
|
7
|
+
airlinesFilter: any;
|
|
8
|
+
timesFilter: any;
|
|
9
|
+
stopsFilter: any;
|
|
10
|
+
setAirlinesFilter: any;
|
|
11
|
+
setTimesFilter: any;
|
|
12
|
+
setStopsFilter: any;
|
|
26
13
|
clearFilters: () => void;
|
|
27
|
-
filteredOffers:
|
|
14
|
+
filteredOffers: any;
|
|
28
15
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Color } from "@lib/colors";
|
|
2
2
|
export declare const getHighlightStyles: (highlightAll: boolean, key?: string, keysToHighlight?: string[], highlightColor?: Color) => {
|
|
3
|
-
className?:
|
|
3
|
+
className?: any;
|
|
4
4
|
style?: {
|
|
5
5
|
backgroundColor: string;
|
|
6
6
|
} | undefined;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { IconName } from "@components/shared/Icon";
|
|
4
|
-
import { StaysAccommodation
|
|
5
|
-
export declare const amenityIcon: (type: StaysAmenity
|
|
3
|
+
import { StaysAccommodation } from "@duffel/api/types";
|
|
4
|
+
export declare const amenityIcon: (type: StaysAmenity) => IconName;
|
|
6
5
|
export interface StaysAmenitiesProps {
|
|
7
6
|
amenities: StaysAccommodation["amenities"];
|
|
8
7
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getRateLabel: (paymentMethod: StaysRate["payment_method"], paymentType: StaysRate["payment_type"]) => string | undefined;
|
|
1
|
+
export declare const getRateLabel: (paymentMethod: StaysRate, paymentType: StaysRate) => string | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconName } from "@components/shared/Icon";
|
|
2
|
-
import { StaysRoomRate } from "@duffel/api/types";
|
|
3
2
|
export declare const LOYALTY_PROGRAMS_NAME_MAP: {
|
|
4
3
|
wyndham_rewards: string;
|
|
5
4
|
choice_privileges: string;
|
|
@@ -25,5 +24,5 @@ export declare const SOURCE_NAME_MAP: {
|
|
|
25
24
|
travelport: string;
|
|
26
25
|
duffel_hotel_group: string;
|
|
27
26
|
};
|
|
28
|
-
export declare const getBoardTypeLabel: (boardType: StaysRoomRate
|
|
29
|
-
export declare const boardTypeIcon: (boardType: StaysRoomRate
|
|
27
|
+
export declare const getBoardTypeLabel: (boardType: StaysRoomRate) => any;
|
|
28
|
+
export declare const boardTypeIcon: (boardType: StaysRoomRate) => IconName;
|
|
@@ -9,5 +9,5 @@ export declare class ErrorBoundary extends React.Component<{
|
|
|
9
9
|
hasError: boolean;
|
|
10
10
|
};
|
|
11
11
|
componentDidCatch(error: Error): void;
|
|
12
|
-
render():
|
|
12
|
+
render(): any;
|
|
13
13
|
}
|
|
@@ -1,86 +1,86 @@
|
|
|
1
1
|
import { Color } from "@lib/colors";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
export declare const ICON_MAP: {
|
|
4
|
-
accessible:
|
|
5
|
-
add:
|
|
6
|
-
airline_seat_flat:
|
|
7
|
-
airline_seat_individual_suite:
|
|
8
|
-
airline_seat_legroom_extra:
|
|
9
|
-
airline_seat_recline_extra:
|
|
10
|
-
airline_seat_recline_normal:
|
|
11
|
-
airline_stops:
|
|
12
|
-
airplane_ticket:
|
|
13
|
-
apartment:
|
|
14
|
-
arrow_downward:
|
|
15
|
-
arrow_drop_down:
|
|
16
|
-
arrow_forward:
|
|
17
|
-
arrow_left:
|
|
18
|
-
arrow_right:
|
|
19
|
-
arrow_upward:
|
|
20
|
-
atm:
|
|
21
|
-
autorenew:
|
|
22
|
-
bakery_dining:
|
|
23
|
-
bassinet:
|
|
24
|
-
bedroom_parent:
|
|
25
|
-
brunch_dining:
|
|
26
|
-
cabin_bag:
|
|
27
|
-
calendar_month:
|
|
28
|
-
carry_on_bag_inactive:
|
|
29
|
-
check:
|
|
30
|
-
check_circle:
|
|
31
|
-
check_small:
|
|
32
|
-
checked_bag:
|
|
33
|
-
chevron:
|
|
34
|
-
child_care:
|
|
35
|
-
close:
|
|
36
|
-
closet:
|
|
37
|
-
concierge:
|
|
38
|
-
credit_card:
|
|
39
|
-
currency_exchange:
|
|
40
|
-
dinner_dining:
|
|
41
|
-
exit_row:
|
|
42
|
-
exit_row_right:
|
|
43
|
-
expand_content:
|
|
44
|
-
fitness_center:
|
|
45
|
-
flight:
|
|
46
|
-
flight_class:
|
|
47
|
-
flight_landing:
|
|
48
|
-
flight_takeoff:
|
|
49
|
-
galley:
|
|
50
|
-
hearing:
|
|
51
|
-
image_not_supported:
|
|
52
|
-
info_outline:
|
|
53
|
-
laundry:
|
|
54
|
-
lavatory:
|
|
55
|
-
lie_flat_seat:
|
|
56
|
-
local_bar:
|
|
57
|
-
local_parking:
|
|
58
|
-
loyalty:
|
|
59
|
-
luggage:
|
|
60
|
-
meeting_room:
|
|
61
|
-
minus:
|
|
62
|
-
no_airplane:
|
|
63
|
-
no_bag:
|
|
64
|
-
no_seat:
|
|
65
|
-
no_stroller:
|
|
66
|
-
north_east:
|
|
67
|
-
pet_supplies:
|
|
68
|
-
pool:
|
|
69
|
-
refund:
|
|
70
|
-
restaurant:
|
|
71
|
-
room_service:
|
|
72
|
-
seat:
|
|
73
|
-
seat_paid_indicator:
|
|
74
|
-
shield_with_moon:
|
|
75
|
-
shopfront:
|
|
76
|
-
shopping_bag:
|
|
77
|
-
spa:
|
|
78
|
-
stairs:
|
|
79
|
-
star:
|
|
80
|
-
unfold_more:
|
|
81
|
-
wallet:
|
|
82
|
-
warning:
|
|
83
|
-
wifi:
|
|
4
|
+
accessible: any;
|
|
5
|
+
add: any;
|
|
6
|
+
airline_seat_flat: any;
|
|
7
|
+
airline_seat_individual_suite: any;
|
|
8
|
+
airline_seat_legroom_extra: any;
|
|
9
|
+
airline_seat_recline_extra: any;
|
|
10
|
+
airline_seat_recline_normal: any;
|
|
11
|
+
airline_stops: any;
|
|
12
|
+
airplane_ticket: any;
|
|
13
|
+
apartment: any;
|
|
14
|
+
arrow_downward: any;
|
|
15
|
+
arrow_drop_down: any;
|
|
16
|
+
arrow_forward: any;
|
|
17
|
+
arrow_left: any;
|
|
18
|
+
arrow_right: any;
|
|
19
|
+
arrow_upward: any;
|
|
20
|
+
atm: any;
|
|
21
|
+
autorenew: any;
|
|
22
|
+
bakery_dining: any;
|
|
23
|
+
bassinet: any;
|
|
24
|
+
bedroom_parent: any;
|
|
25
|
+
brunch_dining: any;
|
|
26
|
+
cabin_bag: any;
|
|
27
|
+
calendar_month: any;
|
|
28
|
+
carry_on_bag_inactive: any;
|
|
29
|
+
check: any;
|
|
30
|
+
check_circle: any;
|
|
31
|
+
check_small: any;
|
|
32
|
+
checked_bag: any;
|
|
33
|
+
chevron: any;
|
|
34
|
+
child_care: any;
|
|
35
|
+
close: any;
|
|
36
|
+
closet: any;
|
|
37
|
+
concierge: any;
|
|
38
|
+
credit_card: any;
|
|
39
|
+
currency_exchange: any;
|
|
40
|
+
dinner_dining: any;
|
|
41
|
+
exit_row: any;
|
|
42
|
+
exit_row_right: any;
|
|
43
|
+
expand_content: any;
|
|
44
|
+
fitness_center: any;
|
|
45
|
+
flight: any;
|
|
46
|
+
flight_class: any;
|
|
47
|
+
flight_landing: any;
|
|
48
|
+
flight_takeoff: any;
|
|
49
|
+
galley: any;
|
|
50
|
+
hearing: any;
|
|
51
|
+
image_not_supported: any;
|
|
52
|
+
info_outline: any;
|
|
53
|
+
laundry: any;
|
|
54
|
+
lavatory: any;
|
|
55
|
+
lie_flat_seat: any;
|
|
56
|
+
local_bar: any;
|
|
57
|
+
local_parking: any;
|
|
58
|
+
loyalty: any;
|
|
59
|
+
luggage: any;
|
|
60
|
+
meeting_room: any;
|
|
61
|
+
minus: any;
|
|
62
|
+
no_airplane: any;
|
|
63
|
+
no_bag: any;
|
|
64
|
+
no_seat: any;
|
|
65
|
+
no_stroller: any;
|
|
66
|
+
north_east: any;
|
|
67
|
+
pet_supplies: any;
|
|
68
|
+
pool: any;
|
|
69
|
+
refund: any;
|
|
70
|
+
restaurant: any;
|
|
71
|
+
room_service: any;
|
|
72
|
+
seat: any;
|
|
73
|
+
seat_paid_indicator: any;
|
|
74
|
+
shield_with_moon: any;
|
|
75
|
+
shopfront: any;
|
|
76
|
+
shopping_bag: any;
|
|
77
|
+
spa: any;
|
|
78
|
+
stairs: any;
|
|
79
|
+
star: any;
|
|
80
|
+
unfold_more: any;
|
|
81
|
+
wallet: any;
|
|
82
|
+
warning: any;
|
|
83
|
+
wifi: any;
|
|
84
84
|
};
|
|
85
85
|
export type IconName = keyof typeof ICON_MAP;
|
|
86
86
|
interface IconProps {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
type ThreeDSSessionStatus = "
|
|
1
|
+
type ThreeDSSessionStatus = "client_action_required" | "ready_for_payment" | "expired" | "failed";
|
|
2
2
|
export interface ThreeDSecureSession {
|
|
3
3
|
id: string;
|
|
4
4
|
live_mode: boolean;
|
|
5
5
|
resource_id: string;
|
|
6
6
|
cardholder_present: boolean;
|
|
7
7
|
status: ThreeDSSessionStatus;
|
|
8
|
-
|
|
8
|
+
client_id: string | null;
|
|
9
9
|
}
|
|
10
10
|
interface Service {
|
|
11
11
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const captureErrorInSentry: (error: Error) =>
|
|
1
|
+
export declare const captureErrorInSentry: (error: Error) => any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@duffel/api" />
|
|
2
1
|
import { CreateOrder, Offer, SeatMap } from "@duffel/api/types";
|
|
3
2
|
import { DuffelAncillariesProps } from "src/types";
|
|
4
3
|
interface CompileCreateOrderPayloadInput {
|
|
@@ -9,5 +8,5 @@ interface CompileCreateOrderPayloadInput {
|
|
|
9
8
|
cfarSelectedServices: CreateOrder["services"];
|
|
10
9
|
seatMaps?: SeatMap[];
|
|
11
10
|
}
|
|
12
|
-
export declare const compileCreateOrderPayload: ({ baggageSelectedServices, seatSelectedServices, cfarSelectedServices, offer, seatMaps, passengers, }: CompileCreateOrderPayloadInput) =>
|
|
11
|
+
export declare const compileCreateOrderPayload: ({ baggageSelectedServices, seatSelectedServices, cfarSelectedServices, offer, seatMaps, passengers, }: CompileCreateOrderPayloadInput) => CreateOrder;
|
|
13
12
|
export {};
|
package/lib/getAirlinesText.d.ts
CHANGED