@pdtf/schemas 3.6.0-9 → 3.6.0-dev.10

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 (85) hide show
  1. package/README.md +57 -33
  2. package/docs/branch-release-workflow.md +138 -0
  3. package/docs/sef25-extensions-ui-spec.md +355 -0
  4. package/index.js +131 -75
  5. package/package.json +14 -2
  6. package/src/schemas/v3/combined.json +7952 -1721
  7. package/src/schemas/v3/compactSkeleton.txt +379 -5
  8. package/src/schemas/v3/overlays/baspi4.json +205 -93
  9. package/src/schemas/v3/overlays/baspi5.json +210 -95
  10. package/src/schemas/v3/overlays/extensions/ac.json +334 -0
  11. package/src/schemas/v3/overlays/extensions/as.json +4 -2
  12. package/src/schemas/v3/overlays/extensions/dk.json +33 -0
  13. package/src/schemas/v3/overlays/extensions/dr.json +9 -9
  14. package/src/schemas/v3/overlays/extensions/er.json +4 -2
  15. package/src/schemas/v3/overlays/extensions/fd.json +6 -3
  16. package/src/schemas/v3/overlays/extensions/hi.json +6 -3
  17. package/src/schemas/v3/overlays/extensions/hs.json +4 -2
  18. package/src/schemas/v3/overlays/extensions/ic.json +94 -0
  19. package/src/schemas/v3/overlays/extensions/jk.json +28 -8
  20. package/src/schemas/v3/overlays/extensions/la.json +4 -2
  21. package/src/schemas/v3/overlays/extensions/lc.json +76 -0
  22. package/src/schemas/v3/overlays/extensions/ma.json +6 -3
  23. package/src/schemas/v3/overlays/extensions/mc.json +4 -2
  24. package/src/schemas/v3/overlays/extensions/mi.json +70 -0
  25. package/src/schemas/v3/overlays/extensions/nd.json +44 -0
  26. package/src/schemas/v3/overlays/extensions/oa.json +4 -2
  27. package/src/schemas/v3/overlays/extensions/oc.json +4 -2
  28. package/src/schemas/v3/overlays/extensions/pc.json +38 -0
  29. package/src/schemas/v3/overlays/extensions/ph.json +195 -0
  30. package/src/schemas/v3/overlays/extensions/rw.json +69 -0
  31. package/src/schemas/v3/overlays/extensions/sb.json +4 -2
  32. package/src/schemas/v3/overlays/extensions/sc.json +133 -0
  33. package/src/schemas/v3/overlays/extensions/sd.json +64 -0
  34. package/src/schemas/v3/overlays/extensions/sf.json +4 -2
  35. package/src/schemas/v3/overlays/extensions/sl.json +4 -2
  36. package/src/schemas/v3/overlays/extensions/ta.json +204 -0
  37. package/src/schemas/v3/overlays/extensions/tf.json +6 -3
  38. package/src/schemas/v3/overlays/extensions/tr.json +74 -0
  39. package/src/schemas/v3/overlays/extensions/wg.json +351 -0
  40. package/src/schemas/v3/overlays/fme1.json +16 -14
  41. package/src/schemas/v3/overlays/llc1.json +1 -2
  42. package/src/schemas/v3/overlays/lpe1.json +61 -31
  43. package/src/schemas/v3/overlays/nts.json +71 -2
  44. package/src/schemas/v3/overlays/nts2.json +71 -5
  45. package/src/schemas/v3/overlays/ntsl.json +71 -2
  46. package/src/schemas/v3/overlays/ntsl2.json +71 -5
  47. package/src/schemas/v3/overlays/piq.json +60 -27
  48. package/src/schemas/v3/overlays/rds.json +139 -57
  49. package/src/schemas/v3/overlays/sef25.json +1653 -0
  50. package/src/schemas/v3/overlays/ta10.json +0 -9
  51. package/src/schemas/v3/overlays/ta6.json +83 -85
  52. package/src/schemas/v3/overlays/ta6ed6.json +6641 -0
  53. package/src/schemas/v3/overlays/ta7.json +70 -6
  54. package/src/schemas/v3/overlays/ta7ed5.json +1597 -0
  55. package/src/schemas/v3/pdtf-transaction.json +4525 -1013
  56. package/src/schemas/v3/skeleton.json +512 -40
  57. package/src/utils/extractExtensionOverlays.js +302 -31
  58. package/src/utils/extractOverlay.js +114 -27
  59. package/src/utils/pathSkeleton.js +1 -1
  60. package/.claude/settings.local.json +0 -42
  61. package/.github/workflows/pages.yml +0 -50
  62. package/CNAME +0 -1
  63. package/_config.yml +0 -1
  64. package/src/examples/v1/exampleAddParticipantVouch.json +0 -32
  65. package/src/examples/v1/exampleDocumentedVouch.json +0 -40
  66. package/src/examples/v1/exampleElectronicRecord.json +0 -30
  67. package/src/examples/v1/exampleTransaction.json +0 -878
  68. package/src/examples/v1/exampleVouch.json +0 -25
  69. package/src/examples/v2/exampleTransaction.json +0 -901
  70. package/src/examples/v3/exampleAddParticipantVouch.json +0 -38
  71. package/src/examples/v3/exampleCustomOverlay.json +0 -55
  72. package/src/examples/v3/exampleCustomOverlay2.json +0 -93
  73. package/src/examples/v3/exampleDocumentedVouch.json +0 -47
  74. package/src/examples/v3/exampleElectronicRecord.json +0 -36
  75. package/src/examples/v3/exampleTransaction.json +0 -1038
  76. package/src/examples/v3/exampleVouch.json +0 -32
  77. package/src/mappings/SendPropertyDetailsRequestSchema.json +0 -1588
  78. package/src/mappings/adf.js +0 -198
  79. package/src/tests/v3/caching.test.js +0 -591
  80. package/src/tests/v3/enquiries.test.js +0 -1096
  81. package/src/tests/v3/extensionOverlays.test.js +0 -525
  82. package/src/tests/v3/offers.test.js +0 -823
  83. package/src/tests/v3/patternProperties.test.js +0 -688
  84. package/src/tests/v3/transactionSchema.test.js +0 -615
  85. package/src/tests/v3/verifiedClaimsValidator.test.js +0 -195
@@ -1498,15 +1498,6 @@
1498
1498
  }
1499
1499
  }
1500
1500
  }
1501
- },
1502
- {
1503
- "properties": {
1504
- "isIncludedOrExcluded": {
1505
- "enum": [
1506
- "None"
1507
- ]
1508
- }
1509
- }
1510
1501
  }
1511
1502
  ],
1512
1503
  "required": [
@@ -1405,6 +1405,7 @@
1405
1405
  }
1406
1406
  },
1407
1407
  "specialistIssues": {
1408
+ "ta6Ref": "7.8",
1408
1409
  "required": [
1409
1410
  "japaneseKnotweed"
1410
1411
  ],
@@ -1434,24 +1435,33 @@
1434
1435
  },
1435
1436
  "managementPlanInPlace": {
1436
1437
  "ta6Ref": "7.8.2"
1437
- },
1438
- "attachments": {
1439
- "ta6Ref": "7.8.3"
1440
1438
  }
1441
1439
  },
1442
1440
  "required": [
1443
- "managementPlanInPlace",
1444
- "attachments"
1441
+ "managementPlanInPlace"
1442
+ ],
1443
+ "oneOf": [
1444
+ null,
1445
+ {
1446
+ "required": [
1447
+ "attachments"
1448
+ ],
1449
+ "properties": {
1450
+ "attachments": {
1451
+ "ta6Ref": "7.8.3"
1452
+ }
1453
+ }
1454
+ }
1445
1455
  ]
1446
1456
  }
1447
1457
  ],
1448
1458
  "required": [
1449
1459
  "yesNo"
1450
1460
  ],
1451
- "title": "Is the property affected by Japanese knotweed?",
1452
1461
  "properties": {
1453
1462
  "yesNo": {
1454
- "ta6Ref": "7.8.1"
1463
+ "ta6Ref": "7.8.1",
1464
+ "title": "Is the property affected by Japanese knotweed?"
1455
1465
  }
1456
1466
  }
1457
1467
  }
@@ -2052,7 +2062,10 @@
2052
2062
  }
2053
2063
  }
2054
2064
  }
2055
- }
2065
+ },
2066
+ "required": [
2067
+ "offMainsDrainageSystem"
2068
+ ]
2056
2069
  }
2057
2070
  ],
2058
2071
  "required": [
@@ -2250,7 +2263,8 @@
2250
2263
  "properties": {
2251
2264
  "yesNo": {
2252
2265
  "enum": [
2253
- "Yes"
2266
+ "Yes",
2267
+ "Not known"
2254
2268
  ]
2255
2269
  }
2256
2270
  }
@@ -2270,7 +2284,11 @@
2270
2284
  ],
2271
2285
  "properties": {
2272
2286
  "yesNo": {
2273
- "ta6Ref": "12.3c1"
2287
+ "ta6Ref": "12.3c1",
2288
+ "enum": [
2289
+ "Yes",
2290
+ "No"
2291
+ ]
2274
2292
  }
2275
2293
  }
2276
2294
  }
@@ -2700,7 +2718,8 @@
2700
2718
  "properties": {
2701
2719
  "yesNo": {
2702
2720
  "enum": [
2703
- "No"
2721
+ "No",
2722
+ "Not applicable"
2704
2723
  ]
2705
2724
  }
2706
2725
  }
@@ -2780,7 +2799,8 @@
2780
2799
  "properties": {
2781
2800
  "yesNo": {
2782
2801
  "enum": [
2783
- "No"
2802
+ "No",
2803
+ "Not known"
2784
2804
  ]
2785
2805
  }
2786
2806
  }
@@ -3234,7 +3254,8 @@
3234
3254
  "properties": {
3235
3255
  "yesNo": {
3236
3256
  "enum": [
3237
- "No"
3257
+ "No",
3258
+ "Not known"
3238
3259
  ]
3239
3260
  }
3240
3261
  }
@@ -3264,7 +3285,11 @@
3264
3285
  ],
3265
3286
  "properties": {
3266
3287
  "yesNo": {
3267
- "ta6Ref": "7.4.1"
3288
+ "ta6Ref": "7.4.1",
3289
+ "enum": [
3290
+ "Yes",
3291
+ "No"
3292
+ ]
3268
3293
  }
3269
3294
  }
3270
3295
  },
@@ -3342,77 +3367,41 @@
3342
3367
  "properties": {
3343
3368
  "ownership": {
3344
3369
  "ta6Ref": "1",
3345
- "discriminator": {
3346
- "propertyName": "areBoundariesUniform"
3347
- },
3348
- "oneOf": [
3349
- {
3350
- "properties": {
3351
- "areBoundariesUniform": {
3352
- "enum": [
3353
- "Yes"
3354
- ]
3355
- },
3356
- "uniformBoundaries": {
3357
- "ta6Ref": "1.1",
3358
- "required": [
3359
- "left",
3360
- "right",
3361
- "rear",
3362
- "front"
3363
- ],
3364
- "properties": {
3365
- "left": {
3366
- "ta6Ref": "1.1a"
3367
- },
3368
- "right": {
3369
- "ta6Ref": "1.1b"
3370
- },
3371
- "rear": {
3372
- "ta6Ref": "1.1c"
3373
- },
3374
- "front": {
3375
- "ta6Ref": "1.1d"
3376
- }
3377
- }
3378
- }
3379
- }
3380
- },
3381
- {
3382
- "properties": {
3383
- "areBoundariesUniform": {
3384
- "enum": [
3385
- "No"
3386
- ]
3387
- },
3388
- "details": {
3389
- "ta6Ref": "1.2.1"
3390
- },
3391
- "attachments": {
3392
- "ta6Ref": "1.2.2"
3393
- }
3394
- },
3395
- "required": [
3396
- "details",
3397
- "attachments"
3398
- ]
3399
- },
3400
- {
3401
- "properties": {
3402
- "areBoundariesUniform": {
3403
- "enum": [
3404
- "Not applicable"
3405
- ]
3406
- }
3407
- }
3408
- }
3409
- ],
3410
3370
  "required": [
3411
3371
  "areBoundariesUniform"
3412
3372
  ],
3413
3373
  "properties": {
3414
3374
  "areBoundariesUniform": {
3415
3375
  "ta6Ref": "1.2"
3376
+ },
3377
+ "uniformBoundaries": {
3378
+ "ta6Ref": "1.1",
3379
+ "required": [
3380
+ "left",
3381
+ "right",
3382
+ "rear",
3383
+ "front"
3384
+ ],
3385
+ "properties": {
3386
+ "left": {
3387
+ "ta6Ref": "1.1a"
3388
+ },
3389
+ "right": {
3390
+ "ta6Ref": "1.1b"
3391
+ },
3392
+ "rear": {
3393
+ "ta6Ref": "1.1c"
3394
+ },
3395
+ "front": {
3396
+ "ta6Ref": "1.1d"
3397
+ }
3398
+ }
3399
+ },
3400
+ "details": {
3401
+ "ta6Ref": "1.2.1"
3402
+ },
3403
+ "attachments": {
3404
+ "ta6Ref": "1.2.2"
3416
3405
  }
3417
3406
  }
3418
3407
  },
@@ -3451,7 +3440,7 @@
3451
3440
  "required": [
3452
3441
  "yesNo"
3453
3442
  ],
3454
- "title": "Is the seller aware of any boundary feature having been moved in the last 10 years or during the sellers period of ownership if longer?",
3443
+ "title": "Is the seller aware of any boundary feature having been moved in the last 10 years or during the seller's period of ownership if longer?",
3455
3444
  "properties": {
3456
3445
  "yesNo": {
3457
3446
  "ta6Ref": "1.3.1"
@@ -3493,7 +3482,7 @@
3493
3482
  "required": [
3494
3483
  "yesNo"
3495
3484
  ],
3496
- "title": "During the sellers ownership, has any adjacent land or property been purchased by the seller?",
3485
+ "title": "During the seller's ownership, has any adjacent land or property been purchased by the seller?",
3497
3486
  "properties": {
3498
3487
  "yesNo": {
3499
3488
  "ta6Ref": "1.4.1"
@@ -3511,7 +3500,8 @@
3511
3500
  "yesNo": {
3512
3501
  "enum": [
3513
3502
  "No",
3514
- "Not applicable"
3503
+ "Not applicable",
3504
+ "Not known"
3515
3505
  ]
3516
3506
  }
3517
3507
  }
@@ -3587,7 +3577,7 @@
3587
3577
  "required": [
3588
3578
  "yesNo"
3589
3579
  ],
3590
- "title": "Do any drains, pipes or wires serving the property cross any neighbours property?",
3580
+ "title": "Do any drains, pipes or wires serving the property cross any neighbour's property?",
3591
3581
  "properties": {
3592
3582
  "yesNo": {
3593
3583
  "ta6Ref": "8.7.1"
@@ -3715,7 +3705,11 @@
3715
3705
  "ta6Ref": "12.1.2"
3716
3706
  },
3717
3707
  "attachments": {
3718
- "ta6Ref": "12.1.3"
3708
+ "ta6Ref": "12.1.3",
3709
+ "enum": [
3710
+ "Attached",
3711
+ "To follow"
3712
+ ]
3719
3713
  }
3720
3714
  },
3721
3715
  "required": [
@@ -3767,7 +3761,11 @@
3767
3761
  "ta6Ref": "12.2.2a.1"
3768
3762
  },
3769
3763
  "attachments": {
3770
- "ta6Ref": "12.2.2a.2"
3764
+ "ta6Ref": "12.2.2a.2",
3765
+ "enum": [
3766
+ "Attached",
3767
+ "To follow"
3768
+ ]
3771
3769
  }
3772
3770
  }
3773
3771
  }