@pdtf/schemas 2.1.2-1 → 2.2.0

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/README.md CHANGED
@@ -3,7 +3,7 @@ This repository contains the versioned schemas for the Property Data Trust Frame
3
3
 
4
4
  The aim of the framework is to enable the frictionless exchange of property data between software products and services, supported by trusted information regarding the provenance of that data.
5
5
 
6
- The short term goal for the schema is to encompass all of the requirements of the [Home Buying and Selling Group](https://homebuyingandsellinggroup.co.uk) 'Property Pack', starting with the Buyers and Sellers Property Information set ([BASPI v2.0](https://homebuyingandsellinggroup.co.uk/baspi/)).
6
+ The short term goal for the schema is to encompass all of the requirements of the [Home Buying and Selling Group](https://homebuyingandsellinggroup.co.uk) 'Property Pack', starting with the Buyers and Sellers Property Information set ([BASPI v4.0](https://homebuyingandsellinggroup.co.uk/baspi/)).
7
7
 
8
8
  A parallel repository for this one has been created for the [Open API Specifications](https://github.com/Property-Data-Trust-Framework/api) for the data exchanges themselves, which will evolve independently.
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "2.1.2-1",
3
+ "version": "2.2.0",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -872,7 +872,7 @@
872
872
  "status": "Ordered",
873
873
  "orderDate": "2022-10-06T08:55:49.483",
874
874
  "expectedDeliveryDate": "2022-10-10T08:55:49",
875
- "searchContentTypes": ["Flood", "Contaminated Land", "Ground Stability"]
875
+ "contentTypes": ["Environmental Risks"]
876
876
  },
877
877
  {
878
878
  "displayName": "Drainage and Water Enquiry (Residential)",
@@ -881,7 +881,7 @@
881
881
  "status": "Ordered",
882
882
  "orderDate": "2022-10-06T08:55:49.5",
883
883
  "expectedDeliveryDate": "2022-10-13T08:55:49",
884
- "searchContentTypes": ["Drainage and Water Searches"]
884
+ "contentTypes": ["Drainage and Water Search"]
885
885
  },
886
886
  {
887
887
  "displayName": "Environmental Risk Flags",
@@ -889,99 +889,24 @@
889
889
  "providerName": "TM Group",
890
890
  "status": "Delivered",
891
891
  "reportDate": "2022-10-13T08:55:49",
892
- "searchContentTypes": [
893
- "Coal",
894
- "Bath Stone",
895
- "Metalliferous (Tin)",
896
- "Kaolin & Ball Clay",
897
- "Limestone",
898
- "Brine",
899
- "HS2",
900
- "Flood",
901
- "Crossrail",
902
- "Energy Exploration",
903
- "Wind Farms",
904
- "Renewable Power Plants",
905
- "Solar Farms",
906
- "London Underground",
907
- "Ground Stability",
908
- "Non Coal Mining",
909
- "Ground Movement",
910
- "Mineral"
911
- ],
912
-
892
+ "contentTypes": ["Environmental Risks"],
913
893
  "results": [
914
894
  {
915
- "contentType": "Coal",
916
- "recommendedActionIndicator": "No"
917
- },
918
- {
919
- "contentType": "Bath Stone",
920
- "recommendedActionIndicator": "No"
921
- },
922
- {
923
- "contentType": "Metalliferous (Tin)",
924
- "recommendedActionIndicator": "No"
925
- },
926
- {
927
- "contentType": "Kaolin & Ball Clay",
928
- "recommendedActionIndicator": "No"
929
- },
930
- {
931
- "contentType": "Limestone",
932
- "recommendedActionIndicator": "No"
933
- },
934
- {
935
- "contentType": "Brine",
936
- "recommendedActionIndicator": "No"
937
- },
938
- {
939
- "contentType": "HS2",
940
- "recommendedActionIndicator": "No"
941
- },
942
- {
943
- "contentType": "Flood",
944
- "recommendedActionIndicator": "Yes"
945
- },
946
- {
947
- "contentType": "Crossrail",
948
- "recommendedActionIndicator": "No"
949
- },
950
- {
951
- "contentType": "Energy Exploration",
952
- "recommendedActionIndicator": "No"
953
- },
954
- {
955
- "contentType": "Wind Farms",
956
- "recommendedActionIndicator": "No"
957
- },
958
- {
959
- "contentType": "Renewable Power Plants",
960
- "recommendedActionIndicator": "No"
961
- },
962
- {
963
- "contentType": "Solar Farms",
964
- "recommendedActionIndicator": "No"
965
- },
966
- {
967
- "contentType": "London Underground",
968
- "recommendedActionIndicator": "No"
969
- },
970
- {
971
- "contentType": "Ground Stability",
972
- "recommendedActionIndicator": "Yes"
973
- },
974
- {
975
- "contentType": "Non Coal Mining",
976
- "recommendedActionIndicator": "No"
977
- },
978
- {
979
- "contentType": "Ground Movement",
980
- "recommendedActionIndicator": "No"
981
- },
982
- {
983
- "contentType": "Mineral",
984
- "recommendedActionIndicator": "No"
895
+ "contentType": "Environmental Risks",
896
+ "riskResults": [
897
+ {
898
+ "riskCategory": "Flood",
899
+ "recommendedActionIndicator": "Yes"
900
+ },
901
+ {
902
+ "riskCategory": "Ground Stability",
903
+ "recommendedActionIndicator": "Yes"
904
+ },
905
+ {
906
+ "riskCategory": "Mining",
907
+ "recommendedActionIndicator": "No"
908
+ }
909
+ ]
985
910
  }
986
911
  ]
987
912
  }
@@ -108,6 +108,17 @@
108
108
  "Offers in region of",
109
109
  "Sale by tender"
110
110
  ]
111
+ },
112
+ "disposal": {
113
+ "title": "Disposal",
114
+ "type": "string",
115
+ "enum": [
116
+ "Auction",
117
+ "Formal tender",
118
+ "Informal tender",
119
+ "Modern Method of Auction",
120
+ "Private treaty"
121
+ ]
111
122
  }
112
123
  }
113
124
  },
@@ -115,6 +126,17 @@
115
126
  "title": "Summary description",
116
127
  "type": "string"
117
128
  },
129
+ "marketingTenure": {
130
+ "title": "Type of tenure being marketed",
131
+ "type": "string",
132
+ "enum": [
133
+ "Commonhold",
134
+ "Freehold",
135
+ "Leasehold",
136
+ "Share of Freehold",
137
+ "Shared Ownership"
138
+ ]
139
+ },
118
140
  "media": {
119
141
  "title": "Media",
120
142
  "type": "array",
@@ -441,7 +441,7 @@
441
441
  },
442
442
  "housing": {
443
443
  "con29RRef": "3.7(d)",
444
- "title": "(housing;",
444
+ "title": "housing;",
445
445
  "$ref": "#/$defs/yesNoDetailIfYes"
446
446
  },
447
447
  "highways": {
@@ -485,7 +485,7 @@
485
485
  },
486
486
  "listedBuildingEnforcementNotice": {
487
487
  "con29RRef": "3.9(c)",
488
- "title": "(a listed building enforcement notice;",
488
+ "title": "a listed building enforcement notice;",
489
489
  "$ref": "#/$defs/yesNoDetailIfYes"
490
490
  },
491
491
  "breachOfConditionNotice": {
@@ -132,7 +132,7 @@
132
132
  {
133
133
  "properties": {
134
134
  "contentType": {
135
- "enum": ["Drainage and Water Searches"]
135
+ "enum": ["Drainage and Water Search"]
136
136
  },
137
137
  "drainageAndWater": {
138
138
  "$ref": "https://trust.propdata.org.uk/schemas/v1/searches/drainage-and-water.json"
@@ -208,7 +208,7 @@
208
208
  "Local Land Charges",
209
209
  "Required Local Searches",
210
210
  "Optional Local Searches Optional",
211
- "Drainage and Water Searches",
211
+ "Drainage and Water Search",
212
212
  "Flood",
213
213
  "Contaminated Land",
214
214
  "Coal",