@duffel/components 3.7.32 → 3.8.0

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.
@@ -18,11 +18,6 @@ type CreateThreeDSecureSessionFn = (clientKey: string, cardId: string, resourceI
18
18
  id: string;
19
19
  quantity: number;
20
20
  }>, cardholderPresent: boolean | null, exception?: string, environmentConfiguration?: Partial<typeof DEFAULT_ENVIRONMENT_CONFIGURATION>) => Promise<ThreeDSecureSession>;
21
- declare global {
22
- interface Window {
23
- createThreeDSecureSession: CreateThreeDSecureSessionFn;
24
- }
25
- }
26
21
  export declare const createThreeDSecureSession: CreateThreeDSecureSessionFn;
27
22
  declare const _default: {
28
23
  createThreeDSecureSession: CreateThreeDSecureSessionFn;
@@ -0,0 +1,3 @@
1
+ /// <reference types="@duffel/api" />
2
+ import { Offer, SeatMap } from "@duffel/api/types";
3
+ export declare function hasService(offer: Offer, seatMaps?: SeatMap[]): boolean;
package/functions.d.ts CHANGED
@@ -1 +1,10 @@
1
- export {};
1
+ import { createThreeDSecureSession } from "./functions/createThreeDSecureSession/createThreeDSecureSession";
2
+ import { hasService } from "./functions/hasService";
3
+ import { hasAvailableSeatService } from "./lib/hasAvailableSeatService";
4
+ declare global {
5
+ interface Window {
6
+ createThreeDSecureSession: typeof createThreeDSecureSession;
7
+ hasAvailableSeatService: typeof hasAvailableSeatService;
8
+ hasService: typeof hasService;
9
+ }
10
+ }