@pdtf/schemas 3.0.0-4 → 3.0.0-5

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-4",
3
+ "version": "3.0.0-5",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -39,6 +39,9 @@
39
39
  "town": "HARPENDEN",
40
40
  "postcode": "AL3 5AF"
41
41
  },
42
+ "buildInformation": {
43
+ "building": { "propertyType": "House", "builtForm": "Detached" }
44
+ },
42
45
  "delayFactors": {
43
46
  "hasDelayFactors": { "yesNo": "No" }
44
47
  },
@@ -452,14 +452,15 @@
452
452
  "ntsRef": "B1.1",
453
453
  "title": "About the property building",
454
454
  "type": "object",
455
+ "ntsRequired": ["building"],
455
456
  "properties": {
456
- "propertyType": {
457
+ "building": {
457
458
  "ntsRef": "B1.1.1",
458
- "title": "Type of property",
459
+ "title": "Building informatiom",
459
460
  "type": "object",
460
- "ntsRequired": ["mainType", "builtForm"],
461
+ "ntsRequired": ["propertyType"],
461
462
  "properties": {
462
- "mainType": {
463
+ "propertyType": {
463
464
  "type": "string",
464
465
  "enum": [
465
466
  "House",
@@ -472,12 +473,12 @@
472
473
  }
473
474
  },
474
475
  "discriminator": {
475
- "propertyName": "mainType"
476
+ "propertyName": "propertyType"
476
477
  },
477
478
  "oneOf": [
478
479
  {
479
480
  "properties": {
480
- "mainType": {
481
+ "propertyType": {
481
482
  "enum": ["Other"]
482
483
  },
483
484
  "otherType": {
@@ -491,7 +492,7 @@
491
492
  },
492
493
  {
493
494
  "properties": {
494
- "mainType": {
495
+ "propertyType": {
495
496
  "enum": ["House", "Bungalow"]
496
497
  },
497
498
  "builtForm": {
@@ -506,11 +507,12 @@
506
507
  "Other"
507
508
  ]
508
509
  }
509
- }
510
+ },
511
+ "ntsRequired": ["builtForm"]
510
512
  },
511
513
  {
512
514
  "properties": {
513
- "mainType": {
515
+ "propertyType": {
514
516
  "enum": ["Maisonette", "Flat"]
515
517
  },
516
518
  "builtForm": {
@@ -537,7 +539,11 @@
537
539
  "type": "integer"
538
540
  }
539
541
  },
540
- "ntsRequired": ["numberOfFloors", "entranceFloor"]
542
+ "ntsRequired": [
543
+ "builtForm",
544
+ "numberOfFloors",
545
+ "entranceFloor"
546
+ ]
541
547
  }
542
548
  ]
543
549
  },
@@ -8205,6 +8211,7 @@
8205
8211
  }
8206
8212
  },
8207
8213
  "baspiRequired": ["yesNo"],
8214
+ "ntsRequired": ["yesNo"],
8208
8215
  "ta6Required": ["yesNo"],
8209
8216
  "discriminator": {
8210
8217
  "propertyName": "yesNo"
@@ -69,17 +69,20 @@
69
69
  "buildInformation": {
70
70
  "ntsRef": "B1.1",
71
71
  "title": "About the property building",
72
+ "required": [
73
+ "building"
74
+ ],
72
75
  "properties": {
73
- "propertyType": {
76
+ "building": {
74
77
  "ntsRef": "B1.1.1",
75
- "title": "Type of property",
78
+ "title": "Building informatiom",
76
79
  "discriminator": {
77
- "propertyName": "mainType"
80
+ "propertyName": "propertyType"
78
81
  },
79
82
  "oneOf": [
80
83
  {
81
84
  "properties": {
82
- "mainType": {
85
+ "propertyType": {
83
86
  "enum": [
84
87
  "Other"
85
88
  ]
@@ -95,7 +98,7 @@
95
98
  },
96
99
  {
97
100
  "properties": {
98
- "mainType": {
101
+ "propertyType": {
99
102
  "enum": [
100
103
  "House",
101
104
  "Bungalow"
@@ -112,11 +115,14 @@
112
115
  "Other"
113
116
  ]
114
117
  }
115
- }
118
+ },
119
+ "required": [
120
+ "builtForm"
121
+ ]
116
122
  },
117
123
  {
118
124
  "properties": {
119
- "mainType": {
125
+ "propertyType": {
120
126
  "enum": [
121
127
  "Maisonette",
122
128
  "Flat"
@@ -144,14 +150,14 @@
144
150
  }
145
151
  },
146
152
  "required": [
153
+ "builtForm",
147
154
  "numberOfFloors",
148
155
  "entranceFloor"
149
156
  ]
150
157
  }
151
158
  ],
152
159
  "required": [
153
- "mainType",
154
- "builtForm"
160
+ "propertyType"
155
161
  ]
156
162
  },
157
163
  "rooms": {
@@ -685,6 +691,9 @@
685
691
  "consentsObtained"
686
692
  ]
687
693
  }
694
+ ],
695
+ "required": [
696
+ "yesNo"
688
697
  ]
689
698
  }
690
699
  }
@@ -351,11 +351,11 @@
351
351
  "title": "About the property building",
352
352
  "type": "object",
353
353
  "properties": {
354
- "propertyType": {
355
- "title": "Type of property",
354
+ "building": {
355
+ "title": "Building informatiom",
356
356
  "type": "object",
357
357
  "properties": {
358
- "mainType": {
358
+ "propertyType": {
359
359
  "type": "string",
360
360
  "enum": [
361
361
  "House",
@@ -370,7 +370,7 @@
370
370
  "oneOf": [
371
371
  {
372
372
  "properties": {
373
- "mainType": {
373
+ "propertyType": {
374
374
  "enum": [
375
375
  "Other"
376
376
  ]
@@ -384,7 +384,7 @@
384
384
  },
385
385
  {
386
386
  "properties": {
387
- "mainType": {
387
+ "propertyType": {
388
388
  "enum": [
389
389
  "House",
390
390
  "Bungalow"
@@ -405,7 +405,7 @@
405
405
  },
406
406
  {
407
407
  "properties": {
408
- "mainType": {
408
+ "propertyType": {
409
409
  "enum": [
410
410
  "Maisonette",
411
411
  "Flat"
@@ -71,8 +71,8 @@
71
71
  "caption": {}
72
72
  },
73
73
  "buildInformation": {
74
- "propertyType": {
75
- "mainType": {},
74
+ "building": {
75
+ "propertyType": {},
76
76
  "otherType": {},
77
77
  "builtForm": {},
78
78
  "numberOfFloors": {},