@pdtf/schemas 3.2.0-2 → 3.2.0-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.
@@ -7,17 +7,23 @@
7
7
  "firstName": {},
8
8
  "middleName": {},
9
9
  "lastName": {},
10
+ "maidenName": {},
10
11
  "preferredName": {}
11
12
  },
12
13
  "dateOfBirth": {},
13
14
  "phone": {},
14
15
  "email": {},
15
16
  "address": {
17
+ "buildingNumber": {},
18
+ "buildingName": {},
19
+ "subBuilding": {},
20
+ "street": {},
16
21
  "line1": {},
17
22
  "line2": {},
18
23
  "line 3": {},
19
24
  "town": {},
20
25
  "postcode": {},
26
+ "homeNation": {},
21
27
  "countryCode": {}
22
28
  },
23
29
  "organisation": {},
@@ -32,11 +38,17 @@
32
38
  },
33
39
  "propertyPack": {
34
40
  "address": {
41
+ "buildingNumber": {},
42
+ "buildingName": {},
43
+ "subBuilding": {},
44
+ "street": {},
35
45
  "line1": {},
36
46
  "line2": {},
37
47
  "line3": {},
38
48
  "town": {},
39
- "postcode": {}
49
+ "postcode": {},
50
+ "homeNation": {},
51
+ "countryCode": {}
40
52
  },
41
53
  "uprn": {},
42
54
  "location": {
@@ -81,6 +93,14 @@
81
93
  "mediaUrl": {},
82
94
  "caption": {}
83
95
  },
96
+ "saleAtUndervalue": {},
97
+ "hasHelpToBuyEquityLoan": {},
98
+ "isHMO": {},
99
+ "isStudentAccommodation": {},
100
+ "numberOfSellers": {},
101
+ "numberOfNonUkResidentSellers": {},
102
+ "isFirstRegistration": {},
103
+ "isLimitedCompanySale": {},
84
104
  "buildInformation": {
85
105
  "building": {
86
106
  "builtForm": {},
@@ -782,6 +802,7 @@
782
802
  "reserveFund": {
783
803
  "yesNo": {},
784
804
  "details": {},
805
+ "contributionIncludedInServiceCharge": {},
785
806
  "sufficentToCoverSection20Expenditure": {
786
807
  "yesNo": {},
787
808
  "details": {}
@@ -1007,10 +1028,18 @@
1007
1028
  "yesNo": {}
1008
1029
  },
1009
1030
  "controlledParking": {
1010
- "yesNo": {}
1031
+ "yesNo": {},
1032
+ "annualCostOfPermit": {}
1033
+ },
1034
+ "vehicleTypeRestriction": {
1035
+ "yesNo": {},
1036
+ "details": {}
1011
1037
  },
1012
1038
  "electricVehicleChargingPoint": {
1013
1039
  "yesNo": {}
1040
+ },
1041
+ "locatedInUlez": {
1042
+ "yesNo": {}
1014
1043
  }
1015
1044
  },
1016
1045
  "listingAndConservation": {
@@ -1970,6 +1999,14 @@
1970
1999
  },
1971
2000
  "dateToBeConnected": {}
1972
2001
  },
2002
+ "heatPump": {
2003
+ "yesNo": {},
2004
+ "details": {},
2005
+ "supplier": {},
2006
+ "dateInstalled": {},
2007
+ "attachments": {},
2008
+ "dateToBeConnected": {}
2009
+ },
1973
2010
  "otherSources": {
1974
2011
  "yesNo": {},
1975
2012
  "details": {},
@@ -2194,9 +2231,6 @@
2194
2231
  }
2195
2232
  },
2196
2233
  "insurance": {
2197
- "isInsured": {},
2198
- "details": {},
2199
- "landlordInsuresIfFlat": {},
2200
2234
  "difficultiesObtainingInsurance": {
2201
2235
  "abnormalRiseInPremiums": {
2202
2236
  "yesNo": {},
@@ -2215,6 +2249,9 @@
2215
2249
  "details": {}
2216
2250
  }
2217
2251
  },
2252
+ "isInsured": {},
2253
+ "details": {},
2254
+ "landlordInsuresIfFlat": {},
2218
2255
  "insuranceClaims": {
2219
2256
  "yesNo": {},
2220
2257
  "details": {}
@@ -3968,6 +4005,13 @@
3968
4005
  }
3969
4006
  }
3970
4007
  }
4008
+ },
4009
+ "additionalDocuments": {
4010
+ "documentType": {},
4011
+ "documentTypeCode": {},
4012
+ "documentDate": {},
4013
+ "retrievedOn": {},
4014
+ "filedUnder": {}
3971
4015
  }
3972
4016
  },
3973
4017
  "searches": {
@@ -0,0 +1,12 @@
1
+ ## README
2
+
3
+ ### About verified claims
4
+ `pdtf-verified-claims.json` describes the schema container in which we store property `claims` and their corresponding `verification`.
5
+
6
+ This schema structure is strongly influenced by OpenID Connect for Identity Assurance 1.0's way of storing "verified claims".
7
+
8
+ More Details from the OIDC page which describes the details the nature of `verification` and `claims` objects: https://openid.net/specs/openid-connect-4-identity-assurance-1_0.html#name-representing-verified-claim
9
+
10
+ Notes:
11
+ * For PDTF Schema, all data included in the `claims` object must adhere to [pdtf-transaction.json (v3)](../v3/pdtf-transaction.json)
12
+ * For verification, there is more freedom in terms of the type of data that can currently be provided, see the documentation in the OIDC link above for details and examples.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://trust.propdata.org.uk/schemas/v1/pdtf-verified-claims.json",
3
+ "$id": "https://trust.propdata.org.uk/schemas/verifiedClaims/pdtf-verified-claims.json",
4
4
  "definitions": {
5
5
  "date_type": {
6
6
  "type": "string",
@@ -22,14 +22,14 @@ test("exports a property pack schema, v3 with no overlay by default", () => {
22
22
  // expect(testSchema.$id).toEqual(
23
23
  // "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json"
24
24
  // );
25
- expect(testSchema.properties.propertyPack.properties.baspiRef).toEqual(
25
+ expect(testSchema.properties.propertyPack.properties.baspi5Ref).toEqual(
26
26
  undefined
27
27
  );
28
28
  });
29
29
 
30
30
  test("sample is valid BASPI", () => {
31
31
  const testSchema = getTransactionSchema(schemaId, ["baspiV4"]);
32
- expect(testSchema.properties.propertyPack.baspiRef).toEqual("0");
32
+ expect(testSchema.properties.propertyPack.baspi4Ref).toEqual("0");
33
33
  const validator = getValidator(schemaId, ["baspiV4"]);
34
34
  const isValid = validator(exampleTransaction);
35
35
  if (!isValid) console.log(validator.errors);
@@ -201,9 +201,9 @@ test("correctly gets a subschema with multiple overlays", () => {
201
201
  const subschema = getSubschema(
202
202
  "/propertyPack/parking/parkingArrangements",
203
203
  schemaId,
204
- ["baspiV4", "ta6ed4"]
204
+ ["baspiV5", "ta6ed4"]
205
205
  );
206
- expect(subschema.baspiRef).toBe("A1.6.0");
206
+ expect(subschema.baspi5Ref).toBe("A1.6.0");
207
207
  expect(subschema.ta6Ref).toBe("9.1");
208
208
  });
209
209
 
@@ -7,7 +7,8 @@ const merge = require("deepmerge");
7
7
  const combinedSchema = require("../schemas/v3/combined.json");
8
8
 
9
9
  const extractFields = [
10
- "baspi",
10
+ "baspi4",
11
+ "baspi5",
11
12
  "nts",
12
13
  "ntsl",
13
14
  "ta6",