@tapline/client 0.2.18 → 0.2.20
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/README.md +2 -0
- package/dist/cjs/client.d.ts +2 -0
- package/dist/cjs/client.d.ts.map +1 -1
- package/dist/cjs/client.js +3 -0
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +5 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/account/client.d.ts +9 -0
- package/dist/cjs/services/account/client.d.ts.map +1 -0
- package/dist/cjs/services/account/client.js +16 -0
- package/dist/cjs/services/account/client.js.map +1 -0
- package/dist/cjs/services/account/index.d.ts +3 -0
- package/dist/cjs/services/account/index.d.ts.map +1 -0
- package/dist/cjs/services/account/index.js +22 -0
- package/dist/cjs/services/account/index.js.map +1 -0
- package/dist/cjs/services/account/types.d.ts +24 -0
- package/dist/cjs/services/account/types.d.ts.map +1 -0
- package/dist/cjs/services/account/types.js +4 -0
- package/dist/cjs/services/account/types.js.map +1 -0
- package/dist/cjs/services/airbnb/types.d.ts +153 -153
- package/dist/cjs/services/airbnb/types.d.ts.map +1 -1
- package/dist/cjs/services/birdeye/client.d.ts +1 -1
- package/dist/cjs/services/birdeye/client.d.ts.map +1 -1
- package/dist/cjs/services/birdeye/client.js +1 -1
- package/dist/cjs/services/birdeye/client.js.map +1 -1
- package/dist/cjs/services/birdeye/types.d.ts +76 -74
- package/dist/cjs/services/birdeye/types.d.ts.map +1 -1
- package/dist/cjs/services/brave_search/types.d.ts +1 -1
- package/dist/cjs/services/brave_search/types.d.ts.map +1 -1
- package/dist/cjs/services/expedia/types.d.ts +232 -232
- package/dist/cjs/services/expedia/types.d.ts.map +1 -1
- package/dist/cjs/services/facebook/types.d.ts +1 -1
- package/dist/cjs/services/facebook/types.d.ts.map +1 -1
- package/dist/cjs/services/facebook_ad_library/types.d.ts +1 -1
- package/dist/cjs/services/facebook_ad_library/types.d.ts.map +1 -1
- package/dist/cjs/services/facebook_marketplace/types.d.ts +1 -1
- package/dist/cjs/services/facebook_marketplace/types.d.ts.map +1 -1
- package/dist/cjs/services/geckoterminal/types.d.ts +1 -1
- package/dist/cjs/services/geckoterminal/types.d.ts.map +1 -1
- package/dist/cjs/services/gmgn/client.d.ts +2 -2
- package/dist/cjs/services/gmgn/client.d.ts.map +1 -1
- package/dist/cjs/services/gmgn/client.js +2 -2
- package/dist/cjs/services/gmgn/client.js.map +1 -1
- package/dist/cjs/services/gmgn/types.d.ts +2 -2
- package/dist/cjs/services/gmgn/types.d.ts.map +1 -1
- package/dist/cjs/services/google_maps/types.d.ts +1 -1
- package/dist/cjs/services/google_maps/types.d.ts.map +1 -1
- package/dist/cjs/services/goplus/types.d.ts +22 -22
- package/dist/cjs/services/goplus/types.d.ts.map +1 -1
- package/dist/cjs/services/imovelweb/types.d.ts +1 -1
- package/dist/cjs/services/imovelweb/types.d.ts.map +1 -1
- package/dist/cjs/services/indeed/types.d.ts +1 -1
- package/dist/cjs/services/indeed/types.d.ts.map +1 -1
- package/dist/cjs/services/instagram/types.d.ts +1 -1
- package/dist/cjs/services/instagram/types.d.ts.map +1 -1
- package/dist/cjs/services/linkedin/types.d.ts +103 -103
- package/dist/cjs/services/linkedin/types.d.ts.map +1 -1
- package/dist/cjs/services/pinterest/types.d.ts +1 -1
- package/dist/cjs/services/pinterest/types.d.ts.map +1 -1
- package/dist/cjs/services/pinterest_v2/types.d.ts +1 -1
- package/dist/cjs/services/pinterest_v2/types.d.ts.map +1 -1
- package/dist/cjs/services/ponsfamily/types.d.ts +1 -1
- package/dist/cjs/services/ponsfamily/types.d.ts.map +1 -1
- package/dist/cjs/services/pumpfun/types.d.ts +22 -17
- package/dist/cjs/services/pumpfun/types.d.ts.map +1 -1
- package/dist/cjs/services/tiktok/types.d.ts +1 -1
- package/dist/cjs/services/tiktok/types.d.ts.map +1 -1
- package/dist/cjs/services/twitter/types.d.ts +82 -82
- package/dist/cjs/services/twitter/types.d.ts.map +1 -1
- package/dist/cjs/services/youtube/types.d.ts +1 -1
- package/dist/cjs/services/youtube/types.d.ts.map +1 -1
- package/dist/cjs/services/zillow/types.d.ts +1 -1
- package/dist/cjs/services/zillow/types.d.ts.map +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/services/account/client.d.ts +9 -0
- package/dist/services/account/client.d.ts.map +1 -0
- package/dist/services/account/client.js +12 -0
- package/dist/services/account/client.js.map +1 -0
- package/dist/services/account/index.d.ts +3 -0
- package/dist/services/account/index.d.ts.map +1 -0
- package/dist/services/account/index.js +4 -0
- package/dist/services/account/index.js.map +1 -0
- package/dist/services/account/types.d.ts +24 -0
- package/dist/services/account/types.d.ts.map +1 -0
- package/dist/services/account/types.js +3 -0
- package/dist/services/account/types.js.map +1 -0
- package/dist/services/airbnb/types.d.ts +153 -153
- package/dist/services/airbnb/types.d.ts.map +1 -1
- package/dist/services/birdeye/client.d.ts +1 -1
- package/dist/services/birdeye/client.d.ts.map +1 -1
- package/dist/services/birdeye/client.js +1 -1
- package/dist/services/birdeye/client.js.map +1 -1
- package/dist/services/birdeye/types.d.ts +76 -74
- package/dist/services/birdeye/types.d.ts.map +1 -1
- package/dist/services/brave_search/types.d.ts +1 -1
- package/dist/services/brave_search/types.d.ts.map +1 -1
- package/dist/services/expedia/types.d.ts +232 -232
- package/dist/services/expedia/types.d.ts.map +1 -1
- package/dist/services/facebook/types.d.ts +1 -1
- package/dist/services/facebook/types.d.ts.map +1 -1
- package/dist/services/facebook_ad_library/types.d.ts +1 -1
- package/dist/services/facebook_ad_library/types.d.ts.map +1 -1
- package/dist/services/facebook_marketplace/types.d.ts +1 -1
- package/dist/services/facebook_marketplace/types.d.ts.map +1 -1
- package/dist/services/geckoterminal/types.d.ts +1 -1
- package/dist/services/geckoterminal/types.d.ts.map +1 -1
- package/dist/services/gmgn/client.d.ts +2 -2
- package/dist/services/gmgn/client.d.ts.map +1 -1
- package/dist/services/gmgn/client.js +2 -2
- package/dist/services/gmgn/client.js.map +1 -1
- package/dist/services/gmgn/types.d.ts +2 -2
- package/dist/services/gmgn/types.d.ts.map +1 -1
- package/dist/services/google_maps/types.d.ts +1 -1
- package/dist/services/google_maps/types.d.ts.map +1 -1
- package/dist/services/goplus/types.d.ts +22 -22
- package/dist/services/goplus/types.d.ts.map +1 -1
- package/dist/services/imovelweb/types.d.ts +1 -1
- package/dist/services/imovelweb/types.d.ts.map +1 -1
- package/dist/services/indeed/types.d.ts +1 -1
- package/dist/services/indeed/types.d.ts.map +1 -1
- package/dist/services/instagram/types.d.ts +1 -1
- package/dist/services/instagram/types.d.ts.map +1 -1
- package/dist/services/linkedin/types.d.ts +103 -103
- package/dist/services/linkedin/types.d.ts.map +1 -1
- package/dist/services/pinterest/types.d.ts +1 -1
- package/dist/services/pinterest/types.d.ts.map +1 -1
- package/dist/services/pinterest_v2/types.d.ts +1 -1
- package/dist/services/pinterest_v2/types.d.ts.map +1 -1
- package/dist/services/ponsfamily/types.d.ts +1 -1
- package/dist/services/ponsfamily/types.d.ts.map +1 -1
- package/dist/services/pumpfun/types.d.ts +22 -17
- package/dist/services/pumpfun/types.d.ts.map +1 -1
- package/dist/services/tiktok/types.d.ts +1 -1
- package/dist/services/tiktok/types.d.ts.map +1 -1
- package/dist/services/twitter/types.d.ts +82 -82
- package/dist/services/twitter/types.d.ts.map +1 -1
- package/dist/services/youtube/types.d.ts +1 -1
- package/dist/services/youtube/types.d.ts.map +1 -1
- package/dist/services/zillow/types.d.ts +1 -1
- package/dist/services/zillow/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
export interface ErrorDetail {
|
|
2
|
-
|
|
3
|
-
input?: unknown | null;
|
|
2
|
+
type?: string | null;
|
|
4
3
|
loc?: (string | number)[] | null;
|
|
5
4
|
msg?: string | null;
|
|
6
|
-
|
|
5
|
+
input?: unknown | null;
|
|
6
|
+
ctx?: Record<string, unknown> | null;
|
|
7
7
|
}
|
|
8
8
|
export interface ErrorResponse {
|
|
9
9
|
code: PublicError;
|
|
10
|
-
details?: ErrorDetail[] | null;
|
|
11
|
-
domain?: string | null;
|
|
12
10
|
message: string;
|
|
13
11
|
request_id: string;
|
|
12
|
+
domain?: string | null;
|
|
13
|
+
details?: ErrorDetail[] | null;
|
|
14
14
|
upgrade_url?: string | null;
|
|
15
15
|
}
|
|
16
16
|
export interface ExpediaAccessibilityGroup {
|
|
17
|
-
items: string[];
|
|
18
17
|
section: string | null;
|
|
18
|
+
items: string[];
|
|
19
19
|
}
|
|
20
20
|
export interface ExpediaActivitiesPage {
|
|
21
|
-
activities: ExpediaActivityCard[];
|
|
22
|
-
end_date: string;
|
|
23
|
-
pagination: ExpediaCursorPagination;
|
|
24
21
|
region_id: string;
|
|
25
22
|
start_date: string;
|
|
23
|
+
end_date: string;
|
|
26
24
|
total_count: number | null;
|
|
25
|
+
activities: ExpediaActivityCard[];
|
|
26
|
+
pagination: ExpediaCursorPagination;
|
|
27
27
|
}
|
|
28
28
|
export interface ExpediaActivity {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
coordinates: ExpediaCoordinates | null;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string | null;
|
|
32
31
|
description: string | null;
|
|
33
32
|
duration: string | null;
|
|
34
|
-
end_date: string | null;
|
|
35
33
|
guest_rating: ExpediaGuestRating;
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
address: string | null;
|
|
35
|
+
coordinates: ExpediaCoordinates | null;
|
|
36
|
+
sections: ExpediaActivitySection[];
|
|
37
|
+
start_date: string | null;
|
|
38
|
+
end_date: string | null;
|
|
39
|
+
available_dates: string[];
|
|
38
40
|
lead_price: ExpediaActivityPrice | null;
|
|
39
|
-
name: string | null;
|
|
40
41
|
offers: ExpediaActivityOffer[];
|
|
42
|
+
images: ExpediaImage[];
|
|
41
43
|
reviews: ExpediaActivityReviews;
|
|
42
|
-
sections: ExpediaActivitySection[];
|
|
43
|
-
start_date: string | null;
|
|
44
44
|
}
|
|
45
45
|
export interface ExpediaActivityCard {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
id: string;
|
|
47
|
+
name: string | null;
|
|
48
|
+
url: string | null;
|
|
48
49
|
duration: string | null;
|
|
49
|
-
|
|
50
|
+
price: ExpediaActivityPrice | null;
|
|
50
51
|
guest_rating: ExpediaGuestRating;
|
|
51
|
-
|
|
52
|
+
free_cancellation: boolean;
|
|
53
|
+
distance: string | null;
|
|
54
|
+
coordinates: ExpediaCoordinates | null;
|
|
52
55
|
image: ExpediaImage | null;
|
|
53
|
-
name: string | null;
|
|
54
56
|
partner: string | null;
|
|
55
|
-
price: ExpediaActivityPrice | null;
|
|
56
|
-
url: string | null;
|
|
57
57
|
}
|
|
58
58
|
export interface ExpediaActivityOffer {
|
|
59
|
-
description: string | null;
|
|
60
59
|
id: string;
|
|
61
60
|
name: string | null;
|
|
61
|
+
description: string | null;
|
|
62
62
|
starts_at: string | null;
|
|
63
63
|
tickets: ExpediaActivityTicket[];
|
|
64
64
|
}
|
|
@@ -68,16 +68,16 @@ export interface ExpediaActivityPrice {
|
|
|
68
68
|
unit: string | null;
|
|
69
69
|
}
|
|
70
70
|
export interface ExpediaActivityReview {
|
|
71
|
-
activity_date: string | null;
|
|
72
71
|
author: string | null;
|
|
73
|
-
location: string | null;
|
|
74
|
-
published_on: string | null;
|
|
75
|
-
rating: number | null;
|
|
76
72
|
text: string | null;
|
|
73
|
+
rating: number | null;
|
|
74
|
+
activity_date: string | null;
|
|
75
|
+
published_on: string | null;
|
|
76
|
+
location: string | null;
|
|
77
77
|
}
|
|
78
78
|
export interface ExpediaActivityReviews {
|
|
79
|
-
items: ExpediaActivityReview[];
|
|
80
79
|
total_count: number | null;
|
|
80
|
+
items: ExpediaActivityReview[];
|
|
81
81
|
}
|
|
82
82
|
export interface ExpediaActivitySection {
|
|
83
83
|
heading: string | null;
|
|
@@ -86,47 +86,47 @@ export interface ExpediaActivitySection {
|
|
|
86
86
|
export type ExpediaActivitySort = "recommended" | "price_low_to_high" | "price_high_to_low" | "discount";
|
|
87
87
|
export interface ExpediaActivityTicket {
|
|
88
88
|
label: string | null;
|
|
89
|
-
price: ExpediaMoney | null;
|
|
90
89
|
restriction: string | null;
|
|
90
|
+
price: ExpediaMoney | null;
|
|
91
91
|
}
|
|
92
92
|
export interface ExpediaAddress {
|
|
93
|
-
city: string | null;
|
|
94
|
-
country_code: string | null;
|
|
95
93
|
line: string | null;
|
|
96
|
-
postal_code: string | null;
|
|
97
|
-
region: string | null;
|
|
98
94
|
street: string | null;
|
|
95
|
+
city: string | null;
|
|
96
|
+
region: string | null;
|
|
97
|
+
postal_code: string | null;
|
|
98
|
+
country_code: string | null;
|
|
99
99
|
}
|
|
100
100
|
export interface ExpediaAirport {
|
|
101
101
|
code: string;
|
|
102
|
-
coordinates: ExpediaCoordinates | null;
|
|
103
|
-
country: string | null;
|
|
104
|
-
country_code: string | null;
|
|
105
102
|
metro_code: string | null;
|
|
103
|
+
type: string | null;
|
|
106
104
|
name: string | null;
|
|
107
105
|
place: string | null;
|
|
106
|
+
country: string | null;
|
|
107
|
+
country_code: string | null;
|
|
108
108
|
region_id: string | null;
|
|
109
|
-
|
|
109
|
+
coordinates: ExpediaCoordinates | null;
|
|
110
110
|
}
|
|
111
111
|
export interface ExpediaAirports {
|
|
112
|
-
airports: ExpediaAirport[];
|
|
113
112
|
query: string;
|
|
113
|
+
airports: ExpediaAirport[];
|
|
114
114
|
}
|
|
115
115
|
export type ExpediaAmenity = "wifi" | "pets" | "gym" | "pool" | "kitchen" | "hot_tub" | "restaurant" | "spa" | "air_conditioning" | "outdoor_space" | "crib" | "washer_dryer" | "ev_charging" | "airport_shuttle";
|
|
116
116
|
export interface ExpediaAmenityGroup {
|
|
117
|
+
section: string | null;
|
|
117
118
|
category: string | null;
|
|
118
119
|
items: string[];
|
|
119
|
-
section: string | null;
|
|
120
120
|
}
|
|
121
121
|
export interface ExpediaCalendarDay {
|
|
122
|
+
date: string;
|
|
123
|
+
price: ExpediaMoney | null;
|
|
124
|
+
price_label: string | null;
|
|
122
125
|
available: boolean | null;
|
|
123
126
|
check_in_status: string | null;
|
|
124
127
|
check_out_status: string | null;
|
|
125
|
-
date: string;
|
|
126
|
-
max_nights: number | null;
|
|
127
128
|
min_nights: number | null;
|
|
128
|
-
|
|
129
|
-
price_label: string | null;
|
|
129
|
+
max_nights: number | null;
|
|
130
130
|
}
|
|
131
131
|
export interface ExpediaCoordinates {
|
|
132
132
|
latitude: number;
|
|
@@ -134,43 +134,43 @@ export interface ExpediaCoordinates {
|
|
|
134
134
|
}
|
|
135
135
|
export type ExpediaCursorCompletion = "exhausted" | "depth_limit";
|
|
136
136
|
export interface ExpediaCursorPagination {
|
|
137
|
-
completion: ExpediaCursorCompletion | null;
|
|
138
137
|
next_cursor: string | null;
|
|
138
|
+
completion: ExpediaCursorCompletion | null;
|
|
139
139
|
}
|
|
140
140
|
export interface ExpediaFareCalendar {
|
|
141
|
-
dates: ExpediaFareDate[];
|
|
142
|
-
departure_date: string;
|
|
143
|
-
destination: string;
|
|
144
141
|
origin: string;
|
|
145
|
-
|
|
142
|
+
destination: string;
|
|
143
|
+
departure_date: string;
|
|
146
144
|
return_date: string | null;
|
|
145
|
+
dates: ExpediaFareDate[];
|
|
146
|
+
prediction: ExpediaPricePrediction | null;
|
|
147
147
|
}
|
|
148
148
|
export interface ExpediaFareDate {
|
|
149
149
|
departure_date: string;
|
|
150
|
-
label: ExpediaFareDateLabel;
|
|
151
|
-
price: ExpediaMoney;
|
|
152
150
|
return_date: string | null;
|
|
151
|
+
price: ExpediaMoney;
|
|
152
|
+
label: ExpediaFareDateLabel;
|
|
153
153
|
}
|
|
154
154
|
export type ExpediaFareDateLabel = "lowest" | "highest" | "searched" | "searched_lowest" | "regular";
|
|
155
155
|
export interface ExpediaFareFeature {
|
|
156
|
+
text: string;
|
|
156
157
|
availability: ExpediaFareFeatureAvailability;
|
|
157
158
|
fee: ExpediaMoney | null;
|
|
158
|
-
text: string;
|
|
159
159
|
}
|
|
160
160
|
export type ExpediaFareFeatureAvailability = "included" | "not_included" | "fee" | "unknown";
|
|
161
161
|
export interface ExpediaFlight {
|
|
162
|
-
airlines: string[];
|
|
163
|
-
arrival: ExpediaFlightEndpoint;
|
|
164
|
-
departure: ExpediaFlightEndpoint;
|
|
165
|
-
duration_minutes: number | null;
|
|
166
|
-
emissions: string | null;
|
|
167
|
-
fares: ExpediaFlightFare[];
|
|
168
|
-
layovers: ExpediaFlightLayover[];
|
|
169
162
|
price: ExpediaMoney | null;
|
|
170
163
|
price_difference: ExpediaMoney | null;
|
|
171
164
|
seats_left: number | null;
|
|
172
|
-
|
|
165
|
+
departure: ExpediaFlightEndpoint;
|
|
166
|
+
arrival: ExpediaFlightEndpoint;
|
|
167
|
+
duration_minutes: number | null;
|
|
173
168
|
stops: number | null;
|
|
169
|
+
airlines: string[];
|
|
170
|
+
emissions: string | null;
|
|
171
|
+
segments: ExpediaFlightSegment[];
|
|
172
|
+
layovers: ExpediaFlightLayover[];
|
|
173
|
+
fares: ExpediaFlightFare[];
|
|
174
174
|
}
|
|
175
175
|
export type ExpediaFlightCabin = "economy" | "premium_economy" | "business" | "first";
|
|
176
176
|
export interface ExpediaFlightEndpoint {
|
|
@@ -178,167 +178,167 @@ export interface ExpediaFlightEndpoint {
|
|
|
178
178
|
airport_name: string | null;
|
|
179
179
|
city: string | null;
|
|
180
180
|
local_time: string | null;
|
|
181
|
-
terminal: string | null;
|
|
182
181
|
timezone: string | null;
|
|
182
|
+
terminal: string | null;
|
|
183
183
|
}
|
|
184
184
|
export interface ExpediaFlightFare {
|
|
185
|
-
cabin: string | null;
|
|
186
|
-
features: ExpediaFareFeature[];
|
|
187
185
|
name: string | null;
|
|
188
|
-
|
|
186
|
+
cabin: string | null;
|
|
189
187
|
price: ExpediaMoney | null;
|
|
190
188
|
price_difference: ExpediaMoney | null;
|
|
191
189
|
total_price: ExpediaMoney | null;
|
|
190
|
+
features: ExpediaFareFeature[];
|
|
191
|
+
next_leg_token: string | null;
|
|
192
192
|
}
|
|
193
193
|
export interface ExpediaFlightLayover {
|
|
194
|
-
airport_name: string | null;
|
|
195
|
-
change_planes: boolean | null;
|
|
196
194
|
city: string | null;
|
|
195
|
+
airport_name: string | null;
|
|
197
196
|
duration_minutes: number | null;
|
|
197
|
+
change_planes: boolean | null;
|
|
198
198
|
}
|
|
199
199
|
export interface ExpediaFlightLeg {
|
|
200
|
-
departure_date: string;
|
|
201
|
-
destination: string;
|
|
202
200
|
origin: string;
|
|
201
|
+
destination: string;
|
|
202
|
+
departure_date: string;
|
|
203
203
|
}
|
|
204
204
|
export interface ExpediaFlightSegment {
|
|
205
|
-
|
|
205
|
+
flight_number: string | null;
|
|
206
206
|
airline: string | null;
|
|
207
207
|
airline_code: string | null;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
booking_code: string | null;
|
|
208
|
+
operated_by: string | null;
|
|
209
|
+
aircraft: string | null;
|
|
211
210
|
cabin: string | null;
|
|
212
|
-
|
|
213
|
-
distance_miles: number | null;
|
|
211
|
+
booking_code: string | null;
|
|
214
212
|
duration_minutes: number | null;
|
|
213
|
+
distance_miles: number | null;
|
|
214
|
+
departure: ExpediaFlightEndpoint;
|
|
215
|
+
arrival: ExpediaFlightEndpoint;
|
|
216
|
+
amenities: string[];
|
|
215
217
|
emissions: string | null;
|
|
216
|
-
flight_number: string | null;
|
|
217
|
-
operated_by: string | null;
|
|
218
218
|
}
|
|
219
219
|
export type ExpediaFlightSort = "recommended" | "price_low_to_high" | "price_high_to_low" | "duration_shortest" | "duration_longest" | "departure_earliest" | "departure_latest" | "arrival_earliest" | "arrival_latest";
|
|
220
220
|
export type ExpediaFlightTimeOfDay = "morning" | "afternoon" | "evening";
|
|
221
221
|
export interface ExpediaFlights {
|
|
222
|
-
flights: ExpediaFlight[];
|
|
223
|
-
leg: number;
|
|
224
|
-
legs: ExpediaFlightLeg[];
|
|
225
222
|
trip_type: ExpediaTripType;
|
|
223
|
+
legs: ExpediaFlightLeg[];
|
|
224
|
+
leg: number;
|
|
225
|
+
flights: ExpediaFlight[];
|
|
226
226
|
}
|
|
227
227
|
export interface ExpediaGuestRating {
|
|
228
|
+
score: number | null;
|
|
228
229
|
label: string | null;
|
|
229
230
|
review_count: number | null;
|
|
230
|
-
score: number | null;
|
|
231
231
|
}
|
|
232
232
|
export type ExpediaGuestRatingFilter = "good_7" | "very_good_8" | "wonderful_9";
|
|
233
233
|
export interface ExpediaHotel {
|
|
234
|
-
accessibility: ExpediaAccessibilityGroup[];
|
|
235
|
-
address: ExpediaAddress;
|
|
236
|
-
amenities: ExpediaAmenityGroup[];
|
|
237
|
-
coordinates: ExpediaCoordinates | null;
|
|
238
|
-
guest_rating: ExpediaGuestRating;
|
|
239
234
|
id: string;
|
|
240
|
-
images: ExpediaImage[];
|
|
241
235
|
name: string | null;
|
|
242
|
-
|
|
243
|
-
|
|
236
|
+
url: string;
|
|
237
|
+
tagline: string | null;
|
|
238
|
+
star_rating: number | null;
|
|
244
239
|
region_id: string | null;
|
|
245
240
|
region_name: string | null;
|
|
241
|
+
address: ExpediaAddress;
|
|
242
|
+
coordinates: ExpediaCoordinates | null;
|
|
243
|
+
neighborhood_description: string | null;
|
|
244
|
+
guest_rating: ExpediaGuestRating;
|
|
246
245
|
review_categories: ExpediaReviewCategory[];
|
|
247
246
|
review_summary: ExpediaReviewSummary | null;
|
|
248
|
-
star_rating: number | null;
|
|
249
|
-
tagline: string | null;
|
|
250
247
|
top_amenities: string[];
|
|
251
|
-
|
|
248
|
+
amenities: ExpediaAmenityGroup[];
|
|
249
|
+
accessibility: ExpediaAccessibilityGroup[];
|
|
250
|
+
policies: ExpediaHotelPolicies;
|
|
251
|
+
images: ExpediaImage[];
|
|
252
252
|
}
|
|
253
253
|
export interface ExpediaHotelActivities {
|
|
254
|
-
activities: ExpediaActivityCard[];
|
|
255
|
-
end_date: string;
|
|
256
254
|
hotel_id: string;
|
|
257
|
-
pagination: ExpediaCursorPagination;
|
|
258
255
|
start_date: string;
|
|
256
|
+
end_date: string;
|
|
259
257
|
total_count: number | null;
|
|
258
|
+
activities: ExpediaActivityCard[];
|
|
259
|
+
pagination: ExpediaCursorPagination;
|
|
260
260
|
}
|
|
261
261
|
export interface ExpediaHotelCalendar {
|
|
262
|
+
hotel_id: string;
|
|
262
263
|
check_in: string | null;
|
|
263
264
|
check_out: string | null;
|
|
264
|
-
days: ExpediaCalendarDay[];
|
|
265
|
-
first_date: string | null;
|
|
266
265
|
has_daily_availability: boolean | null;
|
|
267
|
-
|
|
266
|
+
first_date: string | null;
|
|
268
267
|
last_date: string | null;
|
|
269
|
-
notice: string | null;
|
|
270
268
|
price_note: string | null;
|
|
269
|
+
notice: string | null;
|
|
270
|
+
days: ExpediaCalendarDay[];
|
|
271
271
|
}
|
|
272
272
|
export interface ExpediaHotelCard {
|
|
273
|
-
badges: string[];
|
|
274
|
-
coordinates: ExpediaCoordinates | null;
|
|
275
|
-
guest_rating: ExpediaGuestRating;
|
|
276
273
|
id: string;
|
|
277
|
-
images: ExpediaImage[];
|
|
278
274
|
name: string | null;
|
|
279
|
-
price: ExpediaHotelPrice | null;
|
|
280
|
-
subtitles: string[];
|
|
281
275
|
url: string;
|
|
276
|
+
subtitles: string[];
|
|
277
|
+
guest_rating: ExpediaGuestRating;
|
|
278
|
+
price: ExpediaHotelPrice | null;
|
|
279
|
+
badges: string[];
|
|
280
|
+
images: ExpediaImage[];
|
|
281
|
+
coordinates: ExpediaCoordinates | null;
|
|
282
282
|
}
|
|
283
283
|
export interface ExpediaHotelPolicies {
|
|
284
284
|
check_in_instructions: string[];
|
|
285
285
|
check_out_time: string | null;
|
|
286
|
+
pets: string[];
|
|
286
287
|
children_and_extra_beds: string[];
|
|
287
288
|
need_to_know: string[];
|
|
288
|
-
pets: string[];
|
|
289
289
|
should_mention: string[];
|
|
290
290
|
}
|
|
291
291
|
export interface ExpediaHotelPrice {
|
|
292
|
+
total: ExpediaMoney;
|
|
292
293
|
nightly: ExpediaMoney | null;
|
|
293
294
|
strikethrough: ExpediaMoney | null;
|
|
294
|
-
total: ExpediaMoney;
|
|
295
295
|
}
|
|
296
296
|
export interface ExpediaHotelReviews {
|
|
297
297
|
hotel_id: string;
|
|
298
|
-
pagination: ExpediaCursorPagination;
|
|
299
|
-
reviews: ExpediaReview[];
|
|
300
298
|
total_count: number | null;
|
|
299
|
+
reviews: ExpediaReview[];
|
|
300
|
+
pagination: ExpediaCursorPagination;
|
|
301
301
|
}
|
|
302
302
|
export interface ExpediaHotelRooms {
|
|
303
|
-
|
|
303
|
+
hotel_id: string;
|
|
304
|
+
region_id: string | null;
|
|
304
305
|
check_in: string;
|
|
305
306
|
check_out: string;
|
|
307
|
+
adults: number;
|
|
306
308
|
children_ages: number[];
|
|
307
|
-
hotel_id: string;
|
|
308
309
|
price_insight: ExpediaPriceInsight | null;
|
|
309
|
-
region_id: string | null;
|
|
310
310
|
rooms: ExpediaRoom[];
|
|
311
311
|
}
|
|
312
312
|
export type ExpediaHotelSort = "recommended" | "price_low_to_high" | "price_high_to_low" | "star_rating";
|
|
313
313
|
export interface ExpediaHotelsPage {
|
|
314
|
+
region_id: string;
|
|
314
315
|
check_in: string;
|
|
315
316
|
check_out: string;
|
|
317
|
+
total_count: number | null;
|
|
316
318
|
hotels: ExpediaHotelCard[];
|
|
317
319
|
pagination: ExpediaCursorPagination;
|
|
318
|
-
region_id: string;
|
|
319
|
-
total_count: number | null;
|
|
320
320
|
}
|
|
321
321
|
export interface ExpediaImage {
|
|
322
|
-
caption: string | null;
|
|
323
322
|
url: string;
|
|
323
|
+
caption: string | null;
|
|
324
324
|
}
|
|
325
325
|
export interface ExpediaLocation {
|
|
326
|
-
airport_code: string | null;
|
|
327
|
-
coordinates: ExpediaCoordinates | null;
|
|
328
|
-
country: string | null;
|
|
329
|
-
country_code: string | null;
|
|
330
|
-
full_name: string | null;
|
|
331
|
-
name: string | null;
|
|
332
326
|
region_id: string;
|
|
333
327
|
type: string | null;
|
|
328
|
+
name: string | null;
|
|
329
|
+
full_name: string | null;
|
|
330
|
+
country: string | null;
|
|
331
|
+
country_code: string | null;
|
|
332
|
+
airport_code: string | null;
|
|
333
|
+
coordinates: ExpediaCoordinates | null;
|
|
334
334
|
}
|
|
335
335
|
export interface ExpediaLocations {
|
|
336
|
-
locations: ExpediaLocation[];
|
|
337
336
|
query: string;
|
|
337
|
+
locations: ExpediaLocation[];
|
|
338
338
|
}
|
|
339
339
|
export interface ExpediaManagementResponse {
|
|
340
|
-
text: string;
|
|
341
340
|
title: string | null;
|
|
341
|
+
text: string;
|
|
342
342
|
}
|
|
343
343
|
export type ExpediaMealPlan = "breakfast" | "lunch" | "dinner" | "all_inclusive";
|
|
344
344
|
export interface ExpediaMoney {
|
|
@@ -348,55 +348,55 @@ export interface ExpediaMoney {
|
|
|
348
348
|
}
|
|
349
349
|
export interface ExpediaPriceInsight {
|
|
350
350
|
label: string | null;
|
|
351
|
-
price_text: string | null;
|
|
352
351
|
summary: string | null;
|
|
353
|
-
|
|
352
|
+
price_text: string | null;
|
|
354
353
|
typical_min: ExpediaMoney | null;
|
|
354
|
+
typical_max: ExpediaMoney | null;
|
|
355
355
|
}
|
|
356
356
|
export interface ExpediaPricePoint {
|
|
357
357
|
date: string;
|
|
358
358
|
price: ExpediaMoney;
|
|
359
359
|
}
|
|
360
360
|
export interface ExpediaPricePrediction {
|
|
361
|
-
average_price: ExpediaMoney | null;
|
|
362
|
-
detail: string | null;
|
|
363
|
-
forecast: ExpediaPricePoint[];
|
|
364
|
-
headline: string | null;
|
|
365
|
-
history: ExpediaPricePoint[];
|
|
366
|
-
lowest_predicted_on: string | null;
|
|
367
|
-
lowest_predicted_price: ExpediaMoney | null;
|
|
368
361
|
summary: string | null;
|
|
362
|
+
headline: string | null;
|
|
363
|
+
detail: string | null;
|
|
369
364
|
trend: string | null;
|
|
365
|
+
lowest_predicted_price: ExpediaMoney | null;
|
|
366
|
+
lowest_predicted_on: string | null;
|
|
367
|
+
average_price: ExpediaMoney | null;
|
|
368
|
+
history: ExpediaPricePoint[];
|
|
369
|
+
forecast: ExpediaPricePoint[];
|
|
370
370
|
}
|
|
371
371
|
export type ExpediaPropertyType = "hotel" | "motel" | "hostel" | "aparthotel" | "bed_and_breakfast" | "resort" | "lodge" | "villa" | "guesthouse" | "vacation_home" | "cabin" | "cottage" | "farm" | "rv";
|
|
372
372
|
export interface ExpediaRatePlan {
|
|
373
|
-
cancellation_policy: string[];
|
|
374
|
-
extras: string | null;
|
|
375
373
|
id: string;
|
|
374
|
+
extras: string | null;
|
|
375
|
+
cancellation_policy: string[];
|
|
376
376
|
prices: ExpediaRatePrice[];
|
|
377
377
|
scarcity_message: string | null;
|
|
378
378
|
}
|
|
379
379
|
export interface ExpediaRatePrice {
|
|
380
|
+
total: ExpediaMoney;
|
|
380
381
|
nightly: ExpediaMoney | null;
|
|
382
|
+
strikethrough: ExpediaMoney | null;
|
|
381
383
|
payment_model: string | null;
|
|
382
384
|
requires_credit_card: boolean | null;
|
|
383
|
-
strikethrough: ExpediaMoney | null;
|
|
384
|
-
total: ExpediaMoney;
|
|
385
385
|
}
|
|
386
386
|
export interface ExpediaReview {
|
|
387
|
-
author: string | null;
|
|
388
|
-
disliked: string[];
|
|
389
387
|
id: string;
|
|
390
|
-
liked: string[];
|
|
391
|
-
management_responses: ExpediaManagementResponse[];
|
|
392
|
-
photos: ExpediaImage[];
|
|
393
|
-
published_on: string | null;
|
|
394
388
|
rating: number | null;
|
|
395
389
|
rating_label: string | null;
|
|
396
|
-
stay: string | null;
|
|
397
|
-
text: string | null;
|
|
398
390
|
title: string | null;
|
|
391
|
+
text: string | null;
|
|
392
|
+
published_on: string | null;
|
|
393
|
+
stay: string | null;
|
|
394
|
+
author: string | null;
|
|
399
395
|
traveler_types: string[];
|
|
396
|
+
liked: string[];
|
|
397
|
+
disliked: string[];
|
|
398
|
+
photos: ExpediaImage[];
|
|
399
|
+
management_responses: ExpediaManagementResponse[];
|
|
400
400
|
}
|
|
401
401
|
export interface ExpediaReviewCategory {
|
|
402
402
|
name: string;
|
|
@@ -404,22 +404,22 @@ export interface ExpediaReviewCategory {
|
|
|
404
404
|
}
|
|
405
405
|
export type ExpediaReviewSort = "most_relevant" | "most_recent" | "highest_rating" | "lowest_rating";
|
|
406
406
|
export interface ExpediaReviewSummary {
|
|
407
|
-
note: string | null;
|
|
408
407
|
sections: ExpediaReviewSummarySection[];
|
|
408
|
+
note: string | null;
|
|
409
409
|
}
|
|
410
410
|
export interface ExpediaReviewSummarySection {
|
|
411
411
|
heading: string | null;
|
|
412
412
|
themes: ExpediaReviewTheme[];
|
|
413
413
|
}
|
|
414
414
|
export interface ExpediaReviewTheme {
|
|
415
|
-
review_count: number | null;
|
|
416
415
|
text: string;
|
|
416
|
+
review_count: number | null;
|
|
417
417
|
}
|
|
418
418
|
export interface ExpediaRoom {
|
|
419
|
-
features: string[];
|
|
420
419
|
id: string;
|
|
421
|
-
images: ExpediaImage[];
|
|
422
420
|
name: string | null;
|
|
421
|
+
features: string[];
|
|
422
|
+
images: ExpediaImage[];
|
|
423
423
|
rate_plans: ExpediaRatePlan[];
|
|
424
424
|
}
|
|
425
425
|
export type ExpediaTravelerType = "all" | "business" | "couples" | "families" | "families_with_young_children" | "groups" | "solo" | "with_pets";
|
|
@@ -427,188 +427,188 @@ export type ExpediaTripType = "one_way" | "round_trip" | "multi_city";
|
|
|
427
427
|
export interface GetActivityParams {
|
|
428
428
|
/** Activity ID from an activities result or the number after `.a` in an Expedia URL. */
|
|
429
429
|
activity_id: string;
|
|
430
|
-
/** Last day, on or after `start_date`. */
|
|
431
|
-
end_date?: string | null;
|
|
432
430
|
/** First day for availability and prices. Send with `end_date`. */
|
|
433
431
|
start_date?: string | null;
|
|
432
|
+
/** Last day, on or after `start_date`. */
|
|
433
|
+
end_date?: string | null;
|
|
434
434
|
}
|
|
435
435
|
export interface GetFareCalendarParams {
|
|
436
|
-
/** Cabin class. */
|
|
437
|
-
cabin?: ExpediaFlightCabin;
|
|
438
|
-
/** Departure date. Must be today or within 330 days. */
|
|
439
|
-
departure_date: string;
|
|
440
|
-
/** IATA airport or city code from `/v1/expedia/flights/airports`, such as `JFK` or `NYC`. */
|
|
441
|
-
destination: string;
|
|
442
436
|
/** IATA airport or city code from `/v1/expedia/flights/airports`, such as `JFK` or `NYC`. */
|
|
443
437
|
origin: string;
|
|
438
|
+
/** IATA airport or city code from `/v1/expedia/flights/airports`, such as `JFK` or `NYC`. */
|
|
439
|
+
destination: string;
|
|
440
|
+
/** Departure date. Must be today or within 330 days. */
|
|
441
|
+
departure_date: string;
|
|
444
442
|
/** Return date for a round trip, on or after the departure date. Leave out for one way. */
|
|
445
443
|
return_date?: string | null;
|
|
444
|
+
/** Cabin class. */
|
|
445
|
+
cabin?: ExpediaFlightCabin;
|
|
446
446
|
}
|
|
447
447
|
export interface GetHotelCalendarParams {
|
|
448
|
+
/** Hotel ID from a `/hotels` result or the number after `.h` in an Expedia URL. */
|
|
449
|
+
hotel_id: string;
|
|
448
450
|
/** Start of a stay. Moves the window only when it lies past the default range. */
|
|
449
451
|
check_in?: string | null;
|
|
450
452
|
/** Check-out date, up to 28 nights later. */
|
|
451
453
|
check_out?: string | null;
|
|
452
|
-
/** Hotel ID from a `/hotels` result or the number after `.h` in an Expedia URL. */
|
|
453
|
-
hotel_id: string;
|
|
454
454
|
}
|
|
455
455
|
export interface GetHotelParams {
|
|
456
456
|
/** Hotel ID from a `/hotels` result or the number after `.h` in an Expedia URL. */
|
|
457
457
|
hotel_id: string;
|
|
458
458
|
}
|
|
459
459
|
export interface ListHotelActivitiesParams {
|
|
460
|
-
/** Previous response's `pagination.next_cursor`. Keep all other parameters unchanged. */
|
|
461
|
-
cursor?: string;
|
|
462
|
-
/** Last day, on or after `start_date`. */
|
|
463
|
-
end_date: string;
|
|
464
460
|
/** Hotel ID from a `/hotels` result or the number after `.h` in an Expedia URL. */
|
|
465
461
|
hotel_id: string;
|
|
466
462
|
/** Activity order. */
|
|
467
463
|
sort?: ExpediaActivitySort;
|
|
464
|
+
/** Previous response's `pagination.next_cursor`. Keep all other parameters unchanged. */
|
|
465
|
+
cursor?: string;
|
|
468
466
|
/** First day. Today or within 500 days. */
|
|
469
467
|
start_date: string;
|
|
468
|
+
/** Last day, on or after `start_date`. */
|
|
469
|
+
end_date: string;
|
|
470
470
|
}
|
|
471
471
|
export interface ListHotelReviewsParams {
|
|
472
|
-
/** Previous response's `pagination.next_cursor`. Keep all other parameters unchanged. */
|
|
473
|
-
cursor?: string;
|
|
474
472
|
/** Hotel ID from a `/hotels` result or the number after `.h` in an Expedia URL. */
|
|
475
473
|
hotel_id: string;
|
|
476
474
|
/** Review order. */
|
|
477
475
|
sort?: ExpediaReviewSort;
|
|
478
476
|
/** Only reviews from this kind of traveler. */
|
|
479
477
|
traveler_type?: ExpediaTravelerType;
|
|
478
|
+
/** Previous response's `pagination.next_cursor`. Keep all other parameters unchanged. */
|
|
479
|
+
cursor?: string;
|
|
480
480
|
}
|
|
481
481
|
export interface ListHotelRoomsParams {
|
|
482
|
-
/**
|
|
483
|
-
|
|
482
|
+
/** Hotel ID from a `/hotels` result or the number after `.h` in an Expedia URL. */
|
|
483
|
+
hotel_id: string;
|
|
484
|
+
/** The hotel's `region_id`, from `/hotels/{hotel_id}`. Needed for `price_insight`. */
|
|
485
|
+
region_id?: string | null;
|
|
484
486
|
/** Check-in date. Must be today or within 500 days. */
|
|
485
487
|
check_in: string;
|
|
486
488
|
/** Check-out date. Stays can be up to 28 nights. */
|
|
487
489
|
check_out: string;
|
|
490
|
+
/** Number of adults. */
|
|
491
|
+
adults?: number;
|
|
488
492
|
/** Child age, 0 to 17. Repeat once per child, up to 6. */
|
|
489
493
|
children_ages?: number[] | null;
|
|
490
|
-
/** Hotel ID from a `/hotels` result or the number after `.h` in an Expedia URL. */
|
|
491
|
-
hotel_id: string;
|
|
492
|
-
/** The hotel's `region_id`, from `/hotels/{hotel_id}`. Needed for `price_insight`. */
|
|
493
|
-
region_id?: string | null;
|
|
494
494
|
}
|
|
495
|
-
export type PublicError = "blocked" | "concurrency_exceeded" | "timeout" | "extraction_failed" | "upstream_blocked" | "upstream_unavailable" | "upstream_response_invalid" | "invalid_url_scheme" | "invalid_url_host" | "unauthenticated" | "forbidden" | "resource_forbidden" | "not_found" | "endpoint_retired" | "rate_limited" | "invalid_request" | "invalid_cursor" | "insufficient_credits" | "internal_error";
|
|
495
|
+
export type PublicError = "blocked" | "concurrency_exceeded" | "timeout" | "extraction_failed" | "upstream_blocked" | "upstream_unavailable" | "upstream_response_invalid" | "invalid_url_scheme" | "invalid_url_host" | "unauthenticated" | "forbidden" | "resource_forbidden" | "not_found" | "endpoint_retired" | "rate_limited" | "invalid_request" | "invalid_cursor" | "insufficient_credits" | "internal_error" | "demo_input_not_allowed" | "turnstile_failed" | "turnstile_unavailable";
|
|
496
496
|
export interface SearchActivitiesParams {
|
|
497
|
-
/** Previous response's `pagination.next_cursor`. Keep all other parameters unchanged. */
|
|
498
|
-
cursor?: string;
|
|
499
|
-
/** Last day, on or after `start_date`. */
|
|
500
|
-
end_date: string;
|
|
501
497
|
/** `region_id` from `/v1/expedia/locations`. */
|
|
502
498
|
region_id: string;
|
|
503
499
|
/** Activity order. */
|
|
504
500
|
sort?: ExpediaActivitySort;
|
|
501
|
+
/** Previous response's `pagination.next_cursor`. Keep all other parameters unchanged. */
|
|
502
|
+
cursor?: string;
|
|
505
503
|
/** First day. Today or within 500 days. */
|
|
506
504
|
start_date: string;
|
|
505
|
+
/** Last day, on or after `start_date`. */
|
|
506
|
+
end_date: string;
|
|
507
507
|
}
|
|
508
508
|
export interface SearchAirportsParams {
|
|
509
|
-
/** Suggestions to return. */
|
|
510
|
-
limit?: number;
|
|
511
509
|
/** Place name, such as `new york`. */
|
|
512
510
|
query: string;
|
|
511
|
+
/** Suggestions to return. */
|
|
512
|
+
limit?: number;
|
|
513
513
|
}
|
|
514
514
|
export interface SearchFlightsParams {
|
|
515
|
-
/**
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
|
|
515
|
+
/** IATA airport or city code from `/v1/expedia/flights/airports`, such as `JFK` or `NYC`. */
|
|
516
|
+
origin: string;
|
|
517
|
+
/** IATA airport or city code from `/v1/expedia/flights/airports`, such as `JFK` or `NYC`. */
|
|
518
|
+
destination: string;
|
|
519
|
+
/** Departure date. Must be today or within 330 days. */
|
|
520
|
+
departure_date: string;
|
|
521
|
+
/** Return date for a round trip, on or after the departure date. Leave out for one way. */
|
|
522
|
+
return_date?: string | null;
|
|
519
523
|
/** Cabin class. */
|
|
520
524
|
cabin?: ExpediaFlightCabin;
|
|
525
|
+
/** Number of adults. */
|
|
526
|
+
adults?: number;
|
|
521
527
|
/** Child age, 2 to 17. Repeat once per child. */
|
|
522
528
|
children_ages?: number[] | null;
|
|
523
|
-
/** Departure date. Must be today or within 330 days. */
|
|
524
|
-
departure_date: string;
|
|
525
|
-
/** Departure time of day, in the origin's time zone. */
|
|
526
|
-
departure_time?: ExpediaFlightTimeOfDay | null;
|
|
527
|
-
/** IATA airport or city code from `/v1/expedia/flights/airports`, such as `JFK` or `NYC`. */
|
|
528
|
-
destination: string;
|
|
529
529
|
/** Infants under 2 on an adult's lap, at most one per adult. */
|
|
530
530
|
infants_in_lap?: number;
|
|
531
|
+
/** Sort order. */
|
|
532
|
+
sort?: ExpediaFlightSort;
|
|
531
533
|
/** `0` for nonstop only, `1` for at most one stop. */
|
|
532
534
|
max_stops?: number | null;
|
|
533
|
-
/**
|
|
534
|
-
|
|
535
|
+
/** Only flights marketed by this airline, a two-letter code such as `DL`. Repeat for up to 10. */
|
|
536
|
+
airlines?: string[] | null;
|
|
537
|
+
/** Departure time of day, in the origin's time zone. */
|
|
538
|
+
departure_time?: ExpediaFlightTimeOfDay | null;
|
|
535
539
|
/** Only refundable fares. */
|
|
536
540
|
refundable?: boolean;
|
|
537
|
-
/** Return date for a round trip, on or after the departure date. Leave out for one way. */
|
|
538
|
-
return_date?: string | null;
|
|
539
|
-
/** Sort order. */
|
|
540
|
-
sort?: ExpediaFlightSort;
|
|
541
541
|
}
|
|
542
542
|
export interface SearchHotelsParams {
|
|
543
|
-
/** Number of adults. */
|
|
544
|
-
adults?: number;
|
|
545
|
-
/** Required amenities. Hotels must have every selected value. */
|
|
546
|
-
amenities?: ExpediaAmenity[] | null;
|
|
547
|
-
/** Check-in date. Must be today or within 500 days. */
|
|
548
|
-
check_in: string;
|
|
549
|
-
/** Check-out date. Stays can be up to 28 nights. */
|
|
550
|
-
check_out: string;
|
|
551
|
-
/** Child age, 0 to 17. Repeat once per child, up to 6. */
|
|
552
|
-
children_ages?: number[] | null;
|
|
553
543
|
/** Previous response's `pagination.next_cursor`. Keep all other parameters unchanged. */
|
|
554
544
|
cursor?: string;
|
|
555
|
-
/** Minimum guest rating. */
|
|
556
|
-
guest_rating?: ExpediaGuestRatingFilter | null;
|
|
557
|
-
/** Highest nightly price in USD. */
|
|
558
|
-
max_price?: number | null;
|
|
559
|
-
/** Required meal plans. Hotels must offer every selected value. */
|
|
560
|
-
meal_plans?: ExpediaMealPlan[] | null;
|
|
561
|
-
/** Lowest nightly price in USD. */
|
|
562
|
-
min_price?: number | null;
|
|
563
|
-
/** Property types. `vacation_home` means private homes. */
|
|
564
|
-
property_types?: ExpediaPropertyType[] | null;
|
|
565
545
|
/** `region_id` from `/v1/expedia/locations`. */
|
|
566
546
|
region_id: string;
|
|
567
547
|
/** Sort order. Price sorts use the stay total, including taxes. */
|
|
568
548
|
sort?: ExpediaHotelSort;
|
|
549
|
+
/** Lowest nightly price in USD. */
|
|
550
|
+
min_price?: number | null;
|
|
551
|
+
/** Highest nightly price in USD. */
|
|
552
|
+
max_price?: number | null;
|
|
569
553
|
/** Hotel star ratings, 1 to 5. Repeat to include more than one. */
|
|
570
554
|
star_ratings?: number[] | null;
|
|
555
|
+
/** Minimum guest rating. */
|
|
556
|
+
guest_rating?: ExpediaGuestRatingFilter | null;
|
|
557
|
+
/** Property types. `vacation_home` means private homes. */
|
|
558
|
+
property_types?: ExpediaPropertyType[] | null;
|
|
559
|
+
/** Required amenities. Hotels must have every selected value. */
|
|
560
|
+
amenities?: ExpediaAmenity[] | null;
|
|
561
|
+
/** Required meal plans. Hotels must offer every selected value. */
|
|
562
|
+
meal_plans?: ExpediaMealPlan[] | null;
|
|
563
|
+
/** Check-in date. Must be today or within 500 days. */
|
|
564
|
+
check_in: string;
|
|
565
|
+
/** Check-out date. Stays can be up to 28 nights. */
|
|
566
|
+
check_out: string;
|
|
567
|
+
/** Number of adults. */
|
|
568
|
+
adults?: number;
|
|
569
|
+
/** Child age, 0 to 17. Repeat once per child, up to 6. */
|
|
570
|
+
children_ages?: number[] | null;
|
|
571
571
|
}
|
|
572
572
|
export interface SearchLocationsParams {
|
|
573
|
-
/** Suggestions to return. */
|
|
574
|
-
limit?: number;
|
|
575
573
|
/** Place name, such as `new york`. */
|
|
576
574
|
query: string;
|
|
575
|
+
/** Suggestions to return. */
|
|
576
|
+
limit?: number;
|
|
577
577
|
}
|
|
578
578
|
export interface SearchMultiCityFlightsParams {
|
|
579
|
-
/**
|
|
580
|
-
|
|
581
|
-
/** Only flights marketed by this airline, a two-letter code such as `DL`. Repeat for up to 10. */
|
|
582
|
-
airlines?: string[] | null;
|
|
579
|
+
/** A flight as `ORIGIN-DESTINATION-YYYY-MM-DD`, such as `JFK-CDG-2026-11-10`. Repeat once per flight, 2 to 5. */
|
|
580
|
+
legs: string[];
|
|
583
581
|
/** Cabin class. */
|
|
584
582
|
cabin?: ExpediaFlightCabin;
|
|
583
|
+
/** Number of adults. */
|
|
584
|
+
adults?: number;
|
|
585
585
|
/** Child age, 2 to 17. Repeat once per child. */
|
|
586
586
|
children_ages?: number[] | null;
|
|
587
|
-
/** Departure time of day, in the origin's time zone. */
|
|
588
|
-
departure_time?: ExpediaFlightTimeOfDay | null;
|
|
589
587
|
/** Infants under 2 on an adult's lap, at most one per adult. */
|
|
590
588
|
infants_in_lap?: number;
|
|
591
|
-
/**
|
|
592
|
-
|
|
589
|
+
/** Sort order. */
|
|
590
|
+
sort?: ExpediaFlightSort;
|
|
593
591
|
/** `0` for nonstop only, `1` for at most one stop. */
|
|
594
592
|
max_stops?: number | null;
|
|
593
|
+
/** Only flights marketed by this airline, a two-letter code such as `DL`. Repeat for up to 10. */
|
|
594
|
+
airlines?: string[] | null;
|
|
595
|
+
/** Departure time of day, in the origin's time zone. */
|
|
596
|
+
departure_time?: ExpediaFlightTimeOfDay | null;
|
|
595
597
|
/** Only refundable fares. */
|
|
596
598
|
refundable?: boolean;
|
|
597
|
-
/** Sort order. */
|
|
598
|
-
sort?: ExpediaFlightSort;
|
|
599
599
|
}
|
|
600
600
|
export interface SearchNextLegParams {
|
|
601
|
+
/** A fare's `next_leg_token` from the previous leg's results. */
|
|
602
|
+
token: string;
|
|
603
|
+
/** Sort order. */
|
|
604
|
+
sort?: ExpediaFlightSort;
|
|
605
|
+
/** `0` for nonstop only, `1` for at most one stop. */
|
|
606
|
+
max_stops?: number | null;
|
|
601
607
|
/** Only flights marketed by this airline, a two-letter code such as `DL`. Repeat for up to 10. */
|
|
602
608
|
airlines?: string[] | null;
|
|
603
609
|
/** Departure time of day, in the origin's time zone. */
|
|
604
610
|
departure_time?: ExpediaFlightTimeOfDay | null;
|
|
605
|
-
/** `0` for nonstop only, `1` for at most one stop. */
|
|
606
|
-
max_stops?: number | null;
|
|
607
611
|
/** Only refundable fares. */
|
|
608
612
|
refundable?: boolean;
|
|
609
|
-
/** Sort order. */
|
|
610
|
-
sort?: ExpediaFlightSort;
|
|
611
|
-
/** A fare's `next_leg_token` from the previous leg's results. */
|
|
612
|
-
token: string;
|
|
613
613
|
}
|
|
614
614
|
//# sourceMappingURL=types.d.ts.map
|