@pdtf/schemas 3.0.0-16 → 3.0.0-18
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 +12 -10
- package/src/schemas/v3/combined.json +227 -209
- package/src/schemas/v3/overlays/baspi.json +158 -150
- package/src/schemas/v3/overlays/nts.json +136 -130
- package/src/schemas/v3/overlays/piq.json +112 -107
- package/src/schemas/v3/overlays/rds.json +69 -64
- package/src/schemas/v3/overlays/ta6.json +49 -41
- package/src/schemas/v3/pdtf-transaction.json +174 -166
- package/src/schemas/v3/skeleton.json +18 -16
- package/src/tests/v3/transactionSchema.test.js +1 -1
|
@@ -15803,67 +15803,192 @@
|
|
|
15803
15803
|
"description": "Please indicate which utilities are are connected to the property.",
|
|
15804
15804
|
"type": "object",
|
|
15805
15805
|
"properties": {
|
|
15806
|
-
"
|
|
15807
|
-
"title": "
|
|
15806
|
+
"electricity": {
|
|
15807
|
+
"title": "Electricity supply",
|
|
15808
15808
|
"type": "object",
|
|
15809
15809
|
"properties": {
|
|
15810
|
-
"
|
|
15811
|
-
"
|
|
15812
|
-
"
|
|
15813
|
-
"enum": [
|
|
15814
|
-
"Yes",
|
|
15815
|
-
"To be connected",
|
|
15816
|
-
"No"
|
|
15817
|
-
]
|
|
15818
|
-
}
|
|
15819
|
-
},
|
|
15820
|
-
"oneOf": [
|
|
15821
|
-
{
|
|
15810
|
+
"mainsElectricity": {
|
|
15811
|
+
"title": "Mains electricity",
|
|
15812
|
+
"type": "object",
|
|
15822
15813
|
"properties": {
|
|
15823
15814
|
"yesNo": {
|
|
15815
|
+
"type": "string",
|
|
15816
|
+
"title": "",
|
|
15824
15817
|
"enum": [
|
|
15818
|
+
"Yes",
|
|
15819
|
+
"To be connected",
|
|
15825
15820
|
"No"
|
|
15826
15821
|
]
|
|
15827
15822
|
}
|
|
15828
|
-
}
|
|
15823
|
+
},
|
|
15824
|
+
"oneOf": [
|
|
15825
|
+
{
|
|
15826
|
+
"properties": {
|
|
15827
|
+
"yesNo": {
|
|
15828
|
+
"enum": [
|
|
15829
|
+
"No"
|
|
15830
|
+
]
|
|
15831
|
+
}
|
|
15832
|
+
}
|
|
15833
|
+
},
|
|
15834
|
+
{
|
|
15835
|
+
"properties": {
|
|
15836
|
+
"yesNo": {
|
|
15837
|
+
"enum": [
|
|
15838
|
+
"Yes"
|
|
15839
|
+
]
|
|
15840
|
+
},
|
|
15841
|
+
"supplier": {
|
|
15842
|
+
"title": "Supplier",
|
|
15843
|
+
"type": "string"
|
|
15844
|
+
},
|
|
15845
|
+
"mpan": {
|
|
15846
|
+
"title": "Meter Point Administration Number (MPAN)",
|
|
15847
|
+
"description": "Your MPAN is on your electricity or dual fuel bill, usually in a box marked ‘Supply Number’. It’s 21 digits long and begins with ‘S’. You’ll only need the last 12 or 13 digits.",
|
|
15848
|
+
"type": "integer"
|
|
15849
|
+
}
|
|
15850
|
+
}
|
|
15851
|
+
},
|
|
15852
|
+
{
|
|
15853
|
+
"properties": {
|
|
15854
|
+
"yesNo": {
|
|
15855
|
+
"enum": [
|
|
15856
|
+
"To be connected"
|
|
15857
|
+
]
|
|
15858
|
+
},
|
|
15859
|
+
"dateToBeConnected": {
|
|
15860
|
+
"title": "Date to be connected",
|
|
15861
|
+
"type": "string",
|
|
15862
|
+
"format": "date"
|
|
15863
|
+
},
|
|
15864
|
+
"supplier": {
|
|
15865
|
+
"title": "Supplier",
|
|
15866
|
+
"type": "string"
|
|
15867
|
+
}
|
|
15868
|
+
}
|
|
15869
|
+
}
|
|
15870
|
+
]
|
|
15829
15871
|
},
|
|
15830
|
-
{
|
|
15872
|
+
"solarPanels": {
|
|
15873
|
+
"title": "Solar or photovoltaic panels",
|
|
15874
|
+
"type": "object",
|
|
15831
15875
|
"properties": {
|
|
15832
15876
|
"yesNo": {
|
|
15877
|
+
"type": "string",
|
|
15878
|
+
"title": "",
|
|
15833
15879
|
"enum": [
|
|
15834
|
-
"Yes"
|
|
15880
|
+
"Yes",
|
|
15881
|
+
"To be connected",
|
|
15882
|
+
"No"
|
|
15835
15883
|
]
|
|
15884
|
+
}
|
|
15885
|
+
},
|
|
15886
|
+
"oneOf": [
|
|
15887
|
+
{
|
|
15888
|
+
"properties": {
|
|
15889
|
+
"yesNo": {
|
|
15890
|
+
"enum": [
|
|
15891
|
+
"No"
|
|
15892
|
+
]
|
|
15893
|
+
}
|
|
15894
|
+
}
|
|
15836
15895
|
},
|
|
15837
|
-
|
|
15838
|
-
"
|
|
15839
|
-
|
|
15896
|
+
{
|
|
15897
|
+
"properties": {
|
|
15898
|
+
"yesNo": {
|
|
15899
|
+
"enum": [
|
|
15900
|
+
"Yes"
|
|
15901
|
+
]
|
|
15902
|
+
},
|
|
15903
|
+
"supplier": {
|
|
15904
|
+
"title": "Supplier",
|
|
15905
|
+
"type": "string"
|
|
15906
|
+
}
|
|
15907
|
+
}
|
|
15840
15908
|
},
|
|
15841
|
-
|
|
15842
|
-
"
|
|
15843
|
-
|
|
15844
|
-
|
|
15909
|
+
{
|
|
15910
|
+
"properties": {
|
|
15911
|
+
"yesNo": {
|
|
15912
|
+
"enum": [
|
|
15913
|
+
"To be connected"
|
|
15914
|
+
]
|
|
15915
|
+
},
|
|
15916
|
+
"dateToBeConnected": {
|
|
15917
|
+
"title": "Date to be connected",
|
|
15918
|
+
"type": "string",
|
|
15919
|
+
"format": "date"
|
|
15920
|
+
},
|
|
15921
|
+
"supplier": {
|
|
15922
|
+
"title": "Supplier",
|
|
15923
|
+
"type": "string"
|
|
15924
|
+
}
|
|
15925
|
+
}
|
|
15845
15926
|
}
|
|
15846
|
-
|
|
15927
|
+
]
|
|
15847
15928
|
},
|
|
15848
|
-
{
|
|
15929
|
+
"otherSources": {
|
|
15930
|
+
"title": "Other sources",
|
|
15931
|
+
"description": "Other sources include wind turbines, generators and other renewable technologies, for example ground source heat pumps. If you receive Renewable Heat Incentives please provide details and note that you will need to advise Ofgem when you complete the sale",
|
|
15932
|
+
"type": "object",
|
|
15849
15933
|
"properties": {
|
|
15850
15934
|
"yesNo": {
|
|
15935
|
+
"type": "string",
|
|
15936
|
+
"title": "",
|
|
15851
15937
|
"enum": [
|
|
15852
|
-
"
|
|
15938
|
+
"Yes",
|
|
15939
|
+
"To be connected",
|
|
15940
|
+
"No"
|
|
15853
15941
|
]
|
|
15942
|
+
}
|
|
15943
|
+
},
|
|
15944
|
+
"oneOf": [
|
|
15945
|
+
{
|
|
15946
|
+
"properties": {
|
|
15947
|
+
"yesNo": {
|
|
15948
|
+
"enum": [
|
|
15949
|
+
"No"
|
|
15950
|
+
]
|
|
15951
|
+
}
|
|
15952
|
+
}
|
|
15854
15953
|
},
|
|
15855
|
-
|
|
15856
|
-
"
|
|
15857
|
-
|
|
15858
|
-
|
|
15954
|
+
{
|
|
15955
|
+
"properties": {
|
|
15956
|
+
"yesNo": {
|
|
15957
|
+
"enum": [
|
|
15958
|
+
"Yes"
|
|
15959
|
+
]
|
|
15960
|
+
},
|
|
15961
|
+
"details": {
|
|
15962
|
+
"title": "Details",
|
|
15963
|
+
"type": "string"
|
|
15964
|
+
},
|
|
15965
|
+
"supplier": {
|
|
15966
|
+
"title": "Supplier",
|
|
15967
|
+
"type": "string"
|
|
15968
|
+
}
|
|
15969
|
+
}
|
|
15859
15970
|
},
|
|
15860
|
-
|
|
15861
|
-
"
|
|
15862
|
-
|
|
15971
|
+
{
|
|
15972
|
+
"properties": {
|
|
15973
|
+
"yesNo": {
|
|
15974
|
+
"enum": [
|
|
15975
|
+
"To be connected"
|
|
15976
|
+
]
|
|
15977
|
+
},
|
|
15978
|
+
"dateToBeConnected": {
|
|
15979
|
+
"title": "Date to be connected",
|
|
15980
|
+
"type": "string",
|
|
15981
|
+
"format": "date"
|
|
15982
|
+
},
|
|
15983
|
+
"supplier": {
|
|
15984
|
+
"title": "Supplier",
|
|
15985
|
+
"type": "string"
|
|
15986
|
+
}
|
|
15987
|
+
}
|
|
15863
15988
|
}
|
|
15864
|
-
|
|
15989
|
+
]
|
|
15865
15990
|
}
|
|
15866
|
-
|
|
15991
|
+
}
|
|
15867
15992
|
},
|
|
15868
15993
|
"mainsGas": {
|
|
15869
15994
|
"title": "Mains gas",
|
|
@@ -16222,125 +16347,6 @@
|
|
|
16222
16347
|
}
|
|
16223
16348
|
]
|
|
16224
16349
|
},
|
|
16225
|
-
"solarPanels": {
|
|
16226
|
-
"title": "Solar or photovoltaic panels",
|
|
16227
|
-
"type": "object",
|
|
16228
|
-
"properties": {
|
|
16229
|
-
"yesNo": {
|
|
16230
|
-
"type": "string",
|
|
16231
|
-
"title": "",
|
|
16232
|
-
"enum": [
|
|
16233
|
-
"Yes",
|
|
16234
|
-
"To be connected",
|
|
16235
|
-
"No"
|
|
16236
|
-
]
|
|
16237
|
-
}
|
|
16238
|
-
},
|
|
16239
|
-
"oneOf": [
|
|
16240
|
-
{
|
|
16241
|
-
"properties": {
|
|
16242
|
-
"yesNo": {
|
|
16243
|
-
"enum": [
|
|
16244
|
-
"No"
|
|
16245
|
-
]
|
|
16246
|
-
}
|
|
16247
|
-
}
|
|
16248
|
-
},
|
|
16249
|
-
{
|
|
16250
|
-
"properties": {
|
|
16251
|
-
"yesNo": {
|
|
16252
|
-
"enum": [
|
|
16253
|
-
"Yes"
|
|
16254
|
-
]
|
|
16255
|
-
},
|
|
16256
|
-
"supplier": {
|
|
16257
|
-
"title": "Supplier",
|
|
16258
|
-
"type": "string"
|
|
16259
|
-
}
|
|
16260
|
-
}
|
|
16261
|
-
},
|
|
16262
|
-
{
|
|
16263
|
-
"properties": {
|
|
16264
|
-
"yesNo": {
|
|
16265
|
-
"enum": [
|
|
16266
|
-
"To be connected"
|
|
16267
|
-
]
|
|
16268
|
-
},
|
|
16269
|
-
"dateToBeConnected": {
|
|
16270
|
-
"title": "Date to be connected",
|
|
16271
|
-
"type": "string",
|
|
16272
|
-
"format": "date"
|
|
16273
|
-
},
|
|
16274
|
-
"supplier": {
|
|
16275
|
-
"title": "Supplier",
|
|
16276
|
-
"type": "string"
|
|
16277
|
-
}
|
|
16278
|
-
}
|
|
16279
|
-
}
|
|
16280
|
-
]
|
|
16281
|
-
},
|
|
16282
|
-
"otherServices": {
|
|
16283
|
-
"title": "Other services",
|
|
16284
|
-
"description": "Other services include wind turbines, generators and other renewable technologies, for example ground source heat pumps. If you receive Renewable Heat Incentives please provide details and note that you will need to advise Ofgem when you complete the sale",
|
|
16285
|
-
"type": "object",
|
|
16286
|
-
"properties": {
|
|
16287
|
-
"yesNo": {
|
|
16288
|
-
"type": "string",
|
|
16289
|
-
"title": "",
|
|
16290
|
-
"enum": [
|
|
16291
|
-
"Yes",
|
|
16292
|
-
"To be connected",
|
|
16293
|
-
"No"
|
|
16294
|
-
]
|
|
16295
|
-
}
|
|
16296
|
-
},
|
|
16297
|
-
"oneOf": [
|
|
16298
|
-
{
|
|
16299
|
-
"properties": {
|
|
16300
|
-
"yesNo": {
|
|
16301
|
-
"enum": [
|
|
16302
|
-
"No"
|
|
16303
|
-
]
|
|
16304
|
-
}
|
|
16305
|
-
}
|
|
16306
|
-
},
|
|
16307
|
-
{
|
|
16308
|
-
"properties": {
|
|
16309
|
-
"yesNo": {
|
|
16310
|
-
"enum": [
|
|
16311
|
-
"Yes"
|
|
16312
|
-
]
|
|
16313
|
-
},
|
|
16314
|
-
"details": {
|
|
16315
|
-
"title": "Details",
|
|
16316
|
-
"type": "string"
|
|
16317
|
-
},
|
|
16318
|
-
"supplier": {
|
|
16319
|
-
"title": "Supplier",
|
|
16320
|
-
"type": "string"
|
|
16321
|
-
}
|
|
16322
|
-
}
|
|
16323
|
-
},
|
|
16324
|
-
{
|
|
16325
|
-
"properties": {
|
|
16326
|
-
"yesNo": {
|
|
16327
|
-
"enum": [
|
|
16328
|
-
"To be connected"
|
|
16329
|
-
]
|
|
16330
|
-
},
|
|
16331
|
-
"dateToBeConnected": {
|
|
16332
|
-
"title": "Date to be connected",
|
|
16333
|
-
"type": "string",
|
|
16334
|
-
"format": "date"
|
|
16335
|
-
},
|
|
16336
|
-
"supplier": {
|
|
16337
|
-
"title": "Supplier",
|
|
16338
|
-
"type": "string"
|
|
16339
|
-
}
|
|
16340
|
-
}
|
|
16341
|
-
}
|
|
16342
|
-
]
|
|
16343
|
-
},
|
|
16344
16350
|
"maintenanceAgreements": {
|
|
16345
16351
|
"title": "Do you have any licences, maintenance agreements, contracts or service agreements in relation to connected services?",
|
|
16346
16352
|
"type": "object",
|
|
@@ -17419,6 +17425,7 @@
|
|
|
17419
17425
|
"enum": [
|
|
17420
17426
|
"Central heating",
|
|
17421
17427
|
"Communal heating system",
|
|
17428
|
+
"Room heaters only",
|
|
17422
17429
|
"None"
|
|
17423
17430
|
]
|
|
17424
17431
|
}
|
|
@@ -17618,17 +17625,18 @@
|
|
|
17618
17625
|
"items": {
|
|
17619
17626
|
"type": "string",
|
|
17620
17627
|
"enum": [
|
|
17621
|
-
"Air
|
|
17622
|
-
"Double
|
|
17623
|
-
"
|
|
17624
|
-
"Night
|
|
17625
|
-
"Solar
|
|
17626
|
-
"Underfloor
|
|
17627
|
-
"Wood
|
|
17628
|
-
"Open
|
|
17629
|
-
"Ground
|
|
17630
|
-
"Air
|
|
17631
|
-
"Solar
|
|
17628
|
+
"Air conditioning",
|
|
17629
|
+
"Double glazing",
|
|
17630
|
+
"Triple glazing",
|
|
17631
|
+
"Night storage",
|
|
17632
|
+
"Solar water",
|
|
17633
|
+
"Underfloor heating",
|
|
17634
|
+
"Wood burner",
|
|
17635
|
+
"Open fire",
|
|
17636
|
+
"Ground source heat pump",
|
|
17637
|
+
"Air source heat pump",
|
|
17638
|
+
"Solar thermal",
|
|
17639
|
+
"Passive House design"
|
|
17632
17640
|
]
|
|
17633
17641
|
}
|
|
17634
17642
|
}
|
|
@@ -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": {},
|
|
@@ -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
|
);
|