@pdtf/schemas 2.3.0 → 3.0.0-1

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 (34) hide show
  1. package/index.js +37 -81
  2. package/package.json +1 -1
  3. package/src/examples/v2/exampleTransaction.json +6 -20
  4. package/src/examples/v3/exampleTransaction.json +900 -0
  5. package/src/mappings/SendPropertyDetailsRequestSchema.json +1588 -0
  6. package/src/mappings/adf.js +1 -1
  7. package/src/schemas/v2/combined.json +13206 -12615
  8. package/src/schemas/v2/overlays/con29DW.json +771 -762
  9. package/src/schemas/v2/overlays/con29R.json +3052 -3073
  10. package/src/schemas/v2/overlays/llc1.json +12 -33
  11. package/src/schemas/v2/overlays/rds.json +32 -0
  12. package/src/schemas/v2/pdtf-transaction.json +13656 -12911
  13. package/src/schemas/v2/skeleton.json +1342 -1155
  14. package/src/schemas/v3/combined.json +38311 -0
  15. package/src/schemas/v3/overlays/baspi.json +9812 -0
  16. package/src/schemas/v3/overlays/con29DW.json +794 -0
  17. package/src/schemas/v3/overlays/con29R.json +3094 -0
  18. package/src/schemas/v3/overlays/fme1.json +1444 -0
  19. package/src/schemas/v3/overlays/llc1.json +25 -0
  20. package/src/schemas/v3/overlays/lpe1.json +2463 -0
  21. package/src/schemas/v3/overlays/nts.json +1874 -0
  22. package/src/schemas/v3/overlays/oc1.json +2799 -0
  23. package/src/schemas/v3/overlays/piq.json +3931 -0
  24. package/src/schemas/v3/overlays/rds.json +4086 -0
  25. package/src/schemas/v3/overlays/ta10.json +6521 -0
  26. package/src/schemas/v3/overlays/ta6.json +5285 -0
  27. package/src/schemas/v3/overlays/ta7.json +1399 -0
  28. package/src/schemas/v3/pdtf-transaction.json +34771 -0
  29. package/src/schemas/v3/skeleton.json +3986 -0
  30. package/src/tests/v2/transactionSchema.test.js +26 -16
  31. package/src/tests/v3/transactionSchema.test.js +350 -0
  32. package/src/tests/v3/verifiedClaimsValidator.test.js +128 -0
  33. package/src/utils/extractOverlay.js +7 -7
  34. package/src/utils/hmlrLLC1.json +0 -275
@@ -1,275 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft-07/schema#",
3
- "$id": "http://www.landregistry.gov.uk/LLC/LLCSearchResponseV2_0#",
4
- "type": "object",
5
- "properties": {
6
- "LocalLandCharge": {
7
- "type": "array",
8
- "items": {
9
- "type": "object",
10
- "required": [
11
- "HMLRReference",
12
- "RegistrationDate",
13
- "Category",
14
- "Location",
15
- "LocationDominantBuilding"
16
- ],
17
- "properties": {
18
- "HMLRReference": {
19
- "type": "string"
20
- },
21
- "OriginatingAuthority": {
22
- "type": "string"
23
- },
24
- "AuthorityReference": {
25
- "type": "string"
26
- },
27
- "CreationDate": {
28
- "type": "object",
29
- "properties": {
30
- "Value": {
31
- "type": "string",
32
- "format": "date"
33
- }
34
- }
35
- },
36
- "RegistrationDate": {
37
- "type": "object",
38
- "properties": {
39
- "Value": {
40
- "type": "string",
41
- "format": "date"
42
- }
43
- }
44
- },
45
- "Category": {
46
- "type": "string"
47
- },
48
- "ChargeSubCategory": {
49
- "type": "string"
50
- },
51
- "Law": {
52
- "type": "string"
53
- },
54
- "LegalDocument": {
55
- "type": "string"
56
- },
57
- "Location": {
58
- "type": "object",
59
- "required": ["AddressLine"],
60
- "properties": {
61
- "PostcodeZone": {
62
- "type": "object",
63
- "required": ["Postcode"],
64
- "properties": {
65
- "Postcode": {
66
- "type": "string"
67
- }
68
- }
69
- },
70
- "AddressLine": {
71
- "type": "object",
72
- "properties": {
73
- "IndexNumeric": {
74
- "type": "array",
75
- "items": {
76
- "type": "object",
77
- "properties": {
78
- "Value": {
79
- "type": "number"
80
- }
81
- }
82
- },
83
- "minItems": 0
84
- },
85
- "Line": {
86
- "type": "array",
87
- "items": {
88
- "type": "string"
89
- },
90
- "minItems": 0
91
- }
92
- }
93
- }
94
- }
95
- },
96
- "LocationDominantBuilding": {
97
- "type": "object",
98
- "required": ["AddressLine"],
99
- "properties": {
100
- "PostcodeZone": {
101
- "type": "object",
102
- "required": ["Postcode"],
103
- "properties": {
104
- "Postcode": {
105
- "type": "string"
106
- }
107
- }
108
- },
109
- "AddressLine": {
110
- "type": "object",
111
- "properties": {
112
- "IndexNumeric": {
113
- "type": "array",
114
- "items": {
115
- "type": "number"
116
- },
117
- "minItems": 0
118
- },
119
- "Line": {
120
- "type": "array",
121
- "items": {
122
- "type": "string"
123
- },
124
- "minItems": 0
125
- }
126
- }
127
- }
128
- }
129
- },
130
- "Description": {
131
- "type": "string"
132
- },
133
- "SourceOfInformation": {
134
- "type": "string"
135
- },
136
- "AvailableDocument": {
137
- "type": "array",
138
- "items": {
139
- "type": "object",
140
- "required": ["Document"],
141
- "properties": {
142
- "Document": {
143
- "type": "string"
144
- },
145
- "StartDate": {
146
- "type": "string",
147
- "format": "date"
148
- },
149
- "EndDate": {
150
- "type": "string",
151
- "format": "date"
152
- }
153
- }
154
- },
155
- "minItems": 0
156
- },
157
- "InterestInLand": {
158
- "type": "string"
159
- },
160
- "ApplicantName": {
161
- "type": "string"
162
- },
163
- "ApplicantAddress": {
164
- "type": "object",
165
- "required": ["AddressLine"],
166
- "properties": {
167
- "PostcodeZone": {
168
- "type": "object",
169
- "required": ["Postcode"],
170
- "properties": {
171
- "Postcode": {
172
- "type": "string"
173
- }
174
- }
175
- },
176
- "AddressLine": {
177
- "type": "object",
178
- "properties": {
179
- "IndexNumeric": {
180
- "type": "array",
181
- "items": {
182
- "type": "object",
183
- "properties": {
184
- "Value": {
185
- "type": "number"
186
- }
187
- }
188
- },
189
- "minItems": 0
190
- },
191
- "Line": {
192
- "type": "array",
193
- "items": {
194
- "type": "object",
195
- "properties": {
196
- "Value": {
197
- "type": "string"
198
- }
199
- }
200
- },
201
- "minItems": 0
202
- }
203
- }
204
- }
205
- }
206
- },
207
- "ServientLandDevelopment": {
208
- "type": "object",
209
- "required": ["Height", "CoversAllOrPartOfExtent"],
210
- "properties": {
211
- "Height": {
212
- "type": "string"
213
- },
214
- "CoversAllOrPartOfExtent": {
215
- "type": "string"
216
- }
217
- }
218
- },
219
- "Amount": {
220
- "type": "string"
221
- },
222
- "InterestRate": {
223
- "type": "string"
224
- },
225
- "LandSold": {
226
- "type": "string"
227
- },
228
- "WorksDone": {
229
- "type": "string"
230
- },
231
- "AdvancePayment": {
232
- "type": "string"
233
- },
234
- "TotalCompensation": {
235
- "type": "string"
236
- },
237
- "AgreedOrEstimated": {
238
- "type": "string"
239
- },
240
- "Adjoining": {
241
- "type": "boolean"
242
- },
243
- "OtherData": {
244
- "type": "array",
245
- "items": {
246
- "type": "object",
247
- "required": ["DataLabel", "Data"],
248
- "properties": {
249
- "DataLabel": {
250
- "type": "string"
251
- },
252
- "Data": {
253
- "type": "string"
254
- }
255
- }
256
- },
257
- "minItems": 0
258
- },
259
- "ChargeExtent": {
260
- "type": "object",
261
- "properties": {
262
- "Value": {
263
- "type": "string"
264
- },
265
- "format": {
266
- "type": "string"
267
- }
268
- }
269
- }
270
- }
271
- },
272
- "minItems": 0
273
- }
274
- }
275
- }