@pdtf/schemas 3.5.1-1 → 3.5.1-3
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/.claude/settings.local.json +12 -2
- package/package.json +1 -1
- package/src/examples/v3/exampleTransaction.json +4 -0
- package/src/schemas/v3/combined.json +121 -18
- package/src/schemas/v3/compactSkeleton.txt +751 -1
- package/src/schemas/v3/overlays/baspi4.json +9 -1
- package/src/schemas/v3/overlays/baspi5.json +9 -1
- package/src/schemas/v3/overlays/lpe1.json +0 -57
- package/src/schemas/v3/overlays/piq.json +9 -1
- package/src/schemas/v3/overlays/rds.json +1 -0
- package/src/schemas/v3/overlays/ta6.json +42 -1
- package/src/schemas/v3/overlays/ta7.json +46 -3
- package/src/schemas/v3/pdtf-transaction.json +145 -5
- package/src/schemas/v3/skeleton.json +863 -2
- package/src/tests/v3/offers.test.js +826 -0
- package/src/tests/v3/transactionSchema.test.js +79 -60
|
@@ -20,8 +20,18 @@
|
|
|
20
20
|
"WebFetch(domain:github.com)",
|
|
21
21
|
"Bash(tree:*)",
|
|
22
22
|
"Bash(sed:*)",
|
|
23
|
-
"Bash(find:*)"
|
|
23
|
+
"Bash(find:*)",
|
|
24
|
+
"Bash(chmod:*)",
|
|
25
|
+
"Bash(git rev-parse:*)",
|
|
26
|
+
"Bash(/dev/null)",
|
|
27
|
+
"Bash(git log:*)",
|
|
28
|
+
"Bash(for file in src/schemas/v2/overlays/*.json)",
|
|
29
|
+
"Bash(done)",
|
|
30
|
+
"Bash(while read file)",
|
|
31
|
+
"Bash(for:*)",
|
|
32
|
+
"Bash(do echo \"=== $file ===\")",
|
|
33
|
+
"Bash(do echo \"$file:\")"
|
|
24
34
|
],
|
|
25
35
|
"deny": []
|
|
26
36
|
}
|
|
27
|
-
}
|
|
37
|
+
}
|
package/package.json
CHANGED
|
@@ -525,6 +525,10 @@
|
|
|
525
525
|
},
|
|
526
526
|
"environmentalIssues": {
|
|
527
527
|
"flooding": {
|
|
528
|
+
"floodRiskReport": {
|
|
529
|
+
"hasReportBeenPrepared": "Yes",
|
|
530
|
+
"attachments": "Attached"
|
|
531
|
+
},
|
|
528
532
|
"floodRisk": {
|
|
529
533
|
"riskIndicator": "Yes",
|
|
530
534
|
"summary": "Likely to flood from surface water"
|
|
@@ -259,7 +259,6 @@
|
|
|
259
259
|
"properties": {
|
|
260
260
|
"role": {
|
|
261
261
|
"enum": [
|
|
262
|
-
"Buyer",
|
|
263
262
|
"Seller's Conveyancer",
|
|
264
263
|
"Prospective Buyer",
|
|
265
264
|
"Buyer's Conveyancer",
|
|
@@ -274,6 +273,18 @@
|
|
|
274
273
|
}
|
|
275
274
|
}
|
|
276
275
|
},
|
|
276
|
+
{
|
|
277
|
+
"properties": {
|
|
278
|
+
"role": {
|
|
279
|
+
"enum": ["Buyer"]
|
|
280
|
+
},
|
|
281
|
+
"offerId": {
|
|
282
|
+
"title": "Reference to an offer in the offers object",
|
|
283
|
+
"type": "string",
|
|
284
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
277
288
|
{
|
|
278
289
|
"properties": {
|
|
279
290
|
"role": {
|
|
@@ -6625,7 +6636,6 @@
|
|
|
6625
6636
|
"enum": ["Yes", "No"]
|
|
6626
6637
|
}
|
|
6627
6638
|
},
|
|
6628
|
-
"lpe1Required": ["yesNo"],
|
|
6629
6639
|
"ta7Required": ["yesNo"],
|
|
6630
6640
|
"discriminator": {
|
|
6631
6641
|
"propertyName": "yesNo"
|
|
@@ -6649,7 +6659,6 @@
|
|
|
6649
6659
|
"type": "string"
|
|
6650
6660
|
}
|
|
6651
6661
|
},
|
|
6652
|
-
"lpe1Required": ["details"],
|
|
6653
6662
|
"ta7Required": ["details"]
|
|
6654
6663
|
}
|
|
6655
6664
|
]
|
|
@@ -6666,7 +6675,6 @@
|
|
|
6666
6675
|
"enum": ["Yes", "No"]
|
|
6667
6676
|
}
|
|
6668
6677
|
},
|
|
6669
|
-
"lpe1Required": ["yesNo"],
|
|
6670
6678
|
"ta7Required": ["yesNo"],
|
|
6671
6679
|
"discriminator": {
|
|
6672
6680
|
"propertyName": "yesNo"
|
|
@@ -6690,15 +6698,48 @@
|
|
|
6690
6698
|
"type": "string"
|
|
6691
6699
|
}
|
|
6692
6700
|
},
|
|
6693
|
-
"
|
|
6701
|
+
"ta7Required": ["details"]
|
|
6694
6702
|
}
|
|
6695
6703
|
]
|
|
6696
6704
|
},
|
|
6697
6705
|
"dangerousCladdingOrDefects": {
|
|
6698
6706
|
"ta7Ref": "5.8",
|
|
6699
6707
|
"title": "Does the seller know of the existence or suspected existence in the building of dangerous cladding or any other defects that create a building safety risk?",
|
|
6700
|
-
"type": "
|
|
6701
|
-
"
|
|
6708
|
+
"type": "object",
|
|
6709
|
+
"properties": {
|
|
6710
|
+
"yesNo": {
|
|
6711
|
+
"ta7Ref": "5.8.1",
|
|
6712
|
+
"type": "string",
|
|
6713
|
+
"title": "",
|
|
6714
|
+
"enum": ["Yes", "No"]
|
|
6715
|
+
}
|
|
6716
|
+
},
|
|
6717
|
+
"ta7Required": ["yesNo"],
|
|
6718
|
+
"discriminator": {
|
|
6719
|
+
"propertyName": "yesNo"
|
|
6720
|
+
},
|
|
6721
|
+
"oneOf": [
|
|
6722
|
+
{
|
|
6723
|
+
"properties": {
|
|
6724
|
+
"yesNo": {
|
|
6725
|
+
"enum": ["No"]
|
|
6726
|
+
}
|
|
6727
|
+
}
|
|
6728
|
+
},
|
|
6729
|
+
{
|
|
6730
|
+
"properties": {
|
|
6731
|
+
"yesNo": {
|
|
6732
|
+
"enum": ["Yes"]
|
|
6733
|
+
},
|
|
6734
|
+
"details": {
|
|
6735
|
+
"ta7Ref": "5.8.2",
|
|
6736
|
+
"title": "Please give details:",
|
|
6737
|
+
"type": "string"
|
|
6738
|
+
}
|
|
6739
|
+
},
|
|
6740
|
+
"ta7Required": ["details"]
|
|
6741
|
+
}
|
|
6742
|
+
]
|
|
6702
6743
|
},
|
|
6703
6744
|
"difficultyInCollectingServiceCharge": {
|
|
6704
6745
|
"ta7Ref": "5.9",
|
|
@@ -6712,7 +6753,6 @@
|
|
|
6712
6753
|
"enum": ["Yes", "No"]
|
|
6713
6754
|
}
|
|
6714
6755
|
},
|
|
6715
|
-
"lpe1Required": ["yesNo"],
|
|
6716
6756
|
"ta7Required": ["yesNo"],
|
|
6717
6757
|
"discriminator": {
|
|
6718
6758
|
"propertyName": "yesNo"
|
|
@@ -6736,7 +6776,6 @@
|
|
|
6736
6776
|
"type": "string"
|
|
6737
6777
|
}
|
|
6738
6778
|
},
|
|
6739
|
-
"lpe1Required": ["details"],
|
|
6740
6779
|
"ta7Required": ["details"]
|
|
6741
6780
|
}
|
|
6742
6781
|
]
|
|
@@ -6753,7 +6792,6 @@
|
|
|
6753
6792
|
"enum": ["Yes", "No"]
|
|
6754
6793
|
}
|
|
6755
6794
|
},
|
|
6756
|
-
"lpe1Required": ["yesNo"],
|
|
6757
6795
|
"ta7Required": ["yesNo"],
|
|
6758
6796
|
"discriminator": {
|
|
6759
6797
|
"propertyName": "yesNo"
|
|
@@ -6777,7 +6815,7 @@
|
|
|
6777
6815
|
"type": "string"
|
|
6778
6816
|
}
|
|
6779
6817
|
},
|
|
6780
|
-
"
|
|
6818
|
+
"ta7Required": ["details"]
|
|
6781
6819
|
}
|
|
6782
6820
|
]
|
|
6783
6821
|
},
|
|
@@ -7337,11 +7375,6 @@
|
|
|
7337
7375
|
"lpe1Required": [
|
|
7338
7376
|
"annualServiceCharge",
|
|
7339
7377
|
"largeAdditionalExpense",
|
|
7340
|
-
"problemInServiceChargeLevel",
|
|
7341
|
-
"serviceChargeChallenged",
|
|
7342
|
-
"dangerousCladdingOrDefects",
|
|
7343
|
-
"difficultyInCollectingServiceCharge",
|
|
7344
|
-
"serviceChargeOwed",
|
|
7345
7378
|
"propertiesContributingToMaintenanceOfManagedArea",
|
|
7346
7379
|
"adHocExpenses",
|
|
7347
7380
|
"serviceChargePaidUpToDate",
|
|
@@ -22519,7 +22552,7 @@
|
|
|
22519
22552
|
"baspi4Ref": "A11.1.1",
|
|
22520
22553
|
"baspi5Ref": "A11.1.1",
|
|
22521
22554
|
"rdsRef": "Sustainability/Environmental|Natural|Situational",
|
|
22522
|
-
"ta6Ref": "7
|
|
22555
|
+
"ta6Ref": "7",
|
|
22523
22556
|
"title": "Flooding",
|
|
22524
22557
|
"type": "object",
|
|
22525
22558
|
"baspi4Required": ["historicalFlooding"],
|
|
@@ -22536,8 +22569,48 @@
|
|
|
22536
22569
|
"historicalFlooding",
|
|
22537
22570
|
"floodDefences"
|
|
22538
22571
|
],
|
|
22539
|
-
"ta6Required": ["historicalFlooding"],
|
|
22572
|
+
"ta6Required": ["floodRiskReport", "historicalFlooding"],
|
|
22540
22573
|
"properties": {
|
|
22574
|
+
"floodRiskReport": {
|
|
22575
|
+
"ta6Ref": "7.3",
|
|
22576
|
+
"title": "Flood risk report",
|
|
22577
|
+
"type": "object",
|
|
22578
|
+
"ta6Required": ["hasReportBeenPrepared"],
|
|
22579
|
+
"properties": {
|
|
22580
|
+
"hasReportBeenPrepared": {
|
|
22581
|
+
"ta6Ref": "7.3.1",
|
|
22582
|
+
"title": "Has a flood risk report been prepared?",
|
|
22583
|
+
"type": "string",
|
|
22584
|
+
"enum": ["Yes", "No"]
|
|
22585
|
+
}
|
|
22586
|
+
},
|
|
22587
|
+
"discriminator": {
|
|
22588
|
+
"propertyName": "hasReportBeenPrepared"
|
|
22589
|
+
},
|
|
22590
|
+
"oneOf": [
|
|
22591
|
+
{
|
|
22592
|
+
"properties": {
|
|
22593
|
+
"hasReportBeenPrepared": {
|
|
22594
|
+
"enum": ["No"]
|
|
22595
|
+
}
|
|
22596
|
+
}
|
|
22597
|
+
},
|
|
22598
|
+
{
|
|
22599
|
+
"properties": {
|
|
22600
|
+
"hasReportBeenPrepared": {
|
|
22601
|
+
"enum": ["Yes"]
|
|
22602
|
+
},
|
|
22603
|
+
"attachments": {
|
|
22604
|
+
"ta6Ref": "7.3.2",
|
|
22605
|
+
"title": "Please supply a copy",
|
|
22606
|
+
"type": "string",
|
|
22607
|
+
"enum": ["Attached", "To follow"]
|
|
22608
|
+
}
|
|
22609
|
+
},
|
|
22610
|
+
"ta6Required": ["attachments"]
|
|
22611
|
+
}
|
|
22612
|
+
]
|
|
22613
|
+
},
|
|
22541
22614
|
"floodRisk": {
|
|
22542
22615
|
"ntsRef": "C3.1.1.1",
|
|
22543
22616
|
"nts2Ref": "C3.1.1.1",
|
|
@@ -41715,6 +41788,36 @@
|
|
|
41715
41788
|
}
|
|
41716
41789
|
}
|
|
41717
41790
|
}
|
|
41791
|
+
},
|
|
41792
|
+
"offers": {
|
|
41793
|
+
"title": "Offers for purchase of the property",
|
|
41794
|
+
"type": "object",
|
|
41795
|
+
"propertyNames": {
|
|
41796
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
|
|
41797
|
+
},
|
|
41798
|
+
"patternProperties": {
|
|
41799
|
+
".*": {
|
|
41800
|
+
"type": "object",
|
|
41801
|
+
"properties": {
|
|
41802
|
+
"amount": { "type": "number", "minimum": 0 },
|
|
41803
|
+
"currency": { "type": "string", "pattern": "^[A-Z]{3}$" },
|
|
41804
|
+
"status": {
|
|
41805
|
+
"type": "string",
|
|
41806
|
+
"enum": [
|
|
41807
|
+
"pending",
|
|
41808
|
+
"withdrawn",
|
|
41809
|
+
"rejected",
|
|
41810
|
+
"accepted",
|
|
41811
|
+
"noteOfInterest"
|
|
41812
|
+
]
|
|
41813
|
+
},
|
|
41814
|
+
"inclusions": { "type": "array", "items": { "type": "string" } },
|
|
41815
|
+
"exclusions": { "type": "array", "items": { "type": "string" } },
|
|
41816
|
+
"conditions": { "type": "array", "items": { "type": "string" } }
|
|
41817
|
+
},
|
|
41818
|
+
"required": ["amount", "currency", "status"]
|
|
41819
|
+
}
|
|
41820
|
+
}
|
|
41718
41821
|
}
|
|
41719
41822
|
}
|
|
41720
41823
|
}
|