@mailwoman/core 10.1.0 → 10.2.1
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/lib/api/APIClient.ts +5 -6
- package/lib/api/arcgis.ts +5 -5
- package/lib/api/ckan.ts +2 -1
- package/lib/api/disk-storage.ts +3 -3
- package/lib/api/ogc.ts +56 -52
- package/lib/api/pacer.ts +1 -1
- package/lib/api/retry.ts +6 -4
- package/lib/api/test/transport.ts +20 -20
- package/lib/api.ts +1 -0
- package/lib/coarse-placer/coarse-placer.ts +4 -3
- package/lib/crypto/node.ts +1 -2
- package/lib/decoder/build-tree.ts +5 -5
- package/lib/decoder/parse-diff.ts +47 -31
- package/lib/decoder/proposals-to-tree.ts +1 -0
- package/lib/decoder/serialize/json.ts +9 -6
- package/lib/decoder/serialize/tuples.ts +2 -1
- package/lib/decoder/serialize/xml.ts +15 -14
- package/lib/decoder/tree/shape.ts +14 -14
- package/lib/decoder/tree/walk.ts +2 -2
- package/lib/decoder/types.ts +48 -2
- package/lib/env/schema.ts +21 -23
- package/lib/env/utils.ts +4 -3
- package/lib/env.ts +4 -4
- package/lib/fs/delimited.ts +35 -1
- package/lib/fs/readers.ts +2 -5
- package/lib/fs/zip.ts +1 -1
- package/lib/geocode/result.ts +337 -0
- package/lib/git.ts +1 -1
- package/lib/html/document.ts +6 -6
- package/lib/html/elements.ts +26 -23
- package/lib/identical.ts +20 -0
- package/lib/json.ts +5 -7
- package/lib/layers/coverage.ts +28 -1
- package/lib/layers/feature-count.ts +3 -3
- package/lib/layers/manifest.ts +22 -21
- package/lib/layers/schema.ts +25 -1
- package/lib/license/configured.ts +3 -3
- package/lib/license/key/file.ts +2 -1
- package/lib/license/key.ts +3 -3
- package/lib/license/stamp.ts +4 -4
- package/lib/locale/locale.ts +1 -1
- package/lib/locale/registry.ts +2 -2
- package/lib/module/compiled-freshness.ts +1 -1
- package/lib/module/package-command.ts +4 -2
- package/lib/module/packaged-data.ts +1 -1
- package/lib/module/resolve-from.ts +1 -1
- package/lib/numeric.ts +4 -4
- package/lib/objects.ts +3 -0
- package/lib/paths.ts +16 -1
- package/lib/pipeline/client-result.ts +14 -14
- package/lib/pipeline/result.ts +5 -4
- package/lib/pipeline/runtime-pipeline.ts +65 -42
- package/lib/pipeline/span-proposer.ts +1 -1
- package/lib/pipeline/types.ts +328 -161
- package/lib/pipeline.ts +32 -7
- package/lib/policy/proposal-collection.ts +1 -1
- package/lib/policy/registry.ts +5 -3
- package/lib/resolver/authoritative-provider.ts +17 -17
- package/lib/resolver/coverage-facts.ts +3 -3
- package/lib/resolver/fixture-authoritative-provider.ts +4 -0
- package/lib/resolver/lookup-types.ts +54 -14
- package/lib/resolver/postcode-format.ts +9 -9
- package/lib/resolver/referential.ts +2 -2
- package/lib/resolver/types.ts +155 -51
- package/lib/resolver.ts +22 -20
- package/lib/resources/git.ts +1 -1
- package/lib/resources/languages.ts +0 -2
- package/lib/resources/libpostal.ts +1 -1
- package/lib/resources/whosonfirst/PlacetypeDataSource.ts +2 -6
- package/lib/resources/whosonfirst/extract-repo.ts +2 -1
- package/lib/resources/whosonfirst/placetypes/admin.ts +20 -25
- package/lib/resources/whosonfirst/placetypes/mermaid.ts +4 -3
- package/lib/resources/whosonfirst/placetypes/specificity.ts +7 -7
- package/lib/resources.ts +1 -0
- package/lib/scripting/arguments.ts +6 -5
- package/lib/scripting/command.ts +3 -2
- package/lib/scripting/operation.ts +2 -2
- package/lib/scripting/utils.ts +3 -5
- package/lib/strings/python-json.ts +1 -1
- package/lib/tokenization/Span.ts +1 -1
- package/lib/trust-policies.ts +0 -2
- package/lib/types/Classification.ts +1 -1
- package/lib/types/classifier.ts +1 -1
- package/lib/utils/geodatabase-archive.ts +13 -5
- package/lib/utils/sqlite-rows.ts +3 -3
- package/lib/utils/stream-to-disk.ts +1 -3
- package/lib/utils/union-find.ts +1 -1
- package/lib/vale.ts +1 -1
- package/lib/workspaces.ts +2 -2
- package/out/api/APIClient.d.ts +3 -3
- package/out/api/APIClient.d.ts.map +1 -1
- package/out/api/APIClient.js +2 -3
- package/out/api/APIClient.js.map +1 -1
- package/out/api/arcgis.d.ts +2 -2
- package/out/api/arcgis.d.ts.map +1 -1
- package/out/api/arcgis.js +6 -6
- package/out/api/arcgis.js.map +1 -1
- package/out/api/ckan.d.ts +2 -1
- package/out/api/ckan.d.ts.map +1 -1
- package/out/api/ckan.js.map +1 -1
- package/out/api/disk-storage.d.ts +1 -1
- package/out/api/disk-storage.js +2 -2
- package/out/api/disk-storage.js.map +1 -1
- package/out/api/ogc.d.ts +32 -27
- package/out/api/ogc.d.ts.map +1 -1
- package/out/api/ogc.js +41 -46
- package/out/api/ogc.js.map +1 -1
- package/out/api/pacer.d.ts +1 -1
- package/out/api/pacer.js +1 -1
- package/out/api/retry.d.ts +6 -4
- package/out/api/retry.d.ts.map +1 -1
- package/out/api/retry.js +1 -1
- package/out/api/retry.js.map +1 -1
- package/out/api/test/transport.d.ts +11 -11
- package/out/api/test/transport.d.ts.map +1 -1
- package/out/api/test/transport.js +16 -16
- package/out/api/test/transport.js.map +1 -1
- package/out/api.d.ts +1 -0
- package/out/api.d.ts.map +1 -1
- package/out/api.js +1 -0
- package/out/api.js.map +1 -1
- package/out/coarse-placer/coarse-placer.d.ts +3 -2
- package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
- package/out/coarse-placer/coarse-placer.js +1 -1
- package/out/coarse-placer/coarse-placer.js.map +1 -1
- package/out/crypto/node.d.ts +1 -2
- package/out/crypto/node.d.ts.map +1 -1
- package/out/crypto/node.js +1 -2
- package/out/crypto/node.js.map +1 -1
- package/out/decoder/build-tree.js +5 -5
- package/out/decoder/build-tree.js.map +1 -1
- package/out/decoder/parse-diff.d.ts +19 -19
- package/out/decoder/parse-diff.d.ts.map +1 -1
- package/out/decoder/parse-diff.js +28 -12
- package/out/decoder/parse-diff.js.map +1 -1
- package/out/decoder/proposals-to-tree.d.ts.map +1 -1
- package/out/decoder/proposals-to-tree.js +1 -0
- package/out/decoder/proposals-to-tree.js.map +1 -1
- package/out/decoder/serialize/json.d.ts +35 -17
- package/out/decoder/serialize/json.d.ts.map +1 -1
- package/out/decoder/serialize/json.js +28 -0
- package/out/decoder/serialize/json.js.map +1 -1
- package/out/decoder/serialize/tuples.d.ts +2 -1
- package/out/decoder/serialize/tuples.d.ts.map +1 -1
- package/out/decoder/serialize/tuples.js.map +1 -1
- package/out/decoder/serialize/xml.d.ts +12 -11
- package/out/decoder/serialize/xml.d.ts.map +1 -1
- package/out/decoder/serialize/xml.js +3 -3
- package/out/decoder/serialize/xml.js.map +1 -1
- package/out/decoder/tree/shape.d.ts +6 -6
- package/out/decoder/tree/shape.d.ts.map +1 -1
- package/out/decoder/tree/shape.js +8 -8
- package/out/decoder/tree/shape.js.map +1 -1
- package/out/decoder/tree/walk.d.ts +1 -1
- package/out/decoder/tree/walk.d.ts.map +1 -1
- package/out/decoder/tree/walk.js +1 -1
- package/out/decoder/tree/walk.js.map +1 -1
- package/out/decoder/types.d.ts +55 -2
- package/out/decoder/types.d.ts.map +1 -1
- package/out/decoder/types.js +39 -1
- package/out/decoder/types.js.map +1 -1
- package/out/env/schema.d.ts +11 -12
- package/out/env/schema.d.ts.map +1 -1
- package/out/env/schema.js +15 -17
- package/out/env/schema.js.map +1 -1
- package/out/env/utils.d.ts +2 -2
- package/out/env/utils.d.ts.map +1 -1
- package/out/env/utils.js +2 -2
- package/out/env/utils.js.map +1 -1
- package/out/env.js +4 -4
- package/out/env.js.map +1 -1
- package/out/fs/delimited.d.ts +18 -0
- package/out/fs/delimited.d.ts.map +1 -1
- package/out/fs/delimited.js +31 -1
- package/out/fs/delimited.js.map +1 -1
- package/out/fs/readers.d.ts +2 -4
- package/out/fs/readers.d.ts.map +1 -1
- package/out/fs/readers.js +2 -4
- package/out/fs/readers.js.map +1 -1
- package/out/fs/zip.js +1 -1
- package/out/fs/zip.js.map +1 -1
- package/out/geocode/result.d.ts +475 -0
- package/out/geocode/result.d.ts.map +1 -0
- package/out/geocode/result.js +280 -0
- package/out/geocode/result.js.map +1 -0
- package/out/git.js +1 -1
- package/out/git.js.map +1 -1
- package/out/html/document.d.ts +3 -3
- package/out/html/document.d.ts.map +1 -1
- package/out/html/document.js +4 -4
- package/out/html/document.js.map +1 -1
- package/out/html/elements.d.ts +18 -15
- package/out/html/elements.d.ts.map +1 -1
- package/out/html/elements.js +17 -16
- package/out/html/elements.js.map +1 -1
- package/out/identical.d.ts +16 -0
- package/out/identical.d.ts.map +1 -0
- package/out/identical.js +19 -0
- package/out/identical.js.map +1 -0
- package/out/json.d.ts +3 -5
- package/out/json.d.ts.map +1 -1
- package/out/json.js +3 -5
- package/out/json.js.map +1 -1
- package/out/layers/coverage.d.ts +26 -1
- package/out/layers/coverage.d.ts.map +1 -1
- package/out/layers/coverage.js.map +1 -1
- package/out/layers/feature-count.d.ts +1 -1
- package/out/layers/feature-count.d.ts.map +1 -1
- package/out/layers/feature-count.js +2 -2
- package/out/layers/feature-count.js.map +1 -1
- package/out/layers/manifest.d.ts +11 -10
- package/out/layers/manifest.d.ts.map +1 -1
- package/out/layers/manifest.js +12 -13
- package/out/layers/manifest.js.map +1 -1
- package/out/layers/schema.d.ts +23 -0
- package/out/layers/schema.d.ts.map +1 -1
- package/out/layers/schema.js +1 -1
- package/out/layers/schema.js.map +1 -1
- package/out/license/configured.d.ts +1 -1
- package/out/license/configured.d.ts.map +1 -1
- package/out/license/configured.js +2 -2
- package/out/license/configured.js.map +1 -1
- package/out/license/key/file.d.ts.map +1 -1
- package/out/license/key/file.js +2 -1
- package/out/license/key/file.js.map +1 -1
- package/out/license/key.d.ts +1 -1
- package/out/license/key.d.ts.map +1 -1
- package/out/license/key.js +2 -2
- package/out/license/key.js.map +1 -1
- package/out/license/stamp.d.ts +2 -2
- package/out/license/stamp.d.ts.map +1 -1
- package/out/license/stamp.js +2 -2
- package/out/license/stamp.js.map +1 -1
- package/out/locale/locale.d.ts +1 -1
- package/out/locale/locale.d.ts.map +1 -1
- package/out/locale/registry.d.ts +1 -1
- package/out/locale/registry.d.ts.map +1 -1
- package/out/locale/registry.js +1 -1
- package/out/locale/registry.js.map +1 -1
- package/out/module/compiled-freshness.js +1 -1
- package/out/module/compiled-freshness.js.map +1 -1
- package/out/module/package-command.d.ts +3 -2
- package/out/module/package-command.d.ts.map +1 -1
- package/out/module/package-command.js +3 -2
- package/out/module/package-command.js.map +1 -1
- package/out/module/packaged-data.js +1 -1
- package/out/module/packaged-data.js.map +1 -1
- package/out/module/resolve-from.js +1 -1
- package/out/module/resolve-from.js.map +1 -1
- package/out/numeric.d.ts +1 -1
- package/out/numeric.d.ts.map +1 -1
- package/out/numeric.js +3 -3
- package/out/numeric.js.map +1 -1
- package/out/objects.d.ts +3 -0
- package/out/objects.d.ts.map +1 -1
- package/out/objects.js +3 -0
- package/out/objects.js.map +1 -1
- package/out/paths.d.ts +20 -1
- package/out/paths.d.ts.map +1 -1
- package/out/paths.js +1 -1
- package/out/paths.js.map +1 -1
- package/out/pipeline/client-result.d.ts +15 -15
- package/out/pipeline/client-result.d.ts.map +1 -1
- package/out/pipeline/client-result.js +1 -1
- package/out/pipeline/result.d.ts +4 -3
- package/out/pipeline/result.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.d.ts +16 -9
- package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.js +43 -27
- package/out/pipeline/runtime-pipeline.js.map +1 -1
- package/out/pipeline/span-proposer.js +1 -1
- package/out/pipeline/span-proposer.js.map +1 -1
- package/out/pipeline/types.d.ts +394 -175
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js +199 -4
- package/out/pipeline/types.js.map +1 -1
- package/out/pipeline.d.ts +4 -2
- package/out/pipeline.d.ts.map +1 -1
- package/out/pipeline.js +1 -1
- package/out/pipeline.js.map +1 -1
- package/out/policy/proposal-collection.d.ts +1 -1
- package/out/policy/proposal-collection.d.ts.map +1 -1
- package/out/policy/proposal-collection.js.map +1 -1
- package/out/policy/registry.d.ts +3 -1
- package/out/policy/registry.d.ts.map +1 -1
- package/out/policy/registry.js +4 -2
- package/out/policy/registry.js.map +1 -1
- package/out/resolver/authoritative-provider.d.ts +17 -17
- package/out/resolver/authoritative-provider.d.ts.map +1 -1
- package/out/resolver/authoritative-provider.js +2 -2
- package/out/resolver/coverage-facts.d.ts +3 -3
- package/out/resolver/coverage-facts.d.ts.map +1 -1
- package/out/resolver/fixture-authoritative-provider.d.ts.map +1 -1
- package/out/resolver/fixture-authoritative-provider.js +4 -0
- package/out/resolver/fixture-authoritative-provider.js.map +1 -1
- package/out/resolver/lookup-types.d.ts +52 -15
- package/out/resolver/lookup-types.d.ts.map +1 -1
- package/out/resolver/postcode-format.d.ts +3 -3
- package/out/resolver/postcode-format.d.ts.map +1 -1
- package/out/resolver/postcode-format.js +7 -7
- package/out/resolver/postcode-format.js.map +1 -1
- package/out/resolver/referential.d.ts +2 -2
- package/out/resolver/referential.d.ts.map +1 -1
- package/out/resolver/types.d.ts +126 -40
- package/out/resolver/types.d.ts.map +1 -1
- package/out/resolver/types.js +43 -1
- package/out/resolver/types.js.map +1 -1
- package/out/resolver.d.ts +5 -3
- package/out/resolver.d.ts.map +1 -1
- package/out/resolver.js +2 -2
- package/out/resolver.js.map +1 -1
- package/out/resources/git.js +1 -1
- package/out/resources/git.js.map +1 -1
- package/out/resources/languages.d.ts +0 -1
- package/out/resources/languages.d.ts.map +1 -1
- package/out/resources/languages.js +0 -1
- package/out/resources/languages.js.map +1 -1
- package/out/resources/libpostal.d.ts +1 -1
- package/out/resources/libpostal.d.ts.map +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.js +2 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.js.map +1 -1
- package/out/resources/whosonfirst/extract-repo.d.ts.map +1 -1
- package/out/resources/whosonfirst/extract-repo.js +2 -1
- package/out/resources/whosonfirst/extract-repo.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts +12 -12
- package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/admin.js +9 -8
- package/out/resources/whosonfirst/placetypes/admin.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.d.ts +2 -1
- package/out/resources/whosonfirst/placetypes/mermaid.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.js +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/specificity.d.ts +3 -3
- package/out/resources/whosonfirst/placetypes/specificity.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/specificity.js +6 -6
- package/out/resources/whosonfirst/placetypes/specificity.js.map +1 -1
- package/out/resources.d.ts +1 -0
- package/out/resources.d.ts.map +1 -1
- package/out/resources.js +1 -0
- package/out/resources.js.map +1 -1
- package/out/scripting/arguments.d.ts +5 -4
- package/out/scripting/arguments.d.ts.map +1 -1
- package/out/scripting/arguments.js +5 -4
- package/out/scripting/arguments.js.map +1 -1
- package/out/scripting/command.d.ts +2 -2
- package/out/scripting/command.d.ts.map +1 -1
- package/out/scripting/command.js +1 -0
- package/out/scripting/command.js.map +1 -1
- package/out/scripting/operation.d.ts +1 -1
- package/out/scripting/operation.d.ts.map +1 -1
- package/out/scripting/operation.js +1 -1
- package/out/scripting/operation.js.map +1 -1
- package/out/scripting/utils.d.ts +3 -4
- package/out/scripting/utils.d.ts.map +1 -1
- package/out/scripting/utils.js +3 -4
- package/out/scripting/utils.js.map +1 -1
- package/out/strings/python-json.js +1 -1
- package/out/strings/python-json.js.map +1 -1
- package/out/tokenization/Span.d.ts +1 -1
- package/out/tokenization/Span.d.ts.map +1 -1
- package/out/tools/coarse-placer/build/dataset.d.ts +4 -2
- package/out/tools/coarse-placer/build/dataset.d.ts.map +1 -1
- package/out/tools/coarse-placer/build/dataset.js.map +1 -1
- package/out/tools/coarse-placer/build/outlier/exposure.d.ts +5 -3
- package/out/tools/coarse-placer/build/outlier/exposure.d.ts.map +1 -1
- package/out/tools/coarse-placer/build/outlier/exposure.js.map +1 -1
- package/out/tools/coarse-placer/build/outlier/latin.d.ts +3 -3
- package/out/tools/coarse-placer/build/outlier/oa.d.ts +3 -3
- package/out/tools/coarse-placer/eval/latin-offmap.d.ts +3 -3
- package/out/tools/coarse-placer/eval/openset.js +2 -2
- package/out/tools/coarse-placer/eval/openset.js.map +1 -1
- package/out/tools/coarse-placer/eval/quant-compare.d.ts +4 -4
- package/out/tools/coarse-placer/eval.d.ts +3 -3
- package/out/tools/coarse-placer/paths.js +1 -1
- package/out/tools/coarse-placer/paths.js.map +1 -1
- package/out/tools/coarse-placer/probe-frontier.d.ts +2 -2
- package/out/tools/coarse-placer/quantize.d.ts +2 -2
- package/out/tools/coarse-placer/train.d.ts +5 -5
- package/out/tools/download/libpostal-resources.d.ts.map +1 -1
- package/out/tools/download/libpostal-resources.js +2 -1
- package/out/tools/download/libpostal-resources.js.map +1 -1
- package/out/tools/download/ssl-address.d.ts +2 -2
- package/out/tools/generate-language-types.d.ts +1 -1
- package/out/tools/generate-language-types.js +1 -1
- package/out/tools/generate-language-types.js.map +1 -1
- package/out/trust-policies.d.ts +0 -1
- package/out/trust-policies.d.ts.map +1 -1
- package/out/trust-policies.js +0 -1
- package/out/trust-policies.js.map +1 -1
- package/out/types/Classification.d.ts +1 -1
- package/out/types/Classification.d.ts.map +1 -1
- package/out/types/classifier.d.ts +1 -1
- package/out/types/classifier.d.ts.map +1 -1
- package/out/utils/geodatabase-archive.d.ts +11 -4
- package/out/utils/geodatabase-archive.d.ts.map +1 -1
- package/out/utils/geodatabase-archive.js +1 -1
- package/out/utils/geodatabase-archive.js.map +1 -1
- package/out/utils/sqlite-rows.d.ts +2 -2
- package/out/utils/sqlite-rows.d.ts.map +1 -1
- package/out/utils/sqlite-rows.js +2 -2
- package/out/utils/sqlite-rows.js.map +1 -1
- package/out/utils/stream-to-disk.d.ts.map +1 -1
- package/out/utils/stream-to-disk.js +1 -1
- package/out/utils/stream-to-disk.js.map +1 -1
- package/out/utils/union-find.js +1 -1
- package/out/utils/union-find.js.map +1 -1
- package/out/vale.js +1 -1
- package/out/vale.js.map +1 -1
- package/out/workspaces.d.ts +1 -1
- package/out/workspaces.js +1 -1
- package/out/workspaces.js.map +1 -1
- package/package.json +46 -14
- package/tools/coarse-placer/build/dataset.ts +4 -2
- package/tools/coarse-placer/build/outlier/exposure.ts +5 -3
- package/tools/coarse-placer/build/outlier/latin.ts +3 -3
- package/tools/coarse-placer/build/outlier/oa.ts +3 -3
- package/tools/coarse-placer/eval/latin-offmap.ts +3 -3
- package/tools/coarse-placer/eval/openset.ts +3 -3
- package/tools/coarse-placer/eval/quant-compare.ts +4 -4
- package/tools/coarse-placer/eval.ts +3 -3
- package/tools/coarse-placer/paths.ts +1 -1
- package/tools/coarse-placer/probe-frontier.ts +2 -2
- package/tools/coarse-placer/quantize.ts +2 -2
- package/tools/coarse-placer/train.ts +5 -5
- package/tools/download/libpostal-resources.ts +2 -1
- package/tools/download/ssl-address.ts +2 -2
- package/tools/generate-language-types.ts +3 -3
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* The geocode result: the data shape one geocoded input projects to.
|
|
7
|
+
*
|
|
8
|
+
* The schemas here are the source of truth and each type is inferred from its schema.
|
|
9
|
+
* The `mailwoman` package computes the result and the HTTP surfaces serve it.
|
|
10
|
+
*/
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
/**
|
|
13
|
+
* The geocoder resolution tier that produced a coordinate.
|
|
14
|
+
*/
|
|
15
|
+
export declare const ResolutionTierSchema: z.ZodEnum<{
|
|
16
|
+
address_point: "address_point";
|
|
17
|
+
admin: "admin";
|
|
18
|
+
interpolated: "interpolated";
|
|
19
|
+
plus_code: "plus_code";
|
|
20
|
+
street: "street";
|
|
21
|
+
venue: "venue";
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* One entry of {@link GeocodeResult.hierarchy}, locality to country, most specific first.
|
|
25
|
+
*/
|
|
26
|
+
export declare const HierarchyEntrySchema: z.ZodObject<{
|
|
27
|
+
tag: z.ZodString;
|
|
28
|
+
value: z.ZodString;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
32
|
+
placeID: z.ZodNullable<z.ZodString>;
|
|
33
|
+
in_winner_lineage: z.ZodNullable<z.ZodBoolean>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type HierarchyEntry = z.infer<typeof HierarchyEntrySchema>;
|
|
36
|
+
/**
|
|
37
|
+
* One ranked alternative place: the winner first, then same-query runner-ups.
|
|
38
|
+
*/
|
|
39
|
+
export declare const GeocodeCandidateSchema: z.ZodObject<{
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
tag: z.ZodString;
|
|
42
|
+
lat: z.ZodNumber;
|
|
43
|
+
lon: z.ZodNumber;
|
|
44
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
45
|
+
placeID: z.ZodNullable<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type GeocodeCandidate = z.infer<typeof GeocodeCandidateSchema>;
|
|
48
|
+
/**
|
|
49
|
+
* The verdict for one parsed admin qualifier.
|
|
50
|
+
*/
|
|
51
|
+
export declare const AdminCoherenceVerdictSchema: z.ZodEnum<{
|
|
52
|
+
confirmed: "confirmed";
|
|
53
|
+
contradicted: "contradicted";
|
|
54
|
+
unstated: "unstated";
|
|
55
|
+
unverifiable: "unverifiable";
|
|
56
|
+
}>;
|
|
57
|
+
export type AdminCoherenceVerdict = z.infer<typeof AdminCoherenceVerdictSchema>;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the variant-alias exemption lifted a node's winner past the cross-country alias penalty.
|
|
60
|
+
*/
|
|
61
|
+
export declare const VariantAliasExemptionSchema: z.ZodEnum<{
|
|
62
|
+
applied: "applied";
|
|
63
|
+
not_applied: "not_applied";
|
|
64
|
+
}>;
|
|
65
|
+
export type VariantAliasExemption = z.infer<typeof VariantAliasExemptionSchema>;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the winner's resolved ancestry confirms, contradicts or cannot check
|
|
68
|
+
* the parsed `region` and `country`.
|
|
69
|
+
*
|
|
70
|
+
* `unstated` is the explicit claim that the input had no such qualifier.
|
|
71
|
+
*/
|
|
72
|
+
export declare const AdminCoherenceReportSchema: z.ZodObject<{
|
|
73
|
+
region: z.ZodEnum<{
|
|
74
|
+
confirmed: "confirmed";
|
|
75
|
+
contradicted: "contradicted";
|
|
76
|
+
unstated: "unstated";
|
|
77
|
+
unverifiable: "unverifiable";
|
|
78
|
+
}>;
|
|
79
|
+
country: z.ZodEnum<{
|
|
80
|
+
confirmed: "confirmed";
|
|
81
|
+
contradicted: "contradicted";
|
|
82
|
+
unstated: "unstated";
|
|
83
|
+
unverifiable: "unverifiable";
|
|
84
|
+
}>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type AdminCoherenceReport = z.infer<typeof AdminCoherenceReportSchema>;
|
|
87
|
+
/**
|
|
88
|
+
* One authoritative-provider match, field for field from the provider's answer.
|
|
89
|
+
*/
|
|
90
|
+
export declare const AuthoritativeAssertionMatchSchema: z.ZodObject<{
|
|
91
|
+
provider_place_id: z.ZodString;
|
|
92
|
+
object_ids: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
93
|
+
canonical_fields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
94
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
95
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
96
|
+
precision: z.ZodNullable<z.ZodString>;
|
|
97
|
+
match_status: z.ZodEnum<{
|
|
98
|
+
approximate: "approximate";
|
|
99
|
+
exact: "exact";
|
|
100
|
+
}>;
|
|
101
|
+
provider_score: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export type AuthoritativeAssertionMatch = z.infer<typeof AuthoritativeAssertionMatchSchema>;
|
|
104
|
+
/**
|
|
105
|
+
* A configured authoritative provider's answer.
|
|
106
|
+
*
|
|
107
|
+
* `status` is the provider's response status plus `transport_error`.
|
|
108
|
+
* `matches` is non-null exactly when the provider returned candidates: one for `matched`,
|
|
109
|
+
* all of them in the provider's order for `ambiguous`.
|
|
110
|
+
*/
|
|
111
|
+
export declare const AuthoritativeAssertionSchema: z.ZodObject<{
|
|
112
|
+
provider: z.ZodString;
|
|
113
|
+
status: z.ZodEnum<{
|
|
114
|
+
ambiguous: "ambiguous";
|
|
115
|
+
matched: "matched";
|
|
116
|
+
refused: "refused";
|
|
117
|
+
transport_error: "transport_error";
|
|
118
|
+
}>;
|
|
119
|
+
matches: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
120
|
+
provider_place_id: z.ZodString;
|
|
121
|
+
object_ids: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
122
|
+
canonical_fields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
123
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
124
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
125
|
+
precision: z.ZodNullable<z.ZodString>;
|
|
126
|
+
match_status: z.ZodEnum<{
|
|
127
|
+
approximate: "approximate";
|
|
128
|
+
exact: "exact";
|
|
129
|
+
}>;
|
|
130
|
+
provider_score: z.ZodNullable<z.ZodNumber>;
|
|
131
|
+
}, z.core.$strip>>>;
|
|
132
|
+
attribution: z.ZodNullable<z.ZodString>;
|
|
133
|
+
license: z.ZodNullable<z.ZodString>;
|
|
134
|
+
retrieved_at: z.ZodNullable<z.ZodString>;
|
|
135
|
+
dataset_version: z.ZodNullable<z.ZodString>;
|
|
136
|
+
error: z.ZodNullable<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
export type AuthoritativeAssertion = z.infer<typeof AuthoritativeAssertionSchema>;
|
|
139
|
+
/**
|
|
140
|
+
* A parsed component that the answer's coordinate ignored.
|
|
141
|
+
*
|
|
142
|
+
* The only current `reason`, `postcode_move_refused`, means the postcode resolved
|
|
143
|
+
* too far from the selected locality.
|
|
144
|
+
*/
|
|
145
|
+
export declare const UnfollowedComponentSchema: z.ZodObject<{
|
|
146
|
+
tag: z.ZodEnum<{
|
|
147
|
+
attention: "attention";
|
|
148
|
+
block: "block";
|
|
149
|
+
building_name: "building_name";
|
|
150
|
+
building_number: "building_number";
|
|
151
|
+
cedex: "cedex";
|
|
152
|
+
country: "country";
|
|
153
|
+
dependent_locality: "dependent_locality";
|
|
154
|
+
district: "district";
|
|
155
|
+
house_number: "house_number";
|
|
156
|
+
intersection_a: "intersection_a";
|
|
157
|
+
intersection_b: "intersection_b";
|
|
158
|
+
locality: "locality";
|
|
159
|
+
locality_unit: "locality_unit";
|
|
160
|
+
municipality: "municipality";
|
|
161
|
+
po_box: "po_box";
|
|
162
|
+
postcode: "postcode";
|
|
163
|
+
prefecture: "prefecture";
|
|
164
|
+
region: "region";
|
|
165
|
+
street: "street";
|
|
166
|
+
street_prefix: "street_prefix";
|
|
167
|
+
street_prefix_particle: "street_prefix_particle";
|
|
168
|
+
street_suffix: "street_suffix";
|
|
169
|
+
sub_block: "sub_block";
|
|
170
|
+
subregion: "subregion";
|
|
171
|
+
unit: "unit";
|
|
172
|
+
venue: "venue";
|
|
173
|
+
}>;
|
|
174
|
+
value: z.ZodString;
|
|
175
|
+
reason: z.ZodLiteral<"postcode_move_refused">;
|
|
176
|
+
distance_km: z.ZodNumber;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export type UnfollowedComponent = z.infer<typeof UnfollowedComponentSchema>;
|
|
179
|
+
/**
|
|
180
|
+
* The locality key and postcode stored on the matched address-point row.
|
|
181
|
+
*/
|
|
182
|
+
export declare const RooftopSchema: z.ZodObject<{
|
|
183
|
+
localityNorm: z.ZodNullable<z.ZodString>;
|
|
184
|
+
postcode: z.ZodNullable<z.ZodString>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
export type Rooftop = z.infer<typeof RooftopSchema>;
|
|
187
|
+
/**
|
|
188
|
+
* The poi.db entity that supplied a `venue`-tier coordinate.
|
|
189
|
+
*/
|
|
190
|
+
export declare const GeocodeEntitySchema: z.ZodObject<{
|
|
191
|
+
name: z.ZodString;
|
|
192
|
+
categoryID: z.ZodNullable<z.ZodString>;
|
|
193
|
+
confidence: z.ZodNumber;
|
|
194
|
+
country: z.ZodString;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export type GeocodeEntity = z.infer<typeof GeocodeEntitySchema>;
|
|
197
|
+
/**
|
|
198
|
+
* The result of geocoding one input.
|
|
199
|
+
*/
|
|
200
|
+
export declare const GeocodeResultSchema: z.ZodObject<{
|
|
201
|
+
input: z.ZodString;
|
|
202
|
+
components: z.ZodRecord<z.ZodEnum<{
|
|
203
|
+
attention: "attention";
|
|
204
|
+
block: "block";
|
|
205
|
+
building_name: "building_name";
|
|
206
|
+
building_number: "building_number";
|
|
207
|
+
cedex: "cedex";
|
|
208
|
+
country: "country";
|
|
209
|
+
dependent_locality: "dependent_locality";
|
|
210
|
+
district: "district";
|
|
211
|
+
house_number: "house_number";
|
|
212
|
+
intersection_a: "intersection_a";
|
|
213
|
+
intersection_b: "intersection_b";
|
|
214
|
+
locality: "locality";
|
|
215
|
+
locality_unit: "locality_unit";
|
|
216
|
+
municipality: "municipality";
|
|
217
|
+
po_box: "po_box";
|
|
218
|
+
postcode: "postcode";
|
|
219
|
+
prefecture: "prefecture";
|
|
220
|
+
region: "region";
|
|
221
|
+
street: "street";
|
|
222
|
+
street_prefix: "street_prefix";
|
|
223
|
+
street_prefix_particle: "street_prefix_particle";
|
|
224
|
+
street_suffix: "street_suffix";
|
|
225
|
+
sub_block: "sub_block";
|
|
226
|
+
subregion: "subregion";
|
|
227
|
+
unit: "unit";
|
|
228
|
+
venue: "venue";
|
|
229
|
+
}> & z.core.$partial, z.ZodString>;
|
|
230
|
+
dropped_components: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
231
|
+
tag: z.ZodEnum<{
|
|
232
|
+
attention: "attention";
|
|
233
|
+
block: "block";
|
|
234
|
+
building_name: "building_name";
|
|
235
|
+
building_number: "building_number";
|
|
236
|
+
cedex: "cedex";
|
|
237
|
+
country: "country";
|
|
238
|
+
dependent_locality: "dependent_locality";
|
|
239
|
+
district: "district";
|
|
240
|
+
house_number: "house_number";
|
|
241
|
+
intersection_a: "intersection_a";
|
|
242
|
+
intersection_b: "intersection_b";
|
|
243
|
+
locality: "locality";
|
|
244
|
+
locality_unit: "locality_unit";
|
|
245
|
+
municipality: "municipality";
|
|
246
|
+
po_box: "po_box";
|
|
247
|
+
postcode: "postcode";
|
|
248
|
+
prefecture: "prefecture";
|
|
249
|
+
region: "region";
|
|
250
|
+
street: "street";
|
|
251
|
+
street_prefix: "street_prefix";
|
|
252
|
+
street_prefix_particle: "street_prefix_particle";
|
|
253
|
+
street_suffix: "street_suffix";
|
|
254
|
+
sub_block: "sub_block";
|
|
255
|
+
subregion: "subregion";
|
|
256
|
+
unit: "unit";
|
|
257
|
+
venue: "venue";
|
|
258
|
+
}>;
|
|
259
|
+
value: z.ZodString;
|
|
260
|
+
kept: z.ZodString;
|
|
261
|
+
}, z.core.$strip>>>;
|
|
262
|
+
unfollowed_components: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
263
|
+
tag: z.ZodEnum<{
|
|
264
|
+
attention: "attention";
|
|
265
|
+
block: "block";
|
|
266
|
+
building_name: "building_name";
|
|
267
|
+
building_number: "building_number";
|
|
268
|
+
cedex: "cedex";
|
|
269
|
+
country: "country";
|
|
270
|
+
dependent_locality: "dependent_locality";
|
|
271
|
+
district: "district";
|
|
272
|
+
house_number: "house_number";
|
|
273
|
+
intersection_a: "intersection_a";
|
|
274
|
+
intersection_b: "intersection_b";
|
|
275
|
+
locality: "locality";
|
|
276
|
+
locality_unit: "locality_unit";
|
|
277
|
+
municipality: "municipality";
|
|
278
|
+
po_box: "po_box";
|
|
279
|
+
postcode: "postcode";
|
|
280
|
+
prefecture: "prefecture";
|
|
281
|
+
region: "region";
|
|
282
|
+
street: "street";
|
|
283
|
+
street_prefix: "street_prefix";
|
|
284
|
+
street_prefix_particle: "street_prefix_particle";
|
|
285
|
+
street_suffix: "street_suffix";
|
|
286
|
+
sub_block: "sub_block";
|
|
287
|
+
subregion: "subregion";
|
|
288
|
+
unit: "unit";
|
|
289
|
+
venue: "venue";
|
|
290
|
+
}>;
|
|
291
|
+
value: z.ZodString;
|
|
292
|
+
reason: z.ZodLiteral<"postcode_move_refused">;
|
|
293
|
+
distance_km: z.ZodNumber;
|
|
294
|
+
}, z.core.$strip>>>;
|
|
295
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
296
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
297
|
+
resolution_tier: z.ZodEnum<{
|
|
298
|
+
address_point: "address_point";
|
|
299
|
+
admin: "admin";
|
|
300
|
+
interpolated: "interpolated";
|
|
301
|
+
plus_code: "plus_code";
|
|
302
|
+
street: "street";
|
|
303
|
+
venue: "venue";
|
|
304
|
+
}>;
|
|
305
|
+
epistemic_status: z.ZodEnum<{
|
|
306
|
+
readonly Designated: "designated";
|
|
307
|
+
readonly Observed: "observed";
|
|
308
|
+
readonly Derived: "derived";
|
|
309
|
+
readonly Inferred: "inferred";
|
|
310
|
+
readonly Unresolved: "unresolved";
|
|
311
|
+
}>;
|
|
312
|
+
derivation: z.ZodNullable<z.ZodObject<{
|
|
313
|
+
status: z.ZodEnum<{
|
|
314
|
+
readonly Designated: "designated";
|
|
315
|
+
readonly Observed: "observed";
|
|
316
|
+
readonly Derived: "derived";
|
|
317
|
+
readonly Inferred: "inferred";
|
|
318
|
+
readonly Unresolved: "unresolved";
|
|
319
|
+
}>;
|
|
320
|
+
constraints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
321
|
+
label: z.ZodString;
|
|
322
|
+
evidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
323
|
+
kind: z.ZodLiteral<"observation">;
|
|
324
|
+
source: z.ZodString;
|
|
325
|
+
vintage: z.ZodNullable<z.ZodString>;
|
|
326
|
+
value: z.ZodUnknown;
|
|
327
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
328
|
+
kind: z.ZodLiteral<"exclusion">;
|
|
329
|
+
source: z.ZodString;
|
|
330
|
+
vintage: z.ZodString;
|
|
331
|
+
scope: z.ZodObject<{
|
|
332
|
+
layer: z.ZodString;
|
|
333
|
+
h3Cell: z.ZodNumber;
|
|
334
|
+
basis: z.ZodEnum<{
|
|
335
|
+
readonly Designated: "designated";
|
|
336
|
+
readonly Surveyed: "surveyed";
|
|
337
|
+
readonly SourcePresent: "source_present";
|
|
338
|
+
}>;
|
|
339
|
+
fold: z.ZodString;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
342
|
+
kind: z.ZodLiteral<"relation">;
|
|
343
|
+
source: z.ZodString;
|
|
344
|
+
vintage: z.ZodString;
|
|
345
|
+
relationship: z.ZodString;
|
|
346
|
+
assertion: z.ZodEnum<{
|
|
347
|
+
readonly Authoritative: "authoritative";
|
|
348
|
+
readonly Inferred: "inferred";
|
|
349
|
+
}>;
|
|
350
|
+
score: z.ZodNullable<z.ZodNumber>;
|
|
351
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
352
|
+
kind: z.ZodLiteral<"prior">;
|
|
353
|
+
source: z.ZodString;
|
|
354
|
+
label: z.ZodString;
|
|
355
|
+
weight: z.ZodNumber;
|
|
356
|
+
}, z.core.$strip>], "kind">;
|
|
357
|
+
contribution: z.ZodString;
|
|
358
|
+
}, z.core.$strip>>>;
|
|
359
|
+
uncertaintyM: z.ZodNullable<z.ZodNumber>;
|
|
360
|
+
}, z.core.$strip>>;
|
|
361
|
+
entity: z.ZodNullable<z.ZodObject<{
|
|
362
|
+
name: z.ZodString;
|
|
363
|
+
categoryID: z.ZodNullable<z.ZodString>;
|
|
364
|
+
confidence: z.ZodNumber;
|
|
365
|
+
country: z.ZodString;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
rooftop: z.ZodNullable<z.ZodObject<{
|
|
368
|
+
localityNorm: z.ZodNullable<z.ZodString>;
|
|
369
|
+
postcode: z.ZodNullable<z.ZodString>;
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
|
+
uncertainty_m: z.ZodNullable<z.ZodNumber>;
|
|
372
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
373
|
+
region: z.ZodNullable<z.ZodString>;
|
|
374
|
+
postcode: z.ZodNullable<z.ZodString>;
|
|
375
|
+
house_number: z.ZodNullable<z.ZodString>;
|
|
376
|
+
street: z.ZodNullable<z.ZodString>;
|
|
377
|
+
venue: z.ZodNullable<z.ZodString>;
|
|
378
|
+
dependent_locality: z.ZodNullable<z.ZodString>;
|
|
379
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
380
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
381
|
+
hierarchy: z.ZodArray<z.ZodObject<{
|
|
382
|
+
tag: z.ZodString;
|
|
383
|
+
value: z.ZodString;
|
|
384
|
+
name: z.ZodString;
|
|
385
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
386
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
387
|
+
placeID: z.ZodNullable<z.ZodString>;
|
|
388
|
+
in_winner_lineage: z.ZodNullable<z.ZodBoolean>;
|
|
389
|
+
}, z.core.$strip>>;
|
|
390
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
391
|
+
name: z.ZodString;
|
|
392
|
+
tag: z.ZodString;
|
|
393
|
+
lat: z.ZodNumber;
|
|
394
|
+
lon: z.ZodNumber;
|
|
395
|
+
countryCode: z.ZodNullable<z.ZodString>;
|
|
396
|
+
placeID: z.ZodNullable<z.ZodString>;
|
|
397
|
+
}, z.core.$strip>>;
|
|
398
|
+
postcode_country_scope: z.ZodNullable<z.ZodString>;
|
|
399
|
+
capital_promotion: z.ZodNullable<z.ZodString>;
|
|
400
|
+
variant_alias_exemption: z.ZodEnum<{
|
|
401
|
+
applied: "applied";
|
|
402
|
+
not_applied: "not_applied";
|
|
403
|
+
}>;
|
|
404
|
+
intent_markers: z.ZodArray<z.ZodObject<{
|
|
405
|
+
kind: z.ZodEnum<{
|
|
406
|
+
bare_toponym: "bare_toponym";
|
|
407
|
+
intersection: "intersection";
|
|
408
|
+
landmark: "landmark";
|
|
409
|
+
locality_only: "locality_only";
|
|
410
|
+
near_me: "near_me";
|
|
411
|
+
po_box: "po_box";
|
|
412
|
+
poi_category: "poi_category";
|
|
413
|
+
poi_query: "poi_query";
|
|
414
|
+
postcode_only: "postcode_only";
|
|
415
|
+
route_pair: "route_pair";
|
|
416
|
+
structured_address: "structured_address";
|
|
417
|
+
vague: "vague";
|
|
418
|
+
}>;
|
|
419
|
+
code: z.ZodEnum<{
|
|
420
|
+
readonly DeclaredAmbiguity: "declared_ambiguity";
|
|
421
|
+
readonly DeclaredFork: "declared_fork";
|
|
422
|
+
readonly FocusPointRequired: "focus_point_required";
|
|
423
|
+
readonly POICategory: "poi_category";
|
|
424
|
+
readonly CoverageQualifiedAbsence: "coverage_qualified_absence";
|
|
425
|
+
readonly AuthorityDesignation: "authority_designation";
|
|
426
|
+
readonly DeclaredCoarserAnswer: "declared_coarser_answer";
|
|
427
|
+
}>;
|
|
428
|
+
mechanism: z.ZodString;
|
|
429
|
+
message: z.ZodString;
|
|
430
|
+
evidence: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
431
|
+
}, z.core.$strip>>;
|
|
432
|
+
admin_coherence: z.ZodNullable<z.ZodObject<{
|
|
433
|
+
region: z.ZodEnum<{
|
|
434
|
+
confirmed: "confirmed";
|
|
435
|
+
contradicted: "contradicted";
|
|
436
|
+
unstated: "unstated";
|
|
437
|
+
unverifiable: "unverifiable";
|
|
438
|
+
}>;
|
|
439
|
+
country: z.ZodEnum<{
|
|
440
|
+
confirmed: "confirmed";
|
|
441
|
+
contradicted: "contradicted";
|
|
442
|
+
unstated: "unstated";
|
|
443
|
+
unverifiable: "unverifiable";
|
|
444
|
+
}>;
|
|
445
|
+
}, z.core.$strip>>;
|
|
446
|
+
authoritative: z.ZodNullable<z.ZodObject<{
|
|
447
|
+
provider: z.ZodString;
|
|
448
|
+
status: z.ZodEnum<{
|
|
449
|
+
ambiguous: "ambiguous";
|
|
450
|
+
matched: "matched";
|
|
451
|
+
refused: "refused";
|
|
452
|
+
transport_error: "transport_error";
|
|
453
|
+
}>;
|
|
454
|
+
matches: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
455
|
+
provider_place_id: z.ZodString;
|
|
456
|
+
object_ids: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
457
|
+
canonical_fields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
458
|
+
lat: z.ZodNullable<z.ZodNumber>;
|
|
459
|
+
lon: z.ZodNullable<z.ZodNumber>;
|
|
460
|
+
precision: z.ZodNullable<z.ZodString>;
|
|
461
|
+
match_status: z.ZodEnum<{
|
|
462
|
+
approximate: "approximate";
|
|
463
|
+
exact: "exact";
|
|
464
|
+
}>;
|
|
465
|
+
provider_score: z.ZodNullable<z.ZodNumber>;
|
|
466
|
+
}, z.core.$strip>>>;
|
|
467
|
+
attribution: z.ZodNullable<z.ZodString>;
|
|
468
|
+
license: z.ZodNullable<z.ZodString>;
|
|
469
|
+
retrieved_at: z.ZodNullable<z.ZodString>;
|
|
470
|
+
dataset_version: z.ZodNullable<z.ZodString>;
|
|
471
|
+
error: z.ZodNullable<z.ZodString>;
|
|
472
|
+
}, z.core.$strip>>;
|
|
473
|
+
}, z.core.$strip>;
|
|
474
|
+
export type GeocodeResult = z.infer<typeof GeocodeResultSchema>;
|
|
475
|
+
//# sourceMappingURL=result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../lib/geocode/result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;EAE+D,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;iBAoB8D,CAAA;AAE/F,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;iBASyC,CAAA;AAE5E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;EAAoE,CAAA;AAE5G,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE/E;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;EAE0E,CAAA;AAElH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;iBAEqE,CAAA;AAE5G,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE7E;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;iBAS5C,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAE3F;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc6D,CAAA;AAEtG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEjF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQpC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E;;GAEG;AACH,eAAO,MAAM,aAAa;;;iBAAqF,CAAA;AAE/G,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEnD;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4JkF,CAAA;AAElH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|