@pdtf/schemas 3.2.1-4 → 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 +17 -412
- 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 +2 -11
- package/src/schemas/v3/pdtf-transaction.json +9 -4
- 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": {
|
|
@@ -346,11 +346,7 @@
|
|
|
346
346
|
"rentIncreaseCalculated": {
|
|
347
347
|
"ta7Ref": "1.2e"
|
|
348
348
|
}
|
|
349
|
-
}
|
|
350
|
-
"required": [
|
|
351
|
-
"rentReviewFrequency",
|
|
352
|
-
"rentIncreaseCalculated"
|
|
353
|
-
]
|
|
349
|
+
}
|
|
354
350
|
}
|
|
355
351
|
],
|
|
356
352
|
"required": [
|
|
@@ -362,12 +358,7 @@
|
|
|
362
358
|
}
|
|
363
359
|
}
|
|
364
360
|
}
|
|
365
|
-
}
|
|
366
|
-
"required": [
|
|
367
|
-
"annualGroundRent",
|
|
368
|
-
"groundRentFrequency",
|
|
369
|
-
"rentSubjectToIncrease"
|
|
370
|
-
]
|
|
361
|
+
}
|
|
371
362
|
}
|
|
372
363
|
],
|
|
373
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": {
|
|
@@ -6315,7 +6319,7 @@
|
|
|
6315
6319
|
},
|
|
6316
6320
|
"premiumIncludedInServiceCharge": {
|
|
6317
6321
|
"type": "object",
|
|
6318
|
-
"title": "Is the insurance premium included in the service charge budget?",
|
|
6322
|
+
"title": "Is the insurance premium included in the service charge Yes budget?",
|
|
6319
6323
|
"properties": {
|
|
6320
6324
|
"yesNo": {
|
|
6321
6325
|
"type": "string",
|
|
@@ -6344,7 +6348,7 @@
|
|
|
6344
6348
|
]
|
|
6345
6349
|
},
|
|
6346
6350
|
"details": {
|
|
6347
|
-
"title": "
|
|
6351
|
+
"title": "confirm the annual amount payable for the Property",
|
|
6348
6352
|
"type": "number"
|
|
6349
6353
|
}
|
|
6350
6354
|
}
|
|
@@ -7505,6 +7509,7 @@
|
|
|
7505
7509
|
"items": {
|
|
7506
7510
|
"type": "string",
|
|
7507
7511
|
"enum": [
|
|
7512
|
+
"None",
|
|
7508
7513
|
"Allocated",
|
|
7509
7514
|
"Communal",
|
|
7510
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);
|