@pdtf/schemas 0.10.4 → 0.10.5-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.4",
3
+ "version": "0.10.5-1",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -31,6 +31,12 @@
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
40
  "startYearOfLease": 1900,
35
41
  "lengthOfLeaseInYears": 999,
36
42
  "currentGroundRent": 1750,
@@ -161,6 +161,7 @@
161
161
  "ownership": {
162
162
  "baspiRef": "A1.3",
163
163
  "lawSocietyRef": "TA7/1",
164
+ "ntsRef": "A1.1",
164
165
  "title": "Ownership",
165
166
  "type": "object",
166
167
  "required": ["ownershipType"],
@@ -170,16 +171,9 @@
170
171
  "RDSRef": "Tenure/Tenure",
171
172
  "lawSocietyRef": "TA7/1.1",
172
173
  "title": "What type of ownership is the property?",
173
- "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.",
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
175
  "type": "string",
175
- "enum": [
176
- "Freehold",
177
- "Managed Freehold",
178
- "Leasehold",
179
- "Commonhold",
180
- "Shared Ownership",
181
- "Other"
182
- ]
176
+ "enum": ["Freehold", "Leasehold", "Other"]
183
177
  }
184
178
  },
185
179
  "dependencies": {
@@ -189,23 +183,103 @@
189
183
  "properties": {
190
184
  "ownershipType": {
191
185
  "enum": ["Freehold"]
192
- }
193
- },
194
- "additionalProperties": false
195
- },
196
- {
197
- "properties": {
198
- "ownershipType": {
199
- "enum": ["Other"]
200
186
  },
201
- "otherOwnershipDetails": {
202
- "baspiRef": "A1.3.2",
203
- "title": "Details of the ownership type",
204
- "type": "string",
205
- "minLength": 1
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"
191
+ },
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
+ }
206
277
  }
207
278
  },
208
- "required": ["otherOwnershipDetails"],
279
+ "required": [
280
+ "wholeFreeholdForSale",
281
+ "managedFreeholdOrCommonhold"
282
+ ],
209
283
  "additionalProperties": false
210
284
  },
211
285
  {
@@ -213,26 +287,88 @@
213
287
  "ownershipType": {
214
288
  "enum": ["Leasehold"]
215
289
  },
290
+ "sharedOwnership": {
291
+ "title": "Shared ownership",
292
+ "type": "object",
293
+ "properties": {
294
+ "isSharedOwnership": {
295
+ "title": "Is the property under Shared Owenership or a Part-buy Part-rent arrangement?",
296
+ "type": "string",
297
+ "enum": ["Yes", "No"]
298
+ }
299
+ },
300
+ "required": ["isSharedOwnership"],
301
+ "dependencies": {
302
+ "isSharedOwnership": {
303
+ "oneOf": [
304
+ {
305
+ "properties": {
306
+ "isSharedOwnership": {
307
+ "enum": ["No"]
308
+ }
309
+ },
310
+ "additionalProperties": false
311
+ },
312
+ {
313
+ "properties": {
314
+ "isSharedOwnership": {
315
+ "enum": ["Yes"]
316
+ },
317
+ "sharedOwnershipPercentage": {
318
+ "ntsRef": "A1.7",
319
+ "title": "Shared ownership percentage",
320
+ "type": "integer",
321
+ "minimum": 5,
322
+ "exclusiveMaximum": 100
323
+ },
324
+ "sharedOwnershipRent": {
325
+ "ntsRef": "A1.7",
326
+ "title": "Shared ownership rent (£)",
327
+ "type": "number",
328
+ "minimum": 0
329
+ },
330
+ "sharedOwnershipRentFrequency": {
331
+ "ntsRef": "A1.7",
332
+ "title": "Shared ownership rent frequency",
333
+ "type": "string",
334
+ "enum": ["Yearly", "Monthly", "Weekly"]
335
+ }
336
+ },
337
+ "required": [
338
+ "sharedOwnershipPercentage",
339
+ "sharedOwnershipRent",
340
+ "sharedOwnershipRentFrequency"
341
+ ],
342
+ "additionalProperties": false
343
+ }
344
+ ]
345
+ }
346
+ }
347
+ },
216
348
  "startYearOfLease": {
217
349
  "baspiRef": "A1.4.1b",
350
+ "ntsRef": "A1.2",
218
351
  "title": "Year that the lease commenced",
219
352
  "type": "integer",
220
353
  "minimum": 1000
221
354
  },
222
355
  "lengthOfLeaseInYears": {
223
356
  "baspiRef": "A1.4.1a",
357
+ "ntsRef": "A1.3",
224
358
  "title": "Length of lease (years)",
225
359
  "type": "integer"
226
360
  },
227
361
  "currentGroundRent": {
228
362
  "baspiRef": "A1.4.2",
363
+ "ntsRef": "A1.4",
229
364
  "RDSRef": "TenureAgreements/RentPayable/Value",
230
- "lawSocietyRef": "TA7/1.2",
365
+ "lawSocietyRef": "TA7/1.2a",
231
366
  "title": "Current annual ground rent (£)",
232
367
  "type": "number"
233
368
  },
234
369
  "rentIncrease": {
235
370
  "baspiRef": "A1.4.3",
371
+ "ntsRef": "A1.5",
236
372
  "RDSRef": "TenureAgreement/isRentChangeable, TenureAgreements/RentChanges",
237
373
  "title": "Does the ground rent increase?",
238
374
  "$ref": "#/$defs/yesNoDetailIfYes",
@@ -240,6 +376,7 @@
240
376
  },
241
377
  "annualServiceCharge": {
242
378
  "baspiRef": "A1.5.1",
379
+ "ntsRef": "A1.6",
243
380
  "RDSRef": "TenureAgreements/ServiceCharges",
244
381
  "title": "Amount of current annual service charge/estate rentcharge/maintenance contribution (£)",
245
382
  "type": "number"
@@ -259,12 +396,14 @@
259
396
  },
260
397
  "freeholderContactDetails": {
261
398
  "baspiRef": "A1.5.4",
399
+ "lawSocietyRef": "TA7/4.1a",
262
400
  "RDSRef": "TenureAgreements/Assignor",
263
401
  "title": "The name, address and email address of the freeholder or rentcharge owner",
264
402
  "$ref": "#/$defs/contactDetails"
265
403
  },
266
404
  "managingAgentContactDetails": {
267
405
  "baspiRef": "A1.5.5",
406
+ "lawSocietyRef": "TA7/4.1b",
268
407
  "RDSRef": "Participants/Role",
269
408
  "title": "The name, address and email address of the managing agent",
270
409
  "$ref": "#/$defs/contactDetails"
@@ -277,6 +416,7 @@
277
416
  }
278
417
  },
279
418
  "required": [
419
+ "sharedOwnership",
280
420
  "startYearOfLease",
281
421
  "lengthOfLeaseInYears",
282
422
  "currentGroundRent",
@@ -287,162 +427,23 @@
287
427
  "freeholderContactDetails",
288
428
  "managingAgentContactDetails",
289
429
  "managementCompanyDirectorRequirement"
290
- ]
291
- },
292
- {
293
- "properties": {
294
- "ownershipType": {
295
- "enum": ["Managed Freehold", "Commonhold"]
296
- },
297
- "annualServiceCharge": {
298
- "baspiRef": "A1.5.1",
299
- "lawSocietyRef": "TA6/10.1",
300
- "RDSRef": "TenureAgreements/ServiceCharges",
301
- "title": "Amount of current annual service charge/estate rentcharge/maintenance contribution (£)",
302
- "type": "number"
303
- },
304
- "largeAdditionalExpense": {
305
- "baspiRef": "A1.5.2",
306
- "lawSocietyRef": "TA6/10.1",
307
- "RDSRef": "TenureAgreements/Repairs,TenureAgreements/ServicesCharges/Breakdown",
308
- "title": "Have you received notice of any large expense in addition to the annual payment?",
309
- "$ref": "#/$defs/yesNoDetailIfYes",
310
- "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."
311
- },
312
- "additionalFeesOnSale": {
313
- "baspiRef": "A1.5.3",
314
- "lawSocietyRef": "TA6/10.1",
315
- "RDSRef": "TenureAgreements/LegalCosts/Actual, TenureAgreements/LegalCosts/Estimated",
316
- "title": "Additional fees payable on sale (£)",
317
- "type": "number"
318
- },
319
- "freeholderContactDetails": {
320
- "baspiRef": "A1.5.4",
321
- "RDSRef": "TenureAgreements/Assignor",
322
- "title": "The contact details of the freeholder or rentcharge owner",
323
- "$ref": "#/$defs/contactDetails"
324
- },
325
- "managingAgentContactDetails": {
326
- "baspiRef": "A1.5.5",
327
- "RDSRef": "Participants/Role",
328
- "title": "The contact details of the managing agent",
329
- "$ref": "#/$defs/contactDetails"
330
- },
331
- "managementCompanyDirectorRequirement": {
332
- "baspiRef": "A1.5.6",
333
- "RDSRef": "Property/Flags",
334
- "title": "Is the owner of the property required to become a director in a management company for the maintenance of shared amenities?",
335
- "$ref": "#/$defs/yesNo"
336
- }
337
- },
338
- "required": [
339
- "annualServiceCharge",
340
- "largeAdditionalExpense",
341
- "additionalFeesOnSale",
342
- "freeholderContactDetails",
343
- "managingAgentContactDetails",
344
- "managementCompanyDirectorRequirement"
345
- ]
430
+ ],
431
+ "additionalProperties": false
346
432
  },
347
433
  {
348
434
  "properties": {
349
435
  "ownershipType": {
350
- "enum": ["Shared Ownership"]
351
- },
352
- "sharedOwnershipPercentage": {
353
- "title": "Shared ownership percentage",
354
- "type": "integer",
355
- "minimum": 5,
356
- "exclusiveMaximum": 100
357
- },
358
- "sharedOwnershipRent": {
359
- "title": "Shared ownership rent (£)",
360
- "type": "number",
361
- "minimum": 0
436
+ "enum": ["Other"]
362
437
  },
363
- "sharedOwnershipRentFrequency": {
364
- "title": "Shared ownership rent frequency",
438
+ "otherOwnershipDetails": {
439
+ "baspiRef": "A1.3.2",
440
+ "title": "Details of the ownership type",
365
441
  "type": "string",
366
- "enum": ["Yearly", "Monthly", "Weekly"]
367
- },
368
- "startYearOfLease": {
369
- "baspiRef": "A1.4.1b",
370
- "title": "Year that the lease commenced",
371
- "type": "integer",
372
- "minimum": 1000
373
- },
374
- "lengthOfLeaseInYears": {
375
- "baspiRef": "A1.4.1a",
376
- "title": "Length of lease (years)",
377
- "type": "integer"
378
- },
379
- "currentGroundRent": {
380
- "baspiRef": "A1.4.2",
381
- "RDSRef": "TenureAgreements/RentPayable/Value",
382
- "lawSocietyRef": "TA7/1.2",
383
- "title": "Current annual ground rent (£)",
384
- "type": "number"
385
- },
386
- "rentIncrease": {
387
- "baspiRef": "A1.4.3",
388
- "RDSRef": "TenureAgreement/isRentChangeable, TenureAgreements/RentChanges",
389
- "title": "Does the ground rent increase?",
390
- "$ref": "#/$defs/yesNoDetailIfYes",
391
- "description": "Please provide full details of the ground rent increase e.g. how often and by how much and when the next increase is due."
392
- },
393
- "annualServiceCharge": {
394
- "baspiRef": "A1.5.1",
395
- "RDSRef": "TenureAgreements/ServiceCharges",
396
- "title": "Amount of current annual service charge/estate rentcharge/maintenance contribution (£)",
397
- "type": "number"
398
- },
399
- "largeAdditionalExpense": {
400
- "baspiRef": "A1.5.2",
401
- "RDSRef": "TenureAgreements/Repairs,TenureAgreements/ServicesCharges/Breakdown",
402
- "title": "Have you received notice of any large expense in addition to the annual payment?",
403
- "$ref": "#/$defs/yesNoDetailIfYes",
404
- "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."
405
- },
406
- "additionalFeesOnSale": {
407
- "baspiRef": "A1.5.3",
408
- "RDSRef": "TenureAgreements/LegalCosts/Actual, TenureAgreements/LegalCosts/Estimated",
409
- "title": "Additional fees payable on sale or letting (£)",
410
- "type": "number"
411
- },
412
- "freeholderContactDetails": {
413
- "baspiRef": "A1.5.4",
414
- "RDSRef": "TenureAgreements/Assignor",
415
- "title": "The contact details of the freeholder or rentcharge owner",
416
- "$ref": "#/$defs/contactDetails"
417
- },
418
- "managingAgentContactDetails": {
419
- "baspiRef": "A1.5.5",
420
- "RDSRef": "Participants/Role",
421
- "title": "The contact details of the managing agent",
422
- "$ref": "#/$defs/contactDetails"
423
- },
424
- "managementCompanyDirectorRequirement": {
425
- "baspiRef": "A1.5.6",
426
- "RDSRef": "Property/Flags",
427
- "title": "Is the owner of the Property required to become a director in a management company for the maintenance of shared amenities?",
428
- "$ref": "#/$defs/yesNo"
442
+ "minLength": 1
429
443
  }
430
444
  },
431
- "required": [
432
- "sharedOwnershipPercentage",
433
- "sharedOwnershipRent",
434
- "sharedOwnershipRentFrequency",
435
- "startYearOfLease",
436
- "lengthOfLeaseInYears",
437
- "currentGroundRent",
438
- "rentIncrease",
439
- "annualServiceCharge",
440
- "largeAdditionalExpense",
441
- "additionalFeesOnSale",
442
- "freeholderContactDetails",
443
- "managingAgentContactDetails",
444
- "managementCompanyDirectorRequirement"
445
- ]
445
+ "required": ["otherOwnershipDetails"],
446
+ "additionalProperties": false
446
447
  }
447
448
  ]
448
449
  }