scrapebadger 0.37.0 → 0.38.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.
- package/dist/index.d.cts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +32 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
|
|
|
3
3
|
import WebSocket from 'ws';
|
|
4
4
|
|
|
5
5
|
// src/internal/version.ts
|
|
6
|
-
var SDK_VERSION = "0.
|
|
6
|
+
var SDK_VERSION = "0.38.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -6529,6 +6529,34 @@ var BingClient = class {
|
|
|
6529
6529
|
}
|
|
6530
6530
|
};
|
|
6531
6531
|
|
|
6532
|
+
// src/booking/client.ts
|
|
6533
|
+
var BookingClient = class {
|
|
6534
|
+
client;
|
|
6535
|
+
constructor(client) {
|
|
6536
|
+
this.client = client;
|
|
6537
|
+
}
|
|
6538
|
+
/** Search destinations. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6539
|
+
async searchDestinations(params = {}) {
|
|
6540
|
+
return this.client.request("/v1/booking/destinations", { params });
|
|
6541
|
+
}
|
|
6542
|
+
/** Get property detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6543
|
+
async getPropertyDetail(countryCode, slug, params = {}) {
|
|
6544
|
+
return this.client.request(`/v1/booking/properties/${countryCode}/${slug}`, { params });
|
|
6545
|
+
}
|
|
6546
|
+
/** Get property reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6547
|
+
async getPropertyReviews(countryCode, slug, params = {}) {
|
|
6548
|
+
return this.client.request(`/v1/booking/properties/${countryCode}/${slug}/reviews`, { params });
|
|
6549
|
+
}
|
|
6550
|
+
/** Get room types and live rates. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6551
|
+
async getRoomTypesAndLiveRates(countryCode, slug, params = {}) {
|
|
6552
|
+
return this.client.request(`/v1/booking/properties/${countryCode}/${slug}/rooms`, { params });
|
|
6553
|
+
}
|
|
6554
|
+
/** Search properties. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6555
|
+
async searchProperties(params = {}) {
|
|
6556
|
+
return this.client.request("/v1/booking/search", { params });
|
|
6557
|
+
}
|
|
6558
|
+
};
|
|
6559
|
+
|
|
6532
6560
|
// src/baidu/client.ts
|
|
6533
6561
|
var BaiduClient = class {
|
|
6534
6562
|
client;
|
|
@@ -8750,6 +8778,8 @@ var ScrapeBadger = class {
|
|
|
8750
8778
|
duckduckgo;
|
|
8751
8779
|
/** Bing scraper API client — 6 endpoints (search, images, videos, news, autocomplete, markets) */
|
|
8752
8780
|
bing;
|
|
8781
|
+
/** Booking API client. (Generated from the OpenAPI spec.) */
|
|
8782
|
+
booking;
|
|
8753
8783
|
/** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
|
|
8754
8784
|
baidu;
|
|
8755
8785
|
/** Yahoo scraper API client — 6 endpoints (search, images, videos, news, autocomplete, markets) across 35 markets */
|
|
@@ -8833,6 +8863,7 @@ var ScrapeBadger = class {
|
|
|
8833
8863
|
this.walmart = new WalmartClient(this.baseClient);
|
|
8834
8864
|
this.duckduckgo = new DuckDuckGoClient(this.baseClient);
|
|
8835
8865
|
this.bing = new BingClient(this.baseClient);
|
|
8866
|
+
this.booking = new BookingClient(this.baseClient);
|
|
8836
8867
|
this.baidu = new BaiduClient(this.baseClient);
|
|
8837
8868
|
this.yahoo = new YahooClient(this.baseClient);
|
|
8838
8869
|
this.yandex = new YandexClient(this.baseClient);
|