@vepler/sdk 6.0.0 → 6.8.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/commonjs/funcs/safetyGetGeographyMetrics.d.ts +1 -1
- package/dist/commonjs/funcs/safetyGetGeographyMetrics.js +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbyid.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/getlistingbyid.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbyid.js +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbyid.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbysource.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/getlistingbysource.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbysource.js +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbysource.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.js +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistings.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/querylistings.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistings.js +1 -1
- package/dist/commonjs/sdk/models/operations/querylistings.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.js +1 -1
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/resolveaddress.d.ts +24 -0
- package/dist/commonjs/sdk/models/operations/resolveaddress.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/resolveaddress.js +12 -1
- package/dist/commonjs/sdk/models/operations/resolveaddress.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/addressresolverequest.d.ts +5 -0
- package/dist/commonjs/sdk/models/shared/addressresolverequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/addressresolverequest.js +1 -0
- package/dist/commonjs/sdk/models/shared/addressresolverequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/advancedlisting.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/advancedlisting.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/advancedlisting.js +1 -1
- package/dist/commonjs/sdk/models/shared/advancedlisting.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.d.ts +5 -1
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.js +1 -0
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/imagecondition.d.ts +18 -0
- package/dist/commonjs/sdk/models/shared/imagecondition.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagecondition.js +52 -0
- package/dist/commonjs/sdk/models/shared/imagecondition.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagedocumentclass.d.ts +22 -0
- package/dist/commonjs/sdk/models/shared/imagedocumentclass.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagedocumentclass.js +56 -0
- package/dist/commonjs/sdk/models/shared/imagedocumentclass.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagequality.d.ts +12 -0
- package/dist/commonjs/sdk/models/shared/imagequality.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagequality.js +49 -0
- package/dist/commonjs/sdk/models/shared/imagequality.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagescene.d.ts +62 -0
- package/dist/commonjs/sdk/models/shared/imagescene.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagescene.js +96 -0
- package/dist/commonjs/sdk/models/shared/imagescene.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagescenelabel.d.ts +18 -0
- package/dist/commonjs/sdk/models/shared/imagescenelabel.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/imagescenelabel.js +52 -0
- package/dist/commonjs/sdk/models/shared/imagescenelabel.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +8 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +8 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/listing.d.ts +120 -2
- package/dist/commonjs/sdk/models/shared/listing.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/listing.js +149 -2
- package/dist/commonjs/sdk/models/shared/listing.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/listingimage.d.ts +52 -0
- package/dist/commonjs/sdk/models/shared/listingimage.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/listingimage.js +31 -1
- package/dist/commonjs/sdk/models/shared/listingimage.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/mortgagecharge.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/mortgagecharge.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/mortgagecharge.js +1 -0
- package/dist/commonjs/sdk/models/shared/mortgagecharge.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/observedfeature.d.ts +21 -0
- package/dist/commonjs/sdk/models/shared/observedfeature.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/observedfeature.js +52 -0
- package/dist/commonjs/sdk/models/shared/observedfeature.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/othercharge.d.ts +8 -1
- package/dist/commonjs/sdk/models/shared/othercharge.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/othercharge.js +1 -0
- package/dist/commonjs/sdk/models/shared/othercharge.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlecovenant.d.ts +7 -0
- package/dist/commonjs/sdk/models/shared/titlecovenant.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlecovenant.js +1 -0
- package/dist/commonjs/sdk/models/shared/titlecovenant.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.d.ts +14 -1
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.js +4 -0
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlenotice.d.ts +7 -0
- package/dist/commonjs/sdk/models/shared/titlenotice.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlenotice.js +1 -0
- package/dist/commonjs/sdk/models/shared/titlenotice.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlepricepaid.d.ts +29 -0
- package/dist/commonjs/sdk/models/shared/titlepricepaid.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/titlepricepaid.js +54 -0
- package/dist/commonjs/sdk/models/shared/titlepricepaid.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/titlepropertyright.d.ts +50 -0
- package/dist/commonjs/sdk/models/shared/titlepropertyright.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/titlepropertyright.js +68 -0
- package/dist/commonjs/sdk/models/shared/titlepropertyright.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/titlerestriction.d.ts +7 -0
- package/dist/commonjs/sdk/models/shared/titlerestriction.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlerestriction.js +1 -0
- package/dist/commonjs/sdk/models/shared/titlerestriction.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlesummarycounts.d.ts +1 -0
- package/dist/commonjs/sdk/models/shared/titlesummarycounts.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlesummarycounts.js +1 -0
- package/dist/commonjs/sdk/models/shared/titlesummarycounts.js.map +1 -1
- package/dist/commonjs/sdk/safety.d.ts +1 -1
- package/dist/commonjs/sdk/safety.js +1 -1
- package/dist/esm/funcs/safetyGetGeographyMetrics.d.ts +1 -1
- package/dist/esm/funcs/safetyGetGeographyMetrics.js +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingbyid.d.ts +2 -2
- package/dist/esm/sdk/models/operations/getlistingbyid.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingbyid.js +1 -1
- package/dist/esm/sdk/models/operations/getlistingbyid.js.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingbysource.d.ts +2 -2
- package/dist/esm/sdk/models/operations/getlistingbysource.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingbysource.js +1 -1
- package/dist/esm/sdk/models/operations/getlistingbysource.js.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingsbylocation.d.ts +2 -2
- package/dist/esm/sdk/models/operations/getlistingsbylocation.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingsbylocation.js +1 -1
- package/dist/esm/sdk/models/operations/getlistingsbylocation.js.map +1 -1
- package/dist/esm/sdk/models/operations/querylistings.d.ts +2 -2
- package/dist/esm/sdk/models/operations/querylistings.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/querylistings.js +1 -1
- package/dist/esm/sdk/models/operations/querylistings.js.map +1 -1
- package/dist/esm/sdk/models/operations/querylistingsbysource.d.ts +2 -2
- package/dist/esm/sdk/models/operations/querylistingsbysource.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/querylistingsbysource.js +1 -1
- package/dist/esm/sdk/models/operations/querylistingsbysource.js.map +1 -1
- package/dist/esm/sdk/models/operations/resolveaddress.d.ts +24 -0
- package/dist/esm/sdk/models/operations/resolveaddress.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/resolveaddress.js +10 -0
- package/dist/esm/sdk/models/operations/resolveaddress.js.map +1 -1
- package/dist/esm/sdk/models/shared/addressresolverequest.d.ts +5 -0
- package/dist/esm/sdk/models/shared/addressresolverequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/addressresolverequest.js +1 -0
- package/dist/esm/sdk/models/shared/addressresolverequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/advancedlisting.d.ts +2 -2
- package/dist/esm/sdk/models/shared/advancedlisting.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/advancedlisting.js +1 -1
- package/dist/esm/sdk/models/shared/advancedlisting.js.map +1 -1
- package/dist/esm/sdk/models/shared/geographymetricsrow.d.ts +5 -1
- package/dist/esm/sdk/models/shared/geographymetricsrow.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/geographymetricsrow.js +1 -0
- package/dist/esm/sdk/models/shared/geographymetricsrow.js.map +1 -1
- package/dist/esm/sdk/models/shared/imagecondition.d.ts +18 -0
- package/dist/esm/sdk/models/shared/imagecondition.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/imagecondition.js +16 -0
- package/dist/esm/sdk/models/shared/imagecondition.js.map +1 -0
- package/dist/esm/sdk/models/shared/imagedocumentclass.d.ts +22 -0
- package/dist/esm/sdk/models/shared/imagedocumentclass.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/imagedocumentclass.js +20 -0
- package/dist/esm/sdk/models/shared/imagedocumentclass.js.map +1 -0
- package/dist/esm/sdk/models/shared/imagequality.d.ts +12 -0
- package/dist/esm/sdk/models/shared/imagequality.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/imagequality.js +13 -0
- package/dist/esm/sdk/models/shared/imagequality.js.map +1 -0
- package/dist/esm/sdk/models/shared/imagescene.d.ts +62 -0
- package/dist/esm/sdk/models/shared/imagescene.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/imagescene.js +60 -0
- package/dist/esm/sdk/models/shared/imagescene.js.map +1 -0
- package/dist/esm/sdk/models/shared/imagescenelabel.d.ts +18 -0
- package/dist/esm/sdk/models/shared/imagescenelabel.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/imagescenelabel.js +15 -0
- package/dist/esm/sdk/models/shared/imagescenelabel.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +8 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +8 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/listing.d.ts +120 -2
- package/dist/esm/sdk/models/shared/listing.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/listing.js +144 -1
- package/dist/esm/sdk/models/shared/listing.js.map +1 -1
- package/dist/esm/sdk/models/shared/listingimage.d.ts +52 -0
- package/dist/esm/sdk/models/shared/listingimage.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/listingimage.js +29 -0
- package/dist/esm/sdk/models/shared/listingimage.js.map +1 -1
- package/dist/esm/sdk/models/shared/mortgagecharge.d.ts +4 -0
- package/dist/esm/sdk/models/shared/mortgagecharge.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/mortgagecharge.js +1 -0
- package/dist/esm/sdk/models/shared/mortgagecharge.js.map +1 -1
- package/dist/esm/sdk/models/shared/observedfeature.d.ts +21 -0
- package/dist/esm/sdk/models/shared/observedfeature.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/observedfeature.js +15 -0
- package/dist/esm/sdk/models/shared/observedfeature.js.map +1 -0
- package/dist/esm/sdk/models/shared/othercharge.d.ts +8 -1
- package/dist/esm/sdk/models/shared/othercharge.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/othercharge.js +1 -0
- package/dist/esm/sdk/models/shared/othercharge.js.map +1 -1
- package/dist/esm/sdk/models/shared/titlecovenant.d.ts +7 -0
- package/dist/esm/sdk/models/shared/titlecovenant.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titlecovenant.js +1 -0
- package/dist/esm/sdk/models/shared/titlecovenant.js.map +1 -1
- package/dist/esm/sdk/models/shared/titleextractionpayload.d.ts +14 -1
- package/dist/esm/sdk/models/shared/titleextractionpayload.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titleextractionpayload.js +4 -0
- package/dist/esm/sdk/models/shared/titleextractionpayload.js.map +1 -1
- package/dist/esm/sdk/models/shared/titlenotice.d.ts +7 -0
- package/dist/esm/sdk/models/shared/titlenotice.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titlenotice.js +1 -0
- package/dist/esm/sdk/models/shared/titlenotice.js.map +1 -1
- package/dist/esm/sdk/models/shared/titlepricepaid.d.ts +29 -0
- package/dist/esm/sdk/models/shared/titlepricepaid.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/titlepricepaid.js +17 -0
- package/dist/esm/sdk/models/shared/titlepricepaid.js.map +1 -0
- package/dist/esm/sdk/models/shared/titlepropertyright.d.ts +50 -0
- package/dist/esm/sdk/models/shared/titlepropertyright.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/titlepropertyright.js +31 -0
- package/dist/esm/sdk/models/shared/titlepropertyright.js.map +1 -0
- package/dist/esm/sdk/models/shared/titlerestriction.d.ts +7 -0
- package/dist/esm/sdk/models/shared/titlerestriction.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titlerestriction.js +1 -0
- package/dist/esm/sdk/models/shared/titlerestriction.js.map +1 -1
- package/dist/esm/sdk/models/shared/titlesummarycounts.d.ts +1 -0
- package/dist/esm/sdk/models/shared/titlesummarycounts.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titlesummarycounts.js +1 -0
- package/dist/esm/sdk/models/shared/titlesummarycounts.js.map +1 -1
- package/dist/esm/sdk/safety.d.ts +1 -1
- package/dist/esm/sdk/safety.js +1 -1
- package/package.json +1 -1
- package/src/funcs/safetyGetGeographyMetrics.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/operations/getlistingbyid.ts +5 -5
- package/src/sdk/models/operations/getlistingbysource.ts +5 -5
- package/src/sdk/models/operations/getlistingsbylocation.ts +5 -5
- package/src/sdk/models/operations/querylistings.ts +5 -5
- package/src/sdk/models/operations/querylistingsbysource.ts +5 -5
- package/src/sdk/models/operations/resolveaddress.ts +44 -0
- package/src/sdk/models/shared/addressresolverequest.ts +6 -0
- package/src/sdk/models/shared/advancedlisting.ts +4 -4
- package/src/sdk/models/shared/geographymetricsrow.ts +6 -1
- package/src/sdk/models/shared/imagecondition.ts +28 -0
- package/src/sdk/models/shared/imagedocumentclass.ts +32 -0
- package/src/sdk/models/shared/imagequality.ts +22 -0
- package/src/sdk/models/shared/imagescene.ts +72 -0
- package/src/sdk/models/shared/imagescenelabel.ts +40 -0
- package/src/sdk/models/shared/index.ts +8 -0
- package/src/sdk/models/shared/listing.ts +305 -4
- package/src/sdk/models/shared/listingimage.ts +85 -0
- package/src/sdk/models/shared/mortgagecharge.ts +5 -0
- package/src/sdk/models/shared/observedfeature.ts +44 -0
- package/src/sdk/models/shared/othercharge.ts +9 -1
- package/src/sdk/models/shared/titlecovenant.ts +8 -0
- package/src/sdk/models/shared/titleextractionpayload.ts +22 -1
- package/src/sdk/models/shared/titlenotice.ts +8 -0
- package/src/sdk/models/shared/titlepricepaid.ts +54 -0
- package/src/sdk/models/shared/titlepropertyright.ts +81 -0
- package/src/sdk/models/shared/titlerestriction.ts +8 -0
- package/src/sdk/models/shared/titlesummarycounts.ts +2 -0
- package/src/sdk/safety.ts +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The state of repair the photographs suggest.
|
|
11
|
+
*/
|
|
12
|
+
export const ImageCondition = {
|
|
13
|
+
MoveInReady: "move_in_ready",
|
|
14
|
+
CosmeticallyDated: "cosmetically_dated",
|
|
15
|
+
RenovationNeeded: "renovation_needed",
|
|
16
|
+
Derelict: "derelict",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* The state of repair the photographs suggest.
|
|
20
|
+
*/
|
|
21
|
+
export type ImageCondition = OpenEnum<typeof ImageCondition>;
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const ImageCondition$inboundSchema: z.ZodType<
|
|
25
|
+
ImageCondition,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = openEnums.inboundSchema(ImageCondition);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* What the image is, rather than what it shows. A `photo` is a photograph of the property or its surroundings; the other values are documents published alongside the photographs.
|
|
11
|
+
*/
|
|
12
|
+
export const ImageDocumentClass = {
|
|
13
|
+
Photo: "photo",
|
|
14
|
+
FloorPlan: "floor_plan",
|
|
15
|
+
EpcChart: "epc_chart",
|
|
16
|
+
BrochurePage: "brochure_page",
|
|
17
|
+
SitePlan: "site_plan",
|
|
18
|
+
Map: "map",
|
|
19
|
+
AgentBranding: "agent_branding",
|
|
20
|
+
Other: "other",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* What the image is, rather than what it shows. A `photo` is a photograph of the property or its surroundings; the other values are documents published alongside the photographs.
|
|
24
|
+
*/
|
|
25
|
+
export type ImageDocumentClass = OpenEnum<typeof ImageDocumentClass>;
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const ImageDocumentClass$inboundSchema: z.ZodType<
|
|
29
|
+
ImageDocumentClass,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = openEnums.inboundSchema(ImageDocumentClass);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const ImageQuality = {
|
|
10
|
+
WatermarkPresent: "watermark_present",
|
|
11
|
+
VirtuallyStaged: "virtually_staged",
|
|
12
|
+
EmptyRoom: "empty_room",
|
|
13
|
+
Furnished: "furnished",
|
|
14
|
+
} as const;
|
|
15
|
+
export type ImageQuality = OpenEnum<typeof ImageQuality>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ImageQuality$inboundSchema: z.ZodType<
|
|
19
|
+
ImageQuality,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = openEnums.inboundSchema(ImageQuality);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The space shown, as a hierarchical key such as `interior.bathroom.ensuite`.
|
|
11
|
+
*/
|
|
12
|
+
export const ImageScene = {
|
|
13
|
+
Interior: "interior",
|
|
14
|
+
Exterior: "exterior",
|
|
15
|
+
OutdoorSpace: "outdoor_space",
|
|
16
|
+
Communal: "communal",
|
|
17
|
+
NonProperty: "non_property",
|
|
18
|
+
InteriorKitchen: "interior.kitchen",
|
|
19
|
+
InteriorBathroom: "interior.bathroom",
|
|
20
|
+
InteriorBathroomEnsuite: "interior.bathroom.ensuite",
|
|
21
|
+
InteriorBathroomShowerRoom: "interior.bathroom.shower_room",
|
|
22
|
+
InteriorBathroomCloakroom: "interior.bathroom.cloakroom",
|
|
23
|
+
InteriorBedroom: "interior.bedroom",
|
|
24
|
+
InteriorLivingRoom: "interior.living_room",
|
|
25
|
+
InteriorDiningRoom: "interior.dining_room",
|
|
26
|
+
InteriorKitchenDiner: "interior.kitchen_diner",
|
|
27
|
+
InteriorKitchenLiving: "interior.kitchen_living",
|
|
28
|
+
InteriorHallway: "interior.hallway",
|
|
29
|
+
InteriorLanding: "interior.landing",
|
|
30
|
+
InteriorStairs: "interior.stairs",
|
|
31
|
+
InteriorUtilityRoom: "interior.utility_room",
|
|
32
|
+
InteriorStudy: "interior.study",
|
|
33
|
+
InteriorConservatory: "interior.conservatory",
|
|
34
|
+
InteriorPorch: "interior.porch",
|
|
35
|
+
InteriorBasement: "interior.basement",
|
|
36
|
+
InteriorAttic: "interior.attic",
|
|
37
|
+
InteriorDressingRoom: "interior.dressing_room",
|
|
38
|
+
InteriorStorage: "interior.storage",
|
|
39
|
+
InteriorGarageInterior: "interior.garage_interior",
|
|
40
|
+
InteriorGym: "interior.gym",
|
|
41
|
+
InteriorGamesRoom: "interior.games_room",
|
|
42
|
+
InteriorLibrary: "interior.library",
|
|
43
|
+
InteriorWineCellar: "interior.wine_cellar",
|
|
44
|
+
InteriorWorkshop: "interior.workshop",
|
|
45
|
+
InteriorSauna: "interior.sauna",
|
|
46
|
+
InteriorPoolRoom: "interior.pool_room",
|
|
47
|
+
ExteriorFrontElevation: "exterior.front_elevation",
|
|
48
|
+
ExteriorRearElevation: "exterior.rear_elevation",
|
|
49
|
+
ExteriorAerial: "exterior.aerial",
|
|
50
|
+
ExteriorStreet: "exterior.street",
|
|
51
|
+
OutdoorSpaceGarden: "outdoor_space.garden",
|
|
52
|
+
OutdoorSpacePatio: "outdoor_space.patio",
|
|
53
|
+
OutdoorSpaceTerrace: "outdoor_space.terrace",
|
|
54
|
+
OutdoorSpaceBalcony: "outdoor_space.balcony",
|
|
55
|
+
OutdoorSpaceDriveway: "outdoor_space.driveway",
|
|
56
|
+
OutdoorSpacePool: "outdoor_space.pool",
|
|
57
|
+
OutdoorSpaceOutbuilding: "outdoor_space.outbuilding",
|
|
58
|
+
CommunalLobby: "communal.lobby",
|
|
59
|
+
CommunalCorridor: "communal.corridor",
|
|
60
|
+
CommunalGarden: "communal.garden",
|
|
61
|
+
} as const;
|
|
62
|
+
/**
|
|
63
|
+
* The space shown, as a hierarchical key such as `interior.bathroom.ensuite`.
|
|
64
|
+
*/
|
|
65
|
+
export type ImageScene = OpenEnum<typeof ImageScene>;
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const ImageScene$inboundSchema: z.ZodType<
|
|
69
|
+
ImageScene,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
unknown
|
|
72
|
+
> = openEnums.inboundSchema(ImageScene);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { ImageScene, ImageScene$inboundSchema } from "./imagescene.js";
|
|
10
|
+
|
|
11
|
+
export type ImageSceneLabel = {
|
|
12
|
+
/**
|
|
13
|
+
* How strongly the image supports this key, from 0 to 1.
|
|
14
|
+
*/
|
|
15
|
+
confidence?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The space shown, as a hierarchical key such as `interior.bathroom.ensuite`.
|
|
18
|
+
*/
|
|
19
|
+
key?: ImageScene | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ImageSceneLabel$inboundSchema: z.ZodType<
|
|
24
|
+
ImageSceneLabel,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
confidence: z.number().optional(),
|
|
29
|
+
key: ImageScene$inboundSchema.optional(),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export function imageSceneLabelFromJSON(
|
|
33
|
+
jsonString: string,
|
|
34
|
+
): SafeParseResult<ImageSceneLabel, SDKValidationError> {
|
|
35
|
+
return safeParse(
|
|
36
|
+
jsonString,
|
|
37
|
+
(x) => ImageSceneLabel$inboundSchema.parse(JSON.parse(x)),
|
|
38
|
+
`Failed to parse 'ImageSceneLabel' from JSON`,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -212,6 +212,11 @@ export * from "./heritagezone.js";
|
|
|
212
212
|
export * from "./histogramaggregationresult.js";
|
|
213
213
|
export * from "./histogrambucket.js";
|
|
214
214
|
export * from "./historicalvaluation.js";
|
|
215
|
+
export * from "./imagecondition.js";
|
|
216
|
+
export * from "./imagedocumentclass.js";
|
|
217
|
+
export * from "./imagequality.js";
|
|
218
|
+
export * from "./imagescene.js";
|
|
219
|
+
export * from "./imagescenelabel.js";
|
|
215
220
|
export * from "./insuranceavailability.js";
|
|
216
221
|
export * from "./insuranceimpact.js";
|
|
217
222
|
export * from "./insurancepremiumimpact.js";
|
|
@@ -246,6 +251,7 @@ export * from "./mortgagecharge.js";
|
|
|
246
251
|
export * from "./nearestpostcodesresponse.js";
|
|
247
252
|
export * from "./nestedaggregation.js";
|
|
248
253
|
export * from "./nestedaggregationresult.js";
|
|
254
|
+
export * from "./observedfeature.js";
|
|
249
255
|
export * from "./officer.js";
|
|
250
256
|
export * from "./officerlistresponse.js";
|
|
251
257
|
export * from "./officerresponse.js";
|
|
@@ -425,6 +431,8 @@ export * from "./titledocumentsummary.js";
|
|
|
425
431
|
export * from "./titleextractionpayload.js";
|
|
426
432
|
export * from "./titleextractionpollresponse.js";
|
|
427
433
|
export * from "./titlenotice.js";
|
|
434
|
+
export * from "./titlepricepaid.js";
|
|
435
|
+
export * from "./titlepropertyright.js";
|
|
428
436
|
export * from "./titleproprietor.js";
|
|
429
437
|
export * from "./titlerestriction.js";
|
|
430
438
|
export * from "./titleschedulenoticeoflease.js";
|
|
@@ -12,11 +12,19 @@ import * as openEnums from "../../types/enums.js";
|
|
|
12
12
|
import { OpenEnum } from "../../types/enums.js";
|
|
13
13
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
14
14
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
15
|
+
import {
|
|
16
|
+
ImageCondition,
|
|
17
|
+
ImageCondition$inboundSchema,
|
|
18
|
+
} from "./imagecondition.js";
|
|
15
19
|
import { ListingImage, ListingImage$inboundSchema } from "./listingimage.js";
|
|
16
20
|
import {
|
|
17
21
|
ListingPriceChange,
|
|
18
22
|
ListingPriceChange$inboundSchema,
|
|
19
23
|
} from "./listingpricechange.js";
|
|
24
|
+
import {
|
|
25
|
+
ObservedFeature,
|
|
26
|
+
ObservedFeature$inboundSchema,
|
|
27
|
+
} from "./observedfeature.js";
|
|
20
28
|
|
|
21
29
|
/**
|
|
22
30
|
* Features the listing advertises.
|
|
@@ -46,6 +54,110 @@ export type ListingFeatures = {
|
|
|
46
54
|
additionalProperties?: { [k: string]: any } | undefined;
|
|
47
55
|
};
|
|
48
56
|
|
|
57
|
+
/**
|
|
58
|
+
* The state of repair across the photographs as a whole. Null when too few photographs carry an assessment to summarise one.
|
|
59
|
+
*/
|
|
60
|
+
export type ListingCondition = {
|
|
61
|
+
/**
|
|
62
|
+
* Confidence in that assessment, from 0 to 1.
|
|
63
|
+
*/
|
|
64
|
+
confidence?: number | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The state of repair the photographs suggest.
|
|
67
|
+
*/
|
|
68
|
+
value?: ImageCondition | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* How the photographs present the property, keyed by quality key. `virtually_staged` is worth reading before treating condition as evidence, because digitally added furniture changes how a room reads.
|
|
73
|
+
*/
|
|
74
|
+
export type Presentation = {
|
|
75
|
+
emptyRoom?: ObservedFeature | undefined;
|
|
76
|
+
furnished?: ObservedFeature | undefined;
|
|
77
|
+
virtuallyStaged?: ObservedFeature | undefined;
|
|
78
|
+
watermarkPresent?: ObservedFeature | undefined;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Spaces the photographs show, keyed by scene key, each with the evidence behind it. A key is absent when no photograph supports it, which is not the same as the property lacking that space.
|
|
83
|
+
*/
|
|
84
|
+
export type Spaces = {
|
|
85
|
+
communal?: ObservedFeature | undefined;
|
|
86
|
+
communalCorridor?: ObservedFeature | undefined;
|
|
87
|
+
communalGarden?: ObservedFeature | undefined;
|
|
88
|
+
communalLobby?: ObservedFeature | undefined;
|
|
89
|
+
exterior?: ObservedFeature | undefined;
|
|
90
|
+
exteriorAerial?: ObservedFeature | undefined;
|
|
91
|
+
exteriorFrontElevation?: ObservedFeature | undefined;
|
|
92
|
+
exteriorRearElevation?: ObservedFeature | undefined;
|
|
93
|
+
exteriorStreet?: ObservedFeature | undefined;
|
|
94
|
+
interior?: ObservedFeature | undefined;
|
|
95
|
+
interiorAttic?: ObservedFeature | undefined;
|
|
96
|
+
interiorBasement?: ObservedFeature | undefined;
|
|
97
|
+
interiorBathroom?: ObservedFeature | undefined;
|
|
98
|
+
interiorBathroomCloakroom?: ObservedFeature | undefined;
|
|
99
|
+
interiorBathroomEnsuite?: ObservedFeature | undefined;
|
|
100
|
+
interiorBathroomShowerRoom?: ObservedFeature | undefined;
|
|
101
|
+
interiorBedroom?: ObservedFeature | undefined;
|
|
102
|
+
interiorConservatory?: ObservedFeature | undefined;
|
|
103
|
+
interiorDiningRoom?: ObservedFeature | undefined;
|
|
104
|
+
interiorDressingRoom?: ObservedFeature | undefined;
|
|
105
|
+
interiorGamesRoom?: ObservedFeature | undefined;
|
|
106
|
+
interiorGarageInterior?: ObservedFeature | undefined;
|
|
107
|
+
interiorGym?: ObservedFeature | undefined;
|
|
108
|
+
interiorHallway?: ObservedFeature | undefined;
|
|
109
|
+
interiorKitchen?: ObservedFeature | undefined;
|
|
110
|
+
interiorKitchenDiner?: ObservedFeature | undefined;
|
|
111
|
+
interiorKitchenLiving?: ObservedFeature | undefined;
|
|
112
|
+
interiorLanding?: ObservedFeature | undefined;
|
|
113
|
+
interiorLibrary?: ObservedFeature | undefined;
|
|
114
|
+
interiorLivingRoom?: ObservedFeature | undefined;
|
|
115
|
+
interiorPoolRoom?: ObservedFeature | undefined;
|
|
116
|
+
interiorPorch?: ObservedFeature | undefined;
|
|
117
|
+
interiorSauna?: ObservedFeature | undefined;
|
|
118
|
+
interiorStairs?: ObservedFeature | undefined;
|
|
119
|
+
interiorStorage?: ObservedFeature | undefined;
|
|
120
|
+
interiorStudy?: ObservedFeature | undefined;
|
|
121
|
+
interiorUtilityRoom?: ObservedFeature | undefined;
|
|
122
|
+
interiorWineCellar?: ObservedFeature | undefined;
|
|
123
|
+
interiorWorkshop?: ObservedFeature | undefined;
|
|
124
|
+
nonProperty?: ObservedFeature | undefined;
|
|
125
|
+
outdoorSpace?: ObservedFeature | undefined;
|
|
126
|
+
outdoorSpaceBalcony?: ObservedFeature | undefined;
|
|
127
|
+
outdoorSpaceDriveway?: ObservedFeature | undefined;
|
|
128
|
+
outdoorSpaceGarden?: ObservedFeature | undefined;
|
|
129
|
+
outdoorSpaceOutbuilding?: ObservedFeature | undefined;
|
|
130
|
+
outdoorSpacePatio?: ObservedFeature | undefined;
|
|
131
|
+
outdoorSpacePool?: ObservedFeature | undefined;
|
|
132
|
+
outdoorSpaceTerrace?: ObservedFeature | undefined;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* What the listing's photographs show, as distinct from what its text advertises. Null until the gallery has been analysed.
|
|
137
|
+
*/
|
|
138
|
+
export type ObservedFeatures = {
|
|
139
|
+
/**
|
|
140
|
+
* The state of repair across the photographs as a whole. Null when too few photographs carry an assessment to summarise one.
|
|
141
|
+
*/
|
|
142
|
+
condition?: ListingCondition | null | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* How many of the listing's images these values were drawn from.
|
|
145
|
+
*/
|
|
146
|
+
imagesAnalysed?: number | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* How the photographs present the property, keyed by quality key. `virtually_staged` is worth reading before treating condition as evidence, because digitally added furniture changes how a room reads.
|
|
149
|
+
*/
|
|
150
|
+
presentation?: Presentation | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Spaces the photographs show, keyed by scene key, each with the evidence behind it. A key is absent when no photograph supports it, which is not the same as the property lacking that space.
|
|
153
|
+
*/
|
|
154
|
+
spaces?: Spaces | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Release of the label vocabulary these values were produced against.
|
|
157
|
+
*/
|
|
158
|
+
taxonomyVersion?: string | undefined;
|
|
159
|
+
};
|
|
160
|
+
|
|
49
161
|
/**
|
|
50
162
|
* What the listing asks for the property.
|
|
51
163
|
*/
|
|
@@ -142,6 +254,10 @@ export type Listing = {
|
|
|
142
254
|
* Identifier of this listing.
|
|
143
255
|
*/
|
|
144
256
|
listingId?: string | undefined;
|
|
257
|
+
/**
|
|
258
|
+
* What the listing's photographs show, as distinct from what its text advertises. Null until the gallery has been analysed.
|
|
259
|
+
*/
|
|
260
|
+
observedFeatures?: ObservedFeatures | null | undefined;
|
|
145
261
|
/**
|
|
146
262
|
* Every price this listing has been advertised at, starting with the first.
|
|
147
263
|
*/
|
|
@@ -151,9 +267,9 @@ export type Listing = {
|
|
|
151
267
|
*/
|
|
152
268
|
pricing?: Pricing | undefined;
|
|
153
269
|
/**
|
|
154
|
-
* When the listing was first published, as an ISO 8601 timestamp.
|
|
270
|
+
* When the listing was first published, as an ISO 8601 timestamp. Null when the source does not publish one.
|
|
155
271
|
*/
|
|
156
|
-
publishedDate?: Date | undefined;
|
|
272
|
+
publishedDate?: Date | null | undefined;
|
|
157
273
|
/**
|
|
158
274
|
* When the listing was taken down, as an ISO 8601 timestamp. Null while it is still live.
|
|
159
275
|
*/
|
|
@@ -219,6 +335,189 @@ export function listingFeaturesFromJSON(
|
|
|
219
335
|
);
|
|
220
336
|
}
|
|
221
337
|
|
|
338
|
+
/** @internal */
|
|
339
|
+
export const ListingCondition$inboundSchema: z.ZodType<
|
|
340
|
+
ListingCondition,
|
|
341
|
+
z.ZodTypeDef,
|
|
342
|
+
unknown
|
|
343
|
+
> = z.object({
|
|
344
|
+
confidence: z.number().optional(),
|
|
345
|
+
value: ImageCondition$inboundSchema.optional(),
|
|
346
|
+
});
|
|
347
|
+
|
|
348
|
+
export function listingConditionFromJSON(
|
|
349
|
+
jsonString: string,
|
|
350
|
+
): SafeParseResult<ListingCondition, SDKValidationError> {
|
|
351
|
+
return safeParse(
|
|
352
|
+
jsonString,
|
|
353
|
+
(x) => ListingCondition$inboundSchema.parse(JSON.parse(x)),
|
|
354
|
+
`Failed to parse 'ListingCondition' from JSON`,
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/** @internal */
|
|
359
|
+
export const Presentation$inboundSchema: z.ZodType<
|
|
360
|
+
Presentation,
|
|
361
|
+
z.ZodTypeDef,
|
|
362
|
+
unknown
|
|
363
|
+
> = z.object({
|
|
364
|
+
empty_room: ObservedFeature$inboundSchema.optional(),
|
|
365
|
+
furnished: ObservedFeature$inboundSchema.optional(),
|
|
366
|
+
virtually_staged: ObservedFeature$inboundSchema.optional(),
|
|
367
|
+
watermark_present: ObservedFeature$inboundSchema.optional(),
|
|
368
|
+
}).transform((v) => {
|
|
369
|
+
return remap$(v, {
|
|
370
|
+
"empty_room": "emptyRoom",
|
|
371
|
+
"virtually_staged": "virtuallyStaged",
|
|
372
|
+
"watermark_present": "watermarkPresent",
|
|
373
|
+
});
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
export function presentationFromJSON(
|
|
377
|
+
jsonString: string,
|
|
378
|
+
): SafeParseResult<Presentation, SDKValidationError> {
|
|
379
|
+
return safeParse(
|
|
380
|
+
jsonString,
|
|
381
|
+
(x) => Presentation$inboundSchema.parse(JSON.parse(x)),
|
|
382
|
+
`Failed to parse 'Presentation' from JSON`,
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/** @internal */
|
|
387
|
+
export const Spaces$inboundSchema: z.ZodType<Spaces, z.ZodTypeDef, unknown> = z
|
|
388
|
+
.object({
|
|
389
|
+
communal: ObservedFeature$inboundSchema.optional(),
|
|
390
|
+
"communal.corridor": ObservedFeature$inboundSchema.optional(),
|
|
391
|
+
"communal.garden": ObservedFeature$inboundSchema.optional(),
|
|
392
|
+
"communal.lobby": ObservedFeature$inboundSchema.optional(),
|
|
393
|
+
exterior: ObservedFeature$inboundSchema.optional(),
|
|
394
|
+
"exterior.aerial": ObservedFeature$inboundSchema.optional(),
|
|
395
|
+
"exterior.front_elevation": ObservedFeature$inboundSchema.optional(),
|
|
396
|
+
"exterior.rear_elevation": ObservedFeature$inboundSchema.optional(),
|
|
397
|
+
"exterior.street": ObservedFeature$inboundSchema.optional(),
|
|
398
|
+
interior: ObservedFeature$inboundSchema.optional(),
|
|
399
|
+
"interior.attic": ObservedFeature$inboundSchema.optional(),
|
|
400
|
+
"interior.basement": ObservedFeature$inboundSchema.optional(),
|
|
401
|
+
"interior.bathroom": ObservedFeature$inboundSchema.optional(),
|
|
402
|
+
"interior.bathroom.cloakroom": ObservedFeature$inboundSchema.optional(),
|
|
403
|
+
"interior.bathroom.ensuite": ObservedFeature$inboundSchema.optional(),
|
|
404
|
+
"interior.bathroom.shower_room": ObservedFeature$inboundSchema.optional(),
|
|
405
|
+
"interior.bedroom": ObservedFeature$inboundSchema.optional(),
|
|
406
|
+
"interior.conservatory": ObservedFeature$inboundSchema.optional(),
|
|
407
|
+
"interior.dining_room": ObservedFeature$inboundSchema.optional(),
|
|
408
|
+
"interior.dressing_room": ObservedFeature$inboundSchema.optional(),
|
|
409
|
+
"interior.games_room": ObservedFeature$inboundSchema.optional(),
|
|
410
|
+
"interior.garage_interior": ObservedFeature$inboundSchema.optional(),
|
|
411
|
+
"interior.gym": ObservedFeature$inboundSchema.optional(),
|
|
412
|
+
"interior.hallway": ObservedFeature$inboundSchema.optional(),
|
|
413
|
+
"interior.kitchen": ObservedFeature$inboundSchema.optional(),
|
|
414
|
+
"interior.kitchen_diner": ObservedFeature$inboundSchema.optional(),
|
|
415
|
+
"interior.kitchen_living": ObservedFeature$inboundSchema.optional(),
|
|
416
|
+
"interior.landing": ObservedFeature$inboundSchema.optional(),
|
|
417
|
+
"interior.library": ObservedFeature$inboundSchema.optional(),
|
|
418
|
+
"interior.living_room": ObservedFeature$inboundSchema.optional(),
|
|
419
|
+
"interior.pool_room": ObservedFeature$inboundSchema.optional(),
|
|
420
|
+
"interior.porch": ObservedFeature$inboundSchema.optional(),
|
|
421
|
+
"interior.sauna": ObservedFeature$inboundSchema.optional(),
|
|
422
|
+
"interior.stairs": ObservedFeature$inboundSchema.optional(),
|
|
423
|
+
"interior.storage": ObservedFeature$inboundSchema.optional(),
|
|
424
|
+
"interior.study": ObservedFeature$inboundSchema.optional(),
|
|
425
|
+
"interior.utility_room": ObservedFeature$inboundSchema.optional(),
|
|
426
|
+
"interior.wine_cellar": ObservedFeature$inboundSchema.optional(),
|
|
427
|
+
"interior.workshop": ObservedFeature$inboundSchema.optional(),
|
|
428
|
+
non_property: ObservedFeature$inboundSchema.optional(),
|
|
429
|
+
outdoor_space: ObservedFeature$inboundSchema.optional(),
|
|
430
|
+
"outdoor_space.balcony": ObservedFeature$inboundSchema.optional(),
|
|
431
|
+
"outdoor_space.driveway": ObservedFeature$inboundSchema.optional(),
|
|
432
|
+
"outdoor_space.garden": ObservedFeature$inboundSchema.optional(),
|
|
433
|
+
"outdoor_space.outbuilding": ObservedFeature$inboundSchema.optional(),
|
|
434
|
+
"outdoor_space.patio": ObservedFeature$inboundSchema.optional(),
|
|
435
|
+
"outdoor_space.pool": ObservedFeature$inboundSchema.optional(),
|
|
436
|
+
"outdoor_space.terrace": ObservedFeature$inboundSchema.optional(),
|
|
437
|
+
}).transform((v) => {
|
|
438
|
+
return remap$(v, {
|
|
439
|
+
"communal.corridor": "communalCorridor",
|
|
440
|
+
"communal.garden": "communalGarden",
|
|
441
|
+
"communal.lobby": "communalLobby",
|
|
442
|
+
"exterior.aerial": "exteriorAerial",
|
|
443
|
+
"exterior.front_elevation": "exteriorFrontElevation",
|
|
444
|
+
"exterior.rear_elevation": "exteriorRearElevation",
|
|
445
|
+
"exterior.street": "exteriorStreet",
|
|
446
|
+
"interior.attic": "interiorAttic",
|
|
447
|
+
"interior.basement": "interiorBasement",
|
|
448
|
+
"interior.bathroom": "interiorBathroom",
|
|
449
|
+
"interior.bathroom.cloakroom": "interiorBathroomCloakroom",
|
|
450
|
+
"interior.bathroom.ensuite": "interiorBathroomEnsuite",
|
|
451
|
+
"interior.bathroom.shower_room": "interiorBathroomShowerRoom",
|
|
452
|
+
"interior.bedroom": "interiorBedroom",
|
|
453
|
+
"interior.conservatory": "interiorConservatory",
|
|
454
|
+
"interior.dining_room": "interiorDiningRoom",
|
|
455
|
+
"interior.dressing_room": "interiorDressingRoom",
|
|
456
|
+
"interior.games_room": "interiorGamesRoom",
|
|
457
|
+
"interior.garage_interior": "interiorGarageInterior",
|
|
458
|
+
"interior.gym": "interiorGym",
|
|
459
|
+
"interior.hallway": "interiorHallway",
|
|
460
|
+
"interior.kitchen": "interiorKitchen",
|
|
461
|
+
"interior.kitchen_diner": "interiorKitchenDiner",
|
|
462
|
+
"interior.kitchen_living": "interiorKitchenLiving",
|
|
463
|
+
"interior.landing": "interiorLanding",
|
|
464
|
+
"interior.library": "interiorLibrary",
|
|
465
|
+
"interior.living_room": "interiorLivingRoom",
|
|
466
|
+
"interior.pool_room": "interiorPoolRoom",
|
|
467
|
+
"interior.porch": "interiorPorch",
|
|
468
|
+
"interior.sauna": "interiorSauna",
|
|
469
|
+
"interior.stairs": "interiorStairs",
|
|
470
|
+
"interior.storage": "interiorStorage",
|
|
471
|
+
"interior.study": "interiorStudy",
|
|
472
|
+
"interior.utility_room": "interiorUtilityRoom",
|
|
473
|
+
"interior.wine_cellar": "interiorWineCellar",
|
|
474
|
+
"interior.workshop": "interiorWorkshop",
|
|
475
|
+
"non_property": "nonProperty",
|
|
476
|
+
"outdoor_space": "outdoorSpace",
|
|
477
|
+
"outdoor_space.balcony": "outdoorSpaceBalcony",
|
|
478
|
+
"outdoor_space.driveway": "outdoorSpaceDriveway",
|
|
479
|
+
"outdoor_space.garden": "outdoorSpaceGarden",
|
|
480
|
+
"outdoor_space.outbuilding": "outdoorSpaceOutbuilding",
|
|
481
|
+
"outdoor_space.patio": "outdoorSpacePatio",
|
|
482
|
+
"outdoor_space.pool": "outdoorSpacePool",
|
|
483
|
+
"outdoor_space.terrace": "outdoorSpaceTerrace",
|
|
484
|
+
});
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
export function spacesFromJSON(
|
|
488
|
+
jsonString: string,
|
|
489
|
+
): SafeParseResult<Spaces, SDKValidationError> {
|
|
490
|
+
return safeParse(
|
|
491
|
+
jsonString,
|
|
492
|
+
(x) => Spaces$inboundSchema.parse(JSON.parse(x)),
|
|
493
|
+
`Failed to parse 'Spaces' from JSON`,
|
|
494
|
+
);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/** @internal */
|
|
498
|
+
export const ObservedFeatures$inboundSchema: z.ZodType<
|
|
499
|
+
ObservedFeatures,
|
|
500
|
+
z.ZodTypeDef,
|
|
501
|
+
unknown
|
|
502
|
+
> = z.object({
|
|
503
|
+
condition: z.nullable(z.lazy(() => ListingCondition$inboundSchema))
|
|
504
|
+
.optional(),
|
|
505
|
+
imagesAnalysed: z.number().int().optional(),
|
|
506
|
+
presentation: z.lazy(() => Presentation$inboundSchema).optional(),
|
|
507
|
+
spaces: z.lazy(() => Spaces$inboundSchema).optional(),
|
|
508
|
+
taxonomyVersion: z.string().optional(),
|
|
509
|
+
});
|
|
510
|
+
|
|
511
|
+
export function observedFeaturesFromJSON(
|
|
512
|
+
jsonString: string,
|
|
513
|
+
): SafeParseResult<ObservedFeatures, SDKValidationError> {
|
|
514
|
+
return safeParse(
|
|
515
|
+
jsonString,
|
|
516
|
+
(x) => ObservedFeatures$inboundSchema.parse(JSON.parse(x)),
|
|
517
|
+
`Failed to parse 'ObservedFeatures' from JSON`,
|
|
518
|
+
);
|
|
519
|
+
}
|
|
520
|
+
|
|
222
521
|
/** @internal */
|
|
223
522
|
export const Pricing$inboundSchema: z.ZodType<Pricing, z.ZodTypeDef, unknown> =
|
|
224
523
|
z.object({
|
|
@@ -297,10 +596,12 @@ export const Listing$inboundSchema: z.ZodType<Listing, z.ZodTypeDef, unknown> =
|
|
|
297
596
|
floorPlanImages: z.array(ListingImage$inboundSchema).optional(),
|
|
298
597
|
images: z.array(ListingImage$inboundSchema).optional(),
|
|
299
598
|
listingId: z.string().optional(),
|
|
599
|
+
observedFeatures: z.nullable(z.lazy(() => ObservedFeatures$inboundSchema))
|
|
600
|
+
.optional(),
|
|
300
601
|
priceChange: z.array(ListingPriceChange$inboundSchema).optional(),
|
|
301
602
|
pricing: z.lazy(() => Pricing$inboundSchema).optional(),
|
|
302
|
-
publishedDate: z.
|
|
303
|
-
new Date(v)
|
|
603
|
+
publishedDate: z.nullable(
|
|
604
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
304
605
|
).optional(),
|
|
305
606
|
removedDate: z.nullable(
|
|
306
607
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|