@pdtf/schemas 3.0.0-4 → 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 +4 -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 +75 -66
- 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 +98 -375
- 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 +73 -98
- package/src/schemas/v3/skeleton.json +2 -2
- 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
|
@@ -452,14 +452,17 @@
|
|
|
452
452
|
"ntsRef": "B1.1",
|
|
453
453
|
"title": "About the property building",
|
|
454
454
|
"type": "object",
|
|
455
|
+
"ntsRequired": ["building"],
|
|
455
456
|
"properties": {
|
|
456
|
-
"
|
|
457
|
+
"building": {
|
|
457
458
|
"ntsRef": "B1.1.1",
|
|
458
|
-
"title": "
|
|
459
|
+
"title": "Building informatiom",
|
|
459
460
|
"type": "object",
|
|
460
|
-
"ntsRequired": ["
|
|
461
|
+
"ntsRequired": ["propertyType"],
|
|
461
462
|
"properties": {
|
|
462
|
-
"
|
|
463
|
+
"propertyType": {
|
|
464
|
+
"ntsRef": "B1.1.1.1",
|
|
465
|
+
"title": "Property type",
|
|
463
466
|
"type": "string",
|
|
464
467
|
"enum": [
|
|
465
468
|
"House",
|
|
@@ -472,12 +475,12 @@
|
|
|
472
475
|
}
|
|
473
476
|
},
|
|
474
477
|
"discriminator": {
|
|
475
|
-
"propertyName": "
|
|
478
|
+
"propertyName": "propertyType"
|
|
476
479
|
},
|
|
477
480
|
"oneOf": [
|
|
478
481
|
{
|
|
479
482
|
"properties": {
|
|
480
|
-
"
|
|
483
|
+
"propertyType": {
|
|
481
484
|
"enum": ["Other"]
|
|
482
485
|
},
|
|
483
486
|
"otherType": {
|
|
@@ -491,7 +494,7 @@
|
|
|
491
494
|
},
|
|
492
495
|
{
|
|
493
496
|
"properties": {
|
|
494
|
-
"
|
|
497
|
+
"propertyType": {
|
|
495
498
|
"enum": ["House", "Bungalow"]
|
|
496
499
|
},
|
|
497
500
|
"builtForm": {
|
|
@@ -506,11 +509,12 @@
|
|
|
506
509
|
"Other"
|
|
507
510
|
]
|
|
508
511
|
}
|
|
509
|
-
}
|
|
512
|
+
},
|
|
513
|
+
"ntsRequired": ["builtForm"]
|
|
510
514
|
},
|
|
511
515
|
{
|
|
512
516
|
"properties": {
|
|
513
|
-
"
|
|
517
|
+
"propertyType": {
|
|
514
518
|
"enum": ["Maisonette", "Flat"]
|
|
515
519
|
},
|
|
516
520
|
"builtForm": {
|
|
@@ -537,7 +541,11 @@
|
|
|
537
541
|
"type": "integer"
|
|
538
542
|
}
|
|
539
543
|
},
|
|
540
|
-
"ntsRequired": [
|
|
544
|
+
"ntsRequired": [
|
|
545
|
+
"builtForm",
|
|
546
|
+
"numberOfFloors",
|
|
547
|
+
"entranceFloor"
|
|
548
|
+
]
|
|
541
549
|
}
|
|
542
550
|
]
|
|
543
551
|
},
|
|
@@ -1195,9 +1203,11 @@
|
|
|
1195
1203
|
"items": {
|
|
1196
1204
|
"baspiRef": "A1.3.0",
|
|
1197
1205
|
"ntsRef": "A3.1",
|
|
1206
|
+
"ta7Ref": "1",
|
|
1198
1207
|
"title": "Ownership to be transferred",
|
|
1199
1208
|
"type": "object",
|
|
1200
1209
|
"baspiRequired": ["ownershipType"],
|
|
1210
|
+
"ta7Required": ["ownershipType"],
|
|
1201
1211
|
"ntsRequired": ["ownershipType"],
|
|
1202
1212
|
"properties": {
|
|
1203
1213
|
"titleNumber": {
|
|
@@ -1770,10 +1780,9 @@
|
|
|
1770
1780
|
"type": "object",
|
|
1771
1781
|
"properties": {
|
|
1772
1782
|
"isApplicableParty": {
|
|
1773
|
-
"
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
}
|
|
1783
|
+
"fme1Ref": "1.5.1",
|
|
1784
|
+
"type": "string",
|
|
1785
|
+
"enum": ["true", "false"]
|
|
1777
1786
|
}
|
|
1778
1787
|
},
|
|
1779
1788
|
"fme1Required": ["isApplicableParty"],
|
|
@@ -1814,10 +1823,8 @@
|
|
|
1814
1823
|
"type": "object",
|
|
1815
1824
|
"properties": {
|
|
1816
1825
|
"isApplicableParty": {
|
|
1817
|
-
"
|
|
1818
|
-
|
|
1819
|
-
"enum": ["true", "false"]
|
|
1820
|
-
}
|
|
1826
|
+
"type": "string",
|
|
1827
|
+
"enum": ["true", "false"]
|
|
1821
1828
|
}
|
|
1822
1829
|
},
|
|
1823
1830
|
"fme1Required": ["isApplicableParty"],
|
|
@@ -1858,10 +1865,8 @@
|
|
|
1858
1865
|
"type": "object",
|
|
1859
1866
|
"properties": {
|
|
1860
1867
|
"isApplicableParty": {
|
|
1861
|
-
"
|
|
1862
|
-
|
|
1863
|
-
"enum": ["true", "false"]
|
|
1864
|
-
}
|
|
1868
|
+
"type": "string",
|
|
1869
|
+
"enum": ["true", "false"]
|
|
1865
1870
|
}
|
|
1866
1871
|
},
|
|
1867
1872
|
"fme1Required": ["isApplicableParty"],
|
|
@@ -1902,10 +1907,8 @@
|
|
|
1902
1907
|
"type": "object",
|
|
1903
1908
|
"properties": {
|
|
1904
1909
|
"isApplicableParty": {
|
|
1905
|
-
"
|
|
1906
|
-
|
|
1907
|
-
"enum": ["true", "false"]
|
|
1908
|
-
}
|
|
1910
|
+
"type": "string",
|
|
1911
|
+
"enum": ["true", "false"]
|
|
1909
1912
|
}
|
|
1910
1913
|
},
|
|
1911
1914
|
"fme1Required": ["isApplicableParty"],
|
|
@@ -1945,10 +1948,8 @@
|
|
|
1945
1948
|
"type": "object",
|
|
1946
1949
|
"properties": {
|
|
1947
1950
|
"isApplicableParty": {
|
|
1948
|
-
"
|
|
1949
|
-
|
|
1950
|
-
"enum": ["true", "false"]
|
|
1951
|
-
}
|
|
1951
|
+
"type": "string",
|
|
1952
|
+
"enum": ["true", "false"]
|
|
1952
1953
|
}
|
|
1953
1954
|
},
|
|
1954
1955
|
"fme1Required": ["isApplicableParty"],
|
|
@@ -4358,6 +4359,7 @@
|
|
|
4358
4359
|
"type": "object",
|
|
4359
4360
|
"properties": {
|
|
4360
4361
|
"isApplicableParty": {
|
|
4362
|
+
"lpe1Ref": "1.6.1",
|
|
4361
4363
|
"type": "string",
|
|
4362
4364
|
"enum": ["true", "false"]
|
|
4363
4365
|
}
|
|
@@ -4402,10 +4404,8 @@
|
|
|
4402
4404
|
"type": "object",
|
|
4403
4405
|
"properties": {
|
|
4404
4406
|
"isApplicableParty": {
|
|
4405
|
-
"
|
|
4406
|
-
|
|
4407
|
-
"enum": ["true", "false"]
|
|
4408
|
-
}
|
|
4407
|
+
"type": "string",
|
|
4408
|
+
"enum": ["true", "false"]
|
|
4409
4409
|
}
|
|
4410
4410
|
},
|
|
4411
4411
|
"lpe1Required": [
|
|
@@ -4448,10 +4448,8 @@
|
|
|
4448
4448
|
"type": "object",
|
|
4449
4449
|
"properties": {
|
|
4450
4450
|
"isApplicableParty": {
|
|
4451
|
-
"
|
|
4452
|
-
|
|
4453
|
-
"enum": ["true", "false"]
|
|
4454
|
-
}
|
|
4451
|
+
"type": "string",
|
|
4452
|
+
"enum": ["true", "false"]
|
|
4455
4453
|
}
|
|
4456
4454
|
},
|
|
4457
4455
|
"lpe1Required": [
|
|
@@ -4493,10 +4491,8 @@
|
|
|
4493
4491
|
"type": "object",
|
|
4494
4492
|
"properties": {
|
|
4495
4493
|
"isApplicableParty": {
|
|
4496
|
-
"
|
|
4497
|
-
|
|
4498
|
-
"enum": ["true", "false"]
|
|
4499
|
-
}
|
|
4494
|
+
"type": "string",
|
|
4495
|
+
"enum": ["true", "false"]
|
|
4500
4496
|
}
|
|
4501
4497
|
},
|
|
4502
4498
|
"lpe1Required": [
|
|
@@ -4613,10 +4609,9 @@
|
|
|
4613
4609
|
"type": "object",
|
|
4614
4610
|
"properties": {
|
|
4615
4611
|
"isApplicableParty": {
|
|
4616
|
-
"
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
}
|
|
4612
|
+
"lpe1Ref": "1.5",
|
|
4613
|
+
"type": "string",
|
|
4614
|
+
"enum": ["true", "false"]
|
|
4620
4615
|
}
|
|
4621
4616
|
},
|
|
4622
4617
|
"lpe1Required": [
|
|
@@ -4659,10 +4654,8 @@
|
|
|
4659
4654
|
"type": "object",
|
|
4660
4655
|
"properties": {
|
|
4661
4656
|
"isApplicableParty": {
|
|
4662
|
-
"
|
|
4663
|
-
|
|
4664
|
-
"enum": ["true", "false"]
|
|
4665
|
-
}
|
|
4657
|
+
"type": "string",
|
|
4658
|
+
"enum": ["true", "false"]
|
|
4666
4659
|
}
|
|
4667
4660
|
},
|
|
4668
4661
|
"lpe1Required": [
|
|
@@ -4705,10 +4698,8 @@
|
|
|
4705
4698
|
"type": "object",
|
|
4706
4699
|
"properties": {
|
|
4707
4700
|
"isApplicableParty": {
|
|
4708
|
-
"
|
|
4709
|
-
|
|
4710
|
-
"enum": ["true", "false"]
|
|
4711
|
-
}
|
|
4701
|
+
"type": "string",
|
|
4702
|
+
"enum": ["true", "false"]
|
|
4712
4703
|
}
|
|
4713
4704
|
},
|
|
4714
4705
|
"lpe1Required": [
|
|
@@ -4751,10 +4742,8 @@
|
|
|
4751
4742
|
"type": "object",
|
|
4752
4743
|
"properties": {
|
|
4753
4744
|
"isApplicableParty": {
|
|
4754
|
-
"
|
|
4755
|
-
|
|
4756
|
-
"enum": ["true", "false"]
|
|
4757
|
-
}
|
|
4745
|
+
"type": "string",
|
|
4746
|
+
"enum": ["true", "false"]
|
|
4758
4747
|
}
|
|
4759
4748
|
},
|
|
4760
4749
|
"lpe1Required": [
|
|
@@ -4796,10 +4785,8 @@
|
|
|
4796
4785
|
"type": "object",
|
|
4797
4786
|
"properties": {
|
|
4798
4787
|
"isApplicableParty": {
|
|
4799
|
-
"
|
|
4800
|
-
|
|
4801
|
-
"enum": ["true", "false"]
|
|
4802
|
-
}
|
|
4788
|
+
"type": "string",
|
|
4789
|
+
"enum": ["true", "false"]
|
|
4803
4790
|
}
|
|
4804
4791
|
},
|
|
4805
4792
|
"lpe1Required": [
|
|
@@ -5224,6 +5211,7 @@
|
|
|
5224
5211
|
}
|
|
5225
5212
|
},
|
|
5226
5213
|
"lpe1Required": ["yesNo"],
|
|
5214
|
+
"ta7Required": ["yesNo"],
|
|
5227
5215
|
"discriminator": {
|
|
5228
5216
|
"propertyName": "yesNo"
|
|
5229
5217
|
},
|
|
@@ -5256,6 +5244,7 @@
|
|
|
5256
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?",
|
|
5257
5245
|
"type": "object",
|
|
5258
5246
|
"lpe1Required": ["isSellerAwareOfChanges"],
|
|
5247
|
+
"ta7Required": ["isSellerAwareOfChanges"],
|
|
5259
5248
|
"properties": {
|
|
5260
5249
|
"isSellerAwareOfChanges": {
|
|
5261
5250
|
"title": "",
|
|
@@ -5421,6 +5410,7 @@
|
|
|
5421
5410
|
}
|
|
5422
5411
|
},
|
|
5423
5412
|
"lpe1Required": ["yesNo"],
|
|
5413
|
+
"ta7Required": ["yesNo"],
|
|
5424
5414
|
"baspiRequired": ["yesNo"],
|
|
5425
5415
|
"ntsRequired": ["yesNo"],
|
|
5426
5416
|
"discriminator": {
|
|
@@ -5582,6 +5572,7 @@
|
|
|
5582
5572
|
}
|
|
5583
5573
|
},
|
|
5584
5574
|
"lpe1Required": ["yesNo"],
|
|
5575
|
+
"ta7Required": ["yesNo"],
|
|
5585
5576
|
"discriminator": {
|
|
5586
5577
|
"propertyName": "yesNo"
|
|
5587
5578
|
},
|
|
@@ -5616,6 +5607,7 @@
|
|
|
5616
5607
|
"title": "Who is responsible for managing the building?",
|
|
5617
5608
|
"type": "object",
|
|
5618
5609
|
"lpe1Required": ["buildingManagerType"],
|
|
5610
|
+
"ta7Required": ["buildingManagerType"],
|
|
5619
5611
|
"properties": {
|
|
5620
5612
|
"buildingManagerType": {
|
|
5621
5613
|
"title": "",
|
|
@@ -5677,6 +5669,7 @@
|
|
|
5677
5669
|
"serviceCharge": {
|
|
5678
5670
|
"baspiRef": "A1.5.1",
|
|
5679
5671
|
"lpe1Ref": "4",
|
|
5672
|
+
"ta7Ref": "5.4",
|
|
5680
5673
|
"ntsRef": "A3.5",
|
|
5681
5674
|
"title": "Service Charge",
|
|
5682
5675
|
"type": "object",
|
|
@@ -5689,6 +5682,9 @@
|
|
|
5689
5682
|
"ntsRequired": [
|
|
5690
5683
|
"sellerContributesToServiceCharge"
|
|
5691
5684
|
],
|
|
5685
|
+
"ta7Required": [
|
|
5686
|
+
"sellerContributesToServiceCharge"
|
|
5687
|
+
],
|
|
5692
5688
|
"properties": {
|
|
5693
5689
|
"sellerContributesToServiceCharge": {
|
|
5694
5690
|
"baspiRef": "A1.5.1.1",
|
|
@@ -5737,6 +5733,7 @@
|
|
|
5737
5733
|
}
|
|
5738
5734
|
},
|
|
5739
5735
|
"lpe1Required": ["yesNo"],
|
|
5736
|
+
"ta7Required": ["yesNo"],
|
|
5740
5737
|
"baspiRequired": ["yesNo"],
|
|
5741
5738
|
"discriminator": {
|
|
5742
5739
|
"propertyName": "yesNo"
|
|
@@ -5779,6 +5776,7 @@
|
|
|
5779
5776
|
}
|
|
5780
5777
|
},
|
|
5781
5778
|
"lpe1Required": ["yesNo"],
|
|
5779
|
+
"ta7Required": ["yesNo"],
|
|
5782
5780
|
"discriminator": {
|
|
5783
5781
|
"propertyName": "yesNo"
|
|
5784
5782
|
},
|
|
@@ -5818,6 +5816,7 @@
|
|
|
5818
5816
|
}
|
|
5819
5817
|
},
|
|
5820
5818
|
"lpe1Required": ["yesNo"],
|
|
5819
|
+
"ta7Required": ["yesNo"],
|
|
5821
5820
|
"discriminator": {
|
|
5822
5821
|
"propertyName": "yesNo"
|
|
5823
5822
|
},
|
|
@@ -5863,6 +5862,7 @@
|
|
|
5863
5862
|
}
|
|
5864
5863
|
},
|
|
5865
5864
|
"lpe1Required": ["yesNo"],
|
|
5865
|
+
"ta7Required": ["yesNo"],
|
|
5866
5866
|
"discriminator": {
|
|
5867
5867
|
"propertyName": "yesNo"
|
|
5868
5868
|
},
|
|
@@ -5901,6 +5901,7 @@
|
|
|
5901
5901
|
}
|
|
5902
5902
|
},
|
|
5903
5903
|
"lpe1Required": ["yesNo"],
|
|
5904
|
+
"ta7Required": ["yesNo"],
|
|
5904
5905
|
"discriminator": {
|
|
5905
5906
|
"propertyName": "yesNo"
|
|
5906
5907
|
},
|
|
@@ -6497,7 +6498,8 @@
|
|
|
6497
6498
|
]
|
|
6498
6499
|
}
|
|
6499
6500
|
],
|
|
6500
|
-
"lpe1Required": ["yesNoNotApplicable"]
|
|
6501
|
+
"lpe1Required": ["yesNoNotApplicable"],
|
|
6502
|
+
"ta7Required": ["yesNoNotApplicable"]
|
|
6501
6503
|
},
|
|
6502
6504
|
"landlordsCertificateServed": {
|
|
6503
6505
|
"lpe1Ref": "4.14",
|
|
@@ -7038,6 +7040,7 @@
|
|
|
7038
7040
|
"enum": ["Yes", "No"]
|
|
7039
7041
|
}
|
|
7040
7042
|
},
|
|
7043
|
+
"ta7Required": ["yesNo"],
|
|
7041
7044
|
"lpe1Required": ["yesNo"],
|
|
7042
7045
|
"discriminator": {
|
|
7043
7046
|
"propertyName": "yesNo"
|
|
@@ -7079,6 +7082,7 @@
|
|
|
7079
7082
|
}
|
|
7080
7083
|
},
|
|
7081
7084
|
"lpe1Required": ["yesNo"],
|
|
7085
|
+
"ta7Required": ["yesNo"],
|
|
7082
7086
|
"discriminator": {
|
|
7083
7087
|
"propertyName": "yesNo"
|
|
7084
7088
|
},
|
|
@@ -7276,6 +7280,7 @@
|
|
|
7276
7280
|
}
|
|
7277
7281
|
},
|
|
7278
7282
|
"lpe1Required": ["yesNo"],
|
|
7283
|
+
"ta7Required": ["yesNo"],
|
|
7279
7284
|
"discriminator": {
|
|
7280
7285
|
"propertyName": "yesNo"
|
|
7281
7286
|
},
|
|
@@ -8205,6 +8210,7 @@
|
|
|
8205
8210
|
}
|
|
8206
8211
|
},
|
|
8207
8212
|
"baspiRequired": ["yesNo"],
|
|
8213
|
+
"ntsRequired": ["yesNo"],
|
|
8208
8214
|
"ta6Required": ["yesNo"],
|
|
8209
8215
|
"discriminator": {
|
|
8210
8216
|
"propertyName": "yesNo"
|
|
@@ -18531,7 +18537,7 @@
|
|
|
18531
18537
|
},
|
|
18532
18538
|
"details": {
|
|
18533
18539
|
"ntsRef": "3.8.2",
|
|
18534
|
-
"title": "
|
|
18540
|
+
"title": "Details",
|
|
18535
18541
|
"type": "string"
|
|
18536
18542
|
},
|
|
18537
18543
|
"supplier": {
|
|
@@ -19018,6 +19024,7 @@
|
|
|
19018
19024
|
"ntsRequired": ["yesNo"],
|
|
19019
19025
|
"properties": {
|
|
19020
19026
|
"yesNo": {
|
|
19027
|
+
"ntsRef": "A3.3.2.1",
|
|
19021
19028
|
"baspiRef": "A7.1.0.11.1",
|
|
19022
19029
|
"ta6Ref": "12.4a1",
|
|
19023
19030
|
"type": "string",
|
|
@@ -20007,6 +20014,7 @@
|
|
|
20007
20014
|
"title": "What other heating features does the property have?",
|
|
20008
20015
|
"type": "array",
|
|
20009
20016
|
"items": {
|
|
20017
|
+
"ntsRef": "B3.4.2.1",
|
|
20010
20018
|
"type": "string",
|
|
20011
20019
|
"enum": [
|
|
20012
20020
|
"Air Conditioning",
|
|
@@ -23670,8 +23678,11 @@
|
|
|
23670
23678
|
"solarPanels": {
|
|
23671
23679
|
"baspiRef": "B4.3",
|
|
23672
23680
|
"piqRef": "B4.4",
|
|
23681
|
+
"ta6Ref": "4.6",
|
|
23673
23682
|
"title": "Solar or photovoltaic panels",
|
|
23674
23683
|
"type": "object",
|
|
23684
|
+
"baspiRequired": ["hasSolarPanels"],
|
|
23685
|
+
"ta6Required": ["hasSolarPanels"],
|
|
23675
23686
|
"properties": {
|
|
23676
23687
|
"hasSolarPanels": {
|
|
23677
23688
|
"baspiRef": "B4.3.0",
|
|
@@ -23683,8 +23694,6 @@
|
|
|
23683
23694
|
"enum": ["Yes", "No"]
|
|
23684
23695
|
}
|
|
23685
23696
|
},
|
|
23686
|
-
"baspiRequired": ["hasSolarPanels"],
|
|
23687
|
-
"ta6Required": ["hasSolarPanels"],
|
|
23688
23697
|
"discriminator": {
|
|
23689
23698
|
"propertyName": "hasSolarPanels"
|
|
23690
23699
|
},
|