@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.
Files changed (127) hide show
  1. package/components/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +0 -1
  2. package/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +0 -1
  3. package/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +0 -1
  4. package/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +0 -1
  5. package/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +0 -1
  6. package/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +0 -1
  7. package/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +0 -1
  8. package/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +0 -1
  9. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +0 -1
  10. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +0 -1
  11. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +0 -1
  12. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +0 -1
  13. package/components/DuffelAncillaries/seats/Amenity.d.ts +0 -1
  14. package/components/DuffelAncillaries/seats/Element.d.ts +0 -1
  15. package/components/DuffelAncillaries/seats/Legend.d.ts +0 -1
  16. package/components/DuffelAncillaries/seats/Row.d.ts +0 -1
  17. package/components/DuffelAncillaries/seats/RowSection.d.ts +0 -1
  18. package/components/DuffelAncillaries/seats/SeatElement.d.ts +0 -1
  19. package/components/DuffelAncillaries/seats/SeatInfo.d.ts +0 -1
  20. package/components/DuffelAncillaries/seats/SeatMap.d.ts +0 -1
  21. package/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +0 -1
  22. package/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +0 -1
  23. package/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +0 -1
  24. package/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +0 -1
  25. package/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +0 -1
  26. package/components/DuffelCardForm/DuffelCardForm.d.ts +1 -4
  27. package/components/DuffelNGSView/DuffelNGSView.d.ts +2 -3
  28. package/components/DuffelNGSView/NGSSliceFareCard.d.ts +0 -1
  29. package/components/DuffelNGSView/NGSTable.d.ts +0 -1
  30. package/components/DuffelNGSView/SliceSummary.d.ts +0 -1
  31. package/components/DuffelNGSView/lib/deduplicate-mapped-offers-by-fare-brand.d.ts +3 -4
  32. package/components/DuffelNGSView/lib/does-slice-have-mixed-cabins.d.ts +1 -2
  33. package/components/DuffelNGSView/lib/filter-results.d.ts +1 -2
  34. package/components/DuffelNGSView/lib/get-initial-filter-values.d.ts +0 -1
  35. package/components/DuffelNGSView/lib/get-max-baggages-for-offer-slice.d.ts +1 -2
  36. package/components/DuffelNGSView/lib/getAirlines.d.ts +0 -1
  37. package/components/DuffelNGSView/lib/group-offers-for-ngs-view.d.ts +1 -2
  38. package/components/DuffelNGSView/lib/index.d.ts +0 -1
  39. package/components/DuffelNGSView/lib/sort-ngs-rows-by-shelf-price.d.ts +1 -2
  40. package/components/DuffelNGSView/lib/useFilters.d.ts +7 -20
  41. package/components/OfferSlice/OfferSlice.d.ts +0 -1
  42. package/components/OfferSlice/lib/getHighlightStyles.d.ts +1 -1
  43. package/components/Stays/StaysAmenities.d.ts +2 -3
  44. package/components/Stays/StaysRoomRateCard.d.ts +0 -1
  45. package/components/Stays/lib/getRateLabel.d.ts +1 -2
  46. package/components/Stays/lib/types.d.ts +2 -3
  47. package/components/shared/ErrorBoundary.d.ts +1 -1
  48. package/components/shared/Icon.d.ts +80 -80
  49. package/components/shared/SliceCarriersTitle.d.ts +0 -1
  50. package/fixtures/passengers/mock_passengers.d.ts +0 -1
  51. package/functions/createThreeDSecureSession/client.d.ts +2 -2
  52. package/lib/captureErrorInSentry.d.ts +1 -1
  53. package/lib/compileCreateOrderPayload.d.ts +1 -2
  54. package/lib/formatAvailableServices.d.ts +0 -1
  55. package/lib/getAirlinesText.d.ts +0 -1
  56. package/lib/getBaggageServiceDescription.d.ts +0 -1
  57. package/lib/getCabinsForSegmentAndDeck.d.ts +1 -3
  58. package/lib/getCarriers.d.ts +2 -3
  59. package/lib/getCurrencyForServices.d.ts +0 -1
  60. package/lib/getFareBrandName.d.ts +1 -1
  61. package/lib/getFirstSeatElementMatchingCriteria.d.ts +1 -2
  62. package/lib/getPassengerBySegmentList.d.ts +1 -6
  63. package/lib/getPassengerMapById.d.ts +2 -3
  64. package/lib/getPassengerName.d.ts +1 -1
  65. package/lib/getRowNumber.d.ts +0 -1
  66. package/lib/getSegmentDates.d.ts +2 -2
  67. package/lib/getSegmentList.d.ts +1 -3
  68. package/lib/getServicePriceMapById.d.ts +0 -1
  69. package/lib/getTotalAmountForServices.d.ts +3 -3
  70. package/lib/getTotalQuantity.d.ts +1 -2
  71. package/lib/hasAvailableSeatService.d.ts +0 -1
  72. package/lib/hasBaggageServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +0 -1
  73. package/lib/hasService.d.ts +2 -2
  74. package/lib/hasWings.d.ts +0 -1
  75. package/lib/isBaggageService.d.ts +0 -2
  76. package/lib/isCancelForAnyReasonService.d.ts +0 -2
  77. package/lib/isFixtureOfferId.d.ts +1 -2
  78. package/lib/isPayloadComplete.d.ts +1 -3
  79. package/lib/isSeatElement.d.ts +0 -1
  80. package/lib/offerIsExpired.d.ts +1 -2
  81. package/lib/retrieveOffer.d.ts +0 -1
  82. package/lib/retrieveSeatMaps.d.ts +0 -1
  83. package/package.json +1 -1
  84. package/stories/AirlineLogo.stories.d.ts +1 -1
  85. package/stories/AirlineSelector.stories.d.ts +2 -2
  86. package/stories/BaggageSelectionModalHeader.stories.d.ts +1 -1
  87. package/stories/Button.stories.d.ts +1 -1
  88. package/stories/DuffelAncillaries.stories.d.ts +1 -1
  89. package/stories/DuffelCardForm.stories.d.ts +1 -1
  90. package/stories/DuffelNGSView.stories.d.ts +1 -1
  91. package/stories/DuffelPayments.stories.d.ts +1 -1
  92. package/stories/Icon.stories.d.ts +1 -1
  93. package/stories/IconButton.stories.d.ts +1 -1
  94. package/stories/MapboxPlacesLookup.stories.d.ts +1 -1
  95. package/stories/NGSSliceFareCard.stories.d.ts +1 -1
  96. package/stories/OfferSlice.stories.d.ts +1 -1
  97. package/stories/OfferSliceModal.stories.d.ts +1 -1
  98. package/stories/PlacesLookup.stories.d.ts +1 -1
  99. package/stories/SliceCarriersTitle.stories.d.ts +1 -1
  100. package/stories/SliceSummary.stories.d.ts +1 -1
  101. package/stories/StaysAmenities.stories.d.ts +3 -4
  102. package/stories/StaysRating.stories.d.ts +3 -3
  103. package/stories/StaysRoomRateCard.stories.d.ts +11 -68
  104. package/stories/StaysSummary.stories.d.ts +4 -28
  105. package/tsconfig.tsbuildinfo +1 -1
  106. package/types/DuffelAncillariesProps.d.ts +0 -1
  107. package/types/TravelDetails.d.ts +0 -1
  108. package/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +0 -12
  109. package/components/DuffelCardForm/lib/postMessageToCreateCardForTemporaryUse.d.ts +0 -1
  110. package/components/DuffelCardForm/lib/postMessageToSaveCard.d.ts +0 -1
  111. package/components/DuffelCardForm/lib/postMessageWithStyles.d.ts +0 -2
  112. package/components/DuffelNGSView/FilterControls.d.ts +0 -13
  113. package/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +0 -13
  114. package/components/MapboxPlacesLookup/MapboxPlacesLookupCustomElement.d.ts +0 -13
  115. package/components/OfferSlice/OfferSliceConditions.d.ts +0 -7
  116. package/components/OfferSlice/OfferSliceDetailTravelItem.d.ts +0 -9
  117. package/components/OfferSliceModal/OfferSliceModal.d.ts +0 -7
  118. package/components/Stays/StaysAmenitiesCustomElement.d.ts +0 -12
  119. package/components/Stays/StaysRatingCustomElement.d.ts +0 -14
  120. package/components/Stays/StaysRoomRateCardCustomElement.d.ts +0 -14
  121. package/components/Stays/StaysSummary.d.ts +0 -12
  122. package/components/Stays/StaysSummaryCustomElement.d.ts +0 -12
  123. package/custom-elements.js +0 -69
  124. package/custom-elements.js.map +0 -7
  125. package/index.js +0 -60
  126. package/index.js.map +0 -7
  127. package/stories/NGSShelfInfoCard.stories.d.ts +0 -3
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrder, CreateOrderService, Offer } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  import { WithBaggageServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrderService, OfferAvailableServiceBaggage } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  import { WithBaggageServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrder, CreateOrderService, Offer } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  import { WithBaggageServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import React from "react";
3
2
  import { CreateOrderPassenger, CreateOrderService, Offer, OfferSliceSegment } from "@duffel/api/types";
4
3
  import { WithBaggageServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrderService, OfferAvailableServiceBaggage, OfferSliceSegmentPassengerBaggage } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  import { WithBaggageServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrder } from "@duffel/api/types";
3
2
  import { ServicePriceMapById } from "@lib/getServicePriceMapById";
4
3
  import React from "react";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { OfferSliceSegment } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  export interface BaggageSelectionModalHeaderProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { OfferSliceSegmentPassengerBaggage } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  interface IncludedBaggageBannerProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrderService, Offer } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  import { WithServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrderService, Offer, OfferAvailableServiceCFAR } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  import { WithServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import React from "react";
3
2
  import { Offer, OfferAvailableServiceCFAR } from "@duffel/api/types";
4
3
  export interface CfarSelectionModalBodyProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrderService, OfferAvailableServiceCFAR } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  import { WithServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { SeatMapCabinRowSectionElementAmenity } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  export interface AmenityProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrderService, SeatMapCabinRowSectionElement } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  import { WithSeatServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { SeatMapCabinRowSectionElementAmenity } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  export interface LegendProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrderService, SeatMapCabinRow } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  import { WithSeatServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrderService, SeatMapCabinRow, SeatMapCabinRowSection } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  import { WithSeatServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrderService, SeatMapCabinRowSectionElementSeat } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  import { WithSeatServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { SeatMapCabinRowSectionAvailableService, SeatMapCabinRowSectionElementSeat } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  export interface SeatInfoProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrderService, SeatMap as SeatMapType } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  import { WithSeatServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrder, CreateOrderService, Offer, SeatMap } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  import { WithSeatServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrder, CreateOrderService, Offer, SeatMap } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  import { WithSeatServiceInformation } from "src/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { ServicePriceMapById } from "@lib/getServicePriceMapById";
3
2
  import React from "react";
4
3
  import { CreateOrder, SeatMap } from "@duffel/api/types";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { OfferSliceSegment } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  export interface SeatSelectionModalHeaderProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { SeatMapCabinRowSectionElementSeat } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  export declare const SeatUnavailable: React.FC<{
@@ -1,4 +1 @@
1
- import * as React from "react";
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: "duration-asc" | "duration-desc" | "1-asc" | "1-desc" | "2-asc" | "2-desc" | "3-asc" | "3-desc" | "4-asc" | "4-desc" | "5-asc" | "5-desc" | "recommended";
7
- setSortOption: React.Dispatch<React.SetStateAction<"duration-asc" | "duration-desc" | "1-asc" | "1-desc" | "2-asc" | "2-desc" | "3-asc" | "3-desc" | "4-asc" | "4-desc" | "5-asc" | "5-desc" | "recommended">>;
5
+ sortOption: any;
6
+ setSortOption: any;
8
7
  sortingFunction: (rows: NGSOfferRow[]) => NGSOfferRow[];
9
8
  };
10
9
  export interface DuffelNGSViewProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { Offer } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  export interface NGSSliceFareCardProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import * as React from "react";
3
2
  import { NGSShelf } from "./lib";
4
3
  import { NGSOfferRow } from "./lib/group-offers-for-ngs-view";
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { OfferSlice } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  export interface SliceSummaryProps {
@@ -1,7 +1,6 @@
1
- /// <reference types="@duffel/api" />
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["offers"]) => Omit<Offer, "available_services">;
7
- export declare const groupByFareBrandName: (offers: OfferRequest["offers"]) => Omit<Offer, "available_services">[][];
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): boolean;
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): Omit<import("@duffel/api/types").Offer, "available_services">[];
13
+ export declare function filterResults(offers: NGSTableProps["offers"], currentSliceIndex: number, filters: Filters): any;
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { OfferRequest } from "@duffel/api/booking/OfferRequests/OfferRequestsTypes";
3
2
  import { Filters } from "./filter-results";
4
3
  export declare function getInitialFilterValues(offerRequest: OfferRequest): Filters;
@@ -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["type"]) => OfferSliceSegmentPassenger["baggages"];
7
+ export declare const getMaxBaggagesForOfferSlice: (offerSlice: OfferSlice, type: OfferAvailableServiceBaggageMetadata) => OfferSliceSegmentPassenger;
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { OfferRequest } from "@duffel/api/types";
3
2
  import { Filters } from "./filter-results";
4
3
  export declare function getAirlines(offerRequest: OfferRequest): Filters["airlines"];
@@ -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["offers"], sliceIndex: number, previousSliceKeys: string[]) => NGSOfferRow[];
5
+ export declare const groupOffersForNGSView: (offers: OfferRequest, sliceIndex: number, previousSliceKeys: string[]) => NGSOfferRow[];
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { IconName } from "@components/shared/Icon";
3
2
  import { OfferSlice, SeatType } from "@duffel/api/types";
4
3
  export declare const NGS_SHELVES: readonly [1, 2, 3, 4, 5];
@@ -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: NGSShelf, sortDirection: SortDirection) => NGSOfferRow[];
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
- iata_code: string;
10
- name: string;
11
- }[];
12
- timesFilter: {
13
- departure: [number, number];
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: Omit<import("@duffel/api/types").Offer, "available_services">[];
14
+ filteredOffers: any;
28
15
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { OfferSlice as OfferSliceType } from "@duffel/api/types";
3
2
  import React from "react";
4
3
  export interface OfferSliceProps {
@@ -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?: string | undefined;
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, StaysAmenity } from "@duffel/api/types";
5
- export declare const amenityIcon: (type: StaysAmenity["type"]) => IconName;
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,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import * as React from "react";
3
2
  import { StaysRoomRate } from "@duffel/api/types";
4
3
  export interface StaysRoomRateCardProps {
@@ -1,2 +1 @@
1
- import { StaysRate } from "@duffel/api/types";
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["board_type"]) => "Room only, no meals" | "Breakfast included" | "Half board" | "Full board" | "All inclusive";
29
- export declare const boardTypeIcon: (boardType: StaysRoomRate["board_type"]) => IconName;
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(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
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: import("react/jsx-runtime").JSX.Element;
5
- add: import("react/jsx-runtime").JSX.Element;
6
- airline_seat_flat: import("react/jsx-runtime").JSX.Element;
7
- airline_seat_individual_suite: import("react/jsx-runtime").JSX.Element;
8
- airline_seat_legroom_extra: import("react/jsx-runtime").JSX.Element;
9
- airline_seat_recline_extra: import("react/jsx-runtime").JSX.Element;
10
- airline_seat_recline_normal: import("react/jsx-runtime").JSX.Element;
11
- airline_stops: import("react/jsx-runtime").JSX.Element;
12
- airplane_ticket: import("react/jsx-runtime").JSX.Element;
13
- apartment: import("react/jsx-runtime").JSX.Element;
14
- arrow_downward: import("react/jsx-runtime").JSX.Element;
15
- arrow_drop_down: import("react/jsx-runtime").JSX.Element;
16
- arrow_forward: import("react/jsx-runtime").JSX.Element;
17
- arrow_left: import("react/jsx-runtime").JSX.Element;
18
- arrow_right: import("react/jsx-runtime").JSX.Element;
19
- arrow_upward: import("react/jsx-runtime").JSX.Element;
20
- atm: import("react/jsx-runtime").JSX.Element;
21
- autorenew: import("react/jsx-runtime").JSX.Element;
22
- bakery_dining: import("react/jsx-runtime").JSX.Element;
23
- bassinet: import("react/jsx-runtime").JSX.Element;
24
- bedroom_parent: import("react/jsx-runtime").JSX.Element;
25
- brunch_dining: import("react/jsx-runtime").JSX.Element;
26
- cabin_bag: import("react/jsx-runtime").JSX.Element;
27
- calendar_month: import("react/jsx-runtime").JSX.Element;
28
- carry_on_bag_inactive: import("react/jsx-runtime").JSX.Element;
29
- check: import("react/jsx-runtime").JSX.Element;
30
- check_circle: import("react/jsx-runtime").JSX.Element;
31
- check_small: import("react/jsx-runtime").JSX.Element;
32
- checked_bag: import("react/jsx-runtime").JSX.Element;
33
- chevron: import("react/jsx-runtime").JSX.Element;
34
- child_care: import("react/jsx-runtime").JSX.Element;
35
- close: import("react/jsx-runtime").JSX.Element;
36
- closet: import("react/jsx-runtime").JSX.Element;
37
- concierge: import("react/jsx-runtime").JSX.Element;
38
- credit_card: import("react/jsx-runtime").JSX.Element;
39
- currency_exchange: import("react/jsx-runtime").JSX.Element;
40
- dinner_dining: import("react/jsx-runtime").JSX.Element;
41
- exit_row: import("react/jsx-runtime").JSX.Element;
42
- exit_row_right: import("react/jsx-runtime").JSX.Element;
43
- expand_content: import("react/jsx-runtime").JSX.Element;
44
- fitness_center: import("react/jsx-runtime").JSX.Element;
45
- flight: import("react/jsx-runtime").JSX.Element;
46
- flight_class: import("react/jsx-runtime").JSX.Element;
47
- flight_landing: import("react/jsx-runtime").JSX.Element;
48
- flight_takeoff: import("react/jsx-runtime").JSX.Element;
49
- galley: import("react/jsx-runtime").JSX.Element;
50
- hearing: import("react/jsx-runtime").JSX.Element;
51
- image_not_supported: import("react/jsx-runtime").JSX.Element;
52
- info_outline: import("react/jsx-runtime").JSX.Element;
53
- laundry: import("react/jsx-runtime").JSX.Element;
54
- lavatory: import("react/jsx-runtime").JSX.Element;
55
- lie_flat_seat: import("react/jsx-runtime").JSX.Element;
56
- local_bar: import("react/jsx-runtime").JSX.Element;
57
- local_parking: import("react/jsx-runtime").JSX.Element;
58
- loyalty: import("react/jsx-runtime").JSX.Element;
59
- luggage: import("react/jsx-runtime").JSX.Element;
60
- meeting_room: import("react/jsx-runtime").JSX.Element;
61
- minus: import("react/jsx-runtime").JSX.Element;
62
- no_airplane: import("react/jsx-runtime").JSX.Element;
63
- no_bag: import("react/jsx-runtime").JSX.Element;
64
- no_seat: import("react/jsx-runtime").JSX.Element;
65
- no_stroller: import("react/jsx-runtime").JSX.Element;
66
- north_east: import("react/jsx-runtime").JSX.Element;
67
- pet_supplies: import("react/jsx-runtime").JSX.Element;
68
- pool: import("react/jsx-runtime").JSX.Element;
69
- refund: import("react/jsx-runtime").JSX.Element;
70
- restaurant: import("react/jsx-runtime").JSX.Element;
71
- room_service: import("react/jsx-runtime").JSX.Element;
72
- seat: import("react/jsx-runtime").JSX.Element;
73
- seat_paid_indicator: import("react/jsx-runtime").JSX.Element;
74
- shield_with_moon: import("react/jsx-runtime").JSX.Element;
75
- shopfront: import("react/jsx-runtime").JSX.Element;
76
- shopping_bag: import("react/jsx-runtime").JSX.Element;
77
- spa: import("react/jsx-runtime").JSX.Element;
78
- stairs: import("react/jsx-runtime").JSX.Element;
79
- star: import("react/jsx-runtime").JSX.Element;
80
- unfold_more: import("react/jsx-runtime").JSX.Element;
81
- wallet: import("react/jsx-runtime").JSX.Element;
82
- warning: import("react/jsx-runtime").JSX.Element;
83
- wifi: import("react/jsx-runtime").JSX.Element;
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,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { OfferSlice, OfferSliceSegment } from "@duffel/api/types";
3
2
  import * as React from "react";
4
3
  export interface SliceCarriersTitleProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="@duffel/api" />
2
1
  import { CreateOrder } from "@duffel/api/types";
3
2
  declare const mockPassengers: CreateOrder["passengers"];
4
3
  export default mockPassengers;
@@ -1,11 +1,11 @@
1
- type ThreeDSSessionStatus = "challenge_required" | "ready_for_payment" | "expired" | "failed";
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
- external_id: string | null;
8
+ client_id: string | null;
9
9
  }
10
10
  interface Service {
11
11
  id: string;
@@ -1 +1 @@
1
- export declare const captureErrorInSentry: (error: Error) => string;
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) => Partial<CreateOrder>;
11
+ export declare const compileCreateOrderPayload: ({ baggageSelectedServices, seatSelectedServices, cfarSelectedServices, offer, seatMaps, passengers, }: CompileCreateOrderPayloadInput) => CreateOrder;
13
12
  export {};
@@ -1,4 +1,3 @@
1
- import { Offer } from "@duffel/api/types";
2
1
  import { DuffelAncillariesPriceFormatters } from "../types/DuffelAncillariesProps";
3
2
  /**
4
3
  * Formats the prices of the available services of an offer according to the
@@ -1,2 +1 @@
1
- import { OfferSlice } from "@duffel/api/types";
2
1
  export declare const getAirlinesText: (forSlice: OfferSlice, withFlightNumbers?: boolean, withFareBrand?: boolean) => string;
@@ -1,2 +1 @@
1
- import { OfferAvailableServiceBaggageMetadata } from "@duffel/api/types";
2
1
  export declare const getBaggageServiceDescription: (metadata: OfferAvailableServiceBaggageMetadata) => string | null;