@pdtf/schemas 3.6.0-dev.1 → 3.6.0-dev.11

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 (53) hide show
  1. package/package.json +9 -1
  2. package/src/schemas/v3/combined.json +677 -182
  3. package/src/schemas/v3/compactSkeleton.txt +63 -0
  4. package/src/schemas/v3/overlays/baspi4.json +43 -73
  5. package/src/schemas/v3/overlays/baspi5.json +43 -73
  6. package/src/schemas/v3/overlays/extensions/ac.json +2 -1
  7. package/src/schemas/v3/overlays/extensions/dk.json +3 -2
  8. package/src/schemas/v3/overlays/extensions/ic.json +44 -9
  9. package/src/schemas/v3/overlays/extensions/lc.json +3 -2
  10. package/src/schemas/v3/overlays/extensions/mi.json +2 -1
  11. package/src/schemas/v3/overlays/extensions/nd.json +3 -2
  12. package/src/schemas/v3/overlays/extensions/pc.json +3 -2
  13. package/src/schemas/v3/overlays/extensions/ph.json +2 -1
  14. package/src/schemas/v3/overlays/extensions/rw.json +4 -3
  15. package/src/schemas/v3/overlays/extensions/sc.json +8 -4
  16. package/src/schemas/v3/overlays/extensions/sd.json +3 -2
  17. package/src/schemas/v3/overlays/extensions/ta.json +0 -48
  18. package/src/schemas/v3/overlays/extensions/tr.json +3 -2
  19. package/src/schemas/v3/overlays/extensions/wg.json +2 -1
  20. package/src/schemas/v3/overlays/llc1.json +1 -2
  21. package/src/schemas/v3/overlays/lpe1.json +1 -1
  22. package/src/schemas/v3/overlays/nts.json +3 -1
  23. package/src/schemas/v3/overlays/nts2.json +3 -1
  24. package/src/schemas/v3/overlays/ntsl.json +3 -1
  25. package/src/schemas/v3/overlays/ntsl2.json +3 -1
  26. package/src/schemas/v3/overlays/piq.json +23 -24
  27. package/src/schemas/v3/overlays/rds.json +22 -49
  28. package/src/schemas/v3/overlays/sef25.json +16 -2
  29. package/src/schemas/v3/overlays/ta10.json +0 -9
  30. package/src/schemas/v3/overlays/ta6.json +37 -69
  31. package/src/schemas/v3/overlays/ta6ed6.json +319 -180
  32. package/src/schemas/v3/overlays/ta7ed5.json +66 -20
  33. package/src/schemas/v3/pdtf-transaction.json +397 -95
  34. package/src/schemas/v3/skeleton.json +70 -5
  35. package/src/utils/extractExtensionOverlays.js +11 -2
  36. package/src/utils/extractOverlay.js +20 -0
  37. package/CLAUDE.md +0 -101
  38. package/docs/backend-lms-profile-filtering-spec.md +0 -180
  39. package/src/examples/v1/exampleAddParticipantVouch.json +0 -32
  40. package/src/examples/v1/exampleDocumentedVouch.json +0 -40
  41. package/src/examples/v1/exampleElectronicRecord.json +0 -30
  42. package/src/examples/v1/exampleTransaction.json +0 -878
  43. package/src/examples/v1/exampleVouch.json +0 -25
  44. package/src/examples/v2/exampleTransaction.json +0 -901
  45. package/src/examples/v3/exampleAddParticipantVouch.json +0 -38
  46. package/src/examples/v3/exampleCustomOverlay.json +0 -55
  47. package/src/examples/v3/exampleCustomOverlay2.json +0 -93
  48. package/src/examples/v3/exampleDocumentedVouch.json +0 -47
  49. package/src/examples/v3/exampleElectronicRecord.json +0 -36
  50. package/src/examples/v3/exampleTransaction.json +0 -1038
  51. package/src/examples/v3/exampleVouch.json +0 -32
  52. package/src/mappings/SendPropertyDetailsRequestSchema.json +0 -1588
  53. package/src/mappings/adf.js +0 -198
@@ -1,38 +0,0 @@
1
- {
2
- "id": "ADC58DEdisuWkmjp9MEJr9",
3
- "transactionId": "LnRdGiBUkLbnuNJ89p4CEj",
4
- "schemaVersion": "3.2.1",
5
- "verification": {
6
- "trust_framework": "uk_pdtf",
7
- "time": "2022-01-25T13:05:03.108Z",
8
- "evidence": [
9
- {
10
- "type": "vouch",
11
- "attestation": {
12
- "type": "digital_attestation",
13
- "voucher": {
14
- "name": "Martin Abode"
15
- }
16
- },
17
- "verification_method": {
18
- "type": "auth"
19
- }
20
- }
21
- ]
22
- },
23
- "terms_of_use": {
24
- "confidentiality_level": "restricted"
25
- },
26
- "claims": {
27
- "/participants/-": {
28
- "name": {
29
- "firstName": "Martin",
30
- "lastName": "Abode"
31
- },
32
- "email": "martin@abode.co.uk",
33
- "organisation": "Abode and Floggit Estate Agents",
34
- "organisationReference": "MAR/12243/22",
35
- "role": "Estate Agent"
36
- }
37
- }
38
- }
@@ -1,55 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://trust.propdata.org.uk/schemas/v3/overlays/custom.json",
4
- "properties": {
5
- "propertyPack": {
6
- "customRef": "JKW",
7
- "type": "object",
8
- "required": ["specialistIssues"],
9
- "properties": {
10
- "specialistIssues": {
11
- "customRef": "JKW.7",
12
- "required": ["japaneseKnotweed"],
13
- "properties": {
14
- "japaneseKnotweed": {
15
- "customRef": "JKW.7.8",
16
- "discriminator": {
17
- "propertyName": "yesNo"
18
- },
19
- "oneOf": [
20
- {
21
- "properties": {
22
- "yesNo": {
23
- "enum": ["No", "Not known"]
24
- }
25
- }
26
- },
27
- {
28
- "properties": {
29
- "yesNo": {
30
- "enum": ["Yes"]
31
- },
32
- "managementPlanInPlace": {
33
- "customRef": "JKW.7.8.2"
34
- },
35
- "attachments": {
36
- "customRef": "JKW.7.8.3"
37
- }
38
- },
39
- "required": ["managementPlanInPlace", "attachments"]
40
- }
41
- ],
42
- "required": ["yesNo"],
43
- "title": "Is the property affected by Japanese knotweed?",
44
- "properties": {
45
- "yesNo": {
46
- "customRef": "JKW.7.8.1"
47
- }
48
- }
49
- }
50
- }
51
- }
52
- }
53
- }
54
- }
55
- }
@@ -1,93 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://trust.propdata.org.uk/schemas/v3/overlays/ta7.json",
4
- "properties": {
5
- "propertyPack": {
6
- "macRef": "MAC",
7
- "required": ["ownership"],
8
- "properties": {
9
- "ownership": {
10
- "macRef": "MAC.1",
11
- "required": ["ownershipsToBeTransferred"],
12
- "properties": {
13
- "ownershipsToBeTransferred": {
14
- "macRef": "MAC.1",
15
- "items": {
16
- "discriminator": {
17
- "propertyName": "ownershipType"
18
- },
19
- "oneOf": [
20
- {
21
- "properties": {
22
- "ownershipType": {
23
- "enum": ["Leasehold"]
24
- },
25
- "leaseholdInformation": {
26
- "required": ["contactDetails"],
27
- "properties": {
28
- "contactDetails": {
29
- "macRef": "MAC.4.1",
30
- "required": ["contacts"],
31
- "properties": {
32
- "contacts": {
33
- "macRef": "MAC.4.1",
34
- "required": ["managingAgent"],
35
- "properties": {
36
- "managingAgent": {
37
- "macRef": "MAC.4.1c",
38
- "required": ["contact"],
39
- "properties": {
40
- "contact": {
41
- "macRef": "MAC.4.1c",
42
- "required": ["nameOrOrganisation"],
43
- "properties": {
44
- "nameOrOrganisation": {
45
- "macRef": "MAC.4.1c.1"
46
- },
47
- "address": {
48
- "macRef": "MAC.4.1c.0",
49
- "properties": {
50
- "line1": {
51
- "macRef": "MAC.4.1c.2"
52
- },
53
- "line2": {
54
- "macRef": "MAC.4.1c.3"
55
- },
56
- "line3": {
57
- "macRef": "MAC.4.1c.4"
58
- },
59
- "town": {
60
- "macRef": "MAC.4.1c.5"
61
- },
62
- "postcode": {
63
- "macRef": "MAC.4.1c.6"
64
- }
65
- }
66
- },
67
- "telephone": {
68
- "macRef": "MAC.4.1c.7"
69
- },
70
- "emailAddress": {
71
- "macRef": "MAC.4.1c.8"
72
- }
73
- }
74
- }
75
- }
76
- }
77
- }
78
- }
79
- }
80
- }
81
- }
82
- }
83
- }
84
- }
85
- ]
86
- }
87
- }
88
- }
89
- }
90
- }
91
- }
92
- }
93
- }
@@ -1,47 +0,0 @@
1
- {
2
- "id": "ADC58DEdisuWkmjp9MEJr9",
3
- "transactionId": "LnRdGiBUkLbnuNJ89p4CEj",
4
- "schemaVersion": "3.2.1",
5
- "timestamp": 1643116604527,
6
- "verification": {
7
- "trust_framework": "uk_pdtf",
8
- "time": "2022-01-25T13:16:44.527Z",
9
- "evidence": [
10
- {
11
- "type": "vouch",
12
- "attachments": [
13
- {
14
- "digest": {
15
- "alg": "md5",
16
- "value": "randomHashValue"
17
- },
18
- "url": "https://fakeFileStore.com/some/kind/of/file",
19
- "desc": "proofOfAddress.pdf",
20
- "pdtfSchemaPath": "/propertyPack/materialFacts/councilTax/councilTaxAffectingAlterations/details"
21
- }
22
- ],
23
- "verification_method": {
24
- "type": "auth"
25
- },
26
- "attestation": {
27
- "voucher": {
28
- "name": "Maria Harris"
29
- },
30
- "type": "digital_attestation"
31
- }
32
- }
33
- ]
34
- },
35
- "terms_of_use": {
36
- "confidentiality_level": "public"
37
- },
38
- "claims": {
39
- "/propertyPack/councilTax": {
40
- "councilTaxBand": "D",
41
- "councilTaxAffectingAlterations": {
42
- "yesNo": "Yes",
43
- "details": "Extension added in 2005 to add bedroom with ensuite shower room. Certificate of Compliance issued 17th Feb 2006 and council tax updated"
44
- }
45
- }
46
- }
47
- }
@@ -1,36 +0,0 @@
1
- {
2
- "id": "ADC58DEdisuWkmjp9MEJr9",
3
- "transactionId": "LnRdGiBUkLbnuNJ89p4CEj",
4
- "schemaVersion": "3.2.1",
5
- "verification": {
6
- "time": "2022-01-25T07:52:14.318Z",
7
- "trust_framework": "uk_pdtf",
8
- "evidence": [
9
- {
10
- "type": "electronic_record",
11
- "verifier": {
12
- "organization": "Property Pack Assembly Software Ltd"
13
- },
14
- "record": {
15
- "source": {
16
- "name": "Royal Mail Postcode Address File",
17
- "rights": "(c) Royal Mail"
18
- },
19
- "type": "postcode_address_file"
20
- }
21
- }
22
- ]
23
- },
24
- "terms_of_use": {
25
- "confidentiality_level": "public"
26
- },
27
- "claims": {
28
- "/propertyPack/address": {
29
- "line1": "3 The Hollys",
30
- "line2": "Birtley",
31
- "town": "CHESTER LE STREET",
32
- "county": "County Durham",
33
- "postcode": "DH3 1QN"
34
- }
35
- }
36
- }