@opentabs-dev/opentabs-plugin-zillow 0.0.74
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/README.md +159 -0
- package/dist/adapter.iife.js +15211 -0
- package/dist/adapter.iife.js.map +7 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +47 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/get-current-user.d.ts +14 -0
- package/dist/tools/get-current-user.d.ts.map +1 -0
- package/dist/tools/get-current-user.js +19 -0
- package/dist/tools/get-current-user.js.map +1 -0
- package/dist/tools/get-market-overview.d.ts +10 -0
- package/dist/tools/get-market-overview.d.ts.map +1 -0
- package/dist/tools/get-market-overview.js +70 -0
- package/dist/tools/get-market-overview.js.map +1 -0
- package/dist/tools/get-saved-homes.d.ts +6 -0
- package/dist/tools/get-saved-homes.d.ts.map +1 -0
- package/dist/tools/get-saved-homes.js +30 -0
- package/dist/tools/get-saved-homes.js.map +1 -0
- package/dist/tools/schemas.d.ts +99 -0
- package/dist/tools/schemas.d.ts.map +1 -0
- package/dist/tools/schemas.js +101 -0
- package/dist/tools/schemas.js.map +1 -0
- package/dist/tools/search-by-address.d.ts +32 -0
- package/dist/tools/search-by-address.d.ts.map +1 -0
- package/dist/tools/search-by-address.js +49 -0
- package/dist/tools/search-by-address.js.map +1 -0
- package/dist/tools/search-by-owner.d.ts +51 -0
- package/dist/tools/search-by-owner.d.ts.map +1 -0
- package/dist/tools/search-by-owner.js +78 -0
- package/dist/tools/search-by-owner.js.map +1 -0
- package/dist/tools/search-for-rent.d.ts +56 -0
- package/dist/tools/search-for-rent.d.ts.map +1 -0
- package/dist/tools/search-for-rent.js +86 -0
- package/dist/tools/search-for-rent.js.map +1 -0
- package/dist/tools/search-for-sale.d.ts +68 -0
- package/dist/tools/search-for-sale.d.ts.map +1 -0
- package/dist/tools/search-for-sale.js +98 -0
- package/dist/tools/search-for-sale.js.map +1 -0
- package/dist/tools/search-foreclosures.d.ts +49 -0
- package/dist/tools/search-foreclosures.d.ts.map +1 -0
- package/dist/tools/search-foreclosures.js +75 -0
- package/dist/tools/search-foreclosures.js.map +1 -0
- package/dist/tools/search-locations.d.ts +18 -0
- package/dist/tools/search-locations.d.ts.map +1 -0
- package/dist/tools/search-locations.js +23 -0
- package/dist/tools/search-locations.js.map +1 -0
- package/dist/tools/search-new-construction.d.ts +51 -0
- package/dist/tools/search-new-construction.d.ts.map +1 -0
- package/dist/tools/search-new-construction.js +78 -0
- package/dist/tools/search-new-construction.js.map +1 -0
- package/dist/tools/search-open-houses.d.ts +41 -0
- package/dist/tools/search-open-houses.d.ts.map +1 -0
- package/dist/tools/search-open-houses.js +59 -0
- package/dist/tools/search-open-houses.js.map +1 -0
- package/dist/tools/search-recently-sold.d.ts +52 -0
- package/dist/tools/search-recently-sold.d.ts.map +1 -0
- package/dist/tools/search-recently-sold.js +82 -0
- package/dist/tools/search-recently-sold.js.map +1 -0
- package/dist/tools.json +2056 -0
- package/dist/zillow-api.d.ts +143 -0
- package/dist/zillow-api.d.ts.map +1 -0
- package/dist/zillow-api.js +82 -0
- package/dist/zillow-api.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const searchNewConstruction: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
region_id: z.ZodOptional<z.ZodNumber>;
|
|
4
|
+
region_type: z.ZodOptional<z.ZodString>;
|
|
5
|
+
map_bounds: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
west: z.ZodNumber;
|
|
7
|
+
east: z.ZodNumber;
|
|
8
|
+
south: z.ZodNumber;
|
|
9
|
+
north: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
min_price: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
max_price: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
min_beds: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
globalrelevanceex: "globalrelevanceex";
|
|
16
|
+
days: "days";
|
|
17
|
+
pricea: "pricea";
|
|
18
|
+
priced: "priced";
|
|
19
|
+
size: "size";
|
|
20
|
+
}>>;
|
|
21
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
total: z.ZodNumber;
|
|
24
|
+
listings: z.ZodArray<z.ZodObject<{
|
|
25
|
+
zpid: z.ZodString;
|
|
26
|
+
address: z.ZodString;
|
|
27
|
+
street: z.ZodString;
|
|
28
|
+
city: z.ZodString;
|
|
29
|
+
state: z.ZodString;
|
|
30
|
+
zipcode: z.ZodString;
|
|
31
|
+
price: z.ZodString;
|
|
32
|
+
price_raw: z.ZodNumber;
|
|
33
|
+
beds: z.ZodNumber;
|
|
34
|
+
baths: z.ZodNumber;
|
|
35
|
+
sqft: z.ZodNumber;
|
|
36
|
+
status: z.ZodString;
|
|
37
|
+
status_text: z.ZodString;
|
|
38
|
+
home_type: z.ZodString;
|
|
39
|
+
days_on_zillow: z.ZodNumber;
|
|
40
|
+
zestimate: z.ZodNumber;
|
|
41
|
+
rent_zestimate: z.ZodNumber;
|
|
42
|
+
tax_assessed_value: z.ZodNumber;
|
|
43
|
+
latitude: z.ZodNumber;
|
|
44
|
+
longitude: z.ZodNumber;
|
|
45
|
+
image_url: z.ZodString;
|
|
46
|
+
detail_url: z.ZodString;
|
|
47
|
+
is_saved: z.ZodBoolean;
|
|
48
|
+
has_3d_model: z.ZodBoolean;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
//# sourceMappingURL=search-new-construction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-new-construction.d.ts","sourceRoot":"","sources":["../../src/tools/search-new-construction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8EhC,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineTool, ToolError } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { search, REGION_TYPE_MAP } from '../zillow-api.js';
|
|
4
|
+
import { listingSchema, mapListing } from './schemas.js';
|
|
5
|
+
export const searchNewConstruction = defineTool({
|
|
6
|
+
name: 'search_new_construction',
|
|
7
|
+
displayName: 'Search New Construction',
|
|
8
|
+
description: 'Search for new construction properties on Zillow. Requires either a region_id (from search_locations) or map_bounds. Filters to new construction homes including those coming soon.',
|
|
9
|
+
summary: 'Find new construction homes',
|
|
10
|
+
icon: 'hammer',
|
|
11
|
+
group: 'Search',
|
|
12
|
+
input: z.object({
|
|
13
|
+
region_id: z
|
|
14
|
+
.number()
|
|
15
|
+
.int()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('Zillow region ID (from search_locations). Required if map_bounds is not provided.'),
|
|
18
|
+
region_type: z
|
|
19
|
+
.string()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('Region type: "city", "county", "zipcode", "neighborhood" (default "city")'),
|
|
22
|
+
map_bounds: z
|
|
23
|
+
.object({
|
|
24
|
+
west: z.number().describe('Western longitude'),
|
|
25
|
+
east: z.number().describe('Eastern longitude'),
|
|
26
|
+
south: z.number().describe('Southern latitude'),
|
|
27
|
+
north: z.number().describe('Northern latitude'),
|
|
28
|
+
})
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('Map bounding box. Required if region_id is not provided.'),
|
|
31
|
+
min_price: z.number().optional().describe('Minimum price in dollars'),
|
|
32
|
+
max_price: z.number().optional().describe('Maximum price in dollars'),
|
|
33
|
+
min_beds: z.number().int().optional().describe('Minimum bedrooms'),
|
|
34
|
+
sort: z
|
|
35
|
+
.enum(['globalrelevanceex', 'days', 'pricea', 'priced', 'size'])
|
|
36
|
+
.optional()
|
|
37
|
+
.describe('Sort order (default "globalrelevanceex")'),
|
|
38
|
+
page: z.number().int().min(1).optional().describe('Page number (default 1)'),
|
|
39
|
+
}),
|
|
40
|
+
output: z.object({
|
|
41
|
+
total: z.number().describe('Total new construction listings'),
|
|
42
|
+
listings: z.array(listingSchema).describe('New construction listings'),
|
|
43
|
+
}),
|
|
44
|
+
handle: async (params) => {
|
|
45
|
+
if (!params.region_id && !params.map_bounds) {
|
|
46
|
+
throw ToolError.validation('Either region_id or map_bounds is required.');
|
|
47
|
+
}
|
|
48
|
+
const filterState = {
|
|
49
|
+
isNewConstruction: { value: true },
|
|
50
|
+
isForSaleByAgent: { value: false },
|
|
51
|
+
isForSaleByOwner: { value: false },
|
|
52
|
+
isComingSoon: { value: false },
|
|
53
|
+
isAuction: { value: false },
|
|
54
|
+
isForSaleForeclosure: { value: false },
|
|
55
|
+
};
|
|
56
|
+
if (params.sort)
|
|
57
|
+
filterState.sortSelection = { value: params.sort };
|
|
58
|
+
if (params.min_price || params.max_price)
|
|
59
|
+
filterState.price = { min: params.min_price, max: params.max_price };
|
|
60
|
+
if (params.min_beds)
|
|
61
|
+
filterState.beds = { min: params.min_beds };
|
|
62
|
+
const bounds = params.map_bounds ?? { west: -122.5, east: -122.3, south: 37.7, north: 37.8 };
|
|
63
|
+
const data = await search({
|
|
64
|
+
pagination: params.page && params.page > 1 ? { currentPage: params.page } : undefined,
|
|
65
|
+
mapBounds: bounds,
|
|
66
|
+
regionSelection: params.region_id
|
|
67
|
+
? [{ regionId: params.region_id, regionType: REGION_TYPE_MAP[params.region_type ?? 'city'] ?? 6 }]
|
|
68
|
+
: undefined,
|
|
69
|
+
filterState,
|
|
70
|
+
isMapVisible: true,
|
|
71
|
+
}, { cat1: ['listResults', 'total'] });
|
|
72
|
+
return {
|
|
73
|
+
total: data.categoryTotals?.cat1?.totalResultCount ?? data.cat1?.searchResults?.listResults?.length ?? 0,
|
|
74
|
+
listings: (data.cat1?.searchResults?.listResults ?? []).map(mapListing),
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=search-new-construction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-new-construction.js","sourceRoot":"","sources":["../../src/tools/search-new-construction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;IAC9C,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EACT,qLAAqL;IACvL,OAAO,EAAE,6BAA6B;IACtC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,mFAAmF,CAAC;QAChG,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,2EAA2E,CAAC;QACxF,UAAU,EAAE,CAAC;aACV,MAAM,CAAC;YACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YAC9C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YAC9C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YAC/C,KAAK,EAAE,CAA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E,CAAC;gBAClG,CAAC,CAAC,SAAS;YACb,WAAW;YACX,YAAY,EAAE,IAAI;SACnB,EACD,EAAE,IAAI,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,EAAE,CACnC,CAAC;QAEF,OAAO;YACL,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,EAAE,gBAAgB,IAAI,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;YACxG,QAAQ,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC;SACxE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const searchOpenHouses: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
region_id: z.ZodOptional<z.ZodNumber>;
|
|
4
|
+
region_type: z.ZodOptional<z.ZodString>;
|
|
5
|
+
map_bounds: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
west: z.ZodNumber;
|
|
7
|
+
east: z.ZodNumber;
|
|
8
|
+
south: z.ZodNumber;
|
|
9
|
+
north: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
total: z.ZodNumber;
|
|
14
|
+
listings: z.ZodArray<z.ZodObject<{
|
|
15
|
+
zpid: z.ZodString;
|
|
16
|
+
address: z.ZodString;
|
|
17
|
+
street: z.ZodString;
|
|
18
|
+
city: z.ZodString;
|
|
19
|
+
state: z.ZodString;
|
|
20
|
+
zipcode: z.ZodString;
|
|
21
|
+
price: z.ZodString;
|
|
22
|
+
price_raw: z.ZodNumber;
|
|
23
|
+
beds: z.ZodNumber;
|
|
24
|
+
baths: z.ZodNumber;
|
|
25
|
+
sqft: z.ZodNumber;
|
|
26
|
+
status: z.ZodString;
|
|
27
|
+
status_text: z.ZodString;
|
|
28
|
+
home_type: z.ZodString;
|
|
29
|
+
days_on_zillow: z.ZodNumber;
|
|
30
|
+
zestimate: z.ZodNumber;
|
|
31
|
+
rent_zestimate: z.ZodNumber;
|
|
32
|
+
tax_assessed_value: z.ZodNumber;
|
|
33
|
+
latitude: z.ZodNumber;
|
|
34
|
+
longitude: z.ZodNumber;
|
|
35
|
+
image_url: z.ZodString;
|
|
36
|
+
detail_url: z.ZodString;
|
|
37
|
+
is_saved: z.ZodBoolean;
|
|
38
|
+
has_3d_model: z.ZodBoolean;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
//# sourceMappingURL=search-open-houses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-open-houses.d.ts","sourceRoot":"","sources":["../../src/tools/search-open-houses.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4D3B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineTool, ToolError } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { search, REGION_TYPE_MAP } from '../zillow-api.js';
|
|
4
|
+
import { listingSchema, mapListing } from './schemas.js';
|
|
5
|
+
export const searchOpenHouses = defineTool({
|
|
6
|
+
name: 'search_open_houses',
|
|
7
|
+
displayName: 'Search Open Houses',
|
|
8
|
+
description: 'Search for properties with upcoming open houses in a given area. Requires either a region_id (from search_locations) or map_bounds.',
|
|
9
|
+
summary: 'Find properties with open houses',
|
|
10
|
+
icon: 'door-open',
|
|
11
|
+
group: 'Search',
|
|
12
|
+
input: z.object({
|
|
13
|
+
region_id: z
|
|
14
|
+
.number()
|
|
15
|
+
.int()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('Zillow region ID (from search_locations). Required if map_bounds is not provided.'),
|
|
18
|
+
region_type: z
|
|
19
|
+
.string()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('Region type: "city", "county", "zipcode", "neighborhood" (default "city")'),
|
|
22
|
+
map_bounds: z
|
|
23
|
+
.object({
|
|
24
|
+
west: z.number().describe('Western longitude'),
|
|
25
|
+
east: z.number().describe('Eastern longitude'),
|
|
26
|
+
south: z.number().describe('Southern latitude'),
|
|
27
|
+
north: z.number().describe('Northern latitude'),
|
|
28
|
+
})
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('Map bounding box. Required if region_id is not provided.'),
|
|
31
|
+
page: z.number().int().min(1).optional().describe('Page number (default 1)'),
|
|
32
|
+
}),
|
|
33
|
+
output: z.object({
|
|
34
|
+
total: z.number().describe('Total listings with open houses'),
|
|
35
|
+
listings: z.array(listingSchema).describe('Properties with open houses'),
|
|
36
|
+
}),
|
|
37
|
+
handle: async (params) => {
|
|
38
|
+
if (!params.region_id && !params.map_bounds) {
|
|
39
|
+
throw ToolError.validation('Either region_id or map_bounds is required.');
|
|
40
|
+
}
|
|
41
|
+
const bounds = params.map_bounds ?? { west: -122.5, east: -122.3, south: 37.7, north: 37.8 };
|
|
42
|
+
const data = await search({
|
|
43
|
+
pagination: params.page && params.page > 1 ? { currentPage: params.page } : undefined,
|
|
44
|
+
mapBounds: bounds,
|
|
45
|
+
regionSelection: params.region_id
|
|
46
|
+
? [{ regionId: params.region_id, regionType: REGION_TYPE_MAP[params.region_type ?? 'city'] ?? 6 }]
|
|
47
|
+
: undefined,
|
|
48
|
+
filterState: {
|
|
49
|
+
isOpenHousesOnly: { value: true },
|
|
50
|
+
},
|
|
51
|
+
isMapVisible: true,
|
|
52
|
+
}, { cat1: ['listResults', 'total'] });
|
|
53
|
+
return {
|
|
54
|
+
total: data.categoryTotals?.cat1?.totalResultCount ?? data.cat1?.searchResults?.listResults?.length ?? 0,
|
|
55
|
+
listings: (data.cat1?.searchResults?.listResults ?? []).map(mapListing),
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=search-open-houses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-open-houses.js","sourceRoot":"","sources":["../../src/tools/search-open-houses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACzC,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,oBAAoB;IACjC,WAAW,EACT,qIAAqI;IACvI,OAAO,EAAE,kCAAkC;IAC3C,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,mFAAmF,CAAC;QAChG,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,2EAA2E,CAAC;QACxF,UAAU,EAAE,CAAC;aACV,MAAM,CAAC;YACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YAC9C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YAC9C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YAC/C,KAAK,EAAE,CAAC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AM,CAAC,IAAI,CAAC,EAAE,CAAC;gBAClG,CAAC,CAAC,SAAS;YACb,WAAW,EAAE;gBACX,gBAAgB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;aAClC;YACD,YAAY,EAAE,IAAI;SACnB,EACD,EAAE,IAAI,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,EAAE,CACnC,CAAC;QAEF,OAAO;YACL,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,EAAE,gBAAgB,IAAI,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;YACxG,QAAQ,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,EAAE,WAAW,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC;SACxE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const searchRecentlySold: import("@opentabs-dev/plugin-sdk").ToolDefinition<z.ZodObject<{
|
|
3
|
+
region_id: z.ZodOptional<z.ZodNumber>;
|
|
4
|
+
region_type: z.ZodOptional<z.ZodString>;
|
|
5
|
+
map_bounds: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
west: z.ZodNumber;
|
|
7
|
+
east: z.ZodNumber;
|
|
8
|
+
south: z.ZodNumber;
|
|
9
|
+
north: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>>;
|
|
11
|
+
min_price: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
max_price: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
min_beds: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
min_baths: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
globalrelevanceex: "globalrelevanceex";
|
|
17
|
+
days: "days";
|
|
18
|
+
pricea: "pricea";
|
|
19
|
+
priced: "priced";
|
|
20
|
+
size: "size";
|
|
21
|
+
}>>;
|
|
22
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
total: z.ZodNumber;
|
|
25
|
+
listings: z.ZodArray<z.ZodObject<{
|
|
26
|
+
zpid: z.ZodString;
|
|
27
|
+
address: z.ZodString;
|
|
28
|
+
street: z.ZodString;
|
|
29
|
+
city: z.ZodString;
|
|
30
|
+
state: z.ZodString;
|
|
31
|
+
zipcode: z.ZodString;
|
|
32
|
+
price: z.ZodString;
|
|
33
|
+
price_raw: z.ZodNumber;
|
|
34
|
+
beds: z.ZodNumber;
|
|
35
|
+
baths: z.ZodNumber;
|
|
36
|
+
sqft: z.ZodNumber;
|
|
37
|
+
status: z.ZodString;
|
|
38
|
+
status_text: z.ZodString;
|
|
39
|
+
home_type: z.ZodString;
|
|
40
|
+
days_on_zillow: z.ZodNumber;
|
|
41
|
+
zestimate: z.ZodNumber;
|
|
42
|
+
rent_zestimate: z.ZodNumber;
|
|
43
|
+
tax_assessed_value: z.ZodNumber;
|
|
44
|
+
latitude: z.ZodNumber;
|
|
45
|
+
longitude: z.ZodNumber;
|
|
46
|
+
image_url: z.ZodString;
|
|
47
|
+
detail_url: z.ZodString;
|
|
48
|
+
is_saved: z.ZodBoolean;
|
|
49
|
+
has_3d_model: z.ZodBoolean;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
//# sourceMappingURL=search-recently-sold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-recently-sold.d.ts","sourceRoot":"","sources":["../../src/tools/search-recently-sold.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmF7B,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineTool, ToolError } from '@opentabs-dev/plugin-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { search, REGION_TYPE_MAP } from '../zillow-api.js';
|
|
4
|
+
import { listingSchema, mapListing } from './schemas.js';
|
|
5
|
+
export const searchRecentlySold = defineTool({
|
|
6
|
+
name: 'search_recently_sold',
|
|
7
|
+
displayName: 'Search Recently Sold',
|
|
8
|
+
description: 'Search for recently sold properties on Zillow. Useful for market research and comp analysis. Requires either a region_id (from search_locations) or map_bounds. Returns sale prices, dates, and property details.',
|
|
9
|
+
summary: 'Search recently sold properties',
|
|
10
|
+
icon: 'badge-check',
|
|
11
|
+
group: 'Search',
|
|
12
|
+
input: z.object({
|
|
13
|
+
region_id: z
|
|
14
|
+
.number()
|
|
15
|
+
.int()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('Zillow region ID (from search_locations). Required if map_bounds is not provided.'),
|
|
18
|
+
region_type: z
|
|
19
|
+
.string()
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('Region type: "city", "county", "zipcode", "neighborhood" (default "city")'),
|
|
22
|
+
map_bounds: z
|
|
23
|
+
.object({
|
|
24
|
+
west: z.number().describe('Western longitude'),
|
|
25
|
+
east: z.number().describe('Eastern longitude'),
|
|
26
|
+
south: z.number().describe('Southern latitude'),
|
|
27
|
+
north: z.number().describe('Northern latitude'),
|
|
28
|
+
})
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('Map bounding box. Required if region_id is not provided.'),
|
|
31
|
+
min_price: z.number().optional().describe('Minimum sale price in dollars'),
|
|
32
|
+
max_price: z.number().optional().describe('Maximum sale price in dollars'),
|
|
33
|
+
min_beds: z.number().int().optional().describe('Minimum bedrooms'),
|
|
34
|
+
min_baths: z.number().int().optional().describe('Minimum bathrooms'),
|
|
35
|
+
sort: z
|
|
36
|
+
.enum(['globalrelevanceex', 'days', 'pricea', 'priced', 'size'])
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Sort order (default "globalrelevanceex"). "days"=Most recent, "pricea"=Price low-high, "priced"=Price high-low'),
|
|
39
|
+
page: z.number().int().min(1).optional().describe('Page number (default 1)'),
|
|
40
|
+
}),
|
|
41
|
+
output: z.object({
|
|
42
|
+
total: z.number().describe('Total number of recently sold properties'),
|
|
43
|
+
listings: z.array(listingSchema).describe('Recently sold listings'),
|
|
44
|
+
}),
|
|
45
|
+
handle: async (params) => {
|
|
46
|
+
if (!params.region_id && !params.map_bounds) {
|
|
47
|
+
throw ToolError.validation('Either region_id or map_bounds is required.');
|
|
48
|
+
}
|
|
49
|
+
const filterState = {
|
|
50
|
+
isRecentlySold: { value: true },
|
|
51
|
+
isForSaleByAgent: { value: false },
|
|
52
|
+
isForSaleByOwner: { value: false },
|
|
53
|
+
isNewConstruction: { value: false },
|
|
54
|
+
isComingSoon: { value: false },
|
|
55
|
+
isAuction: { value: false },
|
|
56
|
+
isForSaleForeclosure: { value: false },
|
|
57
|
+
};
|
|
58
|
+
if (params.sort)
|
|
59
|
+
filterState.sortSelection = { value: params.sort };
|
|
60
|
+
if (params.min_price || params.max_price)
|
|
61
|
+
filterState.price = { min: params.min_price, max: params.max_price };
|
|
62
|
+
if (params.min_beds)
|
|
63
|
+
filterState.beds = { min: params.min_beds };
|
|
64
|
+
if (params.min_baths)
|
|
65
|
+
filterState.baths = { min: params.min_baths };
|
|
66
|
+
const bounds = params.map_bounds ?? { west: -122.5, east: -122.3, south: 37.7, north: 37.8 };
|
|
67
|
+
const data = await search({
|
|
68
|
+
pagination: params.page && params.page > 1 ? { currentPage: params.page } : undefined,
|
|
69
|
+
mapBounds: bounds,
|
|
70
|
+
regionSelection: params.region_id
|
|
71
|
+
? [{ regionId: params.region_id, regionType: REGION_TYPE_MAP[params.region_type ?? 'city'] ?? 6 }]
|
|
72
|
+
: undefined,
|
|
73
|
+
filterState,
|
|
74
|
+
isMapVisible: true,
|
|
75
|
+
}, { cat1: ['listResults', 'total'] });
|
|
76
|
+
return {
|
|
77
|
+
total: data.categoryTotals?.cat1?.totalResultCount ?? data.cat1?.searchResults?.listResults?.length ?? 0,
|
|
78
|
+
listings: (data.cat1?.searchResults?.listResults ?? []).map(mapListing),
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
//# sourceMappingURL=search-recently-sold.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-recently-sold.js","sourceRoot":"","sources":["../../src/tools/search-recently-sold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IAC3C,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EACT,mNAAmN;IACrN,OAAO,EAAE,iCAAiC;IAC1C,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,mFAAmF,CAAC;QAChG,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,2EAA2E,CAAC;QACxF,UAAU,EAAE,CAAC;aACV,MAAM,CAAC;YACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YAC9C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YAC9C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ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