@pdtf/schemas 3.2.0-2 → 3.2.0-4

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
@@ -7,3 +7,8 @@ The short term goal for the schema is to encompass all of the requirements of th
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
 
10
+ This repository is intended to be a living document, with the schema evolving over time as the requirements of the framework are refined and extended. The schema is versioned to allow for backwards compatibility and to enable the evolution of the schema over time.
11
+
12
+ ## Licensing
13
+ The schema is licenced under the permissive [MIT License](https://opensource.org/license/MIT), but note that overlays and references are included which contain fields from [BASPI](https://homebuyingsellingcouncil.co.uk/wp-content/uploads/2021/03/Terms-of-Licence-mandatory-download-for-use-of-BASPI.pdf), [PIQ](https://www.propertymark.co.uk/static/14e7c154-98de-4230-957f09bd8d5ddeec/f542b10a-7710-4c37-b3958ccaeec25d4b/property-information-questionnaire-residential-sales.pdf) and [Law Society TA](https://www.lawsociety.org.uk/topics/property/transaction-forms) forms. If you intend to render data described by the schema into one of these forms, you should ensure that you comply with the terms of the respective licences.
14
+
package/index.js CHANGED
@@ -1,4 +1,3 @@
1
- const { dereference } = require("@jdw/jst");
2
1
  const merge = require("deepmerge");
3
2
  const Ajv = require("ajv");
4
3
  const addFormats = require("ajv-formats");
@@ -11,7 +10,7 @@ const ajv = new Ajv({
11
10
  // Adds date formats among other types to the validator.
12
11
  addFormats(ajv);
13
12
 
14
- const verifiedClaimsSchema = require("./src/schemas/v1/pdtf-verified-claims.json");
13
+ const verifiedClaimsSchema = require("./src/schemas/verifiedClaims/pdtf-verified-claims.json");
15
14
  const v2CoreSchema = require("./src/schemas/v2/pdtf-transaction.json");
16
15
  const v3CoreSchema = require("./src/schemas/v3/pdtf-transaction.json");
17
16
 
@@ -33,7 +32,8 @@ const overlaysMap = {
33
32
  null: {},
34
33
  },
35
34
  "https://trust.propdata.org.uk/schemas/v3/pdtf-transaction.json": {
36
- baspiV4: require("./src/schemas/v3/overlays/baspi.json"),
35
+ baspiV4: require("./src/schemas/v3/overlays/baspi4.json"),
36
+ baspiV5: require("./src/schemas/v3/overlays/baspi5.json"),
37
37
  ta6ed4: require("./src/schemas/v3/overlays/ta6.json"),
38
38
  ta7ed3: require("./src/schemas/v3/overlays/ta7.json"),
39
39
  ta10ed3: require("./src/schemas/v3/overlays/ta10.json"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "3.2.0-2",
3
+ "version": "3.2.0-4",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -5,13 +5,18 @@
5
5
  "participants": [
6
6
  {
7
7
  "name": {
8
+ "title": "Mr",
8
9
  "firstName": "Peter",
9
10
  "lastName": "Hetherington-Smythe"
10
11
  },
11
12
  "dateOfBirth": "1975-12-25",
12
13
  "phone": "07777 222333",
13
14
  "email": "peter@theseller.com",
14
- "address": { "line1": "47 Park Road", "postcode": "AL3 5AF", "countryCode": "GBR" },
15
+ "address": {
16
+ "line1": "47 Park Road",
17
+ "postcode": "AL3 5AF",
18
+ "countryCode": "GBR"
19
+ },
15
20
  "role": "Seller",
16
21
  "sellersCapacity": { "capacity": "Legal Owner" },
17
22
  "externalIds": { "Moverly": "123434" }
@@ -38,9 +43,14 @@
38
43
  "line2": "",
39
44
  "line3": "",
40
45
  "town": "HARPENDEN",
41
- "postcode": "AL3 5AF"
46
+ "postcode": "AL3 5AF",
47
+ "homeNation": "England"
48
+ },
49
+ "localAuthority": {
50
+ "localAuthorityName": "Neverland Hook",
51
+ "districtCouncil": "Neverland Hook",
52
+ "countyCouncil": "Neverland County Council"
42
53
  },
43
- "localAuthority": { "localAuthorityName": "Neverland Hook", "districtCouncil": "Neverland Hook", "countyCouncil": "Neverland County Council" },
44
54
  "priceInformation": {
45
55
  "price": 1260000,
46
56
  "priceQualifier": "Offers in excess of"
@@ -684,14 +694,18 @@
684
694
  "commonholdIndicator": false
685
695
  },
686
696
  "officialCopyDateTime": "2021-12-16T08:39:52",
687
- "propertyAddress": {
688
- "postcodeZone": {
689
- "postcode": "AL3 5AF"
697
+ "propertyAddress": [
698
+ {
699
+ "postcodeZone": {
700
+ "postcode": "AL3 5AF"
701
+ }
690
702
  },
691
- "addressLine": {
692
- "line": ["47 Park Road", "Harpenden"]
703
+ {
704
+ "addressLine": {
705
+ "line": ["47 Park Road", "Harpenden"]
706
+ }
693
707
  }
694
- },
708
+ ],
695
709
  "proprietorship": {
696
710
  "registeredProprietorParty": [
697
711
  {