@vepler/sdk 5.28.1 → 6.1.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/README.md +436 -409
- package/dist/commonjs/funcs/geographyGetGeographyAncestors.d.ts +17 -0
- package/dist/commonjs/funcs/geographyGetGeographyAncestors.d.ts.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyAncestors.js +126 -0
- package/dist/commonjs/funcs/geographyGetGeographyAncestors.js.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyAreas.d.ts +17 -0
- package/dist/commonjs/funcs/geographyGetGeographyAreas.d.ts.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyAreas.js +125 -0
- package/dist/commonjs/funcs/geographyGetGeographyAreas.js.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyChildren.d.ts +17 -0
- package/dist/commonjs/funcs/geographyGetGeographyChildren.d.ts.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyChildren.js +126 -0
- package/dist/commonjs/funcs/geographyGetGeographyChildren.js.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyDescendants.d.ts +17 -0
- package/dist/commonjs/funcs/geographyGetGeographyDescendants.d.ts.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyDescendants.js +128 -0
- package/dist/commonjs/funcs/geographyGetGeographyDescendants.js.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyProvenance.d.ts +17 -0
- package/dist/commonjs/funcs/geographyGetGeographyProvenance.d.ts.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyProvenance.js +125 -0
- package/dist/commonjs/funcs/geographyGetGeographyProvenance.js.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyRelease.d.ts +17 -0
- package/dist/commonjs/funcs/geographyGetGeographyRelease.d.ts.map +1 -0
- package/dist/commonjs/funcs/geographyGetGeographyRelease.js +105 -0
- package/dist/commonjs/funcs/geographyGetGeographyRelease.js.map +1 -0
- package/dist/commonjs/funcs/safetyGetCrimeIncidents.d.ts +1 -1
- package/dist/commonjs/funcs/safetyGetCrimeIncidents.js +1 -1
- package/dist/commonjs/funcs/safetyGetGeographyMetrics.d.ts +2 -2
- package/dist/commonjs/funcs/safetyGetGeographyMetrics.js +2 -2
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberApplications.d.ts +19 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberApplications.d.ts.map +1 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberApplications.js +129 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberApplications.js.map +1 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberAvailability.d.ts +19 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberAvailability.d.ts.map +1 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberAvailability.js +129 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberAvailability.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/encodings.d.ts +10 -9
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +29 -13
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/sdk/geography.d.ts +47 -0
- package/dist/commonjs/sdk/geography.d.ts.map +1 -0
- package/dist/commonjs/sdk/geography.js +72 -0
- package/dist/commonjs/sdk/geography.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberapplications.d.ts +266 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberapplications.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberapplications.js +261 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberapplications.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberavailability.d.ts +266 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberavailability.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberavailability.js +261 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberavailability.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/index.d.ts +2 -0
- package/dist/commonjs/sdk/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/index.js +2 -0
- package/dist/commonjs/sdk/models/errors/index.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/titledeedpurchasenotfound.d.ts +16 -0
- package/dist/commonjs/sdk/models/errors/titledeedpurchasenotfound.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/titledeedpurchasenotfound.js +6 -0
- package/dist/commonjs/sdk/models/errors/titledeedpurchasenotfound.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getgeographyancestors.d.ts +52 -0
- package/dist/commonjs/sdk/models/operations/getgeographyancestors.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographyancestors.js +75 -0
- package/dist/commonjs/sdk/models/operations/getgeographyancestors.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographyareas.d.ts +47 -0
- package/dist/commonjs/sdk/models/operations/getgeographyareas.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographyareas.js +74 -0
- package/dist/commonjs/sdk/models/operations/getgeographyareas.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographychildren.d.ts +82 -0
- package/dist/commonjs/sdk/models/operations/getgeographychildren.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographychildren.js +89 -0
- package/dist/commonjs/sdk/models/operations/getgeographychildren.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographydescendants.d.ts +62 -0
- package/dist/commonjs/sdk/models/operations/getgeographydescendants.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographydescendants.js +77 -0
- package/dist/commonjs/sdk/models/operations/getgeographydescendants.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographyprovenance.d.ts +54 -0
- package/dist/commonjs/sdk/models/operations/getgeographyprovenance.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographyprovenance.js +89 -0
- package/dist/commonjs/sdk/models/operations/getgeographyprovenance.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographyrelease.d.ts +19 -0
- package/dist/commonjs/sdk/models/operations/getgeographyrelease.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getgeographyrelease.js +58 -0
- package/dist/commonjs/sdk/models/operations/getgeographyrelease.js.map +1 -0
- 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/getv1titledeedstitlenumberapplications.d.ts +15 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberapplications.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberapplications.js +49 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberapplications.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberavailability.d.ts +15 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberavailability.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberavailability.js +49 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberavailability.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts +8 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +8 -0
- package/dist/commonjs/sdk/models/operations/index.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/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/conservationdesignationfeature.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/crimecatalogentry.d.ts +5 -6
- package/dist/commonjs/sdk/models/shared/crimecatalogentry.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/crimecatalogentry.js +1 -2
- package/dist/commonjs/sdk/models/shared/crimecatalogentry.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/crimecatalogperiodsbycountry.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/crimeconfidenceinterval.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/crimeincident.d.ts +9 -5
- package/dist/commonjs/sdk/models/shared/crimeincident.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/crimeincident.js +1 -0
- package/dist/commonjs/sdk/models/shared/crimeincident.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/crimeincidentslistresponse.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/crimeincidentssummary.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/crimeperioddetails.d.ts +13 -1
- package/dist/commonjs/sdk/models/shared/crimeperioddetails.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/crimeperioddetails.js +3 -0
- package/dist/commonjs/sdk/models/shared/crimeperioddetails.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographyarea.d.ts +33 -0
- package/dist/commonjs/sdk/models/shared/geographyarea.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/geographyarea.js +55 -0
- package/dist/commonjs/sdk/models/shared/geographyarea.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/geographycategorymetric.d.ts +46 -10
- package/dist/commonjs/sdk/models/shared/geographycategorymetric.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographycategorymetric.js +9 -0
- package/dist/commonjs/sdk/models/shared/geographycategorymetric.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.d.ts +32 -4
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.js +7 -0
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographyrelatedarea.d.ts +41 -0
- package/dist/commonjs/sdk/models/shared/geographyrelatedarea.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/geographyrelatedarea.js +57 -0
- package/dist/commonjs/sdk/models/shared/geographyrelatedarea.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/geographytimeseriespoint.d.ts +9 -5
- package/dist/commonjs/sdk/models/shared/geographytimeseriespoint.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographytimeseriespoint.js +1 -0
- package/dist/commonjs/sdk/models/shared/geographytimeseriespoint.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/heritagedesignationfeature.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/index.d.ts +5 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +5 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/landconstraintdesignationfeature.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/listing.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/listing.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/listing.js +1 -1
- package/dist/commonjs/sdk/models/shared/listing.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titledeedapplication.d.ts +69 -0
- package/dist/commonjs/sdk/models/shared/titledeedapplication.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/titledeedapplication.js +84 -0
- package/dist/commonjs/sdk/models/shared/titledeedapplication.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/titledeedapplicationlistresponse.d.ts +24 -0
- package/dist/commonjs/sdk/models/shared/titledeedapplicationlistresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/titledeedapplicationlistresponse.js +65 -0
- package/dist/commonjs/sdk/models/shared/titledeedapplicationlistresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/titledeedavailabilityresponse.d.ts +67 -0
- package/dist/commonjs/sdk/models/shared/titledeedavailabilityresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/titledeedavailabilityresponse.js +108 -0
- package/dist/commonjs/sdk/models/shared/titledeedavailabilityresponse.js.map +1 -0
- package/dist/commonjs/sdk/safety.d.ts +3 -3
- package/dist/commonjs/sdk/safety.js +3 -3
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/titledeeds.d.ts +14 -0
- package/dist/commonjs/sdk/titledeeds.d.ts.map +1 -1
- package/dist/commonjs/sdk/titledeeds.js +20 -0
- package/dist/commonjs/sdk/titledeeds.js.map +1 -1
- package/dist/esm/funcs/geographyGetGeographyAncestors.d.ts +17 -0
- package/dist/esm/funcs/geographyGetGeographyAncestors.d.ts.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyAncestors.js +90 -0
- package/dist/esm/funcs/geographyGetGeographyAncestors.js.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyAreas.d.ts +17 -0
- package/dist/esm/funcs/geographyGetGeographyAreas.d.ts.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyAreas.js +89 -0
- package/dist/esm/funcs/geographyGetGeographyAreas.js.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyChildren.d.ts +17 -0
- package/dist/esm/funcs/geographyGetGeographyChildren.d.ts.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyChildren.js +90 -0
- package/dist/esm/funcs/geographyGetGeographyChildren.js.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyDescendants.d.ts +17 -0
- package/dist/esm/funcs/geographyGetGeographyDescendants.d.ts.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyDescendants.js +92 -0
- package/dist/esm/funcs/geographyGetGeographyDescendants.js.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyProvenance.d.ts +17 -0
- package/dist/esm/funcs/geographyGetGeographyProvenance.d.ts.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyProvenance.js +89 -0
- package/dist/esm/funcs/geographyGetGeographyProvenance.js.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyRelease.d.ts +17 -0
- package/dist/esm/funcs/geographyGetGeographyRelease.d.ts.map +1 -0
- package/dist/esm/funcs/geographyGetGeographyRelease.js +69 -0
- package/dist/esm/funcs/geographyGetGeographyRelease.js.map +1 -0
- package/dist/esm/funcs/safetyGetCrimeIncidents.d.ts +1 -1
- package/dist/esm/funcs/safetyGetCrimeIncidents.js +1 -1
- package/dist/esm/funcs/safetyGetGeographyMetrics.d.ts +2 -2
- package/dist/esm/funcs/safetyGetGeographyMetrics.js +2 -2
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberApplications.d.ts +19 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberApplications.d.ts.map +1 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberApplications.js +93 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberApplications.js.map +1 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberAvailability.d.ts +19 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberAvailability.d.ts.map +1 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberAvailability.js +93 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberAvailability.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/encodings.d.ts +10 -9
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +29 -13
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/sdk/geography.d.ts +47 -0
- package/dist/esm/sdk/geography.d.ts.map +1 -0
- package/dist/esm/sdk/geography.js +68 -0
- package/dist/esm/sdk/geography.js.map +1 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberapplications.d.ts +266 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberapplications.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberapplications.js +217 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberapplications.js.map +1 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberavailability.d.ts +266 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberavailability.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberavailability.js +217 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberavailability.js.map +1 -0
- package/dist/esm/sdk/models/errors/index.d.ts +2 -0
- package/dist/esm/sdk/models/errors/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/index.js +2 -0
- package/dist/esm/sdk/models/errors/index.js.map +1 -1
- package/dist/esm/sdk/models/errors/titledeedpurchasenotfound.d.ts +16 -0
- package/dist/esm/sdk/models/errors/titledeedpurchasenotfound.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/titledeedpurchasenotfound.js +6 -0
- package/dist/esm/sdk/models/errors/titledeedpurchasenotfound.js.map +1 -1
- package/dist/esm/sdk/models/operations/getgeographyancestors.d.ts +52 -0
- package/dist/esm/sdk/models/operations/getgeographyancestors.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographyancestors.js +37 -0
- package/dist/esm/sdk/models/operations/getgeographyancestors.js.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographyareas.d.ts +47 -0
- package/dist/esm/sdk/models/operations/getgeographyareas.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographyareas.js +36 -0
- package/dist/esm/sdk/models/operations/getgeographyareas.js.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographychildren.d.ts +82 -0
- package/dist/esm/sdk/models/operations/getgeographychildren.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographychildren.js +50 -0
- package/dist/esm/sdk/models/operations/getgeographychildren.js.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographydescendants.d.ts +62 -0
- package/dist/esm/sdk/models/operations/getgeographydescendants.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographydescendants.js +39 -0
- package/dist/esm/sdk/models/operations/getgeographydescendants.js.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographyprovenance.d.ts +54 -0
- package/dist/esm/sdk/models/operations/getgeographyprovenance.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographyprovenance.js +50 -0
- package/dist/esm/sdk/models/operations/getgeographyprovenance.js.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographyrelease.d.ts +19 -0
- package/dist/esm/sdk/models/operations/getgeographyrelease.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getgeographyrelease.js +20 -0
- package/dist/esm/sdk/models/operations/getgeographyrelease.js.map +1 -0
- 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/getv1titledeedstitlenumberapplications.d.ts +15 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberapplications.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberapplications.js +12 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberapplications.js.map +1 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberavailability.d.ts +15 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberavailability.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberavailability.js +12 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberavailability.js.map +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts +8 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +8 -0
- package/dist/esm/sdk/models/operations/index.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/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/conservationdesignationfeature.d.ts +1 -1
- package/dist/esm/sdk/models/shared/crimecatalogentry.d.ts +5 -6
- package/dist/esm/sdk/models/shared/crimecatalogentry.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/crimecatalogentry.js +1 -2
- package/dist/esm/sdk/models/shared/crimecatalogentry.js.map +1 -1
- package/dist/esm/sdk/models/shared/crimecatalogperiodsbycountry.d.ts +1 -1
- package/dist/esm/sdk/models/shared/crimeconfidenceinterval.d.ts +1 -1
- package/dist/esm/sdk/models/shared/crimeincident.d.ts +9 -5
- package/dist/esm/sdk/models/shared/crimeincident.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/crimeincident.js +1 -0
- package/dist/esm/sdk/models/shared/crimeincident.js.map +1 -1
- package/dist/esm/sdk/models/shared/crimeincidentslistresponse.d.ts +1 -1
- package/dist/esm/sdk/models/shared/crimeincidentssummary.d.ts +1 -1
- package/dist/esm/sdk/models/shared/crimeperioddetails.d.ts +13 -1
- package/dist/esm/sdk/models/shared/crimeperioddetails.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/crimeperioddetails.js +3 -0
- package/dist/esm/sdk/models/shared/crimeperioddetails.js.map +1 -1
- package/dist/esm/sdk/models/shared/geographyarea.d.ts +33 -0
- package/dist/esm/sdk/models/shared/geographyarea.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/geographyarea.js +18 -0
- package/dist/esm/sdk/models/shared/geographyarea.js.map +1 -0
- package/dist/esm/sdk/models/shared/geographycategorymetric.d.ts +46 -10
- package/dist/esm/sdk/models/shared/geographycategorymetric.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/geographycategorymetric.js +9 -0
- package/dist/esm/sdk/models/shared/geographycategorymetric.js.map +1 -1
- package/dist/esm/sdk/models/shared/geographymetricsrow.d.ts +32 -4
- package/dist/esm/sdk/models/shared/geographymetricsrow.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/geographymetricsrow.js +7 -0
- package/dist/esm/sdk/models/shared/geographymetricsrow.js.map +1 -1
- package/dist/esm/sdk/models/shared/geographyrelatedarea.d.ts +41 -0
- package/dist/esm/sdk/models/shared/geographyrelatedarea.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/geographyrelatedarea.js +20 -0
- package/dist/esm/sdk/models/shared/geographyrelatedarea.js.map +1 -0
- package/dist/esm/sdk/models/shared/geographytimeseriespoint.d.ts +9 -5
- package/dist/esm/sdk/models/shared/geographytimeseriespoint.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/geographytimeseriespoint.js +1 -0
- package/dist/esm/sdk/models/shared/geographytimeseriespoint.js.map +1 -1
- package/dist/esm/sdk/models/shared/heritagedesignationfeature.d.ts +1 -1
- package/dist/esm/sdk/models/shared/index.d.ts +5 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +5 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/landconstraintdesignationfeature.d.ts +1 -1
- package/dist/esm/sdk/models/shared/listing.d.ts +2 -2
- package/dist/esm/sdk/models/shared/listing.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/listing.js +1 -1
- package/dist/esm/sdk/models/shared/listing.js.map +1 -1
- package/dist/esm/sdk/models/shared/titledeedapplication.d.ts +69 -0
- package/dist/esm/sdk/models/shared/titledeedapplication.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/titledeedapplication.js +47 -0
- package/dist/esm/sdk/models/shared/titledeedapplication.js.map +1 -0
- package/dist/esm/sdk/models/shared/titledeedapplicationlistresponse.d.ts +24 -0
- package/dist/esm/sdk/models/shared/titledeedapplicationlistresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/titledeedapplicationlistresponse.js +28 -0
- package/dist/esm/sdk/models/shared/titledeedapplicationlistresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/titledeedavailabilityresponse.d.ts +67 -0
- package/dist/esm/sdk/models/shared/titledeedavailabilityresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/titledeedavailabilityresponse.js +69 -0
- package/dist/esm/sdk/models/shared/titledeedavailabilityresponse.js.map +1 -0
- package/dist/esm/sdk/safety.d.ts +3 -3
- package/dist/esm/sdk/safety.js +3 -3
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/titledeeds.d.ts +14 -0
- package/dist/esm/sdk/titledeeds.d.ts.map +1 -1
- package/dist/esm/sdk/titledeeds.js +20 -0
- package/dist/esm/sdk/titledeeds.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/geographyGetGeographyAncestors.ts +175 -0
- package/src/funcs/geographyGetGeographyAreas.ts +173 -0
- package/src/funcs/geographyGetGeographyChildren.ts +175 -0
- package/src/funcs/geographyGetGeographyDescendants.ts +177 -0
- package/src/funcs/geographyGetGeographyProvenance.ts +174 -0
- package/src/funcs/geographyGetGeographyRelease.ts +144 -0
- package/src/funcs/safetyGetCrimeIncidents.ts +1 -1
- package/src/funcs/safetyGetGeographyMetrics.ts +2 -2
- package/src/funcs/titleDeedsGetV1TitleDeedsTitleNumberApplications.ts +208 -0
- package/src/funcs/titleDeedsGetV1TitleDeedsTitleNumberAvailability.ts +208 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/sdk/geography.ts +115 -0
- package/src/sdk/models/errors/getv1titledeedstitlenumberapplications.ts +580 -0
- package/src/sdk/models/errors/getv1titledeedstitlenumberavailability.ts +580 -0
- package/src/sdk/models/errors/index.ts +2 -0
- package/src/sdk/models/errors/titledeedpurchasenotfound.ts +22 -0
- package/src/sdk/models/operations/getgeographyancestors.ts +108 -0
- package/src/sdk/models/operations/getgeographyareas.ts +100 -0
- package/src/sdk/models/operations/getgeographychildren.ts +162 -0
- package/src/sdk/models/operations/getgeographydescendants.ts +121 -0
- package/src/sdk/models/operations/getgeographyprovenance.ts +135 -0
- package/src/sdk/models/operations/getgeographyrelease.ts +57 -0
- 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/getv1titledeedstitlenumberapplications.ts +38 -0
- package/src/sdk/models/operations/getv1titledeedstitlenumberavailability.ts +38 -0
- package/src/sdk/models/operations/index.ts +8 -0
- package/src/sdk/models/operations/querylistings.ts +5 -5
- package/src/sdk/models/operations/querylistingsbysource.ts +5 -5
- package/src/sdk/models/shared/advancedlisting.ts +4 -4
- package/src/sdk/models/shared/conservationdesignationfeature.ts +1 -1
- package/src/sdk/models/shared/crimecatalogentry.ts +5 -6
- package/src/sdk/models/shared/crimecatalogperiodsbycountry.ts +1 -1
- package/src/sdk/models/shared/crimeconfidenceinterval.ts +1 -1
- package/src/sdk/models/shared/crimeincident.ts +10 -5
- package/src/sdk/models/shared/crimeincidentslistresponse.ts +1 -1
- package/src/sdk/models/shared/crimeincidentssummary.ts +1 -1
- package/src/sdk/models/shared/crimeperioddetails.ts +16 -1
- package/src/sdk/models/shared/geographyarea.ts +59 -0
- package/src/sdk/models/shared/geographycategorymetric.ts +55 -10
- package/src/sdk/models/shared/geographymetricsrow.ts +39 -4
- package/src/sdk/models/shared/geographyrelatedarea.ts +69 -0
- package/src/sdk/models/shared/geographytimeseriespoint.ts +10 -5
- package/src/sdk/models/shared/heritagedesignationfeature.ts +1 -1
- package/src/sdk/models/shared/index.ts +5 -0
- package/src/sdk/models/shared/landconstraintdesignationfeature.ts +1 -1
- package/src/sdk/models/shared/listing.ts +4 -4
- package/src/sdk/models/shared/titledeedapplication.ts +124 -0
- package/src/sdk/models/shared/titledeedapplicationlistresponse.ts +64 -0
- package/src/sdk/models/shared/titledeedavailabilityresponse.ts +162 -0
- package/src/sdk/safety.ts +3 -3
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/titledeeds.ts +36 -0
|
@@ -17,19 +17,43 @@ import {
|
|
|
17
17
|
|
|
18
18
|
export type GeographyMetricsRow = {
|
|
19
19
|
/**
|
|
20
|
-
* Breakdown of the period by crime category.
|
|
20
|
+
* Breakdown of the period by crime category, `all` first.
|
|
21
21
|
*/
|
|
22
22
|
categories: Array<GeographyCategoryMetric>;
|
|
23
|
+
/**
|
|
24
|
+
* `england` or `wales`. Null when merged areas span both.
|
|
25
|
+
*/
|
|
26
|
+
country?: string | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* How complete the data behind this row is. `available` means the police force reported throughout the window. `partial` means part of the window or part of the area was not reported. `missing` means the force did not report, so counts and rates come from stray incidents recorded by a neighbouring force and must not be read as evidence of safety. `unknown` means coverage could not be determined. Read this beside every number in the row.
|
|
29
|
+
*/
|
|
30
|
+
dataAvailability?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Type of area the code identifies: `lsoa21`, `msoa21`, `district_borough_unitary_ward`, `built_up_area_250`, `local_authority_district`, `county_unitary_authority`, `english_region` or `country_region`. A unitary authority is served as `local_authority_district`, and every ward, in England and in Wales, is served as `district_borough_unitary_ward`. Null when areas are merged.
|
|
33
|
+
*/
|
|
34
|
+
entityType?: string | null | undefined;
|
|
23
35
|
/**
|
|
24
36
|
* Area code this row covers. When areas are merged it is the comma-joined list of every requested code that contributed to the row.
|
|
25
37
|
*/
|
|
26
38
|
geographicCode: string;
|
|
39
|
+
/**
|
|
40
|
+
* How much of this area's own footprint is covered by the Lower Layer Super Output Areas its figures are aggregated from, as a fraction from 0 to 1. A value means the figures are an approximation of that quality, so 0.88 says the areas summed together cover 88% of this one. Null means the area is made up of whole Lower Layer Super Output Areas and no approximation arises, which is the case at every administrative level from LSOA to country; it is not an unknown value. Wards and built-up areas average about 0.88, and roughly one in eight is below 0.7.
|
|
41
|
+
*/
|
|
42
|
+
geographyFit?: number | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Version of the scoring model that produced the row.
|
|
45
|
+
*/
|
|
46
|
+
modelVersion?: string | null | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Name of the area. Null when areas are merged.
|
|
49
|
+
*/
|
|
50
|
+
name?: string | null | undefined;
|
|
27
51
|
/**
|
|
28
52
|
* Month this row covers, in `YYYY-MM` form.
|
|
29
53
|
*/
|
|
30
54
|
period: string;
|
|
31
55
|
/**
|
|
32
|
-
* Resident population the rates are calculated against. When areas are merged it is the sum across them.
|
|
56
|
+
* Resident population the rates are calculated against, from the latest mid-year estimate. When areas are merged it is the sum across them. 0 when the area's data is missing.
|
|
33
57
|
*/
|
|
34
58
|
population: number;
|
|
35
59
|
/**
|
|
@@ -37,13 +61,17 @@ export type GeographyMetricsRow = {
|
|
|
37
61
|
*/
|
|
38
62
|
timeSeriesData: Array<GeographyTimeSeriesPoint>;
|
|
39
63
|
/**
|
|
40
|
-
* Number of incidents across all categories
|
|
64
|
+
* Number of incidents across all categories over the 24-month window ending at the period.
|
|
41
65
|
*/
|
|
42
66
|
totalCrimeCount: number;
|
|
43
67
|
/**
|
|
44
|
-
* Incidents across all categories per 1,000 residents.
|
|
68
|
+
* Incidents across all categories per 1,000 residents per year over the window.
|
|
45
69
|
*/
|
|
46
70
|
totalCrimeRate: number;
|
|
71
|
+
/**
|
|
72
|
+
* The area's overall safety score, from 0 to 100, where higher is safer. The same value as the `all` category's `crimeScore`. Null when areas are merged and when the police force did not report.
|
|
73
|
+
*/
|
|
74
|
+
totalCrimeScore?: number | null | undefined;
|
|
47
75
|
};
|
|
48
76
|
|
|
49
77
|
/** @internal */
|
|
@@ -53,12 +81,19 @@ export const GeographyMetricsRow$inboundSchema: z.ZodType<
|
|
|
53
81
|
unknown
|
|
54
82
|
> = z.object({
|
|
55
83
|
categories: z.array(GeographyCategoryMetric$inboundSchema),
|
|
84
|
+
country: z.nullable(z.string()).optional(),
|
|
85
|
+
dataAvailability: z.string().optional(),
|
|
86
|
+
entityType: z.nullable(z.string()).optional(),
|
|
56
87
|
geographicCode: z.string(),
|
|
88
|
+
geographyFit: z.nullable(z.number()).optional(),
|
|
89
|
+
modelVersion: z.nullable(z.string()).optional(),
|
|
90
|
+
name: z.nullable(z.string()).optional(),
|
|
57
91
|
period: z.string(),
|
|
58
92
|
population: z.number(),
|
|
59
93
|
timeSeriesData: z.array(GeographyTimeSeriesPoint$inboundSchema),
|
|
60
94
|
totalCrimeCount: z.number(),
|
|
61
95
|
totalCrimeRate: z.number(),
|
|
96
|
+
totalCrimeScore: z.nullable(z.number()).optional(),
|
|
62
97
|
});
|
|
63
98
|
|
|
64
99
|
export function geographyMetricsRowFromJSON(
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
|
|
10
|
+
export type GeographyRelatedArea = {
|
|
11
|
+
/**
|
|
12
|
+
* The layer as its publisher names it — `lsoa`, `sct_dz`, `nir_dz`. Never carries a vintage.
|
|
13
|
+
*/
|
|
14
|
+
areaType: string;
|
|
15
|
+
/**
|
|
16
|
+
* The GSS code, e.g. `E01000001`.
|
|
17
|
+
*/
|
|
18
|
+
code: string;
|
|
19
|
+
/**
|
|
20
|
+
* Hops from the area asked about. 1 is a direct parent or child.
|
|
21
|
+
*/
|
|
22
|
+
depth: number;
|
|
23
|
+
/**
|
|
24
|
+
* Worst fit along the whole path: `exact`, `best_fit` or `spatial`. Anything other than `exact` means aggregating across this relationship gives an approximate answer.
|
|
25
|
+
*/
|
|
26
|
+
minFit: string;
|
|
27
|
+
/**
|
|
28
|
+
* Publisher name. Null where none is published — ONS issues no names for Output Areas — and never unique, so never key on it.
|
|
29
|
+
*/
|
|
30
|
+
name: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* `ENG` | `WAL` | `SCO` | `NIR`, or null for a genuinely cross-border area.
|
|
33
|
+
*/
|
|
34
|
+
nation: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Cross-nation tier: `small_area` is an LSOA in England and Wales and a Data Zone in Scotland and Northern Ireland.
|
|
37
|
+
*/
|
|
38
|
+
tier: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The layer edition, e.g. `2021`.
|
|
41
|
+
*/
|
|
42
|
+
vintage: string | null;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const GeographyRelatedArea$inboundSchema: z.ZodType<
|
|
47
|
+
GeographyRelatedArea,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
unknown
|
|
50
|
+
> = z.object({
|
|
51
|
+
areaType: z.string(),
|
|
52
|
+
code: z.string(),
|
|
53
|
+
depth: z.number().int(),
|
|
54
|
+
minFit: z.string(),
|
|
55
|
+
name: z.nullable(z.string()),
|
|
56
|
+
nation: z.nullable(z.string()),
|
|
57
|
+
tier: z.nullable(z.string()),
|
|
58
|
+
vintage: z.nullable(z.string()),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function geographyRelatedAreaFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<GeographyRelatedArea, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => GeographyRelatedArea$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'GeographyRelatedArea' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -13,19 +13,23 @@ export type GeographyTimeSeriesPoint = {
|
|
|
13
13
|
*/
|
|
14
14
|
category: string;
|
|
15
15
|
/**
|
|
16
|
-
* Number of incidents in this category
|
|
16
|
+
* Number of incidents in this category over the 24-month window ending at this month.
|
|
17
17
|
*/
|
|
18
18
|
crimeCount: number;
|
|
19
19
|
/**
|
|
20
|
-
* Incidents in this category per 1,000 residents.
|
|
20
|
+
* Incidents in this category per 1,000 residents per year over that window.
|
|
21
21
|
*/
|
|
22
22
|
crimeRate: number;
|
|
23
23
|
/**
|
|
24
|
-
* Safety score for this month and category, from 0 to 100, where higher is safer. Null when areas are merged.
|
|
24
|
+
* Safety score for this month and category, from 0 to 100, where higher is safer. Null when areas are merged and when the police force did not report.
|
|
25
25
|
*/
|
|
26
26
|
crimeScore: number | null;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* How complete the data behind this row is. `available` means the police force reported throughout the window. `partial` means part of the window or part of the area was not reported. `missing` means the force did not report, so counts and rates come from stray incidents recorded by a neighbouring force and must not be read as evidence of safety. `unknown` means coverage could not be determined. Read this beside every number in the row.
|
|
29
|
+
*/
|
|
30
|
+
dataAvailability?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Where this month's score ranks among areas of the same type, from 0 to 100, where 100 is safest. Null when it has not been ranked.
|
|
29
33
|
*/
|
|
30
34
|
percentile: number | null;
|
|
31
35
|
/**
|
|
@@ -33,7 +37,7 @@ export type GeographyTimeSeriesPoint = {
|
|
|
33
37
|
*/
|
|
34
38
|
period: string;
|
|
35
39
|
/**
|
|
36
|
-
* Direction and size of the change for this month and category
|
|
40
|
+
* Direction and size of the year-on-year change for this month and category. Positive means crime is falling. Null when areas are merged.
|
|
37
41
|
*/
|
|
38
42
|
trendFactor: number | null;
|
|
39
43
|
};
|
|
@@ -48,6 +52,7 @@ export const GeographyTimeSeriesPoint$inboundSchema: z.ZodType<
|
|
|
48
52
|
crimeCount: z.number(),
|
|
49
53
|
crimeRate: z.number(),
|
|
50
54
|
crimeScore: z.nullable(z.number()),
|
|
55
|
+
dataAvailability: z.string().optional(),
|
|
51
56
|
percentile: z.nullable(z.number()),
|
|
52
57
|
period: z.string(),
|
|
53
58
|
trendFactor: z.nullable(z.number()),
|
|
@@ -96,7 +96,7 @@ export type HeritageDesignationFeature = {
|
|
|
96
96
|
listedGrade?: string | undefined;
|
|
97
97
|
localAuthority?: string | null | undefined;
|
|
98
98
|
/**
|
|
99
|
-
* Extra detail the custodian publishes, narrowed to
|
|
99
|
+
* Extra detail the custodian publishes, narrowed to `status`, `legal_regime` and `parish`. `legal_regime` names the Act the designation is made under, and `status` is the register status the custodian records for it. Only the keys the source actually carries appear. Requires the `designationSourceData` permission on the licence.
|
|
100
100
|
*/
|
|
101
101
|
metadata?: { [k: string]: any } | undefined;
|
|
102
102
|
/**
|
|
@@ -195,9 +195,11 @@ export * from "./frameworkdetailresponse.js";
|
|
|
195
195
|
export * from "./frameworklistresponse.js";
|
|
196
196
|
export * from "./geocodeprecision.js";
|
|
197
197
|
export * from "./geographiccontext.js";
|
|
198
|
+
export * from "./geographyarea.js";
|
|
198
199
|
export * from "./geographycategorymetric.js";
|
|
199
200
|
export * from "./geographymetricslistresponse.js";
|
|
200
201
|
export * from "./geographymetricsrow.js";
|
|
202
|
+
export * from "./geographyrelatedarea.js";
|
|
201
203
|
export * from "./geographytimeseriespoint.js";
|
|
202
204
|
export * from "./healthevidencelevel.js";
|
|
203
205
|
export * from "./healthimpact.js";
|
|
@@ -413,6 +415,9 @@ export * from "./termsaggregationresult.js";
|
|
|
413
415
|
export * from "./termsbucket.js";
|
|
414
416
|
export * from "./tierskipreason.js";
|
|
415
417
|
export * from "./titlecovenant.js";
|
|
418
|
+
export * from "./titledeedapplication.js";
|
|
419
|
+
export * from "./titledeedapplicationlistresponse.js";
|
|
420
|
+
export * from "./titledeedavailabilityresponse.js";
|
|
416
421
|
export * from "./titledeeddocumentlistresponse.js";
|
|
417
422
|
export * from "./titledeedpurchasepending.js";
|
|
418
423
|
export * from "./titledeedpurchaseresponse.js";
|
|
@@ -88,7 +88,7 @@ export type LandConstraintDesignationFeature = {
|
|
|
88
88
|
licence: string | null;
|
|
89
89
|
localAuthority?: string | null | undefined;
|
|
90
90
|
/**
|
|
91
|
-
* Extra detail the custodian publishes, narrowed to
|
|
91
|
+
* Extra detail the custodian publishes, narrowed to `status`, `legal_regime`, `permitted_development_rights` and `bmv`. On an Article 4 direction area, `permitted_development_rights` records which rights that direction withdraws, in the wording the local authority used: most entries are semicolon-separated class codes from the Town and Country Planning (General Permitted Development) (England) Order 2015, such as `1A;1C;1D;1F;2A;2B`, but a substantial minority are a sentence naming the Parts and Classes instead, so parse it defensively. On an agricultural land classification area, `bmv` is true where the grade counts as Best and Most Versatile agricultural land. Only the keys the source actually carries appear, and this field requires the `designationSourceData` permission on the licence.
|
|
92
92
|
*/
|
|
93
93
|
metadata?: { [k: string]: any } | undefined;
|
|
94
94
|
name?: string | null | undefined;
|
|
@@ -151,9 +151,9 @@ export type Listing = {
|
|
|
151
151
|
*/
|
|
152
152
|
pricing?: Pricing | undefined;
|
|
153
153
|
/**
|
|
154
|
-
* When the listing was first published, as an ISO 8601 timestamp.
|
|
154
|
+
* When the listing was first published, as an ISO 8601 timestamp. Null when the source does not publish one.
|
|
155
155
|
*/
|
|
156
|
-
publishedDate?: Date | undefined;
|
|
156
|
+
publishedDate?: Date | null | undefined;
|
|
157
157
|
/**
|
|
158
158
|
* When the listing was taken down, as an ISO 8601 timestamp. Null while it is still live.
|
|
159
159
|
*/
|
|
@@ -299,8 +299,8 @@ export const Listing$inboundSchema: z.ZodType<Listing, z.ZodTypeDef, unknown> =
|
|
|
299
299
|
listingId: z.string().optional(),
|
|
300
300
|
priceChange: z.array(ListingPriceChange$inboundSchema).optional(),
|
|
301
301
|
pricing: z.lazy(() => Pricing$inboundSchema).optional(),
|
|
302
|
-
publishedDate: z.
|
|
303
|
-
new Date(v)
|
|
302
|
+
publishedDate: z.nullable(
|
|
303
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
304
304
|
).optional(),
|
|
305
305
|
removedDate: z.nullable(
|
|
306
306
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type TitleDeedApplication = {
|
|
12
|
+
/**
|
|
13
|
+
* Who the application was made for, where it is recorded.
|
|
14
|
+
*/
|
|
15
|
+
applicant: string | null;
|
|
16
|
+
customerReference: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* True when the applicant has asked HM Land Registry to expedite the application.
|
|
19
|
+
*/
|
|
20
|
+
expedited: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The firm that lodged the application.
|
|
23
|
+
*/
|
|
24
|
+
lodgedBy: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Titles this application will create, such as a new leasehold title over part of the property.
|
|
27
|
+
*/
|
|
28
|
+
newTitles: Array<string> | null;
|
|
29
|
+
/**
|
|
30
|
+
* Titles this application is being carved out of.
|
|
31
|
+
*/
|
|
32
|
+
parentTitles: Array<string> | null;
|
|
33
|
+
/**
|
|
34
|
+
* The date the application takes priority from, where one applies.
|
|
35
|
+
*/
|
|
36
|
+
priorityDate: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* End of the priority period, after which the protection lapses.
|
|
39
|
+
*/
|
|
40
|
+
priorityEndDate: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Start of the priority period, on a search that carries one.
|
|
43
|
+
*/
|
|
44
|
+
priorityStartDate: string | null;
|
|
45
|
+
priorityTime: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* How far HM Land Registry has taken the application, in their own words.
|
|
48
|
+
*/
|
|
49
|
+
progress: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* The part of the property the application concerns, where it names one.
|
|
52
|
+
*/
|
|
53
|
+
propertyDescription: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The channel the application arrived through.
|
|
56
|
+
*/
|
|
57
|
+
receivedBy: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* The reference HM Land Registry allocated to this application.
|
|
60
|
+
*/
|
|
61
|
+
reference: string;
|
|
62
|
+
searchCertificateNumber: string | null;
|
|
63
|
+
searchInterest: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* What kind of application this is, such as a dealing or a first lease.
|
|
66
|
+
*/
|
|
67
|
+
type: string;
|
|
68
|
+
/**
|
|
69
|
+
* The numeric code behind `type`, for callers that prefer to switch on a stable value.
|
|
70
|
+
*/
|
|
71
|
+
typeCode: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const TitleDeedApplication$inboundSchema: z.ZodType<
|
|
76
|
+
TitleDeedApplication,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
unknown
|
|
79
|
+
> = z.object({
|
|
80
|
+
applicant: z.nullable(z.string()),
|
|
81
|
+
customer_reference: z.nullable(z.string()),
|
|
82
|
+
expedited: z.boolean(),
|
|
83
|
+
lodged_by: z.nullable(z.string()),
|
|
84
|
+
new_titles: z.nullable(z.array(z.string())),
|
|
85
|
+
parent_titles: z.nullable(z.array(z.string())),
|
|
86
|
+
priority_date: z.nullable(z.string()),
|
|
87
|
+
priority_end_date: z.nullable(z.string()),
|
|
88
|
+
priority_start_date: z.nullable(z.string()),
|
|
89
|
+
priority_time: z.nullable(z.string()),
|
|
90
|
+
progress: z.nullable(z.string()),
|
|
91
|
+
property_description: z.nullable(z.string()),
|
|
92
|
+
received_by: z.nullable(z.string()),
|
|
93
|
+
reference: z.string(),
|
|
94
|
+
search_certificate_number: z.nullable(z.string()),
|
|
95
|
+
search_interest: z.nullable(z.string()),
|
|
96
|
+
type: z.string(),
|
|
97
|
+
type_code: z.string(),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
"customer_reference": "customerReference",
|
|
101
|
+
"lodged_by": "lodgedBy",
|
|
102
|
+
"new_titles": "newTitles",
|
|
103
|
+
"parent_titles": "parentTitles",
|
|
104
|
+
"priority_date": "priorityDate",
|
|
105
|
+
"priority_end_date": "priorityEndDate",
|
|
106
|
+
"priority_start_date": "priorityStartDate",
|
|
107
|
+
"priority_time": "priorityTime",
|
|
108
|
+
"property_description": "propertyDescription",
|
|
109
|
+
"received_by": "receivedBy",
|
|
110
|
+
"search_certificate_number": "searchCertificateNumber",
|
|
111
|
+
"search_interest": "searchInterest",
|
|
112
|
+
"type_code": "typeCode",
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
export function titleDeedApplicationFromJSON(
|
|
117
|
+
jsonString: string,
|
|
118
|
+
): SafeParseResult<TitleDeedApplication, SDKValidationError> {
|
|
119
|
+
return safeParse(
|
|
120
|
+
jsonString,
|
|
121
|
+
(x) => TitleDeedApplication$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'TitleDeedApplication' from JSON`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
TitleDeedApplication,
|
|
13
|
+
TitleDeedApplication$inboundSchema,
|
|
14
|
+
} from "./titledeedapplication.js";
|
|
15
|
+
|
|
16
|
+
export const TitleDeedApplicationListResponseObject = {
|
|
17
|
+
TitleDeedApplicationList: "title_deed_application_list",
|
|
18
|
+
} as const;
|
|
19
|
+
export type TitleDeedApplicationListResponseObject = ClosedEnum<
|
|
20
|
+
typeof TitleDeedApplicationListResponseObject
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
export type TitleDeedApplicationListResponse = {
|
|
24
|
+
applications: Array<TitleDeedApplication>;
|
|
25
|
+
/**
|
|
26
|
+
* True when at least one application is lodged against this title. While that is the case a standard official copy cannot be purchased.
|
|
27
|
+
*/
|
|
28
|
+
applicationsPending: boolean;
|
|
29
|
+
object: TitleDeedApplicationListResponseObject;
|
|
30
|
+
titleNumber: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const TitleDeedApplicationListResponseObject$inboundSchema:
|
|
35
|
+
z.ZodNativeEnum<typeof TitleDeedApplicationListResponseObject> = z.nativeEnum(
|
|
36
|
+
TitleDeedApplicationListResponseObject,
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const TitleDeedApplicationListResponse$inboundSchema: z.ZodType<
|
|
41
|
+
TitleDeedApplicationListResponse,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
applications: z.array(TitleDeedApplication$inboundSchema),
|
|
46
|
+
applications_pending: z.boolean(),
|
|
47
|
+
object: TitleDeedApplicationListResponseObject$inboundSchema,
|
|
48
|
+
title_number: z.string(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
"applications_pending": "applicationsPending",
|
|
52
|
+
"title_number": "titleNumber",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function titleDeedApplicationListResponseFromJSON(
|
|
57
|
+
jsonString: string,
|
|
58
|
+
): SafeParseResult<TitleDeedApplicationListResponse, SDKValidationError> {
|
|
59
|
+
return safeParse(
|
|
60
|
+
jsonString,
|
|
61
|
+
(x) => TitleDeedApplicationListResponse$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'TitleDeedApplicationListResponse' from JSON`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { ClosedEnum, OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export const TitleDeedAvailabilityResponseObject = {
|
|
14
|
+
TitleDeedAvailability: "title_deed_availability",
|
|
15
|
+
} as const;
|
|
16
|
+
export type TitleDeedAvailabilityResponseObject = ClosedEnum<
|
|
17
|
+
typeof TitleDeedAvailabilityResponseObject
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Why the title cannot be bought, or null when it can. `applications_pending` means an application is lodged against the title and HM Land Registry will not issue a standard official copy until it completes. `register_unavailable` means the register cannot be delivered electronically at all.
|
|
22
|
+
*/
|
|
23
|
+
export const ReasonCode = {
|
|
24
|
+
RegisterUnavailable: "register_unavailable",
|
|
25
|
+
ApplicationsPending: "applications_pending",
|
|
26
|
+
} as const;
|
|
27
|
+
/**
|
|
28
|
+
* Why the title cannot be bought, or null when it can. `applications_pending` means an application is lodged against the title and HM Land Registry will not issue a standard official copy until it completes. `register_unavailable` means the register cannot be delivered electronically at all.
|
|
29
|
+
*/
|
|
30
|
+
export type ReasonCode = OpenEnum<typeof ReasonCode>;
|
|
31
|
+
|
|
32
|
+
export type Register = {
|
|
33
|
+
availabilityCode: string | null;
|
|
34
|
+
backdated: boolean | null;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type TitlePlan = {
|
|
38
|
+
availabilityCode: string | null;
|
|
39
|
+
backdated: boolean | null;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type TitleDeedAvailabilityResponse = {
|
|
43
|
+
/**
|
|
44
|
+
* True when one or more applications are lodged against this title and not yet completed.
|
|
45
|
+
*/
|
|
46
|
+
applicationsPending: boolean | null;
|
|
47
|
+
object: TitleDeedAvailabilityResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
* True when a purchase of this title would be accepted today. False means a purchase would be refused and refunded, so check this before buying.
|
|
50
|
+
*/
|
|
51
|
+
purchasable: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The refusal explained in a sentence, or null when the title can be bought.
|
|
54
|
+
*/
|
|
55
|
+
reason: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Why the title cannot be bought, or null when it can. `applications_pending` means an application is lodged against the title and HM Land Registry will not issue a standard official copy until it completes. `register_unavailable` means the register cannot be delivered electronically at all.
|
|
58
|
+
*/
|
|
59
|
+
reasonCode: ReasonCode | null;
|
|
60
|
+
register: Register;
|
|
61
|
+
titleNumber: string;
|
|
62
|
+
titlePlan: TitlePlan;
|
|
63
|
+
/**
|
|
64
|
+
* The registration status HM Land Registry holds for this title.
|
|
65
|
+
*/
|
|
66
|
+
titleStatus: string | null;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const TitleDeedAvailabilityResponseObject$inboundSchema: z.ZodNativeEnum<
|
|
71
|
+
typeof TitleDeedAvailabilityResponseObject
|
|
72
|
+
> = z.nativeEnum(TitleDeedAvailabilityResponseObject);
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const ReasonCode$inboundSchema: z.ZodType<
|
|
76
|
+
ReasonCode,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
unknown
|
|
79
|
+
> = openEnums.inboundSchema(ReasonCode);
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const Register$inboundSchema: z.ZodType<
|
|
83
|
+
Register,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
unknown
|
|
86
|
+
> = z.object({
|
|
87
|
+
availability_code: z.nullable(z.string()),
|
|
88
|
+
backdated: z.nullable(z.boolean()),
|
|
89
|
+
}).transform((v) => {
|
|
90
|
+
return remap$(v, {
|
|
91
|
+
"availability_code": "availabilityCode",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function registerFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<Register, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => Register$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'Register' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const TitlePlan$inboundSchema: z.ZodType<
|
|
107
|
+
TitlePlan,
|
|
108
|
+
z.ZodTypeDef,
|
|
109
|
+
unknown
|
|
110
|
+
> = z.object({
|
|
111
|
+
availability_code: z.nullable(z.string()),
|
|
112
|
+
backdated: z.nullable(z.boolean()),
|
|
113
|
+
}).transform((v) => {
|
|
114
|
+
return remap$(v, {
|
|
115
|
+
"availability_code": "availabilityCode",
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
export function titlePlanFromJSON(
|
|
120
|
+
jsonString: string,
|
|
121
|
+
): SafeParseResult<TitlePlan, SDKValidationError> {
|
|
122
|
+
return safeParse(
|
|
123
|
+
jsonString,
|
|
124
|
+
(x) => TitlePlan$inboundSchema.parse(JSON.parse(x)),
|
|
125
|
+
`Failed to parse 'TitlePlan' from JSON`,
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const TitleDeedAvailabilityResponse$inboundSchema: z.ZodType<
|
|
131
|
+
TitleDeedAvailabilityResponse,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
unknown
|
|
134
|
+
> = z.object({
|
|
135
|
+
applications_pending: z.nullable(z.boolean()),
|
|
136
|
+
object: TitleDeedAvailabilityResponseObject$inboundSchema,
|
|
137
|
+
purchasable: z.boolean(),
|
|
138
|
+
reason: z.nullable(z.string()),
|
|
139
|
+
reason_code: z.nullable(ReasonCode$inboundSchema),
|
|
140
|
+
register: z.lazy(() => Register$inboundSchema),
|
|
141
|
+
title_number: z.string(),
|
|
142
|
+
title_plan: z.lazy(() => TitlePlan$inboundSchema),
|
|
143
|
+
title_status: z.nullable(z.string()),
|
|
144
|
+
}).transform((v) => {
|
|
145
|
+
return remap$(v, {
|
|
146
|
+
"applications_pending": "applicationsPending",
|
|
147
|
+
"reason_code": "reasonCode",
|
|
148
|
+
"title_number": "titleNumber",
|
|
149
|
+
"title_plan": "titlePlan",
|
|
150
|
+
"title_status": "titleStatus",
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
export function titleDeedAvailabilityResponseFromJSON(
|
|
155
|
+
jsonString: string,
|
|
156
|
+
): SafeParseResult<TitleDeedAvailabilityResponse, SDKValidationError> {
|
|
157
|
+
return safeParse(
|
|
158
|
+
jsonString,
|
|
159
|
+
(x) => TitleDeedAvailabilityResponse$inboundSchema.parse(JSON.parse(x)),
|
|
160
|
+
`Failed to parse 'TitleDeedAvailabilityResponse' from JSON`,
|
|
161
|
+
);
|
|
162
|
+
}
|
package/src/sdk/safety.ts
CHANGED
|
@@ -52,7 +52,7 @@ export class Safety extends ClientSDK {
|
|
|
52
52
|
* Get crime incidents near a point
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Return the individual crime incidents recorded within `radius` metres of a point, covering England and Wales. Incident locations are anonymised at source to a nearby map point, accurate to roughly 150m, and are published monthly around two months in arrears. The response always covers six months: supplying `date` ends that window at the month given, or at the most recent month with significant reporting if that is earlier, and leaving `date` out ends it at the most recent month with significant reporting in the area. A single request returns at most 5,000 incidents, and sets `summary.truncated` to `true` when it hits that cap, so narrow the radius or the date window to see the rest.
|
|
55
|
+
* Return the individual crime incidents recorded within `radius` metres of a point, covering England and Wales from August 2020 onwards. Incident locations are anonymised at source to a nearby map point, accurate to roughly 150m, and are published monthly around two months in arrears, dated to the first of the month they were recorded in. The response always covers six months: supplying `date` ends that window at the month given, or at the most recent month with significant reporting if that is earlier, and leaving `date` out ends it at the most recent month with significant reporting in the area. A single request returns at most 5,000 incidents, and sets `summary.truncated` to `true` when it hits that cap, so narrow the radius or the date window to see the rest.
|
|
56
56
|
*/
|
|
57
57
|
async getCrimeIncidents(
|
|
58
58
|
request: operations.GetCrimeIncidentsRequest,
|
|
@@ -83,10 +83,10 @@ export class Safety extends ClientSDK {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
|
-
* Get crime metrics for one or more geographic areas (England
|
|
86
|
+
* Get crime metrics for one or more geographic areas (England and Wales)
|
|
87
87
|
*
|
|
88
88
|
* @remarks
|
|
89
|
-
* Return scored crime metrics for one or more areas, identified by Lower Layer Super Output Area (LSOA), ward
|
|
89
|
+
* Return scored crime metrics for one or more areas across one or more months, each with a per-category breakdown and an optional monthly history. Areas are identified by GSS code at eight levels: Lower Layer Super Output Area (LSOA, `E01`/`W01`), Middle Layer Super Output Area (MSOA, `E02`/`W02`), ward (`E05`/`W05`), built-up area (`E63`/`W45`/`K08`), local authority district or unitary authority (`E06`-`E09`, `W06`), county (`E10`), English region (`E12`) and country (`E92`, `W92`). Coverage is England and Wales; codes at other levels, such as parishes, and codes in Scotland or Northern Ireland come back as `data: []`. Ward and built-up-area figures are aggregated from the Lower Layer Super Output Areas assigned to each area rather than counted on its own boundary, so they are approximations, and `geographyFit` on every row reports how much of the area's footprint those smaller areas cover. A built-up area smaller than the Lower Layer Super Output Area containing it has no figures and comes back as `data: []`. Percentiles rank an area against others of the same type, so a ward is ranked among wards and not among districts. Every month summarises the trailing 24-month window ending at that month, so counts are window totals and rates are per 1,000 residents per year. Months are published two months in arrears, roughly monthly; the catalogue endpoint lists the months held. Scores are null, never 0, where a police force did not report; read `dataAvailability` beside every number. By default the response carries one row per area and month; with `mergeAreas=true` it carries one row per month, with counts and population summed across every requested area and scores, percentiles and trends set to null because they cannot be combined across areas. Choose the months either explicitly with `periods=YYYY-MM,YYYY-MM` or as a range with `startDate` and `endDate`, never both, and set how far each row's history reaches back with `months`, which defaults to 12. An empty result comes back as `data: []` with `total_count: 0`, never as a 204.
|
|
90
90
|
*/
|
|
91
91
|
async getGeographyMetrics(
|
|
92
92
|
request: operations.GetGeographyMetricsRequest,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { Councils } from "./councils.js";
|
|
|
16
16
|
import { Energy } from "./energy.js";
|
|
17
17
|
import { Epc } from "./epc.js";
|
|
18
18
|
import { FloodRisk } from "./floodrisk.js";
|
|
19
|
+
import { Geography } from "./geography.js";
|
|
19
20
|
import { Heritage } from "./heritage.js";
|
|
20
21
|
import { LandConstraint } from "./landconstraint.js";
|
|
21
22
|
import { Listings } from "./listings.js";
|
|
@@ -115,6 +116,11 @@ export class SDK extends ClientSDK {
|
|
|
115
116
|
return (this._floodRisk ??= new FloodRisk(this._options));
|
|
116
117
|
}
|
|
117
118
|
|
|
119
|
+
private _geography?: Geography;
|
|
120
|
+
get geography(): Geography {
|
|
121
|
+
return (this._geography ??= new Geography(this._options));
|
|
122
|
+
}
|
|
123
|
+
|
|
118
124
|
private _heritage?: Heritage;
|
|
119
125
|
get heritage(): Heritage {
|
|
120
126
|
return (this._heritage ??= new Heritage(this._options));
|