scrapebadger 0.43.1 → 0.45.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 +161 -2
- package/dist/index.d.ts +161 -2
- package/dist/index.js +50 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -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.45.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -5710,6 +5710,30 @@ var TikTokClient = class {
|
|
|
5710
5710
|
async getTiktokAdDetail(adId, params = {}) {
|
|
5711
5711
|
return this._gen.request(`/v1/tiktok/ads/${adId}`, { params });
|
|
5712
5712
|
}
|
|
5713
|
+
/** TikTok Shop root categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5714
|
+
async tiktokShopRootCategories(params = {}) {
|
|
5715
|
+
return this._gen.request("/v1/tiktok/shop/categories", { params });
|
|
5716
|
+
}
|
|
5717
|
+
/** TikTok Shop category: subcategories + top products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5718
|
+
async tiktokShopCategorySubcategoriesTopProducts(categoryId, params = {}) {
|
|
5719
|
+
return this._gen.request(`/v1/tiktok/shop/categories/${categoryId}`, { params });
|
|
5720
|
+
}
|
|
5721
|
+
/** TikTok Shop product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5722
|
+
async tiktokShopProductDetail(productId, params = {}) {
|
|
5723
|
+
return this._gen.request(`/v1/tiktok/shop/products/${productId}`, { params });
|
|
5724
|
+
}
|
|
5725
|
+
/** TikTok Shop product reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5726
|
+
async tiktokShopProductReviews(productId, params = {}) {
|
|
5727
|
+
return this._gen.request(`/v1/tiktok/shop/products/${productId}/reviews`, { params });
|
|
5728
|
+
}
|
|
5729
|
+
/** Search TikTok Shop products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5730
|
+
async searchTiktokShopProducts(params = {}) {
|
|
5731
|
+
return this._gen.request("/v1/tiktok/shop/search", { params });
|
|
5732
|
+
}
|
|
5733
|
+
/** TikTok Shop store + products. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5734
|
+
async tiktokShopStoreProducts(sellerId, params = {}) {
|
|
5735
|
+
return this._gen.request(`/v1/tiktok/shop/stores/${sellerId}`, { params });
|
|
5736
|
+
}
|
|
5713
5737
|
// --- END generated by sdk/codegen/facade ---
|
|
5714
5738
|
};
|
|
5715
5739
|
|
|
@@ -7891,6 +7915,27 @@ var PropertiesClient2 = class {
|
|
|
7891
7915
|
async getProperty(zpid) {
|
|
7892
7916
|
return this.client.request(`/v1/zillow/property/${zpid}`);
|
|
7893
7917
|
}
|
|
7918
|
+
/**
|
|
7919
|
+
* Get a Zillow multifamily building (apartment community) by its URL.
|
|
7920
|
+
*
|
|
7921
|
+
* Zillow serves multi-unit rentals on `/apartments/...` and `/b/...` pages,
|
|
7922
|
+
* which {@link getProperty} cannot read. Pass the `detail_url` of a search
|
|
7923
|
+
* result whose `home_type` is `"BUILDING"`.
|
|
7924
|
+
*
|
|
7925
|
+
* Returns floor plans and every available unit with rent, base rent,
|
|
7926
|
+
* required monthly fees, sqft, beds/baths and move-in date, plus amenities,
|
|
7927
|
+
* unit features, policies, special offers, office hours, pet policy,
|
|
7928
|
+
* schools, photos and walk/transit/bike scores.
|
|
7929
|
+
*
|
|
7930
|
+
* @param url - Full Zillow building URL.
|
|
7931
|
+
* @returns Building detail wrapped in `{ building }`.
|
|
7932
|
+
* @throws NotFoundError - If the building doesn't exist.
|
|
7933
|
+
*/
|
|
7934
|
+
async getBuilding(url) {
|
|
7935
|
+
return this.client.request("/v1/zillow/building", {
|
|
7936
|
+
params: { url }
|
|
7937
|
+
});
|
|
7938
|
+
}
|
|
7894
7939
|
};
|
|
7895
7940
|
|
|
7896
7941
|
// src/zillow/agent.ts
|
|
@@ -7956,6 +8001,10 @@ var ZillowClient = class {
|
|
|
7956
8001
|
this.reference = new ReferenceClient14(client);
|
|
7957
8002
|
}
|
|
7958
8003
|
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
8004
|
+
/** Get multifamily building. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8005
|
+
async getMultifamilyBuilding(params = {}) {
|
|
8006
|
+
return this._gen.request("/v1/zillow/building", { params });
|
|
8007
|
+
}
|
|
7959
8008
|
/** Get property detail by URL. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7960
8009
|
async getPropertyDetailByUrl(params = {}) {
|
|
7961
8010
|
return this._gen.request("/v1/zillow/property", { params });
|