@vepler/sdk 5.28.1 → 6.0.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/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/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 +28 -4
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/geographymetricsrow.js +6 -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/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/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/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 +28 -4
- package/dist/esm/sdk/models/shared/geographymetricsrow.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/geographymetricsrow.js +6 -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/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/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/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 +34 -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/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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type GetV1TitleDeedsTitleNumberApplicationsRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* HM Land Registry title number: up to three letters followed by one to six digits. Case is not significant and the value is upper-cased; older titles may be digits only.
|
|
10
|
+
*/
|
|
11
|
+
titleNumber: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetV1TitleDeedsTitleNumberApplicationsRequest$Outbound = {
|
|
16
|
+
titleNumber: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetV1TitleDeedsTitleNumberApplicationsRequest$outboundSchema:
|
|
21
|
+
z.ZodType<
|
|
22
|
+
GetV1TitleDeedsTitleNumberApplicationsRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
GetV1TitleDeedsTitleNumberApplicationsRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
titleNumber: z.string(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function getV1TitleDeedsTitleNumberApplicationsRequestToJSON(
|
|
30
|
+
getV1TitleDeedsTitleNumberApplicationsRequest:
|
|
31
|
+
GetV1TitleDeedsTitleNumberApplicationsRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
GetV1TitleDeedsTitleNumberApplicationsRequest$outboundSchema.parse(
|
|
35
|
+
getV1TitleDeedsTitleNumberApplicationsRequest,
|
|
36
|
+
),
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type GetV1TitleDeedsTitleNumberAvailabilityRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* HM Land Registry title number: up to three letters followed by one to six digits. Case is not significant and the value is upper-cased; older titles may be digits only.
|
|
10
|
+
*/
|
|
11
|
+
titleNumber: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetV1TitleDeedsTitleNumberAvailabilityRequest$Outbound = {
|
|
16
|
+
titleNumber: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetV1TitleDeedsTitleNumberAvailabilityRequest$outboundSchema:
|
|
21
|
+
z.ZodType<
|
|
22
|
+
GetV1TitleDeedsTitleNumberAvailabilityRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
GetV1TitleDeedsTitleNumberAvailabilityRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
titleNumber: z.string(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function getV1TitleDeedsTitleNumberAvailabilityRequestToJSON(
|
|
30
|
+
getV1TitleDeedsTitleNumberAvailabilityRequest:
|
|
31
|
+
GetV1TitleDeedsTitleNumberAvailabilityRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
GetV1TitleDeedsTitleNumberAvailabilityRequest$outboundSchema.parse(
|
|
35
|
+
getV1TitleDeedsTitleNumberAvailabilityRequest,
|
|
36
|
+
),
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -49,7 +49,13 @@ export * from "./getepcbylocationid.js";
|
|
|
49
49
|
export * from "./getepchealth.js";
|
|
50
50
|
export * from "./getframework.js";
|
|
51
51
|
export * from "./getgeographicmetricaggregation.js";
|
|
52
|
+
export * from "./getgeographyancestors.js";
|
|
53
|
+
export * from "./getgeographyareas.js";
|
|
54
|
+
export * from "./getgeographychildren.js";
|
|
55
|
+
export * from "./getgeographydescendants.js";
|
|
52
56
|
export * from "./getgeographymetrics.js";
|
|
57
|
+
export * from "./getgeographyprovenance.js";
|
|
58
|
+
export * from "./getgeographyrelease.js";
|
|
53
59
|
export * from "./getheritagedesignation.js";
|
|
54
60
|
export * from "./getlandconstraintdesignation.js";
|
|
55
61
|
export * from "./getlistingbyid.js";
|
|
@@ -86,6 +92,8 @@ export * from "./getsubstationdfes.js";
|
|
|
86
92
|
export * from "./gettransactionbyid.js";
|
|
87
93
|
export * from "./gettransactionsbyuprn.js";
|
|
88
94
|
export * from "./getv1titledeedstitlenumber.js";
|
|
95
|
+
export * from "./getv1titledeedstitlenumberapplications.js";
|
|
96
|
+
export * from "./getv1titledeedstitlenumberavailability.js";
|
|
89
97
|
export * from "./getv1titledeedstitlenumberdocuments.js";
|
|
90
98
|
export * from "./getv1titledeedstitlenumberdocumentsdocumenttype.js";
|
|
91
99
|
export * from "./getv1titledeedstitlenumberpurchasestatus.js";
|
|
@@ -84,7 +84,7 @@ export type ConservationDesignationFeature = {
|
|
|
84
84
|
licence: string | null;
|
|
85
85
|
localAuthority?: string | null | undefined;
|
|
86
86
|
/**
|
|
87
|
-
* Extra detail the custodian publishes, narrowed to
|
|
87
|
+
* Extra detail the custodian publishes, narrowed to `status`, `legal_regime`, `woodland_composition`, `native_pct`, `canopy_pct`, `dominant_habitat`, `maturity`, `parish`, `geographic_location` and `stat_area_km2`. Only the keys the source actually carries appear. Requires the `designationSourceData` permission on the licence.
|
|
88
88
|
*/
|
|
89
89
|
metadata?: { [k: string]: any } | undefined;
|
|
90
90
|
name?: string | null | undefined;
|
|
@@ -10,25 +10,24 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Granularity of `period`.
|
|
13
|
+
* Granularity of `period`. Only monthly periods are published today.
|
|
14
14
|
*/
|
|
15
15
|
export const PeriodType = {
|
|
16
16
|
Monthly: "monthly",
|
|
17
|
-
Quarterly: "quarterly",
|
|
18
17
|
Yearly: "yearly",
|
|
19
18
|
} as const;
|
|
20
19
|
/**
|
|
21
|
-
* Granularity of `period`.
|
|
20
|
+
* Granularity of `period`. Only monthly periods are published today.
|
|
22
21
|
*/
|
|
23
22
|
export type PeriodType = OpenEnum<typeof PeriodType>;
|
|
24
23
|
|
|
25
24
|
export type CrimeCatalogEntry = {
|
|
26
25
|
/**
|
|
27
|
-
* Country the entry covers
|
|
26
|
+
* Country the entry covers: `england` or `wales`.
|
|
28
27
|
*/
|
|
29
28
|
country: string;
|
|
30
29
|
/**
|
|
31
|
-
* True when this period has been
|
|
30
|
+
* True when this period has been published and can be queried.
|
|
32
31
|
*/
|
|
33
32
|
isAvailable: boolean;
|
|
34
33
|
/**
|
|
@@ -36,7 +35,7 @@ export type CrimeCatalogEntry = {
|
|
|
36
35
|
*/
|
|
37
36
|
period: string;
|
|
38
37
|
/**
|
|
39
|
-
* Granularity of `period`.
|
|
38
|
+
* Granularity of `period`. Only monthly periods are published today.
|
|
40
39
|
*/
|
|
41
40
|
periodType: PeriodType;
|
|
42
41
|
};
|
|
@@ -13,7 +13,7 @@ export type CrimeCatalogPeriodsByCountry = {
|
|
|
13
13
|
*/
|
|
14
14
|
monthly: Array<string>;
|
|
15
15
|
/**
|
|
16
|
-
* Yearly periods (`YYYY`) held for the country, most recent first.
|
|
16
|
+
* Yearly periods (`YYYY`) held for the country, most recent first. Empty today.
|
|
17
17
|
*/
|
|
18
18
|
yearly: Array<string>;
|
|
19
19
|
};
|
|
@@ -8,7 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 95% confidence interval around `crimeScore`, reflecting sampling only. Null when areas are merged and when no interval was computed.
|
|
12
12
|
*/
|
|
13
13
|
export type CrimeConfidenceInterval = {
|
|
14
14
|
/**
|
|
@@ -17,23 +17,27 @@ export type CrimeIncident = {
|
|
|
17
17
|
*/
|
|
18
18
|
coordinates: Array<number | null> | null;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Month the incident was recorded in, as an ISO 8601 timestamp on the first day of that month. The source publishes incidents by month, not by day.
|
|
21
21
|
*/
|
|
22
22
|
crimeDate: string;
|
|
23
23
|
/**
|
|
24
|
-
* Identifier issued for the incident by the police data source. Null
|
|
24
|
+
* Identifier issued for the incident by the police data source. Null for anti-social behaviour, which is published without one.
|
|
25
25
|
*/
|
|
26
26
|
crimeId: string | null;
|
|
27
27
|
/**
|
|
28
|
-
* Location label
|
|
28
|
+
* Location label for the incident. The current data source publishes no location text, so this is null; use `coordinates` to place the incident.
|
|
29
29
|
*/
|
|
30
30
|
crimeLocation: string | null;
|
|
31
31
|
/**
|
|
32
|
-
* Human-readable name for the crime category.
|
|
32
|
+
* Human-readable name for the crime category.
|
|
33
33
|
*/
|
|
34
34
|
label: string | null;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Last recorded outcome for the incident, as published by the police data source. Null for anti-social behaviour and for incidents with no outcome yet.
|
|
37
|
+
*/
|
|
38
|
+
outcome: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Identifier of the police force that recorded the incident, in lower-case hyphenated form.
|
|
37
41
|
*/
|
|
38
42
|
reportedBy: string | null;
|
|
39
43
|
};
|
|
@@ -50,6 +54,7 @@ export const CrimeIncident$inboundSchema: z.ZodType<
|
|
|
50
54
|
crimeId: z.nullable(z.string()),
|
|
51
55
|
crimeLocation: z.nullable(z.string()),
|
|
52
56
|
label: z.nullable(z.string()),
|
|
57
|
+
outcome: z.nullable(z.string()),
|
|
53
58
|
reportedBy: z.nullable(z.string()),
|
|
54
59
|
});
|
|
55
60
|
|
|
@@ -29,7 +29,7 @@ export type CrimeIncidentsListResponseObject = ClosedEnum<
|
|
|
29
29
|
|
|
30
30
|
export type CrimeIncidentsListResponse = {
|
|
31
31
|
/**
|
|
32
|
-
* The crime incidents inside the requested radius and date window, most recent first.
|
|
32
|
+
* The crime incidents inside the requested radius and date window, most recent month first.
|
|
33
33
|
*/
|
|
34
34
|
data: Array<CrimeIncident>;
|
|
35
35
|
/**
|
|
@@ -13,7 +13,7 @@ export type CrimeIncidentsSummary = {
|
|
|
13
13
|
*/
|
|
14
14
|
byCategory: { [k: string]: number };
|
|
15
15
|
/**
|
|
16
|
-
* Anchor month for the window, in `YYYY-MM` form. When the request supplies `date` this is that month; otherwise it is the most recent month with significant reporting in the area.
|
|
16
|
+
* Anchor month for the window, in `YYYY-MM` form. When the request supplies `date` this is that month, or the most recent month with significant reporting in the area if that is earlier; otherwise it is the most recent month with significant reporting in the area.
|
|
17
17
|
*/
|
|
18
18
|
period: string;
|
|
19
19
|
/**
|
|
@@ -11,13 +11,25 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* The trailing window behind this category's numbers. Null when areas are merged.
|
|
15
15
|
*/
|
|
16
16
|
export type CrimePeriodDetails = {
|
|
17
|
+
/**
|
|
18
|
+
* How many months of the window had usable data. Null when not known.
|
|
19
|
+
*/
|
|
20
|
+
coveredPeriods: number | null;
|
|
21
|
+
/**
|
|
22
|
+
* Last month of the window, in `YYYY-MM` form.
|
|
23
|
+
*/
|
|
24
|
+
end: string;
|
|
17
25
|
/**
|
|
18
26
|
* Number of incidents in the analysis window.
|
|
19
27
|
*/
|
|
20
28
|
sampleSize: number;
|
|
29
|
+
/**
|
|
30
|
+
* First month of the window, in `YYYY-MM` form.
|
|
31
|
+
*/
|
|
32
|
+
start: string;
|
|
21
33
|
/**
|
|
22
34
|
* Length of the analysis window, in months.
|
|
23
35
|
*/
|
|
@@ -32,7 +44,10 @@ export const CrimePeriodDetails$inboundSchema: z.ZodType<
|
|
|
32
44
|
unknown
|
|
33
45
|
> = collectExtraKeys$(
|
|
34
46
|
z.object({
|
|
47
|
+
coveredPeriods: z.nullable(z.number()),
|
|
48
|
+
end: z.string(),
|
|
35
49
|
sampleSize: z.number(),
|
|
50
|
+
start: z.string(),
|
|
36
51
|
windowMonths: z.number(),
|
|
37
52
|
}).catchall(z.any()),
|
|
38
53
|
"additionalProperties",
|
|
@@ -0,0 +1,59 @@
|
|
|
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 GeographyArea = {
|
|
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
|
+
* Publisher name. Null where none is published — ONS issues no names for Output Areas — and never unique, so never key on it.
|
|
21
|
+
*/
|
|
22
|
+
name: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* `ENG` | `WAL` | `SCO` | `NIR`, or null for a genuinely cross-border area.
|
|
25
|
+
*/
|
|
26
|
+
nation: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Cross-nation tier: `small_area` is an LSOA in England and Wales and a Data Zone in Scotland and Northern Ireland.
|
|
29
|
+
*/
|
|
30
|
+
tier: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* The layer edition, e.g. `2021`.
|
|
33
|
+
*/
|
|
34
|
+
vintage: string | null;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const GeographyArea$inboundSchema: z.ZodType<
|
|
39
|
+
GeographyArea,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
areaType: z.string(),
|
|
44
|
+
code: z.string(),
|
|
45
|
+
name: z.nullable(z.string()),
|
|
46
|
+
nation: z.nullable(z.string()),
|
|
47
|
+
tier: z.nullable(z.string()),
|
|
48
|
+
vintage: z.nullable(z.string()),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function geographyAreaFromJSON(
|
|
52
|
+
jsonString: string,
|
|
53
|
+
): SafeParseResult<GeographyArea, SDKValidationError> {
|
|
54
|
+
return safeParse(
|
|
55
|
+
jsonString,
|
|
56
|
+
(x) => GeographyArea$inboundSchema.parse(JSON.parse(x)),
|
|
57
|
+
`Failed to parse 'GeographyArea' from JSON`,
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -17,45 +17,81 @@ import {
|
|
|
17
17
|
|
|
18
18
|
export type GeographyCategoryMetric = {
|
|
19
19
|
/**
|
|
20
|
-
* Crime category this breakdown covers.
|
|
20
|
+
* Crime category this breakdown covers. `all` is the composite across every category.
|
|
21
21
|
*/
|
|
22
22
|
category: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* 95% confidence interval around `crimeScore`, reflecting sampling only. Null when areas are merged and when no interval was computed.
|
|
25
25
|
*/
|
|
26
26
|
confidenceInterval: CrimeConfidenceInterval | null;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* How many months of the 24-month window had usable data. Null when areas are merged.
|
|
29
|
+
*/
|
|
30
|
+
coveredPeriods?: number | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Number of incidents in this category over the trailing 24-month window ending at the row's period. Not decayed.
|
|
29
33
|
*/
|
|
30
34
|
crimeCount: number;
|
|
31
35
|
/**
|
|
32
|
-
* Incidents in this category per 1,000 residents.
|
|
36
|
+
* Incidents in this category per 1,000 residents per year over the window. 0 when the row's `dataAvailability` is `missing`.
|
|
33
37
|
*/
|
|
34
38
|
crimeRate: number;
|
|
35
39
|
/**
|
|
36
|
-
* Safety score for this category, from 0 to 100, where higher is safer. Null when areas are merged, because scores cannot be combined across geographies, and when
|
|
40
|
+
* Safety score for this category, from 0 to 100, where higher is safer. Each category has its own scale, so scores are not comparable across categories. Null when areas are merged, because scores cannot be combined across geographies, and when the police force did not report. Never treat a null as 0.
|
|
37
41
|
*/
|
|
38
42
|
crimeScore: number | null;
|
|
39
43
|
/**
|
|
40
|
-
* How complete the data behind this row is
|
|
44
|
+
* 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. Merged rows report `available` only when every merged area is, otherwise `partial`.
|
|
41
45
|
*/
|
|
42
46
|
dataAvailability: string;
|
|
43
47
|
/**
|
|
44
|
-
* Machine-readable codes describing what drives
|
|
48
|
+
* Machine-readable codes describing what drives the area's score. They use the same vocabulary as `CrimeMetrics.explanatoryTags`. Only the `all` category carries tags; other categories carry an empty list. Null when areas are merged.
|
|
45
49
|
*/
|
|
46
50
|
explanatoryTags: Array<string> | null;
|
|
47
51
|
/**
|
|
48
|
-
*
|
|
52
|
+
* Lower bound of the 80% prediction interval on harm over the next 12 months.
|
|
53
|
+
*/
|
|
54
|
+
harmLower?: number | null | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Expected harm per 1,000 residents per year, weighting each offence by its severity, with recent months weighted more heavily. Null when areas are merged and when the police force did not report.
|
|
57
|
+
*/
|
|
58
|
+
harmRate?: number | null | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Upper bound of the 80% prediction interval on harm over the next 12 months.
|
|
61
|
+
*/
|
|
62
|
+
harmUpper?: number | null | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Where this category's score ranks among areas of the same type in England and Wales for the month, from 0 to 100, where 100 is safest. Null when areas are merged and when fewer than 10 areas could be ranked. Not comparable across area types.
|
|
49
65
|
*/
|
|
50
66
|
percentile: number | null;
|
|
51
67
|
/**
|
|
52
|
-
*
|
|
68
|
+
* The same rank taken within the area's parent local authority. Null for local authorities and above, when areas are merged, and when fewer than 10 areas could be ranked.
|
|
69
|
+
*/
|
|
70
|
+
percentileLocal?: number | null | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* The trailing window behind this category's numbers. Null when areas are merged.
|
|
53
73
|
*/
|
|
54
74
|
periodDetails: CrimePeriodDetails | null;
|
|
55
75
|
/**
|
|
56
|
-
* Direction and size of the change in this category
|
|
76
|
+
* Direction and size of the change in this category, comparing the most recent year with the year before. Positive values mean crime is falling. Null when areas are merged and when not computed.
|
|
57
77
|
*/
|
|
58
78
|
trendFactor: number | null;
|
|
79
|
+
/**
|
|
80
|
+
* The trend in words: `improving`, `worsening`, `stable` or `unknown`. Null when areas are merged.
|
|
81
|
+
*/
|
|
82
|
+
trendLabel?: string | null | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Incidents in the most recent year divided by the year before. Above 1 means crime is rising.
|
|
85
|
+
*/
|
|
86
|
+
trendRatio?: number | null | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* True only when `trendLabel` is `improving` or `worsening`.
|
|
89
|
+
*/
|
|
90
|
+
trendSignificant?: boolean | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Statistical significance of the year-on-year change, as a z-score.
|
|
93
|
+
*/
|
|
94
|
+
trendZ?: number | null | undefined;
|
|
59
95
|
};
|
|
60
96
|
|
|
61
97
|
/** @internal */
|
|
@@ -66,14 +102,23 @@ export const GeographyCategoryMetric$inboundSchema: z.ZodType<
|
|
|
66
102
|
> = z.object({
|
|
67
103
|
category: z.string(),
|
|
68
104
|
confidenceInterval: z.nullable(CrimeConfidenceInterval$inboundSchema),
|
|
105
|
+
coveredPeriods: z.nullable(z.number()).optional(),
|
|
69
106
|
crimeCount: z.number(),
|
|
70
107
|
crimeRate: z.number(),
|
|
71
108
|
crimeScore: z.nullable(z.number()),
|
|
72
109
|
dataAvailability: z.string(),
|
|
73
110
|
explanatoryTags: z.nullable(z.array(z.string())),
|
|
111
|
+
harmLower: z.nullable(z.number()).optional(),
|
|
112
|
+
harmRate: z.nullable(z.number()).optional(),
|
|
113
|
+
harmUpper: z.nullable(z.number()).optional(),
|
|
74
114
|
percentile: z.nullable(z.number()),
|
|
115
|
+
percentileLocal: z.nullable(z.number()).optional(),
|
|
75
116
|
periodDetails: z.nullable(CrimePeriodDetails$inboundSchema),
|
|
76
117
|
trendFactor: z.nullable(z.number()),
|
|
118
|
+
trendLabel: z.nullable(z.string()).optional(),
|
|
119
|
+
trendRatio: z.nullable(z.number()).optional(),
|
|
120
|
+
trendSignificant: z.boolean().optional(),
|
|
121
|
+
trendZ: z.nullable(z.number()).optional(),
|
|
77
122
|
});
|
|
78
123
|
|
|
79
124
|
export function geographyCategoryMetricFromJSON(
|
|
@@ -17,19 +17,39 @@ 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`, `local_authority_district`, `county_unitary_authority`, `english_region` or `country_region`. A unitary authority is served as `local_authority_district`. 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
|
+
* Version of the scoring model that produced the row.
|
|
41
|
+
*/
|
|
42
|
+
modelVersion?: string | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Name of the area. Null when areas are merged.
|
|
45
|
+
*/
|
|
46
|
+
name?: string | null | undefined;
|
|
27
47
|
/**
|
|
28
48
|
* Month this row covers, in `YYYY-MM` form.
|
|
29
49
|
*/
|
|
30
50
|
period: string;
|
|
31
51
|
/**
|
|
32
|
-
* Resident population the rates are calculated against. When areas are merged it is the sum across them.
|
|
52
|
+
* 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
53
|
*/
|
|
34
54
|
population: number;
|
|
35
55
|
/**
|
|
@@ -37,13 +57,17 @@ export type GeographyMetricsRow = {
|
|
|
37
57
|
*/
|
|
38
58
|
timeSeriesData: Array<GeographyTimeSeriesPoint>;
|
|
39
59
|
/**
|
|
40
|
-
* Number of incidents across all categories
|
|
60
|
+
* Number of incidents across all categories over the 24-month window ending at the period.
|
|
41
61
|
*/
|
|
42
62
|
totalCrimeCount: number;
|
|
43
63
|
/**
|
|
44
|
-
* Incidents across all categories per 1,000 residents.
|
|
64
|
+
* Incidents across all categories per 1,000 residents per year over the window.
|
|
45
65
|
*/
|
|
46
66
|
totalCrimeRate: number;
|
|
67
|
+
/**
|
|
68
|
+
* 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.
|
|
69
|
+
*/
|
|
70
|
+
totalCrimeScore?: number | null | undefined;
|
|
47
71
|
};
|
|
48
72
|
|
|
49
73
|
/** @internal */
|
|
@@ -53,12 +77,18 @@ export const GeographyMetricsRow$inboundSchema: z.ZodType<
|
|
|
53
77
|
unknown
|
|
54
78
|
> = z.object({
|
|
55
79
|
categories: z.array(GeographyCategoryMetric$inboundSchema),
|
|
80
|
+
country: z.nullable(z.string()).optional(),
|
|
81
|
+
dataAvailability: z.string().optional(),
|
|
82
|
+
entityType: z.nullable(z.string()).optional(),
|
|
56
83
|
geographicCode: z.string(),
|
|
84
|
+
modelVersion: z.nullable(z.string()).optional(),
|
|
85
|
+
name: z.nullable(z.string()).optional(),
|
|
57
86
|
period: z.string(),
|
|
58
87
|
population: z.number(),
|
|
59
88
|
timeSeriesData: z.array(GeographyTimeSeriesPoint$inboundSchema),
|
|
60
89
|
totalCrimeCount: z.number(),
|
|
61
90
|
totalCrimeRate: z.number(),
|
|
91
|
+
totalCrimeScore: z.nullable(z.number()).optional(),
|
|
62
92
|
});
|
|
63
93
|
|
|
64
94
|
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
|
/**
|