epb_view_models 1.0.29 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,85 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns="https://epbr.digital.communities.gov.uk/xsd/sap"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ targetNamespace="https://epbr.digital.communities.gov.uk/xsd/sap"
5
+ elementFormDefault="qualified"
6
+ attributeFormDefault="unqualified"
7
+ version="19.1.0"
8
+ >
9
+ <xs:element name="Property" type="Property"/>
10
+ <xs:complexType name="Property">
11
+ <xs:annotation>
12
+ <xs:documentation>A discrete identifiable possession, such as a piece of
13
+ real-estate, to which its owner has legal title. For the Home
14
+ Information Pack legislation the types of property are restricted to
15
+ residential properties.
16
+
17
+ It should be observed that "a property is a property is a property" and
18
+ all real-estate properties, whether residential or commercial or whether
19
+ being sold for the first or the nth time will have a very similar
20
+ conceptual structure and similar rules and constraints.
21
+
22
+ As such the broad description of a Property can be regarded as a
23
+ framework, containing a set of extension points, that can be expanded as
24
+ necessary to cover additional detail.
25
+ </xs:documentation>
26
+ </xs:annotation>
27
+ <xs:all>
28
+ <xs:element name="Address" type="AddressType">
29
+ <xs:annotation>
30
+ <xs:documentation>Address for the property.</xs:documentation>
31
+ </xs:annotation>
32
+ </xs:element>
33
+ <xs:element name="UPRN" type="UPRNType" minOccurs="0">
34
+ <xs:annotation>
35
+ <xs:documentation>Unique Property Reference Number</xs:documentation>
36
+ </xs:annotation>
37
+ </xs:element>
38
+ <xs:element name="Site-Reference" type="xs:string" minOccurs="0">
39
+ <xs:annotation>
40
+ <xs:documentation>A site reference</xs:documentation>
41
+ </xs:annotation>
42
+ </xs:element>
43
+ <xs:element name="Plot-Reference" type="xs:string" minOccurs="0">
44
+ <xs:annotation>
45
+ <xs:documentation>A plot reference</xs:documentation>
46
+ </xs:annotation>
47
+ </xs:element>
48
+ </xs:all>
49
+ </xs:complexType>
50
+ <xs:element name="AddressType" type="AddressType"/>
51
+ <xs:complexType name="AddressType">
52
+ <xs:annotation>
53
+ <xs:documentation>An address is composed of a number of structured
54
+ elements such as Postcode, Post-Town, Street etc.
55
+
56
+ </xs:documentation>
57
+ </xs:annotation>
58
+ <xs:sequence>
59
+ <xs:element name="Address-Line-1" type="xs:string"/>
60
+ <xs:element name="Address-Line-2" type="xs:string" minOccurs="0"/>
61
+ <xs:element name="Address-Line-3" type="xs:string" minOccurs="0"/>
62
+ <xs:element name="Post-Town" type="xs:string"/>
63
+ <xs:element name="Postcode" type="PostcodeType">
64
+ <xs:annotation>
65
+ <xs:documentation>The Postcode for the Address
66
+ </xs:documentation>
67
+ </xs:annotation>
68
+ </xs:element>
69
+ </xs:sequence>
70
+ </xs:complexType>
71
+ <xs:simpleType name="UPRNType">
72
+ <xs:annotation>
73
+ <xs:documentation>Unique Property Reference Number</xs:documentation>
74
+ </xs:annotation>
75
+ <xs:restriction base="xs:string">
76
+ <xs:pattern
77
+ value="UPRN-[0-9]{10,12}|RRN-[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}"/>
78
+ </xs:restriction>
79
+ </xs:simpleType>
80
+ <xs:simpleType name="PostcodeType">
81
+ <xs:restriction base="xs:string">
82
+ <xs:pattern value="[A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][A-Z]{2}"/>
83
+ </xs:restriction>
84
+ </xs:simpleType>
85
+ </xs:schema>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns="https://epbr.digital.communities.gov.uk/xsd/sap"
3
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
+ targetNamespace="https://epbr.digital.communities.gov.uk/xsd/sap"
5
+ elementFormDefault="qualified"
6
+ attributeFormDefault="unqualified" version="19.1.0">
7
+ <xs:include schemaLocation="AssessorManagement.xsd"/>
8
+ <xs:include schemaLocation="../UDT/EPC-Domains.xsd"/>
9
+
10
+ <xs:element name="ReportList">
11
+ <xs:complexType>
12
+ <xs:sequence>
13
+ <xs:element name="Report-Summary" maxOccurs="unbounded">
14
+ <xs:complexType>
15
+ <xs:all>
16
+ <xs:element name="RRN" type="RRNType"/>
17
+ <xs:element name="Inspection-Date" type="xs:date"/>
18
+ <xs:element name="HI-Name" type="PersonNameType"/>
19
+ <xs:element name="HI-Certificate" type="CertificateNumberType"/>
20
+ <xs:element name="Report-Status" type="ReportStatusCode"/>
21
+ </xs:all>
22
+ </xs:complexType>
23
+ </xs:element>
24
+ </xs:sequence>
25
+ </xs:complexType>
26
+ </xs:element>
27
+ </xs:schema>