@pdtf/schemas 3.0.0-5 → 3.0.0-6
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/index.js +14 -13
- package/package.json +1 -1
- package/src/examples/v3/exampleTransaction.json +1 -0
- package/src/schemas/v2/overlays/baspi.json +510 -2331
- package/src/schemas/v2/overlays/con29DW.json +36 -125
- package/src/schemas/v2/overlays/con29R.json +5 -143
- package/src/schemas/v2/overlays/fme1.json +48 -233
- package/src/schemas/v2/overlays/lpe1.json +75 -367
- package/src/schemas/v2/overlays/nts.json +17 -103
- package/src/schemas/v2/overlays/piq.json +146 -693
- package/src/schemas/v2/overlays/rds.json +50 -316
- package/src/schemas/v2/overlays/ta10.json +540 -1755
- package/src/schemas/v2/overlays/ta6.json +241 -1193
- package/src/schemas/v2/overlays/ta7.json +106 -440
- package/src/schemas/v3/combined.json +58 -56
- package/src/schemas/v3/overlays/baspi.json +507 -2288
- package/src/schemas/v3/overlays/con29DW.json +36 -125
- package/src/schemas/v3/overlays/con29R.json +5 -143
- package/src/schemas/v3/overlays/fme1.json +53 -233
- package/src/schemas/v3/overlays/lpe1.json +85 -367
- package/src/schemas/v3/overlays/nts.json +81 -367
- package/src/schemas/v3/overlays/piq.json +146 -686
- package/src/schemas/v3/overlays/rds.json +48 -316
- package/src/schemas/v3/overlays/ta10.json +540 -1755
- package/src/schemas/v3/overlays/ta6.json +263 -1145
- package/src/schemas/v3/overlays/ta7.json +220 -462
- package/src/schemas/v3/pdtf-transaction.json +67 -92
- package/src/tests/v3/transactionSchema.test.js +27 -16
- package/src/tests/v3/verifiedClaimsValidator.test.js +2 -2
- package/src/utils/extractOverlay.js +11 -27
- package/src/tests/v2/transactionSchema.test.js +0 -361
- package/src/tests/v2/verifiedClaimsValidator.test.js +0 -128
|
@@ -461,6 +461,8 @@
|
|
|
461
461
|
"ntsRequired": ["propertyType"],
|
|
462
462
|
"properties": {
|
|
463
463
|
"propertyType": {
|
|
464
|
+
"ntsRef": "B1.1.1.1",
|
|
465
|
+
"title": "Property type",
|
|
464
466
|
"type": "string",
|
|
465
467
|
"enum": [
|
|
466
468
|
"House",
|
|
@@ -1201,9 +1203,11 @@
|
|
|
1201
1203
|
"items": {
|
|
1202
1204
|
"baspiRef": "A1.3.0",
|
|
1203
1205
|
"ntsRef": "A3.1",
|
|
1206
|
+
"ta7Ref": "1",
|
|
1204
1207
|
"title": "Ownership to be transferred",
|
|
1205
1208
|
"type": "object",
|
|
1206
1209
|
"baspiRequired": ["ownershipType"],
|
|
1210
|
+
"ta7Required": ["ownershipType"],
|
|
1207
1211
|
"ntsRequired": ["ownershipType"],
|
|
1208
1212
|
"properties": {
|
|
1209
1213
|
"titleNumber": {
|
|
@@ -1776,10 +1780,9 @@
|
|
|
1776
1780
|
"type": "object",
|
|
1777
1781
|
"properties": {
|
|
1778
1782
|
"isApplicableParty": {
|
|
1779
|
-
"
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
}
|
|
1783
|
+
"fme1Ref": "1.5.1",
|
|
1784
|
+
"type": "string",
|
|
1785
|
+
"enum": ["true", "false"]
|
|
1783
1786
|
}
|
|
1784
1787
|
},
|
|
1785
1788
|
"fme1Required": ["isApplicableParty"],
|
|
@@ -1820,10 +1823,8 @@
|
|
|
1820
1823
|
"type": "object",
|
|
1821
1824
|
"properties": {
|
|
1822
1825
|
"isApplicableParty": {
|
|
1823
|
-
"
|
|
1824
|
-
|
|
1825
|
-
"enum": ["true", "false"]
|
|
1826
|
-
}
|
|
1826
|
+
"type": "string",
|
|
1827
|
+
"enum": ["true", "false"]
|
|
1827
1828
|
}
|
|
1828
1829
|
},
|
|
1829
1830
|
"fme1Required": ["isApplicableParty"],
|
|
@@ -1864,10 +1865,8 @@
|
|
|
1864
1865
|
"type": "object",
|
|
1865
1866
|
"properties": {
|
|
1866
1867
|
"isApplicableParty": {
|
|
1867
|
-
"
|
|
1868
|
-
|
|
1869
|
-
"enum": ["true", "false"]
|
|
1870
|
-
}
|
|
1868
|
+
"type": "string",
|
|
1869
|
+
"enum": ["true", "false"]
|
|
1871
1870
|
}
|
|
1872
1871
|
},
|
|
1873
1872
|
"fme1Required": ["isApplicableParty"],
|
|
@@ -1908,10 +1907,8 @@
|
|
|
1908
1907
|
"type": "object",
|
|
1909
1908
|
"properties": {
|
|
1910
1909
|
"isApplicableParty": {
|
|
1911
|
-
"
|
|
1912
|
-
|
|
1913
|
-
"enum": ["true", "false"]
|
|
1914
|
-
}
|
|
1910
|
+
"type": "string",
|
|
1911
|
+
"enum": ["true", "false"]
|
|
1915
1912
|
}
|
|
1916
1913
|
},
|
|
1917
1914
|
"fme1Required": ["isApplicableParty"],
|
|
@@ -1951,10 +1948,8 @@
|
|
|
1951
1948
|
"type": "object",
|
|
1952
1949
|
"properties": {
|
|
1953
1950
|
"isApplicableParty": {
|
|
1954
|
-
"
|
|
1955
|
-
|
|
1956
|
-
"enum": ["true", "false"]
|
|
1957
|
-
}
|
|
1951
|
+
"type": "string",
|
|
1952
|
+
"enum": ["true", "false"]
|
|
1958
1953
|
}
|
|
1959
1954
|
},
|
|
1960
1955
|
"fme1Required": ["isApplicableParty"],
|
|
@@ -4364,6 +4359,7 @@
|
|
|
4364
4359
|
"type": "object",
|
|
4365
4360
|
"properties": {
|
|
4366
4361
|
"isApplicableParty": {
|
|
4362
|
+
"lpe1Ref": "1.6.1",
|
|
4367
4363
|
"type": "string",
|
|
4368
4364
|
"enum": ["true", "false"]
|
|
4369
4365
|
}
|
|
@@ -4408,10 +4404,8 @@
|
|
|
4408
4404
|
"type": "object",
|
|
4409
4405
|
"properties": {
|
|
4410
4406
|
"isApplicableParty": {
|
|
4411
|
-
"
|
|
4412
|
-
|
|
4413
|
-
"enum": ["true", "false"]
|
|
4414
|
-
}
|
|
4407
|
+
"type": "string",
|
|
4408
|
+
"enum": ["true", "false"]
|
|
4415
4409
|
}
|
|
4416
4410
|
},
|
|
4417
4411
|
"lpe1Required": [
|
|
@@ -4454,10 +4448,8 @@
|
|
|
4454
4448
|
"type": "object",
|
|
4455
4449
|
"properties": {
|
|
4456
4450
|
"isApplicableParty": {
|
|
4457
|
-
"
|
|
4458
|
-
|
|
4459
|
-
"enum": ["true", "false"]
|
|
4460
|
-
}
|
|
4451
|
+
"type": "string",
|
|
4452
|
+
"enum": ["true", "false"]
|
|
4461
4453
|
}
|
|
4462
4454
|
},
|
|
4463
4455
|
"lpe1Required": [
|
|
@@ -4499,10 +4491,8 @@
|
|
|
4499
4491
|
"type": "object",
|
|
4500
4492
|
"properties": {
|
|
4501
4493
|
"isApplicableParty": {
|
|
4502
|
-
"
|
|
4503
|
-
|
|
4504
|
-
"enum": ["true", "false"]
|
|
4505
|
-
}
|
|
4494
|
+
"type": "string",
|
|
4495
|
+
"enum": ["true", "false"]
|
|
4506
4496
|
}
|
|
4507
4497
|
},
|
|
4508
4498
|
"lpe1Required": [
|
|
@@ -4619,10 +4609,9 @@
|
|
|
4619
4609
|
"type": "object",
|
|
4620
4610
|
"properties": {
|
|
4621
4611
|
"isApplicableParty": {
|
|
4622
|
-
"
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
}
|
|
4612
|
+
"lpe1Ref": "1.5",
|
|
4613
|
+
"type": "string",
|
|
4614
|
+
"enum": ["true", "false"]
|
|
4626
4615
|
}
|
|
4627
4616
|
},
|
|
4628
4617
|
"lpe1Required": [
|
|
@@ -4665,10 +4654,8 @@
|
|
|
4665
4654
|
"type": "object",
|
|
4666
4655
|
"properties": {
|
|
4667
4656
|
"isApplicableParty": {
|
|
4668
|
-
"
|
|
4669
|
-
|
|
4670
|
-
"enum": ["true", "false"]
|
|
4671
|
-
}
|
|
4657
|
+
"type": "string",
|
|
4658
|
+
"enum": ["true", "false"]
|
|
4672
4659
|
}
|
|
4673
4660
|
},
|
|
4674
4661
|
"lpe1Required": [
|
|
@@ -4711,10 +4698,8 @@
|
|
|
4711
4698
|
"type": "object",
|
|
4712
4699
|
"properties": {
|
|
4713
4700
|
"isApplicableParty": {
|
|
4714
|
-
"
|
|
4715
|
-
|
|
4716
|
-
"enum": ["true", "false"]
|
|
4717
|
-
}
|
|
4701
|
+
"type": "string",
|
|
4702
|
+
"enum": ["true", "false"]
|
|
4718
4703
|
}
|
|
4719
4704
|
},
|
|
4720
4705
|
"lpe1Required": [
|
|
@@ -4757,10 +4742,8 @@
|
|
|
4757
4742
|
"type": "object",
|
|
4758
4743
|
"properties": {
|
|
4759
4744
|
"isApplicableParty": {
|
|
4760
|
-
"
|
|
4761
|
-
|
|
4762
|
-
"enum": ["true", "false"]
|
|
4763
|
-
}
|
|
4745
|
+
"type": "string",
|
|
4746
|
+
"enum": ["true", "false"]
|
|
4764
4747
|
}
|
|
4765
4748
|
},
|
|
4766
4749
|
"lpe1Required": [
|
|
@@ -4802,10 +4785,8 @@
|
|
|
4802
4785
|
"type": "object",
|
|
4803
4786
|
"properties": {
|
|
4804
4787
|
"isApplicableParty": {
|
|
4805
|
-
"
|
|
4806
|
-
|
|
4807
|
-
"enum": ["true", "false"]
|
|
4808
|
-
}
|
|
4788
|
+
"type": "string",
|
|
4789
|
+
"enum": ["true", "false"]
|
|
4809
4790
|
}
|
|
4810
4791
|
},
|
|
4811
4792
|
"lpe1Required": [
|
|
@@ -5230,6 +5211,7 @@
|
|
|
5230
5211
|
}
|
|
5231
5212
|
},
|
|
5232
5213
|
"lpe1Required": ["yesNo"],
|
|
5214
|
+
"ta7Required": ["yesNo"],
|
|
5233
5215
|
"discriminator": {
|
|
5234
5216
|
"propertyName": "yesNo"
|
|
5235
5217
|
},
|
|
@@ -5262,6 +5244,7 @@
|
|
|
5262
5244
|
"title": "Is the seller aware of any changes in the terms of the lease or of the landlord giving any consents under the lease?",
|
|
5263
5245
|
"type": "object",
|
|
5264
5246
|
"lpe1Required": ["isSellerAwareOfChanges"],
|
|
5247
|
+
"ta7Required": ["isSellerAwareOfChanges"],
|
|
5265
5248
|
"properties": {
|
|
5266
5249
|
"isSellerAwareOfChanges": {
|
|
5267
5250
|
"title": "",
|
|
@@ -5427,6 +5410,7 @@
|
|
|
5427
5410
|
}
|
|
5428
5411
|
},
|
|
5429
5412
|
"lpe1Required": ["yesNo"],
|
|
5413
|
+
"ta7Required": ["yesNo"],
|
|
5430
5414
|
"baspiRequired": ["yesNo"],
|
|
5431
5415
|
"ntsRequired": ["yesNo"],
|
|
5432
5416
|
"discriminator": {
|
|
@@ -5588,6 +5572,7 @@
|
|
|
5588
5572
|
}
|
|
5589
5573
|
},
|
|
5590
5574
|
"lpe1Required": ["yesNo"],
|
|
5575
|
+
"ta7Required": ["yesNo"],
|
|
5591
5576
|
"discriminator": {
|
|
5592
5577
|
"propertyName": "yesNo"
|
|
5593
5578
|
},
|
|
@@ -5622,6 +5607,7 @@
|
|
|
5622
5607
|
"title": "Who is responsible for managing the building?",
|
|
5623
5608
|
"type": "object",
|
|
5624
5609
|
"lpe1Required": ["buildingManagerType"],
|
|
5610
|
+
"ta7Required": ["buildingManagerType"],
|
|
5625
5611
|
"properties": {
|
|
5626
5612
|
"buildingManagerType": {
|
|
5627
5613
|
"title": "",
|
|
@@ -5683,6 +5669,7 @@
|
|
|
5683
5669
|
"serviceCharge": {
|
|
5684
5670
|
"baspiRef": "A1.5.1",
|
|
5685
5671
|
"lpe1Ref": "4",
|
|
5672
|
+
"ta7Ref": "5.4",
|
|
5686
5673
|
"ntsRef": "A3.5",
|
|
5687
5674
|
"title": "Service Charge",
|
|
5688
5675
|
"type": "object",
|
|
@@ -5695,6 +5682,9 @@
|
|
|
5695
5682
|
"ntsRequired": [
|
|
5696
5683
|
"sellerContributesToServiceCharge"
|
|
5697
5684
|
],
|
|
5685
|
+
"ta7Required": [
|
|
5686
|
+
"sellerContributesToServiceCharge"
|
|
5687
|
+
],
|
|
5698
5688
|
"properties": {
|
|
5699
5689
|
"sellerContributesToServiceCharge": {
|
|
5700
5690
|
"baspiRef": "A1.5.1.1",
|
|
@@ -5743,6 +5733,7 @@
|
|
|
5743
5733
|
}
|
|
5744
5734
|
},
|
|
5745
5735
|
"lpe1Required": ["yesNo"],
|
|
5736
|
+
"ta7Required": ["yesNo"],
|
|
5746
5737
|
"baspiRequired": ["yesNo"],
|
|
5747
5738
|
"discriminator": {
|
|
5748
5739
|
"propertyName": "yesNo"
|
|
@@ -5785,6 +5776,7 @@
|
|
|
5785
5776
|
}
|
|
5786
5777
|
},
|
|
5787
5778
|
"lpe1Required": ["yesNo"],
|
|
5779
|
+
"ta7Required": ["yesNo"],
|
|
5788
5780
|
"discriminator": {
|
|
5789
5781
|
"propertyName": "yesNo"
|
|
5790
5782
|
},
|
|
@@ -5824,6 +5816,7 @@
|
|
|
5824
5816
|
}
|
|
5825
5817
|
},
|
|
5826
5818
|
"lpe1Required": ["yesNo"],
|
|
5819
|
+
"ta7Required": ["yesNo"],
|
|
5827
5820
|
"discriminator": {
|
|
5828
5821
|
"propertyName": "yesNo"
|
|
5829
5822
|
},
|
|
@@ -5869,6 +5862,7 @@
|
|
|
5869
5862
|
}
|
|
5870
5863
|
},
|
|
5871
5864
|
"lpe1Required": ["yesNo"],
|
|
5865
|
+
"ta7Required": ["yesNo"],
|
|
5872
5866
|
"discriminator": {
|
|
5873
5867
|
"propertyName": "yesNo"
|
|
5874
5868
|
},
|
|
@@ -5907,6 +5901,7 @@
|
|
|
5907
5901
|
}
|
|
5908
5902
|
},
|
|
5909
5903
|
"lpe1Required": ["yesNo"],
|
|
5904
|
+
"ta7Required": ["yesNo"],
|
|
5910
5905
|
"discriminator": {
|
|
5911
5906
|
"propertyName": "yesNo"
|
|
5912
5907
|
},
|
|
@@ -6503,7 +6498,8 @@
|
|
|
6503
6498
|
]
|
|
6504
6499
|
}
|
|
6505
6500
|
],
|
|
6506
|
-
"lpe1Required": ["yesNoNotApplicable"]
|
|
6501
|
+
"lpe1Required": ["yesNoNotApplicable"],
|
|
6502
|
+
"ta7Required": ["yesNoNotApplicable"]
|
|
6507
6503
|
},
|
|
6508
6504
|
"landlordsCertificateServed": {
|
|
6509
6505
|
"lpe1Ref": "4.14",
|
|
@@ -7044,6 +7040,7 @@
|
|
|
7044
7040
|
"enum": ["Yes", "No"]
|
|
7045
7041
|
}
|
|
7046
7042
|
},
|
|
7043
|
+
"ta7Required": ["yesNo"],
|
|
7047
7044
|
"lpe1Required": ["yesNo"],
|
|
7048
7045
|
"discriminator": {
|
|
7049
7046
|
"propertyName": "yesNo"
|
|
@@ -7085,6 +7082,7 @@
|
|
|
7085
7082
|
}
|
|
7086
7083
|
},
|
|
7087
7084
|
"lpe1Required": ["yesNo"],
|
|
7085
|
+
"ta7Required": ["yesNo"],
|
|
7088
7086
|
"discriminator": {
|
|
7089
7087
|
"propertyName": "yesNo"
|
|
7090
7088
|
},
|
|
@@ -7282,6 +7280,7 @@
|
|
|
7282
7280
|
}
|
|
7283
7281
|
},
|
|
7284
7282
|
"lpe1Required": ["yesNo"],
|
|
7283
|
+
"ta7Required": ["yesNo"],
|
|
7285
7284
|
"discriminator": {
|
|
7286
7285
|
"propertyName": "yesNo"
|
|
7287
7286
|
},
|
|
@@ -18538,7 +18537,7 @@
|
|
|
18538
18537
|
},
|
|
18539
18538
|
"details": {
|
|
18540
18539
|
"ntsRef": "3.8.2",
|
|
18541
|
-
"title": "
|
|
18540
|
+
"title": "Details",
|
|
18542
18541
|
"type": "string"
|
|
18543
18542
|
},
|
|
18544
18543
|
"supplier": {
|
|
@@ -19025,6 +19024,7 @@
|
|
|
19025
19024
|
"ntsRequired": ["yesNo"],
|
|
19026
19025
|
"properties": {
|
|
19027
19026
|
"yesNo": {
|
|
19027
|
+
"ntsRef": "A3.3.2.1",
|
|
19028
19028
|
"baspiRef": "A7.1.0.11.1",
|
|
19029
19029
|
"ta6Ref": "12.4a1",
|
|
19030
19030
|
"type": "string",
|
|
@@ -20014,6 +20014,7 @@
|
|
|
20014
20014
|
"title": "What other heating features does the property have?",
|
|
20015
20015
|
"type": "array",
|
|
20016
20016
|
"items": {
|
|
20017
|
+
"ntsRef": "B3.4.2.1",
|
|
20017
20018
|
"type": "string",
|
|
20018
20019
|
"enum": [
|
|
20019
20020
|
"Air Conditioning",
|
|
@@ -23677,8 +23678,11 @@
|
|
|
23677
23678
|
"solarPanels": {
|
|
23678
23679
|
"baspiRef": "B4.3",
|
|
23679
23680
|
"piqRef": "B4.4",
|
|
23681
|
+
"ta6Ref": "4.6",
|
|
23680
23682
|
"title": "Solar or photovoltaic panels",
|
|
23681
23683
|
"type": "object",
|
|
23684
|
+
"baspiRequired": ["hasSolarPanels"],
|
|
23685
|
+
"ta6Required": ["hasSolarPanels"],
|
|
23682
23686
|
"properties": {
|
|
23683
23687
|
"hasSolarPanels": {
|
|
23684
23688
|
"baspiRef": "B4.3.0",
|
|
@@ -23690,8 +23694,6 @@
|
|
|
23690
23694
|
"enum": ["Yes", "No"]
|
|
23691
23695
|
}
|
|
23692
23696
|
},
|
|
23693
|
-
"baspiRequired": ["hasSolarPanels"],
|
|
23694
|
-
"ta6Required": ["hasSolarPanels"],
|
|
23695
23697
|
"discriminator": {
|
|
23696
23698
|
"propertyName": "hasSolarPanels"
|
|
23697
23699
|
},
|