@mailwoman/core 9.2.0 → 9.3.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.
- package/README.md +11 -11
- package/data/libpostal/README.md +10 -10
- package/data/libpostal/dictionaries/README.md +4 -4
- package/data/libpostal/dictionaries/all/surnames.txt +6 -6
- package/{api → lib/api}/APIClient.ts +28 -23
- package/lib/api/arcgis.ts +69 -0
- package/lib/api/ckan.ts +141 -0
- package/{api → lib/api}/clock.ts +1 -1
- package/lib/api/defaults.ts +28 -0
- package/{api → lib/api}/disk-storage.ts +24 -28
- package/lib/api/host.ts +76 -0
- package/{api → lib/api}/index.ts +11 -6
- package/lib/api/ogc.ts +226 -0
- package/lib/api/paced-client.ts +67 -0
- package/{api → lib/api}/pacer.ts +8 -8
- package/{api → lib/api}/responses.ts +3 -3
- package/{api → lib/api}/retry.ts +12 -12
- package/{api → lib/api}/test-clocks.ts +6 -5
- package/{api → lib/api}/test-transport.ts +1 -1
- package/{coarse-placer → lib/coarse-placer}/coarse-placer.ts +32 -13
- package/{coarse-placer → lib/coarse-placer}/featurize.ts +11 -13
- package/lib/coarse-placer/fnv-hash.ts +24 -0
- package/lib/coarse-placer/math.ts +63 -0
- package/{coarse-placer → lib/coarse-placer}/tools/build-dataset.ts +26 -35
- package/{coarse-placer → lib/coarse-placer}/tools/build-outlier-exposure.ts +25 -21
- package/{coarse-placer → lib/coarse-placer}/tools/build-outlier-latin.ts +26 -58
- package/{coarse-placer → lib/coarse-placer}/tools/build-outlier-oa.ts +37 -69
- package/lib/coarse-placer/tools/country-sets.ts +47 -0
- package/{coarse-placer → lib/coarse-placer}/tools/eval-latin-offmap.ts +13 -44
- package/{coarse-placer → lib/coarse-placer}/tools/eval-openset.ts +22 -78
- package/{coarse-placer → lib/coarse-placer}/tools/eval-quant-compare.ts +17 -51
- package/{coarse-placer → lib/coarse-placer}/tools/eval.ts +23 -37
- package/lib/coarse-placer/tools/index.ts +24 -0
- package/lib/coarse-placer/tools/outlier-rows.ts +91 -0
- package/lib/coarse-placer/tools/paths.ts +78 -0
- package/{coarse-placer → lib/coarse-placer}/tools/probe-frontier.ts +13 -16
- package/{coarse-placer → lib/coarse-placer}/tools/quantize.ts +15 -21
- package/{coarse-placer → lib/coarse-placer}/tools/train.ts +32 -61
- package/lib/crypto/base64url.ts +42 -0
- package/lib/crypto/digest.ts +17 -0
- package/lib/crypto/ed25519.ts +118 -0
- package/{crypto → lib/crypto}/node.ts +1 -1
- package/lib/data-root.ts +193 -0
- package/{decoder → lib/decoder}/build-tree.ts +4 -4
- package/{decoder → lib/decoder}/calibration.ts +1 -1
- package/{decoder → lib/decoder}/containment.ts +8 -5
- package/lib/decoder/index.ts +19 -0
- package/{decoder → lib/decoder}/parse-diff.ts +2 -2
- package/{decoder → lib/decoder}/proposals-to-tree.ts +3 -3
- package/{decoder → lib/decoder}/resolve-proposal-overlaps.ts +3 -3
- package/{decoder → lib/decoder}/serialize-json.ts +14 -14
- package/{decoder → lib/decoder}/serialize-tuples.ts +22 -3
- package/{decoder → lib/decoder}/serialize-xml.ts +7 -3
- package/{decoder → lib/decoder}/tree-shape.ts +10 -19
- package/lib/decoder/tree-walk.ts +96 -0
- package/{decoder → lib/decoder}/types.ts +3 -3
- package/{decoder → lib/decoder}/unknown-spans.ts +3 -8
- package/{decoder → lib/decoder}/validate-tree.ts +4 -4
- package/lib/env/index.ts +90 -0
- package/{env → lib/env}/paths.ts +4 -11
- package/lib/env/schema.ts +100 -0
- package/lib/env/utils.ts +24 -0
- package/{errors → lib/errors}/schema.ts +10 -1
- package/lib/fs/compression.ts +65 -0
- package/{fs/utils → lib/fs}/formatters.ts +12 -0
- package/lib/fs/readers.ts +421 -0
- package/lib/fs/streams.ts +46 -0
- package/lib/fs/temporary.ts +85 -0
- package/lib/fs/writers.ts +288 -0
- package/{fs → lib/fs}/zip.ts +96 -80
- package/lib/git.ts +59 -0
- package/{utils → lib}/hash.ts +12 -4
- package/lib/html/document.ts +117 -0
- package/lib/html/tables.ts +154 -0
- package/lib/html/text.ts +123 -0
- package/lib/index.ts +16 -0
- package/lib/json.ts +85 -0
- package/lib/layers/coverage.ts +222 -0
- package/lib/layers/feature-count.ts +35 -0
- package/{layers → lib/layers}/index.ts +4 -2
- package/lib/layers/manifest.ts +455 -0
- package/{layers → lib/layers}/schema.ts +4 -31
- package/lib/license/configured.ts +29 -0
- package/lib/license/docs-site.ts +37 -0
- package/lib/license/index.ts +18 -0
- package/lib/license/key-file.ts +91 -0
- package/lib/license/key.ts +205 -0
- package/lib/license/obligations.ts +186 -0
- package/lib/license/publication.ts +91 -0
- package/lib/license/register.ts +110 -0
- package/lib/license/stamp.ts +94 -0
- package/lib/license/status.ts +125 -0
- package/lib/locale/index.ts +9 -0
- package/{locale → lib/locale}/locale.ts +1 -2
- package/{locale → lib/locale}/profiles/en-us.ts +1 -1
- package/{locale → lib/locale}/profiles/fr-fr.ts +1 -1
- package/lib/locale/profiles/index.ts +9 -0
- package/{locale → lib/locale}/profiles/ja-jp.ts +1 -1
- package/{locale → lib/locale}/registry.ts +1 -2
- package/lib/locale/zh-cn-units.ts +148 -0
- package/{logging → lib/logging}/index.ts +2 -2
- package/{logging → lib/logging}/shared.ts +39 -4
- package/lib/module/file-url.ts +29 -0
- package/lib/module/packaged-data.ts +31 -0
- package/lib/module/resolve-from.ts +100 -0
- package/lib/module/resolvers.ts +80 -0
- package/lib/module/runtime.ts +11 -0
- package/{utils/python-numeric.ts → lib/numeric.ts} +16 -2
- package/{objects.ts → lib/objects.ts} +4 -49
- package/lib/paths.ts +171 -0
- package/{pipeline → lib/pipeline}/index.ts +6 -6
- package/{pipeline → lib/pipeline}/runtime-pipeline.ts +39 -38
- package/{pipeline → lib/pipeline}/types.ts +57 -20
- package/{policy → lib/policy}/defaults.ts +1 -2
- package/lib/policy/index.ts +10 -0
- package/{policy → lib/policy}/policy.ts +1 -1
- package/{policy → lib/policy}/proposal-collection.ts +3 -3
- package/{policy → lib/policy}/registry.ts +2 -3
- package/lib/process.ts +219 -0
- package/lib/release-config.ts +106 -0
- package/lib/resolver/authoritative-provider.ts +180 -0
- package/{resolver → lib/resolver}/coverage-facts.ts +6 -6
- package/lib/resolver/fixture-authoritative-provider.ts +103 -0
- package/{resolver → lib/resolver}/index.ts +26 -5
- package/{resolver → lib/resolver}/lookup-types.ts +8 -7
- package/{resolver → lib/resolver}/placetype-map.ts +16 -8
- package/{resolver → lib/resolver}/postcode-format.ts +5 -4
- package/{resolver → lib/resolver}/referential.ts +1 -1
- package/{resolver → lib/resolver}/types.ts +96 -80
- package/{resources → lib/resources}/git.ts +6 -10
- package/lib/resources/index.ts +13 -0
- package/{resources → lib/resources}/languages/index.ts +8 -3
- package/lib/resources/libpostal.ts +19 -0
- package/{resources → lib/resources}/set.ts +0 -38
- package/{resources → lib/resources}/whosonfirst/PlacetypeDataSource.ts +26 -9
- package/{resources → lib/resources}/whosonfirst/backoff.ts +5 -3
- package/{resources/whosonfirst/sharded-repo.ts → lib/resources/whosonfirst/extract-repo.ts} +21 -27
- package/lib/resources/whosonfirst/index.ts +9 -0
- package/{resources → lib/resources}/whosonfirst/placetypes/Placetype.ts +5 -7
- package/{resources → lib/resources}/whosonfirst/placetypes/admin.ts +1 -2
- package/{resources → lib/resources}/whosonfirst/placetypes/graph.ts +0 -0
- package/lib/resources/whosonfirst/placetypes/index.ts +13 -0
- package/{resources → lib/resources}/whosonfirst/placetypes/mermaid.ts +2 -2
- package/{resources → lib/resources}/whosonfirst/placetypes/specificity.ts +9 -9
- package/{resources → lib/resources}/whosonfirst/placetypes/tree.ts +2 -2
- package/{routing → lib/routing}/index.ts +3 -1
- package/lib/scripting/arguments.ts +70 -0
- package/{scripting → lib/scripting}/index.ts +1 -1
- package/lib/scripting/ingest-chunk-script.ts +90 -0
- package/{scripting → lib/scripting}/utils/index.ts +14 -5
- package/lib/stats.ts +63 -0
- package/{identifiers.ts → lib/strings/case.ts} +10 -1
- package/lib/strings/compare.ts +20 -0
- package/lib/strings/escape.ts +24 -0
- package/lib/strings/format.ts +14 -0
- package/{utils → lib/strings}/python-json.ts +8 -17
- package/lib/strings/regexp.ts +13 -0
- package/{tokenization → lib/tokenization}/Graph.ts +1 -1
- package/{tokenization → lib/tokenization}/Span.ts +5 -5
- package/lib/tokenization/index.ts +9 -0
- package/{tools → lib/tools}/download-libpostal-resources.ts +18 -22
- package/{tools → lib/tools}/download-ssl-address.ts +6 -6
- package/{tools → lib/tools}/generate-language-types.ts +6 -9
- package/{tools → lib/tools}/index.ts +3 -3
- package/lib/trust-policies.ts +120 -0
- package/{types → lib/types}/Classification.ts +3 -3
- package/{types → lib/types}/classifier.ts +2 -2
- package/{types → lib/types}/component.ts +17 -0
- package/lib/types/index.ts +10 -0
- package/{types → lib/types}/mapping.ts +2 -2
- package/lib/utils/chunk-process.ts +117 -0
- package/lib/utils/collections.ts +16 -0
- package/lib/utils/events.ts +10 -0
- package/lib/utils/geodatabase-archive.ts +97 -0
- package/lib/utils/index.ts +20 -0
- package/lib/utils/sleep.ts +15 -0
- package/{utils → lib/utils}/sqlite-rows.ts +2 -2
- package/lib/utils/stream-to-disk.ts +122 -0
- package/lib/utils/system.ts +52 -0
- package/lib/utils/time.ts +30 -0
- package/lib/utils/union-find.ts +58 -0
- package/lib/vale.ts +47 -0
- package/out/api/APIClient.d.ts +19 -14
- package/out/api/APIClient.d.ts.map +1 -1
- package/out/api/APIClient.js +22 -22
- package/out/api/APIClient.js.map +1 -1
- package/out/api/arcgis.d.ts +33 -0
- package/out/api/arcgis.d.ts.map +1 -0
- package/out/api/arcgis.js +53 -0
- package/out/api/arcgis.js.map +1 -0
- package/out/api/ckan.d.ts +72 -0
- package/out/api/ckan.d.ts.map +1 -0
- package/out/api/ckan.js +64 -0
- package/out/api/ckan.js.map +1 -0
- package/out/api/clock.d.ts +1 -1
- package/out/api/clock.d.ts.map +1 -1
- package/out/api/clock.js +1 -1
- package/out/api/clock.js.map +1 -1
- package/out/api/defaults.d.ts +28 -0
- package/out/api/defaults.d.ts.map +1 -0
- package/out/api/defaults.js +28 -0
- package/out/api/defaults.js.map +1 -0
- package/out/api/disk-storage.d.ts +8 -7
- package/out/api/disk-storage.d.ts.map +1 -1
- package/out/api/disk-storage.js +20 -19
- package/out/api/disk-storage.js.map +1 -1
- package/out/api/headless.d.ts.map +1 -1
- package/out/api/headless.js.map +1 -1
- package/out/api/host.d.ts +43 -0
- package/out/api/host.d.ts.map +1 -0
- package/out/api/host.js +36 -0
- package/out/api/host.js.map +1 -0
- package/out/api/index.d.ts +11 -6
- package/out/api/index.d.ts.map +1 -1
- package/out/api/index.js +11 -6
- package/out/api/index.js.map +1 -1
- package/out/api/ogc.d.ts +78 -0
- package/out/api/ogc.d.ts.map +1 -0
- package/out/api/ogc.js +166 -0
- package/out/api/ogc.js.map +1 -0
- package/out/api/paced-client.d.ts +45 -0
- package/out/api/paced-client.d.ts.map +1 -0
- package/out/api/paced-client.js +32 -0
- package/out/api/paced-client.js.map +1 -0
- package/out/api/pacer.d.ts +8 -8
- package/out/api/pacer.d.ts.map +1 -1
- package/out/api/pacer.js +8 -8
- package/out/api/pacer.js.map +1 -1
- package/out/api/responses.d.ts.map +1 -1
- package/out/api/responses.js +3 -3
- package/out/api/responses.js.map +1 -1
- package/out/api/retry.d.ts +7 -7
- package/out/api/retry.d.ts.map +1 -1
- package/out/api/retry.js +12 -12
- package/out/api/retry.js.map +1 -1
- package/out/api/test-clocks.d.ts +8 -2
- package/out/api/test-clocks.d.ts.map +1 -1
- package/out/api/test-clocks.js +5 -4
- package/out/api/test-clocks.js.map +1 -1
- package/out/api/test-transport.d.ts +1 -1
- package/out/api/test-transport.d.ts.map +1 -1
- package/out/api/test-transport.js.map +1 -1
- package/out/coarse-placer/coarse-placer.d.ts +13 -1
- package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
- package/out/coarse-placer/coarse-placer.js +29 -13
- package/out/coarse-placer/coarse-placer.js.map +1 -1
- package/out/coarse-placer/featurize.d.ts +11 -1
- package/out/coarse-placer/featurize.d.ts.map +1 -1
- package/out/coarse-placer/featurize.js +9 -10
- package/out/coarse-placer/featurize.js.map +1 -1
- package/out/coarse-placer/fnv-hash.d.ts +15 -0
- package/out/coarse-placer/fnv-hash.d.ts.map +1 -0
- package/out/coarse-placer/fnv-hash.js +22 -0
- package/out/coarse-placer/fnv-hash.js.map +1 -0
- package/out/coarse-placer/math.d.ts +25 -0
- package/out/coarse-placer/math.d.ts.map +1 -0
- package/out/coarse-placer/math.js +49 -0
- package/out/coarse-placer/math.js.map +1 -0
- package/out/coarse-placer/tools/build-dataset.d.ts +4 -3
- package/out/coarse-placer/tools/build-dataset.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-dataset.js +21 -31
- package/out/coarse-placer/tools/build-dataset.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-exposure.d.ts +3 -5
- package/out/coarse-placer/tools/build-outlier-exposure.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-exposure.js +12 -18
- package/out/coarse-placer/tools/build-outlier-exposure.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-latin.d.ts +3 -2
- package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-latin.js +18 -50
- package/out/coarse-placer/tools/build-outlier-latin.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-oa.d.ts +3 -2
- package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-oa.js +22 -57
- package/out/coarse-placer/tools/build-outlier-oa.js.map +1 -1
- package/out/coarse-placer/tools/country-sets.d.ts +28 -0
- package/out/coarse-placer/tools/country-sets.d.ts.map +1 -0
- package/out/coarse-placer/tools/country-sets.js +45 -0
- package/out/coarse-placer/tools/country-sets.js.map +1 -0
- package/out/coarse-placer/tools/eval-latin-offmap.d.ts +4 -3
- package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval-latin-offmap.js +10 -34
- package/out/coarse-placer/tools/eval-latin-offmap.js.map +1 -1
- package/out/coarse-placer/tools/eval-openset.d.ts +3 -2
- package/out/coarse-placer/tools/eval-openset.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval-openset.js +19 -56
- package/out/coarse-placer/tools/eval-openset.js.map +1 -1
- package/out/coarse-placer/tools/eval-quant-compare.d.ts +6 -5
- package/out/coarse-placer/tools/eval-quant-compare.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval-quant-compare.js +13 -39
- package/out/coarse-placer/tools/eval-quant-compare.js.map +1 -1
- package/out/coarse-placer/tools/eval.d.ts +3 -2
- package/out/coarse-placer/tools/eval.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval.js +21 -23
- package/out/coarse-placer/tools/eval.js.map +1 -1
- package/out/coarse-placer/tools/index.d.ts +14 -13
- package/out/coarse-placer/tools/index.d.ts.map +1 -1
- package/out/coarse-placer/tools/index.js +14 -13
- package/out/coarse-placer/tools/index.js.map +1 -1
- package/out/coarse-placer/tools/outlier-rows.d.ts +38 -0
- package/out/coarse-placer/tools/outlier-rows.d.ts.map +1 -0
- package/out/coarse-placer/tools/outlier-rows.js +67 -0
- package/out/coarse-placer/tools/outlier-rows.js.map +1 -0
- package/out/coarse-placer/tools/paths.d.ts +34 -0
- package/out/coarse-placer/tools/paths.d.ts.map +1 -0
- package/out/coarse-placer/tools/paths.js +64 -0
- package/out/coarse-placer/tools/paths.js.map +1 -0
- package/out/coarse-placer/tools/probe-frontier.d.ts.map +1 -1
- package/out/coarse-placer/tools/probe-frontier.js +13 -14
- package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
- package/out/coarse-placer/tools/quantize.d.ts +3 -2
- package/out/coarse-placer/tools/quantize.d.ts.map +1 -1
- package/out/coarse-placer/tools/quantize.js +13 -14
- package/out/coarse-placer/tools/quantize.js.map +1 -1
- package/out/coarse-placer/tools/train.d.ts +3 -2
- package/out/coarse-placer/tools/train.d.ts.map +1 -1
- package/out/coarse-placer/tools/train.js +21 -36
- package/out/coarse-placer/tools/train.js.map +1 -1
- package/out/collections.d.ts.map +1 -1
- package/out/collections.js.map +1 -1
- package/out/crypto/base64url.d.ts +13 -0
- package/out/crypto/base64url.d.ts.map +1 -0
- package/out/crypto/base64url.js +34 -0
- package/out/crypto/base64url.js.map +1 -0
- package/out/crypto/digest.d.ts +12 -0
- package/out/crypto/digest.d.ts.map +1 -0
- package/out/crypto/digest.js +16 -0
- package/out/crypto/digest.js.map +1 -0
- package/out/crypto/ed25519.d.ts +35 -0
- package/out/crypto/ed25519.d.ts.map +1 -0
- package/out/crypto/ed25519.js +89 -0
- package/out/crypto/ed25519.js.map +1 -0
- package/out/crypto/node.d.ts.map +1 -1
- package/out/crypto/node.js +1 -1
- package/out/crypto/node.js.map +1 -1
- package/out/data-root.d.ts +131 -0
- package/out/data-root.d.ts.map +1 -0
- package/out/data-root.js +135 -0
- package/out/data-root.js.map +1 -0
- package/out/decoder/build-tree.d.ts +2 -2
- package/out/decoder/build-tree.d.ts.map +1 -1
- package/out/decoder/build-tree.js +1 -1
- package/out/decoder/build-tree.js.map +1 -1
- package/out/decoder/calibration.d.ts +1 -1
- package/out/decoder/calibration.d.ts.map +1 -1
- package/out/decoder/calibration.js +1 -1
- package/out/decoder/calibration.js.map +1 -1
- package/out/decoder/containment.d.ts +3 -3
- package/out/decoder/containment.d.ts.map +1 -1
- package/out/decoder/containment.js +6 -3
- package/out/decoder/containment.js.map +1 -1
- package/out/decoder/index.d.ts +13 -12
- package/out/decoder/index.d.ts.map +1 -1
- package/out/decoder/index.js +13 -12
- package/out/decoder/index.js.map +1 -1
- package/out/decoder/parse-diff.d.ts +1 -1
- package/out/decoder/parse-diff.d.ts.map +1 -1
- package/out/decoder/parse-diff.js +1 -1
- package/out/decoder/parse-diff.js.map +1 -1
- package/out/decoder/proposals-to-tree.d.ts +2 -2
- package/out/decoder/proposals-to-tree.d.ts.map +1 -1
- package/out/decoder/proposals-to-tree.js.map +1 -1
- package/out/decoder/resolve-proposal-overlaps.d.ts +3 -3
- package/out/decoder/resolve-proposal-overlaps.d.ts.map +1 -1
- package/out/decoder/resolve-proposal-overlaps.js +2 -2
- package/out/decoder/resolve-proposal-overlaps.js.map +1 -1
- package/out/decoder/serialize-json.d.ts +4 -4
- package/out/decoder/serialize-json.d.ts.map +1 -1
- package/out/decoder/serialize-json.js +11 -10
- package/out/decoder/serialize-json.js.map +1 -1
- package/out/decoder/serialize-tuples.d.ts +6 -2
- package/out/decoder/serialize-tuples.d.ts.map +1 -1
- package/out/decoder/serialize-tuples.js +17 -1
- package/out/decoder/serialize-tuples.js.map +1 -1
- package/out/decoder/serialize-xml.d.ts +2 -2
- package/out/decoder/serialize-xml.d.ts.map +1 -1
- package/out/decoder/serialize-xml.js +6 -2
- 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 -13
- package/out/decoder/tree-shape.js.map +1 -1
- package/out/decoder/tree-walk.d.ts +50 -0
- package/out/decoder/tree-walk.d.ts.map +1 -0
- package/out/decoder/tree-walk.js +78 -0
- package/out/decoder/tree-walk.js.map +1 -0
- package/out/decoder/types.d.ts +3 -3
- package/out/decoder/types.d.ts.map +1 -1
- package/out/decoder/types.js +1 -1
- package/out/decoder/types.js.map +1 -1
- package/out/decoder/unknown-spans.d.ts +1 -15
- package/out/decoder/unknown-spans.d.ts.map +1 -1
- package/out/decoder/unknown-spans.js +16 -6
- package/out/decoder/unknown-spans.js.map +1 -1
- package/out/decoder/validate-tree.d.ts +2 -2
- package/out/decoder/validate-tree.d.ts.map +1 -1
- package/out/decoder/validate-tree.js +1 -1
- package/out/decoder/validate-tree.js.map +1 -1
- package/out/env/index.d.ts +28 -94
- package/out/env/index.d.ts.map +1 -1
- package/out/env/index.js +57 -19
- package/out/env/index.js.map +1 -1
- package/out/env/paths.d.ts +4 -12
- package/out/env/paths.d.ts.map +1 -1
- package/out/env/paths.js +4 -10
- package/out/env/paths.js.map +1 -1
- package/out/env/schema.d.ts +20 -99
- package/out/env/schema.d.ts.map +1 -1
- package/out/env/schema.js +77 -186
- package/out/env/schema.js.map +1 -1
- package/out/env/utils.d.ts +21 -0
- package/out/env/utils.d.ts.map +1 -0
- package/out/env/utils.js +23 -0
- package/out/env/utils.js.map +1 -0
- package/out/errors/schema.d.ts +7 -0
- package/out/errors/schema.d.ts.map +1 -1
- package/out/errors/schema.js +7 -5
- package/out/errors/schema.js.map +1 -1
- package/out/fs/compression.d.ts +22 -0
- package/out/fs/compression.d.ts.map +1 -0
- package/out/fs/compression.js +50 -0
- package/out/fs/compression.js.map +1 -0
- package/out/fs/{utils/formatters.d.ts → formatters.d.ts} +12 -0
- package/out/fs/formatters.d.ts.map +1 -0
- package/out/fs/{utils/formatters.js → formatters.js} +12 -0
- package/out/fs/formatters.js.map +1 -0
- package/out/fs/readers.d.ts +221 -0
- package/out/fs/readers.d.ts.map +1 -0
- package/out/fs/readers.js +349 -0
- package/out/fs/readers.js.map +1 -0
- package/out/fs/streams.d.ts +38 -0
- package/out/fs/streams.d.ts.map +1 -0
- package/out/fs/streams.js +37 -0
- package/out/fs/streams.js.map +1 -0
- package/out/fs/temporary.d.ts +54 -0
- package/out/fs/temporary.d.ts.map +1 -0
- package/out/fs/temporary.js +39 -0
- package/out/fs/temporary.js.map +1 -0
- package/out/fs/writers.d.ts +132 -0
- package/out/fs/writers.d.ts.map +1 -0
- package/out/fs/writers.js +203 -0
- package/out/fs/writers.js.map +1 -0
- package/out/fs/zip.d.ts +6 -2
- package/out/fs/zip.d.ts.map +1 -1
- package/out/fs/zip.js +79 -82
- package/out/fs/zip.js.map +1 -1
- package/out/git.d.ts +33 -0
- package/out/git.d.ts.map +1 -0
- package/out/git.js +48 -0
- package/out/git.js.map +1 -0
- package/out/{utils/hash.d.ts → hash.d.ts} +6 -1
- package/out/hash.d.ts.map +1 -0
- package/out/{utils/hash.js → hash.js} +9 -4
- package/out/hash.js.map +1 -0
- package/out/html/document.d.ts +57 -0
- package/out/html/document.d.ts.map +1 -0
- package/out/html/document.js +79 -0
- package/out/html/document.js.map +1 -0
- package/out/html/tables.d.ts +53 -0
- package/out/html/tables.d.ts.map +1 -0
- package/out/html/tables.js +117 -0
- package/out/html/tables.js.map +1 -0
- package/out/html/text.d.ts +40 -0
- package/out/html/text.d.ts.map +1 -0
- package/out/html/text.js +110 -0
- package/out/html/text.js.map +1 -0
- package/out/index.d.ts +10 -7
- package/out/index.d.ts.map +1 -1
- package/out/index.js +10 -7
- package/out/index.js.map +1 -1
- package/out/json.d.ts +43 -0
- package/out/json.d.ts.map +1 -0
- package/out/json.js +68 -0
- package/out/json.js.map +1 -0
- package/out/layers/coverage.d.ts +123 -0
- package/out/layers/coverage.d.ts.map +1 -0
- package/out/layers/coverage.js +132 -0
- package/out/layers/coverage.js.map +1 -0
- package/out/layers/feature-count.d.ts +29 -0
- package/out/layers/feature-count.d.ts.map +1 -0
- package/out/layers/feature-count.js +23 -0
- package/out/layers/feature-count.js.map +1 -0
- package/out/layers/index.d.ts +4 -2
- package/out/layers/index.d.ts.map +1 -1
- package/out/layers/index.js +4 -2
- package/out/layers/index.js.map +1 -1
- package/out/layers/manifest.d.ts +107 -8
- package/out/layers/manifest.d.ts.map +1 -1
- package/out/layers/manifest.js +160 -9
- package/out/layers/manifest.js.map +1 -1
- package/out/layers/schema.d.ts +2 -30
- package/out/layers/schema.d.ts.map +1 -1
- package/out/layers/schema.js +3 -29
- package/out/layers/schema.js.map +1 -1
- package/out/license/configured.d.ts +17 -0
- package/out/license/configured.d.ts.map +1 -0
- package/out/license/configured.js +27 -0
- package/out/license/configured.js.map +1 -0
- package/out/license/docs-site.d.ts +23 -0
- package/out/license/docs-site.d.ts.map +1 -0
- package/out/license/docs-site.js +32 -0
- package/out/license/docs-site.js.map +1 -0
- package/out/license/index.d.ts +18 -0
- package/out/license/index.d.ts.map +1 -0
- package/out/license/index.js +18 -0
- package/out/license/index.js.map +1 -0
- package/out/license/key-file.d.ts +36 -0
- package/out/license/key-file.d.ts.map +1 -0
- package/out/license/key-file.js +64 -0
- package/out/license/key-file.js.map +1 -0
- package/out/license/key.d.ts +96 -0
- package/out/license/key.d.ts.map +1 -0
- package/out/license/key.js +155 -0
- package/out/license/key.js.map +1 -0
- package/out/license/obligations.d.ts +87 -0
- package/out/license/obligations.d.ts.map +1 -0
- package/out/license/obligations.js +129 -0
- package/out/license/obligations.js.map +1 -0
- package/out/license/publication.d.ts +36 -0
- package/out/license/publication.d.ts.map +1 -0
- package/out/license/publication.js +61 -0
- package/out/license/publication.js.map +1 -0
- package/out/license/register.d.ts +63 -0
- package/out/license/register.d.ts.map +1 -0
- package/out/license/register.js +73 -0
- package/out/license/register.js.map +1 -0
- package/out/license/stamp.d.ts +55 -0
- package/out/license/stamp.d.ts.map +1 -0
- package/out/license/stamp.js +62 -0
- package/out/license/stamp.js.map +1 -0
- package/out/license/status.d.ts +54 -0
- package/out/license/status.d.ts.map +1 -0
- package/out/license/status.js +85 -0
- package/out/license/status.js.map +1 -0
- package/out/locale/index.d.ts +3 -3
- package/out/locale/index.d.ts.map +1 -1
- package/out/locale/index.js +3 -3
- package/out/locale/index.js.map +1 -1
- package/out/locale/locale.d.ts +1 -1
- package/out/locale/locale.d.ts.map +1 -1
- package/out/locale/locale.js.map +1 -1
- package/out/locale/profiles/en-us.d.ts +1 -1
- package/out/locale/profiles/en-us.d.ts.map +1 -1
- package/out/locale/profiles/en-us.js.map +1 -1
- package/out/locale/profiles/fr-fr.d.ts +1 -1
- package/out/locale/profiles/fr-fr.d.ts.map +1 -1
- package/out/locale/profiles/fr-fr.js.map +1 -1
- package/out/locale/profiles/index.d.ts +3 -3
- package/out/locale/profiles/index.d.ts.map +1 -1
- package/out/locale/profiles/index.js +3 -3
- package/out/locale/profiles/index.js.map +1 -1
- package/out/locale/profiles/ja-jp.d.ts +1 -1
- package/out/locale/profiles/ja-jp.d.ts.map +1 -1
- package/out/locale/profiles/ja-jp.js.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.map +1 -1
- package/out/locale/zh-cn-units.d.ts +67 -0
- package/out/locale/zh-cn-units.d.ts.map +1 -0
- package/out/locale/zh-cn-units.js +109 -0
- package/out/locale/zh-cn-units.js.map +1 -0
- package/out/logging/index.d.ts +2 -2
- package/out/logging/index.d.ts.map +1 -1
- package/out/logging/index.js +2 -2
- package/out/logging/index.js.map +1 -1
- package/out/logging/shared.d.ts +5 -3
- package/out/logging/shared.d.ts.map +1 -1
- package/out/logging/shared.js +28 -4
- package/out/logging/shared.js.map +1 -1
- package/out/logging/utils.d.ts.map +1 -1
- package/out/logging/utils.js.map +1 -1
- package/out/module/file-url.d.ts +21 -0
- package/out/module/file-url.d.ts.map +1 -0
- package/out/module/file-url.js +25 -0
- package/out/module/file-url.js.map +1 -0
- package/out/module/packaged-data.d.ts +19 -0
- package/out/module/packaged-data.d.ts.map +1 -0
- package/out/module/packaged-data.js +28 -0
- package/out/module/packaged-data.js.map +1 -0
- package/out/module/resolve-from.d.ts +52 -0
- package/out/module/resolve-from.d.ts.map +1 -0
- package/out/module/resolve-from.js +66 -0
- package/out/module/resolve-from.js.map +1 -0
- package/out/module/resolvers.d.ts +52 -0
- package/out/module/resolvers.d.ts.map +1 -0
- package/out/module/resolvers.js +74 -0
- package/out/module/resolvers.js.map +1 -0
- package/out/module/runtime.d.ts +11 -0
- package/out/module/runtime.d.ts.map +1 -0
- package/out/module/runtime.js +11 -0
- package/out/module/runtime.js.map +1 -0
- package/out/{utils/python-numeric.d.ts → numeric.d.ts} +6 -9
- package/out/numeric.d.ts.map +1 -0
- package/out/{utils/python-numeric.js → numeric.js} +15 -3
- package/out/numeric.js.map +1 -0
- package/out/objects.d.ts +1 -21
- package/out/objects.d.ts.map +1 -1
- package/out/objects.js +3 -36
- package/out/objects.js.map +1 -1
- package/out/{utils/repo.d.ts → paths.d.ts} +8 -2
- package/out/paths.d.ts.map +1 -0
- package/out/paths.js +134 -0
- package/out/paths.js.map +1 -0
- package/out/pipeline/index.d.ts +5 -5
- package/out/pipeline/index.d.ts.map +1 -1
- package/out/pipeline/index.js +3 -3
- package/out/pipeline/index.js.map +1 -1
- package/out/pipeline/runtime-pipeline.d.ts +26 -26
- package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.js +36 -35
- package/out/pipeline/runtime-pipeline.js.map +1 -1
- package/out/pipeline/span-proposer.d.ts.map +1 -1
- package/out/pipeline/span-proposer.js.map +1 -1
- package/out/pipeline/types.d.ts +56 -20
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js +21 -3
- package/out/pipeline/types.js.map +1 -1
- package/out/policy/defaults.d.ts +1 -1
- package/out/policy/defaults.d.ts.map +1 -1
- package/out/policy/defaults.js.map +1 -1
- package/out/policy/index.d.ts +4 -4
- package/out/policy/index.d.ts.map +1 -1
- package/out/policy/index.js +4 -4
- package/out/policy/index.js.map +1 -1
- package/out/policy/policy.d.ts +1 -1
- package/out/policy/policy.d.ts.map +1 -1
- package/out/policy/policy.js +1 -1
- package/out/policy/policy.js.map +1 -1
- package/out/policy/proposal-collection.d.ts +3 -3
- 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 +1 -1
- package/out/policy/registry.d.ts.map +1 -1
- package/out/policy/registry.js +1 -1
- package/out/policy/registry.js.map +1 -1
- package/out/process.d.ts +110 -0
- package/out/process.d.ts.map +1 -0
- package/out/process.js +72 -0
- package/out/process.js.map +1 -0
- package/out/{utils/python-random.d.ts → random.d.ts} +1 -1
- package/out/random.d.ts.map +1 -0
- package/out/{utils/python-random.js → random.js} +1 -1
- package/out/random.js.map +1 -0
- package/out/release-config.d.ts +84 -0
- package/out/release-config.d.ts.map +1 -0
- package/out/release-config.js +45 -0
- package/out/release-config.js.map +1 -0
- package/out/resolver/authoritative-provider.d.ts +171 -0
- package/out/resolver/authoritative-provider.d.ts.map +1 -0
- package/out/resolver/authoritative-provider.js +51 -0
- package/out/resolver/authoritative-provider.js.map +1 -0
- package/out/resolver/coverage-facts.d.ts +6 -6
- package/out/resolver/coverage-facts.d.ts.map +1 -1
- package/out/resolver/coverage-facts.js.map +1 -1
- package/out/resolver/fixture-authoritative-provider.d.ts +48 -0
- package/out/resolver/fixture-authoritative-provider.d.ts.map +1 -0
- package/out/resolver/fixture-authoritative-provider.js +68 -0
- package/out/resolver/fixture-authoritative-provider.js.map +1 -0
- package/out/resolver/index.d.ts +8 -5
- package/out/resolver/index.d.ts.map +1 -1
- package/out/resolver/index.js +5 -3
- package/out/resolver/index.js.map +1 -1
- package/out/resolver/lookup-types.d.ts +8 -7
- package/out/resolver/lookup-types.d.ts.map +1 -1
- package/out/resolver/lookup-types.js.map +1 -1
- package/out/resolver/placetype-map.d.ts +11 -6
- package/out/resolver/placetype-map.d.ts.map +1 -1
- package/out/resolver/placetype-map.js +14 -6
- package/out/resolver/placetype-map.js.map +1 -1
- package/out/resolver/postcode-format.d.ts +2 -1
- package/out/resolver/postcode-format.d.ts.map +1 -1
- package/out/resolver/postcode-format.js +5 -4
- package/out/resolver/postcode-format.js.map +1 -1
- package/out/resolver/referential.d.ts +1 -1
- package/out/resolver/referential.d.ts.map +1 -1
- package/out/resolver/referential.js +1 -1
- package/out/resolver/referential.js.map +1 -1
- package/out/resolver/types.d.ts +96 -80
- package/out/resolver/types.d.ts.map +1 -1
- package/out/resolver/types.js +2 -2
- package/out/resolver/types.js.map +1 -1
- package/out/resources/debugging.d.ts.map +1 -1
- package/out/resources/debugging.js.map +1 -1
- package/out/resources/git.d.ts.map +1 -1
- package/out/resources/git.js +6 -8
- package/out/resources/git.js.map +1 -1
- package/out/resources/index.d.ts +7 -10
- package/out/resources/index.d.ts.map +1 -1
- package/out/resources/index.js +7 -10
- package/out/resources/index.js.map +1 -1
- package/out/resources/languages/index.d.ts +2 -2
- package/out/resources/languages/index.d.ts.map +1 -1
- package/out/resources/languages/index.js +2 -2
- package/out/resources/languages/index.js.map +1 -1
- package/out/resources/languages/types.gen.d.ts.map +1 -1
- package/out/resources/languages/types.gen.js.map +1 -1
- package/out/resources/libpostal.d.ts +9 -28
- package/out/resources/libpostal.d.ts.map +1 -1
- package/out/resources/libpostal.js +6 -122
- package/out/resources/libpostal.js.map +1 -1
- package/out/resources/locale.d.ts.map +1 -1
- package/out/resources/locale.js.map +1 -1
- package/out/resources/set.d.ts +0 -13
- package/out/resources/set.d.ts.map +1 -1
- package/out/resources/set.js +0 -32
- package/out/resources/set.js.map +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +20 -3
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.js +5 -8
- package/out/resources/whosonfirst/PlacetypeDataSource.js.map +1 -1
- package/out/resources/whosonfirst/backoff.d.ts +2 -0
- package/out/resources/whosonfirst/backoff.d.ts.map +1 -1
- package/out/resources/whosonfirst/backoff.js +4 -2
- package/out/resources/whosonfirst/backoff.js.map +1 -1
- package/out/resources/whosonfirst/{sharded-repo.d.ts → extract-repo.d.ts} +8 -9
- package/out/resources/whosonfirst/extract-repo.d.ts.map +1 -0
- package/out/resources/whosonfirst/{sharded-repo.js → extract-repo.js} +14 -25
- package/out/resources/whosonfirst/extract-repo.js.map +1 -0
- package/out/resources/whosonfirst/index.d.ts +3 -5
- package/out/resources/whosonfirst/index.d.ts.map +1 -1
- package/out/resources/whosonfirst/index.js +3 -5
- package/out/resources/whosonfirst/index.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.d.ts +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.js +5 -5
- package/out/resources/whosonfirst/placetypes/Placetype.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts +1 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/admin.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/definition.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/definition.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/graph.d.ts +2 -2
- package/out/resources/whosonfirst/placetypes/graph.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/graph.js +0 -0
- package/out/resources/whosonfirst/placetypes/graph.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/index.d.ts +7 -7
- package/out/resources/whosonfirst/placetypes/index.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/index.js +7 -7
- package/out/resources/whosonfirst/placetypes/index.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/mermaid.d.ts +2 -2
- 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 +9 -9
- package/out/resources/whosonfirst/placetypes/specificity.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/specificity.js +8 -8
- package/out/resources/whosonfirst/placetypes/specificity.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/tree.d.ts +2 -2
- package/out/resources/whosonfirst/placetypes/tree.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/tree.js.map +1 -1
- package/out/routing/index.d.ts.map +1 -1
- package/out/routing/index.js +2 -1
- package/out/routing/index.js.map +1 -1
- package/out/scripting/arguments.d.ts +16 -0
- package/out/scripting/arguments.d.ts.map +1 -1
- package/out/scripting/arguments.js +27 -1
- package/out/scripting/arguments.js.map +1 -1
- package/out/scripting/command.d.ts.map +1 -1
- package/out/scripting/command.js.map +1 -1
- package/out/scripting/index.d.ts +1 -1
- package/out/scripting/index.d.ts.map +1 -1
- package/out/scripting/index.js.map +1 -1
- package/out/scripting/ingest-chunk-script.d.ts +63 -0
- package/out/scripting/ingest-chunk-script.d.ts.map +1 -0
- package/out/scripting/ingest-chunk-script.js +51 -0
- package/out/scripting/ingest-chunk-script.js.map +1 -0
- package/out/scripting/utils/index.d.ts +6 -1
- package/out/scripting/utils/index.d.ts.map +1 -1
- package/out/scripting/utils/index.js +12 -5
- package/out/scripting/utils/index.js.map +1 -1
- package/out/stats.d.ts +33 -0
- package/out/stats.d.ts.map +1 -0
- package/out/stats.js +53 -0
- package/out/stats.js.map +1 -0
- package/out/{identifiers.d.ts → strings/case.d.ts} +6 -2
- package/out/strings/case.d.ts.map +1 -0
- package/out/{identifiers.js → strings/case.js} +9 -2
- package/out/strings/case.js.map +1 -0
- package/out/strings/compare.d.ts +14 -0
- package/out/strings/compare.d.ts.map +1 -0
- package/out/strings/compare.js +20 -0
- package/out/strings/compare.js.map +1 -0
- package/out/strings/escape.d.ts +11 -0
- package/out/strings/escape.d.ts.map +1 -0
- package/out/strings/escape.js +23 -0
- package/out/strings/escape.js.map +1 -0
- package/out/strings/format.d.ts +12 -0
- package/out/strings/format.d.ts.map +1 -0
- package/out/strings/format.js +14 -0
- package/out/strings/format.js.map +1 -0
- package/out/{utils → strings}/python-json.d.ts +6 -7
- package/out/strings/python-json.d.ts.map +1 -0
- package/out/{utils → strings}/python-json.js +1 -8
- package/out/strings/python-json.js.map +1 -0
- package/out/strings/regexp.d.ts +11 -0
- package/out/strings/regexp.d.ts.map +1 -0
- package/out/strings/regexp.js +13 -0
- package/out/strings/regexp.js.map +1 -0
- package/out/tokenization/Graph.d.ts +1 -1
- package/out/tokenization/Graph.d.ts.map +1 -1
- package/out/tokenization/Graph.js +1 -1
- package/out/tokenization/Graph.js.map +1 -1
- package/out/tokenization/Span.d.ts +5 -5
- package/out/tokenization/Span.d.ts.map +1 -1
- package/out/tokenization/Span.js +2 -2
- package/out/tokenization/Span.js.map +1 -1
- package/out/tokenization/index.d.ts +3 -3
- package/out/tokenization/index.d.ts.map +1 -1
- package/out/tokenization/index.js +3 -3
- package/out/tokenization/index.js.map +1 -1
- package/out/tokenization/normalizer.d.ts.map +1 -1
- package/out/tokenization/normalizer.js.map +1 -1
- package/out/tools/download-libpostal-resources.d.ts.map +1 -1
- package/out/tools/download-libpostal-resources.js +17 -22
- package/out/tools/download-libpostal-resources.js.map +1 -1
- package/out/tools/download-ssl-address.d.ts.map +1 -1
- package/out/tools/download-ssl-address.js +6 -5
- package/out/tools/download-ssl-address.js.map +1 -1
- package/out/tools/generate-language-types.d.ts +1 -1
- package/out/tools/generate-language-types.d.ts.map +1 -1
- package/out/tools/generate-language-types.js +6 -7
- package/out/tools/generate-language-types.js.map +1 -1
- package/out/tools/index.d.ts +3 -3
- package/out/tools/index.d.ts.map +1 -1
- package/out/tools/index.js +3 -3
- package/out/tools/index.js.map +1 -1
- package/out/trust-policies.d.ts +58 -0
- package/out/trust-policies.d.ts.map +1 -0
- package/out/trust-policies.js +99 -0
- package/out/trust-policies.js.map +1 -0
- package/out/types/Classification.d.ts +4 -4
- package/out/types/Classification.d.ts.map +1 -1
- package/out/types/Classification.js.map +1 -1
- package/out/types/classifier.d.ts +2 -2
- package/out/types/classifier.d.ts.map +1 -1
- package/out/types/classifier.js.map +1 -1
- package/out/types/component.d.ts +7 -2
- package/out/types/component.d.ts.map +1 -1
- package/out/types/component.js +16 -0
- package/out/types/component.js.map +1 -1
- package/out/types/index.d.ts +4 -4
- package/out/types/index.d.ts.map +1 -1
- package/out/types/index.js +4 -4
- package/out/types/index.js.map +1 -1
- package/out/types/mapping.d.ts +2 -2
- package/out/types/mapping.d.ts.map +1 -1
- package/out/types/mapping.js.map +1 -1
- package/out/utils/chunk-process.d.ts +64 -0
- package/out/utils/chunk-process.d.ts.map +1 -0
- package/out/utils/chunk-process.js +78 -0
- package/out/utils/chunk-process.js.map +1 -0
- package/out/utils/collections.d.ts +12 -0
- package/out/utils/collections.d.ts.map +1 -0
- package/out/utils/collections.js +16 -0
- package/out/utils/collections.js.map +1 -0
- package/out/utils/events.d.ts +10 -0
- package/out/utils/events.d.ts.map +1 -0
- package/out/utils/events.js +10 -0
- package/out/utils/events.js.map +1 -0
- package/out/utils/geodatabase-archive.d.ts +58 -0
- package/out/utils/geodatabase-archive.d.ts.map +1 -0
- package/out/utils/geodatabase-archive.js +59 -0
- package/out/utils/geodatabase-archive.js.map +1 -0
- package/out/utils/index.d.ts +14 -10
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +14 -10
- package/out/utils/index.js.map +1 -1
- package/out/utils/sleep.d.ts +11 -0
- package/out/utils/sleep.d.ts.map +1 -0
- package/out/utils/sleep.js +14 -0
- package/out/utils/sleep.js.map +1 -0
- 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 +1 -1
- package/out/utils/sqlite-rows.js.map +1 -1
- package/out/utils/stream-to-disk.d.ts +65 -0
- package/out/utils/stream-to-disk.d.ts.map +1 -0
- package/out/utils/stream-to-disk.js +73 -0
- package/out/utils/stream-to-disk.js.map +1 -0
- package/out/utils/system.d.ts +33 -0
- package/out/utils/system.d.ts.map +1 -0
- package/out/utils/system.js +46 -0
- package/out/utils/system.js.map +1 -0
- package/out/utils/time.d.ts +22 -0
- package/out/utils/time.d.ts.map +1 -0
- package/out/utils/time.js +28 -0
- package/out/utils/time.js.map +1 -0
- package/out/utils/union-find.d.ts +22 -0
- package/out/utils/union-find.d.ts.map +1 -0
- package/out/utils/union-find.js +38 -0
- package/out/utils/union-find.js.map +1 -0
- package/out/vale.d.ts +25 -0
- package/out/vale.d.ts.map +1 -0
- package/out/vale.js +25 -0
- package/out/vale.js.map +1 -0
- package/package.json +516 -152
- package/vitest.config.ts +13 -14
- package/coarse-placer/tools/fnv-hash.ts +0 -21
- package/coarse-placer/tools/index.ts +0 -23
- package/data/whosonfirst/dictionaries/country/name:eng_x_preferred.txt +0 -220
- package/data/whosonfirst/dictionaries/country/wof:country.txt +0 -215
- package/data/whosonfirst/dictionaries/country/wof:country_alpha3.txt +0 -216
- package/data/whosonfirst/dictionaries/dependency/name:eng_x_preferred.txt +0 -42
- package/data/whosonfirst/dictionaries/dependency/wof:shortcode.txt +0 -34
- package/data/whosonfirst/dictionaries/locality/name:eng_x_preferred.txt +0 -261365
- package/data/whosonfirst/dictionaries/locality/name:fra_x_preferred.txt +0 -77631
- package/data/whosonfirst/dictionaries/region/abrv:eng_x_preferred.txt +0 -441
- package/data/whosonfirst/dictionaries/region/name:eng_x_preferred.txt +0 -4517
- package/data/whosonfirst/dictionaries/region/wof:shortcode.txt +0 -839
- package/db/schema.ts +0 -30
- package/decoder/index.ts +0 -18
- package/env/index.ts +0 -44
- package/env/load.ts +0 -14
- package/env/schema.ts +0 -222
- package/errors/index.ts +0 -9
- package/fs/node.ts +0 -37
- package/fs/utils/index.ts +0 -7
- package/index.ts +0 -13
- package/kysley/client.ts +0 -30
- package/kysley/dialect-config.ts +0 -30
- package/kysley/dialect.ts +0 -67
- package/kysley/driver.ts +0 -175
- package/layers/manifest.ts +0 -210
- package/locale/index.ts +0 -9
- package/locale/profiles/index.ts +0 -9
- package/out/coarse-placer/tools/fnv-hash.d.ts +0 -12
- package/out/coarse-placer/tools/fnv-hash.d.ts.map +0 -1
- package/out/coarse-placer/tools/fnv-hash.js +0 -19
- package/out/coarse-placer/tools/fnv-hash.js.map +0 -1
- package/out/db/schema.d.ts +0 -30
- package/out/db/schema.d.ts.map +0 -1
- package/out/db/schema.js +0 -22
- package/out/db/schema.js.map +0 -1
- package/out/env/load.d.ts +0 -7
- package/out/env/load.d.ts.map +0 -1
- package/out/env/load.js +0 -13
- package/out/env/load.js.map +0 -1
- package/out/errors/index.d.ts +0 -9
- package/out/errors/index.d.ts.map +0 -1
- package/out/errors/index.js +0 -9
- package/out/errors/index.js.map +0 -1
- package/out/fs/node.d.ts +0 -19
- package/out/fs/node.d.ts.map +0 -1
- package/out/fs/node.js +0 -32
- package/out/fs/node.js.map +0 -1
- package/out/fs/utils/formatters.d.ts.map +0 -1
- package/out/fs/utils/formatters.js.map +0 -1
- package/out/fs/utils/index.d.ts +0 -7
- package/out/fs/utils/index.d.ts.map +0 -1
- package/out/fs/utils/index.js +0 -7
- package/out/fs/utils/index.js.map +0 -1
- package/out/identifiers.d.ts.map +0 -1
- package/out/identifiers.js.map +0 -1
- package/out/kysley/client.d.ts +0 -19
- package/out/kysley/client.d.ts.map +0 -1
- package/out/kysley/client.js +0 -25
- package/out/kysley/client.js.map +0 -1
- package/out/kysley/dialect-config.d.ts +0 -27
- package/out/kysley/dialect-config.d.ts.map +0 -1
- package/out/kysley/dialect-config.js +0 -7
- package/out/kysley/dialect-config.js.map +0 -1
- package/out/kysley/dialect.d.ts +0 -39
- package/out/kysley/dialect.d.ts.map +0 -1
- package/out/kysley/dialect.js +0 -49
- package/out/kysley/dialect.js.map +0 -1
- package/out/kysley/driver.d.ts +0 -22
- package/out/kysley/driver.d.ts.map +0 -1
- package/out/kysley/driver.js +0 -114
- package/out/kysley/driver.js.map +0 -1
- package/out/resources/LocaleIndex.d.ts +0 -53
- package/out/resources/LocaleIndex.d.ts.map +0 -1
- package/out/resources/LocaleIndex.js +0 -89
- package/out/resources/LocaleIndex.js.map +0 -1
- package/out/resources/ResourceMapCache.d.ts +0 -40
- package/out/resources/ResourceMapCache.d.ts.map +0 -1
- package/out/resources/ResourceMapCache.js +0 -75
- package/out/resources/ResourceMapCache.js.map +0 -1
- package/out/resources/libaddressinput.d.ts +0 -103
- package/out/resources/libaddressinput.d.ts.map +0 -1
- package/out/resources/libaddressinput.js +0 -30
- package/out/resources/libaddressinput.js.map +0 -1
- package/out/resources/whosonfirst/DataSourceCache.d.ts +0 -14
- package/out/resources/whosonfirst/DataSourceCache.d.ts.map +0 -1
- package/out/resources/whosonfirst/DataSourceCache.js +0 -33
- package/out/resources/whosonfirst/DataSourceCache.js.map +0 -1
- package/out/resources/whosonfirst/loader.d.ts +0 -55
- package/out/resources/whosonfirst/loader.d.ts.map +0 -1
- package/out/resources/whosonfirst/loader.js +0 -114
- package/out/resources/whosonfirst/loader.js.map +0 -1
- package/out/resources/whosonfirst/sharded-repo.d.ts.map +0 -1
- package/out/resources/whosonfirst/sharded-repo.js.map +0 -1
- package/out/utils/data-root.d.ts +0 -65
- package/out/utils/data-root.d.ts.map +0 -1
- package/out/utils/data-root.js +0 -95
- package/out/utils/data-root.js.map +0 -1
- package/out/utils/hash.d.ts.map +0 -1
- package/out/utils/hash.js.map +0 -1
- package/out/utils/jsonl.d.ts +0 -36
- package/out/utils/jsonl.d.ts.map +0 -1
- package/out/utils/jsonl.js +0 -61
- package/out/utils/jsonl.js.map +0 -1
- package/out/utils/python-json.d.ts.map +0 -1
- package/out/utils/python-json.js.map +0 -1
- package/out/utils/python-numeric.d.ts.map +0 -1
- package/out/utils/python-numeric.js.map +0 -1
- package/out/utils/python-random.d.ts.map +0 -1
- package/out/utils/python-random.js.map +0 -1
- package/out/utils/repo.d.ts.map +0 -1
- package/out/utils/repo.js +0 -123
- package/out/utils/repo.js.map +0 -1
- package/out/utils/sealed-db.d.ts +0 -47
- package/out/utils/sealed-db.d.ts.map +0 -1
- package/out/utils/sealed-db.js +0 -136
- package/out/utils/sealed-db.js.map +0 -1
- package/out/utils/stats.d.ts +0 -20
- package/out/utils/stats.d.ts.map +0 -1
- package/out/utils/stats.js +0 -31
- package/out/utils/stats.js.map +0 -1
- package/out/vitest.config.d.ts +0 -17
- package/out/vitest.config.d.ts.map +0 -1
- package/out/vitest.config.js +0 -52
- package/out/vitest.config.js.map +0 -1
- package/policy/index.ts +0 -10
- package/resources/LocaleIndex.ts +0 -124
- package/resources/ResourceMapCache.ts +0 -127
- package/resources/index.ts +0 -16
- package/resources/libaddressinput.ts +0 -105
- package/resources/libpostal.ts +0 -187
- package/resources/whosonfirst/DataSourceCache.ts +0 -51
- package/resources/whosonfirst/index.ts +0 -11
- package/resources/whosonfirst/loader.ts +0 -159
- package/resources/whosonfirst/placetypes/index.ts +0 -13
- package/scripting/arguments.ts +0 -38
- package/tokenization/index.ts +0 -9
- package/types/index.ts +0 -10
- package/utils/data-root.ts +0 -105
- package/utils/index.ts +0 -16
- package/utils/jsonl.ts +0 -70
- package/utils/repo.ts +0 -155
- package/utils/sealed-db.ts +0 -159
- package/utils/stats.ts +0 -33
- /package/{api → lib/api}/headless.ts +0 -0
- /package/{collections.ts → lib/collections.ts} +0 -0
- /package/{logging → lib/logging}/utils.ts +0 -0
- /package/{pipeline → lib/pipeline}/span-proposer.ts +0 -0
- /package/{utils/python-random.ts → lib/random.ts} +0 -0
- /package/{resources → lib/resources}/debugging.ts +0 -0
- /package/{resources → lib/resources}/languages/types.gen.ts +0 -0
- /package/{resources → lib/resources}/locale.ts +0 -0
- /package/{resources → lib/resources}/whosonfirst/placetypes/definition.ts +0 -0
- /package/{scripting → lib/scripting}/command.ts +0 -0
- /package/{tokenization → lib/tokenization}/normalizer.ts +0 -0
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { DatabaseClient } from "@mailwoman/sqlite/client";
|
|
7
7
|
import { PathBuilder } from "path-ts";
|
|
8
8
|
import { Alpha3bToAlpha2, isAlpha3bLanguageCode, } from "#resources/languages";
|
|
9
|
-
import { tryWithBackoff } from "
|
|
9
|
+
import { tryWithBackoff } from "#resources/whosonfirst/backoff";
|
|
10
10
|
function sqlParameters(input) {
|
|
11
11
|
const parameters = {};
|
|
12
12
|
for (const [key, value] of Object.entries(input)) {
|
|
@@ -32,9 +32,6 @@ function placetypeRecordFromRow(row) {
|
|
|
32
32
|
short: nullableString(row["short"]),
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
/**
|
|
36
|
-
* A data source for WhosOnFirst placetype records.
|
|
37
|
-
*/
|
|
38
35
|
export class PlacetypeDataSource {
|
|
39
36
|
#db;
|
|
40
37
|
static createPath({ placetype, languageCode, dataDirectory, }) {
|
|
@@ -78,8 +75,8 @@ export class PlacetypeDataSource {
|
|
|
78
75
|
}
|
|
79
76
|
constructor(databasePath, dbOptions) {
|
|
80
77
|
this.#db = dbOptions
|
|
81
|
-
? new
|
|
82
|
-
: new
|
|
78
|
+
? new DatabaseClient(databasePath.toString(), dbOptions)
|
|
79
|
+
: new DatabaseClient(databasePath.toString());
|
|
83
80
|
// node:sqlite has no .pragma() helper; pragmas are executed as plain SQL.
|
|
84
81
|
this.#db.exec("PRAGMA busy_timeout = 10000");
|
|
85
82
|
this.#db.exec("PRAGMA journal_mode = WAL");
|
|
@@ -88,7 +85,7 @@ export class PlacetypeDataSource {
|
|
|
88
85
|
//this.prepareIndexes()
|
|
89
86
|
}
|
|
90
87
|
[Symbol.dispose]() {
|
|
91
|
-
this.#db.
|
|
88
|
+
this.#db.destroy();
|
|
92
89
|
}
|
|
93
90
|
/**
|
|
94
91
|
* Find a placetype record by at least one criteria.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlacetypeDataSource.js","sourceRoot":"","sources":["../../../resources/whosonfirst/PlacetypeDataSource.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"PlacetypeDataSource.js","sourceRoot":"","sources":["../../../lib/resources/whosonfirst/PlacetypeDataSource.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD,OAAO,EAAE,WAAW,EAAwB,MAAM,SAAS,CAAA;AAE3D,OAAO,EAGN,eAAe,EACf,qBAAqB,GACrB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAmD/D,SAAS,aAAa,CAAC,KAA+B;IACrD,MAAM,UAAU,GAAkC,EAAE,CAAA;IAEpD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAClD,IAAI,KAAK,KAAK,S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aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;IAC7F,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,MAAM,CAAC,MAAuB;QAC1C,MAAM,OAAO,GAAG,GAAG,EAAE;YACpB,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;IAsB5C,CAAC,CAAA;YAEF,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAA;QACrC,CAAC,CAAA;QAED,MAAM,cAAc,CAAC,CAAC,EAAE,OAAO,CAAC,CAAA;IACjC,CAAC;CACD"}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This lives apart from `DataSourceCache` because both that module and `PlacetypeDataSource` need
|
|
8
8
|
* it, and each already imports the other — putting it in either one closes an import cycle.
|
|
9
|
+
*
|
|
10
|
+
* Deferred move: the retry home is `#api/retry`; this helper stays only until its callers migrate there.
|
|
9
11
|
*/
|
|
10
12
|
/**
|
|
11
13
|
* Given a callback, attempt to run it up to `attempts` times.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backoff.d.ts","sourceRoot":"","sources":["../../../resources/whosonfirst/backoff.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"backoff.d.ts","sourceRoot":"","sources":["../../../lib/resources/whosonfirst/backoff.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAkBvF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sleep } from "#utils/sleep";
|
|
1
2
|
/**
|
|
2
3
|
* @copyright Sister Software
|
|
3
4
|
* @license AGPL-3.0
|
|
@@ -6,8 +7,9 @@
|
|
|
6
7
|
*
|
|
7
8
|
* This lives apart from `DataSourceCache` because both that module and `PlacetypeDataSource` need
|
|
8
9
|
* it, and each already imports the other — putting it in either one closes an import cycle.
|
|
10
|
+
*
|
|
11
|
+
* Deferred move: the retry home is `#api/retry`; this helper stays only until its callers migrate there.
|
|
9
12
|
*/
|
|
10
|
-
import { setTimeout } from "node:timers/promises";
|
|
11
13
|
/**
|
|
12
14
|
* Given a callback, attempt to run it up to `attempts` times.
|
|
13
15
|
*
|
|
@@ -28,7 +30,7 @@ export async function tryWithBackoff(attempts, callback) {
|
|
|
28
30
|
}
|
|
29
31
|
// We try to avoid contention by giving a pause between attempts.
|
|
30
32
|
const delay = Math.floor(Math.random() * 1000) + 1000 * attempts;
|
|
31
|
-
await
|
|
33
|
+
await sleep(delay);
|
|
32
34
|
}
|
|
33
35
|
throw lastError;
|
|
34
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backoff.js","sourceRoot":"","sources":["../../../resources/whosonfirst/backoff.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"backoff.js","sourceRoot":"","sources":["../../../lib/resources/whosonfirst/backoff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEpC;;;;;;;;;;GAUG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAI,QAAgB,EAAE,QAAiB;IAC1E,IAAI,SAAkB,CAAA;IAEtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;QACnC,IAAI,CAAC;YACJ,MAAM,MAAM,GAAG,MAAM,QAAQ,EAAE,CAAA;YAE/B,OAAO,MAAM,CAAA;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,SAAS,GAAG,KAAK,CAAA;QAClB,CAAC;QAED,iEAAiE;QACjE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,QAAQ,CAAA;QAChE,MAAM,KAAK,CAAC,KAAK,CAAC,CAAA;IACnB,CAAC;IAED,MAAM,SAAS,CAAA;AAChB,CAAC"}
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* it is layout knowledge every reader has to carry — so it lives here once, next to the {@link WOFFeature} type the
|
|
11
11
|
* parsed record has.
|
|
12
12
|
*/
|
|
13
|
-
import type
|
|
13
|
+
import { type PathBuilderLike } from "path-ts";
|
|
14
|
+
import type { WOFFeature } from "#resources/whosonfirst/placetypes/admin";
|
|
14
15
|
/**
|
|
15
16
|
* The GitHub organization holding the country data repositories.
|
|
16
17
|
*/
|
|
@@ -26,19 +27,17 @@ export declare function wofRepoName(theme: "admin" | "postalcode" | "venue", cou
|
|
|
26
27
|
* Find a cloned repository under a repositories root, in either layout.
|
|
27
28
|
*
|
|
28
29
|
* Two are in use and both are legitimate. `gazetteer inspect sync` writes `<root>/<owner>/<name>`, which is what the
|
|
29
|
-
* admin ingest's depth-agnostic GeoJSON glob reads. The shipped postcode
|
|
30
|
-
* hand as `<root>/<name>`. A reader that knows one layout reports a repository that is present as MISSING, and every
|
|
30
|
+
* admin ingest's depth-agnostic GeoJSON glob reads. The shipped postcode extracts were built from repositories cloned
|
|
31
|
+
* by hand as `<root>/<name>`. A reader that knows one layout reports a repository that is present as MISSING, and every
|
|
31
32
|
* reader here treats missing as "no evidence" and continues — so the wrong layout is silent, not loud.
|
|
32
|
-
*
|
|
33
|
-
* Synchronous to match {@link readWOFFeature}: these readers run inside sync loops over database rows.
|
|
34
33
|
*/
|
|
35
|
-
export declare function resolveWOFRepo(reposRoot:
|
|
34
|
+
export declare function resolveWOFRepo(reposRoot: PathBuilderLike, name: string, owner?: string): Promise<string | null>;
|
|
36
35
|
/**
|
|
37
36
|
* The `data` directory of a country's repository, or `null` when the repository is not cloned.
|
|
38
37
|
*
|
|
39
38
|
* The pairing every reader needs: {@link readWOFFeature} takes roots that already point INTO `data`.
|
|
40
39
|
*/
|
|
41
|
-
export declare function resolveWOFDataDir(reposRoot:
|
|
40
|
+
export declare function resolveWOFDataDir(reposRoot: PathBuilderLike, theme: "admin" | "postalcode" | "venue", country: string): Promise<string | null>;
|
|
42
41
|
/**
|
|
43
42
|
* A WOF id → its repo-relative path segments, ending in `<id>.geojson`.
|
|
44
43
|
*
|
|
@@ -52,5 +51,5 @@ export declare function wofIDPathSegments(id: number): string[];
|
|
|
52
51
|
* `null` conflates "absent" with "unparseable" on purpose: every caller so far treats both as "no evidence for this
|
|
53
52
|
* place" and continues. A caller that needs to tell them apart should read the file itself.
|
|
54
53
|
*/
|
|
55
|
-
export declare function readWOFFeature(id: number, roots: readonly string[]): WOFFeature | null
|
|
56
|
-
//# sourceMappingURL=
|
|
54
|
+
export declare function readWOFFeature(id: number, roots: readonly string[]): Promise<WOFFeature | null>;
|
|
55
|
+
//# sourceMappingURL=extract-repo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-repo.d.ts","sourceRoot":"","sources":["../../../lib/resources/whosonfirst/extract-repo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAG3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,cAAc,qBAAqB,CAAA;AAEhD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE5F;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CACnC,SAAS,EAAE,eAAe,EAC1B,IAAI,EAAE,MAAM,EACZ,KAAK,SAAiB,GACpB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQxB;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACtC,SAAS,EAAE,eAAe,EAC1B,KAAK,EAAE,OAAO,GAAG,YAAY,GAAG,OAAO,EACvC,OAAO,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAIxB;AAQD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAWtD;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAcrG"}
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
* it is layout knowledge every reader has to carry — so it lives here once, next to the {@link WOFFeature} type the
|
|
11
11
|
* parsed record has.
|
|
12
12
|
*/
|
|
13
|
-
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
14
13
|
import { resolvePath } from "path-ts";
|
|
15
|
-
import {
|
|
14
|
+
import { isDirectory, pathExists, readLocalJSONFile } from "#fs/readers";
|
|
16
15
|
/**
|
|
17
16
|
* The GitHub organization holding the country data repositories.
|
|
18
17
|
*/
|
|
@@ -30,20 +29,14 @@ export function wofRepoName(theme, country) {
|
|
|
30
29
|
* Find a cloned repository under a repositories root, in either layout.
|
|
31
30
|
*
|
|
32
31
|
* Two are in use and both are legitimate. `gazetteer inspect sync` writes `<root>/<owner>/<name>`, which is what the
|
|
33
|
-
* admin ingest's depth-agnostic GeoJSON glob reads. The shipped postcode
|
|
34
|
-
* hand as `<root>/<name>`. A reader that knows one layout reports a repository that is present as MISSING, and every
|
|
32
|
+
* admin ingest's depth-agnostic GeoJSON glob reads. The shipped postcode extracts were built from repositories cloned
|
|
33
|
+
* by hand as `<root>/<name>`. A reader that knows one layout reports a repository that is present as MISSING, and every
|
|
35
34
|
* reader here treats missing as "no evidence" and continues — so the wrong layout is silent, not loud.
|
|
36
|
-
*
|
|
37
|
-
* Synchronous to match {@link readWOFFeature}: these readers run inside sync loops over database rows.
|
|
38
35
|
*/
|
|
39
|
-
export function resolveWOFRepo(reposRoot, name, owner = WOF_DATA_OWNER) {
|
|
36
|
+
export async function resolveWOFRepo(reposRoot, name, owner = WOF_DATA_OWNER) {
|
|
40
37
|
for (const candidate of [resolvePath(reposRoot, owner, name), resolvePath(reposRoot, name)]) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return candidate.toString();
|
|
44
|
-
}
|
|
45
|
-
catch {
|
|
46
|
-
// Absent, or unreadable — try the other layout, then answer null.
|
|
38
|
+
if (await isDirectory(candidate)) {
|
|
39
|
+
return candidate.toString();
|
|
47
40
|
}
|
|
48
41
|
}
|
|
49
42
|
return null;
|
|
@@ -53,8 +46,8 @@ export function resolveWOFRepo(reposRoot, name, owner = WOF_DATA_OWNER) {
|
|
|
53
46
|
*
|
|
54
47
|
* The pairing every reader needs: {@link readWOFFeature} takes roots that already point INTO `data`.
|
|
55
48
|
*/
|
|
56
|
-
export function resolveWOFDataDir(reposRoot, theme, country) {
|
|
57
|
-
const repo = resolveWOFRepo(reposRoot, wofRepoName(theme, country));
|
|
49
|
+
export async function resolveWOFDataDir(reposRoot, theme, country) {
|
|
50
|
+
const repo = await resolveWOFRepo(reposRoot, wofRepoName(theme, country));
|
|
58
51
|
return repo && resolvePath(repo, "data").toString();
|
|
59
52
|
}
|
|
60
53
|
/**
|
|
@@ -83,20 +76,16 @@ export function wofIDPathSegments(id) {
|
|
|
83
76
|
* `null` conflates "absent" with "unparseable" on purpose: every caller so far treats both as "no evidence for this
|
|
84
77
|
* place" and continues. A caller that needs to tell them apart should read the file itself.
|
|
85
78
|
*/
|
|
86
|
-
export function readWOFFeature(id, roots) {
|
|
79
|
+
export async function readWOFFeature(id, roots) {
|
|
87
80
|
const segments = wofIDPathSegments(id);
|
|
88
81
|
for (const root of roots) {
|
|
89
82
|
const path = resolvePath(root, ...segments);
|
|
90
|
-
if (!
|
|
83
|
+
if (!(await pathExists(path)))
|
|
91
84
|
continue;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
catch {
|
|
96
|
-
// The file vanished or turned unreadable between existsSync and the read — same "no evidence" verdict.
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
85
|
+
// Unreadable or unparseable — the file vanished between the probe and the read, or is not JSON — is the same
|
|
86
|
+
// "no evidence" verdict as absent.
|
|
87
|
+
return readLocalJSONFile(path).catch(() => null);
|
|
99
88
|
}
|
|
100
89
|
return null;
|
|
101
90
|
}
|
|
102
|
-
//# sourceMappingURL=
|
|
91
|
+
//# sourceMappingURL=extract-repo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-repo.js","sourceRoot":"","sources":["../../../lib/resources/whosonfirst/extract-repo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,WAAW,EAAwB,MAAM,SAAS,CAAA;AAE3D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAkB,CAAA;AAEhD;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,KAAuC,EAAE,OAAe;IACnF,OAAO,GAAG,cAAc,IAAI,KAAK,IAAI,OAAO,CAAC,WAAW,EAAE,EAAE,CAAA;AAC7D,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CACnC,SAA0B,EAC1B,IAAY,EACZ,KAAK,GAAG,cAAc;IAEtB,KAAK,MAAM,SAAS,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC;QAC7F,IAAI,MAAM,WAAW,CAAC,SAAS,CAAC,EAAE,CAAC;YAClC,OAAO,SAAS,CAA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C,6GAA6G;QAC7G,mCAAmC;QACnC,OAAO,iBAAiB,CAAa,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAA;IAC7D,CAAC;IAED,OAAO,IAAI,CAAA;AACZ,CAAC"}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "./sharded-repo.ts";
|
|
10
|
-
export * from "./placetypes/index.ts";
|
|
6
|
+
export * from "#resources/whosonfirst/PlacetypeDataSource";
|
|
7
|
+
export * from "#resources/whosonfirst/extract-repo";
|
|
8
|
+
export * from "#resources/whosonfirst/placetypes/index";
|
|
11
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/whosonfirst/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/resources/whosonfirst/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,4CAA4C,CAAA;AAC1D,cAAc,qCAAqC,CAAA;AACnD,cAAc,yCAAyC,CAAA"}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "./sharded-repo.js";
|
|
10
|
-
export * from "./placetypes/index.js";
|
|
6
|
+
export * from "#resources/whosonfirst/PlacetypeDataSource";
|
|
7
|
+
export * from "#resources/whosonfirst/extract-repo";
|
|
8
|
+
export * from "#resources/whosonfirst/placetypes/index";
|
|
11
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../resources/whosonfirst/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/resources/whosonfirst/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,4CAA4C,CAAA;AAC1D,cAAc,qCAAqC,CAAA;AACnD,cAAc,yCAAyC,CAAA"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
import type { PathBuilder } from "path-ts";
|
|
7
|
-
import { type PlacetypeDefinition, type PlacetypeDefinitionInit, type PlacetypeRole } from "
|
|
7
|
+
import { type PlacetypeDefinition, type PlacetypeDefinitionInit, type PlacetypeRole } from "#resources/whosonfirst/placetypes/definition";
|
|
8
8
|
/**
|
|
9
9
|
* Upstream Who's On First placetypes repository the local definitions are generated from.
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Placetype.d.ts","sourceRoot":"","sources":["../../../../resources/whosonfirst/placetypes/Placetype.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"Placetype.d.ts","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/Placetype.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAM1C,OAAO,EAEN,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAElB,MAAM,8CAA8C,CAAA;AAErD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;CAIE,CAAA;AAErC,UAAU,oBAAoB;IAC7B,SAAS,EAAE,MAAM,CAAA;IACjB,kBAAkB,EAAE,WAAW,CAAA;CAC/B;AAED,qBAAa,SAAU,YAAW,UAAU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AK,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE;IAavE;;OAEG;IACI,YAAY,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE;IAcxE;;;;OAIG;IACI,eAAe,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE;IAuB3E;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,GAAG,uBAAuB,GAAG,SAAS;IAOnF;;;;OAIG;IACH,SAAS,aAAa,UAAU,EAAE,mBAAmB;IA0E9C,QAAQ;CASf"}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import * as fs from "node:fs/promises";
|
|
7
6
|
import FastGlob from "fast-glob";
|
|
8
7
|
import { parallelMap } from "spliterator";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { readLocalTextFile } from "#fs/readers";
|
|
9
|
+
import { parseJSONStrict } from "#json";
|
|
10
|
+
import { prepareRepositoryDirectories } from "#resources/git";
|
|
11
|
+
import { normalizePlacetypeDefinition, PlacetypeRoleOrder, } from "#resources/whosonfirst/placetypes/definition";
|
|
12
12
|
/**
|
|
13
13
|
* Upstream Who's On First placetypes repository the local definitions are generated from.
|
|
14
14
|
*/
|
|
@@ -54,7 +54,7 @@ export class Placetype {
|
|
|
54
54
|
absolute: true,
|
|
55
55
|
});
|
|
56
56
|
const batchIterator = parallelMap(definitionPaths, async (definitionPath) => {
|
|
57
|
-
const definitionContent = await
|
|
57
|
+
const definitionContent = await readLocalTextFile(String(definitionPath));
|
|
58
58
|
const definition = parseJSONStrict(definitionContent);
|
|
59
59
|
Placetype.register(definition);
|
|
60
60
|
return definition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Placetype.js","sourceRoot":"","sources":["../../../../resources/whosonfirst/placetypes/Placetype.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"Placetype.js","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/Placetype.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,QAAQ,MAAM,WAAW,CAAA;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,4BAA4B,EAAyB,MAAM,gBAAgB,CAAA;AACpF,OAAO,EACN,4BAA4B,EAI5B,kBAAkB,GAClB,MAAM,8CAA8C,CAAA;AAErD;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,GAAG,EAAE,2DAA2D;IAChE,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,wBAAwB;CACM,CAAA;AAOrC,MAAM,OAAO,SAAS;IACd,CAAC,MAAM,CAAC,OAAO,CAAC;QACtB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAA;QACxB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAA;QACpB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAA;QACrB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAA;IACtB,CAAC;IAED,uBAAuB;IAEvB;;;;OAIG;IACH,MAAM,CAAC,KAAK,GAAG,IAAI,GAAG,EAAqB,CAAA;IAE3C;;OAEG;IACH,MAAM,CAAC,OAAO,GAAG,IAAI,GAAG,EAAqB,CAAA;IAE7C;;OAEG;IACH,MAAM,CAAC,qBAAqB,GAAG,IAAI,GAAG,EAA0B,CAAA;IAEhE;;OAEG;IACH,MAAM,CAAC,uBAAuB,GAAG,I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SAAS,CAAC,qBAAqB,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;QAEpE,KAAK,MAAM,KAAK,IAAI,OAAO,IAAI,EAAE,EAAE,CAAC;YACnC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACxB,CAAC;IACF,CAAC;IAED,YAAY;IAEZ,iBAAiB;IAEV,QAAQ;QACd,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,WAAW,CAAA;QAE3C,OAAO,aAAa,IAAI,KAAK,EAAE,KAAK,IAAI,GAAG,CAAA;IAC5C,CAAC;IAEM,CAAC,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAChD,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAA;IACvB,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { GeoFeature, GeometryLiteral } from "@mailwoman/spatial";
|
|
7
7
|
import { type Alpha2LanguageCode, type Alpha3bLanguageCode } from "#resources/languages";
|
|
8
|
-
import type { WhosOnFirstPlacetype } from "
|
|
8
|
+
import type { WhosOnFirstPlacetype } from "#resources/whosonfirst/placetypes/definition";
|
|
9
9
|
export interface WOFBaseProperties {
|
|
10
10
|
"wof:id": number;
|
|
11
11
|
"wof:name": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../../resources/whosonfirst/placetypes/admin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAErE,OAAO,EACN,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EAIxB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/admin.ts"],"names":[],"mappings":"AAAA;;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M;;;EAM/C;AAED,wBAAgB,kBAAkB,CAAC,EAClC,QAAQ,EAAE,EAAE,EACZ,UAAU,EAAE,IAAI,EAChB,SAAS,EAAE,OAAO,EAClB,UAAU,EAAE,QAAQ,EACpB,eAAe,EAAE,SAAS,EAC1B,eAAe,EAAE,SAAS,EAC1B,mBAAmB,EAAE,aAAa,EAClC,gBAAgB,EAAE,UAAU,EAC5B,aAAa,EAAE,OAAO,EACtB,kBAAkB,EAAE,YAAY,EAChC,eAAe,EAAE,UAAU,EAC3B,gBAAgB,EAAE,aAAa,EAC/B,kBAAkB,EAAE,YAAY,EAChC,eAAe,EAAE,QAAQ,EACzB,gBAAgB,EAAE,SAAS,EAC3B,eAAe,EAAE,YAAY,EAC7B,eAAe,EAAE,WAAW,EAC5B,iBAAiB,EAAE,cAAc,EACjC,gBAAgB,EAAE,aAAa,EAC/B,GAAG,KAAK,EACR,EAAE,aAAa,GAAG,kBAAkB,CAsDpC;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAUrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.js","sourceRoot":"","sources":["../../../../resources/whosonfirst/placetypes/admin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAGN,eAAe,EACf,oBAAoB,EACpB,qBAAqB,GACrB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"admin.js","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/admin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAGN,eAAe,EACf,oBAAoB,EACpB,qBAAqB,GACrB,MAAM,sBAAsB,CAAA;AA2C7B;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,CAAU,CAAA;AAqC5F,MAAM,WAAW,GAAG,I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AG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/definition.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,oDAAqD,CAAA;AAEhF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3D;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAA6E,MAAM,CACjH,aAAa,EACb,MAAM,CACN,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAC7B,SAAS,GACT,QAAQ,GACR,SAAS,GACT,UAAU,GACV,QAAQ,GACR,WAAW,GACX,WAAW,GACX,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,WAAW,GACX,cAAc,GACd,cAAc,GACd,YAAY,GACZ,UAAU,GACV,aAAa,GACb,WAAW,GACX,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,WAAW,GACX,QAAQ,GACR,eAAe,GACf,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,CAAA;AAET,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;AAE5E,MAAM,WAAW,mBAAmB;IACnC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,KAAK,EAAE,2BAA2B,CAAA;IAElC;;OAEG;IACH,IAAI,EAAE,aAAa,CAAA;IAEnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CACjB;AAED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C,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;QAEnF,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAA;IACxC,CAAC;IAED,OAAO,IAAI,CAAA;AACZ,CAAC"}
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/definition.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAU,EAAE,QAAQ,EAAE,iBAAiB,CAAU,CAAA;AAOhF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAGtG,CAAA;AA6ED;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAA;AAa/B;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAC3C,QAAuD;IAEvD,MAAM,IAAI,GAAG,EAAyB,CAAA;IAEtC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACrD,MAAM,aAAa,GAAG,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;QAEnF,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAA;IACxC,CAAC;IAED,OAAO,IAAI,CAAA;AACZ,CAAC"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import type { PlacetypeRole } from "
|
|
7
|
-
import type { Placetype } from "
|
|
6
|
+
import type { PlacetypeRole } from "#resources/whosonfirst/placetypes/definition";
|
|
7
|
+
import type { Placetype } from "#resources/whosonfirst/placetypes/Placetype";
|
|
8
8
|
/**
|
|
9
9
|
* A single node in a placetype graph. One entry per unique placetype name.
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../resources/whosonfirst/placetypes/graph.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/graph.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAA;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,aAAa,CAAA;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,KAAK,EAAE,kBAAkB,EAAE,CAAA;CAC3B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,GAAG,IAAI,GAAG,cAAc,CAuCnH"}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../../../../resources/whosonfirst/placetypes/graph.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqCH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,CAAC,SAAoB,EAAE,KAAsC;IAClG,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAE7C,MAAM,KAAK,GAAG,IAAI,GAAG,EAA8B,CAAA;IACnD,MAAM,KAAK,GAAyB,EAAE,CAAA;IACtC,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU,CAAA;IACnC,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAA;IAEhC,MAAM,OAAO,GAAG,CAAC,CAAY,EAAQ,EAAE;QACtC,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;YAAE,OAAM;QAC7B,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;IAC5D,CAAC,CAAA;IAED,MAAM,IAAI,GAAG,CAAC,IAAe,EAAQ,EAAE;QACtC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAErB,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;YAChD,OAAO,CAAC,KAAK,CAAC,CAAA;YAEd,MAAM,OAAO,GAAG,GAAG,IAAI,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/graph.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqCH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,C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C,KAAK,CAAC,IAAI,CAAC;gBAAE,SAAQ;YACpC,IAAI,CAAC,KAAK,CAAC,CAAA;QACZ,CAAC;IACF,CAAC,CAAA;IAED,OAAO,CAAC,SAAS,CAAC,CAAA;IAClB,IAAI,CAAC,SAAS,CAAC,CAAA;IAEf,OAAO;QACN,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QACjC,KAAK;KACL,CAAA;AACF,CAAC"}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "
|
|
6
|
+
export * from "#resources/whosonfirst/placetypes/admin";
|
|
7
|
+
export * from "#resources/whosonfirst/placetypes/definition";
|
|
8
|
+
export * from "#resources/whosonfirst/placetypes/graph";
|
|
9
|
+
export * from "#resources/whosonfirst/placetypes/mermaid";
|
|
10
|
+
export * from "#resources/whosonfirst/placetypes/Placetype";
|
|
11
|
+
export * from "#resources/whosonfirst/placetypes/specificity";
|
|
12
|
+
export * from "#resources/whosonfirst/placetypes/tree";
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../resources/whosonfirst/placetypes/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,yCAAyC,CAAA;AACvD,cAAc,8CAA8C,CAAA;AAC5D,cAAc,yCAAyC,CAAA;AACvD,cAAc,2CAA2C,CAAA;AACzD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,wCAAwC,CAAA"}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
12
|
-
export * from "
|
|
6
|
+
export * from "#resources/whosonfirst/placetypes/admin";
|
|
7
|
+
export * from "#resources/whosonfirst/placetypes/definition";
|
|
8
|
+
export * from "#resources/whosonfirst/placetypes/graph";
|
|
9
|
+
export * from "#resources/whosonfirst/placetypes/mermaid";
|
|
10
|
+
export * from "#resources/whosonfirst/placetypes/Placetype";
|
|
11
|
+
export * from "#resources/whosonfirst/placetypes/specificity";
|
|
12
|
+
export * from "#resources/whosonfirst/placetypes/tree";
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../resources/whosonfirst/placetypes/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,yCAAyC,CAAA;AACvD,cAAc,8CAA8C,CAAA;AAC5D,cAAc,yCAAyC,CAAA;AACvD,cAAc,2CAA2C,CAAA;AACzD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,wCAAwC,CAAA"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import { type PlacetypeRole } from "
|
|
7
|
-
import type { Placetype } from "
|
|
6
|
+
import { type PlacetypeRole } from "#resources/whosonfirst/placetypes/definition";
|
|
7
|
+
import type { Placetype } from "#resources/whosonfirst/placetypes/Placetype";
|
|
8
8
|
/**
|
|
9
9
|
* Hand-tuned default colors for placetype roles. Used when no `interpolator` is passed to
|
|
10
10
|
* {@linkcode generateMermaidMarkup}. Each entry pairs a fill with a darker stroke and a text color chosen for contrast
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mermaid.d.ts","sourceRoot":"","sources":["../../../../resources/whosonfirst/placetypes/mermaid.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"mermaid.d.ts","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/mermaid.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,KAAK,aAAa,EAAkB,MAAM,8CAA8C,CAAA;AACjG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAc5E;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;CAImB,CAAA;AAclD;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;AAE5D,MAAM,WAAW,4BAA4B;IAC5C;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;IAC/B;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,wBAAwB,CAAA;CAC3C;AA2CD;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,GAAE,4BAAiC,GAAG,MAAM,CAgD9G"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { rgb } from "d3-color";
|
|
7
7
|
import { interpolateViridis } from "d3-scale-chromatic";
|
|
8
|
-
import { PlacetypeRoles } from "
|
|
8
|
+
import { PlacetypeRoles } from "#resources/whosonfirst/placetypes/definition";
|
|
9
9
|
/**
|
|
10
10
|
* Mermaid's `classDef` parser uses commas to separate style properties, so an `rgb(r, g, b)` value (which
|
|
11
11
|
* d3-scale-chromatic emits for several interpolators, e.g. `interpolateRainbow`, `interpolateTurbo`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mermaid.js","sourceRoot":"","sources":["../../../../resources/whosonfirst/placetypes/mermaid.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,OAAO,EAAsB,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"mermaid.js","sourceRoot":"","sources":["../../../../lib/resources/whosonfirst/placetypes/mermaid.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,OAAO,EAAsB,cAAc,EAAE,MAAM,8CAA8C,CAAA;AAGjG;;;;;GAKG;AACH,SAAS,cAAc,CAAC,KAAa;IACpC,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,CAAA;IAEzB,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,CAAA;AAC3D,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,MAAM,EAAE,SAAS;IACjB,eAAe,EAAE,SAAS;IAC1B,QAAQ,EAAE,SAAS;CAC8B,CAAA;AAElD,MAAM,mBAAmB,GAAG;IAC3B,MAAM,EAAE,SAAS;IACjB,eAAe,EAAE,SAAS;IAC1B,QAAQ,EAAE,S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