@pdtf/schemas 1.1.2 → 2.0.0-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/index.js +86 -19
- package/package.json +5 -3
- package/src/examples/v2/exampleTransaction.json +899 -0
- package/src/schemas/v1/freehold-information.json +2051 -0
- package/src/schemas/v1/material-facts.json +3 -3
- package/src/schemas/v2/baspiNotes.html +102 -0
- package/src/schemas/v2/combined.json +27796 -0
- package/src/schemas/v2/core.json +26224 -0
- package/src/schemas/v2/overlays/baspi.json +8857 -0
- package/src/schemas/v2/overlays/con29DW.json +656 -0
- package/src/schemas/v2/overlays/con29R.json +3115 -0
- package/src/schemas/v2/overlays/fme1.json +1610 -0
- package/src/schemas/v2/overlays/llc1.json +46 -0
- package/src/schemas/v2/overlays/lpe1.json +2424 -0
- package/src/schemas/v2/overlays/nts.json +162 -0
- package/src/schemas/v2/overlays/oc1.json +2799 -0
- package/src/schemas/v2/overlays/rds.json +3746 -0
- package/src/schemas/v2/overlays/ta10.json +4 -0
- package/src/schemas/v2/overlays/ta6.json +2311 -0
- package/src/schemas/v2/overlays/ta7.json +901 -0
- package/src/tests/{pdtfVerifiedClaims.test.js → v1/pdtfVerifiedClaims.test.js} +4 -4
- package/src/tests/{transactionSchema.test.js → v1/transactionSchema.test.js} +3 -3
- package/src/tests/{verifiedClaimsValidator.test.js → v1/verifiedClaimsValidator.test.js} +3 -3
- package/src/tests/v2/transactionSchema.test.js +255 -0
- package/src/utils/extractOverlay.js +100 -0
- /package/src/examples/{exampleAddParticipantVouch.json → v1/exampleAddParticipantVouch.json} +0 -0
- /package/src/examples/{exampleDocumentedVouch.json → v1/exampleDocumentedVouch.json} +0 -0
- /package/src/examples/{exampleElectronicRecord.json → v1/exampleElectronicRecord.json} +0 -0
- /package/src/examples/{exampleTransaction.json → v1/exampleTransaction.json} +0 -0
- /package/src/examples/{exampleVouch.json → v1/exampleVouch.json} +0 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://trust.propdata.org.uk/schemas/v2/overlays/nts.json",
|
|
4
|
+
"properties": {
|
|
5
|
+
"propertyPack": {
|
|
6
|
+
"properties": {
|
|
7
|
+
"materialFacts": {
|
|
8
|
+
"properties": {
|
|
9
|
+
"priceInformation": {
|
|
10
|
+
"ntsRef": "A3",
|
|
11
|
+
"title": "Price information",
|
|
12
|
+
"properties": {
|
|
13
|
+
"price": {
|
|
14
|
+
"ntsRef": "A3.1",
|
|
15
|
+
"title": "Price"
|
|
16
|
+
},
|
|
17
|
+
"priceQualifier": {
|
|
18
|
+
"ntsRef": "A3.2",
|
|
19
|
+
"title": "Price type",
|
|
20
|
+
"enum": [
|
|
21
|
+
"POA",
|
|
22
|
+
"Guide price",
|
|
23
|
+
"Fixed price",
|
|
24
|
+
"Offers in excess of",
|
|
25
|
+
"Offers in region of",
|
|
26
|
+
"Sale by tender"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"ownership": {
|
|
32
|
+
"ntsRef": "A1.1",
|
|
33
|
+
"title": "Ownership",
|
|
34
|
+
"properties": {
|
|
35
|
+
"ownershipsToBeTransferred": {
|
|
36
|
+
"items": {
|
|
37
|
+
"oneOf": [
|
|
38
|
+
null,
|
|
39
|
+
null,
|
|
40
|
+
{
|
|
41
|
+
"properties": {
|
|
42
|
+
"leaseholdInformation": {
|
|
43
|
+
"properties": {
|
|
44
|
+
"groundRent": {
|
|
45
|
+
"oneOf": [
|
|
46
|
+
null,
|
|
47
|
+
{
|
|
48
|
+
"properties": {
|
|
49
|
+
"annualGroundRent": {
|
|
50
|
+
"ntsRef": "A1.4",
|
|
51
|
+
"title": "What is the annual ground rent payable?"
|
|
52
|
+
},
|
|
53
|
+
"rentSubjectToIncrease": {
|
|
54
|
+
"ntsRef": "A1.5",
|
|
55
|
+
"title": "Is the rent subject to increase?",
|
|
56
|
+
"discriminator": {
|
|
57
|
+
"propertyName": "yesNo"
|
|
58
|
+
},
|
|
59
|
+
"oneOf": [
|
|
60
|
+
{
|
|
61
|
+
"properties": {
|
|
62
|
+
"yesNo": {
|
|
63
|
+
"enum": [
|
|
64
|
+
"No"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"properties": {
|
|
71
|
+
"yesNo": {
|
|
72
|
+
"enum": [
|
|
73
|
+
"Yes"
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"general": {
|
|
85
|
+
"properties": {
|
|
86
|
+
"typeOfLeasehold": {
|
|
87
|
+
"oneOf": [
|
|
88
|
+
null,
|
|
89
|
+
{
|
|
90
|
+
"properties": {
|
|
91
|
+
"sharedOwnershipPercentage": {
|
|
92
|
+
"ntsRef": "A1.7.1",
|
|
93
|
+
"title": "Shared ownership percentage"
|
|
94
|
+
},
|
|
95
|
+
"sharedOwnershipRent": {
|
|
96
|
+
"ntsRef": "A1.7.2",
|
|
97
|
+
"title": "Shared ownership rent (£)"
|
|
98
|
+
},
|
|
99
|
+
"sharedOwnershipRentFrequency": {
|
|
100
|
+
"ntsRef": "A1.7.3",
|
|
101
|
+
"title": "Shared ownership rent frequency",
|
|
102
|
+
"enum": [
|
|
103
|
+
"Yearly",
|
|
104
|
+
"Monthly",
|
|
105
|
+
"Weekly"
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"leaseTerm": {
|
|
113
|
+
"properties": {
|
|
114
|
+
"startYearOfLease": {
|
|
115
|
+
"ntsRef": "A1.2",
|
|
116
|
+
"title": "Year that the lease commenced"
|
|
117
|
+
},
|
|
118
|
+
"lengthOfLeaseInYears": {
|
|
119
|
+
"ntsRef": "A1.3",
|
|
120
|
+
"title": "Length of lease (years)"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"councilTax": {
|
|
136
|
+
"ntsRef": "A2",
|
|
137
|
+
"title": "Council Tax",
|
|
138
|
+
"properties": {
|
|
139
|
+
"councilTaxBand": {
|
|
140
|
+
"ntsRef": "A2.1",
|
|
141
|
+
"title": "Which Council Tax band does this property fall within?",
|
|
142
|
+
"description": "Band I relates to Wales only",
|
|
143
|
+
"enum": [
|
|
144
|
+
"A",
|
|
145
|
+
"B",
|
|
146
|
+
"C",
|
|
147
|
+
"D",
|
|
148
|
+
"E",
|
|
149
|
+
"F",
|
|
150
|
+
"G",
|
|
151
|
+
"H",
|
|
152
|
+
"I"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|