@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
@@ -87,12 +87,44 @@
87
87
  "properties": {
88
88
  "typeOfLeasehold": {
89
89
  "ta7Ref": "1.1",
90
+ "discriminator": {
91
+ "propertyName": "leaseholdType"
92
+ },
93
+ "oneOf": [
94
+ {
95
+ "properties": {
96
+ "leaseholdType": {
97
+ "enum": [
98
+ "Flat",
99
+ "Shared ownership",
100
+ "Long leasehold house",
101
+ "Maisonette",
102
+ "Leasehold garage"
103
+ ]
104
+ }
105
+ }
106
+ },
107
+ {
108
+ "properties": {
109
+ "leaseholdType": {
110
+ "enum": [
111
+ "Other"
112
+ ]
113
+ }
114
+ }
115
+ }
116
+ ],
90
117
  "required": [
91
118
  "leaseholdType"
92
119
  ],
93
120
  "properties": {
94
121
  "leaseholdType": {
95
- "ta7Ref": "1.1.1"
122
+ "ta7Ref": "1.1.1",
123
+ "enum": [
124
+ "Flat",
125
+ "Shared ownership",
126
+ "Long leasehold house"
127
+ ]
96
128
  }
97
129
  }
98
130
  },
@@ -393,6 +425,30 @@
393
425
  },
394
426
  "ownershipAndManagement": {
395
427
  "ta7Ref": "2",
428
+ "discriminator": {
429
+ "propertyName": "hasTenantCompanyDissolved"
430
+ },
431
+ "oneOf": [
432
+ {
433
+ "properties": {
434
+ "hasTenantCompanyDissolved": {
435
+ "enum": [
436
+ "No",
437
+ "Not applicable"
438
+ ]
439
+ }
440
+ }
441
+ },
442
+ {
443
+ "properties": {
444
+ "hasTenantCompanyDissolved": {
445
+ "enum": [
446
+ "Yes"
447
+ ]
448
+ }
449
+ }
450
+ }
451
+ ],
396
452
  "required": [
397
453
  "freeholdOwner",
398
454
  "hasHeadlease",
@@ -487,11 +543,11 @@
487
543
  }
488
544
  }
489
545
  },
490
- "hasTenantCompanyDissolved": {
491
- "ta7Ref": "2.4"
492
- },
493
546
  "isManagingAgentEmployed": {
494
547
  "ta7Ref": "2.5"
548
+ },
549
+ "hasTenantCompanyDissolved": {
550
+ "ta7Ref": "2.4"
495
551
  }
496
552
  }
497
553
  },
@@ -843,7 +899,11 @@
843
899
  ],
844
900
  "properties": {
845
901
  "yesNo": {
846
- "ta7Ref": "8.1.1"
902
+ "ta7Ref": "8.1.1",
903
+ "enum": [
904
+ "Yes",
905
+ "No"
906
+ ]
847
907
  }
848
908
  }
849
909
  },
@@ -883,7 +943,11 @@
883
943
  ],
884
944
  "properties": {
885
945
  "yesNo": {
886
- "ta7Ref": "8.2.1"
946
+ "ta7Ref": "8.2.1",
947
+ "enum": [
948
+ "Yes",
949
+ "No"
950
+ ]
887
951
  }
888
952
  }
889
953
  }