@getanyapi/sdk 0.89.0 → 0.90.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.cjs CHANGED
@@ -55,6 +55,7 @@ __export(index_exports, {
55
55
  GlassdoorNamespace: () => GlassdoorNamespace,
56
56
  GoogleAdsNamespace: () => GoogleAdsNamespace,
57
57
  GoogleFinanceNamespace: () => GoogleFinanceNamespace,
58
+ GoogleHotelsNamespace: () => GoogleHotelsNamespace,
58
59
  GoogleNamespace: () => GoogleNamespace,
59
60
  GoogleShoppingNamespace: () => GoogleShoppingNamespace,
60
61
  HackernewsNamespace: () => HackernewsNamespace,
@@ -3210,32 +3211,6 @@ var GoogleNamespace = class {
3210
3211
  autocomplete(input, options) {
3211
3212
  return this._core.run("google.autocomplete", input, options);
3212
3213
  }
3213
- /**
3214
- * Google Hotel Details
3215
- *
3216
- * Get one hotel from Google Hotels by its property ID: address, phone, website, rating, nightly price, prices from each booking site, amenities and check-in times as normalized JSON.
3217
- *
3218
- * Price: $0.0015 per request.
3219
- *
3220
- * @example
3221
- * const res = await client.google.hotelDetails({ checkIn: "2026-10-31", checkOut: "2026-11-02", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
3222
- */
3223
- hotelDetails(input, options) {
3224
- return this._core.run("google.hotel_details", input, options);
3225
- }
3226
- /**
3227
- * Google Hotels Search
3228
- *
3229
- * Search Google Hotels by destination and dates and get hotels with their Google property ID, nightly price, rating, review count, coordinates, star class and photos as normalized JSON.
3230
- *
3231
- * Price: $0.0015 per request.
3232
- *
3233
- * @example
3234
- * const res = await client.google.hotels({ checkIn: "2026-10-31", checkOut: "2026-11-02", country: "us", query: "hotels near times square new york" });
3235
- */
3236
- hotels(input, options) {
3237
- return this._core.run("google.hotels", input, options);
3238
- }
3239
3214
  /**
3240
3215
  * Google Images
3241
3216
  *
@@ -3455,6 +3430,40 @@ var GoogleFinanceNamespace = class {
3455
3430
  }
3456
3431
  };
3457
3432
 
3433
+ // src/generated/platforms/google_hotels.ts
3434
+ var GoogleHotelsNamespace = class {
3435
+ constructor(_core) {
3436
+ this._core = _core;
3437
+ }
3438
+ _core;
3439
+ /**
3440
+ * Google Hotel Details
3441
+ *
3442
+ * Get one hotel from Google Hotels by its property ID: address, phone, website, rating, nightly price, prices from each booking site, amenities and check-in times as normalized JSON.
3443
+ *
3444
+ * Price: $0.0015 per request.
3445
+ *
3446
+ * @example
3447
+ * const res = await client.googleHotels.details({ checkIn: "2026-10-31", checkOut: "2026-11-02", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
3448
+ */
3449
+ details(input, options) {
3450
+ return this._core.run("google_hotels.details", input, options);
3451
+ }
3452
+ /**
3453
+ * Google Hotels Search
3454
+ *
3455
+ * Search Google Hotels by destination and dates and get hotels with their Google property ID, nightly price, rating, review count, coordinates, star class and photos as normalized JSON.
3456
+ *
3457
+ * Price: $0.0015 per request.
3458
+ *
3459
+ * @example
3460
+ * const res = await client.googleHotels.search({ checkIn: "2026-10-31", checkOut: "2026-11-02", country: "us", query: "hotels near times square new york" });
3461
+ */
3462
+ search(input, options) {
3463
+ return this._core.run("google_hotels.search", input, options);
3464
+ }
3465
+ };
3466
+
3458
3467
  // src/generated/platforms/google_shopping.ts
3459
3468
  var GoogleShoppingNamespace = class {
3460
3469
  constructor(_core) {
@@ -8905,6 +8914,14 @@ var AnyAPI2 = class extends AnyAPI {
8905
8914
  this._core
8906
8915
  );
8907
8916
  }
8917
+ /**
8918
+ * Typed methods for the google_hotels platform.
8919
+ */
8920
+ get googleHotels() {
8921
+ return this._namespaces["googleHotels"] ??= new GoogleHotelsNamespace(
8922
+ this._core
8923
+ );
8924
+ }
8908
8925
  /**
8909
8926
  * Typed methods for the google_shopping platform.
8910
8927
  */
@@ -9331,6 +9348,7 @@ var AnyAPI2 = class extends AnyAPI {
9331
9348
  GlassdoorNamespace,
9332
9349
  GoogleAdsNamespace,
9333
9350
  GoogleFinanceNamespace,
9351
+ GoogleHotelsNamespace,
9334
9352
  GoogleNamespace,
9335
9353
  GoogleShoppingNamespace,
9336
9354
  HackernewsNamespace,