@pdtf/schemas 3.0.0-9 → 3.0.1-2

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.
Files changed (31) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +1 -1
  3. package/src/examples/v3/exampleAddParticipantVouch.json +32 -0
  4. package/src/examples/v3/exampleDocumentedVouch.json +40 -0
  5. package/src/examples/v3/exampleElectronicRecord.json +30 -0
  6. package/src/examples/v3/exampleTransaction.json +716 -668
  7. package/src/examples/v3/exampleVouch.json +25 -0
  8. package/src/schemas/v2/combined.json +10 -2
  9. package/src/schemas/v2/overlays/baspi.json +14 -2
  10. package/src/schemas/v2/overlays/ta6.json +7 -0
  11. package/src/schemas/v2/pdtf-transaction.json +4 -6
  12. package/src/schemas/v2/skeleton.json +2 -1
  13. package/src/schemas/v3/combined.json +22993 -22893
  14. package/src/schemas/v3/overlays/baspi.json +5825 -6167
  15. package/src/schemas/v3/overlays/con29DW.json +568 -557
  16. package/src/schemas/v3/overlays/con29R.json +1 -1
  17. package/src/schemas/v3/overlays/fme1.json +1039 -1039
  18. package/src/schemas/v3/overlays/llc1.json +5 -5
  19. package/src/schemas/v3/overlays/lpe1.json +1720 -1680
  20. package/src/schemas/v3/overlays/nts.json +1436 -1245
  21. package/src/schemas/v3/overlays/oc1.json +821 -821
  22. package/src/schemas/v3/overlays/piq.json +2295 -2494
  23. package/src/schemas/v3/overlays/rds.json +2899 -3191
  24. package/src/schemas/v3/overlays/ta10.json +5280 -4282
  25. package/src/schemas/v3/overlays/ta6.json +3160 -3089
  26. package/src/schemas/v3/overlays/ta7.json +1071 -807
  27. package/src/schemas/v3/pdtf-transaction.json +19396 -18694
  28. package/src/schemas/v3/skeleton.json +2808 -2755
  29. package/src/tests/v3/transactionSchema.test.js +57 -46
  30. package/src/tests/v3/verifiedClaimsValidator.test.js +13 -13
  31. package/src/utils/extractOverlay.js +13 -6
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Property Data Trust Framework
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "3.0.0-9",
3
+ "version": "3.0.1-2",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -0,0 +1,32 @@
1
+ {
2
+ "verification": {
3
+ "trust_framework": "uk_pdtf",
4
+ "time": "2022-01-25T13:05:03.108Z",
5
+ "evidence": [
6
+ {
7
+ "type": "vouch",
8
+ "attestation": {
9
+ "type": "digital_attestation",
10
+ "voucher": {
11
+ "name": "Martin Abode"
12
+ }
13
+ },
14
+ "verification_method": {
15
+ "type": "auth"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ "claims": {
21
+ "/participants/-": {
22
+ "name": {
23
+ "firstName": "Martin",
24
+ "lastName": "Abode"
25
+ },
26
+ "email": "martin@abode.co.uk",
27
+ "organisation": "Abode and Floggit Estate Agents",
28
+ "organisationReference": "MAR/12243/22",
29
+ "role": "Estate Agent"
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "verification": {
3
+ "trust_framework": "uk_pdtf",
4
+ "time": "2022-01-25T13:16:44.527Z",
5
+ "evidence": [
6
+ {
7
+ "type": "vouch",
8
+ "attachments": [
9
+ {
10
+ "digest": {
11
+ "alg": "md5",
12
+ "value": "randomHashValue"
13
+ },
14
+ "url": "https://fakeFileStore.com/some/kind/of/file",
15
+ "desc": "proofOfAddress.pdf",
16
+ "pdtfSchemaPath": "/propertyPack/materialFacts/councilTax/councilTaxAffectingAlterations/details"
17
+ }
18
+ ],
19
+ "verification_method": {
20
+ "type": "auth"
21
+ },
22
+ "attestation": {
23
+ "voucher": {
24
+ "name": "Maria Harris"
25
+ },
26
+ "type": "digital_attestation"
27
+ }
28
+ }
29
+ ]
30
+ },
31
+ "claims": {
32
+ "/propertyPack/councilTax": {
33
+ "councilTaxBand": "D",
34
+ "councilTaxAffectingAlterations": {
35
+ "yesNo": "Yes",
36
+ "details": "Extension added in 2005 to add bedroom with ensuite shower room. Certificate of Compliance issued 17th Feb 2006 and council tax updated"
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "verification": {
3
+ "time": "2022-01-25T07:52:14.318Z",
4
+ "trust_framework": "uk_pdtf",
5
+ "evidence": [
6
+ {
7
+ "type": "electronic_record",
8
+ "verifier": {
9
+ "organization": "Property Pack Assembly Software Ltd"
10
+ },
11
+ "record": {
12
+ "source": {
13
+ "name": "Royal Mail Postcode Address File",
14
+ "rights": "(c) Royal Mail"
15
+ },
16
+ "type": "postcode_address_file"
17
+ }
18
+ }
19
+ ]
20
+ },
21
+ "claims": {
22
+ "/propertyPack/address": {
23
+ "line1": "3 The Hollys",
24
+ "line2": "Birtley",
25
+ "town": "CHESTER LE STREET",
26
+ "county": "County Durham",
27
+ "postcode": "DH3 1QN"
28
+ }
29
+ }
30
+ }