From 2c9005ce00bdf93f63b9107b02601e02244877a0 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Fri, 20 Sep 2024 11:23:25 +0200 Subject: [PATCH] add paoEnd and sao address fields --- schemas/prototypeApplication.json | 17 +++++++++++++++++ .../prototypeApplication/data/Property.ts | 19 +++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/schemas/prototypeApplication.json b/schemas/prototypeApplication.json index 6393a522..ca75f2a2 100644 --- a/schemas/prototypeApplication.json +++ b/schemas/prototypeApplication.json @@ -4195,11 +4195,28 @@ "type": "string" }, "pao": { + "description": "Combined `PAO_START_NUMBER`, `PAO_START_SUFFIX`, `PAO_TEXT` OS LPI properties", + "title": "Primary Addressable Object start range and/or building description", + "type": "string" + }, + "paoEnd": { + "description": "Combined `PAO_END_NUMBER`, `PAO_END_SUFFIX` OS LPI properties", + "title": "Primary Addressable Object (PAO) end range", "type": "string" }, "postcode": { "type": "string" }, + "sao": { + "description": "Combined `SAO_START_NUMBER`, `SAO_START_SUFFIX`, `SAO_TEXT` OS LPI properties", + "title": "Secondary Addressable Object (SAO) start range and/or building description", + "type": "string" + }, + "saoEnd": { + "description": "Combined `SAO_END_NUMBER`, `SAO_END_SUFFIX` OS LPI properties", + "title": "Secondary Addressable Object (SAO) end range", + "type": "string" + }, "singleLine": { "type": "string" }, diff --git a/types/schemas/prototypeApplication/data/Property.ts b/types/schemas/prototypeApplication/data/Property.ts index 2e3d860f..ef833c3b 100644 --- a/types/schemas/prototypeApplication/data/Property.ts +++ b/types/schemas/prototypeApplication/data/Property.ts @@ -134,7 +134,26 @@ export interface OSAddress extends SiteAddress { * @maxLength 8 */ usrn: string; + /** + * @title Primary Addressable Object start range and/or building description + * @description Combined `PAO_START_NUMBER`, `PAO_START_SUFFIX`, `PAO_TEXT` OS LPI properties + */ pao: string; + /** + * @title Primary Addressable Object (PAO) end range + * @description Combined `PAO_END_NUMBER`, `PAO_END_SUFFIX` OS LPI properties + */ + paoEnd?: string; + /** + * @title Secondary Addressable Object (SAO) start range and/or building description + * @description Combined `SAO_START_NUMBER`, `SAO_START_SUFFIX`, `SAO_TEXT` OS LPI properties + */ + sao?: string; + /** + * @title Secondary Addressable Object (SAO) end range + * @description Combined `SAO_END_NUMBER`, `SAO_END_SUFFIX` OS LPI properties + */ + saoEnd?: string; street: string; town: string; postcode: string;