@duffel/api 2.5.3 → 2.5.4
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/dist/DuffelPayments/PaymentIntents/PaymentIntents.d.ts +28 -28
- package/dist/DuffelPayments/PaymentIntents/PaymentIntents.spec.d.ts +1 -1
- package/dist/DuffelPayments/PaymentIntents/PaymentIntentsType.d.ts +112 -112
- package/dist/DuffelPayments/PaymentIntents/index.d.ts +1 -1
- package/dist/DuffelPayments/Refunds/Refunds.d.ts +21 -21
- package/dist/DuffelPayments/Refunds/Refunds.spec.d.ts +1 -1
- package/dist/DuffelPayments/Refunds/RefundsType.d.ts +70 -70
- package/dist/DuffelPayments/Refunds/index.d.ts +1 -1
- package/dist/DuffelPayments/index.d.ts +1 -1
- package/dist/Links/Sessions/Sessions.d.ts +63 -63
- package/dist/Links/Sessions/Sessions.spec.d.ts +1 -1
- package/dist/Links/Sessions/index.d.ts +1 -1
- package/dist/Links/index.d.ts +1 -1
- package/dist/Places/Suggestions/Suggestions.d.ts +42 -42
- package/dist/Places/Suggestions/Suggestions.spec.d.ts +1 -1
- package/dist/Places/Suggestions/SuggestionsType.d.ts +59 -59
- package/dist/Places/Suggestions/index.d.ts +1 -1
- package/dist/Places/index.d.ts +1 -1
- package/dist/Stays/Bookings/Bookings.d.ts +41 -41
- package/dist/Stays/Bookings/Bookings.spec.d.ts +1 -1
- package/dist/Stays/Bookings/index.d.ts +1 -1
- package/dist/Stays/Quotes/Quotes.d.ts +16 -16
- package/dist/Stays/Quotes/Quotes.spec.d.ts +1 -1
- package/dist/Stays/Quotes/index.d.ts +1 -1
- package/dist/Stays/SearchResults/SearchResults.d.ts +16 -16
- package/dist/Stays/SearchResults/SearchResults.spec.d.ts +1 -1
- package/dist/Stays/SearchResults/index.d.ts +1 -1
- package/dist/Stays/Stays.d.ts +22 -22
- package/dist/Stays/Stays.spec.d.ts +1 -1
- package/dist/Stays/StaysTypes.d.ts +454 -454
- package/dist/booking/AirlineInitiatedChanges/AirlineInitiatedChanges.d.ts +63 -63
- package/dist/booking/AirlineInitiatedChanges/AirlineInitiatedChanges.spec.d.ts +1 -1
- package/dist/booking/AirlineInitiatedChanges/AirlineInitiatedChangesTypes.d.ts +57 -57
- package/dist/booking/AirlineInitiatedChanges/index.d.ts +1 -1
- package/dist/booking/OfferRequests/OfferRequests.d.ts +46 -46
- package/dist/booking/OfferRequests/OfferRequests.spec.d.ts +1 -1
- package/dist/booking/OfferRequests/OfferRequestsTypes.d.ts +240 -240
- package/dist/booking/OfferRequests/index.d.ts +1 -1
- package/dist/booking/Offers/OfferTypes.d.ts +495 -495
- package/dist/booking/Offers/Offers.d.ts +53 -53
- package/dist/booking/Offers/Offers.spec.d.ts +1 -1
- package/dist/booking/Offers/index.d.ts +1 -1
- package/dist/booking/OrderCancellations/OrderCancellations.d.ts +41 -41
- package/dist/booking/OrderCancellations/OrderCancellations.spec.d.ts +1 -1
- package/dist/booking/OrderCancellations/OrderCancellationsTypes.d.ts +53 -53
- package/dist/booking/OrderCancellations/index.d.ts +1 -1
- package/dist/booking/OrderChangeOffers/OrderChangeOfferTypes.d.ts +113 -113
- package/dist/booking/OrderChangeOffers/OrderChangeOffers.d.ts +31 -31
- package/dist/booking/OrderChangeOffers/OrderChangeOffers.spec.d.ts +1 -1
- package/dist/booking/OrderChangeOffers/index.d.ts +1 -1
- package/dist/booking/OrderChangeRequests/OrderChangeRequests.d.ts +29 -29
- package/dist/booking/OrderChangeRequests/OrderChangeRequestsTypes.d.ts +141 -141
- package/dist/booking/OrderChangeRequests/OrderRequestChanges.spec.d.ts +1 -1
- package/dist/booking/OrderChangeRequests/index.d.ts +1 -1
- package/dist/booking/OrderChanges/OrderChanges.d.ts +31 -31
- package/dist/booking/OrderChanges/OrderChanges.spec.d.ts +1 -1
- package/dist/booking/OrderChanges/OrderChangesTypes.d.ts +102 -102
- package/dist/booking/OrderChanges/index.d.ts +1 -1
- package/dist/booking/Orders/Orders.d.ts +52 -52
- package/dist/booking/Orders/Orders.spec.d.ts +1 -1
- package/dist/booking/Orders/OrdersTypes.d.ts +500 -500
- package/dist/booking/Orders/index.d.ts +1 -1
- package/dist/booking/PartialOfferRequests/PartialOfferRequestTypes.d.ts +6 -6
- package/dist/booking/PartialOfferRequests/PartialOfferRequests.d.ts +40 -40
- package/dist/booking/PartialOfferRequests/PartialOfferRequests.spec.d.ts +1 -1
- package/dist/booking/PartialOfferRequests/index.d.ts +1 -1
- package/dist/booking/Payments/Payments.d.ts +16 -16
- package/dist/booking/Payments/Payments.spec.d.ts +1 -1
- package/dist/booking/Payments/PaymentsTypes.d.ts +43 -43
- package/dist/booking/Payments/index.d.ts +1 -1
- package/dist/booking/SeatMaps/SeatMapTypes.d.ts +190 -190
- package/dist/booking/SeatMaps/SeatMaps.d.ts +17 -17
- package/dist/booking/SeatMaps/SeatMaps.spec.d.ts +1 -1
- package/dist/booking/SeatMaps/index.d.ts +1 -1
- package/dist/booking/index.d.ts +11 -11
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications/Webhooks/Webhooks.d.ts +51 -51
- package/dist/notifications/Webhooks/Webhooks.spec.d.ts +1 -1
- package/dist/notifications/Webhooks/WebhooksType.d.ts +113 -113
- package/dist/notifications/Webhooks/index.d.ts +1 -1
- package/dist/notifications/index.d.ts +1 -1
- package/dist/supportingResources/Aircraft/Aircraft.d.ts +30 -30
- package/dist/supportingResources/Aircraft/Aircraft.spec.d.ts +1 -1
- package/dist/supportingResources/Aircraft/AircraftTypes.d.ts +18 -18
- package/dist/supportingResources/Aircraft/index.d.ts +1 -1
- package/dist/supportingResources/Airlines/Airlines.d.ts +29 -29
- package/dist/supportingResources/Airlines/Airlines.spec.d.ts +1 -1
- package/dist/supportingResources/Airlines/AirlinesTypes.d.ts +17 -17
- package/dist/supportingResources/Airlines/index.d.ts +2 -2
- package/dist/supportingResources/Airports/Airports.d.ts +30 -30
- package/dist/supportingResources/Airports/Airports.spec.d.ts +1 -1
- package/dist/supportingResources/Airports/AirportsTypes.d.ts +55 -55
- package/dist/supportingResources/Airports/index.d.ts +2 -2
- package/dist/supportingResources/index.d.ts +3 -3
- package/package.json +15 -15
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { Client } from '../../Client';
|
|
2
|
-
import { Resource } from '../../Resource';
|
|
3
|
-
import { DuffelResponse, Places } from '../../types';
|
|
4
|
-
interface PlacesSuggestionsParameters {
|
|
5
|
-
/**
|
|
6
|
-
* A search string for finding matching Places.
|
|
7
|
-
* Deprecated in favour of "name".
|
|
8
|
-
*/
|
|
9
|
-
query?: string;
|
|
10
|
-
/**
|
|
11
|
-
* A search string for finding matching Places by name.
|
|
12
|
-
*/
|
|
13
|
-
name?: string;
|
|
14
|
-
/**
|
|
15
|
-
* The radius, in metres, to search within.
|
|
16
|
-
*/
|
|
17
|
-
rad?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The latitude to search by.
|
|
20
|
-
*/
|
|
21
|
-
lat?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The longitude to search by.
|
|
24
|
-
*/
|
|
25
|
-
lng?: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* A Place is a city or airport that can serve as an origin or destination.
|
|
29
|
-
* * @link https://duffel.com/docs/api/places
|
|
30
|
-
*/
|
|
31
|
-
export declare class Suggestions extends Resource {
|
|
32
|
-
/**
|
|
33
|
-
* Endpoint path
|
|
34
|
-
*/
|
|
35
|
-
path: string;
|
|
36
|
-
constructor(client: Client);
|
|
37
|
-
/**
|
|
38
|
-
* Retrieves a list of Places matching the provided query
|
|
39
|
-
*/
|
|
40
|
-
list: (params: PlacesSuggestionsParameters) => Promise<DuffelResponse<Places[]>>;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
1
|
+
import { Client } from '../../Client';
|
|
2
|
+
import { Resource } from '../../Resource';
|
|
3
|
+
import { DuffelResponse, Places } from '../../types';
|
|
4
|
+
interface PlacesSuggestionsParameters {
|
|
5
|
+
/**
|
|
6
|
+
* A search string for finding matching Places.
|
|
7
|
+
* Deprecated in favour of "name".
|
|
8
|
+
*/
|
|
9
|
+
query?: string;
|
|
10
|
+
/**
|
|
11
|
+
* A search string for finding matching Places by name.
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The radius, in metres, to search within.
|
|
16
|
+
*/
|
|
17
|
+
rad?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The latitude to search by.
|
|
20
|
+
*/
|
|
21
|
+
lat?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The longitude to search by.
|
|
24
|
+
*/
|
|
25
|
+
lng?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A Place is a city or airport that can serve as an origin or destination.
|
|
29
|
+
* * @link https://duffel.com/docs/api/places
|
|
30
|
+
*/
|
|
31
|
+
export declare class Suggestions extends Resource {
|
|
32
|
+
/**
|
|
33
|
+
* Endpoint path
|
|
34
|
+
*/
|
|
35
|
+
path: string;
|
|
36
|
+
constructor(client: Client);
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves a list of Places matching the provided query
|
|
39
|
+
*/
|
|
40
|
+
list: (params: PlacesSuggestionsParameters) => Promise<DuffelResponse<Places[]>>;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { Airport, City } from '../../types';
|
|
2
|
-
export interface Places {
|
|
3
|
-
/**
|
|
4
|
-
* The type of the place
|
|
5
|
-
*/
|
|
6
|
-
type: string;
|
|
7
|
-
/**
|
|
8
|
-
* The time zone of the airport, specified by name from the tz database
|
|
9
|
-
*/
|
|
10
|
-
time_zone: string | null;
|
|
11
|
-
/**
|
|
12
|
-
* The name of the place
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* The longitude position of the airport represented in Decimal degrees with 6 decimal points with a range between -180° and 180°
|
|
17
|
-
*/
|
|
18
|
-
longitude: number | null;
|
|
19
|
-
/**
|
|
20
|
-
* The latitude position of the airport represented in Decimal degrees with 6 decimal points with a range between -90° and 90°
|
|
21
|
-
*/
|
|
22
|
-
latitude: number | null;
|
|
23
|
-
/**
|
|
24
|
-
* Duffel's unique identifier for the place
|
|
25
|
-
*/
|
|
26
|
-
id: string;
|
|
27
|
-
/**
|
|
28
|
-
* The four-character ICAO code for the airport
|
|
29
|
-
*/
|
|
30
|
-
icao_code: string | null;
|
|
31
|
-
/**
|
|
32
|
-
* The ISO 3166-1 alpha-2 code for the country where the city is located
|
|
33
|
-
*/
|
|
34
|
-
iata_country_code: string;
|
|
35
|
-
/**
|
|
36
|
-
* The 3-letter IATA code for the place
|
|
37
|
-
*/
|
|
38
|
-
iata_code: string;
|
|
39
|
-
/**
|
|
40
|
-
* The 3-letter IATA code for the city where the place is located. Only present for airports which are registered with IATA as belonging to a metropolitan area.
|
|
41
|
-
*/
|
|
42
|
-
iata_city_code: string | null;
|
|
43
|
-
/**
|
|
44
|
-
* The name of the country where the city or airport is located
|
|
45
|
-
*/
|
|
46
|
-
country_name: string | null;
|
|
47
|
-
/**
|
|
48
|
-
* The name of the city (or cities separated by a /) where the airport is located
|
|
49
|
-
*/
|
|
50
|
-
city_name: string | null;
|
|
51
|
-
/**
|
|
52
|
-
* The metropolitan area where the airport is located. Only present for airports which are registered with IATA as belonging to a metropolitan area.
|
|
53
|
-
*/
|
|
54
|
-
city: City | null;
|
|
55
|
-
/**
|
|
56
|
-
* The airports associated to a city. This will only be provided where the type is city.
|
|
57
|
-
*/
|
|
58
|
-
airports: Airport[] | null;
|
|
59
|
-
}
|
|
1
|
+
import { Airport, City } from '../../types';
|
|
2
|
+
export interface Places {
|
|
3
|
+
/**
|
|
4
|
+
* The type of the place
|
|
5
|
+
*/
|
|
6
|
+
type: string;
|
|
7
|
+
/**
|
|
8
|
+
* The time zone of the airport, specified by name from the tz database
|
|
9
|
+
*/
|
|
10
|
+
time_zone: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* The name of the place
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* The longitude position of the airport represented in Decimal degrees with 6 decimal points with a range between -180° and 180°
|
|
17
|
+
*/
|
|
18
|
+
longitude: number | null;
|
|
19
|
+
/**
|
|
20
|
+
* The latitude position of the airport represented in Decimal degrees with 6 decimal points with a range between -90° and 90°
|
|
21
|
+
*/
|
|
22
|
+
latitude: number | null;
|
|
23
|
+
/**
|
|
24
|
+
* Duffel's unique identifier for the place
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The four-character ICAO code for the airport
|
|
29
|
+
*/
|
|
30
|
+
icao_code: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* The ISO 3166-1 alpha-2 code for the country where the city is located
|
|
33
|
+
*/
|
|
34
|
+
iata_country_code: string;
|
|
35
|
+
/**
|
|
36
|
+
* The 3-letter IATA code for the place
|
|
37
|
+
*/
|
|
38
|
+
iata_code: string;
|
|
39
|
+
/**
|
|
40
|
+
* The 3-letter IATA code for the city where the place is located. Only present for airports which are registered with IATA as belonging to a metropolitan area.
|
|
41
|
+
*/
|
|
42
|
+
iata_city_code: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The name of the country where the city or airport is located
|
|
45
|
+
*/
|
|
46
|
+
country_name: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* The name of the city (or cities separated by a /) where the airport is located
|
|
49
|
+
*/
|
|
50
|
+
city_name: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The metropolitan area where the airport is located. Only present for airports which are registered with IATA as belonging to a metropolitan area.
|
|
53
|
+
*/
|
|
54
|
+
city: City | null;
|
|
55
|
+
/**
|
|
56
|
+
* The airports associated to a city. This will only be provided where the type is city.
|
|
57
|
+
*/
|
|
58
|
+
airports: Airport[] | null;
|
|
59
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Suggestions';
|
|
1
|
+
export * from './Suggestions';
|
package/dist/Places/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Suggestions';
|
|
1
|
+
export * from './Suggestions';
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { Client } from '../../Client';
|
|
2
|
-
import { StaysBooking } from '../StaysTypes';
|
|
3
|
-
import { Resource } from '../../Resource';
|
|
4
|
-
import { DuffelResponse } from '../../types';
|
|
5
|
-
export interface StaysBookingPayload {
|
|
6
|
-
quote_id: string;
|
|
7
|
-
loyalty_programme_account_number?: string;
|
|
8
|
-
guests: Array<{
|
|
9
|
-
given_name: string;
|
|
10
|
-
family_name: string;
|
|
11
|
-
}>;
|
|
12
|
-
email: string;
|
|
13
|
-
phone_number: string;
|
|
14
|
-
accommodation_special_requests?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class Bookings extends Resource {
|
|
17
|
-
/**
|
|
18
|
-
* Endpoint path
|
|
19
|
-
*/
|
|
20
|
-
path: string;
|
|
21
|
-
constructor(client: Client);
|
|
22
|
-
/**
|
|
23
|
-
* Create a booking
|
|
24
|
-
* @param {object} payload - The booking payload, including quote id and guest information
|
|
25
|
-
*/
|
|
26
|
-
create: (payload: StaysBookingPayload) => Promise<DuffelResponse<StaysBooking>>;
|
|
27
|
-
/**
|
|
28
|
-
* Get a booking
|
|
29
|
-
* @param {string} bookingId - The ID of the booking
|
|
30
|
-
*/
|
|
31
|
-
get: (bookingId: string) => Promise<DuffelResponse<StaysBooking>>;
|
|
32
|
-
/**
|
|
33
|
-
* List bookings
|
|
34
|
-
*/
|
|
35
|
-
list: () => Promise<DuffelResponse<StaysBooking[]>>;
|
|
36
|
-
/**
|
|
37
|
-
* Cancel a booking
|
|
38
|
-
* @param {string} bookingId - The ID of the booking
|
|
39
|
-
*/
|
|
40
|
-
cancel: (bookindId: string) => Promise<DuffelResponse<StaysBooking>>;
|
|
41
|
-
}
|
|
1
|
+
import { Client } from '../../Client';
|
|
2
|
+
import { StaysBooking } from '../StaysTypes';
|
|
3
|
+
import { Resource } from '../../Resource';
|
|
4
|
+
import { DuffelResponse } from '../../types';
|
|
5
|
+
export interface StaysBookingPayload {
|
|
6
|
+
quote_id: string;
|
|
7
|
+
loyalty_programme_account_number?: string;
|
|
8
|
+
guests: Array<{
|
|
9
|
+
given_name: string;
|
|
10
|
+
family_name: string;
|
|
11
|
+
}>;
|
|
12
|
+
email: string;
|
|
13
|
+
phone_number: string;
|
|
14
|
+
accommodation_special_requests?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class Bookings extends Resource {
|
|
17
|
+
/**
|
|
18
|
+
* Endpoint path
|
|
19
|
+
*/
|
|
20
|
+
path: string;
|
|
21
|
+
constructor(client: Client);
|
|
22
|
+
/**
|
|
23
|
+
* Create a booking
|
|
24
|
+
* @param {object} payload - The booking payload, including quote id and guest information
|
|
25
|
+
*/
|
|
26
|
+
create: (payload: StaysBookingPayload) => Promise<DuffelResponse<StaysBooking>>;
|
|
27
|
+
/**
|
|
28
|
+
* Get a booking
|
|
29
|
+
* @param {string} bookingId - The ID of the booking
|
|
30
|
+
*/
|
|
31
|
+
get: (bookingId: string) => Promise<DuffelResponse<StaysBooking>>;
|
|
32
|
+
/**
|
|
33
|
+
* List bookings
|
|
34
|
+
*/
|
|
35
|
+
list: () => Promise<DuffelResponse<StaysBooking[]>>;
|
|
36
|
+
/**
|
|
37
|
+
* Cancel a booking
|
|
38
|
+
* @param {string} bookingId - The ID of the booking
|
|
39
|
+
*/
|
|
40
|
+
cancel: (bookindId: string) => Promise<DuffelResponse<StaysBooking>>;
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Bookings';
|
|
1
|
+
export * from './Bookings';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Client } from '../../Client';
|
|
2
|
-
import { StaysQuote } from '../StaysTypes';
|
|
3
|
-
import { Resource } from '../../Resource';
|
|
4
|
-
import { DuffelResponse } from '../../types';
|
|
5
|
-
export declare class Quotes extends Resource {
|
|
6
|
-
/**
|
|
7
|
-
* Endpoint path
|
|
8
|
-
*/
|
|
9
|
-
path: string;
|
|
10
|
-
constructor(client: Client);
|
|
11
|
-
/**
|
|
12
|
-
* Create a quote for the selected rate
|
|
13
|
-
* @param {string} rateId - The ID of the rate to create a quote for
|
|
14
|
-
*/
|
|
15
|
-
create: (rateId: string) => Promise<DuffelResponse<StaysQuote>>;
|
|
16
|
-
}
|
|
1
|
+
import { Client } from '../../Client';
|
|
2
|
+
import { StaysQuote } from '../StaysTypes';
|
|
3
|
+
import { Resource } from '../../Resource';
|
|
4
|
+
import { DuffelResponse } from '../../types';
|
|
5
|
+
export declare class Quotes extends Resource {
|
|
6
|
+
/**
|
|
7
|
+
* Endpoint path
|
|
8
|
+
*/
|
|
9
|
+
path: string;
|
|
10
|
+
constructor(client: Client);
|
|
11
|
+
/**
|
|
12
|
+
* Create a quote for the selected rate
|
|
13
|
+
* @param {string} rateId - The ID of the rate to create a quote for
|
|
14
|
+
*/
|
|
15
|
+
create: (rateId: string) => Promise<DuffelResponse<StaysQuote>>;
|
|
16
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Quotes';
|
|
1
|
+
export * from './Quotes';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Client } from '../../Client';
|
|
2
|
-
import { StaysSearchResult } from '../StaysTypes';
|
|
3
|
-
import { Resource } from '../../Resource';
|
|
4
|
-
import { DuffelResponse } from '../../types';
|
|
5
|
-
export declare class SearchResults extends Resource {
|
|
6
|
-
/**
|
|
7
|
-
* Endpoint path
|
|
8
|
-
*/
|
|
9
|
-
path: string;
|
|
10
|
-
constructor(client: Client);
|
|
11
|
-
/**
|
|
12
|
-
* Fetch all rates for the given search result
|
|
13
|
-
* @param {string} searchResultId - The ID of the search result to fetch rates for
|
|
14
|
-
*/
|
|
15
|
-
fetchAllRates: (searchResultId: string) => Promise<DuffelResponse<StaysSearchResult>>;
|
|
16
|
-
}
|
|
1
|
+
import { Client } from '../../Client';
|
|
2
|
+
import { StaysSearchResult } from '../StaysTypes';
|
|
3
|
+
import { Resource } from '../../Resource';
|
|
4
|
+
import { DuffelResponse } from '../../types';
|
|
5
|
+
export declare class SearchResults extends Resource {
|
|
6
|
+
/**
|
|
7
|
+
* Endpoint path
|
|
8
|
+
*/
|
|
9
|
+
path: string;
|
|
10
|
+
constructor(client: Client);
|
|
11
|
+
/**
|
|
12
|
+
* Fetch all rates for the given search result
|
|
13
|
+
* @param {string} searchResultId - The ID of the search result to fetch rates for
|
|
14
|
+
*/
|
|
15
|
+
fetchAllRates: (searchResultId: string) => Promise<DuffelResponse<StaysSearchResult>>;
|
|
16
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './SearchResults';
|
|
1
|
+
export * from './SearchResults';
|
package/dist/Stays/Stays.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { Client } from '../Client';
|
|
2
|
-
import { StaysSearchParams, StaysSearchResult } from './StaysTypes';
|
|
3
|
-
import { Resource } from '../Resource';
|
|
4
|
-
import { DuffelResponse } from '../types';
|
|
5
|
-
import { Bookings } from './Bookings';
|
|
6
|
-
import { Quotes } from './Quotes';
|
|
7
|
-
import { SearchResults } from './SearchResults';
|
|
8
|
-
export declare class Stays extends Resource {
|
|
9
|
-
/**
|
|
10
|
-
* Endpoint path
|
|
11
|
-
*/
|
|
12
|
-
path: string;
|
|
13
|
-
searchResults: SearchResults;
|
|
14
|
-
quotes: Quotes;
|
|
15
|
-
bookings: Bookings;
|
|
16
|
-
constructor(client: Client);
|
|
17
|
-
/**
|
|
18
|
-
* Search for accommodations
|
|
19
|
-
* @param {object} params - The search parameters
|
|
20
|
-
*/
|
|
21
|
-
search: (params: StaysSearchParams) => Promise<DuffelResponse<StaysSearchResult>>;
|
|
22
|
-
}
|
|
1
|
+
import { Client } from '../Client';
|
|
2
|
+
import { StaysSearchParams, StaysSearchResult } from './StaysTypes';
|
|
3
|
+
import { Resource } from '../Resource';
|
|
4
|
+
import { DuffelResponse } from '../types';
|
|
5
|
+
import { Bookings } from './Bookings';
|
|
6
|
+
import { Quotes } from './Quotes';
|
|
7
|
+
import { SearchResults } from './SearchResults';
|
|
8
|
+
export declare class Stays extends Resource {
|
|
9
|
+
/**
|
|
10
|
+
* Endpoint path
|
|
11
|
+
*/
|
|
12
|
+
path: string;
|
|
13
|
+
searchResults: SearchResults;
|
|
14
|
+
quotes: Quotes;
|
|
15
|
+
bookings: Bookings;
|
|
16
|
+
constructor(client: Client);
|
|
17
|
+
/**
|
|
18
|
+
* Search for accommodations
|
|
19
|
+
* @param {object} params - The search parameters
|
|
20
|
+
*/
|
|
21
|
+
search: (params: StaysSearchParams) => Promise<DuffelResponse<StaysSearchResult>>;
|
|
22
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|