scrapebadger 0.43.1 → 0.44.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 +147 -2
- package/dist/index.d.ts +147 -2
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -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.44.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -7891,6 +7891,27 @@ var PropertiesClient2 = class {
|
|
|
7891
7891
|
async getProperty(zpid) {
|
|
7892
7892
|
return this.client.request(`/v1/zillow/property/${zpid}`);
|
|
7893
7893
|
}
|
|
7894
|
+
/**
|
|
7895
|
+
* Get a Zillow multifamily building (apartment community) by its URL.
|
|
7896
|
+
*
|
|
7897
|
+
* Zillow serves multi-unit rentals on `/apartments/...` and `/b/...` pages,
|
|
7898
|
+
* which {@link getProperty} cannot read. Pass the `detail_url` of a search
|
|
7899
|
+
* result whose `home_type` is `"BUILDING"`.
|
|
7900
|
+
*
|
|
7901
|
+
* Returns floor plans and every available unit with rent, base rent,
|
|
7902
|
+
* required monthly fees, sqft, beds/baths and move-in date, plus amenities,
|
|
7903
|
+
* unit features, policies, special offers, office hours, pet policy,
|
|
7904
|
+
* schools, photos and walk/transit/bike scores.
|
|
7905
|
+
*
|
|
7906
|
+
* @param url - Full Zillow building URL.
|
|
7907
|
+
* @returns Building detail wrapped in `{ building }`.
|
|
7908
|
+
* @throws NotFoundError - If the building doesn't exist.
|
|
7909
|
+
*/
|
|
7910
|
+
async getBuilding(url) {
|
|
7911
|
+
return this.client.request("/v1/zillow/building", {
|
|
7912
|
+
params: { url }
|
|
7913
|
+
});
|
|
7914
|
+
}
|
|
7894
7915
|
};
|
|
7895
7916
|
|
|
7896
7917
|
// src/zillow/agent.ts
|