@pdtf/schemas 3.6.0-17 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "3.6.0-17",
3
+ "version": "3.6.0-18",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -6243,6 +6243,13 @@
6243
6243
  "ta7ed5Title": "Who collects the ground rent?",
6244
6244
  "type": "string",
6245
6245
  "enum": [
6246
+ "Landlord",
6247
+ "Management Company",
6248
+ "Managing Agent",
6249
+ "Not applicable",
6250
+ "Other"
6251
+ ],
6252
+ "lpe1Enum": [
6246
6253
  "Landlord",
6247
6254
  "Management Company",
6248
6255
  "Managing Agent",
@@ -6250,7 +6257,7 @@
6250
6257
  ],
6251
6258
  "ta7ed5Enum": [
6252
6259
  "Landlord",
6253
- "Management company",
6260
+ "Management Company",
6254
6261
  "Other"
6255
6262
  ]
6256
6263
  }
@@ -6267,10 +6274,6 @@
6267
6274
  "Management Company",
6268
6275
  "Managing Agent",
6269
6276
  "Not applicable"
6270
- ],
6271
- "ta7ed5Enum": [
6272
- "Landlord",
6273
- "Management company"
6274
6277
  ]
6275
6278
  }
6276
6279
  }
@@ -6278,8 +6281,7 @@
6278
6281
  {
6279
6282
  "properties": {
6280
6283
  "collector": {
6281
- "enum": ["Other"],
6282
- "ta7ed5Enum": ["Other"]
6284
+ "enum": ["Other"]
6283
6285
  },
6284
6286
  "otherCollector": {
6285
6287
  "ta7ed5Ref": "4.3.3",
@@ -6317,6 +6319,16 @@
6317
6319
  "title": "Who collects the building insurance premiums?",
6318
6320
  "type": "string",
6319
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": [
6320
6332
  "Landlord",
6321
6333
  "Management Company",
6322
6334
  "Managing Agent",
@@ -6325,8 +6337,8 @@
6325
6337
  "ta7ed5Enum": [
6326
6338
  "Freeholder",
6327
6339
  "Landlord",
6328
- "Management company",
6329
- "Head leaseholder",
6340
+ "Management Company",
6341
+ "Head Leaseholder",
6330
6342
  "Seller",
6331
6343
  "Other"
6332
6344
  ]
@@ -6340,17 +6352,13 @@
6340
6352
  "properties": {
6341
6353
  "collector": {
6342
6354
  "enum": [
6355
+ "Freeholder",
6343
6356
  "Landlord",
6344
6357
  "Management Company",
6345
6358
  "Managing Agent",
6359
+ "Head Leaseholder",
6360
+ "Seller",
6346
6361
  "Not applicable"
6347
- ],
6348
- "ta7ed5Enum": [
6349
- "Freeholder",
6350
- "Landlord",
6351
- "Management company",
6352
- "Head leaseholder",
6353
- "Seller"
6354
6362
  ]
6355
6363
  }
6356
6364
  }
@@ -6358,8 +6366,7 @@
6358
6366
  {
6359
6367
  "properties": {
6360
6368
  "collector": {
6361
- "enum": ["Other"],
6362
- "ta7ed5Enum": ["Other"]
6369
+ "enum": ["Other"]
6363
6370
  },
6364
6371
  "otherCollector": {
6365
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
  },
@@ -336,7 +336,9 @@
336
336
  "collector": {
337
337
  "enum": [
338
338
  "Landlord",
339
- "Management company"
339
+ "Management Company",
340
+ "Managing Agent",
341
+ "Not applicable"
340
342
  ]
341
343
  }
342
344
  }
@@ -366,7 +368,7 @@
366
368
  "title": "Who collects the ground rent?",
367
369
  "enum": [
368
370
  "Landlord",
369
- "Management company",
371
+ "Management Company",
370
372
  "Other"
371
373
  ]
372
374
  }
@@ -384,9 +386,11 @@
384
386
  "enum": [
385
387
  "Freeholder",
386
388
  "Landlord",
387
- "Management company",
388
- "Head leaseholder",
389
- "Seller"
389
+ "Management Company",
390
+ "Managing Agent",
391
+ "Head Leaseholder",
392
+ "Seller",
393
+ "Not applicable"
390
394
  ]
391
395
  }
392
396
  }
@@ -416,8 +420,8 @@
416
420
  "enum": [
417
421
  "Freeholder",
418
422
  "Landlord",
419
- "Management company",
420
- "Head leaseholder",
423
+ "Management Company",
424
+ "Head Leaseholder",
421
425
  "Seller",
422
426
  "Other"
423
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
- "Not applicable"
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 company (no otherCollector needed)", () => {
240
+ test("valid with Management Company (no otherCollector needed)", () => {
241
241
  const validator = getSubschemaValidator(path, schemaId, overlays);
242
- expect(validator({ collector: "Management company" })).toBe(true);
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 company",
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 company",
328
- "Head leaseholder",
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 company",
383
- "Head leaseholder",
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 company" },
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 (5 options)
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(5);
558
+ expect(branch1Enum).toHaveLength(7);
559
559
  expect(branch1Enum).not.toContain("Other");
560
560
 
561
561
  // Branch 2: Other + required otherCollector