@vepler/sdk 2.50.3 → 2.57.3
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 +249 -246
- package/dist/commonjs/funcs/epcQueryEPC.d.ts +18 -0
- package/dist/commonjs/funcs/epcQueryEPC.d.ts.map +1 -0
- package/dist/commonjs/funcs/epcQueryEPC.js +118 -0
- package/dist/commonjs/funcs/epcQueryEPC.js.map +1 -0
- 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/lib/security.d.ts +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +19 -8
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/sdk/epc.d.ts +8 -0
- package/dist/commonjs/sdk/epc.d.ts.map +1 -1
- package/dist/commonjs/sdk/epc.js +10 -0
- package/dist/commonjs/sdk/epc.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/index.d.ts +1 -0
- package/dist/commonjs/sdk/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/index.js +1 -0
- package/dist/commonjs/sdk/models/errors/index.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/queryepc.d.ts +71 -0
- package/dist/commonjs/sdk/models/errors/queryepc.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/queryepc.js +101 -0
- package/dist/commonjs/sdk/models/errors/queryepc.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcareafilter.d.ts +12 -0
- package/dist/commonjs/sdk/models/shared/epcareafilter.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcareafilter.js +56 -0
- package/dist/commonjs/sdk/models/shared/epcareafilter.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcdata.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/epcdata.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/epcdata.js +5 -5
- package/dist/commonjs/sdk/models/shared/epcdata.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/epclocalauthorityareafilter.d.ts +17 -0
- package/dist/commonjs/sdk/models/shared/epclocalauthorityareafilter.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/{sitescores.js → epclocalauthorityareafilter.js} +8 -10
- package/dist/commonjs/sdk/models/shared/epclocalauthorityareafilter.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcpointareafilter.d.ts +22 -0
- package/dist/commonjs/sdk/models/shared/epcpointareafilter.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcpointareafilter.js +51 -0
- package/dist/commonjs/sdk/models/shared/epcpointareafilter.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcpolygonareafilter.d.ts +17 -0
- package/dist/commonjs/sdk/models/shared/epcpolygonareafilter.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcpolygonareafilter.js +50 -0
- package/dist/commonjs/sdk/models/shared/epcpolygonareafilter.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcpostcodeareafilter.d.ts +17 -0
- package/dist/commonjs/sdk/models/shared/epcpostcodeareafilter.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcpostcodeareafilter.js +50 -0
- package/dist/commonjs/sdk/models/shared/epcpostcodeareafilter.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcquerycondition.d.ts +105 -0
- package/dist/commonjs/sdk/models/shared/epcquerycondition.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcquerycondition.js +130 -0
- package/dist/commonjs/sdk/models/shared/epcquerycondition.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcquerygroup.d.ts +16 -0
- package/dist/commonjs/sdk/models/shared/epcquerygroup.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcquerygroup.js +50 -0
- package/dist/commonjs/sdk/models/shared/epcquerygroup.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcqueryoperator.d.ts +35 -0
- package/dist/commonjs/sdk/models/shared/epcqueryoperator.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcqueryoperator.js +61 -0
- package/dist/commonjs/sdk/models/shared/epcqueryoperator.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcqueryrequest.d.ts +52 -0
- package/dist/commonjs/sdk/models/shared/epcqueryrequest.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcqueryrequest.js +63 -0
- package/dist/commonjs/sdk/models/shared/epcqueryrequest.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcqueryresponse.d.ts +2476 -0
- package/dist/commonjs/sdk/models/shared/epcqueryresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcqueryresponse.js +1507 -0
- package/dist/commonjs/sdk/models/shared/epcqueryresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcsort.d.ts +51 -0
- package/dist/commonjs/sdk/models/shared/epcsort.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcsort.js +72 -0
- package/dist/commonjs/sdk/models/shared/epcsort.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +11 -1
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +11 -1
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/marketstatus.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/marketstatus.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/marketstatus.js +1 -1
- package/dist/commonjs/sdk/models/shared/marketstatus.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/nearestpostcodesresponse.d.ts +8 -8
- package/dist/commonjs/sdk/models/shared/nearestpostcodesresponse.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/nearestpostcodesresponse.js +11 -11
- package/dist/commonjs/sdk/models/shared/nearestpostcodesresponse.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyaddress.js +4 -4
- package/dist/commonjs/sdk/models/shared/propertyaddress.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertydataapi.d.ts +284 -0
- package/dist/commonjs/sdk/models/shared/propertydataapi.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertydataapi.js +138 -1
- package/dist/commonjs/sdk/models/shared/propertydataapi.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyquerycondition.d.ts +8 -8
- package/dist/commonjs/sdk/models/shared/propertyquerycondition.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyquerycondition.js +8 -9
- package/dist/commonjs/sdk/models/shared/propertyquerycondition.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyqueryoperator.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/propertyqueryoperator.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyqueryoperator.js +4 -5
- package/dist/commonjs/sdk/models/shared/propertyqueryoperator.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.js +5 -5
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/site.d.ts +86 -13
- package/dist/commonjs/sdk/models/shared/site.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/site.js +71 -8
- package/dist/commonjs/sdk/models/shared/site.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/siteownership.d.ts +36 -4
- package/dist/commonjs/sdk/models/shared/siteownership.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/siteownership.js +27 -3
- package/dist/commonjs/sdk/models/shared/siteownership.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitequerycondition.d.ts +4 -9
- package/dist/commonjs/sdk/models/shared/sitequerycondition.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitequerycondition.js +4 -9
- package/dist/commonjs/sdk/models/shared/sitequerycondition.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitequeryrequest.d.ts +0 -3
- package/dist/commonjs/sdk/models/shared/sitequeryrequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitequeryrequest.js +0 -3
- package/dist/commonjs/sdk/models/shared/sitequeryrequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitetags.d.ts +1 -9
- package/dist/commonjs/sdk/models/shared/sitetags.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitetags.js +0 -2
- package/dist/commonjs/sdk/models/shared/sitetags.js.map +1 -1
- package/dist/esm/funcs/epcQueryEPC.d.ts +18 -0
- package/dist/esm/funcs/epcQueryEPC.d.ts.map +1 -0
- package/dist/esm/funcs/epcQueryEPC.js +82 -0
- package/dist/esm/funcs/epcQueryEPC.js.map +1 -0
- 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/lib/security.d.ts +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +19 -8
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/sdk/epc.d.ts +8 -0
- package/dist/esm/sdk/epc.d.ts.map +1 -1
- package/dist/esm/sdk/epc.js +10 -0
- package/dist/esm/sdk/epc.js.map +1 -1
- package/dist/esm/sdk/models/errors/index.d.ts +1 -0
- package/dist/esm/sdk/models/errors/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/index.js +1 -0
- package/dist/esm/sdk/models/errors/index.js.map +1 -1
- package/dist/esm/sdk/models/errors/queryepc.d.ts +71 -0
- package/dist/esm/sdk/models/errors/queryepc.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/queryepc.js +63 -0
- package/dist/esm/sdk/models/errors/queryepc.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcareafilter.d.ts +12 -0
- package/dist/esm/sdk/models/shared/epcareafilter.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epcareafilter.js +19 -0
- package/dist/esm/sdk/models/shared/epcareafilter.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcdata.d.ts +4 -4
- package/dist/esm/sdk/models/shared/epcdata.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/epcdata.js +3 -3
- package/dist/esm/sdk/models/shared/epcdata.js.map +1 -1
- package/dist/esm/sdk/models/shared/epclocalauthorityareafilter.d.ts +17 -0
- package/dist/esm/sdk/models/shared/epclocalauthorityareafilter.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epclocalauthorityareafilter.js +13 -0
- package/dist/esm/sdk/models/shared/epclocalauthorityareafilter.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcpointareafilter.d.ts +22 -0
- package/dist/esm/sdk/models/shared/epcpointareafilter.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epcpointareafilter.js +14 -0
- package/dist/esm/sdk/models/shared/epcpointareafilter.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcpolygonareafilter.d.ts +17 -0
- package/dist/esm/sdk/models/shared/epcpolygonareafilter.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epcpolygonareafilter.js +13 -0
- package/dist/esm/sdk/models/shared/epcpolygonareafilter.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcpostcodeareafilter.d.ts +17 -0
- package/dist/esm/sdk/models/shared/epcpostcodeareafilter.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epcpostcodeareafilter.js +13 -0
- package/dist/esm/sdk/models/shared/epcpostcodeareafilter.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcquerycondition.d.ts +105 -0
- package/dist/esm/sdk/models/shared/epcquerycondition.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epcquerycondition.js +91 -0
- package/dist/esm/sdk/models/shared/epcquerycondition.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcquerygroup.d.ts +16 -0
- package/dist/esm/sdk/models/shared/epcquerygroup.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epcquerygroup.js +13 -0
- package/dist/esm/sdk/models/shared/epcquerygroup.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcqueryoperator.d.ts +35 -0
- package/dist/esm/sdk/models/shared/epcqueryoperator.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epcqueryoperator.js +24 -0
- package/dist/esm/sdk/models/shared/epcqueryoperator.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcqueryrequest.d.ts +52 -0
- package/dist/esm/sdk/models/shared/epcqueryrequest.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epcqueryrequest.js +25 -0
- package/dist/esm/sdk/models/shared/epcqueryrequest.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcqueryresponse.d.ts +2476 -0
- package/dist/esm/sdk/models/shared/epcqueryresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epcqueryresponse.js +1428 -0
- package/dist/esm/sdk/models/shared/epcqueryresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcsort.d.ts +51 -0
- package/dist/esm/sdk/models/shared/epcsort.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/epcsort.js +35 -0
- package/dist/esm/sdk/models/shared/epcsort.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +11 -1
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +11 -1
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/marketstatus.d.ts +1 -1
- package/dist/esm/sdk/models/shared/marketstatus.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/marketstatus.js +1 -1
- package/dist/esm/sdk/models/shared/marketstatus.js.map +1 -1
- package/dist/esm/sdk/models/shared/nearestpostcodesresponse.d.ts +8 -8
- package/dist/esm/sdk/models/shared/nearestpostcodesresponse.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/nearestpostcodesresponse.js +8 -8
- package/dist/esm/sdk/models/shared/nearestpostcodesresponse.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyaddress.d.ts +4 -4
- package/dist/esm/sdk/models/shared/propertyaddress.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyaddress.js +4 -4
- package/dist/esm/sdk/models/shared/propertyaddress.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertydataapi.d.ts +284 -0
- package/dist/esm/sdk/models/shared/propertydataapi.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertydataapi.js +130 -0
- package/dist/esm/sdk/models/shared/propertydataapi.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyquerycondition.d.ts +8 -8
- package/dist/esm/sdk/models/shared/propertyquerycondition.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyquerycondition.js +6 -7
- package/dist/esm/sdk/models/shared/propertyquerycondition.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyqueryoperator.d.ts +4 -4
- package/dist/esm/sdk/models/shared/propertyqueryoperator.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyqueryoperator.js +3 -4
- package/dist/esm/sdk/models/shared/propertyqueryoperator.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyqueryrequest.d.ts +4 -4
- package/dist/esm/sdk/models/shared/propertyqueryrequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyqueryrequest.js +3 -3
- package/dist/esm/sdk/models/shared/propertyqueryrequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/site.d.ts +86 -13
- package/dist/esm/sdk/models/shared/site.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/site.js +70 -7
- package/dist/esm/sdk/models/shared/site.js.map +1 -1
- package/dist/esm/sdk/models/shared/siteownership.d.ts +36 -4
- package/dist/esm/sdk/models/shared/siteownership.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/siteownership.js +26 -2
- package/dist/esm/sdk/models/shared/siteownership.js.map +1 -1
- package/dist/esm/sdk/models/shared/sitequerycondition.d.ts +4 -9
- package/dist/esm/sdk/models/shared/sitequerycondition.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/sitequerycondition.js +3 -8
- package/dist/esm/sdk/models/shared/sitequerycondition.js.map +1 -1
- package/dist/esm/sdk/models/shared/sitequeryrequest.d.ts +0 -3
- package/dist/esm/sdk/models/shared/sitequeryrequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/sitequeryrequest.js +0 -3
- package/dist/esm/sdk/models/shared/sitequeryrequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/sitetags.d.ts +1 -9
- package/dist/esm/sdk/models/shared/sitetags.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/sitetags.js +0 -2
- package/dist/esm/sdk/models/shared/sitetags.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/epcQueryEPC.ts +169 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +14 -2
- package/src/sdk/epc.ts +19 -0
- package/src/sdk/models/errors/index.ts +1 -0
- package/src/sdk/models/errors/queryepc.ts +137 -0
- package/src/sdk/models/shared/epcareafilter.ts +54 -0
- package/src/sdk/models/shared/epcdata.ts +7 -7
- package/src/sdk/models/shared/epclocalauthorityareafilter.ts +39 -0
- package/src/sdk/models/shared/epcpointareafilter.ts +43 -0
- package/src/sdk/models/shared/epcpolygonareafilter.ts +37 -0
- package/src/sdk/models/shared/epcpostcodeareafilter.ts +37 -0
- package/src/sdk/models/shared/epcquerycondition.ts +169 -0
- package/src/sdk/models/shared/epcquerygroup.ts +35 -0
- package/src/sdk/models/shared/epcqueryoperator.ts +62 -0
- package/src/sdk/models/shared/epcqueryrequest.ts +96 -0
- package/src/sdk/models/shared/epcqueryresponse.ts +4009 -0
- package/src/sdk/models/shared/epcsort.ts +73 -0
- package/src/sdk/models/shared/index.ts +11 -1
- package/src/sdk/models/shared/marketstatus.ts +2 -2
- package/src/sdk/models/shared/nearestpostcodesresponse.ts +32 -24
- package/src/sdk/models/shared/propertyaddress.ts +8 -8
- package/src/sdk/models/shared/propertydataapi.ts +454 -0
- package/src/sdk/models/shared/propertyquerycondition.ts +22 -13
- package/src/sdk/models/shared/propertyqueryoperator.ts +9 -6
- package/src/sdk/models/shared/propertyqueryrequest.ts +13 -7
- package/src/sdk/models/shared/site.ts +112 -19
- package/src/sdk/models/shared/siteownership.ts +51 -6
- package/src/sdk/models/shared/sitequerycondition.ts +9 -12
- package/src/sdk/models/shared/sitequeryrequest.ts +0 -3
- package/src/sdk/models/shared/sitetags.ts +1 -11
- package/dist/commonjs/sdk/models/shared/sitescores.d.ts +0 -24
- package/dist/commonjs/sdk/models/shared/sitescores.d.ts.map +0 -1
- package/dist/commonjs/sdk/models/shared/sitescores.js.map +0 -1
- package/dist/esm/sdk/models/shared/sitescores.d.ts +0 -24
- package/dist/esm/sdk/models/shared/sitescores.d.ts.map +0 -1
- package/dist/esm/sdk/models/shared/sitescores.js +0 -15
- package/dist/esm/sdk/models/shared/sitescores.js.map +0 -1
- package/src/sdk/models/shared/sitescores.ts +0 -47
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../../lib/schemas.js";
|
|
7
8
|
import * as openEnums from "../../types/enums.js";
|
|
8
9
|
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
@@ -38,6 +39,264 @@ import { SaleRecord, SaleRecord$inboundSchema } from "./salerecord.js";
|
|
|
38
39
|
import { TenancyData, TenancyData$inboundSchema } from "./tenancydata.js";
|
|
39
40
|
import { TenureData, TenureData$inboundSchema } from "./tenuredata.js";
|
|
40
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Address composition within this building
|
|
44
|
+
*/
|
|
45
|
+
export type AddressCount = {
|
|
46
|
+
/**
|
|
47
|
+
* Commercial address count
|
|
48
|
+
*/
|
|
49
|
+
commercial?: number | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Other address count
|
|
52
|
+
*/
|
|
53
|
+
other?: number | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Residential address count
|
|
56
|
+
*/
|
|
57
|
+
residential?: number | null | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Total addressable units in this building
|
|
60
|
+
*/
|
|
61
|
+
total?: number | null | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Basement presence
|
|
66
|
+
*/
|
|
67
|
+
export const Present = {
|
|
68
|
+
Present: "present",
|
|
69
|
+
Absent: "absent",
|
|
70
|
+
Unknown: "unknown",
|
|
71
|
+
} as const;
|
|
72
|
+
/**
|
|
73
|
+
* Basement presence
|
|
74
|
+
*/
|
|
75
|
+
export type Present = OpenEnum<typeof Present>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Whether the basement is self-contained with separate entrance
|
|
79
|
+
*/
|
|
80
|
+
export const SelfContained = {
|
|
81
|
+
Present: "present",
|
|
82
|
+
Absent: "absent",
|
|
83
|
+
Unknown: "unknown",
|
|
84
|
+
} as const;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the basement is self-contained with separate entrance
|
|
87
|
+
*/
|
|
88
|
+
export type SelfContained = OpenEnum<typeof SelfContained>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Basement detection
|
|
92
|
+
*/
|
|
93
|
+
export type Basement = {
|
|
94
|
+
/**
|
|
95
|
+
* Basement presence
|
|
96
|
+
*/
|
|
97
|
+
present?: Present | null | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the basement is self-contained with separate entrance
|
|
100
|
+
*/
|
|
101
|
+
selfContained?: SelfContained | null | undefined;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Construction age and materials (multi-source: OS NGD + EPC)
|
|
106
|
+
*/
|
|
107
|
+
export type Construction = {
|
|
108
|
+
/**
|
|
109
|
+
* Primary wall construction material
|
|
110
|
+
*/
|
|
111
|
+
material?: string | null | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* Construction age period band
|
|
114
|
+
*/
|
|
115
|
+
period?: string | null | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Construction year (exact or approximate)
|
|
118
|
+
*/
|
|
119
|
+
year?: number | null | undefined;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Roof area breakdown by orientation
|
|
124
|
+
*/
|
|
125
|
+
export type Area = {
|
|
126
|
+
/**
|
|
127
|
+
* East-facing roof area in m²
|
|
128
|
+
*/
|
|
129
|
+
east?: number | null | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* Flat roof area in m²
|
|
132
|
+
*/
|
|
133
|
+
flat?: number | null | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Indeterminable roof area in m²
|
|
136
|
+
*/
|
|
137
|
+
indeterminable?: number | null | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* North-facing roof area in m²
|
|
140
|
+
*/
|
|
141
|
+
north?: number | null | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* Northeast-facing roof area in m²
|
|
144
|
+
*/
|
|
145
|
+
northeast?: number | null | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* Northwest-facing roof area in m²
|
|
148
|
+
*/
|
|
149
|
+
northwest?: number | null | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* Pitched roof area in m²
|
|
152
|
+
*/
|
|
153
|
+
pitched?: number | null | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* South-facing roof area in m²
|
|
156
|
+
*/
|
|
157
|
+
south?: number | null | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Southeast-facing roof area in m²
|
|
160
|
+
*/
|
|
161
|
+
southeast?: number | null | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Southwest-facing roof area in m²
|
|
164
|
+
*/
|
|
165
|
+
southwest?: number | null | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* Total roof surface area in m²
|
|
168
|
+
*/
|
|
169
|
+
total?: number | null | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* West-facing roof area in m²
|
|
172
|
+
*/
|
|
173
|
+
west?: number | null | undefined;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Green/living roof presence detected from aerial survey
|
|
178
|
+
*/
|
|
179
|
+
export const GreenRoof = {
|
|
180
|
+
Present: "present",
|
|
181
|
+
Absent: "absent",
|
|
182
|
+
Unknown: "unknown",
|
|
183
|
+
} as const;
|
|
184
|
+
/**
|
|
185
|
+
* Green/living roof presence detected from aerial survey
|
|
186
|
+
*/
|
|
187
|
+
export type GreenRoof = OpenEnum<typeof GreenRoof>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Solar panel presence detected from aerial survey
|
|
191
|
+
*/
|
|
192
|
+
export const Solar = {
|
|
193
|
+
Present: "present",
|
|
194
|
+
Absent: "absent",
|
|
195
|
+
Unknown: "unknown",
|
|
196
|
+
} as const;
|
|
197
|
+
/**
|
|
198
|
+
* Solar panel presence detected from aerial survey
|
|
199
|
+
*/
|
|
200
|
+
export type Solar = OpenEnum<typeof Solar>;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Roof analysis — shape, materials, directional area breakdown
|
|
204
|
+
*/
|
|
205
|
+
export type PropertyDataApiRoof = {
|
|
206
|
+
/**
|
|
207
|
+
* Roof area breakdown by orientation
|
|
208
|
+
*/
|
|
209
|
+
area?: Area | null | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* Green/living roof presence detected from aerial survey
|
|
212
|
+
*/
|
|
213
|
+
greenRoof?: GreenRoof | null | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* Primary roof covering material
|
|
216
|
+
*/
|
|
217
|
+
material?: string | null | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* Roof shape classification
|
|
220
|
+
*/
|
|
221
|
+
shape?: string | null | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* Solar panel presence detected from aerial survey
|
|
224
|
+
*/
|
|
225
|
+
solar?: Solar | null | undefined;
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Physical dimensions and characteristics
|
|
230
|
+
*/
|
|
231
|
+
export type Structure = {
|
|
232
|
+
/**
|
|
233
|
+
* Building connectivity type
|
|
234
|
+
*/
|
|
235
|
+
connectivity?: string | null | undefined;
|
|
236
|
+
/**
|
|
237
|
+
* Number of above-ground floors
|
|
238
|
+
*/
|
|
239
|
+
floors?: number | null | undefined;
|
|
240
|
+
/**
|
|
241
|
+
* Building footprint area in square metres
|
|
242
|
+
*/
|
|
243
|
+
footprintAreaSqm?: number | null | undefined;
|
|
244
|
+
/**
|
|
245
|
+
* Maximum height above ground level in metres
|
|
246
|
+
*/
|
|
247
|
+
heightMax?: number | null | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Physical state of the building
|
|
250
|
+
*/
|
|
251
|
+
physicalState?: string | null | undefined;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Physical building data from OS NGD and EPC
|
|
256
|
+
*/
|
|
257
|
+
export type Building = {
|
|
258
|
+
/**
|
|
259
|
+
* Raw values per data source — stored only, not indexed
|
|
260
|
+
*/
|
|
261
|
+
sourceValues?: { [k: string]: { [k: string]: any | null } } | undefined;
|
|
262
|
+
/**
|
|
263
|
+
* Address composition within this building
|
|
264
|
+
*/
|
|
265
|
+
addressCount?: AddressCount | null | undefined;
|
|
266
|
+
/**
|
|
267
|
+
* Basement detection
|
|
268
|
+
*/
|
|
269
|
+
basement?: Basement | null | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* Construction age and materials (multi-source: OS NGD + EPC)
|
|
272
|
+
*/
|
|
273
|
+
construction?: Construction | null | undefined;
|
|
274
|
+
/**
|
|
275
|
+
* Data sources that contributed to this building record
|
|
276
|
+
*/
|
|
277
|
+
dataSources?: Array<string> | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* OS NGD Building ID — links to the canonical building record in PostgreSQL
|
|
280
|
+
*/
|
|
281
|
+
osid?: string | undefined;
|
|
282
|
+
/**
|
|
283
|
+
* Roof analysis — shape, materials, directional area breakdown
|
|
284
|
+
*/
|
|
285
|
+
roof?: PropertyDataApiRoof | null | undefined;
|
|
286
|
+
/**
|
|
287
|
+
* Physical dimensions and characteristics
|
|
288
|
+
*/
|
|
289
|
+
structure?: Structure | null | undefined;
|
|
290
|
+
/**
|
|
291
|
+
* OS NGD building type classification
|
|
292
|
+
*/
|
|
293
|
+
type?: string | null | undefined;
|
|
294
|
+
/**
|
|
295
|
+
* Primary building use
|
|
296
|
+
*/
|
|
297
|
+
use?: string | null | undefined;
|
|
298
|
+
};
|
|
299
|
+
|
|
41
300
|
/**
|
|
42
301
|
* Property charges including service charge and ground rent
|
|
43
302
|
*/
|
|
@@ -144,6 +403,10 @@ export type PropertyDataApiSpatial = {
|
|
|
144
403
|
export type PropertyDataApi = {
|
|
145
404
|
address?: PropertyAddress | undefined;
|
|
146
405
|
build?: BuildData | undefined;
|
|
406
|
+
/**
|
|
407
|
+
* Physical building data from OS NGD and EPC
|
|
408
|
+
*/
|
|
409
|
+
building?: Building | null | undefined;
|
|
147
410
|
/**
|
|
148
411
|
* Property charges including service charge and ground rent
|
|
149
412
|
*/
|
|
@@ -237,6 +500,196 @@ export type PropertyDataApi = {
|
|
|
237
500
|
unitCount?: number | null | undefined;
|
|
238
501
|
};
|
|
239
502
|
|
|
503
|
+
/** @internal */
|
|
504
|
+
export const AddressCount$inboundSchema: z.ZodType<
|
|
505
|
+
AddressCount,
|
|
506
|
+
z.ZodTypeDef,
|
|
507
|
+
unknown
|
|
508
|
+
> = z.object({
|
|
509
|
+
commercial: z.nullable(z.number().int()).optional(),
|
|
510
|
+
other: z.nullable(z.number().int()).optional(),
|
|
511
|
+
residential: z.nullable(z.number().int()).optional(),
|
|
512
|
+
total: z.nullable(z.number().int()).optional(),
|
|
513
|
+
});
|
|
514
|
+
|
|
515
|
+
export function addressCountFromJSON(
|
|
516
|
+
jsonString: string,
|
|
517
|
+
): SafeParseResult<AddressCount, SDKValidationError> {
|
|
518
|
+
return safeParse(
|
|
519
|
+
jsonString,
|
|
520
|
+
(x) => AddressCount$inboundSchema.parse(JSON.parse(x)),
|
|
521
|
+
`Failed to parse 'AddressCount' from JSON`,
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/** @internal */
|
|
526
|
+
export const Present$inboundSchema: z.ZodType<Present, z.ZodTypeDef, unknown> =
|
|
527
|
+
openEnums.inboundSchema(Present);
|
|
528
|
+
|
|
529
|
+
/** @internal */
|
|
530
|
+
export const SelfContained$inboundSchema: z.ZodType<
|
|
531
|
+
SelfContained,
|
|
532
|
+
z.ZodTypeDef,
|
|
533
|
+
unknown
|
|
534
|
+
> = openEnums.inboundSchema(SelfContained);
|
|
535
|
+
|
|
536
|
+
/** @internal */
|
|
537
|
+
export const Basement$inboundSchema: z.ZodType<
|
|
538
|
+
Basement,
|
|
539
|
+
z.ZodTypeDef,
|
|
540
|
+
unknown
|
|
541
|
+
> = z.object({
|
|
542
|
+
present: z.nullable(Present$inboundSchema).optional(),
|
|
543
|
+
selfContained: z.nullable(SelfContained$inboundSchema).optional(),
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
export function basementFromJSON(
|
|
547
|
+
jsonString: string,
|
|
548
|
+
): SafeParseResult<Basement, SDKValidationError> {
|
|
549
|
+
return safeParse(
|
|
550
|
+
jsonString,
|
|
551
|
+
(x) => Basement$inboundSchema.parse(JSON.parse(x)),
|
|
552
|
+
`Failed to parse 'Basement' from JSON`,
|
|
553
|
+
);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/** @internal */
|
|
557
|
+
export const Construction$inboundSchema: z.ZodType<
|
|
558
|
+
Construction,
|
|
559
|
+
z.ZodTypeDef,
|
|
560
|
+
unknown
|
|
561
|
+
> = z.object({
|
|
562
|
+
material: z.nullable(z.string()).optional(),
|
|
563
|
+
period: z.nullable(z.string()).optional(),
|
|
564
|
+
year: z.nullable(z.number().int()).optional(),
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
export function constructionFromJSON(
|
|
568
|
+
jsonString: string,
|
|
569
|
+
): SafeParseResult<Construction, SDKValidationError> {
|
|
570
|
+
return safeParse(
|
|
571
|
+
jsonString,
|
|
572
|
+
(x) => Construction$inboundSchema.parse(JSON.parse(x)),
|
|
573
|
+
`Failed to parse 'Construction' from JSON`,
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/** @internal */
|
|
578
|
+
export const Area$inboundSchema: z.ZodType<Area, z.ZodTypeDef, unknown> = z
|
|
579
|
+
.object({
|
|
580
|
+
east: z.nullable(z.number()).optional(),
|
|
581
|
+
flat: z.nullable(z.number()).optional(),
|
|
582
|
+
indeterminable: z.nullable(z.number()).optional(),
|
|
583
|
+
north: z.nullable(z.number()).optional(),
|
|
584
|
+
northeast: z.nullable(z.number()).optional(),
|
|
585
|
+
northwest: z.nullable(z.number()).optional(),
|
|
586
|
+
pitched: z.nullable(z.number()).optional(),
|
|
587
|
+
south: z.nullable(z.number()).optional(),
|
|
588
|
+
southeast: z.nullable(z.number()).optional(),
|
|
589
|
+
southwest: z.nullable(z.number()).optional(),
|
|
590
|
+
total: z.nullable(z.number()).optional(),
|
|
591
|
+
west: z.nullable(z.number()).optional(),
|
|
592
|
+
});
|
|
593
|
+
|
|
594
|
+
export function areaFromJSON(
|
|
595
|
+
jsonString: string,
|
|
596
|
+
): SafeParseResult<Area, SDKValidationError> {
|
|
597
|
+
return safeParse(
|
|
598
|
+
jsonString,
|
|
599
|
+
(x) => Area$inboundSchema.parse(JSON.parse(x)),
|
|
600
|
+
`Failed to parse 'Area' from JSON`,
|
|
601
|
+
);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/** @internal */
|
|
605
|
+
export const GreenRoof$inboundSchema: z.ZodType<
|
|
606
|
+
GreenRoof,
|
|
607
|
+
z.ZodTypeDef,
|
|
608
|
+
unknown
|
|
609
|
+
> = openEnums.inboundSchema(GreenRoof);
|
|
610
|
+
|
|
611
|
+
/** @internal */
|
|
612
|
+
export const Solar$inboundSchema: z.ZodType<Solar, z.ZodTypeDef, unknown> =
|
|
613
|
+
openEnums.inboundSchema(Solar);
|
|
614
|
+
|
|
615
|
+
/** @internal */
|
|
616
|
+
export const PropertyDataApiRoof$inboundSchema: z.ZodType<
|
|
617
|
+
PropertyDataApiRoof,
|
|
618
|
+
z.ZodTypeDef,
|
|
619
|
+
unknown
|
|
620
|
+
> = z.object({
|
|
621
|
+
area: z.nullable(z.lazy(() => Area$inboundSchema)).optional(),
|
|
622
|
+
greenRoof: z.nullable(GreenRoof$inboundSchema).optional(),
|
|
623
|
+
material: z.nullable(z.string()).optional(),
|
|
624
|
+
shape: z.nullable(z.string()).optional(),
|
|
625
|
+
solar: z.nullable(Solar$inboundSchema).optional(),
|
|
626
|
+
});
|
|
627
|
+
|
|
628
|
+
export function propertyDataApiRoofFromJSON(
|
|
629
|
+
jsonString: string,
|
|
630
|
+
): SafeParseResult<PropertyDataApiRoof, SDKValidationError> {
|
|
631
|
+
return safeParse(
|
|
632
|
+
jsonString,
|
|
633
|
+
(x) => PropertyDataApiRoof$inboundSchema.parse(JSON.parse(x)),
|
|
634
|
+
`Failed to parse 'PropertyDataApiRoof' from JSON`,
|
|
635
|
+
);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/** @internal */
|
|
639
|
+
export const Structure$inboundSchema: z.ZodType<
|
|
640
|
+
Structure,
|
|
641
|
+
z.ZodTypeDef,
|
|
642
|
+
unknown
|
|
643
|
+
> = z.object({
|
|
644
|
+
connectivity: z.nullable(z.string()).optional(),
|
|
645
|
+
floors: z.nullable(z.number().int()).optional(),
|
|
646
|
+
footprintAreaSqm: z.nullable(z.number()).optional(),
|
|
647
|
+
heightMax: z.nullable(z.number()).optional(),
|
|
648
|
+
physicalState: z.nullable(z.string()).optional(),
|
|
649
|
+
});
|
|
650
|
+
|
|
651
|
+
export function structureFromJSON(
|
|
652
|
+
jsonString: string,
|
|
653
|
+
): SafeParseResult<Structure, SDKValidationError> {
|
|
654
|
+
return safeParse(
|
|
655
|
+
jsonString,
|
|
656
|
+
(x) => Structure$inboundSchema.parse(JSON.parse(x)),
|
|
657
|
+
`Failed to parse 'Structure' from JSON`,
|
|
658
|
+
);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/** @internal */
|
|
662
|
+
export const Building$inboundSchema: z.ZodType<
|
|
663
|
+
Building,
|
|
664
|
+
z.ZodTypeDef,
|
|
665
|
+
unknown
|
|
666
|
+
> = z.object({
|
|
667
|
+
_sourceValues: z.record(z.record(z.nullable(z.any()))).optional(),
|
|
668
|
+
addressCount: z.nullable(z.lazy(() => AddressCount$inboundSchema)).optional(),
|
|
669
|
+
basement: z.nullable(z.lazy(() => Basement$inboundSchema)).optional(),
|
|
670
|
+
construction: z.nullable(z.lazy(() => Construction$inboundSchema)).optional(),
|
|
671
|
+
dataSources: z.array(z.string()).optional(),
|
|
672
|
+
osid: z.string().optional(),
|
|
673
|
+
roof: z.nullable(z.lazy(() => PropertyDataApiRoof$inboundSchema)).optional(),
|
|
674
|
+
structure: z.nullable(z.lazy(() => Structure$inboundSchema)).optional(),
|
|
675
|
+
type: z.nullable(z.string()).optional(),
|
|
676
|
+
use: z.nullable(z.string()).optional(),
|
|
677
|
+
}).transform((v) => {
|
|
678
|
+
return remap$(v, {
|
|
679
|
+
"_sourceValues": "sourceValues",
|
|
680
|
+
});
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
export function buildingFromJSON(
|
|
684
|
+
jsonString: string,
|
|
685
|
+
): SafeParseResult<Building, SDKValidationError> {
|
|
686
|
+
return safeParse(
|
|
687
|
+
jsonString,
|
|
688
|
+
(x) => Building$inboundSchema.parse(JSON.parse(x)),
|
|
689
|
+
`Failed to parse 'Building' from JSON`,
|
|
690
|
+
);
|
|
691
|
+
}
|
|
692
|
+
|
|
240
693
|
/** @internal */
|
|
241
694
|
export const Charges$inboundSchema: z.ZodType<Charges, z.ZodTypeDef, unknown> =
|
|
242
695
|
z.object({
|
|
@@ -392,6 +845,7 @@ export const PropertyDataApi$inboundSchema: z.ZodType<
|
|
|
392
845
|
> = z.object({
|
|
393
846
|
address: PropertyAddress$inboundSchema.optional(),
|
|
394
847
|
build: BuildData$inboundSchema.optional(),
|
|
848
|
+
building: z.nullable(z.lazy(() => Building$inboundSchema)).optional(),
|
|
395
849
|
charges: z.lazy(() => Charges$inboundSchema).optional(),
|
|
396
850
|
classificationCode: z.nullable(z.string()).optional(),
|
|
397
851
|
coordinateConfidence: z.nullable(CoordinateConfidence$inboundSchema)
|
|
@@ -8,7 +8,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* Comparison operator
|
|
10
10
|
*/
|
|
11
|
-
export const
|
|
11
|
+
export const PropertyQueryConditionComparator = {
|
|
12
12
|
Eq: "eq",
|
|
13
13
|
Ne: "ne",
|
|
14
14
|
Gt: "gt",
|
|
@@ -24,14 +24,16 @@ export const Comparator = {
|
|
|
24
24
|
/**
|
|
25
25
|
* Comparison operator
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
27
|
+
export type PropertyQueryConditionComparator = ClosedEnum<
|
|
28
|
+
typeof PropertyQueryConditionComparator
|
|
29
|
+
>;
|
|
28
30
|
|
|
29
31
|
export type PropertyQueryCondition4 = string | number | boolean;
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
34
|
* Value to compare against
|
|
33
35
|
*/
|
|
34
|
-
export type
|
|
36
|
+
export type PropertyQueryConditionValue =
|
|
35
37
|
| string
|
|
36
38
|
| number
|
|
37
39
|
| boolean
|
|
@@ -41,7 +43,7 @@ export type PropertyQueryCondition = {
|
|
|
41
43
|
/**
|
|
42
44
|
* Comparison operator
|
|
43
45
|
*/
|
|
44
|
-
comparator:
|
|
46
|
+
comparator: PropertyQueryConditionComparator;
|
|
45
47
|
/**
|
|
46
48
|
* Field to filter on. Common fields: propertyType, propertyCategory ('residential' or 'commercial'), roomDetails.beds, pricing.currentSale, pricing.currentRent, build.totalFloorArea, epc.rating
|
|
47
49
|
*/
|
|
@@ -53,8 +55,9 @@ export type PropertyQueryCondition = {
|
|
|
53
55
|
};
|
|
54
56
|
|
|
55
57
|
/** @internal */
|
|
56
|
-
export const
|
|
57
|
-
|
|
58
|
+
export const PropertyQueryConditionComparator$outboundSchema: z.ZodNativeEnum<
|
|
59
|
+
typeof PropertyQueryConditionComparator
|
|
60
|
+
> = z.nativeEnum(PropertyQueryConditionComparator);
|
|
58
61
|
|
|
59
62
|
/** @internal */
|
|
60
63
|
export type PropertyQueryCondition4$Outbound = string | number | boolean;
|
|
@@ -75,17 +78,17 @@ export function propertyQueryCondition4ToJSON(
|
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
/** @internal */
|
|
78
|
-
export type
|
|
81
|
+
export type PropertyQueryConditionValue$Outbound =
|
|
79
82
|
| string
|
|
80
83
|
| number
|
|
81
84
|
| boolean
|
|
82
85
|
| Array<string | number | boolean>;
|
|
83
86
|
|
|
84
87
|
/** @internal */
|
|
85
|
-
export const
|
|
86
|
-
|
|
88
|
+
export const PropertyQueryConditionValue$outboundSchema: z.ZodType<
|
|
89
|
+
PropertyQueryConditionValue$Outbound,
|
|
87
90
|
z.ZodTypeDef,
|
|
88
|
-
|
|
91
|
+
PropertyQueryConditionValue
|
|
89
92
|
> = z.union([
|
|
90
93
|
z.string(),
|
|
91
94
|
z.number(),
|
|
@@ -93,8 +96,14 @@ export const Value$outboundSchema: z.ZodType<
|
|
|
93
96
|
z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
94
97
|
]);
|
|
95
98
|
|
|
96
|
-
export function
|
|
97
|
-
|
|
99
|
+
export function propertyQueryConditionValueToJSON(
|
|
100
|
+
propertyQueryConditionValue: PropertyQueryConditionValue,
|
|
101
|
+
): string {
|
|
102
|
+
return JSON.stringify(
|
|
103
|
+
PropertyQueryConditionValue$outboundSchema.parse(
|
|
104
|
+
propertyQueryConditionValue,
|
|
105
|
+
),
|
|
106
|
+
);
|
|
98
107
|
}
|
|
99
108
|
|
|
100
109
|
/** @internal */
|
|
@@ -110,7 +119,7 @@ export const PropertyQueryCondition$outboundSchema: z.ZodType<
|
|
|
110
119
|
z.ZodTypeDef,
|
|
111
120
|
PropertyQueryCondition
|
|
112
121
|
> = z.object({
|
|
113
|
-
comparator:
|
|
122
|
+
comparator: PropertyQueryConditionComparator$outboundSchema,
|
|
114
123
|
field: z.string(),
|
|
115
124
|
value: z.union([
|
|
116
125
|
z.string(),
|
|
@@ -13,14 +13,16 @@ import {
|
|
|
13
13
|
/**
|
|
14
14
|
* Logical operator
|
|
15
15
|
*/
|
|
16
|
-
export const
|
|
16
|
+
export const PropertyQueryOperatorOperator = {
|
|
17
17
|
And: "AND",
|
|
18
18
|
Or: "OR",
|
|
19
19
|
} as const;
|
|
20
20
|
/**
|
|
21
21
|
* Logical operator
|
|
22
22
|
*/
|
|
23
|
-
export type
|
|
23
|
+
export type PropertyQueryOperatorOperator = ClosedEnum<
|
|
24
|
+
typeof PropertyQueryOperatorOperator
|
|
25
|
+
>;
|
|
24
26
|
|
|
25
27
|
export type PropertyQueryOperator = {
|
|
26
28
|
/**
|
|
@@ -30,12 +32,13 @@ export type PropertyQueryOperator = {
|
|
|
30
32
|
/**
|
|
31
33
|
* Logical operator
|
|
32
34
|
*/
|
|
33
|
-
operator:
|
|
35
|
+
operator: PropertyQueryOperatorOperator;
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
/** @internal */
|
|
37
|
-
export const
|
|
38
|
-
|
|
39
|
+
export const PropertyQueryOperatorOperator$outboundSchema: z.ZodNativeEnum<
|
|
40
|
+
typeof PropertyQueryOperatorOperator
|
|
41
|
+
> = z.nativeEnum(PropertyQueryOperatorOperator);
|
|
39
42
|
|
|
40
43
|
/** @internal */
|
|
41
44
|
export type PropertyQueryOperator$Outbound = {
|
|
@@ -50,7 +53,7 @@ export const PropertyQueryOperator$outboundSchema: z.ZodType<
|
|
|
50
53
|
PropertyQueryOperator
|
|
51
54
|
> = z.object({
|
|
52
55
|
groups: z.array(PropertyQueryGroup$outboundSchema),
|
|
53
|
-
operator:
|
|
56
|
+
operator: PropertyQueryOperatorOperator$outboundSchema,
|
|
54
57
|
});
|
|
55
58
|
|
|
56
59
|
export function propertyQueryOperatorToJSON(
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
/**
|
|
19
19
|
* Comma-separated string or array of attributes to include in the response. Only the specified fields will be returned (plus locationId which is always included). Use this to reduce payload size by requesting only the data you need. Example: 'propertyId,pricing,address' or ['propertyId', 'pricing', 'address']
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type PropertyQueryRequestAttributes = string | Array<string>;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Field to sort by (whitelisted fields only)
|
|
@@ -143,17 +143,23 @@ export type PropertyQueryRequest = {
|
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
/** @internal */
|
|
146
|
-
export type
|
|
146
|
+
export type PropertyQueryRequestAttributes$Outbound = string | Array<string>;
|
|
147
147
|
|
|
148
148
|
/** @internal */
|
|
149
|
-
export const
|
|
150
|
-
|
|
149
|
+
export const PropertyQueryRequestAttributes$outboundSchema: z.ZodType<
|
|
150
|
+
PropertyQueryRequestAttributes$Outbound,
|
|
151
151
|
z.ZodTypeDef,
|
|
152
|
-
|
|
152
|
+
PropertyQueryRequestAttributes
|
|
153
153
|
> = z.union([z.string(), z.array(z.string())]);
|
|
154
154
|
|
|
155
|
-
export function
|
|
156
|
-
|
|
155
|
+
export function propertyQueryRequestAttributesToJSON(
|
|
156
|
+
propertyQueryRequestAttributes: PropertyQueryRequestAttributes,
|
|
157
|
+
): string {
|
|
158
|
+
return JSON.stringify(
|
|
159
|
+
PropertyQueryRequestAttributes$outboundSchema.parse(
|
|
160
|
+
propertyQueryRequestAttributes,
|
|
161
|
+
),
|
|
162
|
+
);
|
|
157
163
|
}
|
|
158
164
|
|
|
159
165
|
/** @internal */
|