@pdtf/schemas 0.10.8 → 0.11.0-1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "0.10.8",
3
+ "version": "0.11.0-1",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -31,12 +31,7 @@
31
31
  },
32
32
  "ownership": {
33
33
  "ownershipType": "Leasehold",
34
- "sharedOwnership": {
35
- "isSharedOwnership": "Yes",
36
- "sharedOwnershipPercentage": 25,
37
- "sharedOwnershipRent": 225,
38
- "sharedOwnershipRentFrequency": "Monthly"
39
- },
34
+ "sharedOwnership": { "isSharedOwnership": "No" },
40
35
  "startYearOfLease": 1900,
41
36
  "lengthOfLeaseInYears": 999,
42
37
  "currentGroundRent": 1750,
@@ -427,12 +422,14 @@
427
422
  }
428
423
  },
429
424
  "additionalLegalInfo": {
430
- "namesOfLegalOwners": [
431
- {
432
- "firstName": "Peter",
433
- "lastName": "Hetherington-Smythe"
434
- }
435
- ],
425
+ "legalOwners": {
426
+ "namesOfLegalOwners": [
427
+ {
428
+ "firstName": "Peter",
429
+ "lastName": "Hetherington-Smythe"
430
+ }
431
+ ]
432
+ },
436
433
  "sellersCapacity": { "capacity": "Legal Owner" },
437
434
  "legalBoundaries": {
438
435
  "left": "Seller",
@@ -6,7 +6,7 @@
6
6
  "description": "A schema defining Part B of BASPI v2.0 spporting mapping to BASPI, Law Society and RICS Data Schema elements.",
7
7
  "baspiRef": "B",
8
8
  "required": [
9
- "namesOfLegalOwners",
9
+ "legalOwners",
10
10
  "sellersCapacity",
11
11
  "legalBoundaries",
12
12
  "servicesCrossing",
@@ -18,37 +18,44 @@
18
18
  "confirmationOfAccuracyByOwners"
19
19
  ],
20
20
  "properties": {
21
- "namesOfLegalOwners": {
22
- "baspiRef": "B1.1",
23
- "RDSRef": "RightsHolders",
24
- "title": "Full names of all legal owner(s)",
25
- "type": "array",
26
- "minItems": 1,
27
- "items": {
28
- "type": "object",
29
- "baspiRef": "B1.1.1",
30
- "title": "Owner name",
31
- "required": ["firstName", "lastName"],
32
- "properties": {
33
- "firstName": {
21
+ "legalOwners": {
22
+ "baspiRef": "B1",
23
+ "type": "object",
24
+ "properties": {
25
+ "namesOfLegalOwners": {
26
+ "baspiRef": "B1.1",
27
+ "RDSRef": "RightsHolders",
28
+ "title": "Full names of all legal owner(s)",
29
+ "type": "array",
30
+ "minItems": 1,
31
+ "items": {
32
+ "type": "object",
34
33
  "baspiRef": "B1.1.1",
35
- "title": "First name",
36
- "type": "string",
37
- "minLength": 1
38
- },
39
- "middleNames": {
40
- "baspiRef": "B1.1.2",
41
- "title": "Middle names",
42
- "type": "string"
43
- },
44
- "lastName": {
45
- "baspiRef": "B1.1.3",
46
- "title": "Last name",
47
- "type": "string",
48
- "minLength": 1
34
+ "title": "Owner name",
35
+ "required": ["firstName", "lastName"],
36
+ "properties": {
37
+ "firstName": {
38
+ "baspiRef": "B1.1.1",
39
+ "title": "First name",
40
+ "type": "string",
41
+ "minLength": 1
42
+ },
43
+ "middleNames": {
44
+ "baspiRef": "B1.1.2",
45
+ "title": "Middle names",
46
+ "type": "string"
47
+ },
48
+ "lastName": {
49
+ "baspiRef": "B1.1.3",
50
+ "title": "Last name",
51
+ "type": "string",
52
+ "minLength": 1
53
+ }
54
+ }
49
55
  }
50
56
  }
51
- }
57
+ },
58
+ "required": ["namesOfLegalOwners"]
52
59
  },
53
60
  "sellersCapacity": {
54
61
  "baspiRef": "B1.3",
@@ -3,7 +3,7 @@
3
3
  "$id": "https://trust.propdata.org.uk/schemas/v1/material-facts.json",
4
4
  "type": "object",
5
5
  "title": "Material facts at the point of marketing",
6
- "description": "BASPI v2.0 Part A - Disclosure of material facts at the point of marketing, supporting mapping to BASPI, Law Society and RICS Data Schema elements.",
6
+ "description": "BASPI v2.0 Part A - Disclosure of material facts at the point of marketing, supporting mapping to BASPI, Law Society, NTS and RICS Data Schema elements.",
7
7
  "baspiRef": "A",
8
8
  "required": [
9
9
  "uprn",
@@ -171,9 +171,15 @@
171
171
  "RDSRef": "Tenure/Tenure",
172
172
  "lawSocietyRef": "TA7/1.1",
173
173
  "title": "What type of ownership is the property?",
174
- "description": "Choose Freehold if your property is a Managed Freehold or Commonhold. Choose Leasehold if your property is under a Shared Ownership arrangement.",
174
+ "description": "A Managed Freehold is any freehold where there are shared amenities, the maintenance of which you pay for through an estate rentcharge, service charge, informal or formal contribution. Choose Leasehold if your property is under a Shared Ownership arrangement.",
175
175
  "type": "string",
176
- "enum": ["Freehold", "Leasehold", "Other"]
176
+ "enum": [
177
+ "Freehold",
178
+ "Managed Freehold",
179
+ "Commonhold",
180
+ "Leasehold",
181
+ "Other"
182
+ ]
177
183
  }
178
184
  },
179
185
  "dependencies": {
@@ -183,102 +189,72 @@
183
189
  "properties": {
184
190
  "ownershipType": {
185
191
  "enum": ["Freehold"]
192
+ }
193
+ },
194
+ "wholeFreeholdForSale": {
195
+ "title": "Is the entire freehold being sold?",
196
+ "description": "If not, describe the share for sale (e.g. Ground floor flat only)",
197
+ "$ref": "#/$defs/yesNoDetailIfNo"
198
+ },
199
+ "required": ["wholeFreeholdForSale"],
200
+ "additionalProperties": false
201
+ },
202
+ {
203
+ "properties": {
204
+ "ownershipType": {
205
+ "enum": ["Managed Freehold", "Commonhold"]
186
206
  },
187
- "wholeFreeholdForSale": {
188
- "title": "Is the entire freehold being sold?",
189
- "description": "If not, describe the share for sale (e.g. Ground floor flat only)",
190
- "$ref": "#/$defs/yesNoDetailIfNo"
207
+ "annualServiceCharge": {
208
+ "baspiRef": "A1.5.1",
209
+ "lawSocietyRef": "TA6/10.1",
210
+ "ntsRef": "A1.6",
211
+ "RDSRef": "TenureAgreements/ServiceCharges",
212
+ "title": "Amount of current annual service charge/estate rentcharge/maintenance contribution (£)",
213
+ "type": "number"
191
214
  },
192
- "managedFreeholdOrCommonhold": {
193
- "title": "Managed Freehold or Commonhold",
194
- "type": "object",
195
- "properties": {
196
- "isManagedFreeholdOrCommonhold": {
197
- "title": "Is the Freehold a Managed Freehold or Commonhold?",
198
- "description": "A Managed Freehold is any freehold where there are shared amenities, the maintenance of which you pay for through an estate rentcharge, service charge, informal or formal contribution.",
199
- "type": "string",
200
- "enum": ["Neither", "Managed Freehold", "Commonhold"]
201
- }
202
- },
203
- "required": ["isManagedFreeholdOrCommonhold"],
204
- "dependencies": {
205
- "isManagedFreeholdOrCommonhold": {
206
- "oneOf": [
207
- {
208
- "properties": {
209
- "isManagedFreeholdOrCommonhold": {
210
- "enum": ["Neither"]
211
- }
212
- },
213
- "additionalProperties": false
214
- },
215
- {
216
- "properties": {
217
- "isManagedFreeholdOrCommonhold": {
218
- "enum": ["Managed Freehold", "Commonhold"]
219
- },
220
- "annualServiceCharge": {
221
- "baspiRef": "A1.5.1",
222
- "lawSocietyRef": "TA6/10.1",
223
- "ntsRef": "A1.6",
224
- "RDSRef": "TenureAgreements/ServiceCharges",
225
- "title": "Amount of current annual service charge/estate rentcharge/maintenance contribution (£)",
226
- "type": "number"
227
- },
228
- "largeAdditionalExpense": {
229
- "baspiRef": "A1.5.2",
230
- "lawSocietyRef": "TA6/10.1",
231
- "RDSRef": "TenureAgreements/Repairs,TenureAgreements/ServicesCharges/Breakdown",
232
- "title": "Have you received notice of any large expense in addition to the annual payment?",
233
- "$ref": "#/$defs/yesNoDetailIfYes",
234
- "description": "If yes, please provide details and confirm whether there is a reserve fund or sinking fund which will cover the cost of the works."
235
- },
236
- "additionalFeesOnSale": {
237
- "baspiRef": "A1.5.3",
238
- "lawSocietyRef": "TA6/10.1",
239
- "RDSRef": "TenureAgreements/LegalCosts/Actual, TenureAgreements/LegalCosts/Estimated",
240
- "title": "Additional fees payable on sale (£)",
241
- "type": "number"
242
- },
243
- "freeholderContactDetails": {
244
- "baspiRef": "A1.5.4",
245
- "lawSocietyRef": "TA7/4.1a",
246
- "RDSRef": "TenureAgreements/Assignor",
247
- "title": "The contact details of the freeholder or rentcharge owner",
248
- "$ref": "#/$defs/contactDetails"
249
- },
250
- "managingAgentContactDetails": {
251
- "baspiRef": "A1.5.5",
252
- "lawSocietyRef": "TA7/4.1b",
253
- "RDSRef": "Participants/Role",
254
- "title": "The contact details of the managing agent",
255
- "$ref": "#/$defs/contactDetails"
256
- },
257
- "managementCompanyDirectorRequirement": {
258
- "baspiRef": "A1.5.6",
259
- "RDSRef": "Property/Flags",
260
- "title": "Is the owner of the property required to become a director in a management company for the maintenance of shared amenities?",
261
- "$ref": "#/$defs/yesNo"
262
- }
263
- },
264
- "required": [
265
- "annualServiceCharge",
266
- "largeAdditionalExpense",
267
- "additionalFeesOnSale",
268
- "freeholderContactDetails",
269
- "managingAgentContactDetails",
270
- "managementCompanyDirectorRequirement"
271
- ],
272
- "additionalProperties": false
273
- }
274
- ]
275
- }
276
- }
215
+ "largeAdditionalExpense": {
216
+ "baspiRef": "A1.5.2",
217
+ "lawSocietyRef": "TA6/10.1",
218
+ "RDSRef": "TenureAgreements/Repairs,TenureAgreements/ServicesCharges/Breakdown",
219
+ "title": "Have you received notice of any large expense in addition to the annual payment?",
220
+ "$ref": "#/$defs/yesNoDetailIfYes",
221
+ "description": "If yes, please provide details and confirm whether there is a reserve fund or sinking fund which will cover the cost of the works."
222
+ },
223
+ "additionalFeesOnSale": {
224
+ "baspiRef": "A1.5.3",
225
+ "lawSocietyRef": "TA6/10.1",
226
+ "RDSRef": "TenureAgreements/LegalCosts/Actual, TenureAgreements/LegalCosts/Estimated",
227
+ "title": "Additional fees payable on sale (£)",
228
+ "type": "number"
229
+ },
230
+ "freeholderContactDetails": {
231
+ "baspiRef": "A1.5.4",
232
+ "lawSocietyRef": "TA7/4.1a",
233
+ "RDSRef": "TenureAgreements/Assignor",
234
+ "title": "The contact details of the freeholder or rentcharge owner",
235
+ "$ref": "#/$defs/contactDetails"
236
+ },
237
+ "managingAgentContactDetails": {
238
+ "baspiRef": "A1.5.5",
239
+ "lawSocietyRef": "TA7/4.1a",
240
+ "RDSRef": "Participants/Role",
241
+ "title": "The contact details of the managing agent",
242
+ "$ref": "#/$defs/contactDetails"
243
+ },
244
+ "managementCompanyDirectorRequirement": {
245
+ "baspiRef": "A1.5.6",
246
+ "RDSRef": "Property/Flags",
247
+ "title": "Is the owner of the property required to become a director in a management company for the maintenance of shared amenities?",
248
+ "$ref": "#/$defs/yesNo"
277
249
  }
278
250
  },
279
251
  "required": [
280
- "wholeFreeholdForSale",
281
- "managedFreeholdOrCommonhold"
252
+ "annualServiceCharge",
253
+ "largeAdditionalExpense",
254
+ "additionalFeesOnSale",
255
+ "freeholderContactDetails",
256
+ "managingAgentContactDetails",
257
+ "managementCompanyDirectorRequirement"
282
258
  ],
283
259
  "additionalProperties": false
284
260
  },
@@ -338,8 +314,7 @@
338
314
  "sharedOwnershipPercentage",
339
315
  "sharedOwnershipRent",
340
316
  "sharedOwnershipRentFrequency"
341
- ],
342
- "additionalProperties": false
317
+ ]
343
318
  }
344
319
  ]
345
320
  }