@pdtf/schemas 2.3.0-3 → 2.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "2.3.0-3",
3
+ "version": "2.3.0",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -256,10 +256,14 @@
256
256
  },
257
257
  "isNewBuild": {
258
258
  "title": "Is the property a New Build?",
259
- "yesNo": {
260
- "type": "string",
261
- "enum": ["Yes", "No"]
259
+ "type": "object",
260
+ "properties": {
261
+ "yesNo": {
262
+ "type": "string",
263
+ "enum": ["Yes", "No"]
264
+ }
262
265
  }
266
+
263
267
  },
264
268
  "location": {
265
269
  "title": "Geographical location",
@@ -17733,6 +17737,11 @@
17733
17737
  "piqRef": "A7.1.2",
17734
17738
  "title": "Supplier",
17735
17739
  "type": "string"
17740
+ },
17741
+ "mpan": {
17742
+ "title": "Meter Point Administration Number (MPAN)",
17743
+ "description": "Your MPAN is on your electricity or dual fuel bill, usually in a box marked ‘Supply Number’. It’s 21 digits long and begins with ‘S’. You’ll only need the last 12 or 13 digits.",
17744
+ "type": "integer"
17736
17745
  }
17737
17746
  },
17738
17747
  "ta6Required": ["supplier"]
@@ -17801,6 +17810,11 @@
17801
17810
  "piqRef": "A7.1.4",
17802
17811
  "title": "Supplier",
17803
17812
  "type": "string"
17813
+ },
17814
+ "mprn": {
17815
+ "title": "Meter Point Reference Number (MPRN)",
17816
+ "description": "You can find your property’s MPRN on your gas or dual fuel bill. It’s usually marked ‘Meter Point Reference Number’ and is between six and 10 digits long.",
17817
+ "type": "integer"
17804
17818
  }
17805
17819
  },
17806
17820
  "ta6Required": ["supplier"]
@@ -19352,7 +19366,7 @@
19352
19366
  "type": "object",
19353
19367
  "properties": {
19354
19368
  "yesNo": {
19355
- "baspiRef": "A8.1.2.1.2",
19369
+ "baspiRef": "A8.1.2.1.1.1",
19356
19370
  "ta6Ref": "6.4a1",
19357
19371
  "piqRef": "A8.1a1",
19358
19372
  "type": "string",
@@ -19379,7 +19393,7 @@
19379
19393
  "enum": ["Yes"]
19380
19394
  },
19381
19395
  "details": {
19382
- "baspiRef": "A8.1.2.1.3",
19396
+ "baspiRef": "A8.1.2.1.1.2",
19383
19397
  "ta6Ref": "6.4.2",
19384
19398
  "piqRef": "A8.1a1.1",
19385
19399
  "title": "Provide details",
@@ -19393,14 +19407,14 @@
19393
19407
  ]
19394
19408
  },
19395
19409
  "subjectToHighExcesses": {
19396
- "baspiRef": "A8.1.1.2",
19410
+ "baspiRef": "A8.1.2.1.2",
19397
19411
  "ta6Ref": "6.4b",
19398
19412
  "piqRef": "A8.1b",
19399
19413
  "title": "Subject to high excesses?",
19400
19414
  "type": "object",
19401
19415
  "properties": {
19402
19416
  "yesNo": {
19403
- "baspiRef": "A8.1.1.2.1",
19417
+ "baspiRef": "A8.1.2.1.2.1",
19404
19418
  "ta6Ref": "6.4b1",
19405
19419
  "piqRef": "A8.1b1",
19406
19420
  "type": "string",
@@ -20086,7 +20100,7 @@
20086
20100
  "rightsOfSupport": {
20087
20101
  "baspiRef": "A10.4.2b",
20088
20102
  "rdsRef": "Tenure/Rights,Tenure/Restrictions,Tenure/Responsibilities",
20089
- "ta6Ref": "8.4a",
20103
+ "ta6Ref": "8.4b",
20090
20104
  "piqRef": "A10.5b",
20091
20105
  "title": "Rights of support from ajoining properties",
20092
20106
  "type": "object",
@@ -20178,7 +20192,7 @@
20178
20192
  "rightsToTakeFromLand": {
20179
20193
  "baspiRef": "A10.4.3b",
20180
20194
  "rdsRef": "Tenure/Rights,Tenure/Restrictions,Tenure/Responsibilities",
20181
- "ta6Ref": "8.5b",
20195
+ "ta6Ref": "8.5c",
20182
20196
  "piqRef": "A10.5f",
20183
20197
  "title": "Other people's rights to take things from the land (such as timber, hay or fish)",
20184
20198
  "type": "object",
@@ -21381,14 +21395,14 @@
21381
21395
  "enum": ["No"]
21382
21396
  },
21383
21397
  "details": {
21384
- "baspiRef": "B2.1.1",
21398
+ "baspiRef": "B2.1.5",
21385
21399
  "ta6Ref": "1.2.1",
21386
21400
  "title": "Please indicate ownership or those you have repaired by written description or marking them on a plan of the property",
21387
21401
  "type": "string",
21388
21402
  "minLength": 1
21389
21403
  },
21390
21404
  "attachments": {
21391
- "baspiRef": "B2.1.2",
21405
+ "baspiRef": "B2.1.6",
21392
21406
  "ta6Ref": "1.2.2",
21393
21407
  "title": "Attachments",
21394
21408
  "type": "string",
@@ -22407,7 +22421,7 @@
22407
22421
  "ta6Ref": "5.1",
22408
22422
  "rdsRef": "Certificates",
22409
22423
  "piqRef": "B5.1",
22410
- "title": "Are there any valid guarantees or warranties relating to this property?",
22424
+ "title": "Are there any valid guarantees, warranties or indemnity insurances relating to this property?",
22411
22425
  "type": "string",
22412
22426
  "enum": ["Yes", "No"]
22413
22427
  }
@@ -23098,7 +23112,7 @@
23098
23112
  "enum": ["Yes"]
23099
23113
  },
23100
23114
  "aged17OrOverNames": {
23101
- "baspiRef": "B6.2.1",
23115
+ "baspiRef": "B6.2.2",
23102
23116
  "ta6Ref": "11.3",
23103
23117
  "piqRef": "B8.1.1",
23104
23118
  "title": "Please provide their full names and ages.",
@@ -23106,7 +23120,7 @@
23106
23120
  "minLength": 1
23107
23121
  },
23108
23122
  "aged17OrOverTenantsOrLodgers": {
23109
- "baspiRef": "B6.2.2",
23123
+ "baspiRef": "B6.2.3",
23110
23124
  "rdsRef": "Property/Flags",
23111
23125
  "ta6Ref": "11.4",
23112
23126
  "title": "Are any of them tenants or lodgers?",
@@ -23124,14 +23138,14 @@
23124
23138
  "ta6Required": ["yesNo"]
23125
23139
  },
23126
23140
  "vacantPossession": {
23127
- "baspiRef": "B6.2.2",
23141
+ "baspiRef": "B6.2.4",
23128
23142
  "ta6Ref": "11.5",
23129
23143
  "type": "object",
23130
23144
  "baspiRequired": ["soldWithVacantPossession"],
23131
23145
  "ta6Required": ["soldWithVacantPossession"],
23132
23146
  "properties": {
23133
23147
  "soldWithVacantPossession": {
23134
- "baspiRef": "B6.4",
23148
+ "baspiRef": "B6.2.4.1",
23135
23149
  "ta6Ref": "11.5.1",
23136
23150
  "type": "string",
23137
23151
  "title": "Is the property being sold with vacant possession?",
@@ -23148,13 +23162,13 @@
23148
23162
  "enum": ["No"]
23149
23163
  },
23150
23164
  "details": {
23151
- "baspiRef": "B6.4.1",
23165
+ "baspiRef": "B6.2.4.2",
23152
23166
  "title": "Please provide details (e.g. the property is sold let to tenants)",
23153
23167
  "type": "string",
23154
23168
  "minLength": 1
23155
23169
  },
23156
23170
  "attachments": {
23157
- "baspiRef": "B6.4.2",
23171
+ "baspiRef": "B6.2.4.3",
23158
23172
  "title": "If applicable please supply a copy of the tenancy agreement together with a copy of any notice to quit which has been served upon them.",
23159
23173
  "type": "string",
23160
23174
  "enum": ["Attached", "To follow"]
@@ -5779,7 +5779,7 @@
5779
5779
  ]
5780
5780
  },
5781
5781
  "details": {
5782
- "baspiRef": "A8.1.2.1.3",
5782
+ "baspiRef": "A8.1.2.1.1.2",
5783
5783
  "title": "Provide details"
5784
5784
  }
5785
5785
  },
@@ -5793,7 +5793,7 @@
5793
5793
  ],
5794
5794
  "properties": {
5795
5795
  "yesNo": {
5796
- "baspiRef": "A8.1.2.1.2",
5796
+ "baspiRef": "A8.1.2.1.1.1",
5797
5797
  "enum": [
5798
5798
  "Yes",
5799
5799
  "No"
@@ -5802,7 +5802,7 @@
5802
5802
  }
5803
5803
  },
5804
5804
  "subjectToHighExcesses": {
5805
- "baspiRef": "A8.1.1.2",
5805
+ "baspiRef": "A8.1.2.1.2",
5806
5806
  "title": "Subject to high excesses?",
5807
5807
  "discriminator": {
5808
5808
  "propertyName": "yesNo"
@@ -5839,7 +5839,7 @@
5839
5839
  ],
5840
5840
  "properties": {
5841
5841
  "yesNo": {
5842
- "baspiRef": "A8.1.1.2.1",
5842
+ "baspiRef": "A8.1.2.1.2.1",
5843
5843
  "enum": [
5844
5844
  "Yes",
5845
5845
  "No"
@@ -7774,11 +7774,11 @@
7774
7774
  ]
7775
7775
  },
7776
7776
  "details": {
7777
- "baspiRef": "B2.1.1",
7777
+ "baspiRef": "B2.1.5",
7778
7778
  "title": "Please indicate ownership or those you have repaired by written description or marking them on a plan of the property"
7779
7779
  },
7780
7780
  "attachments": {
7781
- "baspiRef": "B2.1.2",
7781
+ "baspiRef": "B2.1.6",
7782
7782
  "title": "Attachments",
7783
7783
  "enum": [
7784
7784
  "Attached",
@@ -9457,7 +9457,7 @@
9457
9457
  "properties": {
9458
9458
  "hasValidGuaranteesOrWarranties": {
9459
9459
  "baspiRef": "B5.1",
9460
- "title": "Are there any valid guarantees or warranties relating to this property?",
9460
+ "title": "Are there any valid guarantees, warranties or indemnity insurances relating to this property?",
9461
9461
  "enum": [
9462
9462
  "Yes",
9463
9463
  "No"
@@ -9512,11 +9512,11 @@
9512
9512
  ]
9513
9513
  },
9514
9514
  "aged17OrOverNames": {
9515
- "baspiRef": "B6.2.1",
9515
+ "baspiRef": "B6.2.2",
9516
9516
  "title": "Please provide their full names and ages."
9517
9517
  },
9518
9518
  "aged17OrOverTenantsOrLodgers": {
9519
- "baspiRef": "B6.2.2",
9519
+ "baspiRef": "B6.2.3",
9520
9520
  "title": "Are any of them tenants or lodgers?",
9521
9521
  "required": [
9522
9522
  "yesNo"
@@ -9532,7 +9532,7 @@
9532
9532
  }
9533
9533
  },
9534
9534
  "vacantPossession": {
9535
- "baspiRef": "B6.2.2",
9535
+ "baspiRef": "B6.2.4",
9536
9536
  "discriminator": {
9537
9537
  "propertyName": "soldWithVacantPossession"
9538
9538
  },
@@ -9545,11 +9545,11 @@
9545
9545
  ]
9546
9546
  },
9547
9547
  "details": {
9548
- "baspiRef": "B6.4.1",
9548
+ "baspiRef": "B6.2.4.2",
9549
9549
  "title": "Please provide details (e.g. the property is sold let to tenants)"
9550
9550
  },
9551
9551
  "attachments": {
9552
- "baspiRef": "B6.4.2",
9552
+ "baspiRef": "B6.2.4.3",
9553
9553
  "title": "If applicable please supply a copy of the tenancy agreement together with a copy of any notice to quit which has been served upon them.",
9554
9554
  "enum": [
9555
9555
  "Attached",
@@ -9651,7 +9651,7 @@
9651
9651
  ],
9652
9652
  "properties": {
9653
9653
  "soldWithVacantPossession": {
9654
- "baspiRef": "B6.4",
9654
+ "baspiRef": "B6.2.4.1",
9655
9655
  "title": "Is the property being sold with vacant possession?",
9656
9656
  "enum": [
9657
9657
  "Yes",
@@ -3484,7 +3484,7 @@
3484
3484
  "properties": {
3485
3485
  "hasValidGuaranteesOrWarranties": {
3486
3486
  "piqRef": "B5.1",
3487
- "title": "Are there any valid guarantees or warranties relating to this property?",
3487
+ "title": "Are there any valid guarantees, warranties or indemnity insurances relating to this property?",
3488
3488
  "enum": [
3489
3489
  "Yes",
3490
3490
  "No"
@@ -3471,7 +3471,7 @@
3471
3471
  "properties": {
3472
3472
  "hasValidGuaranteesOrWarranties": {
3473
3473
  "rdsRef": "Certificates",
3474
- "title": "Are there any valid guarantees or warranties relating to this property?",
3474
+ "title": "Are there any valid guarantees, warranties or indemnity insurances relating to this property?",
3475
3475
  "enum": [
3476
3476
  "Yes",
3477
3477
  "No"
@@ -3261,7 +3261,7 @@
3261
3261
  }
3262
3262
  },
3263
3263
  "rightsOfSupport": {
3264
- "ta6Ref": "8.4a",
3264
+ "ta6Ref": "8.4b",
3265
3265
  "title": "Rights of support from ajoining properties",
3266
3266
  "discriminator": {
3267
3267
  "propertyName": "yesNo"
@@ -3339,7 +3339,7 @@
3339
3339
  }
3340
3340
  },
3341
3341
  "rightsToTakeFromLand": {
3342
- "ta6Ref": "8.5b",
3342
+ "ta6Ref": "8.5c",
3343
3343
  "title": "Other people's rights to take things from the land (such as timber, hay or fish)",
3344
3344
  "discriminator": {
3345
3345
  "propertyName": "yesNo"
@@ -5114,7 +5114,7 @@
5114
5114
  "properties": {
5115
5115
  "hasValidGuaranteesOrWarranties": {
5116
5116
  "ta6Ref": "5.1",
5117
- "title": "Are there any valid guarantees or warranties relating to this property?",
5117
+ "title": "Are there any valid guarantees, warranties or indemnity insurances relating to this property?",
5118
5118
  "enum": [
5119
5119
  "Yes",
5120
5120
  "No"
@@ -170,12 +170,15 @@
170
170
  },
171
171
  "isNewBuild": {
172
172
  "title": "Is the property a New Build?",
173
- "yesNo": {
174
- "type": "string",
175
- "enum": [
176
- "Yes",
177
- "No"
178
- ]
173
+ "type": "object",
174
+ "properties": {
175
+ "yesNo": {
176
+ "type": "string",
177
+ "enum": [
178
+ "Yes",
179
+ "No"
180
+ ]
181
+ }
179
182
  }
180
183
  },
181
184
  "location": {
@@ -15637,6 +15640,11 @@
15637
15640
  "supplier": {
15638
15641
  "title": "Supplier",
15639
15642
  "type": "string"
15643
+ },
15644
+ "mpan": {
15645
+ "title": "Meter Point Administration Number (MPAN)",
15646
+ "description": "Your MPAN is on your electricity or dual fuel bill, usually in a box marked ‘Supply Number’. It’s 21 digits long and begins with ‘S’. You’ll only need the last 12 or 13 digits.",
15647
+ "type": "integer"
15640
15648
  }
15641
15649
  }
15642
15650
  },
@@ -15694,6 +15702,11 @@
15694
15702
  "supplier": {
15695
15703
  "title": "Supplier",
15696
15704
  "type": "string"
15705
+ },
15706
+ "mprn": {
15707
+ "title": "Meter Point Reference Number (MPRN)",
15708
+ "description": "You can find your property’s MPRN on your gas or dual fuel bill. It’s usually marked ‘Meter Point Reference Number’ and is between six and 10 digits long.",
15709
+ "type": "integer"
15697
15710
  }
15698
15711
  }
15699
15712
  },
@@ -19576,7 +19589,7 @@
19576
19589
  "type": "object",
19577
19590
  "properties": {
19578
19591
  "hasValidGuaranteesOrWarranties": {
19579
- "title": "Are there any valid guarantees or warranties relating to this property?",
19592
+ "title": "Are there any valid guarantees, warranties or indemnity insurances relating to this property?",
19580
19593
  "type": "string",
19581
19594
  "enum": [
19582
19595
  "Yes",
@@ -35,7 +35,9 @@
35
35
  },
36
36
  "uprn": {},
37
37
  "propertyType": {},
38
- "isNewBuild": {},
38
+ "isNewBuild": {
39
+ "yesNo": {}
40
+ },
39
41
  "location": {
40
42
  "latitude": {},
41
43
  "longitude": {},
@@ -1915,11 +1917,13 @@
1915
1917
  "mainsElectricity": {
1916
1918
  "yesNo": {},
1917
1919
  "supplier": {},
1920
+ "mpan": {},
1918
1921
  "dateToBeConnected": {}
1919
1922
  },
1920
1923
  "mainsGas": {
1921
1924
  "yesNo": {},
1922
1925
  "supplier": {},
1926
+ "mprn": {},
1923
1927
  "dateToBeConnected": {}
1924
1928
  },
1925
1929
  "lpg": {