From 94e57812ced57ea00485004564716facdf8695d8 Mon Sep 17 00:00:00 2001 From: Sparticuz Date: Wed, 21 May 2025 11:35:43 -0400 Subject: [PATCH 1/4] Add address_lines to types --- lib/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.d.ts b/lib/index.d.ts index 4dd692a..77fc049 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -181,6 +181,7 @@ declare module 'geocodio-library-node' { export interface GeocodedAddress { address_components: AddressComponents; + address_lines: string[]; formatted_address: string; location: Location; accuracy: number; From f6be4ad7b4e36a277cf01d8ff1bb527b78ec2dae Mon Sep 17 00:00:00 2001 From: Kyle McNally Date: Wed, 21 May 2025 12:01:42 -0400 Subject: [PATCH 2/4] Add census 2024 to FieldOption --- lib/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.d.ts b/lib/index.d.ts index 77fc049..fb5360d 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -212,6 +212,7 @@ declare module 'geocodio-library-node' { | 'census2018' | 'census2019' | 'census2020' + | 'census2024' | 'provriding' | 'riding' | 'zip4' From a3009d0ccdbe906f9f7ad4f73687ae85ecfed3b1 Mon Sep 17 00:00:00 2001 From: Kyle McNally Date: Wed, 21 May 2025 12:05:48 -0400 Subject: [PATCH 3/4] Add the rest of the missing `FieldOption`'s --- lib/index.d.ts | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index fb5360d..1d7e494 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -192,13 +192,16 @@ declare module 'geocodio-library-node' { export type FieldOption = | 'cd' - | 'cd116' - | 'cd115' - | 'cd114' | 'cd113' + | 'cd114' + | 'cd115' + | 'cd116' + | 'cd117' + | 'cd118' + | 'cd119' | 'stateleg' + | 'stateleg-next' | 'school' - | 'timezone' | 'census' | 'census2000' | 'census2010' @@ -212,15 +215,22 @@ declare module 'geocodio-library-node' { | 'census2018' | 'census2019' | 'census2020' + | 'census2021' + | 'census2022' + | 'census2023' | 'census2024' - | 'provriding' - | 'riding' - | 'zip4' | 'acs-demographics' | 'acs-economics' | 'acs-families' | 'acs-housing' - | 'acs-social'; + | 'acs-social' + | 'zip4' + | 'ffiec' + | 'riding' + | 'provriding' + | 'provriding-next' + | 'statcan' + | 'timezone'; export interface SingleGeocodeResponse { input: { From f04ca8c44c10b7125412fa44b718aeb644d7ca3a Mon Sep 17 00:00:00 2001 From: Kyle McNally Date: Wed, 21 May 2025 12:20:00 -0400 Subject: [PATCH 4/4] Update Census field Missing key of the year as a string. Also updated `Census` type to include more fields. --- lib/index.d.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 1d7e494..c9ab1d2 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -130,14 +130,22 @@ declare module 'geocodio-library-node' { census_year: number; state_fips: string; county_fips: string; - place_fips: string; tract_code: string; block_code: string; block_group: string; full_fips: string; + place: { name: string; fips: string; } metro_micro_statistical_area?: MetroArea; combined_statistical_area?: StatisticalArea; metropolitan_division?: StatisticalArea; + county_subdivision: { + name: string; + fips: string; + fips_class: { + class_code: string; + description: string; + } + } source: string; } @@ -174,7 +182,9 @@ declare module 'geocodio-library-node' { state_legislative_districts?: StateLegislativeDistricts; school_districts?: SchoolDistricts; timezone?: Timezone; - census?: Census; + census?: { + [key: string]: Census; + } zip4?: Zip4; [key: string]: unknown; }