@urbankitstudio/atlas 0.5.3 → 0.6.0

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.
@@ -44,7 +44,7 @@
44
44
  "url": "https://egis-lacounty.hub.arcgis.com/",
45
45
  "email": null
46
46
  },
47
- "notes": "Los Angeles County is the most populous US county (pop. 10M+) and contains 88 incorporated cities plus a large unincorporated area. The Assessor Identification Number (AIN) is a 10-digit numeric code unique to each parcel. The public LACounty_Cache/LACounty_Parcel MapServer layer exposes AIN, APN, and SitusFullAddress (no owner name), per California Government Code §7928.205, which broadly restricts owner name and mailing address from public REST endpoints across California. For ownership data, use the LA County Assessor's portal at assessor.lacounty.gov; the Assessor's office manages roughly 2.5 million parcels and publishes annual assessment rolls. Re-verified live 2026-06-04, a sample AIN query returned a real parcel. The EGIS open-data hub at egis-lacounty.hub.arcgis.com has downloadable parcel shapefiles. AIN queries use exact match: AIN='4321002009' (no dashes)."
47
+ "notes": "Los Angeles County is the most populous US county (pop. 10M+) and contains 88 incorporated cities plus a large unincorporated area. The Assessor Identification Number (AIN) is a 10-digit numeric code unique to each parcel. The public LACounty_Cache/LACounty_Parcel MapServer layer exposes AIN, APN, and SitusFullAddress (no owner name), because the county does not publish an owner column on this layer. California Government Code 7928.205 is often cited for this, but that section protects the home address of elected and appointed officials rather than owner data generally, and California counties differ: San Diego publishes owner names on its public layer while San Bernardino returns a redaction notice in every row. For ownership data, use the LA County Assessor's portal at assessor.lacounty.gov; the Assessor's office manages roughly 2.5 million parcels and publishes annual assessment rolls. Re-verified live 2026-06-04, a sample AIN query returned a real parcel. The EGIS open-data hub at egis-lacounty.hub.arcgis.com has downloadable parcel shapefiles. AIN queries use exact match: AIN='4321002009' (no dashes)."
48
48
  },
49
49
  {
50
50
  "id": "ca-sacramento",
@@ -205,7 +205,27 @@
205
205
  "url": "https://data-sbcounty.opendata.arcgis.com/",
206
206
  "email": null
207
207
  },
208
- "notes": "San Bernardino County is the largest county by land area in the contiguous United States (20,000+ sq mi, extending from the Inland Empire to the Nevada and Arizona borders), with a population of approximately 2.2M. 21 fields confirmed including ParcelNumber (the APN), OwnerName, LandValue, ImprovementValue, PersonalPropertyValue, ExemptionValue, HomeOwnerExemption, Acreage, TaxStatus, TaxRateArea, Zoning, ZoningDescription, Jurisdiction. Critical limitation: the OwnerName field exists in the schema and is returned in query results, but its value is redacted to the string 'Protected Per CA Gov Code 7928.205' on every public record. This is a deliberate redaction applied server-side under California Assembly Bill 1785 (effective January 2023), not a field that varies by parcel. ParcelNumber, LandValue, ImprovementValue, Zoning, and Acreage remain accessible and unredacted. Hosted on ArcGIS Online (services.arcgis.com/aA3snZwJfFkVyDuP). The county Assessor portal at arc.sbcounty.gov/property-information/ provides ownership data by APN. The Geographic Information Management Systems (GIMS) division manages the spatial data. Open-data hub: data-sbcounty.opendata.arcgis.com."
208
+ "notes": "San Bernardino County is the largest county by land area in the contiguous United States (20,000+ sq mi, extending from the Inland Empire to the Nevada and Arizona borders), with a population of approximately 2.2M. 21 fields confirmed including ParcelNumber (the APN), OwnerName, LandValue, ImprovementValue, PersonalPropertyValue, ExemptionValue, HomeOwnerExemption, Acreage, TaxStatus, TaxRateArea, Zoning, ZoningDescription, Jurisdiction. Critical limitation: the OwnerName field exists in the schema and is returned in query results, but its value is redacted to the string 'Protected Per CA Gov Code 7928.205' on every public record. This is a deliberate redaction applied server-side under California Assembly Bill 1785 (effective January 2023), not a field that varies by parcel. ParcelNumber, LandValue, ImprovementValue, Zoning, and Acreage remain accessible and unredacted. Hosted on ArcGIS Online (services.arcgis.com/aA3snZwJfFkVyDuP). The county Assessor portal at arc.sbcounty.gov/property-information/ provides ownership data by APN. The Geographic Information Management Systems (GIMS) division manages the spatial data. Open-data hub: data-sbcounty.opendata.arcgis.com.",
209
+ "ownerFieldNote": {
210
+ "body": "San Bernardino County's public parcel layer returns an OwnerName field, but every row's value is the literal string \"Protected Per CA Gov Code 7928.205\" rather than a name. The redaction is applied server-side to the whole layer, so no query can retrieve ownership here. Parcel number, land and improvement value, zoning, and acreage are unredacted and searchable; ownership by APN is available from the county Assessor's own portal.",
211
+ "source": {
212
+ "label": "San Bernardino County Assessor property information",
213
+ "url": "https://arc.sbcounty.gov/property-information/"
214
+ }
215
+ },
216
+ "capabilityOverrides": {
217
+ "owner_name": {
218
+ "status": "restricted",
219
+ "basis": {
220
+ "type": "county_cited_statute",
221
+ "note": "Every row's OwnerName value is the literal string \"Protected Per CA Gov Code 7928.205\" rather than a name. The county applies the redaction server-side to the whole layer and cites that section itself. The section protects the home address of elected and appointed officials, so this is the county's own reading applied to every parcel, not a statewide rule: San Diego County publishes owner names on its public layer.",
222
+ "citation": "Cal. Gov. Code 7928.205",
223
+ "attributedTo": "San Bernardino County",
224
+ "sourceUrl": "https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?sectionNum=7928.205&lawCode=GOV"
225
+ },
226
+ "lawfulAlternativeUrl": "https://arc.sbcounty.gov/property-information/"
227
+ }
228
+ }
209
229
  },
210
230
  {
211
231
  "id": "ca-san-diego",
package/dist/index.cjs CHANGED
@@ -1,5 +1,14 @@
1
1
  'use strict';
2
2
 
3
+ // src/capability.ts
4
+ function reviewedCapability(county, field) {
5
+ return county.capabilityOverrides?.[field] ?? null;
6
+ }
7
+ function isReviewedUnservable(county, field) {
8
+ const reviewed = reviewedCapability(county, field);
9
+ return reviewed?.status === "restricted" || reviewed?.status === "not_published";
10
+ }
11
+
3
12
  // src/types.ts
4
13
  var LIVE_STATUS_URL = "https://urbankitstudio.com/api/atlas/status";
5
14
 
@@ -916,7 +925,7 @@ var california_default = {
916
925
  url: "https://egis-lacounty.hub.arcgis.com/",
917
926
  email: null
918
927
  },
919
- notes: "Los Angeles County is the most populous US county (pop. 10M+) and contains 88 incorporated cities plus a large unincorporated area. The Assessor Identification Number (AIN) is a 10-digit numeric code unique to each parcel. The public LACounty_Cache/LACounty_Parcel MapServer layer exposes AIN, APN, and SitusFullAddress (no owner name), per California Government Code \xA77928.205, which broadly restricts owner name and mailing address from public REST endpoints across California. For ownership data, use the LA County Assessor's portal at assessor.lacounty.gov; the Assessor's office manages roughly 2.5 million parcels and publishes annual assessment rolls. Re-verified live 2026-06-04, a sample AIN query returned a real parcel. The EGIS open-data hub at egis-lacounty.hub.arcgis.com has downloadable parcel shapefiles. AIN queries use exact match: AIN='4321002009' (no dashes)."
928
+ notes: "Los Angeles County is the most populous US county (pop. 10M+) and contains 88 incorporated cities plus a large unincorporated area. The Assessor Identification Number (AIN) is a 10-digit numeric code unique to each parcel. The public LACounty_Cache/LACounty_Parcel MapServer layer exposes AIN, APN, and SitusFullAddress (no owner name), because the county does not publish an owner column on this layer. California Government Code 7928.205 is often cited for this, but that section protects the home address of elected and appointed officials rather than owner data generally, and California counties differ: San Diego publishes owner names on its public layer while San Bernardino returns a redaction notice in every row. For ownership data, use the LA County Assessor's portal at assessor.lacounty.gov; the Assessor's office manages roughly 2.5 million parcels and publishes annual assessment rolls. Re-verified live 2026-06-04, a sample AIN query returned a real parcel. The EGIS open-data hub at egis-lacounty.hub.arcgis.com has downloadable parcel shapefiles. AIN queries use exact match: AIN='4321002009' (no dashes)."
920
929
  },
921
930
  {
922
931
  id: "ca-sacramento",
@@ -1077,7 +1086,27 @@ var california_default = {
1077
1086
  url: "https://data-sbcounty.opendata.arcgis.com/",
1078
1087
  email: null
1079
1088
  },
1080
- notes: "San Bernardino County is the largest county by land area in the contiguous United States (20,000+ sq mi, extending from the Inland Empire to the Nevada and Arizona borders), with a population of approximately 2.2M. 21 fields confirmed including ParcelNumber (the APN), OwnerName, LandValue, ImprovementValue, PersonalPropertyValue, ExemptionValue, HomeOwnerExemption, Acreage, TaxStatus, TaxRateArea, Zoning, ZoningDescription, Jurisdiction. Critical limitation: the OwnerName field exists in the schema and is returned in query results, but its value is redacted to the string 'Protected Per CA Gov Code 7928.205' on every public record. This is a deliberate redaction applied server-side under California Assembly Bill 1785 (effective January 2023), not a field that varies by parcel. ParcelNumber, LandValue, ImprovementValue, Zoning, and Acreage remain accessible and unredacted. Hosted on ArcGIS Online (services.arcgis.com/aA3snZwJfFkVyDuP). The county Assessor portal at arc.sbcounty.gov/property-information/ provides ownership data by APN. The Geographic Information Management Systems (GIMS) division manages the spatial data. Open-data hub: data-sbcounty.opendata.arcgis.com."
1089
+ notes: "San Bernardino County is the largest county by land area in the contiguous United States (20,000+ sq mi, extending from the Inland Empire to the Nevada and Arizona borders), with a population of approximately 2.2M. 21 fields confirmed including ParcelNumber (the APN), OwnerName, LandValue, ImprovementValue, PersonalPropertyValue, ExemptionValue, HomeOwnerExemption, Acreage, TaxStatus, TaxRateArea, Zoning, ZoningDescription, Jurisdiction. Critical limitation: the OwnerName field exists in the schema and is returned in query results, but its value is redacted to the string 'Protected Per CA Gov Code 7928.205' on every public record. This is a deliberate redaction applied server-side under California Assembly Bill 1785 (effective January 2023), not a field that varies by parcel. ParcelNumber, LandValue, ImprovementValue, Zoning, and Acreage remain accessible and unredacted. Hosted on ArcGIS Online (services.arcgis.com/aA3snZwJfFkVyDuP). The county Assessor portal at arc.sbcounty.gov/property-information/ provides ownership data by APN. The Geographic Information Management Systems (GIMS) division manages the spatial data. Open-data hub: data-sbcounty.opendata.arcgis.com.",
1090
+ ownerFieldNote: {
1091
+ body: `San Bernardino County's public parcel layer returns an OwnerName field, but every row's value is the literal string "Protected Per CA Gov Code 7928.205" rather than a name. The redaction is applied server-side to the whole layer, so no query can retrieve ownership here. Parcel number, land and improvement value, zoning, and acreage are unredacted and searchable; ownership by APN is available from the county Assessor's own portal.`,
1092
+ source: {
1093
+ label: "San Bernardino County Assessor property information",
1094
+ url: "https://arc.sbcounty.gov/property-information/"
1095
+ }
1096
+ },
1097
+ capabilityOverrides: {
1098
+ owner_name: {
1099
+ status: "restricted",
1100
+ basis: {
1101
+ type: "county_cited_statute",
1102
+ note: `Every row's OwnerName value is the literal string "Protected Per CA Gov Code 7928.205" rather than a name. The county applies the redaction server-side to the whole layer and cites that section itself. The section protects the home address of elected and appointed officials, so this is the county's own reading applied to every parcel, not a statewide rule: San Diego County publishes owner names on its public layer.`,
1103
+ citation: "Cal. Gov. Code 7928.205",
1104
+ attributedTo: "San Bernardino County",
1105
+ sourceUrl: "https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?sectionNum=7928.205&lawCode=GOV"
1106
+ },
1107
+ lawfulAlternativeUrl: "https://arc.sbcounty.gov/property-information/"
1108
+ }
1109
+ }
1081
1110
  },
1082
1111
  {
1083
1112
  id: "ca-san-diego",
@@ -8237,7 +8266,9 @@ exports.countySlugFromName = countySlugFromName;
8237
8266
  exports.findCounty = findCounty;
8238
8267
  exports.findCountyByFips = findCountyByFips;
8239
8268
  exports.findState = findState;
8269
+ exports.isReviewedUnservable = isReviewedUnservable;
8240
8270
  exports.listCountiesByState = listCountiesByState;
8241
8271
  exports.listStates = listStates;
8272
+ exports.reviewedCapability = reviewedCapability;
8242
8273
  exports.slugify = slugify;
8243
8274
  exports.statePath = statePath;
package/dist/index.d.cts CHANGED
@@ -52,6 +52,58 @@ interface ContactInfo {
52
52
  url: string | null;
53
53
  email: string | null;
54
54
  }
55
+ /** A short curated caveat about a county, written by a human. */
56
+ interface CountyAdvisory {
57
+ body: string;
58
+ source?: {
59
+ label: string;
60
+ url: string;
61
+ };
62
+ }
63
+ /** The fields a caller can ask a county about. */
64
+ type CapabilityField = "apn" | "owner_name" | "owner_mailing_address" | "situs_address" | "geometry" | "land_use" | "zoning";
65
+ type CapabilityStatus = "available" | "not_published" | "restricted" | "unverified";
66
+ /**
67
+ * Where a non-available status comes from. The type matters more than the
68
+ * prose, because it tells you whether you are reading a fact about a service, a
69
+ * claim the COUNTY makes, or a claim we make.
70
+ *
71
+ * `county_cited_statute` is the one to read carefully. It means the county
72
+ * publishes that citation as its own reason, reported here attributed to them
73
+ * rather than adopted as our reading of the law. San Bernardino County returns
74
+ * the literal string "Protected Per CA Gov Code 7928.205" in every owner-name
75
+ * row; that section protects the home address of elected and appointed
76
+ * officials, and San Diego County publishes owner names on its public layer.
77
+ * One statute, different county behaviour, so the attribution is not a
78
+ * formality.
79
+ */
80
+ type CapabilityBasisType = "endpoint_schema" | "county_cited_statute" | "statute" | "county_policy";
81
+ interface CapabilityBasis {
82
+ type: CapabilityBasisType;
83
+ /** One sentence you could show a user without editing. */
84
+ note: string;
85
+ citation?: string;
86
+ sourceUrl?: string;
87
+ /** Who makes the claim, when it is not us. Always set for county_cited_statute. */
88
+ attributedTo?: string;
89
+ }
90
+ /**
91
+ * REVIEWED capability assertions, per field. Only entries a human entered and
92
+ * checked appear here, which is exactly the knowledge you cannot compute from
93
+ * the bundled data yourself.
94
+ *
95
+ * What is NOT here is the mechanical half. Whether a field is simply absent
96
+ * from an endpoint's documented `searchFields` is derivable, and this package
97
+ * deliberately does not derive it: a second implementation of that
98
+ * classification would drift from the one the API bills against, and you would
99
+ * have no way to tell which was right. Read `endpoints[].searchFields` for the
100
+ * mechanical answer, and treat an entry here as outranking it.
101
+ */
102
+ type CapabilityOverrides = Partial<Record<CapabilityField, {
103
+ status: CapabilityStatus;
104
+ basis: CapabilityBasis;
105
+ lawfulAlternativeUrl?: string | null;
106
+ }>>;
55
107
  interface CountyRecord {
56
108
  id: string;
57
109
  state: string;
@@ -64,6 +116,14 @@ interface CountyRecord {
64
116
  contact: ContactInfo | null;
65
117
  hasPublicRest: boolean;
66
118
  notes: string | null;
119
+ /** Curated caveat about owner data on this county's public layer. */
120
+ ownerFieldNote?: CountyAdvisory | null;
121
+ /** Curated caveat about how old the county's published data is. */
122
+ dataVintage?: CountyAdvisory | null;
123
+ /** Reviewed, per-field capability assertions. See {@link CapabilityOverrides}. */
124
+ capabilityOverrides?: CapabilityOverrides | null;
125
+ relatedZoningCitySlug?: string | null;
126
+ relatedPropertyCitySlug?: string | null;
67
127
  }
68
128
  interface StateFile {
69
129
  stateSlug: string;
@@ -91,6 +151,31 @@ interface AtlasIndex {
91
151
  };
92
152
  }
93
153
 
154
+ /**
155
+ * The reviewed capability assertion for one field, or null when none exists.
156
+ *
157
+ * Null is the common answer and it is not a failure: it means nobody has had to
158
+ * write anything down about that field for that county, so the ordinary rules
159
+ * apply. Read `county.endpoints[].searchFields` to see what the layer actually
160
+ * documents.
161
+ *
162
+ * A non-null answer is the part worth branching on. It was entered by a human
163
+ * who checked something a field list cannot show, and it outranks whatever the
164
+ * field list implies. The clearest case: San Bernardino County publishes an
165
+ * `OwnerName` column, so the field list says owner names are available, and
166
+ * every row's value is the literal string "Protected Per CA Gov Code 7928.205".
167
+ * Only the reviewed record can tell you that.
168
+ */
169
+ declare function reviewedCapability(county: Pick<CountyRecord, "capabilityOverrides">, field: CapabilityField): NonNullable<CapabilityOverrides[CapabilityField]> | null;
170
+ /**
171
+ * True when a reviewed record says this field cannot be served, whatever the
172
+ * reason. Use it to decide whether to promise a user the field at all.
173
+ *
174
+ * False does NOT mean "available". It means no reviewed record says otherwise,
175
+ * so fall back to the endpoint's documented `searchFields`.
176
+ */
177
+ declare function isReviewedUnservable(county: Pick<CountyRecord, "capabilityOverrides">, field: CapabilityField): boolean;
178
+
94
179
  /**
95
180
  * Look up a county by state slug and county slug.
96
181
  * Returns undefined if the state isn't populated yet or the county doesn't exist.
@@ -146,4 +231,4 @@ interface Atlas {
146
231
  }
147
232
  declare const atlas: Atlas;
148
233
 
149
- export { type Atlas, type AtlasIndex, type ContactInfo, type CountyRecord, type EndpointRecord, type EndpointStatus, LIVE_STATUS_URL, type LicenseType, type SearchField, type ServiceType, type StateFile, type StateIndexEntry, type VerifiedBy, atlas, atlasIndex, buildParcelLookupDeepLink, countyPath, countySlugFromName, findCounty, findCountyByFips, findState, listCountiesByState, listStates, slugify, statePath };
234
+ export { type Atlas, type AtlasIndex, type CapabilityBasis, type CapabilityBasisType, type CapabilityField, type CapabilityOverrides, type CapabilityStatus, type ContactInfo, type CountyAdvisory, type CountyRecord, type EndpointRecord, type EndpointStatus, LIVE_STATUS_URL, type LicenseType, type SearchField, type ServiceType, type StateFile, type StateIndexEntry, type VerifiedBy, atlas, atlasIndex, buildParcelLookupDeepLink, countyPath, countySlugFromName, findCounty, findCountyByFips, findState, isReviewedUnservable, listCountiesByState, listStates, reviewedCapability, slugify, statePath };
package/dist/index.d.ts CHANGED
@@ -52,6 +52,58 @@ interface ContactInfo {
52
52
  url: string | null;
53
53
  email: string | null;
54
54
  }
55
+ /** A short curated caveat about a county, written by a human. */
56
+ interface CountyAdvisory {
57
+ body: string;
58
+ source?: {
59
+ label: string;
60
+ url: string;
61
+ };
62
+ }
63
+ /** The fields a caller can ask a county about. */
64
+ type CapabilityField = "apn" | "owner_name" | "owner_mailing_address" | "situs_address" | "geometry" | "land_use" | "zoning";
65
+ type CapabilityStatus = "available" | "not_published" | "restricted" | "unverified";
66
+ /**
67
+ * Where a non-available status comes from. The type matters more than the
68
+ * prose, because it tells you whether you are reading a fact about a service, a
69
+ * claim the COUNTY makes, or a claim we make.
70
+ *
71
+ * `county_cited_statute` is the one to read carefully. It means the county
72
+ * publishes that citation as its own reason, reported here attributed to them
73
+ * rather than adopted as our reading of the law. San Bernardino County returns
74
+ * the literal string "Protected Per CA Gov Code 7928.205" in every owner-name
75
+ * row; that section protects the home address of elected and appointed
76
+ * officials, and San Diego County publishes owner names on its public layer.
77
+ * One statute, different county behaviour, so the attribution is not a
78
+ * formality.
79
+ */
80
+ type CapabilityBasisType = "endpoint_schema" | "county_cited_statute" | "statute" | "county_policy";
81
+ interface CapabilityBasis {
82
+ type: CapabilityBasisType;
83
+ /** One sentence you could show a user without editing. */
84
+ note: string;
85
+ citation?: string;
86
+ sourceUrl?: string;
87
+ /** Who makes the claim, when it is not us. Always set for county_cited_statute. */
88
+ attributedTo?: string;
89
+ }
90
+ /**
91
+ * REVIEWED capability assertions, per field. Only entries a human entered and
92
+ * checked appear here, which is exactly the knowledge you cannot compute from
93
+ * the bundled data yourself.
94
+ *
95
+ * What is NOT here is the mechanical half. Whether a field is simply absent
96
+ * from an endpoint's documented `searchFields` is derivable, and this package
97
+ * deliberately does not derive it: a second implementation of that
98
+ * classification would drift from the one the API bills against, and you would
99
+ * have no way to tell which was right. Read `endpoints[].searchFields` for the
100
+ * mechanical answer, and treat an entry here as outranking it.
101
+ */
102
+ type CapabilityOverrides = Partial<Record<CapabilityField, {
103
+ status: CapabilityStatus;
104
+ basis: CapabilityBasis;
105
+ lawfulAlternativeUrl?: string | null;
106
+ }>>;
55
107
  interface CountyRecord {
56
108
  id: string;
57
109
  state: string;
@@ -64,6 +116,14 @@ interface CountyRecord {
64
116
  contact: ContactInfo | null;
65
117
  hasPublicRest: boolean;
66
118
  notes: string | null;
119
+ /** Curated caveat about owner data on this county's public layer. */
120
+ ownerFieldNote?: CountyAdvisory | null;
121
+ /** Curated caveat about how old the county's published data is. */
122
+ dataVintage?: CountyAdvisory | null;
123
+ /** Reviewed, per-field capability assertions. See {@link CapabilityOverrides}. */
124
+ capabilityOverrides?: CapabilityOverrides | null;
125
+ relatedZoningCitySlug?: string | null;
126
+ relatedPropertyCitySlug?: string | null;
67
127
  }
68
128
  interface StateFile {
69
129
  stateSlug: string;
@@ -91,6 +151,31 @@ interface AtlasIndex {
91
151
  };
92
152
  }
93
153
 
154
+ /**
155
+ * The reviewed capability assertion for one field, or null when none exists.
156
+ *
157
+ * Null is the common answer and it is not a failure: it means nobody has had to
158
+ * write anything down about that field for that county, so the ordinary rules
159
+ * apply. Read `county.endpoints[].searchFields` to see what the layer actually
160
+ * documents.
161
+ *
162
+ * A non-null answer is the part worth branching on. It was entered by a human
163
+ * who checked something a field list cannot show, and it outranks whatever the
164
+ * field list implies. The clearest case: San Bernardino County publishes an
165
+ * `OwnerName` column, so the field list says owner names are available, and
166
+ * every row's value is the literal string "Protected Per CA Gov Code 7928.205".
167
+ * Only the reviewed record can tell you that.
168
+ */
169
+ declare function reviewedCapability(county: Pick<CountyRecord, "capabilityOverrides">, field: CapabilityField): NonNullable<CapabilityOverrides[CapabilityField]> | null;
170
+ /**
171
+ * True when a reviewed record says this field cannot be served, whatever the
172
+ * reason. Use it to decide whether to promise a user the field at all.
173
+ *
174
+ * False does NOT mean "available". It means no reviewed record says otherwise,
175
+ * so fall back to the endpoint's documented `searchFields`.
176
+ */
177
+ declare function isReviewedUnservable(county: Pick<CountyRecord, "capabilityOverrides">, field: CapabilityField): boolean;
178
+
94
179
  /**
95
180
  * Look up a county by state slug and county slug.
96
181
  * Returns undefined if the state isn't populated yet or the county doesn't exist.
@@ -146,4 +231,4 @@ interface Atlas {
146
231
  }
147
232
  declare const atlas: Atlas;
148
233
 
149
- export { type Atlas, type AtlasIndex, type ContactInfo, type CountyRecord, type EndpointRecord, type EndpointStatus, LIVE_STATUS_URL, type LicenseType, type SearchField, type ServiceType, type StateFile, type StateIndexEntry, type VerifiedBy, atlas, atlasIndex, buildParcelLookupDeepLink, countyPath, countySlugFromName, findCounty, findCountyByFips, findState, listCountiesByState, listStates, slugify, statePath };
234
+ export { type Atlas, type AtlasIndex, type CapabilityBasis, type CapabilityBasisType, type CapabilityField, type CapabilityOverrides, type CapabilityStatus, type ContactInfo, type CountyAdvisory, type CountyRecord, type EndpointRecord, type EndpointStatus, LIVE_STATUS_URL, type LicenseType, type SearchField, type ServiceType, type StateFile, type StateIndexEntry, type VerifiedBy, atlas, atlasIndex, buildParcelLookupDeepLink, countyPath, countySlugFromName, findCounty, findCountyByFips, findState, isReviewedUnservable, listCountiesByState, listStates, reviewedCapability, slugify, statePath };
package/dist/index.js CHANGED
@@ -1,3 +1,12 @@
1
+ // src/capability.ts
2
+ function reviewedCapability(county, field) {
3
+ return county.capabilityOverrides?.[field] ?? null;
4
+ }
5
+ function isReviewedUnservable(county, field) {
6
+ const reviewed = reviewedCapability(county, field);
7
+ return reviewed?.status === "restricted" || reviewed?.status === "not_published";
8
+ }
9
+
1
10
  // src/types.ts
2
11
  var LIVE_STATUS_URL = "https://urbankitstudio.com/api/atlas/status";
3
12
 
@@ -914,7 +923,7 @@ var california_default = {
914
923
  url: "https://egis-lacounty.hub.arcgis.com/",
915
924
  email: null
916
925
  },
917
- notes: "Los Angeles County is the most populous US county (pop. 10M+) and contains 88 incorporated cities plus a large unincorporated area. The Assessor Identification Number (AIN) is a 10-digit numeric code unique to each parcel. The public LACounty_Cache/LACounty_Parcel MapServer layer exposes AIN, APN, and SitusFullAddress (no owner name), per California Government Code \xA77928.205, which broadly restricts owner name and mailing address from public REST endpoints across California. For ownership data, use the LA County Assessor's portal at assessor.lacounty.gov; the Assessor's office manages roughly 2.5 million parcels and publishes annual assessment rolls. Re-verified live 2026-06-04, a sample AIN query returned a real parcel. The EGIS open-data hub at egis-lacounty.hub.arcgis.com has downloadable parcel shapefiles. AIN queries use exact match: AIN='4321002009' (no dashes)."
926
+ notes: "Los Angeles County is the most populous US county (pop. 10M+) and contains 88 incorporated cities plus a large unincorporated area. The Assessor Identification Number (AIN) is a 10-digit numeric code unique to each parcel. The public LACounty_Cache/LACounty_Parcel MapServer layer exposes AIN, APN, and SitusFullAddress (no owner name), because the county does not publish an owner column on this layer. California Government Code 7928.205 is often cited for this, but that section protects the home address of elected and appointed officials rather than owner data generally, and California counties differ: San Diego publishes owner names on its public layer while San Bernardino returns a redaction notice in every row. For ownership data, use the LA County Assessor's portal at assessor.lacounty.gov; the Assessor's office manages roughly 2.5 million parcels and publishes annual assessment rolls. Re-verified live 2026-06-04, a sample AIN query returned a real parcel. The EGIS open-data hub at egis-lacounty.hub.arcgis.com has downloadable parcel shapefiles. AIN queries use exact match: AIN='4321002009' (no dashes)."
918
927
  },
919
928
  {
920
929
  id: "ca-sacramento",
@@ -1075,7 +1084,27 @@ var california_default = {
1075
1084
  url: "https://data-sbcounty.opendata.arcgis.com/",
1076
1085
  email: null
1077
1086
  },
1078
- notes: "San Bernardino County is the largest county by land area in the contiguous United States (20,000+ sq mi, extending from the Inland Empire to the Nevada and Arizona borders), with a population of approximately 2.2M. 21 fields confirmed including ParcelNumber (the APN), OwnerName, LandValue, ImprovementValue, PersonalPropertyValue, ExemptionValue, HomeOwnerExemption, Acreage, TaxStatus, TaxRateArea, Zoning, ZoningDescription, Jurisdiction. Critical limitation: the OwnerName field exists in the schema and is returned in query results, but its value is redacted to the string 'Protected Per CA Gov Code 7928.205' on every public record. This is a deliberate redaction applied server-side under California Assembly Bill 1785 (effective January 2023), not a field that varies by parcel. ParcelNumber, LandValue, ImprovementValue, Zoning, and Acreage remain accessible and unredacted. Hosted on ArcGIS Online (services.arcgis.com/aA3snZwJfFkVyDuP). The county Assessor portal at arc.sbcounty.gov/property-information/ provides ownership data by APN. The Geographic Information Management Systems (GIMS) division manages the spatial data. Open-data hub: data-sbcounty.opendata.arcgis.com."
1087
+ notes: "San Bernardino County is the largest county by land area in the contiguous United States (20,000+ sq mi, extending from the Inland Empire to the Nevada and Arizona borders), with a population of approximately 2.2M. 21 fields confirmed including ParcelNumber (the APN), OwnerName, LandValue, ImprovementValue, PersonalPropertyValue, ExemptionValue, HomeOwnerExemption, Acreage, TaxStatus, TaxRateArea, Zoning, ZoningDescription, Jurisdiction. Critical limitation: the OwnerName field exists in the schema and is returned in query results, but its value is redacted to the string 'Protected Per CA Gov Code 7928.205' on every public record. This is a deliberate redaction applied server-side under California Assembly Bill 1785 (effective January 2023), not a field that varies by parcel. ParcelNumber, LandValue, ImprovementValue, Zoning, and Acreage remain accessible and unredacted. Hosted on ArcGIS Online (services.arcgis.com/aA3snZwJfFkVyDuP). The county Assessor portal at arc.sbcounty.gov/property-information/ provides ownership data by APN. The Geographic Information Management Systems (GIMS) division manages the spatial data. Open-data hub: data-sbcounty.opendata.arcgis.com.",
1088
+ ownerFieldNote: {
1089
+ body: `San Bernardino County's public parcel layer returns an OwnerName field, but every row's value is the literal string "Protected Per CA Gov Code 7928.205" rather than a name. The redaction is applied server-side to the whole layer, so no query can retrieve ownership here. Parcel number, land and improvement value, zoning, and acreage are unredacted and searchable; ownership by APN is available from the county Assessor's own portal.`,
1090
+ source: {
1091
+ label: "San Bernardino County Assessor property information",
1092
+ url: "https://arc.sbcounty.gov/property-information/"
1093
+ }
1094
+ },
1095
+ capabilityOverrides: {
1096
+ owner_name: {
1097
+ status: "restricted",
1098
+ basis: {
1099
+ type: "county_cited_statute",
1100
+ note: `Every row's OwnerName value is the literal string "Protected Per CA Gov Code 7928.205" rather than a name. The county applies the redaction server-side to the whole layer and cites that section itself. The section protects the home address of elected and appointed officials, so this is the county's own reading applied to every parcel, not a statewide rule: San Diego County publishes owner names on its public layer.`,
1101
+ citation: "Cal. Gov. Code 7928.205",
1102
+ attributedTo: "San Bernardino County",
1103
+ sourceUrl: "https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?sectionNum=7928.205&lawCode=GOV"
1104
+ },
1105
+ lawfulAlternativeUrl: "https://arc.sbcounty.gov/property-information/"
1106
+ }
1107
+ }
1079
1108
  },
1080
1109
  {
1081
1110
  id: "ca-san-diego",
@@ -8226,4 +8255,4 @@ function countyPath(stateSlug, countySlug) {
8226
8255
  return `/parcel-atlas/${stateSlug}/${countySlug}`;
8227
8256
  }
8228
8257
 
8229
- export { LIVE_STATUS_URL, atlas, atlasIndex, buildParcelLookupDeepLink, countyPath, countySlugFromName, findCounty, findCountyByFips, findState, listCountiesByState, listStates, slugify, statePath };
8258
+ export { LIVE_STATUS_URL, atlas, atlasIndex, buildParcelLookupDeepLink, countyPath, countySlugFromName, findCounty, findCountyByFips, findState, isReviewedUnservable, listCountiesByState, listStates, reviewedCapability, slugify, statePath };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urbankitstudio/atlas",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "description": "JS SDK for the UrbanKit County Parcel REST API Atlas — public ArcGIS REST endpoints for US county parcel data, with searchable field metadata, sample queries, and license info.",
5
5
  "keywords": [
6
6
  "parcel",
@@ -57,7 +57,7 @@
57
57
  "devDependencies": {
58
58
  "tsup": "^8.3.5",
59
59
  "typescript": "^5.8.3",
60
- "vitest": "^2.1.8"
60
+ "vitest": "^4.1.10"
61
61
  },
62
62
  "publishConfig": {
63
63
  "access": "public"