@pdtf/schemas 3.6.0-16 → 3.6.0-18
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
|
@@ -4780,7 +4780,6 @@
|
|
|
4780
4780
|
"baspi4Ref": "A1.5.4.1.2.2",
|
|
4781
4781
|
"baspi5Ref": "A1.5.5.1.2.2",
|
|
4782
4782
|
"ta7Ref": "4.1a.3",
|
|
4783
|
-
"ta7ed5Ref": "3.1.1.2",
|
|
4784
4783
|
"title": "Address line 2",
|
|
4785
4784
|
"type": "string"
|
|
4786
4785
|
},
|
|
@@ -4788,7 +4787,6 @@
|
|
|
4788
4787
|
"baspi4Ref": "A1.5.4.1.2.3",
|
|
4789
4788
|
"baspi5Ref": "A1.5.5.1.2.3",
|
|
4790
4789
|
"ta7Ref": "4.1a.4",
|
|
4791
|
-
"ta7ed5Ref": "3.1.1.2",
|
|
4792
4790
|
"title": "Address line 3",
|
|
4793
4791
|
"type": "string"
|
|
4794
4792
|
},
|
|
@@ -4796,7 +4794,6 @@
|
|
|
4796
4794
|
"baspi4Ref": "A1.5.4.1.2.4",
|
|
4797
4795
|
"baspi5Ref": "A1.5.5.1.2.4",
|
|
4798
4796
|
"ta7Ref": "4.1a.5",
|
|
4799
|
-
"ta7ed5Ref": "3.1.1.2",
|
|
4800
4797
|
"title": "Town",
|
|
4801
4798
|
"type": "string"
|
|
4802
4799
|
},
|
|
@@ -6246,6 +6243,13 @@
|
|
|
6246
6243
|
"ta7ed5Title": "Who collects the ground rent?",
|
|
6247
6244
|
"type": "string",
|
|
6248
6245
|
"enum": [
|
|
6246
|
+
"Landlord",
|
|
6247
|
+
"Management Company",
|
|
6248
|
+
"Managing Agent",
|
|
6249
|
+
"Not applicable",
|
|
6250
|
+
"Other"
|
|
6251
|
+
],
|
|
6252
|
+
"lpe1Enum": [
|
|
6249
6253
|
"Landlord",
|
|
6250
6254
|
"Management Company",
|
|
6251
6255
|
"Managing Agent",
|
|
@@ -6253,7 +6257,7 @@
|
|
|
6253
6257
|
],
|
|
6254
6258
|
"ta7ed5Enum": [
|
|
6255
6259
|
"Landlord",
|
|
6256
|
-
"Management
|
|
6260
|
+
"Management Company",
|
|
6257
6261
|
"Other"
|
|
6258
6262
|
]
|
|
6259
6263
|
}
|
|
@@ -6270,10 +6274,6 @@
|
|
|
6270
6274
|
"Management Company",
|
|
6271
6275
|
"Managing Agent",
|
|
6272
6276
|
"Not applicable"
|
|
6273
|
-
],
|
|
6274
|
-
"ta7ed5Enum": [
|
|
6275
|
-
"Landlord",
|
|
6276
|
-
"Management company"
|
|
6277
6277
|
]
|
|
6278
6278
|
}
|
|
6279
6279
|
}
|
|
@@ -6281,8 +6281,7 @@
|
|
|
6281
6281
|
{
|
|
6282
6282
|
"properties": {
|
|
6283
6283
|
"collector": {
|
|
6284
|
-
"enum": ["Other"]
|
|
6285
|
-
"ta7ed5Enum": ["Other"]
|
|
6284
|
+
"enum": ["Other"]
|
|
6286
6285
|
},
|
|
6287
6286
|
"otherCollector": {
|
|
6288
6287
|
"ta7ed5Ref": "4.3.3",
|
|
@@ -6320,6 +6319,16 @@
|
|
|
6320
6319
|
"title": "Who collects the building insurance premiums?",
|
|
6321
6320
|
"type": "string",
|
|
6322
6321
|
"enum": [
|
|
6322
|
+
"Freeholder",
|
|
6323
|
+
"Landlord",
|
|
6324
|
+
"Management Company",
|
|
6325
|
+
"Managing Agent",
|
|
6326
|
+
"Head Leaseholder",
|
|
6327
|
+
"Seller",
|
|
6328
|
+
"Not applicable",
|
|
6329
|
+
"Other"
|
|
6330
|
+
],
|
|
6331
|
+
"lpe1Enum": [
|
|
6323
6332
|
"Landlord",
|
|
6324
6333
|
"Management Company",
|
|
6325
6334
|
"Managing Agent",
|
|
@@ -6328,8 +6337,8 @@
|
|
|
6328
6337
|
"ta7ed5Enum": [
|
|
6329
6338
|
"Freeholder",
|
|
6330
6339
|
"Landlord",
|
|
6331
|
-
"Management
|
|
6332
|
-
"Head
|
|
6340
|
+
"Management Company",
|
|
6341
|
+
"Head Leaseholder",
|
|
6333
6342
|
"Seller",
|
|
6334
6343
|
"Other"
|
|
6335
6344
|
]
|
|
@@ -6343,17 +6352,13 @@
|
|
|
6343
6352
|
"properties": {
|
|
6344
6353
|
"collector": {
|
|
6345
6354
|
"enum": [
|
|
6355
|
+
"Freeholder",
|
|
6346
6356
|
"Landlord",
|
|
6347
6357
|
"Management Company",
|
|
6348
6358
|
"Managing Agent",
|
|
6359
|
+
"Head Leaseholder",
|
|
6360
|
+
"Seller",
|
|
6349
6361
|
"Not applicable"
|
|
6350
|
-
],
|
|
6351
|
-
"ta7ed5Enum": [
|
|
6352
|
-
"Freeholder",
|
|
6353
|
-
"Landlord",
|
|
6354
|
-
"Management company",
|
|
6355
|
-
"Head leaseholder",
|
|
6356
|
-
"Seller"
|
|
6357
6362
|
]
|
|
6358
6363
|
}
|
|
6359
6364
|
}
|
|
@@ -6361,8 +6366,7 @@
|
|
|
6361
6366
|
{
|
|
6362
6367
|
"properties": {
|
|
6363
6368
|
"collector": {
|
|
6364
|
-
"enum": ["Other"]
|
|
6365
|
-
"ta7ed5Enum": ["Other"]
|
|
6369
|
+
"enum": ["Other"]
|
|
6366
6370
|
},
|
|
6367
6371
|
"otherCollector": {
|
|
6368
6372
|
"ta7ed5Ref": "4.2.3",
|
|
@@ -445,7 +445,13 @@
|
|
|
445
445
|
],
|
|
446
446
|
"properties": {
|
|
447
447
|
"collector": {
|
|
448
|
-
"lpe1Ref": "1.7"
|
|
448
|
+
"lpe1Ref": "1.7",
|
|
449
|
+
"enum": [
|
|
450
|
+
"Landlord",
|
|
451
|
+
"Management Company",
|
|
452
|
+
"Managing Agent",
|
|
453
|
+
"Not applicable"
|
|
454
|
+
]
|
|
449
455
|
}
|
|
450
456
|
}
|
|
451
457
|
},
|
|
@@ -458,7 +464,13 @@
|
|
|
458
464
|
],
|
|
459
465
|
"properties": {
|
|
460
466
|
"collector": {
|
|
461
|
-
"lpe1Ref": "1.9"
|
|
467
|
+
"lpe1Ref": "1.9",
|
|
468
|
+
"enum": [
|
|
469
|
+
"Landlord",
|
|
470
|
+
"Management Company",
|
|
471
|
+
"Managing Agent",
|
|
472
|
+
"Not applicable"
|
|
473
|
+
]
|
|
462
474
|
}
|
|
463
475
|
}
|
|
464
476
|
},
|
|
@@ -161,15 +161,6 @@
|
|
|
161
161
|
"line1": {
|
|
162
162
|
"ta7ed5Ref": "3.1.1.2"
|
|
163
163
|
},
|
|
164
|
-
"line2": {
|
|
165
|
-
"ta7ed5Ref": "3.1.1.2"
|
|
166
|
-
},
|
|
167
|
-
"line3": {
|
|
168
|
-
"ta7ed5Ref": "3.1.1.2"
|
|
169
|
-
},
|
|
170
|
-
"town": {
|
|
171
|
-
"ta7ed5Ref": "3.1.1.2"
|
|
172
|
-
},
|
|
173
164
|
"postcode": {
|
|
174
165
|
"ta7ed5Ref": "3.1.1.2"
|
|
175
166
|
}
|
|
@@ -345,7 +336,9 @@
|
|
|
345
336
|
"collector": {
|
|
346
337
|
"enum": [
|
|
347
338
|
"Landlord",
|
|
348
|
-
"Management
|
|
339
|
+
"Management Company",
|
|
340
|
+
"Managing Agent",
|
|
341
|
+
"Not applicable"
|
|
349
342
|
]
|
|
350
343
|
}
|
|
351
344
|
}
|
|
@@ -375,7 +368,7 @@
|
|
|
375
368
|
"title": "Who collects the ground rent?",
|
|
376
369
|
"enum": [
|
|
377
370
|
"Landlord",
|
|
378
|
-
"Management
|
|
371
|
+
"Management Company",
|
|
379
372
|
"Other"
|
|
380
373
|
]
|
|
381
374
|
}
|
|
@@ -393,9 +386,11 @@
|
|
|
393
386
|
"enum": [
|
|
394
387
|
"Freeholder",
|
|
395
388
|
"Landlord",
|
|
396
|
-
"Management
|
|
397
|
-
"
|
|
398
|
-
"
|
|
389
|
+
"Management Company",
|
|
390
|
+
"Managing Agent",
|
|
391
|
+
"Head Leaseholder",
|
|
392
|
+
"Seller",
|
|
393
|
+
"Not applicable"
|
|
399
394
|
]
|
|
400
395
|
}
|
|
401
396
|
}
|
|
@@ -425,8 +420,8 @@
|
|
|
425
420
|
"enum": [
|
|
426
421
|
"Freeholder",
|
|
427
422
|
"Landlord",
|
|
428
|
-
"Management
|
|
429
|
-
"Head
|
|
423
|
+
"Management Company",
|
|
424
|
+
"Head Leaseholder",
|
|
430
425
|
"Seller",
|
|
431
426
|
"Other"
|
|
432
427
|
]
|
|
@@ -5043,7 +5043,8 @@
|
|
|
5043
5043
|
"Landlord",
|
|
5044
5044
|
"Management Company",
|
|
5045
5045
|
"Managing Agent",
|
|
5046
|
-
"Not applicable"
|
|
5046
|
+
"Not applicable",
|
|
5047
|
+
"Other"
|
|
5047
5048
|
]
|
|
5048
5049
|
}
|
|
5049
5050
|
},
|
|
@@ -5095,10 +5096,14 @@
|
|
|
5095
5096
|
"title": "Who collects the building insurance premiums?",
|
|
5096
5097
|
"type": "string",
|
|
5097
5098
|
"enum": [
|
|
5099
|
+
"Freeholder",
|
|
5098
5100
|
"Landlord",
|
|
5099
5101
|
"Management Company",
|
|
5100
5102
|
"Managing Agent",
|
|
5101
|
-
"
|
|
5103
|
+
"Head Leaseholder",
|
|
5104
|
+
"Seller",
|
|
5105
|
+
"Not applicable",
|
|
5106
|
+
"Other"
|
|
5102
5107
|
]
|
|
5103
5108
|
}
|
|
5104
5109
|
},
|
|
@@ -5107,9 +5112,12 @@
|
|
|
5107
5112
|
"properties": {
|
|
5108
5113
|
"collector": {
|
|
5109
5114
|
"enum": [
|
|
5115
|
+
"Freeholder",
|
|
5110
5116
|
"Landlord",
|
|
5111
5117
|
"Management Company",
|
|
5112
5118
|
"Managing Agent",
|
|
5119
|
+
"Head Leaseholder",
|
|
5120
|
+
"Seller",
|
|
5113
5121
|
"Not applicable"
|
|
5114
5122
|
]
|
|
5115
5123
|
}
|
|
@@ -237,9 +237,9 @@ describe("TA7 5th edition overlay", () => {
|
|
|
237
237
|
expect(validator({ collector: "Landlord" })).toBe(true);
|
|
238
238
|
});
|
|
239
239
|
|
|
240
|
-
test("valid with Management
|
|
240
|
+
test("valid with Management Company (no otherCollector needed)", () => {
|
|
241
241
|
const validator = getSubschemaValidator(path, schemaId, overlays);
|
|
242
|
-
expect(validator({ collector: "Management
|
|
242
|
+
expect(validator({ collector: "Management Company" })).toBe(true);
|
|
243
243
|
});
|
|
244
244
|
|
|
245
245
|
test("invalid with Other when otherCollector is missing", () => {
|
|
@@ -290,7 +290,7 @@ describe("TA7 5th edition overlay", () => {
|
|
|
290
290
|
?.collectsGroundRent?.properties?.collector;
|
|
291
291
|
expect(collector?.enum).toEqual([
|
|
292
292
|
"Landlord",
|
|
293
|
-
"Management
|
|
293
|
+
"Management Company",
|
|
294
294
|
"Other",
|
|
295
295
|
]);
|
|
296
296
|
});
|
|
@@ -324,8 +324,8 @@ describe("TA7 5th edition overlay", () => {
|
|
|
324
324
|
for (const value of [
|
|
325
325
|
"Freeholder",
|
|
326
326
|
"Landlord",
|
|
327
|
-
"Management
|
|
328
|
-
"Head
|
|
327
|
+
"Management Company",
|
|
328
|
+
"Head Leaseholder",
|
|
329
329
|
"Seller",
|
|
330
330
|
]) {
|
|
331
331
|
expect(validator({ collector: value })).toBe(true);
|
|
@@ -379,8 +379,8 @@ describe("TA7 5th edition overlay", () => {
|
|
|
379
379
|
expect(collector?.enum).toEqual([
|
|
380
380
|
"Freeholder",
|
|
381
381
|
"Landlord",
|
|
382
|
-
"Management
|
|
383
|
-
"Head
|
|
382
|
+
"Management Company",
|
|
383
|
+
"Head Leaseholder",
|
|
384
384
|
"Seller",
|
|
385
385
|
"Other",
|
|
386
386
|
]);
|
|
@@ -411,7 +411,7 @@ describe("TA7 5th edition overlay", () => {
|
|
|
411
411
|
expect(
|
|
412
412
|
validator({
|
|
413
413
|
collectsGroundRent: { collector: "Landlord" },
|
|
414
|
-
collectsbuildingInsurancePremiums: { collector: "Management
|
|
414
|
+
collectsbuildingInsurancePremiums: { collector: "Management Company" },
|
|
415
415
|
})
|
|
416
416
|
).toBe(true);
|
|
417
417
|
});
|
|
@@ -552,10 +552,10 @@ describe("TA7 5th edition overlay", () => {
|
|
|
552
552
|
});
|
|
553
553
|
expect(collectsInsurance.oneOf).toHaveLength(2);
|
|
554
554
|
|
|
555
|
-
// Branch 1: non-Other values (
|
|
555
|
+
// Branch 1: non-Other values (superset of all overlay values)
|
|
556
556
|
const branch1Enum =
|
|
557
557
|
collectsInsurance.oneOf[0].properties.collector.enum;
|
|
558
|
-
expect(branch1Enum).toHaveLength(
|
|
558
|
+
expect(branch1Enum).toHaveLength(7);
|
|
559
559
|
expect(branch1Enum).not.toContain("Other");
|
|
560
560
|
|
|
561
561
|
// Branch 2: Other + required otherCollector
|