@pdtf/schemas 3.6.0-dev.3 → 3.6.0-dev.30
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/docs/ta6-certificate-permit-contract.md +51 -0
- package/docs/v4-mapping-and-recomposition.md +419 -0
- package/index.js +210 -0
- package/package.json +10 -1
- package/src/schemas/v3/combined.json +2261 -657
- package/src/schemas/v3/compactSkeleton.txt +120 -51
- package/src/schemas/v3/overlays/baspi4.json +54 -74
- package/src/schemas/v3/overlays/baspi5.json +54 -74
- package/src/schemas/v3/overlays/extensions/ac.json +2 -1
- package/src/schemas/v3/overlays/extensions/dk.json +3 -2
- package/src/schemas/v3/overlays/extensions/fd.json +2 -1
- package/src/schemas/v3/overlays/extensions/ic.json +44 -9
- package/src/schemas/v3/overlays/extensions/lc.json +3 -2
- package/src/schemas/v3/overlays/extensions/mi.json +2 -1
- package/src/schemas/v3/overlays/extensions/nd.json +3 -2
- package/src/schemas/v3/overlays/extensions/pc.json +3 -2
- package/src/schemas/v3/overlays/extensions/ph.json +2 -1
- package/src/schemas/v3/overlays/extensions/rw.json +4 -3
- package/src/schemas/v3/overlays/extensions/sc.json +8 -4
- package/src/schemas/v3/overlays/extensions/sd.json +3 -2
- package/src/schemas/v3/overlays/extensions/tr.json +3 -2
- package/src/schemas/v3/overlays/extensions/wg.json +2 -1
- package/src/schemas/v3/overlays/llc1.json +1 -2
- package/src/schemas/v3/overlays/lpe1.json +3 -2
- package/src/schemas/v3/overlays/nts.json +7 -3
- package/src/schemas/v3/overlays/nts2.json +9 -4
- package/src/schemas/v3/overlays/ntsl.json +5 -2
- package/src/schemas/v3/overlays/ntsl2.json +7 -3
- package/src/schemas/v3/overlays/piq.json +34 -25
- package/src/schemas/v3/overlays/rds.json +24 -50
- package/src/schemas/v3/overlays/sef25.json +16 -2
- package/src/schemas/v3/overlays/ta10.json +0 -9
- package/src/schemas/v3/overlays/ta6.json +39 -70
- package/src/schemas/v3/overlays/ta6ed6.json +331 -307
- package/{pensive-tesla-d0d355/src/schemas/v3/overlays/ta6.json → src/schemas/v3/overlays/ta6ed6v2.json} +1574 -1464
- package/src/schemas/v3/overlays/ta7.json +2 -1
- package/src/schemas/v3/overlays/ta7ed5.json +68 -21
- package/src/schemas/v3/pdtf-transaction.json +1030 -492
- package/src/schemas/v3/skeleton.json +163 -57
- package/src/schemas/v4/Gift.json +88 -0
- package/src/schemas/v4/Offer.json +425 -0
- package/src/schemas/v4/Organisation.json +167 -0
- package/src/schemas/v4/Person.json +321 -0
- package/src/schemas/v4/Property.json +27813 -0
- package/src/schemas/v4/Representation.json +67 -0
- package/src/schemas/v4/SellerCapacity.json +193 -0
- package/src/schemas/v4/Title.json +14660 -0
- package/src/schemas/v4/Transaction.json +1612 -0
- package/src/schemas/v4/TransactionRole.json +59 -0
- package/src/schemas/v4/mapping.json +1161 -0
- package/src/utils/checkTa6OmissionCompatibility.js +146 -0
- package/src/utils/extractExtensionOverlays.js +11 -2
- package/src/utils/extractOverlay.js +21 -0
- package/src/utils/generateV4Schemas.js +1358 -0
- package/src/utils/syncTa6ed6v2Markers.js +92 -0
- package/src/utils/v4.js +838 -0
- package/CLAUDE.md +0 -101
- package/pensive-tesla-d0d355/CLAUDE.md +0 -101
- package/pensive-tesla-d0d355/LICENSE +0 -21
- package/pensive-tesla-d0d355/README.md +0 -435
- package/pensive-tesla-d0d355/docs/branch-release-workflow.md +0 -138
- package/pensive-tesla-d0d355/docs/sef25-extensions-ui-spec.md +0 -355
- package/pensive-tesla-d0d355/index.js +0 -654
- package/pensive-tesla-d0d355/package-lock.json +0 -7297
- package/pensive-tesla-d0d355/package.json +0 -44
- package/pensive-tesla-d0d355/src/examples/v1/exampleAddParticipantVouch.json +0 -32
- package/pensive-tesla-d0d355/src/examples/v1/exampleDocumentedVouch.json +0 -40
- package/pensive-tesla-d0d355/src/examples/v1/exampleElectronicRecord.json +0 -30
- package/pensive-tesla-d0d355/src/examples/v1/exampleTransaction.json +0 -878
- package/pensive-tesla-d0d355/src/examples/v1/exampleVouch.json +0 -25
- package/pensive-tesla-d0d355/src/examples/v2/exampleTransaction.json +0 -901
- package/pensive-tesla-d0d355/src/examples/v3/exampleAddParticipantVouch.json +0 -38
- package/pensive-tesla-d0d355/src/examples/v3/exampleCustomOverlay.json +0 -55
- package/pensive-tesla-d0d355/src/examples/v3/exampleCustomOverlay2.json +0 -93
- package/pensive-tesla-d0d355/src/examples/v3/exampleDocumentedVouch.json +0 -47
- package/pensive-tesla-d0d355/src/examples/v3/exampleElectronicRecord.json +0 -36
- package/pensive-tesla-d0d355/src/examples/v3/exampleTransaction.json +0 -1038
- package/pensive-tesla-d0d355/src/examples/v3/exampleVouch.json +0 -32
- package/pensive-tesla-d0d355/src/mappings/SendPropertyDetailsRequestSchema.json +0 -1588
- package/pensive-tesla-d0d355/src/mappings/adf.js +0 -198
- package/pensive-tesla-d0d355/src/schemas/v1/GeoJSON.json +0 -1279
- package/pensive-tesla-d0d355/src/schemas/v1/baspiNotes.html +0 -102
- package/pensive-tesla-d0d355/src/schemas/v1/energy-performance-certificate.json +0 -124
- package/pensive-tesla-d0d355/src/schemas/v1/freehold-information.json +0 -2051
- package/pensive-tesla-d0d355/src/schemas/v1/leasehold-information.json +0 -2064
- package/pensive-tesla-d0d355/src/schemas/v1/legal-information.json +0 -1045
- package/pensive-tesla-d0d355/src/schemas/v1/material-facts.json +0 -2109
- package/pensive-tesla-d0d355/src/schemas/v1/pdtf-transaction-search-results.json +0 -40
- package/pensive-tesla-d0d355/src/schemas/v1/pdtf-transaction.json +0 -191
- package/pensive-tesla-d0d355/src/schemas/v1/searches/drainage-and-water.json +0 -261
- package/pensive-tesla-d0d355/src/schemas/v1/searches/local-land-charges.json +0 -69
- package/pensive-tesla-d0d355/src/schemas/v1/searches/local-searches-required.json +0 -857
- package/pensive-tesla-d0d355/src/schemas/v1/searches.json +0 -237
- package/pensive-tesla-d0d355/src/schemas/v1/title-deed.json +0 -841
- package/pensive-tesla-d0d355/src/schemas/v2/baspiNotes.html +0 -102
- package/pensive-tesla-d0d355/src/schemas/v2/combined.json +0 -37731
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/baspi.json +0 -8132
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/con29DW.json +0 -705
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/con29R.json +0 -2956
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/fme1.json +0 -1259
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/llc1.json +0 -25
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/lpe1.json +0 -2171
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/nts.json +0 -326
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/oc1.json +0 -2799
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/piq.json +0 -3419
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/rds.json +0 -3736
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/ta10.json +0 -5306
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/ta6.json +0 -4533
- package/pensive-tesla-d0d355/src/schemas/v2/overlays/ta7.json +0 -1045
- package/pensive-tesla-d0d355/src/schemas/v2/pdtf-transaction.json +0 -34351
- package/pensive-tesla-d0d355/src/schemas/v2/skeleton.json +0 -3973
- package/pensive-tesla-d0d355/src/schemas/v3/combined.json +0 -48469
- package/pensive-tesla-d0d355/src/schemas/v3/compactSkeleton.txt +0 -4519
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/README.md +0 -299
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/baspi4.json +0 -8025
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/baspi5.json +0 -8175
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/con29DW.json +0 -716
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/con29R.json +0 -2981
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/ac.json +0 -333
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/as.json +0 -74
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/dk.json +0 -32
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/dr.json +0 -73
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/er.json +0 -85
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/fd.json +0 -75
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/hi.json +0 -51
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/hs.json +0 -73
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/ic.json +0 -59
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/jk.json +0 -96
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/la.json +0 -85
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/lc.json +0 -75
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/ma.json +0 -90
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/mc.json +0 -38
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/mi.json +0 -69
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/nd.json +0 -43
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/oa.json +0 -24
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/oc.json +0 -57
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/pc.json +0 -37
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/ph.json +0 -194
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/rw.json +0 -68
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/sb.json +0 -73
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/sc.json +0 -129
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/sd.json +0 -63
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/sf.json +0 -74
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/sl.json +0 -68
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/ta.json +0 -252
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/tf.json +0 -103
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/tr.json +0 -73
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/extensions/wg.json +0 -350
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/fme1.json +0 -1266
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/llc1.json +0 -25
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/lpe1.json +0 -2199
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/nts.json +0 -2157
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/nts2.json +0 -2742
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/ntsl.json +0 -1813
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/ntsl2.json +0 -2217
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/oc1.json +0 -2817
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/piq.json +0 -3322
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/rds.json +0 -3665
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/sef25.json +0 -1639
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/sr24.json +0 -38
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/ta10.json +0 -4654
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/ta6ed6.json +0 -6534
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/ta7.json +0 -1537
- package/pensive-tesla-d0d355/src/schemas/v3/overlays/ta7ed5.json +0 -1551
- package/pensive-tesla-d0d355/src/schemas/v3/pdtf-transaction.json +0 -41573
- package/pensive-tesla-d0d355/src/schemas/v3/skeleton.json +0 -5767
- package/pensive-tesla-d0d355/src/schemas/verifiedClaims/README.md +0 -21
- package/pensive-tesla-d0d355/src/schemas/verifiedClaims/pdtf-verified-claims.json +0 -447
- package/pensive-tesla-d0d355/src/utils/compactSkeleton.js +0 -84
- package/pensive-tesla-d0d355/src/utils/countTokens.js +0 -67
- package/pensive-tesla-d0d355/src/utils/extractExtensionOverlays.js +0 -624
- package/pensive-tesla-d0d355/src/utils/extractOverlay.js +0 -381
- package/pensive-tesla-d0d355/src/utils/extractProperties.js +0 -44
- package/pensive-tesla-d0d355/src/utils/listPathTitles.js +0 -36
- package/pensive-tesla-d0d355/src/utils/minimalSkeleton.js +0 -85
- package/pensive-tesla-d0d355/src/utils/pathList.csv +0 -903
- package/pensive-tesla-d0d355/src/utils/pathSkeleton.js +0 -181
- package/src/examples/v1/exampleAddParticipantVouch.json +0 -32
- package/src/examples/v1/exampleDocumentedVouch.json +0 -40
- package/src/examples/v1/exampleElectronicRecord.json +0 -30
- package/src/examples/v1/exampleTransaction.json +0 -878
- package/src/examples/v1/exampleVouch.json +0 -25
- package/src/examples/v2/exampleTransaction.json +0 -901
- package/src/examples/v3/exampleAddParticipantVouch.json +0 -38
- package/src/examples/v3/exampleCustomOverlay.json +0 -55
- package/src/examples/v3/exampleCustomOverlay2.json +0 -93
- package/src/examples/v3/exampleDocumentedVouch.json +0 -47
- package/src/examples/v3/exampleElectronicRecord.json +0 -36
- package/src/examples/v3/exampleTransaction.json +0 -1038
- package/src/examples/v3/exampleVouch.json +0 -32
- package/src/mappings/SendPropertyDetailsRequestSchema.json +0 -1588
- package/src/mappings/adf.js +0 -198
package/src/mappings/adf.js
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
const PROPERTY_TYPES = {
|
|
2
|
-
0: "Not Specified",
|
|
3
|
-
1: "Terraced House",
|
|
4
|
-
2: "End of terrace house",
|
|
5
|
-
3: "Semi-detached house",
|
|
6
|
-
4: "Detached house",
|
|
7
|
-
5: "Mews house",
|
|
8
|
-
6: "Cluster house",
|
|
9
|
-
7: "Ground floor flat",
|
|
10
|
-
8: "Flat",
|
|
11
|
-
9: "Studio flat",
|
|
12
|
-
10: "Ground floor maisonette",
|
|
13
|
-
11: "Maisonette",
|
|
14
|
-
12: "Bungalow",
|
|
15
|
-
13: "Terraced bungalow",
|
|
16
|
-
14: "Semi-detached bungalow",
|
|
17
|
-
15: "Detached bungalow",
|
|
18
|
-
16: "Mobile home",
|
|
19
|
-
20: "Land (Residential)",
|
|
20
|
-
21: "Link detached house",
|
|
21
|
-
22: "Town house",
|
|
22
|
-
23: "Cottage",
|
|
23
|
-
24: "Chalet",
|
|
24
|
-
25: "Character Property",
|
|
25
|
-
26: "House (unspecified)",
|
|
26
|
-
27: "Villa",
|
|
27
|
-
28: "Apartment",
|
|
28
|
-
29: "Penthouse",
|
|
29
|
-
30: "Finca",
|
|
30
|
-
43: "Barn Conversion",
|
|
31
|
-
44: "Serviced apartment",
|
|
32
|
-
45: "Parking",
|
|
33
|
-
46: "Sheltered Housing",
|
|
34
|
-
47: "Reteirment property",
|
|
35
|
-
48: "House share",
|
|
36
|
-
49: "Flat share",
|
|
37
|
-
50: "Park home",
|
|
38
|
-
51: "Garages",
|
|
39
|
-
52: "Farm House",
|
|
40
|
-
53: "Equestrian facility",
|
|
41
|
-
56: "Duplex",
|
|
42
|
-
59: "Triplex",
|
|
43
|
-
62: "Longere",
|
|
44
|
-
65: "Gite",
|
|
45
|
-
68: "Barn",
|
|
46
|
-
71: "Trulli",
|
|
47
|
-
74: "Mill",
|
|
48
|
-
77: "Ruins",
|
|
49
|
-
80: "Restaurant",
|
|
50
|
-
83: "Cafe",
|
|
51
|
-
86: "Mill",
|
|
52
|
-
92: "Castle",
|
|
53
|
-
95: "Village House",
|
|
54
|
-
101: "Cave House",
|
|
55
|
-
104: "Cortijo",
|
|
56
|
-
107: "Farm Land",
|
|
57
|
-
110: "Plot",
|
|
58
|
-
113: "Country House",
|
|
59
|
-
116: "Stone House",
|
|
60
|
-
117: "Caravan",
|
|
61
|
-
118: "Lodge",
|
|
62
|
-
119: "Log Cabin",
|
|
63
|
-
120: "Manor House",
|
|
64
|
-
121: "Stately Home",
|
|
65
|
-
125: "Off-Plan",
|
|
66
|
-
128: "Semi-detached Villa",
|
|
67
|
-
131: "Detached Villa",
|
|
68
|
-
134: "Bar/Nightclub",
|
|
69
|
-
137: "Shop",
|
|
70
|
-
140: "Riad",
|
|
71
|
-
141: "House Boat",
|
|
72
|
-
142: "Hotel Room",
|
|
73
|
-
143: "Block of Apartments",
|
|
74
|
-
144: "Private Halls",
|
|
75
|
-
178: "Office",
|
|
76
|
-
181: "Business Park",
|
|
77
|
-
184: "Serviced Office",
|
|
78
|
-
187: "Retail Property (High Street)",
|
|
79
|
-
190: "Retail Property (Out of Town)",
|
|
80
|
-
193: "Convenience Store",
|
|
81
|
-
// 196: "Garages", duplicated with 51
|
|
82
|
-
199: "Hairdresser/Barber Shop",
|
|
83
|
-
202: "Hotel",
|
|
84
|
-
205: "Petrol Station",
|
|
85
|
-
208: "Post Office",
|
|
86
|
-
211: "Pub",
|
|
87
|
-
214: "Workshop & Retail Space",
|
|
88
|
-
217: "Distribution Warehouse",
|
|
89
|
-
220: "Factory",
|
|
90
|
-
223: "Heavy Industrial",
|
|
91
|
-
226: "Industrial Park",
|
|
92
|
-
229: "Light Industrial",
|
|
93
|
-
232: "Storage",
|
|
94
|
-
235: "Showroom",
|
|
95
|
-
238: "Warehouse",
|
|
96
|
-
241: "Land (Commercial)",
|
|
97
|
-
244: "Commercial Development",
|
|
98
|
-
247: "Industrial Development",
|
|
99
|
-
250: "Residential Development",
|
|
100
|
-
253: "Commercial Property",
|
|
101
|
-
256: "Data Centre",
|
|
102
|
-
259: "Farm",
|
|
103
|
-
262: "Healthcare Facility",
|
|
104
|
-
265: "Marine Property",
|
|
105
|
-
268: "Mixed Use",
|
|
106
|
-
271: "Research & Development Facility",
|
|
107
|
-
274: "Science Park",
|
|
108
|
-
277: "Guest House",
|
|
109
|
-
280: "Hospitality",
|
|
110
|
-
283: "Leisure Facility",
|
|
111
|
-
298: "Takeaway",
|
|
112
|
-
301: "Childcare Facility",
|
|
113
|
-
304: "Smallholding",
|
|
114
|
-
307: "Place of Worship",
|
|
115
|
-
310: "Trade Counter",
|
|
116
|
-
511: "Coach House",
|
|
117
|
-
512: "House of Multiple Occupation",
|
|
118
|
-
535: "Sports facilities",
|
|
119
|
-
538: "Spa",
|
|
120
|
-
541: "Campsite & Holiday Village",
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
const PRICE_QUALIFIER_TYPES = {
|
|
124
|
-
0: "Default",
|
|
125
|
-
1: "POA",
|
|
126
|
-
2: "Guide Price",
|
|
127
|
-
3: "Fixed Price",
|
|
128
|
-
4: "Offers in excess of",
|
|
129
|
-
5: "OIRO",
|
|
130
|
-
6: "Sale by Tender",
|
|
131
|
-
7: "From",
|
|
132
|
-
9: "Shared Ownership",
|
|
133
|
-
10: "Offers over",
|
|
134
|
-
11: "Part Buy, Part Rent",
|
|
135
|
-
12: "Shared Equity",
|
|
136
|
-
15: "Offers Invited",
|
|
137
|
-
16: "Coming Soon",
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const TENURE_TYPES = {
|
|
141
|
-
1: "Freehold",
|
|
142
|
-
2: "Leasehold",
|
|
143
|
-
3: "Feudal",
|
|
144
|
-
4: "Commonhold",
|
|
145
|
-
5: "Share of Freehold",
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
const FREQUENCY_TYPES = {
|
|
149
|
-
1: "Yearly",
|
|
150
|
-
4: "Quarterly",
|
|
151
|
-
12: "Monthly",
|
|
152
|
-
52: "Weekly",
|
|
153
|
-
365: "Daily",
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
export const adfProperty = (pdtfTransaction) => {
|
|
157
|
-
const materialFacts = pdtfTransaction.propertyPack?.materialFacts;
|
|
158
|
-
return {
|
|
159
|
-
property_type:
|
|
160
|
-
Object.keys(PROPERTY_TYPES).find(
|
|
161
|
-
(key) => PROPERTY_TYPES(key) === materialFacts?.propertyType
|
|
162
|
-
) || 0,
|
|
163
|
-
new_home: materialFacts?.isNewBuild,
|
|
164
|
-
address: {
|
|
165
|
-
house_name_number: materialFacts?.address?.line1,
|
|
166
|
-
address_2: materialFacts?.address?.line2,
|
|
167
|
-
town: materialFacts?.address?.town,
|
|
168
|
-
postcode_1: materialFacts?.address?.postcode.split(" ")[0],
|
|
169
|
-
postcode_2: materialFacts?.address?.postcode.split(" ")[1],
|
|
170
|
-
display_address: materialFacts?.address?.line1,
|
|
171
|
-
latitude: materialFacts?.location?.latitude,
|
|
172
|
-
longitude: materialFacts?.location?.longitude,
|
|
173
|
-
},
|
|
174
|
-
price_information: {
|
|
175
|
-
price: materialFacts?.price_information?.price,
|
|
176
|
-
price_qualifier: materialFacts?.price_information?.priceQualifier,
|
|
177
|
-
},
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
export const pdtfClaims = (adfProperty) => {
|
|
182
|
-
return {
|
|
183
|
-
"/propertyPack/materialFacts/address": {
|
|
184
|
-
line1: adfProperty?.address?.house_name_number,
|
|
185
|
-
line2: adfProperty?.address?.line2,
|
|
186
|
-
town: adfProperty?.address?.town,
|
|
187
|
-
postcode: `${adfProperty?.address?.postcode_1} ${adfProperty?.address?.postcode_2}`,
|
|
188
|
-
},
|
|
189
|
-
"/propertyPack/materialFacts/location": {
|
|
190
|
-
latitude: adfProperty?.address?.latitude,
|
|
191
|
-
longitude: adfProperty?.address?.longitude,
|
|
192
|
-
},
|
|
193
|
-
"/propertyPack/materialFacts/priceInformation": {
|
|
194
|
-
price: adfProperty?.price_information?.price,
|
|
195
|
-
priceQualifier: adfProperty?.price_information?.price_qualifier,
|
|
196
|
-
},
|
|
197
|
-
};
|
|
198
|
-
};
|