@pdtf/schemas 3.2.1-3 → 3.2.1-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/index.js +0 -1
- package/package.json +1 -1
- package/src/examples/v3/exampleTransaction.json +2 -5
- package/src/schemas/v3/combined.json +18 -413
- package/src/schemas/v3/overlays/baspi4.json +1 -5
- package/src/schemas/v3/overlays/baspi5.json +1 -5
- package/src/schemas/v3/overlays/nts.json +3 -1
- package/src/schemas/v3/overlays/ntsl.json +0 -1
- package/src/schemas/v3/overlays/ta7.json +8 -12
- package/src/schemas/v3/pdtf-transaction.json +9 -9
- package/src/utils/extractOverlay.js +0 -1
- package/src/utils/listPathTitles.js +36 -0
- package/src/utils/pathList.csv +903 -0
- package/src/schemas/v3/overlays/nts-sef.json +0 -2161
|
@@ -1023,16 +1023,12 @@
|
|
|
1023
1023
|
"details": {
|
|
1024
1024
|
"baspi4Ref": "A1.5.3.2"
|
|
1025
1025
|
}
|
|
1026
|
-
}
|
|
1027
|
-
"required": [
|
|
1028
|
-
"details"
|
|
1029
|
-
]
|
|
1026
|
+
}
|
|
1030
1027
|
}
|
|
1031
1028
|
],
|
|
1032
1029
|
"required": [
|
|
1033
1030
|
"yesNo"
|
|
1034
1031
|
],
|
|
1035
|
-
"title": "Additional fees payable on sale or letting, if known",
|
|
1036
1032
|
"properties": {
|
|
1037
1033
|
"yesNo": {
|
|
1038
1034
|
"baspi4Ref": "A1.5.3.1"
|
|
@@ -1124,16 +1124,12 @@
|
|
|
1124
1124
|
"details": {
|
|
1125
1125
|
"baspi5Ref": "A1.5.3.2"
|
|
1126
1126
|
}
|
|
1127
|
-
}
|
|
1128
|
-
"required": [
|
|
1129
|
-
"details"
|
|
1130
|
-
]
|
|
1127
|
+
}
|
|
1131
1128
|
}
|
|
1132
1129
|
],
|
|
1133
1130
|
"required": [
|
|
1134
1131
|
"yesNo"
|
|
1135
1132
|
],
|
|
1136
|
-
"title": "Additional fees payable on sale or letting, if known",
|
|
1137
1133
|
"properties": {
|
|
1138
1134
|
"yesNo": {
|
|
1139
1135
|
"baspi5Ref": "A1.5.3.1"
|
|
@@ -383,6 +383,9 @@
|
|
|
383
383
|
"annualGroundRent": {
|
|
384
384
|
"ntsRef": "A3.4.2"
|
|
385
385
|
},
|
|
386
|
+
"groundRentFrequency": {
|
|
387
|
+
"ntsRef": "A3.4.3"
|
|
388
|
+
},
|
|
386
389
|
"rentSubjectToIncrease": {
|
|
387
390
|
"ntsRef": "A3.4.4",
|
|
388
391
|
"discriminator": {
|
|
@@ -1084,7 +1087,6 @@
|
|
|
1084
1087
|
"required": [
|
|
1085
1088
|
"mainsElectricity",
|
|
1086
1089
|
"solarPanels",
|
|
1087
|
-
"heatPump",
|
|
1088
1090
|
"otherSources"
|
|
1089
1091
|
],
|
|
1090
1092
|
"properties": {
|
|
@@ -231,7 +231,12 @@
|
|
|
231
231
|
"properties": {
|
|
232
232
|
"organisesBuildingInsurance": {
|
|
233
233
|
"ta7Ref": "5.1",
|
|
234
|
-
"title": "Who is responsible for arranging the buildings insurance on the property?"
|
|
234
|
+
"title": "Who is responsible for arranging the buildings insurance on the property?",
|
|
235
|
+
"enum": [
|
|
236
|
+
"the Lessees",
|
|
237
|
+
"Management Company",
|
|
238
|
+
"Landlord"
|
|
239
|
+
]
|
|
235
240
|
}
|
|
236
241
|
}
|
|
237
242
|
}
|
|
@@ -341,11 +346,7 @@
|
|
|
341
346
|
"rentIncreaseCalculated": {
|
|
342
347
|
"ta7Ref": "1.2e"
|
|
343
348
|
}
|
|
344
|
-
}
|
|
345
|
-
"required": [
|
|
346
|
-
"rentReviewFrequency",
|
|
347
|
-
"rentIncreaseCalculated"
|
|
348
|
-
]
|
|
349
|
+
}
|
|
349
350
|
}
|
|
350
351
|
],
|
|
351
352
|
"required": [
|
|
@@ -357,12 +358,7 @@
|
|
|
357
358
|
}
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
|
-
}
|
|
361
|
-
"required": [
|
|
362
|
-
"annualGroundRent",
|
|
363
|
-
"groundRentFrequency",
|
|
364
|
-
"rentSubjectToIncrease"
|
|
365
|
-
]
|
|
361
|
+
}
|
|
366
362
|
}
|
|
367
363
|
],
|
|
368
364
|
"required": [
|
|
@@ -468,11 +468,15 @@
|
|
|
468
468
|
"title": "Price type",
|
|
469
469
|
"type": "string",
|
|
470
470
|
"enum": [
|
|
471
|
-
"
|
|
471
|
+
"Price",
|
|
472
472
|
"Fixed price",
|
|
473
|
+
"Guide price",
|
|
473
474
|
"Offers in excess of",
|
|
474
475
|
"Offers in region of",
|
|
475
|
-
"
|
|
476
|
+
"Offers over",
|
|
477
|
+
"Offers invited",
|
|
478
|
+
"Sale by tender",
|
|
479
|
+
"From"
|
|
476
480
|
]
|
|
477
481
|
},
|
|
478
482
|
"disposal": {
|
|
@@ -4556,11 +4560,6 @@
|
|
|
4556
4560
|
"Managing Agent",
|
|
4557
4561
|
"the Lessees",
|
|
4558
4562
|
"Not applicable"
|
|
4559
|
-
],
|
|
4560
|
-
"ta7enum": [
|
|
4561
|
-
"the Lessees",
|
|
4562
|
-
"Management Company",
|
|
4563
|
-
"Landlord"
|
|
4564
4563
|
]
|
|
4565
4564
|
},
|
|
4566
4565
|
"dealsWithDayToDayMaintenanceOfBuilding": {
|
|
@@ -6320,7 +6319,7 @@
|
|
|
6320
6319
|
},
|
|
6321
6320
|
"premiumIncludedInServiceCharge": {
|
|
6322
6321
|
"type": "object",
|
|
6323
|
-
"title": "Is the insurance premium included in the service charge budget?",
|
|
6322
|
+
"title": "Is the insurance premium included in the service charge Yes budget?",
|
|
6324
6323
|
"properties": {
|
|
6325
6324
|
"yesNo": {
|
|
6326
6325
|
"type": "string",
|
|
@@ -6349,7 +6348,7 @@
|
|
|
6349
6348
|
]
|
|
6350
6349
|
},
|
|
6351
6350
|
"details": {
|
|
6352
|
-
"title": "
|
|
6351
|
+
"title": "confirm the annual amount payable for the Property",
|
|
6353
6352
|
"type": "number"
|
|
6354
6353
|
}
|
|
6355
6354
|
}
|
|
@@ -7510,6 +7509,7 @@
|
|
|
7510
7509
|
"items": {
|
|
7511
7510
|
"type": "string",
|
|
7512
7511
|
"enum": [
|
|
7512
|
+
"None",
|
|
7513
7513
|
"Allocated",
|
|
7514
7514
|
"Communal",
|
|
7515
7515
|
"Covered",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const traverse = require("traverse");
|
|
2
|
+
const fs = require("fs");
|
|
3
|
+
|
|
4
|
+
const combinedSchema = require("../schemas/v3/combined.json");
|
|
5
|
+
|
|
6
|
+
const includeFields = [
|
|
7
|
+
"ntsRef",
|
|
8
|
+
"nts-sefRef",
|
|
9
|
+
"ntslRef",
|
|
10
|
+
"ta6Ref",
|
|
11
|
+
"ta7Ref",
|
|
12
|
+
"ta10Ref",
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
let pathCsv = "";
|
|
16
|
+
|
|
17
|
+
traverse(combinedSchema).forEach(function (element) {
|
|
18
|
+
let path = "/" + this.path.join("/");
|
|
19
|
+
if (path === "/") path = "";
|
|
20
|
+
if (includeFields.some((field) => element[field]) && element.title) {
|
|
21
|
+
const filteredPath = path
|
|
22
|
+
.split("/")
|
|
23
|
+
.filter(
|
|
24
|
+
(segment) =>
|
|
25
|
+
segment !== "properties" &&
|
|
26
|
+
segment !== "oneOf" &&
|
|
27
|
+
segment !== "items" &&
|
|
28
|
+
isNaN(segment)
|
|
29
|
+
)
|
|
30
|
+
.join("/");
|
|
31
|
+
const line = `"/${filteredPath}", "${element.title}"\n`;
|
|
32
|
+
pathCsv += line;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
fs.writeFileSync("./pathList.csv", pathCsv);
|