@pdtf/schemas 3.6.0-dev.3 → 3.6.0-dev.32

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.
Files changed (193) hide show
  1. package/docs/ta6-certificate-permit-contract.md +51 -0
  2. package/docs/v4-mapping-and-recomposition.md +476 -0
  3. package/index.js +212 -0
  4. package/package.json +10 -1
  5. package/src/schemas/v3/combined.json +2267 -658
  6. package/src/schemas/v3/compactSkeleton.txt +120 -51
  7. package/src/schemas/v3/overlays/baspi4.json +54 -74
  8. package/src/schemas/v3/overlays/baspi5.json +54 -74
  9. package/src/schemas/v3/overlays/extensions/ac.json +2 -1
  10. package/src/schemas/v3/overlays/extensions/dk.json +3 -2
  11. package/src/schemas/v3/overlays/extensions/fd.json +2 -1
  12. package/src/schemas/v3/overlays/extensions/ic.json +44 -9
  13. package/src/schemas/v3/overlays/extensions/lc.json +3 -2
  14. package/src/schemas/v3/overlays/extensions/mi.json +2 -1
  15. package/src/schemas/v3/overlays/extensions/nd.json +3 -2
  16. package/src/schemas/v3/overlays/extensions/pc.json +3 -2
  17. package/src/schemas/v3/overlays/extensions/ph.json +2 -1
  18. package/src/schemas/v3/overlays/extensions/rw.json +4 -3
  19. package/src/schemas/v3/overlays/extensions/sc.json +8 -4
  20. package/src/schemas/v3/overlays/extensions/sd.json +3 -2
  21. package/src/schemas/v3/overlays/extensions/tr.json +3 -2
  22. package/src/schemas/v3/overlays/extensions/wg.json +2 -1
  23. package/src/schemas/v3/overlays/llc1.json +1 -2
  24. package/src/schemas/v3/overlays/lpe1.json +3 -2
  25. package/src/schemas/v3/overlays/nts.json +7 -3
  26. package/src/schemas/v3/overlays/nts2.json +9 -4
  27. package/src/schemas/v3/overlays/ntsl.json +5 -2
  28. package/src/schemas/v3/overlays/ntsl2.json +7 -3
  29. package/src/schemas/v3/overlays/piq.json +34 -25
  30. package/src/schemas/v3/overlays/rds.json +24 -50
  31. package/src/schemas/v3/overlays/sef25.json +16 -2
  32. package/src/schemas/v3/overlays/ta10.json +0 -9
  33. package/src/schemas/v3/overlays/ta6.json +39 -70
  34. package/src/schemas/v3/overlays/ta6ed6.json +331 -307
  35. package/{pensive-tesla-d0d355/src/schemas/v3/overlays/ta6.json → src/schemas/v3/overlays/ta6ed6v2.json} +1574 -1464
  36. package/src/schemas/v3/overlays/ta7.json +2 -1
  37. package/src/schemas/v3/overlays/ta7ed5.json +77 -21
  38. package/src/schemas/v3/pdtf-transaction.json +1030 -492
  39. package/src/schemas/v3/skeleton.json +163 -57
  40. package/src/schemas/v4/Gift.json +88 -0
  41. package/src/schemas/v4/Offer.json +425 -0
  42. package/src/schemas/v4/Organisation.json +167 -0
  43. package/src/schemas/v4/Person.json +321 -0
  44. package/src/schemas/v4/Property.json +27813 -0
  45. package/src/schemas/v4/PropertyTitleLink.json +183 -0
  46. package/src/schemas/v4/Representation.json +67 -0
  47. package/src/schemas/v4/SellerCapacity.json +193 -0
  48. package/src/schemas/v4/Title.json +14675 -0
  49. package/src/schemas/v4/Transaction.json +1612 -0
  50. package/src/schemas/v4/TransactionRole.json +59 -0
  51. package/src/schemas/v4/mapping.json +1188 -0
  52. package/src/utils/checkTa6OmissionCompatibility.js +146 -0
  53. package/src/utils/extractExtensionOverlays.js +11 -2
  54. package/src/utils/extractOverlay.js +21 -0
  55. package/src/utils/generateV4Schemas.js +1561 -0
  56. package/src/utils/syncTa6ed6v2Markers.js +92 -0
  57. package/src/utils/v4.js +956 -0
  58. package/CLAUDE.md +0 -101
  59. package/pensive-tesla-d0d355/CLAUDE.md +0 -101
  60. package/pensive-tesla-d0d355/LICENSE +0 -21
  61. package/pensive-tesla-d0d355/README.md +0 -435
  62. package/pensive-tesla-d0d355/docs/branch-release-workflow.md +0 -138
  63. package/pensive-tesla-d0d355/docs/sef25-extensions-ui-spec.md +0 -355
  64. package/pensive-tesla-d0d355/index.js +0 -654
  65. package/pensive-tesla-d0d355/package-lock.json +0 -7297
  66. package/pensive-tesla-d0d355/package.json +0 -44
  67. package/pensive-tesla-d0d355/src/examples/v1/exampleAddParticipantVouch.json +0 -32
  68. package/pensive-tesla-d0d355/src/examples/v1/exampleDocumentedVouch.json +0 -40
  69. package/pensive-tesla-d0d355/src/examples/v1/exampleElectronicRecord.json +0 -30
  70. package/pensive-tesla-d0d355/src/examples/v1/exampleTransaction.json +0 -878
  71. package/pensive-tesla-d0d355/src/examples/v1/exampleVouch.json +0 -25
  72. package/pensive-tesla-d0d355/src/examples/v2/exampleTransaction.json +0 -901
  73. package/pensive-tesla-d0d355/src/examples/v3/exampleAddParticipantVouch.json +0 -38
  74. package/pensive-tesla-d0d355/src/examples/v3/exampleCustomOverlay.json +0 -55
  75. package/pensive-tesla-d0d355/src/examples/v3/exampleCustomOverlay2.json +0 -93
  76. package/pensive-tesla-d0d355/src/examples/v3/exampleDocumentedVouch.json +0 -47
  77. package/pensive-tesla-d0d355/src/examples/v3/exampleElectronicRecord.json +0 -36
  78. package/pensive-tesla-d0d355/src/examples/v3/exampleTransaction.json +0 -1038
  79. package/pensive-tesla-d0d355/src/examples/v3/exampleVouch.json +0 -32
  80. package/pensive-tesla-d0d355/src/mappings/SendPropertyDetailsRequestSchema.json +0 -1588
  81. package/pensive-tesla-d0d355/src/mappings/adf.js +0 -198
  82. package/pensive-tesla-d0d355/src/schemas/v1/GeoJSON.json +0 -1279
  83. package/pensive-tesla-d0d355/src/schemas/v1/baspiNotes.html +0 -102
  84. package/pensive-tesla-d0d355/src/schemas/v1/energy-performance-certificate.json +0 -124
  85. package/pensive-tesla-d0d355/src/schemas/v1/freehold-information.json +0 -2051
  86. package/pensive-tesla-d0d355/src/schemas/v1/leasehold-information.json +0 -2064
  87. package/pensive-tesla-d0d355/src/schemas/v1/legal-information.json +0 -1045
  88. package/pensive-tesla-d0d355/src/schemas/v1/material-facts.json +0 -2109
  89. package/pensive-tesla-d0d355/src/schemas/v1/pdtf-transaction-search-results.json +0 -40
  90. package/pensive-tesla-d0d355/src/schemas/v1/pdtf-transaction.json +0 -191
  91. package/pensive-tesla-d0d355/src/schemas/v1/searches/drainage-and-water.json +0 -261
  92. package/pensive-tesla-d0d355/src/schemas/v1/searches/local-land-charges.json +0 -69
  93. package/pensive-tesla-d0d355/src/schemas/v1/searches/local-searches-required.json +0 -857
  94. package/pensive-tesla-d0d355/src/schemas/v1/searches.json +0 -237
  95. package/pensive-tesla-d0d355/src/schemas/v1/title-deed.json +0 -841
  96. package/pensive-tesla-d0d355/src/schemas/v2/baspiNotes.html +0 -102
  97. package/pensive-tesla-d0d355/src/schemas/v2/combined.json +0 -37731
  98. package/pensive-tesla-d0d355/src/schemas/v2/overlays/baspi.json +0 -8132
  99. package/pensive-tesla-d0d355/src/schemas/v2/overlays/con29DW.json +0 -705
  100. package/pensive-tesla-d0d355/src/schemas/v2/overlays/con29R.json +0 -2956
  101. package/pensive-tesla-d0d355/src/schemas/v2/overlays/fme1.json +0 -1259
  102. package/pensive-tesla-d0d355/src/schemas/v2/overlays/llc1.json +0 -25
  103. package/pensive-tesla-d0d355/src/schemas/v2/overlays/lpe1.json +0 -2171
  104. package/pensive-tesla-d0d355/src/schemas/v2/overlays/nts.json +0 -326
  105. package/pensive-tesla-d0d355/src/schemas/v2/overlays/oc1.json +0 -2799
  106. package/pensive-tesla-d0d355/src/schemas/v2/overlays/piq.json +0 -3419
  107. package/pensive-tesla-d0d355/src/schemas/v2/overlays/rds.json +0 -3736
  108. package/pensive-tesla-d0d355/src/schemas/v2/overlays/ta10.json +0 -5306
  109. package/pensive-tesla-d0d355/src/schemas/v2/overlays/ta6.json +0 -4533
  110. package/pensive-tesla-d0d355/src/schemas/v2/overlays/ta7.json +0 -1045
  111. package/pensive-tesla-d0d355/src/schemas/v2/pdtf-transaction.json +0 -34351
  112. package/pensive-tesla-d0d355/src/schemas/v2/skeleton.json +0 -3973
  113. package/pensive-tesla-d0d355/src/schemas/v3/combined.json +0 -48469
  114. package/pensive-tesla-d0d355/src/schemas/v3/compactSkeleton.txt +0 -4519
  115. package/pensive-tesla-d0d355/src/schemas/v3/overlays/README.md +0 -299
  116. package/pensive-tesla-d0d355/src/schemas/v3/overlays/baspi4.json +0 -8025
  117. package/pensive-tesla-d0d355/src/schemas/v3/overlays/baspi5.json +0 -8175
  118. package/pensive-tesla-d0d355/src/schemas/v3/overlays/con29DW.json +0 -716
  119. package/pensive-tesla-d0d355/src/schemas/v3/overlays/con29R.json +0 -2981
  120. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/ac.json +0 -333
  121. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/as.json +0 -74
  122. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/dk.json +0 -32
  123. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/dr.json +0 -73
  124. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/er.json +0 -85
  125. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/fd.json +0 -75
  126. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/hi.json +0 -51
  127. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/hs.json +0 -73
  128. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/ic.json +0 -59
  129. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/jk.json +0 -96
  130. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/la.json +0 -85
  131. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/lc.json +0 -75
  132. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/ma.json +0 -90
  133. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/mc.json +0 -38
  134. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/mi.json +0 -69
  135. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/nd.json +0 -43
  136. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/oa.json +0 -24
  137. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/oc.json +0 -57
  138. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/pc.json +0 -37
  139. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/ph.json +0 -194
  140. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/rw.json +0 -68
  141. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/sb.json +0 -73
  142. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/sc.json +0 -129
  143. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/sd.json +0 -63
  144. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/sf.json +0 -74
  145. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/sl.json +0 -68
  146. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/ta.json +0 -252
  147. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/tf.json +0 -103
  148. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/tr.json +0 -73
  149. package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/wg.json +0 -350
  150. package/pensive-tesla-d0d355/src/schemas/v3/overlays/fme1.json +0 -1266
  151. package/pensive-tesla-d0d355/src/schemas/v3/overlays/llc1.json +0 -25
  152. package/pensive-tesla-d0d355/src/schemas/v3/overlays/lpe1.json +0 -2199
  153. package/pensive-tesla-d0d355/src/schemas/v3/overlays/nts.json +0 -2157
  154. package/pensive-tesla-d0d355/src/schemas/v3/overlays/nts2.json +0 -2742
  155. package/pensive-tesla-d0d355/src/schemas/v3/overlays/ntsl.json +0 -1813
  156. package/pensive-tesla-d0d355/src/schemas/v3/overlays/ntsl2.json +0 -2217
  157. package/pensive-tesla-d0d355/src/schemas/v3/overlays/oc1.json +0 -2817
  158. package/pensive-tesla-d0d355/src/schemas/v3/overlays/piq.json +0 -3322
  159. package/pensive-tesla-d0d355/src/schemas/v3/overlays/rds.json +0 -3665
  160. package/pensive-tesla-d0d355/src/schemas/v3/overlays/sef25.json +0 -1639
  161. package/pensive-tesla-d0d355/src/schemas/v3/overlays/sr24.json +0 -38
  162. package/pensive-tesla-d0d355/src/schemas/v3/overlays/ta10.json +0 -4654
  163. package/pensive-tesla-d0d355/src/schemas/v3/overlays/ta6ed6.json +0 -6534
  164. package/pensive-tesla-d0d355/src/schemas/v3/overlays/ta7.json +0 -1537
  165. package/pensive-tesla-d0d355/src/schemas/v3/overlays/ta7ed5.json +0 -1551
  166. package/pensive-tesla-d0d355/src/schemas/v3/pdtf-transaction.json +0 -41573
  167. package/pensive-tesla-d0d355/src/schemas/v3/skeleton.json +0 -5767
  168. package/pensive-tesla-d0d355/src/schemas/verifiedClaims/README.md +0 -21
  169. package/pensive-tesla-d0d355/src/schemas/verifiedClaims/pdtf-verified-claims.json +0 -447
  170. package/pensive-tesla-d0d355/src/utils/compactSkeleton.js +0 -84
  171. package/pensive-tesla-d0d355/src/utils/countTokens.js +0 -67
  172. package/pensive-tesla-d0d355/src/utils/extractExtensionOverlays.js +0 -624
  173. package/pensive-tesla-d0d355/src/utils/extractOverlay.js +0 -381
  174. package/pensive-tesla-d0d355/src/utils/extractProperties.js +0 -44
  175. package/pensive-tesla-d0d355/src/utils/listPathTitles.js +0 -36
  176. package/pensive-tesla-d0d355/src/utils/minimalSkeleton.js +0 -85
  177. package/pensive-tesla-d0d355/src/utils/pathList.csv +0 -903
  178. package/pensive-tesla-d0d355/src/utils/pathSkeleton.js +0 -181
  179. package/src/examples/v1/exampleAddParticipantVouch.json +0 -32
  180. package/src/examples/v1/exampleDocumentedVouch.json +0 -40
  181. package/src/examples/v1/exampleElectronicRecord.json +0 -30
  182. package/src/examples/v1/exampleTransaction.json +0 -878
  183. package/src/examples/v1/exampleVouch.json +0 -25
  184. package/src/examples/v2/exampleTransaction.json +0 -901
  185. package/src/examples/v3/exampleAddParticipantVouch.json +0 -38
  186. package/src/examples/v3/exampleCustomOverlay.json +0 -55
  187. package/src/examples/v3/exampleCustomOverlay2.json +0 -93
  188. package/src/examples/v3/exampleDocumentedVouch.json +0 -47
  189. package/src/examples/v3/exampleElectronicRecord.json +0 -36
  190. package/src/examples/v3/exampleTransaction.json +0 -1038
  191. package/src/examples/v3/exampleVouch.json +0 -32
  192. package/src/mappings/SendPropertyDetailsRequestSchema.json +0 -1588
  193. package/src/mappings/adf.js +0 -198
@@ -1,40 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://trust.propdata.org.uk/schemas/v1/minified-pdtf-transaction.json",
4
- "title": "Property Data Trust Framework Transaction Schema",
5
- "description": "A schema defining search results containing minimal elements of the PDTF transaction data structure.",
6
- "type": "array",
7
- "items": {
8
- "type": "object",
9
- "required": [
10
- "$schema",
11
- "transactionId",
12
- "status",
13
- "uprn",
14
- "createdAt",
15
- "updatedAt"
16
- ],
17
- "properties": {
18
- "transactionId": {
19
- "title": "UUID for the transaction",
20
- "type": "string",
21
- "format": "uuid"
22
- },
23
- "status": {
24
- "type": "string",
25
- "enum": ["active", "cancelled", "completed"]
26
- },
27
- "uprn": {
28
- "type": "integer"
29
- },
30
- "createdAt": {
31
- "type": "string",
32
- "format": "date-time"
33
- },
34
- "updatedAt": {
35
- "type": "string",
36
- "format": "date-time"
37
- }
38
- }
39
- }
40
- }
@@ -1,191 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://trust.propdata.org.uk/schemas/v1/pdtf-transaction.json",
4
- "type": "object",
5
- "title": "Property Data Trust Framework Transaction Schema",
6
- "description": "A schema defining the PDTF transaction data structure, supporting mapping to BASPI, Law Society and RICS Data Schema elements.",
7
- "required": [
8
- "$schema",
9
- "transactionId",
10
- "status",
11
- "participants",
12
- "propertyPack"
13
- ],
14
- "properties": {
15
- "$schema": {
16
- "type": "string"
17
- },
18
- "transactionId": {
19
- "title": "UUID for the transaction",
20
- "type": "string"
21
- },
22
- "externalIds": {
23
- "type": "object"
24
- },
25
- "status": {
26
- "type": "string",
27
- "enum": ["active", "cancelled", "completed"]
28
- },
29
- "participants": {
30
- "title": "Transaction participants",
31
- "type": "array",
32
- "minItems": 1,
33
- "items": {
34
- "type": "object",
35
- "title": "Participant Details",
36
- "required": ["name", "email", "role"],
37
- "properties": {
38
- "name": {
39
- "title": "Name",
40
- "type": "object",
41
- "required": ["firstName", "lastName"],
42
- "properties": {
43
- "firstName": {
44
- "title": "First name",
45
- "type": "string",
46
- "minLength": 1
47
- },
48
- "middleName": {
49
- "title": "Middle name(s)",
50
- "type": "string"
51
- },
52
- "lastName": {
53
- "title": "lastName",
54
- "type": "string",
55
- "minLength": 1
56
- },
57
- "preferredName": {
58
- "title": "Preferred name / known as",
59
- "type": "string"
60
- }
61
- }
62
- },
63
- "dateOfBirth": {
64
- "title": "Date of birth",
65
- "type": "string",
66
- "format": "date"
67
- },
68
- "phone": {
69
- "title": "Phone number",
70
- "type": "string"
71
- },
72
- "email": {
73
- "title": "Email address",
74
- "type": "string",
75
- "format": "email"
76
- },
77
- "address": {
78
- "title": "Address",
79
- "$ref": "#/$defs/address"
80
- },
81
- "organisation": {
82
- "title": "Organisation",
83
- "type": "string"
84
- },
85
- "organisationReference": {
86
- "title": "Reference",
87
- "type": "string"
88
- },
89
- "role": {
90
- "title": "Role",
91
- "type": "string",
92
- "enum": [
93
- "Seller",
94
- "Seller's Conveyancer",
95
- "Prospective Buyer",
96
- "Buyer",
97
- "Buyer's Conveyancer",
98
- "Estate Agent"
99
- ]
100
- },
101
- "externalIds": {
102
- "type": "object"
103
- }
104
- }
105
- }
106
- },
107
- "propertyPack": {
108
- "title": "Property Pack",
109
- "type": "object",
110
- "properties": {
111
- "materialFacts": {
112
- "$ref": "https://trust.propdata.org.uk/schemas/v1/material-facts.json"
113
- },
114
- "additionalLegalInfo": {
115
- "$ref": "https://trust.propdata.org.uk/schemas/v1/legal-information.json"
116
- },
117
- "titlesToBeSold": {
118
- "RDSRef": "",
119
- "title": "Title(s) as registered with HMLR which are included in the sale",
120
- "type": "array",
121
- "items": {
122
- "type": "object",
123
- "title": "Registered Title",
124
- "properties": {
125
- "titleNumber": {
126
- "RDSRef": "",
127
- "title": "Title Number",
128
- "type": "string"
129
- },
130
- "titleIncludedInSale": {
131
- "RDSRef": "",
132
- "title": "Confirms that this associated title is included in the sale",
133
- "type": "boolean"
134
- },
135
- "titleExtents": {
136
- "RDSRef": "",
137
- "title": "Title Extents",
138
- "description": "One or more index polygons describing indicative location of registered title from National Polygon Dataset, JSON.stringified to ensure compatibility",
139
- "type": "string"
140
- },
141
- "registerExtract": {
142
- "title": "HMLR Register Extract",
143
- "$ref": "https://trust.propdata.org.uk/schemas/v1/title-deed.json"
144
- }
145
- }
146
- }
147
- },
148
- "energyPerformanceCertificate": {
149
- "RDSRef": "",
150
- "title": "Energy Performance Certificate",
151
- "$ref": "https://trust.propdata.org.uk/schemas/v1/energy-performance-certificate.json"
152
- },
153
- "searches": {
154
- "RDSRef": "",
155
- "title": "Searches",
156
- "$ref": "https://trust.propdata.org.uk/schemas/v1/searches.json"
157
- }
158
- }
159
- }
160
- },
161
- "$defs": {
162
- "address": {
163
- "type": "object",
164
- "properties": {
165
- "line1": {
166
- "title": "Address 1",
167
- "type": "string",
168
- "minLength": 1
169
- },
170
- "line2": {
171
- "title": "Address 2",
172
- "type": "string"
173
- },
174
- "town": {
175
- "title": "Town",
176
- "type": "string"
177
- },
178
- "county": {
179
- "title": "County",
180
- "type": "string"
181
- },
182
- "postcode": {
183
- "title": "Postcode",
184
- "type": "string",
185
- "minLength": 1
186
- }
187
- },
188
- "required": ["line1", "postcode"]
189
- }
190
- }
191
- }
@@ -1,261 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://trust.propdata.org.uk/schemas/v1/searches/drainage-and-water.json",
4
- "type": "object",
5
- "properties": {
6
- "maps": {
7
- "type": "object",
8
- "con29DWRef": "1",
9
- "title": "Maps",
10
- "properties": {
11
- "publicSewerMapAttached": {
12
- "con29DWRef": "1.1",
13
- "title": "Is a copy of an extract from the public sewer map attached?",
14
- "$ref": "#/$defs/yesNoDetailIfNo"
15
- },
16
- "waterworksMapAttached": {
17
- "con29DWRef": "1.2",
18
- "title": "Is a copy of an extract from the map of waterworks attached?",
19
- "$ref": "#/$defs/yesNoDetailIfNo"
20
- }
21
- },
22
- "required": ["publicSewerMapAttached", "waterworksMapAttached"]
23
- },
24
- "drainage": {
25
- "type": "object",
26
- "con29DWRef": "2",
27
- "title": "Drainage",
28
- "properties": {
29
- "publicFoulDrainage": {
30
- "con29DWRef": "2.1",
31
- "title": "Does foul water from the property drain to a public sewer?",
32
- "$ref": "#/$defs/yesNoDetailIfNo"
33
- },
34
- "publicSurfaceDrainage": {
35
- "con29DWRef": "2.2",
36
- "title": "Does surface water from the property drain to a public sewer?",
37
- "$ref": "#/$defs/yesNoDetailIfNo"
38
- },
39
- "surfaceDrainageCharge": {
40
- "con29DWRef": "2.3",
41
- "title": "Is a surface water drainage charge payable?",
42
- "$ref": "#/$defs/yesNoDetailIfYes"
43
- },
44
- "publicDrainWithinBoundaries": {
45
- "con29DWRef": "2.4",
46
- "title": "Does the public sewer map indicate any public sewer, disposal main or lateral drain within the boundaries of the property?",
47
- "$ref": "#/$defs/yesNoDetailIfYes"
48
- },
49
- "publicSewerWithin100ft": {
50
- "con29DWRef": "2.5",
51
- "title": "Does the public sewer map indicate any public sewer within 30.48 meters (100 feet) of any buildings within the property?",
52
- "$ref": "#/$defs/yesNoDetailIfYes"
53
- },
54
- "sewersSubjectOfAdoptionAgreement": {
55
- "con29DWRef": "2.6",
56
- "title": "Are any sewers or lateral drains serving, or which are proposed to serve the property, the subject of an existing adoption agreement or an application for such an agreement?",
57
- "$ref": "#/$defs/yesNoDetailIfYes"
58
- },
59
- "sewerageUndertakerApproval": {
60
- "con29DWRef": "2.7",
61
- "title": "Has the sewerage undertaker approved or been consulted about any plans to erect a building or extension on the property over, or in the vicinity of, a public sewer, disposal main or drain?",
62
- "$ref": "#/$defs/yesNoDetailIfYes"
63
- },
64
- "riskOfInternalFlooding": {
65
- "con29DWRef": "2.8",
66
- "title": "Is any building which is or Charging forms part of the property, at risk of internal flooding due to overloaded public sewers?",
67
- "$ref": "#/$defs/yesNoDetailIfYes"
68
- },
69
- "distanceToNearestSewerageTreatment": {
70
- "con29DWRef": "2.9",
71
- "title": "Please state the distance from the property to the nearest boundary of the nearest sewage treatment works.",
72
- "type": "string",
73
- "minLength": 1
74
- }
75
- },
76
- "required": [
77
- "publicFoulDrainage",
78
- "publicSurfaceDrainage",
79
- "surfaceDrainageCharge",
80
- "publicDrainWithinBoundaries",
81
- "publicSewerWithin100ft",
82
- "sewersSubjectOfAdoptionAgreement",
83
- "sewerageUndertakerApproval",
84
- "riskOfInternalFlooding",
85
- "distanceToNearestSewerageTreatment"
86
- ]
87
- },
88
- "water": {
89
- "type": "object",
90
- "con29DWRef": "3",
91
- "title": "Drainage",
92
- "properties": {
93
- "mainsWaterConnected": {
94
- "con29DWRef": "3.1",
95
- "title": "Is the property connected to the main water supply?",
96
- "$ref": "#/$defs/yesNoDetailIfNo"
97
- },
98
- "waterMainsWithinBoundaries": {
99
- "con29DWRef": "3.2",
100
- "title": "Are there any water mains, resource mains or discharge pipes within the boundaries of the property?",
101
- "$ref": "#/$defs/yesNoDetailIfYes"
102
- },
103
- "waterMainsSubjectOfAdoptionAgreement": {
104
- "con29DWRef": "3.3",
105
- "title": "Is any water main or service pipe serving, or which is proposed to serve the property, the subject of an existing adoption agreement or an application for such an agreement?",
106
- "$ref": "#/$defs/yesNoDetailIfYes"
107
- },
108
- "lowWaterPressureRisk": {
109
- "con29DWRef": "3.4",
110
- "title": "Is the property at risk of receiving low water pressure or flow?",
111
- "$ref": "#/$defs/yesNoDetailIfYes"
112
- },
113
- "waterQualityAnalysis": {
114
- "con29DWRef": "3.5",
115
- "title": "Please include details of a water quality analysis made by the water undertaker for the water supply zone in respect of the most recent calendar year.",
116
- "altTitle": "What is the classification of the water supply for the property?",
117
- "type": "string",
118
- "minLength": 1
119
- },
120
- "authorisedDeparturesFrom2000Regulations": {
121
- "con29DWRef": "3.6",
122
- "title": "Are there any departures authorised by the Secretary of State or National Assembly for Wales under Part 6 of the 2000 Regulations from the provisions of Part 3 of those Regulations.",
123
- "$ref": "#/$defs/yesNoDetailIfYes"
124
- },
125
- "waterMeterLocation": {
126
- "con29DWRef": "3.7",
127
- "title": "Is there a water meter serving the property?",
128
- "$ref": "#/$defs/yesNoDetailIfYes"
129
- }
130
- },
131
- "required": [
132
- "mainsWaterConnected",
133
- "waterMainsWithinBoundaries",
134
- "waterMainsSubjectOfAdoptionAgreement",
135
- "lowWaterPressureRisk",
136
- "waterQualityAnalysis",
137
- "authorisedDeparturesFrom2000Regulations",
138
- "waterMeterLocation"
139
- ]
140
- },
141
- "charging": {
142
- "type": "object",
143
- "con29DWRef": "4",
144
- "title": "Charging",
145
- "properties": {
146
- "sewerageProvider": {
147
- "con29DWRef": "4.1.1",
148
- "title": "Who is responsible for providing the sewerage services for the property?",
149
- "type": "string",
150
- "minLength": 1
151
- },
152
- "waterProvider": {
153
- "con29DWRef": "4.1.2",
154
- "title": "Who is responsible for providing the water services for the property?",
155
- "type": "string",
156
- "minLength": 1
157
- },
158
- "sewerageBills": {
159
- "con29DWRef": "4.2",
160
- "title": "Who bills the property for sewerage services?",
161
- "type": "string",
162
- "minLength": 1
163
- },
164
- "waterBills": {
165
- "con29DWRef": "4.3",
166
- "title": "Who bills the property for water services?",
167
- "type": "string",
168
- "minLength": 1
169
- },
170
- "currentChargingBasis": {
171
- "con29DWRef": "4.4",
172
- "title": "What is the current basis for charging for sewerage and/or water services at the property?",
173
- "type": "string",
174
- "minLength": 1
175
- },
176
- "consequentialChargingBasis": {
177
- "con29DWRef": "4.5",
178
- "title": "Will the basis for charging for sewerage and water services at the property change as a consequence of a change of occupation?"
179
- }
180
- },
181
- "required": [
182
- "sewerageProvider",
183
- "waterProvider",
184
- "sewerageBills",
185
- "waterBills",
186
- "currentChargingBasis",
187
- "consequentialChargingBasis"
188
- ]
189
- }
190
- },
191
- "$defs": {
192
- "yesNoDetailIfYes": {
193
- "type": "object",
194
- "properties": {
195
- "yesNo": {
196
- "type": "string",
197
- "title": "",
198
- "enum": ["Yes", "No"]
199
- }
200
- },
201
- "required": ["yesNo"],
202
- "discriminator": { "propertyName": "yesNo" },
203
- "oneOf": [
204
- {
205
- "properties": {
206
- "yesNo": {
207
- "enum": ["No"]
208
- }
209
- }
210
- },
211
- {
212
- "properties": {
213
- "yesNo": {
214
- "enum": ["Yes"]
215
- },
216
- "details": {
217
- "title": "Details",
218
- "type": "string",
219
- "minLength": 1
220
- }
221
- },
222
- "required": ["details"]
223
- }
224
- ]
225
- },
226
- "yesNoDetailIfNo": {
227
- "type": "object",
228
- "properties": {
229
- "yesNo": {
230
- "type": "string",
231
- "title": "",
232
- "enum": ["Yes", "No"]
233
- }
234
- },
235
- "required": ["yesNo"],
236
- "discriminator": { "propertyName": "yesNo" },
237
- "oneOf": [
238
- {
239
- "properties": {
240
- "yesNo": {
241
- "enum": ["Yes"]
242
- }
243
- }
244
- },
245
- {
246
- "properties": {
247
- "yesNo": {
248
- "enum": ["No"]
249
- },
250
- "details": {
251
- "title": "Details",
252
- "type": "string",
253
- "minLength": 1
254
- }
255
- },
256
- "required": ["details"]
257
- }
258
- ]
259
- }
260
- }
261
- }
@@ -1,69 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://trust.propdata.org.uk/schemas/v1/searches/local-land-charges.json",
4
- "type": "array",
5
- "description": "The list of individual entries on the register of Land Charges",
6
- "items": {
7
- "type": "object",
8
- "properties": {
9
- "part": {
10
- "title": "Part number",
11
- "description": "The part number from the LLC1 form which this entry falls into.",
12
- "type": "integer",
13
- "minimum": 1,
14
- "maximum": 12
15
- },
16
- "partTitle": {
17
- "title": "Part title",
18
- "description": "The title of the part of the LLC1 form which this entry falls into.",
19
- "type": "string",
20
- "enum": [
21
- "General financial charges",
22
- "Specific financial charges",
23
- "Planning charges",
24
- "Miscellaneous charges",
25
- "Fenland ways maintenance charges",
26
- "Land compensation charges",
27
- "New towns charges",
28
- "Civil aviation charges",
29
- "Opencast coal charges",
30
- "Listed buildings charges",
31
- "Light obstruction notices",
32
- "Drainage scheme charges"
33
- ]
34
- },
35
- "chargeDescription": {
36
- "title": "Description of Charge",
37
- "description": "The description of the charge, as entered on the Land Charges register.",
38
- "type": "string",
39
- "minLength": 1
40
- },
41
- "originatingAuthority": {
42
- "title": "Originating Authority",
43
- "description": "The authority that this register entry came from. Note that National Park Authorities overlap Local Authorities, and so there can be more than one source of charges.",
44
- "type": "string",
45
- "minLength": 1
46
- },
47
- "inspectionAddress": {
48
- "title": "Place where documents can be inspected",
49
- "description": "The place where the land charges can be inspected. This is typically an address, but for councils where visiting is not permitted, it may be some other description.",
50
- "type": "string",
51
- "minLength": 1
52
- },
53
- "registrationDate": {
54
- "title": "Date of Registration",
55
- "description": "The date on which this entry was made in the register of Land Charges.",
56
- "type": "string",
57
- "format": "date"
58
- }
59
- },
60
- "required": [
61
- "part",
62
- "partTitle",
63
- "chargeDescription",
64
- "originatingAuthority",
65
- "inspectionAddress",
66
- "registrationDate"
67
- ]
68
- }
69
- }