From 80555b3ccc148c83b56769190eca7949a5e1f7a0 Mon Sep 17 00:00:00 2001 From: Simeon Darakchiev Date: Wed, 10 Jul 2024 12:06:40 +0300 Subject: [PATCH] Added datasets to validate and enrich --- src/ts/address-search.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/ts/address-search.ts b/src/ts/address-search.ts index 18c4299..d76bd27 100644 --- a/src/ts/address-search.ts +++ b/src/ts/address-search.ts @@ -415,7 +415,17 @@ export default class AddressValidation { } ]; - if(this.currentDataSet === "gb-address"){ + if (this.currentDataSet === "gb-address" + || this.currentDataSet === "gb-additional-multipleresidence" + || this.currentDataSet === "gb-additional-notyetbuilt" + || this.currentDataSet === "gb-address-addressbase" + || this.currentDataSet === "gb-additional-addressbaseislands" + || this.currentDataSet === "gb-additional-business" + || this.currentDataSet === "gb-additional-electricity" + || this.currentDataSet === "gb-additional-gas" + || this.currentDataSet === "gb-address-streetlevel" + || this.currentDataSet === "gb-additional-businessextended" + || this.currentDataSet === "gb-address-wales"){ data['attributes'] = { "uk_location_essential":[ "latitude", @@ -445,7 +455,9 @@ export default class AddressValidation { ] }; } - else if(this.currentDataSet === "au-address"){ + else if (this.currentDataSet === "au-address" + || this.currentDataSet === "au-address-gnaf" + || this.currentDataSet === "au-address-datafusion"){ data['attributes']['AUS_CV_Household'] = [ "address", "adults_at_address_code",