@pdtf/schemas 3.0.0-30 → 3.0.0-32

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": "3.0.0-30",
3
+ "version": "3.0.0-32",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -272,7 +272,7 @@
272
272
  "uprn": {
273
273
  "baspiRef": "A1.1.5",
274
274
  "rdsRef": "Property/GUID/{name='UPRN',id=?}",
275
- "title": "Unique Property Reference Number ",
275
+ "title": "Unique Property Reference Number",
276
276
  "type": "integer"
277
277
  },
278
278
  "location": {
@@ -7141,10 +7141,11 @@
7141
7141
  "ta7Required": ["yesNoNotApplicable"],
7142
7142
  "properties": {
7143
7143
  "yesNoNotApplicable": {
7144
- "ta7Ref": "11.5.2",
7144
+ "ta7Ref": "11.5.1",
7145
7145
  "type": "string",
7146
7146
  "title": "",
7147
- "enum": ["Yes", "No", "Not applicable"]
7147
+ "enum": ["Yes", "No", "Not applicable"],
7148
+ "ta7Enum": ["Yes", "No"]
7148
7149
  }
7149
7150
  },
7150
7151
  "discriminator": {
@@ -7223,14 +7224,54 @@
7223
7224
  },
7224
7225
  "landlordConsentObtained": {
7225
7226
  "ta7Ref": "9.3",
7226
- "title": "Was the landlord’s consent for the alterations obtained? If Yes, please supply a copy.",
7227
- "type": "string",
7228
- "enum": [
7229
- "No",
7230
- "Not known",
7231
- "Not required",
7232
- "Attached",
7233
- "To follow"
7227
+ "title": "Was the landlord’s consent for the alterations obtained?",
7228
+ "type": "object",
7229
+ "properties": {
7230
+ "yesNo": {
7231
+ "ta7Ref": "9.3.1",
7232
+ "type": "string",
7233
+ "title": "",
7234
+ "enum": [
7235
+ "Yes",
7236
+ "No",
7237
+ "Not known",
7238
+ "Not required"
7239
+ ]
7240
+ }
7241
+ },
7242
+ "ta7Required": ["yesNo"],
7243
+ "discriminator": {
7244
+ "propertyName": "yesNo"
7245
+ },
7246
+ "oneOf": [
7247
+ {
7248
+ "properties": {
7249
+ "yesNo": {
7250
+ "enum": [
7251
+ "No",
7252
+ "Not known",
7253
+ "Not required"
7254
+ ]
7255
+ }
7256
+ }
7257
+ },
7258
+ {
7259
+ "properties": {
7260
+ "yesNo": {
7261
+ "enum": ["Yes"]
7262
+ },
7263
+ "attachments": {
7264
+ "ta7Ref": "9.3.2",
7265
+ "title": "Please supply a copy.",
7266
+ "type": "string",
7267
+ "enum": [
7268
+ "Attached",
7269
+ "To follow"
7270
+ ]
7271
+ }
7272
+ },
7273
+ "ta7Required": ["attachments"]
7274
+ }
7234
7275
  ]
7235
7276
  }
7236
7277
  },
@@ -7671,14 +7712,14 @@
7671
7712
  ],
7672
7713
  "properties": {
7673
7714
  "lease": {
7674
- "ta7Ref": "3.1a1",
7715
+ "ta7Ref": "3.1a",
7675
7716
  "title": "Please supply a copy of the lease.",
7676
7717
  "type": "string",
7677
7718
  "enum": ["Attached", "To follow"]
7678
7719
  },
7679
7720
  "deedsOfVariation": {
7680
7721
  "lpe1Ref": "8.9",
7681
- "ta7Ref": "3.1a2",
7722
+ "ta7Ref": "3.1b",
7682
7723
  "title": "Any Deeds of Variation or other document varying the terms of the lease of this Property.",
7683
7724
  "ta7Title": "Any supplemental deeds.",
7684
7725
  "type": "string",
@@ -7761,26 +7802,90 @@
7761
7802
  },
7762
7803
  "noticeOfSale": {
7763
7804
  "ta7Ref": "6.1",
7764
- "title": "Has the seller received a notice that the landlord wants to sell the building? If Yes, please supply a copy.",
7765
- "type": "string",
7766
- "enum": [
7767
- "Yes",
7768
- "No",
7769
- "Attached",
7770
- "To follow",
7771
- "Lost"
7805
+ "title": "Has the seller received a notice that the landlord wants to sell the building?",
7806
+ "type": "object",
7807
+ "properties": {
7808
+ "yesNo": {
7809
+ "ta7Ref": "6.1.1",
7810
+ "type": "string",
7811
+ "title": "",
7812
+ "enum": ["Yes", "No"]
7813
+ }
7814
+ },
7815
+ "ta7Required": ["yesNo"],
7816
+ "discriminator": {
7817
+ "propertyName": "yesNo"
7818
+ },
7819
+ "oneOf": [
7820
+ {
7821
+ "properties": {
7822
+ "yesNo": {
7823
+ "enum": ["No"]
7824
+ }
7825
+ }
7826
+ },
7827
+ {
7828
+ "properties": {
7829
+ "yesNo": {
7830
+ "enum": ["Yes"]
7831
+ },
7832
+ "attachments": {
7833
+ "ta7Ref": "6.1.2",
7834
+ "title": "Please supply a copy.",
7835
+ "type": "string",
7836
+ "enum": [
7837
+ "Attached",
7838
+ "To follow",
7839
+ "Lost"
7840
+ ]
7841
+ }
7842
+ },
7843
+ "ta7Required": ["attachments"]
7844
+ }
7772
7845
  ]
7773
7846
  },
7774
7847
  "noticeOfBuildingCondition": {
7775
7848
  "ta7Ref": "6.2",
7776
- "title": "Has the seller received any other notice about the building, its use, its condition or its repair and maintenance? If Yes, please supply a copy.",
7777
- "type": "string",
7778
- "enum": [
7779
- "Yes",
7780
- "No",
7781
- "Attached",
7782
- "To follow",
7783
- "Lost"
7849
+ "title": "Has the seller received any other notice about the building, its use, its condition or its repair and maintenance?",
7850
+ "type": "object",
7851
+ "properties": {
7852
+ "yesNo": {
7853
+ "ta7Ref": "6.2.1",
7854
+ "type": "string",
7855
+ "title": "",
7856
+ "enum": ["Yes", "No"]
7857
+ }
7858
+ },
7859
+ "ta7Required": ["yesNo"],
7860
+ "discriminator": {
7861
+ "propertyName": "yesNo"
7862
+ },
7863
+ "oneOf": [
7864
+ {
7865
+ "properties": {
7866
+ "yesNo": {
7867
+ "enum": ["No"]
7868
+ }
7869
+ }
7870
+ },
7871
+ {
7872
+ "properties": {
7873
+ "yesNo": {
7874
+ "enum": ["Yes"]
7875
+ },
7876
+ "attachments": {
7877
+ "ta7Ref": "6.2.2",
7878
+ "title": "Please supply a copy.",
7879
+ "type": "string",
7880
+ "enum": [
7881
+ "Attached",
7882
+ "To follow",
7883
+ "Lost"
7884
+ ]
7885
+ }
7886
+ },
7887
+ "ta7Required": ["attachments"]
7888
+ }
7784
7889
  ]
7785
7890
  },
7786
7891
  "managedAreasBuildingsInsurancePolicy": {
@@ -12342,6 +12447,7 @@
12342
12447
  "enum": ["Included"]
12343
12448
  },
12344
12449
  "fittedOrFreestanding": {
12450
+ "ta10Ref": "xxx",
12345
12451
  "type": "object",
12346
12452
  "properties": {
12347
12453
  "isFittedOrFreestanding": {
@@ -12395,6 +12501,7 @@
12395
12501
  "type": "number"
12396
12502
  },
12397
12503
  "fittedOrFreestanding": {
12504
+ "ta10Ref": "xxx",
12398
12505
  "type": "object",
12399
12506
  "properties": {
12400
12507
  "isFittedOrFreestanding": {
@@ -12474,6 +12581,7 @@
12474
12581
  "enum": ["Included"]
12475
12582
  },
12476
12583
  "fittedOrFreestanding": {
12584
+ "ta10Ref": "xxx",
12477
12585
  "type": "object",
12478
12586
  "properties": {
12479
12587
  "isFittedOrFreestanding": {
@@ -12527,6 +12635,7 @@
12527
12635
  "type": "number"
12528
12636
  },
12529
12637
  "fittedOrFreestanding": {
12638
+ "ta10Ref": "xxx",
12530
12639
  "type": "object",
12531
12640
  "properties": {
12532
12641
  "isFittedOrFreestanding": {
@@ -12606,6 +12715,7 @@
12606
12715
  "enum": ["Included"]
12607
12716
  },
12608
12717
  "fittedOrFreestanding": {
12718
+ "ta10Ref": "xxx",
12609
12719
  "type": "object",
12610
12720
  "properties": {
12611
12721
  "isFittedOrFreestanding": {
@@ -12659,6 +12769,7 @@
12659
12769
  "type": "number"
12660
12770
  },
12661
12771
  "fittedOrFreestanding": {
12772
+ "ta10Ref": "xxx",
12662
12773
  "type": "object",
12663
12774
  "properties": {
12664
12775
  "isFittedOrFreestanding": {
@@ -12738,6 +12849,7 @@
12738
12849
  "enum": ["Included"]
12739
12850
  },
12740
12851
  "fittedOrFreestanding": {
12852
+ "ta10Ref": "xxx",
12741
12853
  "type": "object",
12742
12854
  "properties": {
12743
12855
  "isFittedOrFreestanding": {
@@ -12791,6 +12903,7 @@
12791
12903
  "type": "number"
12792
12904
  },
12793
12905
  "fittedOrFreestanding": {
12906
+ "ta10Ref": "xxx",
12794
12907
  "type": "object",
12795
12908
  "properties": {
12796
12909
  "isFittedOrFreestanding": {
@@ -12870,6 +12983,7 @@
12870
12983
  "enum": ["Included"]
12871
12984
  },
12872
12985
  "fittedOrFreestanding": {
12986
+ "ta10Ref": "xxx",
12873
12987
  "type": "object",
12874
12988
  "properties": {
12875
12989
  "isFittedOrFreestanding": {
@@ -12923,6 +13037,7 @@
12923
13037
  "type": "number"
12924
13038
  },
12925
13039
  "fittedOrFreestanding": {
13040
+ "ta10Ref": "xxx",
12926
13041
  "type": "object",
12927
13042
  "properties": {
12928
13043
  "isFittedOrFreestanding": {
@@ -13002,6 +13117,7 @@
13002
13117
  "enum": ["Included"]
13003
13118
  },
13004
13119
  "fittedOrFreestanding": {
13120
+ "ta10Ref": "xxx",
13005
13121
  "type": "object",
13006
13122
  "properties": {
13007
13123
  "isFittedOrFreestanding": {
@@ -13055,6 +13171,7 @@
13055
13171
  "type": "number"
13056
13172
  },
13057
13173
  "fittedOrFreestanding": {
13174
+ "ta10Ref": "xxx",
13058
13175
  "type": "object",
13059
13176
  "properties": {
13060
13177
  "isFittedOrFreestanding": {
@@ -13134,6 +13251,7 @@
13134
13251
  "enum": ["Included"]
13135
13252
  },
13136
13253
  "fittedOrFreestanding": {
13254
+ "ta10Ref": "xxx",
13137
13255
  "type": "object",
13138
13256
  "properties": {
13139
13257
  "isFittedOrFreestanding": {
@@ -13187,6 +13305,7 @@
13187
13305
  "type": "number"
13188
13306
  },
13189
13307
  "fittedOrFreestanding": {
13308
+ "ta10Ref": "xxx",
13190
13309
  "type": "object",
13191
13310
  "properties": {
13192
13311
  "isFittedOrFreestanding": {
@@ -13266,6 +13385,7 @@
13266
13385
  "enum": ["Included"]
13267
13386
  },
13268
13387
  "fittedOrFreestanding": {
13388
+ "ta10Ref": "xxx",
13269
13389
  "type": "object",
13270
13390
  "properties": {
13271
13391
  "isFittedOrFreestanding": {
@@ -13319,6 +13439,7 @@
13319
13439
  "type": "number"
13320
13440
  },
13321
13441
  "fittedOrFreestanding": {
13442
+ "ta10Ref": "xxx",
13322
13443
  "type": "object",
13323
13444
  "properties": {
13324
13445
  "isFittedOrFreestanding": {
@@ -13398,6 +13519,7 @@
13398
13519
  "enum": ["Included"]
13399
13520
  },
13400
13521
  "fittedOrFreestanding": {
13522
+ "ta10Ref": "xxx",
13401
13523
  "type": "object",
13402
13524
  "properties": {
13403
13525
  "isFittedOrFreestanding": {
@@ -13451,6 +13573,7 @@
13451
13573
  "type": "number"
13452
13574
  },
13453
13575
  "fittedOrFreestanding": {
13576
+ "ta10Ref": "xxx",
13454
13577
  "type": "object",
13455
13578
  "properties": {
13456
13579
  "isFittedOrFreestanding": {
@@ -13530,6 +13653,7 @@
13530
13653
  "enum": ["Included"]
13531
13654
  },
13532
13655
  "fittedOrFreestanding": {
13656
+ "ta10Ref": "xxx",
13533
13657
  "type": "object",
13534
13658
  "properties": {
13535
13659
  "isFittedOrFreestanding": {
@@ -13583,6 +13707,7 @@
13583
13707
  "type": "number"
13584
13708
  },
13585
13709
  "fittedOrFreestanding": {
13710
+ "ta10Ref": "xxx",
13586
13711
  "type": "object",
13587
13712
  "properties": {
13588
13713
  "isFittedOrFreestanding": {
@@ -13668,6 +13793,7 @@
13668
13793
  "enum": ["Included"]
13669
13794
  },
13670
13795
  "fittedOrFreestanding": {
13796
+ "ta10Ref": "xxx",
13671
13797
  "type": "object",
13672
13798
  "properties": {
13673
13799
  "isFittedOrFreestanding": {
@@ -13721,6 +13847,7 @@
13721
13847
  "type": "number"
13722
13848
  },
13723
13849
  "fittedOrFreestanding": {
13850
+ "ta10Ref": "xxx",
13724
13851
  "type": "object",
13725
13852
  "properties": {
13726
13853
  "isFittedOrFreestanding": {
@@ -18308,6 +18435,7 @@
18308
18435
  "yesNo": {
18309
18436
  "ntsRef": "B3.7.1",
18310
18437
  "baspiRef": "A7.1.0.8.1",
18438
+ "ta6Ref": "4.6",
18311
18439
  "type": "string",
18312
18440
  "title": "",
18313
18441
  "enum": ["Yes", "To be connected", "No"],
@@ -18808,7 +18936,7 @@
18808
18936
  "type": "object",
18809
18937
  "ntsRef": "B3.2.1.1",
18810
18938
  "baspiRef": "A7.",
18811
- "ta6Ref": "13.3b1",
18939
+ "ta6Ref": "13.3b",
18812
18940
  "ntsRequired": ["isSupplyMetered"],
18813
18941
  "baspiRequired": ["isSupplyMetered"],
18814
18942
  "ta6Required": ["isSupplyMetered"],
@@ -18816,7 +18944,7 @@
18816
18944
  "properties": {
18817
18945
  "isSupplyMetered": {
18818
18946
  "ntsRef": "3.2.3",
18819
- "ta6Ref": "13.3b2",
18947
+ "ta6Ref": "13.3b",
18820
18948
  "baspiRef": "B4.6.2",
18821
18949
  "title": "Is the supply metered?",
18822
18950
  "type": "string",
@@ -18841,7 +18969,7 @@
18841
18969
  },
18842
18970
  "location": {
18843
18971
  "baspiRef": "4.6.2.1",
18844
- "ta6Ref": "13.3b3",
18972
+ "ta6Ref": "13.3b2",
18845
18973
  "con29DWRef": "3.6",
18846
18974
  "title": "Describe the location of the meter",
18847
18975
  "type": "string",
@@ -19149,7 +19277,7 @@
19149
19277
  "minLength": 1
19150
19278
  },
19151
19279
  "supplier": {
19152
- "ta6Ref": "13.4a",
19280
+ "ta6Ref": "13.4.2",
19153
19281
  "baspiRef": "A7.1.0.11.2",
19154
19282
  "title": "Supplier",
19155
19283
  "type": "string",
@@ -21717,7 +21845,7 @@
21717
21845
  "historicalFlooding": {
21718
21846
  "ntsRef": "C3.1.1.2",
21719
21847
  "baspiRef": "A11.1.2",
21720
- "ta6Ref": "7.1.1",
21848
+ "ta6Ref": "7.1",
21721
21849
  "title": "Historical flooding",
21722
21850
  "type": "object",
21723
21851
  "baspiRequired": ["hasBeenFlooded"],
@@ -21727,7 +21855,7 @@
21727
21855
  "hasBeenFlooded": {
21728
21856
  "ntsRef": "C3.1.1.2.1",
21729
21857
  "baspiRef": "A11.1.2.1",
21730
- "ta6Ref": "7.1.1.1",
21858
+ "ta6Ref": "7.1.1",
21731
21859
  "title": "Has any part of the property (whether buildings or surrounding garden or land) ever been flooded?",
21732
21860
  "type": "string",
21733
21861
  "enum": ["Yes", "No"]