@pdtf/schemas 3.4.0-4 → 3.4.0-6

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.4.0-4",
3
+ "version": "3.4.0-6",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -189,7 +189,7 @@
189
189
  },
190
190
  "participantStatus": {
191
191
  "type": "string",
192
- "enum": ["Active", "Removed", "Pending"]
192
+ "enum": ["Proposed", "Invited", "Active", "Removed"]
193
193
  }
194
194
  },
195
195
  "discriminator": {
@@ -4758,7 +4758,6 @@
4758
4758
  ],
4759
4759
  "nts2Required": [
4760
4760
  "nameOrOrganisation",
4761
- "address",
4762
4761
  "emailAddress"
4763
4762
  ],
4764
4763
  "properties": {
@@ -4775,7 +4774,6 @@
4775
4774
  "baspi4Ref": "A1.5.5.1.2",
4776
4775
  "baspi5Ref": "A1.5.6.1.2",
4777
4776
  "ta7Ref": "4.1c.0",
4778
- "nts2Ref": "A1.5.6.1.2",
4779
4777
  "title": "Address",
4780
4778
  "type": "object",
4781
4779
  "properties": {
@@ -4783,7 +4781,6 @@
4783
4781
  "baspi4Ref": "A1.5.5.1.2.1",
4784
4782
  "baspi5Ref": "A1.5.6.1.2.1",
4785
4783
  "ta7Ref": "4.1c.2",
4786
- "nts2Ref": "A1.5.6.1.2.1",
4787
4784
  "title": "Address line 1",
4788
4785
  "type": "string",
4789
4786
  "minLength": 1
@@ -4792,7 +4789,6 @@
4792
4789
  "baspi4Ref": "A1.5.5.1.2.2",
4793
4790
  "baspi5Ref": "A1.5.6.1.2.2",
4794
4791
  "ta7Ref": "4.1c.3",
4795
- "nts2Ref": "A1.5.6.1.2.2",
4796
4792
  "title": "Address line 2",
4797
4793
  "type": "string"
4798
4794
  },
@@ -4800,7 +4796,6 @@
4800
4796
  "baspi4Ref": "A1.5.5.1.2.3",
4801
4797
  "baspi5Ref": "A1.5.6.1.2.3",
4802
4798
  "ta7Ref": "4.1c.4",
4803
- "nts2Ref": "A1.5.6.1.2.3",
4804
4799
  "title": "Address line 3",
4805
4800
  "type": "string"
4806
4801
  },
@@ -4808,7 +4803,6 @@
4808
4803
  "baspi4Ref": "A1.5.5.1.2.4",
4809
4804
  "baspi5Ref": "A1.5.6.1.2.4",
4810
4805
  "ta7Ref": "4.1c.5",
4811
- "nts2Ref": "A1.5.6.1.2.4",
4812
4806
  "title": "Town",
4813
4807
  "type": "string"
4814
4808
  },
@@ -4816,7 +4810,6 @@
4816
4810
  "baspi4Ref": "A1.5.5.1.2.5",
4817
4811
  "baspi5Ref": "A1.5.6.1.2.5",
4818
4812
  "ta7Ref": "4.1c.6",
4819
- "nts2Ref": "A1.5.6.1.2.5",
4820
4813
  "title": "Postcode",
4821
4814
  "type": "string",
4822
4815
  "minLength": 1
@@ -4833,10 +4826,6 @@
4833
4826
  "baspi5Required": [
4834
4827
  "line1",
4835
4828
  "postcode"
4836
- ],
4837
- "nts2Required": [
4838
- "line1",
4839
- "postcode"
4840
4829
  ]
4841
4830
  },
4842
4831
  "telephone": {
@@ -4849,7 +4838,7 @@
4849
4838
  "baspi4Ref": "A1.5.5.1.3",
4850
4839
  "baspi5Ref": "A1.5.6.1.3",
4851
4840
  "ta7Ref": "4.1c.8",
4852
- "nts2Ref": "A1.5.6.1.3",
4841
+ "nts2Ref": "A1.5.6.1.2",
4853
4842
  "title": "Email address",
4854
4843
  "type": "string",
4855
4844
  "format": "email"
@@ -22487,10 +22476,7 @@
22487
22476
  "ntslRef": "C3.1.1.1",
22488
22477
  "ntsl2Ref": "C3.1.1.1",
22489
22478
  "type": "string",
22490
- "title": "Is the property impacted?",
22491
- "ntsTitle": "To your knowledge, is the property at risk of flooding of any type?",
22492
- "baspi4Title": "To your knowledge,, is the property at risk of flooding of any type?",
22493
- "baspi5Title": "To your knowledge, is the property at risk of flooding of any type?",
22479
+ "title": "To your knowledge, is the property at risk of flooding of any type?",
22494
22480
  "enum": ["Yes", "No"]
22495
22481
  }
22496
22482
  },
@@ -22528,7 +22514,10 @@
22528
22514
  "ntsl2Ref": "C3.1.1.2",
22529
22515
  "type": "string",
22530
22516
  "title": "Summary of risk",
22531
- "ntsTitle:": "Please provide details",
22517
+ "ntsTitle": "Please provide details",
22518
+ "nts2Title": "Please provide details",
22519
+ "ntslTitle": "Please provide details",
22520
+ "ntsl2Title": "Please provide details",
22532
22521
  "minLength": 1
22533
22522
  },
22534
22523
  "recommendations": {
@@ -22619,7 +22608,8 @@
22619
22608
  "baspi4Ref": "A11.1.2.1",
22620
22609
  "baspi5Ref": "A11.1.2.1",
22621
22610
  "ta6Ref": "7.1.1",
22622
- "title": "Has any part of the property (whether buildings or surrounding garden or land) ever been flooded?",
22611
+ "title": "Has the property been flooded in the last 5 years?",
22612
+ "ta6Title": "Has any part of the property (whether buildings or surrounding garden or land) ever been flooded?",
22623
22613
  "type": "string",
22624
22614
  "enum": ["Yes", "No"]
22625
22615
  }
@@ -22687,16 +22677,16 @@
22687
22677
  ]
22688
22678
  },
22689
22679
  "floodDefences": {
22690
- "nts2Ref": "C3.1.1.2",
22691
- "ntsl2Ref": "C3.1.1.2",
22680
+ "nts2Ref": "C3.1.1.3",
22681
+ "ntsl2Ref": "C3.1.1.3",
22692
22682
  "title": "Flood defences",
22693
22683
  "type": "object",
22694
22684
  "nts2Required": ["hasFloodDefences"],
22695
22685
  "ntsl2Required": ["hasFloodDefences"],
22696
22686
  "properties": {
22697
22687
  "hasFloodDefences": {
22698
- "nts2Ref": "C3.1.1.2.1",
22699
- "ntsl2Ref": "C3.1.1.2.1",
22688
+ "nts2Ref": "C3.1.1.3.1",
22689
+ "ntsl2Ref": "C3.1.1.3.1",
22700
22690
  "title": "Are there any defences to prevent flooding installed at the property?",
22701
22691
  "type": "string",
22702
22692
  "enum": ["Yes", "No"]
@@ -22719,8 +22709,8 @@
22719
22709
  "enum": ["Yes"]
22720
22710
  },
22721
22711
  "details": {
22722
- "nts2Ref": "C3.1.1.4",
22723
- "ntsl2Ref": "C3.1.1.4",
22712
+ "nts2Ref": "C3.1.1.3.2",
22713
+ "ntsl2Ref": "C3.1.1.3.2",
22724
22714
  "title": "Please provide details",
22725
22715
  "type": "string",
22726
22716
  "minLength": 1
@@ -5598,12 +5598,7 @@
5598
5598
  "floodRisk": {
5599
5599
  "required": [
5600
5600
  "riskIndicator"
5601
- ],
5602
- "properties": {
5603
- "riskIndicator": {
5604
- "title": "To your knowledge,, is the property at risk of flooding of any type?"
5605
- }
5606
- }
5601
+ ]
5607
5602
  },
5608
5603
  "historicalFlooding": {
5609
5604
  "baspi4Ref": "A11.1.2",
@@ -5749,12 +5749,7 @@
5749
5749
  "floodRisk": {
5750
5750
  "required": [
5751
5751
  "riskIndicator"
5752
- ],
5753
- "properties": {
5754
- "riskIndicator": {
5755
- "title": "To your knowledge, is the property at risk of flooding of any type?"
5756
- }
5757
- }
5752
+ ]
5758
5753
  },
5759
5754
  "historicalFlooding": {
5760
5755
  "baspi5Ref": "A11.1.2",
@@ -1893,7 +1893,8 @@
1893
1893
  ]
1894
1894
  },
1895
1895
  "summary": {
1896
- "ntsRef": "C3.1.1.2"
1896
+ "ntsRef": "C3.1.1.2",
1897
+ "title": "Please provide details"
1897
1898
  }
1898
1899
  },
1899
1900
  "required": [
@@ -1906,8 +1907,7 @@
1906
1907
  ],
1907
1908
  "properties": {
1908
1909
  "riskIndicator": {
1909
- "ntsRef": "C3.1.1.1",
1910
- "title": "To your knowledge, is the property at risk of flooding of any type?"
1910
+ "ntsRef": "C3.1.1.1"
1911
1911
  }
1912
1912
  }
1913
1913
  },
@@ -453,39 +453,14 @@
453
453
  "nts2Ref": "A1.5.6.1",
454
454
  "required": [
455
455
  "nameOrOrganisation",
456
- "address",
457
456
  "emailAddress"
458
457
  ],
459
458
  "properties": {
460
459
  "nameOrOrganisation": {
461
460
  "nts2Ref": "A1.5.6.1.1"
462
461
  },
463
- "address": {
464
- "nts2Ref": "A1.5.6.1.2",
465
- "required": [
466
- "line1",
467
- "postcode"
468
- ],
469
- "properties": {
470
- "line1": {
471
- "nts2Ref": "A1.5.6.1.2.1"
472
- },
473
- "line2": {
474
- "nts2Ref": "A1.5.6.1.2.2"
475
- },
476
- "line3": {
477
- "nts2Ref": "A1.5.6.1.2.3"
478
- },
479
- "town": {
480
- "nts2Ref": "A1.5.6.1.2.4"
481
- },
482
- "postcode": {
483
- "nts2Ref": "A1.5.6.1.2.5"
484
- }
485
- }
486
- },
487
462
  "emailAddress": {
488
- "nts2Ref": "A1.5.6.1.3"
463
+ "nts2Ref": "A1.5.6.1.2"
489
464
  }
490
465
  }
491
466
  }
@@ -2435,7 +2410,8 @@
2435
2410
  ]
2436
2411
  },
2437
2412
  "summary": {
2438
- "nts2Ref": "C3.1.1.2"
2413
+ "nts2Ref": "C3.1.1.2",
2414
+ "title": "Please provide details"
2439
2415
  }
2440
2416
  },
2441
2417
  "required": [
@@ -2497,7 +2473,7 @@
2497
2473
  }
2498
2474
  },
2499
2475
  "floodDefences": {
2500
- "nts2Ref": "C3.1.1.2",
2476
+ "nts2Ref": "C3.1.1.3",
2501
2477
  "discriminator": {
2502
2478
  "propertyName": "hasFloodDefences"
2503
2479
  },
@@ -2519,7 +2495,7 @@
2519
2495
  ]
2520
2496
  },
2521
2497
  "details": {
2522
- "nts2Ref": "C3.1.1.4"
2498
+ "nts2Ref": "C3.1.1.3.2"
2523
2499
  }
2524
2500
  },
2525
2501
  "required": [
@@ -2532,7 +2508,7 @@
2532
2508
  ],
2533
2509
  "properties": {
2534
2510
  "hasFloodDefences": {
2535
- "nts2Ref": "C3.1.1.2.1"
2511
+ "nts2Ref": "C3.1.1.3.1"
2536
2512
  }
2537
2513
  }
2538
2514
  }
@@ -1553,7 +1553,8 @@
1553
1553
  ]
1554
1554
  },
1555
1555
  "summary": {
1556
- "ntslRef": "C3.1.1.2"
1556
+ "ntslRef": "C3.1.1.2",
1557
+ "title": "Please provide details"
1557
1558
  }
1558
1559
  },
1559
1560
  "required": [
@@ -1915,7 +1915,8 @@
1915
1915
  ]
1916
1916
  },
1917
1917
  "summary": {
1918
- "ntsl2Ref": "C3.1.1.2"
1918
+ "ntsl2Ref": "C3.1.1.2",
1919
+ "title": "Please provide details"
1919
1920
  }
1920
1921
  },
1921
1922
  "required": [
@@ -1977,7 +1978,7 @@
1977
1978
  }
1978
1979
  },
1979
1980
  "floodDefences": {
1980
- "ntsl2Ref": "C3.1.1.2",
1981
+ "ntsl2Ref": "C3.1.1.3",
1981
1982
  "discriminator": {
1982
1983
  "propertyName": "hasFloodDefences"
1983
1984
  },
@@ -1999,7 +2000,7 @@
1999
2000
  ]
2000
2001
  },
2001
2002
  "details": {
2002
- "ntsl2Ref": "C3.1.1.4"
2003
+ "ntsl2Ref": "C3.1.1.3.2"
2003
2004
  }
2004
2005
  },
2005
2006
  "required": [
@@ -2012,7 +2013,7 @@
2012
2013
  ],
2013
2014
  "properties": {
2014
2015
  "hasFloodDefences": {
2015
- "ntsl2Ref": "C3.1.1.2.1"
2016
+ "ntsl2Ref": "C3.1.1.3.1"
2016
2017
  }
2017
2018
  }
2018
2019
  }
@@ -3172,7 +3172,8 @@
3172
3172
  ],
3173
3173
  "properties": {
3174
3174
  "hasBeenFlooded": {
3175
- "ta6Ref": "7.1.1"
3175
+ "ta6Ref": "7.1.1",
3176
+ "title": "Has any part of the property (whether buildings or surrounding garden or land) ever been flooded?"
3176
3177
  }
3177
3178
  }
3178
3179
  }
@@ -186,9 +186,10 @@
186
186
  "participantStatus": {
187
187
  "type": "string",
188
188
  "enum": [
189
+ "Proposed",
190
+ "Invited",
189
191
  "Active",
190
- "Removed",
191
- "Pending"
192
+ "Removed"
192
193
  ]
193
194
  }
194
195
  },
@@ -18231,7 +18232,7 @@
18231
18232
  "properties": {
18232
18233
  "riskIndicator": {
18233
18234
  "type": "string",
18234
- "title": "Is the property impacted?",
18235
+ "title": "To your knowledge, is the property at risk of flooding of any type?",
18235
18236
  "enum": [
18236
18237
  "Yes",
18237
18238
  "No"
@@ -18269,7 +18270,6 @@
18269
18270
  "summary": {
18270
18271
  "type": "string",
18271
18272
  "title": "Summary of risk",
18272
- "ntsTitle:": "Please provide details",
18273
18273
  "minLength": 1
18274
18274
  },
18275
18275
  "recommendations": {
@@ -18338,7 +18338,7 @@
18338
18338
  "type": "object",
18339
18339
  "properties": {
18340
18340
  "hasBeenFlooded": {
18341
- "title": "Has any part of the property (whether buildings or surrounding garden or land) ever been flooded?",
18341
+ "title": "Has the property been flooded in the last 5 years?",
18342
18342
  "type": "string",
18343
18343
  "enum": [
18344
18344
  "Yes",