@pdtf/schemas 3.0.0-15 → 3.0.0-17
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 +1 -1
- package/src/examples/v3/exampleTransaction.json +32 -28
- package/src/schemas/v3/combined.json +507 -471
- package/src/schemas/v3/overlays/baspi.json +321 -305
- package/src/schemas/v3/overlays/nts.json +220 -204
- package/src/schemas/v3/overlays/piq.json +175 -165
- package/src/schemas/v3/overlays/rds.json +160 -176
- package/src/schemas/v3/overlays/ta6.json +206 -190
- package/src/schemas/v3/pdtf-transaction.json +380 -368
- package/src/schemas/v3/skeleton.json +38 -34
- package/src/tests/v3/transactionSchema.test.js +1 -1
|
@@ -1940,11 +1940,24 @@
|
|
|
1940
1940
|
}
|
|
1941
1941
|
},
|
|
1942
1942
|
"connectedUtilities": {
|
|
1943
|
-
"
|
|
1944
|
-
"
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1943
|
+
"electricity": {
|
|
1944
|
+
"mainsElectricity": {
|
|
1945
|
+
"yesNo": {},
|
|
1946
|
+
"supplier": {},
|
|
1947
|
+
"mpan": {},
|
|
1948
|
+
"dateToBeConnected": {}
|
|
1949
|
+
},
|
|
1950
|
+
"solarPanels": {
|
|
1951
|
+
"yesNo": {},
|
|
1952
|
+
"supplier": {},
|
|
1953
|
+
"dateToBeConnected": {}
|
|
1954
|
+
},
|
|
1955
|
+
"otherSources": {
|
|
1956
|
+
"yesNo": {},
|
|
1957
|
+
"details": {},
|
|
1958
|
+
"supplier": {},
|
|
1959
|
+
"dateToBeConnected": {}
|
|
1960
|
+
}
|
|
1948
1961
|
},
|
|
1949
1962
|
"mainsGas": {
|
|
1950
1963
|
"yesNo": {},
|
|
@@ -1978,17 +1991,6 @@
|
|
|
1978
1991
|
"typeOfConnection": {},
|
|
1979
1992
|
"dateToBeConnected": {}
|
|
1980
1993
|
},
|
|
1981
|
-
"solarPanels": {
|
|
1982
|
-
"yesNo": {},
|
|
1983
|
-
"supplier": {},
|
|
1984
|
-
"dateToBeConnected": {}
|
|
1985
|
-
},
|
|
1986
|
-
"otherServices": {
|
|
1987
|
-
"yesNo": {},
|
|
1988
|
-
"details": {},
|
|
1989
|
-
"supplier": {},
|
|
1990
|
-
"dateToBeConnected": {}
|
|
1991
|
-
},
|
|
1992
1994
|
"maintenanceAgreements": {
|
|
1993
1995
|
"yesNo": {},
|
|
1994
1996
|
"details": {},
|
|
@@ -2109,26 +2111,28 @@
|
|
|
2109
2111
|
}
|
|
2110
2112
|
},
|
|
2111
2113
|
"heating": {
|
|
2112
|
-
"
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2114
|
+
"heatingSystem": {
|
|
2115
|
+
"heatingType": {},
|
|
2116
|
+
"centralHeatingDetails": {
|
|
2117
|
+
"centralHeatingFuel": {
|
|
2118
|
+
"centralHeatingFuelType": {},
|
|
2119
|
+
"otherCentralHeatingFuelType": {}
|
|
2120
|
+
},
|
|
2121
|
+
"centralHeatingInstalled": {},
|
|
2122
|
+
"boilerInstallationCertificate": {
|
|
2123
|
+
"yesNo": {},
|
|
2124
|
+
"attachments": {}
|
|
2125
|
+
},
|
|
2126
|
+
"heatingLastServicedDate": {},
|
|
2127
|
+
"heatingLastServicedReport": {},
|
|
2128
|
+
"heatingInGoodWorkingOrder": {
|
|
2129
|
+
"yesNo": {},
|
|
2130
|
+
"details": {}
|
|
2131
|
+
}
|
|
2123
2132
|
},
|
|
2124
|
-
"
|
|
2125
|
-
"heatingLastServicedReport": {},
|
|
2126
|
-
"heatingInGoodWorkingOrder": {
|
|
2127
|
-
"yesNo": {},
|
|
2128
|
-
"details": {}
|
|
2129
|
-
}
|
|
2133
|
+
"details": {}
|
|
2130
2134
|
},
|
|
2131
|
-
"
|
|
2135
|
+
"otherHeatingFeatures": {}
|
|
2132
2136
|
},
|
|
2133
2137
|
"insurance": {
|
|
2134
2138
|
"isInsured": {},
|
|
@@ -169,7 +169,7 @@ test("correctly gets yes another subschema but through a non-baspi oneOf structu
|
|
|
169
169
|
|
|
170
170
|
test("correctly gets an overlaid enum in a subschema", () => {
|
|
171
171
|
const subschema = getSubschema(
|
|
172
|
-
"/propertyPack/materialFacts/connectedUtilities/mainsElectricity/yesNo",
|
|
172
|
+
"/propertyPack/materialFacts/connectedUtilities/electricity/mainsElectricity/yesNo",
|
|
173
173
|
schemaId,
|
|
174
174
|
["nts2023"]
|
|
175
175
|
);
|