@vepler/sdk 2.38.2 → 2.42.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 +212 -182
- package/dist/commonjs/funcs/planningPolicySearch.d.ts +18 -0
- package/dist/commonjs/funcs/planningPolicySearch.d.ts.map +1 -0
- package/dist/commonjs/funcs/planningPolicySearch.js +125 -0
- package/dist/commonjs/funcs/planningPolicySearch.js.map +1 -0
- package/dist/commonjs/funcs/safetyGetV1SafetyCrime.d.ts +3 -2
- package/dist/commonjs/funcs/safetyGetV1SafetyCrime.d.ts.map +1 -1
- package/dist/commonjs/funcs/safetyGetV1SafetyCrime.js +3 -2
- package/dist/commonjs/funcs/safetyGetV1SafetyCrime.js.map +1 -1
- package/dist/commonjs/funcs/safetyGetV1SafetyCrimeStats.d.ts +3 -2
- package/dist/commonjs/funcs/safetyGetV1SafetyCrimeStats.d.ts.map +1 -1
- package/dist/commonjs/funcs/safetyGetV1SafetyCrimeStats.js +3 -2
- package/dist/commonjs/funcs/safetyGetV1SafetyCrimeStats.js.map +1 -1
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocuments.d.ts +19 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocuments.d.ts.map +1 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocuments.js +128 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocuments.js.map +1 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocumentsDocumentType.d.ts +18 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocumentsDocumentType.d.ts.map +1 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocumentsDocumentType.js +137 -0
- package/dist/commonjs/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocumentsDocumentType.js.map +1 -0
- package/dist/commonjs/funcs/titleDeedsPostV1TitleDeedsTitleNumberPurchase.d.ts +19 -0
- package/dist/commonjs/funcs/titleDeedsPostV1TitleDeedsTitleNumberPurchase.d.ts.map +1 -0
- package/dist/commonjs/funcs/titleDeedsPostV1TitleDeedsTitleNumberPurchase.js +128 -0
- package/dist/commonjs/funcs/titleDeedsPostV1TitleDeedsTitleNumberPurchase.js.map +1 -0
- package/dist/commonjs/hooks/registration.d.ts.map +1 -1
- package/dist/commonjs/hooks/registration.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberdocuments.d.ts +266 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberdocuments.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberdocuments.js +265 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberdocuments.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberdocumentsdocumenttype.d.ts +331 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberdocumentsdocumenttype.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberdocumentsdocumenttype.js +313 -0
- package/dist/commonjs/sdk/models/errors/getv1titledeedstitlenumberdocumentsdocumenttype.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/index.d.ts +5 -0
- package/dist/commonjs/sdk/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/index.js +5 -0
- package/dist/commonjs/sdk/models/errors/index.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/insufficientcreditserror.d.ts +49 -0
- package/dist/commonjs/sdk/models/errors/insufficientcreditserror.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/insufficientcreditserror.js +97 -0
- package/dist/commonjs/sdk/models/errors/insufficientcreditserror.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/postv1titledeedstitlenumberpurchase.d.ts +266 -0
- package/dist/commonjs/sdk/models/errors/postv1titledeedstitlenumberpurchase.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/postv1titledeedstitlenumberpurchase.js +265 -0
- package/dist/commonjs/sdk/models/errors/postv1titledeedstitlenumberpurchase.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/searchplanningpolicy.d.ts +65 -0
- package/dist/commonjs/sdk/models/errors/searchplanningpolicy.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/searchplanningpolicy.js +121 -0
- package/dist/commonjs/sdk/models/errors/searchplanningpolicy.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getareacoverage.d.ts +4 -4
- package/dist/commonjs/sdk/models/operations/getareacoverage.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getareacoverage.js +4 -4
- package/dist/commonjs/sdk/models/operations/getareacoverage.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getepcbylocationid.d.ts +29 -1
- package/dist/commonjs/sdk/models/operations/getepcbylocationid.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getepcbylocationid.js +19 -2
- package/dist/commonjs/sdk/models/operations/getepcbylocationid.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getschoolmetrics.d.ts +8 -8
- package/dist/commonjs/sdk/models/operations/getschoolmetrics.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getschoolmetrics.js +15 -16
- package/dist/commonjs/sdk/models/operations/getschoolmetrics.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getv1safetycrime.d.ts +4 -93
- package/dist/commonjs/sdk/models/operations/getv1safetycrime.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getv1safetycrime.js +1 -44
- package/dist/commonjs/sdk/models/operations/getv1safetycrime.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getv1safetycrimestats.d.ts +4 -95
- package/dist/commonjs/sdk/models/operations/getv1safetycrimestats.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getv1safetycrimestats.js +1 -53
- package/dist/commonjs/sdk/models/operations/getv1safetycrimestats.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberdocuments.d.ts +12 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberdocuments.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberdocuments.js +49 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberdocuments.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberdocumentsdocumenttype.d.ts +32 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberdocumentsdocumenttype.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberdocumentsdocumenttype.js +60 -0
- package/dist/commonjs/sdk/models/operations/getv1titledeedstitlenumberdocumentsdocumenttype.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts +4 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +4 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/postv1titledeedstitlenumberpurchase.d.ts +12 -0
- package/dist/commonjs/sdk/models/operations/postv1titledeedstitlenumberpurchase.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/postv1titledeedstitlenumberpurchase.js +49 -0
- package/dist/commonjs/sdk/models/operations/postv1titledeedstitlenumberpurchase.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/searchplanningpolicy.d.ts +123 -0
- package/dist/commonjs/sdk/models/operations/searchplanningpolicy.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/searchplanningpolicy.js +160 -0
- package/dist/commonjs/sdk/models/operations/searchplanningpolicy.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/aggregationresult.d.ts +3 -1
- package/dist/commonjs/sdk/models/shared/aggregationresult.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/aggregationresult.js +4 -0
- package/dist/commonjs/sdk/models/shared/aggregationresult.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/areastatsresponse.d.ts +66 -0
- package/dist/commonjs/sdk/models/shared/areastatsresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/areastatsresponse.js +94 -0
- package/dist/commonjs/sdk/models/shared/areastatsresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/avmanalysisresponse.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/avmanalysisresponse.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/avmanalysisresponse.js +4 -4
- package/dist/commonjs/sdk/models/shared/avmanalysisresponse.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/crimedataresponse.d.ts +35 -0
- package/dist/commonjs/sdk/models/shared/crimedataresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/crimedataresponse.js +63 -0
- package/dist/commonjs/sdk/models/shared/crimedataresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/crimerecord.d.ts +37 -0
- package/dist/commonjs/sdk/models/shared/crimerecord.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/crimerecord.js +56 -0
- package/dist/commonjs/sdk/models/shared/crimerecord.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/extendedstatsaggregationresult.d.ts +75 -0
- package/dist/commonjs/sdk/models/shared/extendedstatsaggregationresult.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/extendedstatsaggregationresult.js +93 -0
- package/dist/commonjs/sdk/models/shared/extendedstatsaggregationresult.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +9 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +9 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/nearestpostcodesresponse.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/nearestpostcodesresponse.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/nearestpostcodesresponse.js +6 -7
- package/dist/commonjs/sdk/models/shared/nearestpostcodesresponse.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/percentilesaggregationresult.d.ts +15 -0
- package/dist/commonjs/sdk/models/shared/percentilesaggregationresult.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/percentilesaggregationresult.js +50 -0
- package/dist/commonjs/sdk/models/shared/percentilesaggregationresult.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/site.d.ts +15 -10
- package/dist/commonjs/sdk/models/shared/site.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/site.js +8 -6
- package/dist/commonjs/sdk/models/shared/site.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitefilters.d.ts +15 -0
- package/dist/commonjs/sdk/models/shared/sitefilters.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitefilters.js +3 -0
- package/dist/commonjs/sdk/models/shared/sitefilters.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/siteownership.d.ts +41 -0
- package/dist/commonjs/sdk/models/shared/siteownership.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteownership.js +57 -0
- package/dist/commonjs/sdk/models/shared/siteownership.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteproprietor.d.ts +33 -0
- package/dist/commonjs/sdk/models/shared/siteproprietor.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteproprietor.js +55 -0
- package/dist/commonjs/sdk/models/shared/siteproprietor.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitequerycondition.d.ts +0 -1
- package/dist/commonjs/sdk/models/shared/sitequerycondition.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitequerycondition.js +0 -1
- package/dist/commonjs/sdk/models/shared/sitequerycondition.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitequeryrequest.d.ts +0 -3
- package/dist/commonjs/sdk/models/shared/sitequeryrequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitequeryrequest.js +0 -3
- package/dist/commonjs/sdk/models/shared/sitequeryrequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titledeeddocumentlistresponse.d.ts +76 -0
- package/dist/commonjs/sdk/models/shared/titledeeddocumentlistresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/titledeeddocumentlistresponse.js +104 -0
- package/dist/commonjs/sdk/models/shared/titledeeddocumentlistresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/titledeedpurchaseresponse.d.ts +205 -0
- package/dist/commonjs/sdk/models/shared/titledeedpurchaseresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/titledeedpurchaseresponse.js +176 -0
- package/dist/commonjs/sdk/models/shared/titledeedpurchaseresponse.js.map +1 -0
- package/dist/commonjs/sdk/planningpolicy.d.ts +12 -0
- package/dist/commonjs/sdk/planningpolicy.d.ts.map +1 -0
- package/dist/commonjs/sdk/planningpolicy.js +22 -0
- package/dist/commonjs/sdk/planningpolicy.js.map +1 -0
- package/dist/commonjs/sdk/safety.d.ts +5 -4
- package/dist/commonjs/sdk/safety.d.ts.map +1 -1
- package/dist/commonjs/sdk/safety.js +2 -2
- package/dist/commonjs/sdk/safety.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/titledeeds.d.ts +27 -0
- package/dist/commonjs/sdk/titledeeds.d.ts.map +1 -0
- package/dist/commonjs/sdk/titledeeds.js +42 -0
- package/dist/commonjs/sdk/titledeeds.js.map +1 -0
- package/dist/esm/funcs/planningPolicySearch.d.ts +18 -0
- package/dist/esm/funcs/planningPolicySearch.d.ts.map +1 -0
- package/dist/esm/funcs/planningPolicySearch.js +89 -0
- package/dist/esm/funcs/planningPolicySearch.js.map +1 -0
- package/dist/esm/funcs/safetyGetV1SafetyCrime.d.ts +3 -2
- package/dist/esm/funcs/safetyGetV1SafetyCrime.d.ts.map +1 -1
- package/dist/esm/funcs/safetyGetV1SafetyCrime.js +3 -2
- package/dist/esm/funcs/safetyGetV1SafetyCrime.js.map +1 -1
- package/dist/esm/funcs/safetyGetV1SafetyCrimeStats.d.ts +3 -2
- package/dist/esm/funcs/safetyGetV1SafetyCrimeStats.d.ts.map +1 -1
- package/dist/esm/funcs/safetyGetV1SafetyCrimeStats.js +3 -2
- package/dist/esm/funcs/safetyGetV1SafetyCrimeStats.js.map +1 -1
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocuments.d.ts +19 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocuments.d.ts.map +1 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocuments.js +92 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocuments.js.map +1 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocumentsDocumentType.d.ts +18 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocumentsDocumentType.d.ts.map +1 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocumentsDocumentType.js +101 -0
- package/dist/esm/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocumentsDocumentType.js.map +1 -0
- package/dist/esm/funcs/titleDeedsPostV1TitleDeedsTitleNumberPurchase.d.ts +19 -0
- package/dist/esm/funcs/titleDeedsPostV1TitleDeedsTitleNumberPurchase.d.ts.map +1 -0
- package/dist/esm/funcs/titleDeedsPostV1TitleDeedsTitleNumberPurchase.js +92 -0
- package/dist/esm/funcs/titleDeedsPostV1TitleDeedsTitleNumberPurchase.js.map +1 -0
- package/dist/esm/hooks/registration.d.ts.map +1 -1
- package/dist/esm/hooks/registration.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberdocuments.d.ts +266 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberdocuments.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberdocuments.js +221 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberdocuments.js.map +1 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberdocumentsdocumenttype.d.ts +331 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberdocumentsdocumenttype.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberdocumentsdocumenttype.js +267 -0
- package/dist/esm/sdk/models/errors/getv1titledeedstitlenumberdocumentsdocumenttype.js.map +1 -0
- package/dist/esm/sdk/models/errors/index.d.ts +5 -0
- package/dist/esm/sdk/models/errors/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/index.js +5 -0
- package/dist/esm/sdk/models/errors/index.js.map +1 -1
- package/dist/esm/sdk/models/errors/insufficientcreditserror.d.ts +49 -0
- package/dist/esm/sdk/models/errors/insufficientcreditserror.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/insufficientcreditserror.js +59 -0
- package/dist/esm/sdk/models/errors/insufficientcreditserror.js.map +1 -0
- package/dist/esm/sdk/models/errors/postv1titledeedstitlenumberpurchase.d.ts +266 -0
- package/dist/esm/sdk/models/errors/postv1titledeedstitlenumberpurchase.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/postv1titledeedstitlenumberpurchase.js +221 -0
- package/dist/esm/sdk/models/errors/postv1titledeedstitlenumberpurchase.js.map +1 -0
- package/dist/esm/sdk/models/errors/searchplanningpolicy.d.ts +65 -0
- package/dist/esm/sdk/models/errors/searchplanningpolicy.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/searchplanningpolicy.js +81 -0
- package/dist/esm/sdk/models/errors/searchplanningpolicy.js.map +1 -0
- package/dist/esm/sdk/models/operations/getareacoverage.d.ts +4 -4
- package/dist/esm/sdk/models/operations/getareacoverage.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getareacoverage.js +3 -3
- package/dist/esm/sdk/models/operations/getareacoverage.js.map +1 -1
- package/dist/esm/sdk/models/operations/getepcbylocationid.d.ts +29 -1
- package/dist/esm/sdk/models/operations/getepcbylocationid.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getepcbylocationid.js +17 -1
- package/dist/esm/sdk/models/operations/getepcbylocationid.js.map +1 -1
- package/dist/esm/sdk/models/operations/getschoolmetrics.d.ts +8 -8
- package/dist/esm/sdk/models/operations/getschoolmetrics.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getschoolmetrics.js +12 -13
- package/dist/esm/sdk/models/operations/getschoolmetrics.js.map +1 -1
- package/dist/esm/sdk/models/operations/getv1safetycrime.d.ts +4 -93
- package/dist/esm/sdk/models/operations/getv1safetycrime.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getv1safetycrime.js +0 -39
- package/dist/esm/sdk/models/operations/getv1safetycrime.js.map +1 -1
- package/dist/esm/sdk/models/operations/getv1safetycrimestats.d.ts +4 -95
- package/dist/esm/sdk/models/operations/getv1safetycrimestats.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getv1safetycrimestats.js +0 -48
- package/dist/esm/sdk/models/operations/getv1safetycrimestats.js.map +1 -1
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberdocuments.d.ts +12 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberdocuments.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberdocuments.js +12 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberdocuments.js.map +1 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberdocumentsdocumenttype.d.ts +32 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberdocumentsdocumenttype.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberdocumentsdocumenttype.js +23 -0
- package/dist/esm/sdk/models/operations/getv1titledeedstitlenumberdocumentsdocumenttype.js.map +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts +4 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +4 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/postv1titledeedstitlenumberpurchase.d.ts +12 -0
- package/dist/esm/sdk/models/operations/postv1titledeedstitlenumberpurchase.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/postv1titledeedstitlenumberpurchase.js +12 -0
- package/dist/esm/sdk/models/operations/postv1titledeedstitlenumberpurchase.js.map +1 -0
- package/dist/esm/sdk/models/operations/searchplanningpolicy.d.ts +123 -0
- package/dist/esm/sdk/models/operations/searchplanningpolicy.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/searchplanningpolicy.js +117 -0
- package/dist/esm/sdk/models/operations/searchplanningpolicy.js.map +1 -0
- package/dist/esm/sdk/models/shared/aggregationresult.d.ts +3 -1
- package/dist/esm/sdk/models/shared/aggregationresult.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/aggregationresult.js +4 -0
- package/dist/esm/sdk/models/shared/aggregationresult.js.map +1 -1
- package/dist/esm/sdk/models/shared/areastatsresponse.d.ts +66 -0
- package/dist/esm/sdk/models/shared/areastatsresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/areastatsresponse.js +54 -0
- package/dist/esm/sdk/models/shared/areastatsresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/avmanalysisresponse.d.ts +4 -4
- package/dist/esm/sdk/models/shared/avmanalysisresponse.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/avmanalysisresponse.js +3 -3
- package/dist/esm/sdk/models/shared/avmanalysisresponse.js.map +1 -1
- package/dist/esm/sdk/models/shared/crimedataresponse.d.ts +35 -0
- package/dist/esm/sdk/models/shared/crimedataresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/crimedataresponse.js +25 -0
- package/dist/esm/sdk/models/shared/crimedataresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/crimerecord.d.ts +37 -0
- package/dist/esm/sdk/models/shared/crimerecord.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/crimerecord.js +19 -0
- package/dist/esm/sdk/models/shared/crimerecord.js.map +1 -0
- package/dist/esm/sdk/models/shared/extendedstatsaggregationresult.d.ts +75 -0
- package/dist/esm/sdk/models/shared/extendedstatsaggregationresult.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/extendedstatsaggregationresult.js +55 -0
- package/dist/esm/sdk/models/shared/extendedstatsaggregationresult.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +9 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +9 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/nearestpostcodesresponse.d.ts +4 -4
- package/dist/esm/sdk/models/shared/nearestpostcodesresponse.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/nearestpostcodesresponse.js +4 -5
- package/dist/esm/sdk/models/shared/nearestpostcodesresponse.js.map +1 -1
- package/dist/esm/sdk/models/shared/percentilesaggregationresult.d.ts +15 -0
- package/dist/esm/sdk/models/shared/percentilesaggregationresult.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/percentilesaggregationresult.js +13 -0
- package/dist/esm/sdk/models/shared/percentilesaggregationresult.js.map +1 -0
- package/dist/esm/sdk/models/shared/site.d.ts +15 -10
- package/dist/esm/sdk/models/shared/site.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/site.js +8 -6
- package/dist/esm/sdk/models/shared/site.js.map +1 -1
- package/dist/esm/sdk/models/shared/sitefilters.d.ts +15 -0
- package/dist/esm/sdk/models/shared/sitefilters.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/sitefilters.js +3 -0
- package/dist/esm/sdk/models/shared/sitefilters.js.map +1 -1
- package/dist/esm/sdk/models/shared/siteownership.d.ts +41 -0
- package/dist/esm/sdk/models/shared/siteownership.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/siteownership.js +20 -0
- package/dist/esm/sdk/models/shared/siteownership.js.map +1 -0
- package/dist/esm/sdk/models/shared/siteproprietor.d.ts +33 -0
- package/dist/esm/sdk/models/shared/siteproprietor.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/siteproprietor.js +18 -0
- package/dist/esm/sdk/models/shared/siteproprietor.js.map +1 -0
- package/dist/esm/sdk/models/shared/sitequerycondition.d.ts +0 -1
- package/dist/esm/sdk/models/shared/sitequerycondition.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/sitequerycondition.js +0 -1
- package/dist/esm/sdk/models/shared/sitequerycondition.js.map +1 -1
- package/dist/esm/sdk/models/shared/sitequeryrequest.d.ts +0 -3
- package/dist/esm/sdk/models/shared/sitequeryrequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/sitequeryrequest.js +0 -3
- package/dist/esm/sdk/models/shared/sitequeryrequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/titledeeddocumentlistresponse.d.ts +76 -0
- package/dist/esm/sdk/models/shared/titledeeddocumentlistresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/titledeeddocumentlistresponse.js +66 -0
- package/dist/esm/sdk/models/shared/titledeeddocumentlistresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/titledeedpurchaseresponse.d.ts +205 -0
- package/dist/esm/sdk/models/shared/titledeedpurchaseresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/titledeedpurchaseresponse.js +133 -0
- package/dist/esm/sdk/models/shared/titledeedpurchaseresponse.js.map +1 -0
- package/dist/esm/sdk/planningpolicy.d.ts +12 -0
- package/dist/esm/sdk/planningpolicy.d.ts.map +1 -0
- package/dist/esm/sdk/planningpolicy.js +18 -0
- package/dist/esm/sdk/planningpolicy.js.map +1 -0
- package/dist/esm/sdk/safety.d.ts +5 -4
- package/dist/esm/sdk/safety.d.ts.map +1 -1
- package/dist/esm/sdk/safety.js +2 -2
- package/dist/esm/sdk/safety.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/titledeeds.d.ts +27 -0
- package/dist/esm/sdk/titledeeds.d.ts.map +1 -0
- package/dist/esm/sdk/titledeeds.js +38 -0
- package/dist/esm/sdk/titledeeds.js.map +1 -0
- package/package.json +1 -1
- package/src/funcs/planningPolicySearch.ts +185 -0
- package/src/funcs/safetyGetV1SafetyCrime.ts +6 -5
- package/src/funcs/safetyGetV1SafetyCrimeStats.ts +6 -5
- package/src/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocuments.ts +207 -0
- package/src/funcs/titleDeedsGetV1TitleDeedsTitleNumberDocumentsDocumentType.ts +223 -0
- package/src/funcs/titleDeedsPostV1TitleDeedsTitleNumberPurchase.ts +209 -0
- package/src/hooks/registration.ts +1 -4
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/errors/getv1titledeedstitlenumberdocuments.ts +576 -0
- package/src/sdk/models/errors/getv1titledeedstitlenumberdocumentsdocumenttype.ts +750 -0
- package/src/sdk/models/errors/index.ts +5 -0
- package/src/sdk/models/errors/insufficientcreditserror.ts +115 -0
- package/src/sdk/models/errors/postv1titledeedstitlenumberpurchase.ts +576 -0
- package/src/sdk/models/errors/searchplanningpolicy.ts +174 -0
- package/src/sdk/models/operations/getareacoverage.ts +9 -7
- package/src/sdk/models/operations/getepcbylocationid.ts +54 -2
- package/src/sdk/models/operations/getschoolmetrics.ts +39 -32
- package/src/sdk/models/operations/getv1safetycrime.ts +4 -167
- package/src/sdk/models/operations/getv1safetycrimestats.ts +4 -176
- package/src/sdk/models/operations/getv1titledeedstitlenumberdocuments.ts +35 -0
- package/src/sdk/models/operations/getv1titledeedstitlenumberdocumentsdocumenttype.ts +59 -0
- package/src/sdk/models/operations/index.ts +4 -0
- package/src/sdk/models/operations/postv1titledeedstitlenumberpurchase.ts +35 -0
- package/src/sdk/models/operations/searchplanningpolicy.ts +274 -0
- package/src/sdk/models/shared/aggregationresult.ts +12 -0
- package/src/sdk/models/shared/areastatsresponse.ts +147 -0
- package/src/sdk/models/shared/avmanalysisresponse.ts +11 -6
- package/src/sdk/models/shared/crimedataresponse.ts +75 -0
- package/src/sdk/models/shared/crimerecord.ts +64 -0
- package/src/sdk/models/shared/extendedstatsaggregationresult.ts +150 -0
- package/src/sdk/models/shared/index.ts +9 -0
- package/src/sdk/models/shared/nearestpostcodesresponse.ts +20 -19
- package/src/sdk/models/shared/percentilesaggregationresult.ts +34 -0
- package/src/sdk/models/shared/site.ts +22 -16
- package/src/sdk/models/shared/sitefilters.ts +18 -0
- package/src/sdk/models/shared/siteownership.ts +71 -0
- package/src/sdk/models/shared/siteproprietor.ts +59 -0
- package/src/sdk/models/shared/sitequerycondition.ts +0 -1
- package/src/sdk/models/shared/sitequeryrequest.ts +0 -3
- package/src/sdk/models/shared/titledeeddocumentlistresponse.ts +155 -0
- package/src/sdk/models/shared/titledeedpurchaseresponse.ts +406 -0
- package/src/sdk/planningpolicy.ts +27 -0
- package/src/sdk/safety.ts +5 -4
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/titledeeds.ts +66 -0
- package/examples/package.json +0 -18
- package/openapi.json +0 -11986
- package/tsconfig.json +0 -40
|
@@ -3,110 +3,26 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
-
import * as openEnums from "../../types/enums.js";
|
|
8
|
-
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
6
|
|
|
12
7
|
export type GetV1SafetyCrimeStatsRequest = {
|
|
13
8
|
/**
|
|
14
|
-
*
|
|
9
|
+
* Latitude coordinate
|
|
15
10
|
*/
|
|
16
11
|
latitude: string;
|
|
17
12
|
/**
|
|
18
|
-
*
|
|
13
|
+
* Longitude coordinate
|
|
19
14
|
*/
|
|
20
15
|
longitude: string;
|
|
21
16
|
/**
|
|
22
|
-
* Number of months to
|
|
17
|
+
* Number of months to analyse
|
|
23
18
|
*/
|
|
24
19
|
months?: string | undefined;
|
|
25
20
|
/**
|
|
26
|
-
* Search radius in metres
|
|
21
|
+
* Search radius in metres (100-50000)
|
|
27
22
|
*/
|
|
28
23
|
radius?: string | undefined;
|
|
29
24
|
};
|
|
30
25
|
|
|
31
|
-
export type MonthlyBreakdown = {
|
|
32
|
-
/**
|
|
33
|
-
* Total number of crimes recorded in this month within the search area.
|
|
34
|
-
*/
|
|
35
|
-
count: number;
|
|
36
|
-
/**
|
|
37
|
-
* Month identifier in YYYY-MM format.
|
|
38
|
-
*/
|
|
39
|
-
month: string;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export type TopCategories = {
|
|
43
|
-
/**
|
|
44
|
-
* Crime category key using underscore-separated names (e.g. 'violence_and_sexual_offences').
|
|
45
|
-
*/
|
|
46
|
-
category: string;
|
|
47
|
-
/**
|
|
48
|
-
* Total number of crimes in this category over the analysis period.
|
|
49
|
-
*/
|
|
50
|
-
count: number;
|
|
51
|
-
/**
|
|
52
|
-
* This category's share of total crimes as a whole-number percentage (0-100).
|
|
53
|
-
*/
|
|
54
|
-
percentage: number;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Overall crime trend direction over the analysis period. Determined by comparing the average monthly crime count in the first half of the period to the second half. 'increasing': second half is >10% higher than first half. 'decreasing': second half is >10% lower than first half. 'stable': change is within +/-10%.
|
|
59
|
-
*/
|
|
60
|
-
export const Trend = {
|
|
61
|
-
Increasing: "increasing",
|
|
62
|
-
Decreasing: "decreasing",
|
|
63
|
-
Stable: "stable",
|
|
64
|
-
} as const;
|
|
65
|
-
/**
|
|
66
|
-
* Overall crime trend direction over the analysis period. Determined by comparing the average monthly crime count in the first half of the period to the second half. 'increasing': second half is >10% higher than first half. 'decreasing': second half is >10% lower than first half. 'stable': change is within +/-10%.
|
|
67
|
-
*/
|
|
68
|
-
export type Trend = OpenEnum<typeof Trend>;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Aggregated crime statistics for the queried area and time window.
|
|
72
|
-
*/
|
|
73
|
-
export type GetV1SafetyCrimeStatsData = {
|
|
74
|
-
/**
|
|
75
|
-
* Average number of crimes per month over the analysis period, rounded to the nearest integer.
|
|
76
|
-
*/
|
|
77
|
-
monthlyAverage: number;
|
|
78
|
-
/**
|
|
79
|
-
* Month-by-month crime counts over the analysis period, ordered from most recent to oldest. Useful for visualising temporal patterns and seasonality.
|
|
80
|
-
*/
|
|
81
|
-
monthlyBreakdown: Array<MonthlyBreakdown>;
|
|
82
|
-
/**
|
|
83
|
-
* Computed safety score for the search area (0-100). Higher scores indicate safer areas. Calculated as an inverse function of crime density: score = 100 - (crimes per km² per month x 10), clamped to the 0-100 range. This is a simplified density-based metric; for the full severity-weighted, time-decayed national score, use the batch crime metrics endpoint with LSOA codes.
|
|
84
|
-
*/
|
|
85
|
-
safetyScore: number;
|
|
86
|
-
/**
|
|
87
|
-
* The top 5 crime categories by volume, sorted in descending order. Each entry includes the category name, absolute count, and percentage of total.
|
|
88
|
-
*/
|
|
89
|
-
topCategories: Array<TopCategories>;
|
|
90
|
-
/**
|
|
91
|
-
* Total number of recorded crimes across all categories within the search area and time window.
|
|
92
|
-
*/
|
|
93
|
-
totalCrimes: number;
|
|
94
|
-
/**
|
|
95
|
-
* Overall crime trend direction over the analysis period. Determined by comparing the average monthly crime count in the first half of the period to the second half. 'increasing': second half is >10% higher than first half. 'decreasing': second half is >10% lower than first half. 'stable': change is within +/-10%.
|
|
96
|
-
*/
|
|
97
|
-
trend: Trend;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Crime statistics successfully retrieved.
|
|
102
|
-
*/
|
|
103
|
-
export type GetV1SafetyCrimeStatsResponseBody = {
|
|
104
|
-
/**
|
|
105
|
-
* Aggregated crime statistics for the queried area and time window.
|
|
106
|
-
*/
|
|
107
|
-
data: GetV1SafetyCrimeStatsData;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
26
|
/** @internal */
|
|
111
27
|
export type GetV1SafetyCrimeStatsRequest$Outbound = {
|
|
112
28
|
latitude: string;
|
|
@@ -136,91 +52,3 @@ export function getV1SafetyCrimeStatsRequestToJSON(
|
|
|
136
52
|
),
|
|
137
53
|
);
|
|
138
54
|
}
|
|
139
|
-
|
|
140
|
-
/** @internal */
|
|
141
|
-
export const MonthlyBreakdown$inboundSchema: z.ZodType<
|
|
142
|
-
MonthlyBreakdown,
|
|
143
|
-
z.ZodTypeDef,
|
|
144
|
-
unknown
|
|
145
|
-
> = z.object({
|
|
146
|
-
count: z.number(),
|
|
147
|
-
month: z.string(),
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
export function monthlyBreakdownFromJSON(
|
|
151
|
-
jsonString: string,
|
|
152
|
-
): SafeParseResult<MonthlyBreakdown, SDKValidationError> {
|
|
153
|
-
return safeParse(
|
|
154
|
-
jsonString,
|
|
155
|
-
(x) => MonthlyBreakdown$inboundSchema.parse(JSON.parse(x)),
|
|
156
|
-
`Failed to parse 'MonthlyBreakdown' from JSON`,
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/** @internal */
|
|
161
|
-
export const TopCategories$inboundSchema: z.ZodType<
|
|
162
|
-
TopCategories,
|
|
163
|
-
z.ZodTypeDef,
|
|
164
|
-
unknown
|
|
165
|
-
> = z.object({
|
|
166
|
-
category: z.string(),
|
|
167
|
-
count: z.number(),
|
|
168
|
-
percentage: z.number(),
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
export function topCategoriesFromJSON(
|
|
172
|
-
jsonString: string,
|
|
173
|
-
): SafeParseResult<TopCategories, SDKValidationError> {
|
|
174
|
-
return safeParse(
|
|
175
|
-
jsonString,
|
|
176
|
-
(x) => TopCategories$inboundSchema.parse(JSON.parse(x)),
|
|
177
|
-
`Failed to parse 'TopCategories' from JSON`,
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/** @internal */
|
|
182
|
-
export const Trend$inboundSchema: z.ZodType<Trend, z.ZodTypeDef, unknown> =
|
|
183
|
-
openEnums.inboundSchema(Trend);
|
|
184
|
-
|
|
185
|
-
/** @internal */
|
|
186
|
-
export const GetV1SafetyCrimeStatsData$inboundSchema: z.ZodType<
|
|
187
|
-
GetV1SafetyCrimeStatsData,
|
|
188
|
-
z.ZodTypeDef,
|
|
189
|
-
unknown
|
|
190
|
-
> = z.object({
|
|
191
|
-
monthlyAverage: z.number(),
|
|
192
|
-
monthlyBreakdown: z.array(z.lazy(() => MonthlyBreakdown$inboundSchema)),
|
|
193
|
-
safetyScore: z.number(),
|
|
194
|
-
topCategories: z.array(z.lazy(() => TopCategories$inboundSchema)),
|
|
195
|
-
totalCrimes: z.number(),
|
|
196
|
-
trend: Trend$inboundSchema,
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
export function getV1SafetyCrimeStatsDataFromJSON(
|
|
200
|
-
jsonString: string,
|
|
201
|
-
): SafeParseResult<GetV1SafetyCrimeStatsData, SDKValidationError> {
|
|
202
|
-
return safeParse(
|
|
203
|
-
jsonString,
|
|
204
|
-
(x) => GetV1SafetyCrimeStatsData$inboundSchema.parse(JSON.parse(x)),
|
|
205
|
-
`Failed to parse 'GetV1SafetyCrimeStatsData' from JSON`,
|
|
206
|
-
);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/** @internal */
|
|
210
|
-
export const GetV1SafetyCrimeStatsResponseBody$inboundSchema: z.ZodType<
|
|
211
|
-
GetV1SafetyCrimeStatsResponseBody,
|
|
212
|
-
z.ZodTypeDef,
|
|
213
|
-
unknown
|
|
214
|
-
> = z.object({
|
|
215
|
-
data: z.lazy(() => GetV1SafetyCrimeStatsData$inboundSchema),
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
export function getV1SafetyCrimeStatsResponseBodyFromJSON(
|
|
219
|
-
jsonString: string,
|
|
220
|
-
): SafeParseResult<GetV1SafetyCrimeStatsResponseBody, SDKValidationError> {
|
|
221
|
-
return safeParse(
|
|
222
|
-
jsonString,
|
|
223
|
-
(x) => GetV1SafetyCrimeStatsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
224
|
-
`Failed to parse 'GetV1SafetyCrimeStatsResponseBody' from JSON`,
|
|
225
|
-
);
|
|
226
|
-
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 GetV1TitleDeedsTitleNumberDocumentsRequest = {
|
|
8
|
+
titleNumber: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type GetV1TitleDeedsTitleNumberDocumentsRequest$Outbound = {
|
|
13
|
+
titleNumber: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const GetV1TitleDeedsTitleNumberDocumentsRequest$outboundSchema:
|
|
18
|
+
z.ZodType<
|
|
19
|
+
GetV1TitleDeedsTitleNumberDocumentsRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
GetV1TitleDeedsTitleNumberDocumentsRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
titleNumber: z.string(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function getV1TitleDeedsTitleNumberDocumentsRequestToJSON(
|
|
27
|
+
getV1TitleDeedsTitleNumberDocumentsRequest:
|
|
28
|
+
GetV1TitleDeedsTitleNumberDocumentsRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
GetV1TitleDeedsTitleNumberDocumentsRequest$outboundSchema.parse(
|
|
32
|
+
getV1TitleDeedsTitleNumberDocumentsRequest,
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -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 { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* HMLR document type
|
|
10
|
+
*/
|
|
11
|
+
export const DocumentType = {
|
|
12
|
+
RegisterExtract: "register-extract",
|
|
13
|
+
OfficialTitle: "official-title",
|
|
14
|
+
TitlePlan: "title-plan",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* HMLR document type
|
|
18
|
+
*/
|
|
19
|
+
export type DocumentType = ClosedEnum<typeof DocumentType>;
|
|
20
|
+
|
|
21
|
+
export type GetV1TitleDeedsTitleNumberDocumentsDocumentTypeRequest = {
|
|
22
|
+
/**
|
|
23
|
+
* HMLR document type
|
|
24
|
+
*/
|
|
25
|
+
documentType: DocumentType;
|
|
26
|
+
titleNumber: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const DocumentType$outboundSchema: z.ZodNativeEnum<typeof DocumentType> =
|
|
31
|
+
z.nativeEnum(DocumentType);
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type GetV1TitleDeedsTitleNumberDocumentsDocumentTypeRequest$Outbound = {
|
|
35
|
+
documentType: string;
|
|
36
|
+
titleNumber: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const GetV1TitleDeedsTitleNumberDocumentsDocumentTypeRequest$outboundSchema:
|
|
41
|
+
z.ZodType<
|
|
42
|
+
GetV1TitleDeedsTitleNumberDocumentsDocumentTypeRequest$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
GetV1TitleDeedsTitleNumberDocumentsDocumentTypeRequest
|
|
45
|
+
> = z.object({
|
|
46
|
+
documentType: DocumentType$outboundSchema,
|
|
47
|
+
titleNumber: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function getV1TitleDeedsTitleNumberDocumentsDocumentTypeRequestToJSON(
|
|
51
|
+
getV1TitleDeedsTitleNumberDocumentsDocumentTypeRequest:
|
|
52
|
+
GetV1TitleDeedsTitleNumberDocumentsDocumentTypeRequest,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
GetV1TitleDeedsTitleNumberDocumentsDocumentTypeRequest$outboundSchema.parse(
|
|
56
|
+
getV1TitleDeedsTitleNumberDocumentsDocumentTypeRequest,
|
|
57
|
+
),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -49,15 +49,19 @@ export * from "./getsitebyid.js";
|
|
|
49
49
|
export * from "./getsitetiles.js";
|
|
50
50
|
export * from "./getv1safetycrime.js";
|
|
51
51
|
export * from "./getv1safetycrimestats.js";
|
|
52
|
+
export * from "./getv1titledeedstitlenumberdocuments.js";
|
|
53
|
+
export * from "./getv1titledeedstitlenumberdocumentsdocumenttype.js";
|
|
52
54
|
export * from "./listcouncils.js";
|
|
53
55
|
export * from "./listschools.js";
|
|
54
56
|
export * from "./lookupoutcode.js";
|
|
55
57
|
export * from "./lookuppostcode.js";
|
|
56
58
|
export * from "./lookupuprn.js";
|
|
59
|
+
export * from "./postv1titledeedstitlenumberpurchase.js";
|
|
57
60
|
export * from "./querylistings.js";
|
|
58
61
|
export * from "./querylistingsbysource.js";
|
|
59
62
|
export * from "./resolveaddress.js";
|
|
60
63
|
export * from "./reversegeocode.js";
|
|
64
|
+
export * from "./searchplanningpolicy.js";
|
|
61
65
|
export * from "./searchschoolsnearby.js";
|
|
62
66
|
export * from "./searchschoolswithin.js";
|
|
63
67
|
export * from "./searchsuggest.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
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 PostV1TitleDeedsTitleNumberPurchaseRequest = {
|
|
8
|
+
titleNumber: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type PostV1TitleDeedsTitleNumberPurchaseRequest$Outbound = {
|
|
13
|
+
titleNumber: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const PostV1TitleDeedsTitleNumberPurchaseRequest$outboundSchema:
|
|
18
|
+
z.ZodType<
|
|
19
|
+
PostV1TitleDeedsTitleNumberPurchaseRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
PostV1TitleDeedsTitleNumberPurchaseRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
titleNumber: z.string(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function postV1TitleDeedsTitleNumberPurchaseRequestToJSON(
|
|
27
|
+
postV1TitleDeedsTitleNumberPurchaseRequest:
|
|
28
|
+
PostV1TitleDeedsTitleNumberPurchaseRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
PostV1TitleDeedsTitleNumberPurchaseRequest$outboundSchema.parse(
|
|
32
|
+
postV1TitleDeedsTitleNumberPurchaseRequest,
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,274 @@
|
|
|
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
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Filter by rule type
|
|
14
|
+
*/
|
|
15
|
+
export const RuleType = {
|
|
16
|
+
Requirement: "requirement",
|
|
17
|
+
Guideline: "guideline",
|
|
18
|
+
Standard: "standard",
|
|
19
|
+
Threshold: "threshold",
|
|
20
|
+
Procedure: "procedure",
|
|
21
|
+
Definition: "definition",
|
|
22
|
+
Exemption: "exemption",
|
|
23
|
+
} as const;
|
|
24
|
+
/**
|
|
25
|
+
* Filter by rule type
|
|
26
|
+
*/
|
|
27
|
+
export type RuleType = ClosedEnum<typeof RuleType>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Filter by source type
|
|
31
|
+
*/
|
|
32
|
+
export const SourceType = {
|
|
33
|
+
NationalFramework: "national_framework",
|
|
34
|
+
LocalPlan: "local_plan",
|
|
35
|
+
SupplementaryPlanningDocument: "supplementary_planning_document",
|
|
36
|
+
DesignGuide: "design_guide",
|
|
37
|
+
NeighbourhoodPlan: "neighbourhood_plan",
|
|
38
|
+
} as const;
|
|
39
|
+
/**
|
|
40
|
+
* Filter by source type
|
|
41
|
+
*/
|
|
42
|
+
export type SourceType = ClosedEnum<typeof SourceType>;
|
|
43
|
+
|
|
44
|
+
export type SearchPlanningPolicyRequest = {
|
|
45
|
+
council?: string | undefined;
|
|
46
|
+
limit?: number | undefined;
|
|
47
|
+
q: string;
|
|
48
|
+
/**
|
|
49
|
+
* Filter by rule type
|
|
50
|
+
*/
|
|
51
|
+
ruleType?: RuleType | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Filter by source type
|
|
54
|
+
*/
|
|
55
|
+
sourceType?: SourceType | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export type Meta = {
|
|
59
|
+
query: string;
|
|
60
|
+
searchTimeMs: number;
|
|
61
|
+
total: number;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type Two = {
|
|
65
|
+
content: string;
|
|
66
|
+
contextSummary: string | null;
|
|
67
|
+
id: string;
|
|
68
|
+
pageEnd: number | null;
|
|
69
|
+
pageStart: number | null;
|
|
70
|
+
score: number;
|
|
71
|
+
sectionPath: Array<string> | null;
|
|
72
|
+
source: string;
|
|
73
|
+
type: "chunk";
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export type Provenance = {
|
|
77
|
+
chapter?: string | undefined;
|
|
78
|
+
page?: number | undefined;
|
|
79
|
+
paragraph?: string | undefined;
|
|
80
|
+
section?: string | undefined;
|
|
81
|
+
source: string;
|
|
82
|
+
url?: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type One = {
|
|
86
|
+
category: string | null;
|
|
87
|
+
confidence: number | null;
|
|
88
|
+
id: string;
|
|
89
|
+
provenance: Provenance;
|
|
90
|
+
ruleText: string;
|
|
91
|
+
ruleType: string;
|
|
92
|
+
score: number;
|
|
93
|
+
type: "rule";
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export type Results = One | Two;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Search results
|
|
100
|
+
*/
|
|
101
|
+
export type SearchPlanningPolicyResponseBody = {
|
|
102
|
+
meta: Meta;
|
|
103
|
+
results: Array<One | Two>;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const RuleType$outboundSchema: z.ZodNativeEnum<typeof RuleType> = z
|
|
108
|
+
.nativeEnum(RuleType);
|
|
109
|
+
|
|
110
|
+
/** @internal */
|
|
111
|
+
export const SourceType$outboundSchema: z.ZodNativeEnum<typeof SourceType> = z
|
|
112
|
+
.nativeEnum(SourceType);
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export type SearchPlanningPolicyRequest$Outbound = {
|
|
116
|
+
council?: string | undefined;
|
|
117
|
+
limit: number;
|
|
118
|
+
q: string;
|
|
119
|
+
rule_type?: string | undefined;
|
|
120
|
+
source_type?: string | undefined;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const SearchPlanningPolicyRequest$outboundSchema: z.ZodType<
|
|
125
|
+
SearchPlanningPolicyRequest$Outbound,
|
|
126
|
+
z.ZodTypeDef,
|
|
127
|
+
SearchPlanningPolicyRequest
|
|
128
|
+
> = z.object({
|
|
129
|
+
council: z.string().optional(),
|
|
130
|
+
limit: z.number().int().default(10),
|
|
131
|
+
q: z.string(),
|
|
132
|
+
ruleType: RuleType$outboundSchema.optional(),
|
|
133
|
+
sourceType: SourceType$outboundSchema.optional(),
|
|
134
|
+
}).transform((v) => {
|
|
135
|
+
return remap$(v, {
|
|
136
|
+
ruleType: "rule_type",
|
|
137
|
+
sourceType: "source_type",
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
export function searchPlanningPolicyRequestToJSON(
|
|
142
|
+
searchPlanningPolicyRequest: SearchPlanningPolicyRequest,
|
|
143
|
+
): string {
|
|
144
|
+
return JSON.stringify(
|
|
145
|
+
SearchPlanningPolicyRequest$outboundSchema.parse(
|
|
146
|
+
searchPlanningPolicyRequest,
|
|
147
|
+
),
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** @internal */
|
|
152
|
+
export const Meta$inboundSchema: z.ZodType<Meta, z.ZodTypeDef, unknown> = z
|
|
153
|
+
.object({
|
|
154
|
+
query: z.string(),
|
|
155
|
+
searchTimeMs: z.number(),
|
|
156
|
+
total: z.number(),
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export function metaFromJSON(
|
|
160
|
+
jsonString: string,
|
|
161
|
+
): SafeParseResult<Meta, SDKValidationError> {
|
|
162
|
+
return safeParse(
|
|
163
|
+
jsonString,
|
|
164
|
+
(x) => Meta$inboundSchema.parse(JSON.parse(x)),
|
|
165
|
+
`Failed to parse 'Meta' from JSON`,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/** @internal */
|
|
170
|
+
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
171
|
+
.object({
|
|
172
|
+
content: z.string(),
|
|
173
|
+
contextSummary: z.nullable(z.string()),
|
|
174
|
+
id: z.string(),
|
|
175
|
+
pageEnd: z.nullable(z.number()),
|
|
176
|
+
pageStart: z.nullable(z.number()),
|
|
177
|
+
score: z.number(),
|
|
178
|
+
sectionPath: z.nullable(z.array(z.string())),
|
|
179
|
+
source: z.string(),
|
|
180
|
+
type: z.literal("chunk"),
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
export function twoFromJSON(
|
|
184
|
+
jsonString: string,
|
|
185
|
+
): SafeParseResult<Two, SDKValidationError> {
|
|
186
|
+
return safeParse(
|
|
187
|
+
jsonString,
|
|
188
|
+
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
+
`Failed to parse 'Two' from JSON`,
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/** @internal */
|
|
194
|
+
export const Provenance$inboundSchema: z.ZodType<
|
|
195
|
+
Provenance,
|
|
196
|
+
z.ZodTypeDef,
|
|
197
|
+
unknown
|
|
198
|
+
> = z.object({
|
|
199
|
+
chapter: z.string().optional(),
|
|
200
|
+
page: z.number().optional(),
|
|
201
|
+
paragraph: z.string().optional(),
|
|
202
|
+
section: z.string().optional(),
|
|
203
|
+
source: z.string(),
|
|
204
|
+
url: z.string().optional(),
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
export function provenanceFromJSON(
|
|
208
|
+
jsonString: string,
|
|
209
|
+
): SafeParseResult<Provenance, SDKValidationError> {
|
|
210
|
+
return safeParse(
|
|
211
|
+
jsonString,
|
|
212
|
+
(x) => Provenance$inboundSchema.parse(JSON.parse(x)),
|
|
213
|
+
`Failed to parse 'Provenance' from JSON`,
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/** @internal */
|
|
218
|
+
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
219
|
+
.object({
|
|
220
|
+
category: z.nullable(z.string()),
|
|
221
|
+
confidence: z.nullable(z.number()),
|
|
222
|
+
id: z.string(),
|
|
223
|
+
provenance: z.lazy(() => Provenance$inboundSchema),
|
|
224
|
+
ruleText: z.string(),
|
|
225
|
+
ruleType: z.string(),
|
|
226
|
+
score: z.number(),
|
|
227
|
+
type: z.literal("rule"),
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
export function oneFromJSON(
|
|
231
|
+
jsonString: string,
|
|
232
|
+
): SafeParseResult<One, SDKValidationError> {
|
|
233
|
+
return safeParse(
|
|
234
|
+
jsonString,
|
|
235
|
+
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
236
|
+
`Failed to parse 'One' from JSON`,
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/** @internal */
|
|
241
|
+
export const Results$inboundSchema: z.ZodType<Results, z.ZodTypeDef, unknown> =
|
|
242
|
+
z.union([z.lazy(() => One$inboundSchema), z.lazy(() => Two$inboundSchema)]);
|
|
243
|
+
|
|
244
|
+
export function resultsFromJSON(
|
|
245
|
+
jsonString: string,
|
|
246
|
+
): SafeParseResult<Results, SDKValidationError> {
|
|
247
|
+
return safeParse(
|
|
248
|
+
jsonString,
|
|
249
|
+
(x) => Results$inboundSchema.parse(JSON.parse(x)),
|
|
250
|
+
`Failed to parse 'Results' from JSON`,
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/** @internal */
|
|
255
|
+
export const SearchPlanningPolicyResponseBody$inboundSchema: z.ZodType<
|
|
256
|
+
SearchPlanningPolicyResponseBody,
|
|
257
|
+
z.ZodTypeDef,
|
|
258
|
+
unknown
|
|
259
|
+
> = z.object({
|
|
260
|
+
meta: z.lazy(() => Meta$inboundSchema),
|
|
261
|
+
results: z.array(
|
|
262
|
+
z.union([z.lazy(() => One$inboundSchema), z.lazy(() => Two$inboundSchema)]),
|
|
263
|
+
),
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
export function searchPlanningPolicyResponseBodyFromJSON(
|
|
267
|
+
jsonString: string,
|
|
268
|
+
): SafeParseResult<SearchPlanningPolicyResponseBody, SDKValidationError> {
|
|
269
|
+
return safeParse(
|
|
270
|
+
jsonString,
|
|
271
|
+
(x) => SearchPlanningPolicyResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
272
|
+
`Failed to parse 'SearchPlanningPolicyResponseBody' from JSON`,
|
|
273
|
+
);
|
|
274
|
+
}
|
|
@@ -6,10 +6,18 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ExtendedStatsAggregationResult,
|
|
11
|
+
ExtendedStatsAggregationResult$inboundSchema,
|
|
12
|
+
} from "./extendedstatsaggregationresult.js";
|
|
9
13
|
import {
|
|
10
14
|
HistogramAggregationResult,
|
|
11
15
|
HistogramAggregationResult$inboundSchema,
|
|
12
16
|
} from "./histogramaggregationresult.js";
|
|
17
|
+
import {
|
|
18
|
+
PercentilesAggregationResult,
|
|
19
|
+
PercentilesAggregationResult$inboundSchema,
|
|
20
|
+
} from "./percentilesaggregationresult.js";
|
|
13
21
|
import {
|
|
14
22
|
SingleValueAggregationResult,
|
|
15
23
|
SingleValueAggregationResult$inboundSchema,
|
|
@@ -24,9 +32,11 @@ import {
|
|
|
24
32
|
} from "./termsaggregationresult.js";
|
|
25
33
|
|
|
26
34
|
export type AggregationResult =
|
|
35
|
+
| ExtendedStatsAggregationResult
|
|
27
36
|
| StatsAggregationResult
|
|
28
37
|
| TermsAggregationResult
|
|
29
38
|
| HistogramAggregationResult
|
|
39
|
+
| PercentilesAggregationResult
|
|
30
40
|
| SingleValueAggregationResult;
|
|
31
41
|
|
|
32
42
|
/** @internal */
|
|
@@ -35,9 +45,11 @@ export const AggregationResult$inboundSchema: z.ZodType<
|
|
|
35
45
|
z.ZodTypeDef,
|
|
36
46
|
unknown
|
|
37
47
|
> = z.union([
|
|
48
|
+
ExtendedStatsAggregationResult$inboundSchema,
|
|
38
49
|
StatsAggregationResult$inboundSchema,
|
|
39
50
|
TermsAggregationResult$inboundSchema,
|
|
40
51
|
HistogramAggregationResult$inboundSchema,
|
|
52
|
+
PercentilesAggregationResult$inboundSchema,
|
|
41
53
|
SingleValueAggregationResult$inboundSchema,
|
|
42
54
|
]);
|
|
43
55
|
|