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 CHANGED
@@ -9935,6 +9935,26 @@ declare class BingClient {
9935
9935
  constructor(client: BaseClient);
9936
9936
  }
9937
9937
 
9938
+ /**
9939
+ * Booking API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
9940
+ */
9941
+
9942
+ /** Client for all Booking API operations. (Generated from the OpenAPI spec.) */
9943
+ declare class BookingClient {
9944
+ private readonly client;
9945
+ constructor(client: BaseClient);
9946
+ /** Search destinations. Generated from the OpenAPI spec; returns the raw response object. */
9947
+ searchDestinations(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
9948
+ /** Get property detail. Generated from the OpenAPI spec; returns the raw response object. */
9949
+ getPropertyDetail(countryCode: string, slug: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
9950
+ /** Get property reviews. Generated from the OpenAPI spec; returns the raw response object. */
9951
+ getPropertyReviews(countryCode: string, slug: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
9952
+ /** Get room types and live rates. Generated from the OpenAPI spec; returns the raw response object. */
9953
+ getRoomTypesAndLiveRates(countryCode: string, slug: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
9954
+ /** Search properties. Generated from the OpenAPI spec; returns the raw response object. */
9955
+ searchProperties(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
9956
+ }
9957
+
9938
9958
  /**
9939
9959
  * TypeScript types for Baidu API responses.
9940
9960
  *
@@ -16545,6 +16565,8 @@ declare class ScrapeBadger {
16545
16565
  readonly duckduckgo: DuckDuckGoClient;
16546
16566
  /** Bing scraper API client — 6 endpoints (search, images, videos, news, autocomplete, markets) */
16547
16567
  readonly bing: BingClient;
16568
+ /** Booking API client. (Generated from the OpenAPI spec.) */
16569
+ readonly booking: BookingClient;
16548
16570
  /** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
16549
16571
  readonly baidu: BaiduClient;
16550
16572
  /** Yahoo scraper API client — 6 endpoints (search, images, videos, news, autocomplete, markets) across 35 markets */
package/dist/index.d.ts CHANGED
@@ -9935,6 +9935,26 @@ declare class BingClient {
9935
9935
  constructor(client: BaseClient);
9936
9936
  }
9937
9937
 
9938
+ /**
9939
+ * Booking API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
9940
+ */
9941
+
9942
+ /** Client for all Booking API operations. (Generated from the OpenAPI spec.) */
9943
+ declare class BookingClient {
9944
+ private readonly client;
9945
+ constructor(client: BaseClient);
9946
+ /** Search destinations. Generated from the OpenAPI spec; returns the raw response object. */
9947
+ searchDestinations(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
9948
+ /** Get property detail. Generated from the OpenAPI spec; returns the raw response object. */
9949
+ getPropertyDetail(countryCode: string, slug: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
9950
+ /** Get property reviews. Generated from the OpenAPI spec; returns the raw response object. */
9951
+ getPropertyReviews(countryCode: string, slug: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
9952
+ /** Get room types and live rates. Generated from the OpenAPI spec; returns the raw response object. */
9953
+ getRoomTypesAndLiveRates(countryCode: string, slug: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
9954
+ /** Search properties. Generated from the OpenAPI spec; returns the raw response object. */
9955
+ searchProperties(params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
9956
+ }
9957
+
9938
9958
  /**
9939
9959
  * TypeScript types for Baidu API responses.
9940
9960
  *
@@ -16545,6 +16565,8 @@ declare class ScrapeBadger {
16545
16565
  readonly duckduckgo: DuckDuckGoClient;
16546
16566
  /** Bing scraper API client — 6 endpoints (search, images, videos, news, autocomplete, markets) */
16547
16567
  readonly bing: BingClient;
16568
+ /** Booking API client. (Generated from the OpenAPI spec.) */
16569
+ readonly booking: BookingClient;
16548
16570
  /** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
16549
16571
  readonly baidu: BaiduClient;
16550
16572
  /** Yahoo scraper API client — 6 endpoints (search, images, videos, news, autocomplete, markets) across 35 markets */
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
  var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
10
10
 
11
11
  // src/internal/version.ts
12
- var SDK_VERSION = "0.37.0";
12
+ var SDK_VERSION = "0.38.0";
13
13
 
14
14
  // src/internal/exceptions.ts
15
15
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -6535,6 +6535,34 @@ var BingClient = class {
6535
6535
  }
6536
6536
  };
6537
6537
 
6538
+ // src/booking/client.ts
6539
+ var BookingClient = class {
6540
+ client;
6541
+ constructor(client) {
6542
+ this.client = client;
6543
+ }
6544
+ /** Search destinations. Generated from the OpenAPI spec; returns the raw response object. */
6545
+ async searchDestinations(params = {}) {
6546
+ return this.client.request("/v1/booking/destinations", { params });
6547
+ }
6548
+ /** Get property detail. Generated from the OpenAPI spec; returns the raw response object. */
6549
+ async getPropertyDetail(countryCode, slug, params = {}) {
6550
+ return this.client.request(`/v1/booking/properties/${countryCode}/${slug}`, { params });
6551
+ }
6552
+ /** Get property reviews. Generated from the OpenAPI spec; returns the raw response object. */
6553
+ async getPropertyReviews(countryCode, slug, params = {}) {
6554
+ return this.client.request(`/v1/booking/properties/${countryCode}/${slug}/reviews`, { params });
6555
+ }
6556
+ /** Get room types and live rates. Generated from the OpenAPI spec; returns the raw response object. */
6557
+ async getRoomTypesAndLiveRates(countryCode, slug, params = {}) {
6558
+ return this.client.request(`/v1/booking/properties/${countryCode}/${slug}/rooms`, { params });
6559
+ }
6560
+ /** Search properties. Generated from the OpenAPI spec; returns the raw response object. */
6561
+ async searchProperties(params = {}) {
6562
+ return this.client.request("/v1/booking/search", { params });
6563
+ }
6564
+ };
6565
+
6538
6566
  // src/baidu/client.ts
6539
6567
  var BaiduClient = class {
6540
6568
  client;
@@ -8756,6 +8784,8 @@ var ScrapeBadger = class {
8756
8784
  duckduckgo;
8757
8785
  /** Bing scraper API client — 6 endpoints (search, images, videos, news, autocomplete, markets) */
8758
8786
  bing;
8787
+ /** Booking API client. (Generated from the OpenAPI spec.) */
8788
+ booking;
8759
8789
  /** Baidu scraper API client — search, news, images, autocomplete (baidu.com, China's #1 search engine) */
8760
8790
  baidu;
8761
8791
  /** Yahoo scraper API client — 6 endpoints (search, images, videos, news, autocomplete, markets) across 35 markets */
@@ -8839,6 +8869,7 @@ var ScrapeBadger = class {
8839
8869
  this.walmart = new WalmartClient(this.baseClient);
8840
8870
  this.duckduckgo = new DuckDuckGoClient(this.baseClient);
8841
8871
  this.bing = new BingClient(this.baseClient);
8872
+ this.booking = new BookingClient(this.baseClient);
8842
8873
  this.baidu = new BaiduClient(this.baseClient);
8843
8874
  this.yahoo = new YahooClient(this.baseClient);
8844
8875
  this.yandex = new YandexClient(this.baseClient);