@pdtf/schemas 2.0.0-25 → 2.0.0-26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "2.0.0-25",
3
+ "version": "2.0.0-26",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -125,8 +125,8 @@
125
125
  }
126
126
  },
127
127
  "propertyPack": {
128
- "baspiRef": "-",
129
- "ta6Ref": "-",
128
+ "baspiRef": "0",
129
+ "ta6Ref": "0",
130
130
  "title": "Property Pack",
131
131
  "type": "object",
132
132
  "baspiRequired": ["materialFacts", "additionalLegalInfo"],
@@ -7304,7 +7304,7 @@
7304
7304
  "ta6Ref": "4.7a1",
7305
7305
  "type": "string",
7306
7306
  "title": "",
7307
- "enum": ["Yes", "No"]
7307
+ "enum": ["Yes", "No", "Not known"]
7308
7308
  }
7309
7309
  },
7310
7310
  "baspiRequired": ["yesNo"],
@@ -7316,7 +7316,7 @@
7316
7316
  {
7317
7317
  "properties": {
7318
7318
  "yesNo": {
7319
- "enum": ["No"]
7319
+ "enum": ["No", "Not known"]
7320
7320
  }
7321
7321
  }
7322
7322
  },
@@ -7357,7 +7357,7 @@
7357
7357
  "ta6Ref": "4.7b1",
7358
7358
  "type": "string",
7359
7359
  "title": "",
7360
- "enum": ["Yes", "No"]
7360
+ "enum": ["Yes", "No", "Not known"]
7361
7361
  }
7362
7362
  },
7363
7363
  "baspiRequired": ["yesNo"],
@@ -7368,7 +7368,7 @@
7368
7368
  {
7369
7369
  "properties": {
7370
7370
  "yesNo": {
7371
- "enum": ["No"]
7371
+ "enum": ["No", "Not known"]
7372
7372
  }
7373
7373
  }
7374
7374
  },
@@ -7410,7 +7410,7 @@
7410
7410
  "ta6Ref": "4.8.1",
7411
7411
  "type": "string",
7412
7412
  "title": "",
7413
- "enum": ["Yes", "No"]
7413
+ "enum": ["Yes", "No", "Not known"]
7414
7414
  }
7415
7415
  },
7416
7416
  "baspiRequired": ["yesNo"],
@@ -7422,7 +7422,7 @@
7422
7422
  {
7423
7423
  "properties": {
7424
7424
  "yesNo": {
7425
- "enum": ["No"]
7425
+ "enum": ["No", "Not known"]
7426
7426
  }
7427
7427
  }
7428
7428
  },
@@ -20489,7 +20489,7 @@
20489
20489
  },
20490
20490
  "attachments": {
20491
20491
  "baspiRef": "4.3.3.3",
20492
- "ta6Ref": "4.6c1",
20492
+ "ta6Ref": "4.6c2",
20493
20493
  "title": "Please supply copies of the relevant documents",
20494
20494
  "type": "string",
20495
20495
  "enum": ["Attached", "To follow"]
@@ -20881,7 +20881,7 @@
20881
20881
  "properties": {
20882
20882
  "hasValidGuaranteesOrWarranties": {
20883
20883
  "baspiRef": "B5.1",
20884
- "ta6Ref": "5/1",
20884
+ "ta6Ref": "5.1",
20885
20885
  "rdsRef": "Certificates",
20886
20886
  "title": "Are there any valid guarantees or warranties relating to this property?",
20887
20887
  "type": "string",
@@ -30,7 +30,7 @@
30
30
  }
31
31
  },
32
32
  "propertyPack": {
33
- "baspiRef": "-",
33
+ "baspiRef": "0",
34
34
  "title": "Property Pack",
35
35
  "required": [
36
36
  "materialFacts",
@@ -1293,7 +1293,8 @@
1293
1293
  "properties": {
1294
1294
  "yesNo": {
1295
1295
  "enum": [
1296
- "No"
1296
+ "No",
1297
+ "Not known"
1297
1298
  ]
1298
1299
  }
1299
1300
  }
@@ -1332,7 +1333,8 @@
1332
1333
  "baspiRef": "A1.7.1.1",
1333
1334
  "enum": [
1334
1335
  "Yes",
1335
- "No"
1336
+ "No",
1337
+ "Not known"
1336
1338
  ]
1337
1339
  }
1338
1340
  }
@@ -1348,7 +1350,8 @@
1348
1350
  "properties": {
1349
1351
  "yesNo": {
1350
1352
  "enum": [
1351
- "No"
1353
+ "No",
1354
+ "Not known"
1352
1355
  ]
1353
1356
  }
1354
1357
  }
@@ -1387,7 +1390,8 @@
1387
1390
  "baspiRef": "A1.7.2.1",
1388
1391
  "enum": [
1389
1392
  "Yes",
1390
- "No"
1393
+ "No",
1394
+ "Not known"
1391
1395
  ]
1392
1396
  }
1393
1397
  }
@@ -1403,7 +1407,8 @@
1403
1407
  "properties": {
1404
1408
  "yesNo": {
1405
1409
  "enum": [
1406
- "No"
1410
+ "No",
1411
+ "Not known"
1407
1412
  ]
1408
1413
  }
1409
1414
  }
@@ -1488,7 +1493,8 @@
1488
1493
  "baspiRef": "A1.7.3.1",
1489
1494
  "enum": [
1490
1495
  "Yes",
1491
- "No"
1496
+ "No",
1497
+ "Not known"
1492
1498
  ]
1493
1499
  }
1494
1500
  }
@@ -78,7 +78,8 @@
78
78
  "properties": {
79
79
  "yesNo": {
80
80
  "enum": [
81
- "No"
81
+ "No",
82
+ "Not known"
82
83
  ]
83
84
  }
84
85
  }
@@ -105,7 +106,8 @@
105
106
  "properties": {
106
107
  "yesNo": {
107
108
  "enum": [
108
- "No"
109
+ "No",
110
+ "Not known"
109
111
  ]
110
112
  }
111
113
  }
@@ -132,7 +134,8 @@
132
134
  "properties": {
133
135
  "yesNo": {
134
136
  "enum": [
135
- "No"
137
+ "No",
138
+ "Not known"
136
139
  ]
137
140
  }
138
141
  }
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "properties": {
9
9
  "propertyPack": {
10
- "ta6Ref": "-",
10
+ "ta6Ref": "0",
11
11
  "title": "Property Pack",
12
12
  "required": [
13
13
  "materialFacts",
@@ -185,7 +185,8 @@
185
185
  "properties": {
186
186
  "yesNo": {
187
187
  "enum": [
188
- "No"
188
+ "No",
189
+ "Not known"
189
190
  ]
190
191
  }
191
192
  }
@@ -224,7 +225,8 @@
224
225
  "ta6Ref": "4.7a1",
225
226
  "enum": [
226
227
  "Yes",
227
- "No"
228
+ "No",
229
+ "Not known"
228
230
  ]
229
231
  }
230
232
  }
@@ -240,7 +242,8 @@
240
242
  "properties": {
241
243
  "yesNo": {
242
244
  "enum": [
243
- "No"
245
+ "No",
246
+ "Not known"
244
247
  ]
245
248
  }
246
249
  }
@@ -279,7 +282,8 @@
279
282
  "ta6Ref": "4.7b1",
280
283
  "enum": [
281
284
  "Yes",
282
- "No"
285
+ "No",
286
+ "Not known"
283
287
  ]
284
288
  }
285
289
  }
@@ -295,7 +299,8 @@
295
299
  "properties": {
296
300
  "yesNo": {
297
301
  "enum": [
298
- "No"
302
+ "No",
303
+ "Not known"
299
304
  ]
300
305
  }
301
306
  }
@@ -380,7 +385,8 @@
380
385
  "ta6Ref": "4.8.1",
381
386
  "enum": [
382
387
  "Yes",
383
- "No"
388
+ "No",
389
+ "Not known"
384
390
  ]
385
391
  }
386
392
  }
@@ -4379,7 +4385,7 @@
4379
4385
  ]
4380
4386
  },
4381
4387
  "attachments": {
4382
- "ta6Ref": "4.6c1",
4388
+ "ta6Ref": "4.6c2",
4383
4389
  "title": "Please supply copies of the relevant documents",
4384
4390
  "enum": [
4385
4391
  "Attached",
@@ -4997,7 +5003,7 @@
4997
5003
  ],
4998
5004
  "properties": {
4999
5005
  "hasValidGuaranteesOrWarranties": {
5000
- "ta6Ref": "5/1",
5006
+ "ta6Ref": "5.1",
5001
5007
  "title": "Are there any valid guarantees or warranties relating to this property?",
5002
5008
  "enum": [
5003
5009
  "Yes",
@@ -6379,7 +6379,8 @@
6379
6379
  "title": "",
6380
6380
  "enum": [
6381
6381
  "Yes",
6382
- "No"
6382
+ "No",
6383
+ "Not known"
6383
6384
  ]
6384
6385
  }
6385
6386
  },
@@ -6388,7 +6389,8 @@
6388
6389
  "properties": {
6389
6390
  "yesNo": {
6390
6391
  "enum": [
6391
- "No"
6392
+ "No",
6393
+ "Not known"
6392
6394
  ]
6393
6395
  }
6394
6396
  }
@@ -6426,7 +6428,8 @@
6426
6428
  "title": "",
6427
6429
  "enum": [
6428
6430
  "Yes",
6429
- "No"
6431
+ "No",
6432
+ "Not known"
6430
6433
  ]
6431
6434
  }
6432
6435
  },
@@ -6435,7 +6438,8 @@
6435
6438
  "properties": {
6436
6439
  "yesNo": {
6437
6440
  "enum": [
6438
- "No"
6441
+ "No",
6442
+ "Not known"
6439
6443
  ]
6440
6444
  }
6441
6445
  }
@@ -6473,7 +6477,8 @@
6473
6477
  "title": "",
6474
6478
  "enum": [
6475
6479
  "Yes",
6476
- "No"
6480
+ "No",
6481
+ "Not known"
6477
6482
  ]
6478
6483
  }
6479
6484
  },
@@ -6482,7 +6487,8 @@
6482
6487
  "properties": {
6483
6488
  "yesNo": {
6484
6489
  "enum": [
6485
- "No"
6490
+ "No",
6491
+ "Not known"
6486
6492
  ]
6487
6493
  }
6488
6494
  }
@@ -135,7 +135,7 @@ test("correctly gets yet, yet another subschema through a dependency", () => {
135
135
  "/propertyPack/materialFacts/listingAndConservation/isConservationArea/yesNo"
136
136
  );
137
137
  expect(subschema.type).toBe("string");
138
- expect(subschema.enum).toStrictEqual(["Yes", "No"]);
138
+ expect(subschema.enum).toStrictEqual(["Yes", "No", "Not known"]);
139
139
  });
140
140
 
141
141
  test("correctly gets yet, yet, yet another subschema through a dependency", () => {
@@ -1,341 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft-07/schema#",
3
- "$id": "http://www.landregistry.gov.uk/LLC/LLCSearchResponseV2_0#",
4
- "definitions": {
5
- "ProductResponseCodeType": {
6
- "type": "object",
7
- "properties": {
8
- "Value": {
9
- "allOf": [
10
- {"type": "string"},
11
- {
12
- "enum": [
13
- "0",
14
- "10",
15
- "20",
16
- "30"
17
- ]
18
- }
19
- ]
20
- }
21
- }
22
- },
23
- "IdentifierType": {
24
- "type": "object",
25
- "properties": {
26
- "Value": {"type": "string"},
27
- "schemeAgencyName": {"type": "string"},
28
- "schemeName": {"type": "string"}
29
- }
30
- },
31
- "DateTimeType": {
32
- "type": "object",
33
- "properties": {
34
- "Value": {
35
- "type": "string",
36
- "format": "date-time"
37
- }
38
- }
39
- },
40
- "TextType": {
41
- "type": "object",
42
- "properties": {
43
- "Value": {"type": "string"}
44
- }
45
- },
46
- "Q1AcknowledgementDetailsType": {
47
- "type": "object",
48
- "required": [
49
- "UniqueID",
50
- "MessageDescription"
51
- ],
52
- "properties": {
53
- "UniqueID": {"$ref": "#/definitions/IdentifierType"},
54
- "ExpectedResponseDateTime": {"$ref": "#/definitions/DateTimeType"},
55
- "MessageDescription": {"$ref": "#/definitions/TextType"}
56
- }
57
- },
58
- "Q1AcknowledgementType": {
59
- "type": "object",
60
- "required": ["AcknowledgementDetails"],
61
- "properties": {
62
- "AcknowledgementDetails": {"$ref": "#/definitions/Q1AcknowledgementDetailsType"}
63
- }
64
- },
65
- "AmountType": {
66
- "type": "object",
67
- "properties": {
68
- "Value": {"type": "number"},
69
- "currencyID": {"type": "string"}
70
- }
71
- },
72
- "Q1ActualPriceType": {
73
- "type": "object",
74
- "required": ["GrossPriceAmount"],
75
- "properties": {
76
- "GrossPriceAmount": {"$ref": "#/definitions/AmountType"},
77
- "NetPriceAmount": {"$ref": "#/definitions/AmountType"},
78
- "VATAmount": {"$ref": "#/definitions/AmountType"}
79
- }
80
- },
81
- "Q1ValidationErrorsType": {
82
- "type": "object",
83
- "required": [
84
- "Code",
85
- "Description"
86
- ],
87
- "properties": {
88
- "Code": {"$ref": "#/definitions/TextType"},
89
- "Description": {"$ref": "#/definitions/TextType"}
90
- }
91
- },
92
- "Q1RejectionResponseType": {
93
- "type": "object",
94
- "required": [
95
- "Reason",
96
- "Code"
97
- ],
98
- "properties": {
99
- "Reason": {"$ref": "#/definitions/TextType"},
100
- "Code": {"$ref": "#/definitions/TextType"},
101
- "OtherDescription": {"$ref": "#/definitions/TextType"},
102
- "ValidationErrors": {
103
- "type": "array",
104
- "items": {"$ref": "#/definitions/Q1ValidationErrorsType"},
105
- "minItems": 0
106
- }
107
- }
108
- },
109
- "Q1RejectionType": {
110
- "type": "object",
111
- "required": [
112
- "ExternalReference",
113
- "RejectionResponse"
114
- ],
115
- "properties": {
116
- "ExternalReference": {"$ref": "#/definitions/TextType"},
117
- "ActualPrice": {"$ref": "#/definitions/Q1ActualPriceType"},
118
- "RejectionResponse": {"$ref": "#/definitions/Q1RejectionResponseType"}
119
- }
120
- },
121
- "CData": {
122
- "type": "object",
123
- "properties": {
124
- "Value": {"type": "string"},
125
- "format": {"type": "string"}
126
- }
127
- },
128
- "BinaryObjectType": {
129
- "type": "object",
130
- "properties": {
131
- "Value": {
132
- "type": "array",
133
- "items": {"type": "integer"}
134
- },
135
- "filename": {"type": "string"},
136
- "format": {"type": "string"},
137
- "mimeCode": {"type": "string"},
138
- "characterSetCode": {"type": "string"}
139
- }
140
- },
141
- "DateType": {
142
- "type": "object",
143
- "properties": {
144
- "Value": {
145
- "type": "string",
146
- "format": "date"
147
- }
148
- }
149
- },
150
- "Q1AttachmentType": {
151
- "type": "object",
152
- "required": ["EmbeddedFileBinaryObject"],
153
- "properties": {
154
- "EmbeddedFileBinaryObject": {"$ref": "#/definitions/BinaryObjectType"},
155
- "Title": {"$ref": "#/definitions/TextType"},
156
- "Description": {"$ref": "#/definitions/TextType"},
157
- "Date": {"$ref": "#/definitions/DateType"},
158
- "CopyrightNotices": {"$ref": "#/definitions/TextType"}
159
- }
160
- },
161
- "Q1PostcodeZoneType": {
162
- "type": "object",
163
- "required": ["Postcode"],
164
- "properties": {
165
- "Postcode": {"$ref": "#/definitions/TextType"}
166
- }
167
- },
168
- "NumericType": {
169
- "type": "object",
170
- "properties": {
171
- "Value": {"type": "number"}
172
- }
173
- },
174
- "AddressLineType": {
175
- "type": "object",
176
- "properties": {
177
- "IndexNumeric": {
178
- "type": "array",
179
- "items": {"$ref": "#/definitions/NumericType"},
180
- "minItems": 0
181
- },
182
- "Line": {
183
- "type": "array",
184
- "items": {"$ref": "#/definitions/TextType"},
185
- "minItems": 0
186
- }
187
- }
188
- },
189
- "Q1AddressType": {
190
- "type": "object",
191
- "required": ["AddressLine"],
192
- "properties": {
193
- "PostcodeZone": {"$ref": "#/definitions/Q1PostcodeZoneType"},
194
- "AddressLine": {"$ref": "#/definitions/AddressLineType"}
195
- }
196
- },
197
- "DocumentType": {
198
- "type": "object",
199
- "required": ["Document"],
200
- "properties": {
201
- "Document": {"$ref": "#/definitions/TextType"},
202
- "StartDate": {
203
- "type": "string",
204
- "format": "date"
205
- },
206
- "EndDate": {
207
- "type": "string",
208
- "format": "date"
209
- }
210
- }
211
- },
212
- "ServientLandDevelopmentType": {
213
- "type": "object",
214
- "required": [
215
- "Height",
216
- "CoversAllOrPartOfExtent"
217
- ],
218
- "properties": {
219
- "Height": {"$ref": "#/definitions/TextType"},
220
- "CoversAllOrPartOfExtent": {"$ref": "#/definitions/TextType"}
221
- }
222
- },
223
- "OtherDataType": {
224
- "type": "object",
225
- "required": [
226
- "DataLabel",
227
- "Data"
228
- ],
229
- "properties": {
230
- "DataLabel": {"$ref": "#/definitions/TextType"},
231
- "Data": {"$ref": "#/definitions/TextType"}
232
- }
233
- },
234
- "LocalLandChargeContent": {
235
- "type": "object",
236
- "required": [
237
- "HMLRReference",
238
- "RegistrationDate",
239
- "Category",
240
- "Location",
241
- "LocationDominantBuilding"
242
- ],
243
- "properties": {
244
- "HMLRReference": {"$ref": "#/definitions/TextType"},
245
- "OriginatingAuthority": {"$ref": "#/definitions/TextType"},
246
- "AuthorityReference": {"$ref": "#/definitions/TextType"},
247
- "CreationDate": {"$ref": "#/definitions/DateType"},
248
- "RegistrationDate": {"$ref": "#/definitions/DateType"},
249
- "Category": {"$ref": "#/definitions/TextType"},
250
- "ChargeSubCategory": {"$ref": "#/definitions/TextType"},
251
- "Law": {"$ref": "#/definitions/TextType"},
252
- "LegalDocument": {"$ref": "#/definitions/TextType"},
253
- "Location": {"$ref": "#/definitions/Q1AddressType"},
254
- "LocationDominantBuilding": {"$ref": "#/definitions/Q1AddressType"},
255
- "Description": {"$ref": "#/definitions/TextType"},
256
- "SourceOfInformation": {"$ref": "#/definitions/TextType"},
257
- "AvailableDocument": {
258
- "type": "array",
259
- "items": {"$ref": "#/definitions/DocumentType"},
260
- "minItems": 0
261
- },
262
- "InterestInLand": {"$ref": "#/definitions/TextType"},
263
- "ApplicantName": {"$ref": "#/definitions/TextType"},
264
- "ApplicantAddress": {"$ref": "#/definitions/Q1AddressType"},
265
- "ServientLandDevelopment": {"$ref": "#/definitions/ServientLandDevelopmentType"},
266
- "Amount": {"$ref": "#/definitions/TextType"},
267
- "InterestRate": {"$ref": "#/definitions/TextType"},
268
- "LandSold": {"$ref": "#/definitions/TextType"},
269
- "WorksDone": {"$ref": "#/definitions/TextType"},
270
- "AdvancePayment": {"$ref": "#/definitions/TextType"},
271
- "TotalCompensation": {"$ref": "#/definitions/TextType"},
272
- "AgreedOrEstimated": {"$ref": "#/definitions/TextType"},
273
- "Adjoining": {"type": "boolean"},
274
- "OtherData": {
275
- "type": "array",
276
- "items": {"$ref": "#/definitions/OtherDataType"},
277
- "minItems": 0
278
- },
279
- "ChargeExtent": {"$ref": "#/definitions/CData"}
280
- }
281
- },
282
- "LocalLandChargeType": {
283
- "type": "object",
284
- "properties": {
285
- "LocalLandCharge": {
286
- "type": "array",
287
- "items": {"$ref": "#/definitions/LocalLandChargeContent"},
288
- "minItems": 0
289
- }
290
- }
291
- },
292
- "Q1ResultsType": {
293
- "type": "object",
294
- "required": [
295
- "ExternalReference",
296
- "ActualPrice",
297
- "SearchDateTime",
298
- "SearchDescription",
299
- "NumberSearchesFound",
300
- "SearchReference"
301
- ],
302
- "properties": {
303
- "ExternalReference": {"$ref": "#/definitions/TextType"},
304
- "ActualPrice": {"$ref": "#/definitions/Q1ActualPriceType"},
305
- "SearchArea": {"$ref": "#/definitions/CData"},
306
- "Attachment": {"$ref": "#/definitions/Q1AttachmentType"},
307
- "SearchDateTime": {"$ref": "#/definitions/DateTimeType"},
308
- "SearchDescription": {"type": "string"},
309
- "NumberSearchesFound": {"type": "integer"},
310
- "Charges": {"$ref": "#/definitions/LocalLandChargeType"},
311
- "ChargesAlternateFormat": {"$ref": "#/definitions/CData"},
312
- "SearchReference": {"$ref": "#/definitions/TextType"}
313
- }
314
- },
315
- "Q1GatewayResponseType": {
316
- "type": "object",
317
- "required": ["TypeCode"],
318
- "properties": {
319
- "TypeCode": {"$ref": "#/definitions/ProductResponseCodeType"},
320
- "Acknowledgement": {"$ref": "#/definitions/Q1AcknowledgementType"},
321
- "Rejection": {"$ref": "#/definitions/Q1RejectionType"},
322
- "Results": {"$ref": "#/definitions/Q1ResultsType"}
323
- }
324
- },
325
- "LLCSearchResponseV2_0Type": {
326
- "type": "object",
327
- "required": ["GatewayResponse"],
328
- "properties": {
329
- "GatewayResponse": {"$ref": "#/definitions/Q1GatewayResponseType"}
330
- }
331
- }
332
- },
333
- "anyOf": [
334
- {
335
- "type": "object",
336
- "properties": {
337
- "LLCSearchResponse": {"$ref": "#/definitions/LLCSearchResponseV2_0Type"}
338
- }
339
- }
340
- ]
341
- }
@@ -1,9 +0,0 @@
1
- const { dereference } = require("@jdw/jst");
2
- const fs = require("fs");
3
-
4
- const originalSchema = require("./LLCSearchResponseV2_0.xsd.json");
5
-
6
- const derefed = dereference(originalSchema);
7
-
8
- fs.writeFileSync("hmlrLLC1.json", JSON.stringify(derefed, null, 2));
9
- console.log("Derefed schema written to hmlrLLC1.json");