@mailwoman/core 11.2.0 → 11.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 +2 -2
- package/lib/api/ckan.ts +1 -1
- package/lib/api/disk-storage.ts +2 -2
- package/lib/api/ogc.ts +1 -1
- package/lib/api/retry.ts +7 -2
- package/lib/api/test/transport.ts +1 -1
- package/lib/{binary-frame.ts → asset/binary-frame.ts} +1 -1
- package/lib/async/abort.ts +100 -0
- package/lib/{memoize.ts → async/memoize.ts} +2 -2
- package/lib/{promises.ts → async/promises.ts} +1 -1
- package/lib/cloudflare/tokens.ts +1 -1
- package/lib/cloudflare/wrangler.ts +3 -3
- package/lib/crypto/digest.ts +1 -1
- package/lib/crypto/ed25519.ts +8 -0
- package/lib/crypto/node.ts +1 -1
- package/lib/data-root.ts +16 -3
- package/lib/decoder/containment.ts +4 -1
- package/lib/decoder/serialize/outline.ts +19 -6
- package/lib/decoder/types.ts +9 -1
- package/lib/env/schema.ts +5 -0
- package/lib/fs/deflate64.ts +1 -1
- package/lib/fs/lock.ts +183 -25
- package/lib/fs/readers.ts +1 -1
- package/lib/fs/writers.ts +1 -1
- package/lib/geocode/result.ts +50 -6
- package/lib/html/text.ts +2 -2
- package/lib/index.ts +0 -1
- package/lib/layers/artifact.ts +2 -2
- package/lib/layers/coverage.ts +1 -1
- package/lib/layers/manifest.ts +94 -2
- package/lib/layers/provenance.ts +246 -0
- package/lib/layers/publication.ts +4 -3
- package/lib/layers/selection.ts +2 -2
- package/lib/license/branch.ts +66 -0
- package/lib/license/configured.ts +4 -2
- package/lib/license/declaration.ts +1 -1
- package/lib/license/key/file.ts +1 -1
- package/lib/license/key.ts +148 -201
- package/lib/license/provenance.ts +193 -0
- package/lib/license/register.ts +7 -78
- package/lib/license/stamp.ts +8 -2
- package/lib/license/text-url.ts +55 -0
- package/lib/license/training.ts +67 -0
- package/lib/license.ts +7 -6
- package/lib/locale/registry.ts +1 -1
- package/lib/locale/zh-cn-units.ts +1 -1
- package/lib/module/workspace.ts +1 -1
- package/lib/{routing.ts → network/routing.ts} +1 -1
- package/lib/pipeline/result.ts +6 -25
- package/lib/pipeline/runtime-pipeline.ts +129 -144
- package/lib/pipeline/stage.ts +290 -0
- package/lib/pipeline/types.ts +33 -14
- package/lib/pipeline.ts +14 -2
- package/lib/{git.ts → repo/git.ts} +21 -1
- package/lib/{release-config.ts → repo/release-config.ts} +8 -0
- package/lib/{spdx-header.ts → repo/spdx-header.ts} +8 -0
- package/lib/{workspaces.ts → repo/workspaces.ts} +1 -1
- package/lib/resolver/lookup-types.ts +1 -1
- package/lib/resolver/region-database-provider.ts +33 -0
- package/lib/resolver/synthetic-id-ranges.ts +19 -9
- package/lib/resolver/types.ts +220 -7
- package/lib/resolver.ts +14 -1
- package/lib/state-machine.ts +1 -1
- package/lib/strings/python-json.ts +3 -2
- package/lib/utils/chunk-process.ts +2 -2
- package/lib/utils/geodatabase-archive.ts +1 -1
- package/lib/utils/time.ts +136 -12
- package/lib/utils.ts +4 -4
- package/out/api/ckan.js +1 -1
- package/out/api/ckan.js.map +1 -1
- package/out/api/disk-storage.d.ts.map +1 -1
- package/out/api/disk-storage.js +2 -2
- package/out/api/disk-storage.js.map +1 -1
- package/out/api/ogc.js +1 -1
- package/out/api/ogc.js.map +1 -1
- package/out/api/retry.d.ts.map +1 -1
- package/out/api/retry.js +6 -2
- package/out/api/retry.js.map +1 -1
- package/out/api/test/transport.js +1 -1
- package/out/api/test/transport.js.map +1 -1
- package/out/asset/binary-frame.d.ts.map +1 -0
- package/out/{binary-frame.js → asset/binary-frame.js} +1 -1
- package/out/asset/binary-frame.js.map +1 -0
- package/out/asset/load-ledger.d.ts.map +1 -0
- package/out/asset/load-ledger.js.map +1 -0
- package/out/asset/overture-pins.d.ts.map +1 -0
- package/out/asset/overture-pins.js.map +1 -0
- package/out/asset/postcode-prefix-files.d.ts.map +1 -0
- package/out/asset/postcode-prefix-files.js.map +1 -0
- package/out/async/abort.d.ts +57 -0
- package/out/async/abort.d.ts.map +1 -0
- package/out/async/abort.js +89 -0
- package/out/async/abort.js.map +1 -0
- package/out/async/memoize.d.ts.map +1 -0
- package/out/{memoize.js → async/memoize.js} +2 -2
- package/out/async/memoize.js.map +1 -0
- package/out/{promises.d.ts → async/promises.d.ts} +1 -1
- package/out/async/promises.d.ts.map +1 -0
- package/out/{promises.js → async/promises.js} +1 -1
- package/out/async/promises.js.map +1 -0
- package/out/cloudflare/tokens.js +1 -1
- package/out/cloudflare/tokens.js.map +1 -1
- package/out/cloudflare/wrangler.js +3 -3
- package/out/cloudflare/wrangler.js.map +1 -1
- package/out/crypto/digest.d.ts +1 -1
- package/out/crypto/digest.js +1 -1
- package/out/crypto/ed25519.d.ts +7 -0
- package/out/crypto/ed25519.d.ts.map +1 -1
- package/out/crypto/ed25519.js +7 -0
- package/out/crypto/ed25519.js.map +1 -1
- package/out/crypto/hash.d.ts.map +1 -0
- package/out/crypto/hash.js.map +1 -0
- package/out/crypto/node.js +1 -1
- package/out/crypto/node.js.map +1 -1
- package/out/data-root.d.ts +11 -3
- package/out/data-root.d.ts.map +1 -1
- package/out/data-root.js +14 -3
- package/out/data-root.js.map +1 -1
- package/out/decoder/containment.d.ts.map +1 -1
- package/out/decoder/containment.js +1 -1
- package/out/decoder/containment.js.map +1 -1
- package/out/decoder/serialize/outline.d.ts +9 -0
- package/out/decoder/serialize/outline.d.ts.map +1 -1
- package/out/decoder/serialize/outline.js +16 -6
- package/out/decoder/serialize/outline.js.map +1 -1
- package/out/decoder/types.d.ts +8 -0
- 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/env/schema.d.ts +1 -0
- package/out/env/schema.d.ts.map +1 -1
- package/out/env/schema.js +4 -0
- package/out/env/schema.js.map +1 -1
- package/out/env.d.ts +1 -0
- package/out/env.d.ts.map +1 -1
- package/out/fs/deflate64.js +1 -1
- package/out/fs/deflate64.js.map +1 -1
- package/out/fs/lock.d.ts +73 -4
- package/out/fs/lock.d.ts.map +1 -1
- package/out/fs/lock.js +96 -19
- package/out/fs/lock.js.map +1 -1
- package/out/fs/readers.js +1 -1
- package/out/fs/readers.js.map +1 -1
- package/out/fs/writers.d.ts +1 -1
- package/out/fs/writers.d.ts.map +1 -1
- package/out/fs/writers.js +1 -1
- package/out/fs/writers.js.map +1 -1
- package/out/geocode/result.d.ts +25 -1
- package/out/geocode/result.d.ts.map +1 -1
- package/out/geocode/result.js +49 -6
- package/out/geocode/result.js.map +1 -1
- package/out/html/text.js +2 -2
- package/out/html/trust-policies.d.ts.map +1 -0
- package/out/html/trust-policies.js.map +1 -0
- package/out/index.d.ts +0 -1
- package/out/index.d.ts.map +1 -1
- package/out/index.js +0 -1
- package/out/index.js.map +1 -1
- package/out/layers/artifact.js +2 -2
- package/out/layers/artifact.js.map +1 -1
- package/out/layers/coverage.d.ts.map +1 -1
- package/out/layers/coverage.js +1 -1
- package/out/layers/coverage.js.map +1 -1
- package/out/layers/manifest.d.ts +53 -0
- package/out/layers/manifest.d.ts.map +1 -1
- package/out/layers/manifest.js +68 -2
- package/out/layers/manifest.js.map +1 -1
- package/out/layers/provenance.d.ts +127 -0
- package/out/layers/provenance.d.ts.map +1 -0
- package/out/layers/provenance.js +122 -0
- package/out/layers/provenance.js.map +1 -0
- package/out/layers/publication.d.ts.map +1 -1
- package/out/layers/publication.js +3 -3
- package/out/layers/publication.js.map +1 -1
- package/out/layers/selection.d.ts.map +1 -1
- package/out/layers/selection.js +2 -2
- package/out/layers/selection.js.map +1 -1
- package/out/license/branch.d.ts +33 -0
- package/out/license/branch.d.ts.map +1 -0
- package/out/license/branch.js +52 -0
- package/out/license/branch.js.map +1 -0
- package/out/license/configured.d.ts +1 -1
- package/out/license/configured.d.ts.map +1 -1
- package/out/license/configured.js +1 -9
- package/out/license/configured.js.map +1 -1
- package/out/license/declaration.d.ts +1 -1
- package/out/license/declaration.d.ts.map +1 -1
- package/out/license/key/file.js +1 -1
- package/out/license/key/file.js.map +1 -1
- package/out/license/key.d.ts +27 -115
- package/out/license/key.d.ts.map +1 -1
- package/out/license/key.js +98 -164
- package/out/license/key.js.map +1 -1
- package/out/license/provenance.d.ts +47 -0
- package/out/license/provenance.d.ts.map +1 -0
- package/out/license/provenance.js +134 -0
- package/out/license/provenance.js.map +1 -0
- package/out/license/register.d.ts +6 -47
- package/out/license/register.d.ts.map +1 -1
- package/out/license/register.js +7 -58
- package/out/license/register.js.map +1 -1
- package/out/license/stamp.d.ts +7 -1
- 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/license/text-url.d.ts +9 -0
- package/out/license/text-url.d.ts.map +1 -0
- package/out/license/text-url.js +49 -0
- package/out/license/text-url.js.map +1 -0
- package/out/license/training.d.ts +29 -0
- package/out/license/training.d.ts.map +1 -0
- package/out/license/training.js +52 -0
- package/out/license/training.js.map +1 -0
- package/out/license.d.ts +7 -6
- package/out/license.d.ts.map +1 -1
- package/out/license.js +7 -6
- package/out/license.js.map +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/locale/zh-cn-units.js +1 -1
- package/out/locale/zh-cn-units.js.map +1 -1
- package/out/math/numeric.d.ts.map +1 -0
- package/out/math/numeric.js.map +1 -0
- package/out/math/random.d.ts.map +1 -0
- package/out/math/random.js.map +1 -0
- package/out/math/stats.d.ts.map +1 -0
- package/out/math/stats.js.map +1 -0
- package/out/module/workspace.js +1 -1
- package/out/module/workspace.js.map +1 -1
- package/out/network/routing.d.ts.map +1 -0
- package/out/{routing.js → network/routing.js} +1 -1
- package/out/network/routing.js.map +1 -0
- package/out/pipeline/result.d.ts +7 -24
- package/out/pipeline/result.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.d.ts +7 -2
- package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.js +56 -103
- package/out/pipeline/runtime-pipeline.js.map +1 -1
- package/out/pipeline/stage.d.ts +180 -0
- package/out/pipeline/stage.d.ts.map +1 -0
- package/out/pipeline/stage.js +130 -0
- package/out/pipeline/stage.js.map +1 -0
- package/out/pipeline/types.d.ts +31 -12
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js +0 -8
- package/out/pipeline/types.js.map +1 -1
- package/out/pipeline.d.ts +5 -3
- package/out/pipeline.d.ts.map +1 -1
- package/out/pipeline.js +2 -1
- package/out/pipeline.js.map +1 -1
- package/out/{git.d.ts → repo/git.d.ts} +10 -1
- package/out/repo/git.d.ts.map +1 -0
- package/out/{git.js → repo/git.js} +14 -1
- package/out/repo/git.js.map +1 -0
- package/out/{release-config.d.ts → repo/release-config.d.ts} +8 -0
- package/out/repo/release-config.d.ts.map +1 -0
- package/out/repo/release-config.js.map +1 -0
- package/out/repo/scope-config.d.ts.map +1 -0
- package/out/repo/scope-config.js.map +1 -0
- package/out/repo/spdx-header.d.ts.map +1 -0
- package/out/{spdx-header.js → repo/spdx-header.js} +7 -0
- package/out/repo/spdx-header.js.map +1 -0
- package/out/repo/vale.d.ts.map +1 -0
- package/out/repo/vale.js.map +1 -0
- package/out/repo/workspaces.d.ts.map +1 -0
- package/out/{workspaces.js → repo/workspaces.js} +1 -1
- package/out/repo/workspaces.js.map +1 -0
- package/out/resolver/lookup-types.d.ts +1 -1
- package/out/resolver/region-database-provider.d.ts +30 -0
- package/out/resolver/region-database-provider.d.ts.map +1 -1
- package/out/resolver/synthetic-id-ranges.d.ts +15 -8
- package/out/resolver/synthetic-id-ranges.d.ts.map +1 -1
- package/out/resolver/synthetic-id-ranges.js +18 -9
- package/out/resolver/synthetic-id-ranges.js.map +1 -1
- package/out/resolver/types.d.ts +192 -8
- package/out/resolver/types.d.ts.map +1 -1
- package/out/resolver/types.js +56 -0
- package/out/resolver/types.js.map +1 -1
- package/out/resolver.d.ts +3 -3
- package/out/resolver.d.ts.map +1 -1
- package/out/resolver.js +1 -1
- package/out/resolver.js.map +1 -1
- package/out/scripting/process.d.ts.map +1 -0
- package/out/scripting/process.js.map +1 -0
- package/out/scripting/workers.d.ts.map +1 -0
- package/out/scripting/workers.js.map +1 -0
- package/out/state-machine.d.ts +1 -1
- package/out/strings/python-json.d.ts +2 -1
- package/out/strings/python-json.d.ts.map +1 -1
- package/out/strings/python-json.js +1 -1
- package/out/strings/python-json.js.map +1 -1
- package/out/tools/build-deflate64-wasm.run.js +2 -2
- package/out/tools/build-deflate64-wasm.run.js.map +1 -1
- package/out/tools/coarse-placer/build/dataset.js +1 -1
- package/out/tools/coarse-placer/build/dataset.js.map +1 -1
- package/out/tools/coarse-placer/build/outlier/exposure.js +1 -1
- package/out/tools/coarse-placer/build/outlier/exposure.js.map +1 -1
- package/out/tools/coarse-placer/build/outlier/latin.d.ts.map +1 -1
- package/out/tools/coarse-placer/build/outlier/latin.js +5 -1
- package/out/tools/coarse-placer/build/outlier/latin.js.map +1 -1
- package/out/tools/coarse-placer/country-sets.d.ts +2 -2
- package/out/tools/coarse-placer/country-sets.js +2 -2
- package/out/tools/coarse-placer/outlier-rows.js +2 -2
- package/out/tools/coarse-placer/outlier-rows.js.map +1 -1
- package/out/tools/coarse-placer/train.js +1 -1
- package/out/tools/coarse-placer/train.js.map +1 -1
- package/out/tools/generate-language-types.js +2 -2
- package/out/tools/generate-language-types.js.map +1 -1
- package/out/tools/license/product-fixtures.run.d.ts +2 -0
- package/out/tools/license/product-fixtures.run.d.ts.map +1 -0
- package/out/tools/license/product-fixtures.run.js +350 -0
- package/out/tools/license/product-fixtures.run.js.map +1 -0
- package/out/utils/chunk-process.js +2 -2
- package/out/utils/chunk-process.js.map +1 -1
- package/out/utils/geodatabase-archive.js +1 -1
- package/out/utils/geodatabase-archive.js.map +1 -1
- package/out/utils/time.d.ts +15 -4
- package/out/utils/time.d.ts.map +1 -1
- package/out/utils/time.js +114 -12
- package/out/utils/time.js.map +1 -1
- package/out/utils.d.ts +4 -4
- package/out/utils.d.ts.map +1 -1
- package/out/utils.js +4 -4
- package/out/utils.js.map +1 -1
- package/out/values/identical.d.ts.map +1 -0
- package/out/values/identical.js.map +1 -0
- package/out/values/json.d.ts.map +1 -0
- package/out/values/json.js.map +1 -0
- package/out/values/objects.d.ts.map +1 -0
- package/out/values/objects.js.map +1 -0
- package/package.json +278 -243
- package/tools/build-deflate64-wasm.run.ts +2 -2
- package/tools/coarse-placer/build/dataset.ts +1 -1
- package/tools/coarse-placer/build/outlier/exposure.ts +1 -1
- package/tools/coarse-placer/build/outlier/latin.ts +5 -1
- package/tools/coarse-placer/country-sets.ts +2 -2
- package/tools/coarse-placer/outlier-rows.ts +2 -2
- package/tools/coarse-placer/train.ts +1 -1
- package/tools/generate-language-types.ts +2 -2
- package/tools/license/product-fixtures.run.ts +449 -0
- package/lib/collections.ts +0 -5
- package/lib/license/decision.ts +0 -329
- package/lib/license/obligations.ts +0 -256
- package/lib/license/record.ts +0 -277
- package/lib/scripting/ingest-chunk-script.ts +0 -87
- package/out/binary-frame.d.ts.map +0 -1
- package/out/binary-frame.js.map +0 -1
- package/out/collections.d.ts +0 -2
- package/out/collections.d.ts.map +0 -1
- package/out/collections.js +0 -5
- package/out/collections.js.map +0 -1
- package/out/git.d.ts.map +0 -1
- package/out/git.js.map +0 -1
- package/out/hash.d.ts.map +0 -1
- package/out/hash.js.map +0 -1
- package/out/identical.d.ts.map +0 -1
- package/out/identical.js.map +0 -1
- package/out/json.d.ts.map +0 -1
- package/out/json.js.map +0 -1
- package/out/license/decision.d.ts +0 -179
- package/out/license/decision.d.ts.map +0 -1
- package/out/license/decision.js +0 -169
- package/out/license/decision.js.map +0 -1
- package/out/license/obligations.d.ts +0 -102
- package/out/license/obligations.d.ts.map +0 -1
- package/out/license/obligations.js +0 -188
- package/out/license/obligations.js.map +0 -1
- package/out/license/record.d.ts +0 -136
- package/out/license/record.d.ts.map +0 -1
- package/out/license/record.js +0 -222
- package/out/license/record.js.map +0 -1
- package/out/load-ledger.d.ts.map +0 -1
- package/out/load-ledger.js.map +0 -1
- package/out/memoize.d.ts.map +0 -1
- package/out/memoize.js.map +0 -1
- package/out/numeric.d.ts.map +0 -1
- package/out/numeric.js.map +0 -1
- package/out/objects.d.ts.map +0 -1
- package/out/objects.js.map +0 -1
- package/out/overture-pins.d.ts.map +0 -1
- package/out/overture-pins.js.map +0 -1
- package/out/postcode-prefix-files.d.ts.map +0 -1
- package/out/postcode-prefix-files.js.map +0 -1
- package/out/process.d.ts.map +0 -1
- package/out/process.js.map +0 -1
- package/out/promises.d.ts.map +0 -1
- package/out/promises.js.map +0 -1
- package/out/random.d.ts.map +0 -1
- package/out/random.js.map +0 -1
- package/out/release-config.d.ts.map +0 -1
- package/out/release-config.js.map +0 -1
- package/out/routing.d.ts.map +0 -1
- package/out/routing.js.map +0 -1
- package/out/scope-config.d.ts.map +0 -1
- package/out/scope-config.js.map +0 -1
- package/out/scripting/ingest-chunk-script.d.ts +0 -58
- package/out/scripting/ingest-chunk-script.d.ts.map +0 -1
- package/out/scripting/ingest-chunk-script.js +0 -47
- package/out/scripting/ingest-chunk-script.js.map +0 -1
- package/out/spdx-header.d.ts.map +0 -1
- package/out/spdx-header.js.map +0 -1
- package/out/stats.d.ts.map +0 -1
- package/out/stats.js.map +0 -1
- package/out/trust-policies.d.ts.map +0 -1
- package/out/trust-policies.js.map +0 -1
- package/out/vale.d.ts.map +0 -1
- package/out/vale.js.map +0 -1
- package/out/workers.d.ts.map +0 -1
- package/out/workers.js.map +0 -1
- package/out/workspaces.d.ts.map +0 -1
- package/out/workspaces.js.map +0 -1
- /package/lib/{load-ledger.ts → asset/load-ledger.ts} +0 -0
- /package/lib/{overture-pins.ts → asset/overture-pins.ts} +0 -0
- /package/lib/{postcode-prefix-files.ts → asset/postcode-prefix-files.ts} +0 -0
- /package/lib/{hash.ts → crypto/hash.ts} +0 -0
- /package/lib/{trust-policies.ts → html/trust-policies.ts} +0 -0
- /package/lib/{numeric.ts → math/numeric.ts} +0 -0
- /package/lib/{random.ts → math/random.ts} +0 -0
- /package/lib/{stats.ts → math/stats.ts} +0 -0
- /package/lib/{scope-config.ts → repo/scope-config.ts} +0 -0
- /package/lib/{vale.ts → repo/vale.ts} +0 -0
- /package/lib/{process.ts → scripting/process.ts} +0 -0
- /package/lib/{workers.ts → scripting/workers.ts} +0 -0
- /package/lib/{identical.ts → values/identical.ts} +0 -0
- /package/lib/{json.ts → values/json.ts} +0 -0
- /package/lib/{objects.ts → values/objects.ts} +0 -0
- /package/out/{binary-frame.d.ts → asset/binary-frame.d.ts} +0 -0
- /package/out/{load-ledger.d.ts → asset/load-ledger.d.ts} +0 -0
- /package/out/{load-ledger.js → asset/load-ledger.js} +0 -0
- /package/out/{overture-pins.d.ts → asset/overture-pins.d.ts} +0 -0
- /package/out/{overture-pins.js → asset/overture-pins.js} +0 -0
- /package/out/{postcode-prefix-files.d.ts → asset/postcode-prefix-files.d.ts} +0 -0
- /package/out/{postcode-prefix-files.js → asset/postcode-prefix-files.js} +0 -0
- /package/out/{memoize.d.ts → async/memoize.d.ts} +0 -0
- /package/out/{hash.d.ts → crypto/hash.d.ts} +0 -0
- /package/out/{hash.js → crypto/hash.js} +0 -0
- /package/out/{trust-policies.d.ts → html/trust-policies.d.ts} +0 -0
- /package/out/{trust-policies.js → html/trust-policies.js} +0 -0
- /package/out/{numeric.d.ts → math/numeric.d.ts} +0 -0
- /package/out/{numeric.js → math/numeric.js} +0 -0
- /package/out/{random.d.ts → math/random.d.ts} +0 -0
- /package/out/{random.js → math/random.js} +0 -0
- /package/out/{stats.d.ts → math/stats.d.ts} +0 -0
- /package/out/{stats.js → math/stats.js} +0 -0
- /package/out/{routing.d.ts → network/routing.d.ts} +0 -0
- /package/out/{release-config.js → repo/release-config.js} +0 -0
- /package/out/{scope-config.d.ts → repo/scope-config.d.ts} +0 -0
- /package/out/{scope-config.js → repo/scope-config.js} +0 -0
- /package/out/{spdx-header.d.ts → repo/spdx-header.d.ts} +0 -0
- /package/out/{vale.d.ts → repo/vale.d.ts} +0 -0
- /package/out/{vale.js → repo/vale.js} +0 -0
- /package/out/{workspaces.d.ts → repo/workspaces.d.ts} +0 -0
- /package/out/{process.d.ts → scripting/process.d.ts} +0 -0
- /package/out/{process.js → scripting/process.js} +0 -0
- /package/out/{workers.d.ts → scripting/workers.d.ts} +0 -0
- /package/out/{workers.js → scripting/workers.js} +0 -0
- /package/out/{identical.d.ts → values/identical.d.ts} +0 -0
- /package/out/{identical.js → values/identical.js} +0 -0
- /package/out/{json.d.ts → values/json.d.ts} +0 -0
- /package/out/{json.js → values/json.js} +0 -0
- /package/out/{objects.d.ts → values/objects.d.ts} +0 -0
- /package/out/{objects.js → values/objects.js} +0 -0
|
@@ -44,5 +44,35 @@ export interface RegionDatabaseProvider<TKey extends string = string, TDatabases
|
|
|
44
44
|
* A region with no database on disk yields a bundle with no members.
|
|
45
45
|
*/
|
|
46
46
|
for(key: TKey): TDatabases;
|
|
47
|
+
/**
|
|
48
|
+
* The database files `for(key)` reads, one per tier, and where a user obtains
|
|
49
|
+
* the sources their manifests record.
|
|
50
|
+
*
|
|
51
|
+
* A caller reads each file's `layer_manifest` to state the region's terms and sources.
|
|
52
|
+
* A region with no database on disk yields an empty array.
|
|
53
|
+
*/
|
|
54
|
+
layerDatabases?(key: TKey): readonly RegionLayerDatabase[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Where a user obtains one data source: a page that explains how, or lists its downloads.
|
|
58
|
+
*/
|
|
59
|
+
export interface SourceLocation {
|
|
60
|
+
/**
|
|
61
|
+
* The source's name for a reader, such as `Base Adresse Nationale`.
|
|
62
|
+
*/
|
|
63
|
+
title: string;
|
|
64
|
+
url: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* One database file a region provider reads for a region.
|
|
68
|
+
*/
|
|
69
|
+
export interface RegionLayerDatabase {
|
|
70
|
+
tier: keyof RegionDatabases;
|
|
71
|
+
path: string;
|
|
72
|
+
/**
|
|
73
|
+
* Where a user obtains each source the provider's layers record, keyed by the source's
|
|
74
|
+
* name in a manifest's `source`: the part before any `:` scope, such as `ban` in `ban:fr`.
|
|
75
|
+
*/
|
|
76
|
+
sourceLocations: Readonly<Record<string, SourceLocation>>;
|
|
47
77
|
}
|
|
48
78
|
//# sourceMappingURL=region-database-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"region-database-provider.d.ts","sourceRoot":"","sources":["../../lib/resolver/region-database-provider.ts"],"names":[],"mappings":"AAGA;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE3G;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC/B,aAAa,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAA;IACzC,aAAa,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;IAC1C;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAA;CAC7C;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,sBAAsB,CACtC,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,UAAU,SAAS,eAAe,GAAG,eAAe,CACnD,SAAQ,UAAU;IACnB;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAErB;;;;OAIG;IACH,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"region-database-provider.d.ts","sourceRoot":"","sources":["../../lib/resolver/region-database-provider.ts"],"names":[],"mappings":"AAGA;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE3G;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC/B,aAAa,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAA;IACzC,aAAa,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;IAC1C;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAA;CAC7C;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,sBAAsB,CACtC,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,UAAU,SAAS,eAAe,GAAG,eAAe,CACnD,SAAQ,UAAU;IACnB;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAErB;;;;OAIG;IACH,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,UAAU,CAAA;IAE1B;;;;;;OAMG;IACH,cAAc,CAAC,CAAC,GAAG,EAAE,IAAI,GAAG,SAAS,mBAAmB,EAAE,CAAA;CAC1D;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACX;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,MAAM,eAAe,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAA;CACzD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @file The one registry of synthetic place-id ranges, and of the range `mailwoman` mints WOF records from.
|
|
3
3
|
*
|
|
4
4
|
* An upstream WOF id is below 2e9, and a WOF record minted in a `mailwoman` fork takes an id from
|
|
5
|
-
* {@link MAILWOMAN_WOF_ID_BASE}. Every other source a gazetteer artifact
|
|
5
|
+
* {@link MAILWOMAN_WOF_ID_BASE}. Every other source whose places a gazetteer artifact adds mints ids from a higher base.
|
|
6
6
|
* The bases must be pairwise distinct. The candidate table's `candidate_ancestor` and
|
|
7
7
|
* `candidate_interval` sidecars are keyed only by `spr_id`, a result's `placeID` is `wof:<spr_id>`, and the
|
|
8
8
|
* backend's `ancestors(id)` answers whichever row wrote last. Two builders that pick the same base give two places
|
|
@@ -37,30 +37,37 @@ export declare function isMailwomanWOFID(id: number): boolean;
|
|
|
37
37
|
*/
|
|
38
38
|
export declare function nextMailwomanWOFID(minted: Iterable<number>): number;
|
|
39
39
|
/**
|
|
40
|
-
* Overture-sourced admin rows (`
|
|
40
|
+
* Overture-sourced admin rows (`add-overture`).
|
|
41
41
|
*
|
|
42
42
|
* Above any real WOF id.
|
|
43
43
|
*/
|
|
44
44
|
export declare const OVERTURE_ID_BASE = 8000000000000;
|
|
45
45
|
/**
|
|
46
|
-
* The GeoNames
|
|
46
|
+
* The places and aliases the GeoNames step adds (`@mailwoman/resolver-wof-sqlite/geonames`).
|
|
47
47
|
*/
|
|
48
48
|
export declare const GEONAMES_ID_BASE = 9000000000000;
|
|
49
|
+
/**
|
|
50
|
+
* Reports whether an id belongs to the Overture Divisions part of an admin or candidate gazetteer.
|
|
51
|
+
*
|
|
52
|
+
* The part is ODbL-1.0 and the rest of the file isn't, so a pass that reads one part's rows to
|
|
53
|
+
* change the other's needs this test, and the Overture part's offer selects its rows with it.
|
|
54
|
+
*/
|
|
55
|
+
export declare function isOverturePartID(id: number): boolean;
|
|
49
56
|
/**
|
|
50
57
|
* GeoNames postal rows (`@mailwoman/resolver-wof-sqlite/geonames`).
|
|
51
58
|
*/
|
|
52
59
|
export declare const GEONAMES_POSTAL_ID_BASE = 9500000000000;
|
|
53
60
|
/**
|
|
54
|
-
* The id the GeoNames
|
|
61
|
+
* The id the GeoNames step gives the place GeoNames numbers `geonameid`:
|
|
55
62
|
* {@link GEONAMES_ID_BASE} plus that number.
|
|
56
63
|
*
|
|
57
64
|
* The id is computed from the GeoNames record's own number.
|
|
58
|
-
* A place keeps its id whichever other countries a build
|
|
59
|
-
*
|
|
65
|
+
* A place keeps its id whichever other countries a build adds, and every build of
|
|
66
|
+
* one GeoNames dump numbers its places the same way.
|
|
60
67
|
*
|
|
61
|
-
* @throws When `geonameid` isn't a positive integer below the
|
|
68
|
+
* @throws When `geonameid` isn't a positive integer below the GeoNames range's width.
|
|
62
69
|
*/
|
|
63
|
-
export declare function
|
|
70
|
+
export declare function geonamesPlaceID(geonameid: number): number;
|
|
64
71
|
/**
|
|
65
72
|
* The Dutch PC6 postcode database (`gazetteer build nl-pc6`).
|
|
66
73
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"synthetic-id-ranges.d.ts","sourceRoot":"","sources":["../../lib/resolver/synthetic-id-ranges.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,aAAgB,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,oBAAoB,aAAgB,CAAA;AAEjD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAcnE;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,gBAAoB,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,gBAAgB,gBAAoB,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,uBAAuB,gBAAoB,CAAA;AAExD;;;;;;;;;GASG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"synthetic-id-ranges.d.ts","sourceRoot":"","sources":["../../lib/resolver/synthetic-id-ranges.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,aAAgB,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,oBAAoB,aAAgB,CAAA;AAEjD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAcnE;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,gBAAoB,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,gBAAgB,gBAAoB,CAAA;AAEjD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,gBAAoB,CAAA;AAExD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAMzD;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,gBAAoB,CAAA;AAE/C;;GAEG;AACH,eAAO,MAAM,mBAAmB,gBAAoB,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,iBAAiB,gBAAoB,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,cAAc,gBAAoB,CAAA;AAE/C;;GAEG;AACH,eAAO,MAAM,mBAAmB,gBAAoB,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,mBAAmB,gBAAoB,CAAA;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAU/F,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,cAAiB,CAAA"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @file The one registry of synthetic place-id ranges, and of the range `mailwoman` mints WOF records from.
|
|
5
5
|
*
|
|
6
6
|
* An upstream WOF id is below 2e9, and a WOF record minted in a `mailwoman` fork takes an id from
|
|
7
|
-
* {@link MAILWOMAN_WOF_ID_BASE}. Every other source a gazetteer artifact
|
|
7
|
+
* {@link MAILWOMAN_WOF_ID_BASE}. Every other source whose places a gazetteer artifact adds mints ids from a higher base.
|
|
8
8
|
* The bases must be pairwise distinct. The candidate table's `candidate_ancestor` and
|
|
9
9
|
* `candidate_interval` sidecars are keyed only by `spr_id`, a result's `placeID` is `wof:<spr_id>`, and the
|
|
10
10
|
* backend's `ancestors(id)` answers whichever row wrote last. Two builders that pick the same base give two places
|
|
@@ -52,32 +52,41 @@ export function nextMailwomanWOFID(minted) {
|
|
|
52
52
|
return next;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* Overture-sourced admin rows (`
|
|
55
|
+
* Overture-sourced admin rows (`add-overture`).
|
|
56
56
|
*
|
|
57
57
|
* Above any real WOF id.
|
|
58
58
|
*/
|
|
59
59
|
export const OVERTURE_ID_BASE = 8_000_000_000_000;
|
|
60
60
|
/**
|
|
61
|
-
* The GeoNames
|
|
61
|
+
* The places and aliases the GeoNames step adds (`@mailwoman/resolver-wof-sqlite/geonames`).
|
|
62
62
|
*/
|
|
63
63
|
export const GEONAMES_ID_BASE = 9_000_000_000_000;
|
|
64
|
+
/**
|
|
65
|
+
* Reports whether an id belongs to the Overture Divisions part of an admin or candidate gazetteer.
|
|
66
|
+
*
|
|
67
|
+
* The part is ODbL-1.0 and the rest of the file isn't, so a pass that reads one part's rows to
|
|
68
|
+
* change the other's needs this test, and the Overture part's offer selects its rows with it.
|
|
69
|
+
*/
|
|
70
|
+
export function isOverturePartID(id) {
|
|
71
|
+
return id >= OVERTURE_ID_BASE && id < GEONAMES_ID_BASE;
|
|
72
|
+
}
|
|
64
73
|
/**
|
|
65
74
|
* GeoNames postal rows (`@mailwoman/resolver-wof-sqlite/geonames`).
|
|
66
75
|
*/
|
|
67
76
|
export const GEONAMES_POSTAL_ID_BASE = 9_500_000_000_000;
|
|
68
77
|
/**
|
|
69
|
-
* The id the GeoNames
|
|
78
|
+
* The id the GeoNames step gives the place GeoNames numbers `geonameid`:
|
|
70
79
|
* {@link GEONAMES_ID_BASE} plus that number.
|
|
71
80
|
*
|
|
72
81
|
* The id is computed from the GeoNames record's own number.
|
|
73
|
-
* A place keeps its id whichever other countries a build
|
|
74
|
-
*
|
|
82
|
+
* A place keeps its id whichever other countries a build adds, and every build of
|
|
83
|
+
* one GeoNames dump numbers its places the same way.
|
|
75
84
|
*
|
|
76
|
-
* @throws When `geonameid` isn't a positive integer below the
|
|
85
|
+
* @throws When `geonameid` isn't a positive integer below the GeoNames range's width.
|
|
77
86
|
*/
|
|
78
|
-
export function
|
|
87
|
+
export function geonamesPlaceID(geonameid) {
|
|
79
88
|
if (!Number.isInteger(geonameid) || geonameid <= 0 || geonameid >= GEONAMES_POSTAL_ID_BASE - GEONAMES_ID_BASE) {
|
|
80
|
-
throw new RangeError(`geonameid ${geonameid} falls outside the GeoNames
|
|
89
|
+
throw new RangeError(`geonameid ${geonameid} falls outside the GeoNames id range`);
|
|
81
90
|
}
|
|
82
91
|
return GEONAMES_ID_BASE + geonameid;
|
|
83
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"synthetic-id-ranges.js","sourceRoot":"","sources":["../../lib/resolver/synthetic-id-ranges.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;;;;;;GAcG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAA;AAElD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAA;AAEjD;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAAU;IAC1C,OAAO,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,qBAAqB,IAAI,EAAE,GAAG,oBAAoB,CAAA;AACxF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAwB;IAC1D,IAAI,OAAO,GAAG,qBAAqB,GAAG,CAAC,CAAA;IAEvC,KAAK,MAAM,EAAE,IAAI,MAAM,EAAE,CAAC;QACzB,IAAI,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC;YAC1C,OAAO,GAAG,EAAE,CAAA;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,GAAoE;IACnG,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE;IAC5C,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE;IAC5C,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,uBAAuB,EAAE;IAC1D,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE;IACxC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,mBAAmB,EAAE;IAClD,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,iBAAiB,EAAE;IAC9C,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE;IACxC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,mBAAmB,EAAE;IAClD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,mBAAmB,EAAE;CAClD,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,cAAc,CAAA"}
|
package/out/resolver/types.d.ts
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
|
-
import type { PlacetypeMap } from "@mailwoman/codex/placetype-map";
|
|
1
|
+
import type { PlacetypeMap } from "@mailwoman/codex/labels/placetype-map";
|
|
2
2
|
import type { AddressTree } from "#decoder/types";
|
|
3
3
|
import type { GazetteerArtifactCoverage } from "#resolver/coverage-facts";
|
|
4
4
|
import type { AddressPointLookup, InterpolationLookup, PostcodePrefixIndexLike, StreetCentroidLookup } from "#resolver/lookup-types";
|
|
5
|
+
/**
|
|
6
|
+
* Why a place's ranking score is a rank without a measurement behind it.
|
|
7
|
+
*
|
|
8
|
+
* `population_unrecorded`: the backend ranks by population and the gazetteer records
|
|
9
|
+
* none for the place, so its score is the rank an unknown population sorts to.
|
|
10
|
+
* `population_estimated`: the gazetteer records no population for the place,
|
|
11
|
+
* and its score ranks a population estimated from the settlement that contains it.
|
|
12
|
+
* `unrecorded`: the resolver recorded no score for the place.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ScoreUnmeasuredReason: {
|
|
15
|
+
readonly PopulationUnrecorded: "population_unrecorded";
|
|
16
|
+
readonly PopulationEstimated: "population_estimated";
|
|
17
|
+
readonly Unrecorded: "unrecorded";
|
|
18
|
+
};
|
|
19
|
+
export type ScoreUnmeasuredReason = (typeof ScoreUnmeasuredReason)[keyof typeof ScoreUnmeasuredReason];
|
|
20
|
+
/**
|
|
21
|
+
* Why a candidate-table row's score, `-neg_rank` with `neg_rank = -log10(population + 1)`,
|
|
22
|
+
* has no measured population behind it, or null when it has one.
|
|
23
|
+
*
|
|
24
|
+
* A row with no population and a negative `neg_rank` was ranked by a population estimate.
|
|
25
|
+
*/
|
|
26
|
+
export declare function populationScoreUnmeasured(population: number | null | undefined, negRank: number): ScoreUnmeasuredReason | null;
|
|
5
27
|
export interface ResolvedPlace {
|
|
6
28
|
/**
|
|
7
29
|
* Resolver-specific place identifier.
|
|
@@ -33,8 +55,17 @@ export interface ResolvedPlace {
|
|
|
33
55
|
parent_id: number | string | null;
|
|
34
56
|
/**
|
|
35
57
|
* Resolver-defined ranking score.
|
|
58
|
+
*
|
|
59
|
+
* The ranking stages compare it whether or not `scoreUnmeasured` is set.
|
|
36
60
|
*/
|
|
37
61
|
score: number;
|
|
62
|
+
/**
|
|
63
|
+
* Why `score` and `prominence` are unmeasured for this place: each value is
|
|
64
|
+
* the rank an unmeasured input sorts to.
|
|
65
|
+
*
|
|
66
|
+
* Null or absent when the backend measured the score.
|
|
67
|
+
*/
|
|
68
|
+
scoreUnmeasured?: ScoreUnmeasuredReason | null;
|
|
38
69
|
/**
|
|
39
70
|
* Optional backend prominence score.
|
|
40
71
|
*/
|
|
@@ -83,6 +114,13 @@ export interface ResolvedPlace {
|
|
|
83
114
|
* True when the input matched an alias of this place and differs from its primary name.
|
|
84
115
|
*/
|
|
85
116
|
matchedAlias?: true | null;
|
|
117
|
+
/**
|
|
118
|
+
* True when a hard scope excluded this place: it lies outside the default country
|
|
119
|
+
* or the caller's parent place.
|
|
120
|
+
*
|
|
121
|
+
* The resolver sets it only on a place it lists on a node's `considered` list.
|
|
122
|
+
*/
|
|
123
|
+
outsideScope?: true | null;
|
|
86
124
|
/**
|
|
87
125
|
* Optional stored extent.
|
|
88
126
|
* A point-only row stores its coordinate as both corners.
|
|
@@ -158,6 +196,10 @@ export interface ResolverBackend {
|
|
|
158
196
|
* Optional ancestor lineage lookup.
|
|
159
197
|
*/
|
|
160
198
|
ancestors?(id: number | string): Ancestor[];
|
|
199
|
+
/**
|
|
200
|
+
* Optional lookup of one place by its id, or null when the gazetteer holds no such place.
|
|
201
|
+
*/
|
|
202
|
+
place?(id: number): ResolvedPlace | null;
|
|
161
203
|
/**
|
|
162
204
|
* Optional artifact coverage facts.
|
|
163
205
|
*/
|
|
@@ -210,6 +252,11 @@ export interface LandmarkHit {
|
|
|
210
252
|
* The stable ID prefix of a landmark that came from OpenStreetMap, as in `osm:W427818536`.
|
|
211
253
|
*/
|
|
212
254
|
export declare const OSM_LANDMARK_PREFIX = "osm:";
|
|
255
|
+
/**
|
|
256
|
+
* Parses the resolver's `placeID` URI back to a WOF id, returning `null` for anything else
|
|
257
|
+
* so a future non-WOF backend isn't silently read as one.
|
|
258
|
+
*/
|
|
259
|
+
export declare function wofIDFromPlaceID(placeID: string | null): number | null;
|
|
213
260
|
/**
|
|
214
261
|
* Returns a landmark's place ID: `openstreetmap:W427818536` or `wikidata:Q160409`.
|
|
215
262
|
*/
|
|
@@ -220,6 +267,44 @@ export declare function landmarkPlaceID(id: string | number): string;
|
|
|
220
267
|
export interface LandmarkLookup {
|
|
221
268
|
find(name: string): LandmarkHit[] | Promise<LandmarkHit[]>;
|
|
222
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* A former administrative division whose name an input wrote, with the current
|
|
272
|
+
* places its containment evidence ties it to.
|
|
273
|
+
*/
|
|
274
|
+
export interface FormerDivisionMatch {
|
|
275
|
+
name: string;
|
|
276
|
+
/**
|
|
277
|
+
* Upper-case ISO 3166-1 alpha-2 code.
|
|
278
|
+
*/
|
|
279
|
+
country: string;
|
|
280
|
+
/**
|
|
281
|
+
* The GeoNames feature code (`ADM1H`) or the WOF placetype of a ceased record.
|
|
282
|
+
*/
|
|
283
|
+
kind: string;
|
|
284
|
+
/**
|
|
285
|
+
* The `ComponentTag` the division takes in an address.
|
|
286
|
+
*/
|
|
287
|
+
tag: string;
|
|
288
|
+
geonamesID: number | null;
|
|
289
|
+
wofID: number | null;
|
|
290
|
+
/**
|
|
291
|
+
* WOF ids of the current places the division covered.
|
|
292
|
+
*/
|
|
293
|
+
linkedIDs: ReadonlySet<number>;
|
|
294
|
+
/**
|
|
295
|
+
* The kinds of evidence the links rest on.
|
|
296
|
+
*/
|
|
297
|
+
evidence: readonly string[];
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Finds the former divisions a written name belongs to.
|
|
301
|
+
*/
|
|
302
|
+
export interface FormerDivisionLookup {
|
|
303
|
+
/**
|
|
304
|
+
* The former divisions whose name keys the same as `value`, in `country` when one is given.
|
|
305
|
+
*/
|
|
306
|
+
divisionsNamed(value: string, country: string | null): readonly FormerDivisionMatch[];
|
|
307
|
+
}
|
|
223
308
|
/**
|
|
224
309
|
* Who chose a default country scope.
|
|
225
310
|
*
|
|
@@ -228,6 +313,19 @@ export interface LandmarkLookup {
|
|
|
228
313
|
* `country` lookups ignore an inferred scope, and stronger evidence in the input can override it.
|
|
229
314
|
*/
|
|
230
315
|
export type DefaultCountrySource = "caller" | "inferred";
|
|
316
|
+
/**
|
|
317
|
+
* How a scope acts on a lookup.
|
|
318
|
+
*
|
|
319
|
+
* - `"hard"`: a filter.
|
|
320
|
+
* A candidate outside the scope never answers.
|
|
321
|
+
* - `"soft"`: a bounded prior.
|
|
322
|
+
* A candidate outside the scope still answers when it's much larger.
|
|
323
|
+
*/
|
|
324
|
+
export declare const ScopeStrength: {
|
|
325
|
+
readonly Hard: "hard";
|
|
326
|
+
readonly Soft: "soft";
|
|
327
|
+
};
|
|
328
|
+
export type ScopeStrength = (typeof ScopeStrength)[keyof typeof ScopeStrength];
|
|
231
329
|
/**
|
|
232
330
|
* A default top-level country scope for resolution.
|
|
233
331
|
*/
|
|
@@ -237,6 +335,34 @@ export interface DefaultCountry {
|
|
|
237
335
|
*/
|
|
238
336
|
country: string;
|
|
239
337
|
source: DefaultCountrySource;
|
|
338
|
+
/**
|
|
339
|
+
* How the scope acts on a lookup.
|
|
340
|
+
*
|
|
341
|
+
* Absent means `"hard"`.
|
|
342
|
+
*/
|
|
343
|
+
strength?: ScopeStrength;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* The country of a scope that filters lookups, or null when the scope is absent or soft.
|
|
347
|
+
*/
|
|
348
|
+
export declare function hardCountryOf(scope: DefaultCountry | null | undefined): string | null;
|
|
349
|
+
/**
|
|
350
|
+
* A caller-supplied place that scopes every lookup of an address, such as a WOF borough or country.
|
|
351
|
+
*
|
|
352
|
+
* A hard parent keeps only candidates its ancestor lineage agrees with:
|
|
353
|
+
* the places inside it, the place itself and its ancestors.
|
|
354
|
+
* It also filters by the parent's country.
|
|
355
|
+
*
|
|
356
|
+
* A soft parent ranks the candidates it contains first and gives its country a soft scope.
|
|
357
|
+
* Both forms pass the parent to the backend as a containment qualifier.
|
|
358
|
+
*/
|
|
359
|
+
export interface ParentPlaceScope {
|
|
360
|
+
/**
|
|
361
|
+
* The gazetteer id of the parent place.
|
|
362
|
+
*/
|
|
363
|
+
id: number;
|
|
364
|
+
source: DefaultCountrySource;
|
|
365
|
+
strength: ScopeStrength;
|
|
240
366
|
}
|
|
241
367
|
/**
|
|
242
368
|
* The on/off resolver passes and tiers, every one resolved against {@link RESOLVE_SWITCH_DEFAULTS}.
|
|
@@ -259,6 +385,9 @@ export interface ResolveSwitches {
|
|
|
259
385
|
adminContainmentRerank: boolean;
|
|
260
386
|
dependentLocalityContainment: boolean;
|
|
261
387
|
countyDesignatorFallback: boolean;
|
|
388
|
+
formerDivisions: boolean;
|
|
389
|
+
scopeCountryRetrieval: boolean;
|
|
390
|
+
siblingLocalityContainment: boolean;
|
|
262
391
|
diagnoseUnreachable: boolean;
|
|
263
392
|
}
|
|
264
393
|
/**
|
|
@@ -285,7 +414,7 @@ export interface ResolveOpts {
|
|
|
285
414
|
*/
|
|
286
415
|
candidatesPerLookup?: number;
|
|
287
416
|
/**
|
|
288
|
-
* Default top-level country scope,
|
|
417
|
+
* Default top-level country scope, who chose it, and whether it filters or ranks.
|
|
289
418
|
*/
|
|
290
419
|
defaultCountry?: DefaultCountry;
|
|
291
420
|
/**
|
|
@@ -323,13 +452,17 @@ export interface ResolveOpts {
|
|
|
323
452
|
*/
|
|
324
453
|
anchorWeight?: number;
|
|
325
454
|
/**
|
|
326
|
-
*
|
|
455
|
+
* The bonus a soft country scope gives a candidate in its country, in log10-population units.
|
|
456
|
+
*
|
|
457
|
+
* @defaultValue `DEFAULT_COUNTRY_PRIOR_WEIGHT` from `@mailwoman/resolver/toponym-prior` (2)
|
|
327
458
|
*/
|
|
328
|
-
|
|
459
|
+
softCountryWeight?: number;
|
|
329
460
|
/**
|
|
330
|
-
*
|
|
461
|
+
* A caller-supplied parent place that scopes every lookup.
|
|
462
|
+
*
|
|
463
|
+
* It needs a backend with `place` and `ancestors`, and the resolve throws without them.
|
|
331
464
|
*/
|
|
332
|
-
|
|
465
|
+
parentPlace?: ParentPlaceScope;
|
|
333
466
|
/**
|
|
334
467
|
* Optional capital-level callback.
|
|
335
468
|
*/
|
|
@@ -493,11 +626,52 @@ export interface ResolveOpts {
|
|
|
493
626
|
* Looks a `locality` span up as a WOF `county` in its resolved region
|
|
494
627
|
* when no locality of that name is there and the value is written with
|
|
495
628
|
* its country's county designator (`Harris County`, `Jefferson Parish`),
|
|
496
|
-
* from `countyNameWithoutDesignator` in `@mailwoman/codex/county
|
|
629
|
+
* from `countyNameWithoutDesignator` in `@mailwoman/codex/designators/county`.
|
|
497
630
|
*
|
|
498
631
|
* @defaultValue {@linkcode RESOLVE_SWITCH_DEFAULTS}
|
|
499
632
|
*/
|
|
500
633
|
countyDesignatorFallback?: boolean;
|
|
634
|
+
/**
|
|
635
|
+
* Accepts a `subregion` or `region` value that no current division answers when the value is the name
|
|
636
|
+
* of a former division of {@link ResolveOpts.formerDivisionLookup} linked to the resolved locality.
|
|
637
|
+
*
|
|
638
|
+
* The accepted node keeps no place and scopes no lookup, and its metadata records the division.
|
|
639
|
+
*
|
|
640
|
+
* @defaultValue {@linkcode RESOLVE_SWITCH_DEFAULTS}
|
|
641
|
+
*/
|
|
642
|
+
formerDivisions?: boolean;
|
|
643
|
+
/**
|
|
644
|
+
* The former divisions {@link ResolveOpts.formerDivisions} reads.
|
|
645
|
+
*
|
|
646
|
+
* Without it the switch leaves every node as the walk resolved it.
|
|
647
|
+
*/
|
|
648
|
+
formerDivisionLookup?: FormerDivisionLookup;
|
|
649
|
+
/**
|
|
650
|
+
* Lets a soft country scope act inside retrieval.
|
|
651
|
+
*
|
|
652
|
+
* A region or locality lookup without a hard country also retrieves the soft
|
|
653
|
+
* country's rows and merges them by place id.
|
|
654
|
+
* A bounded bonus for that country then runs after the importance rerank, so the rerank can't undo it.
|
|
655
|
+
*
|
|
656
|
+
* The soft scope is the locale's country when the walk withholds it for a bare tree,
|
|
657
|
+
* or the locale head's country when the head contradicts the inferred scope.
|
|
658
|
+
* A lookup under a hard default country also probes without it and reports the
|
|
659
|
+
* same-name places outside the scope on `considered`.
|
|
660
|
+
*
|
|
661
|
+
* @defaultValue {@linkcode RESOLVE_SWITCH_DEFAULTS}
|
|
662
|
+
*/
|
|
663
|
+
scopeCountryRetrieval?: boolean;
|
|
664
|
+
/**
|
|
665
|
+
* Resolves one of two `locality` spans inside the other when the gazetteer places
|
|
666
|
+
* a candidate of it inside the other's resolved place.
|
|
667
|
+
*
|
|
668
|
+
* The inner span is retagged `dependent_locality` and looked up with the outer place
|
|
669
|
+
* as its containment qualifier, as a written dependent locality is.
|
|
670
|
+
* The gazetteer decides which span is inner, so token order doesn't.
|
|
671
|
+
*
|
|
672
|
+
* @defaultValue {@linkcode RESOLVE_SWITCH_DEFAULTS}
|
|
673
|
+
*/
|
|
674
|
+
siblingLocalityContainment?: boolean;
|
|
501
675
|
/**
|
|
502
676
|
* Optional sink for resolver-internal trace records.
|
|
503
677
|
*/
|
|
@@ -520,7 +694,17 @@ export interface ResolveCandidateTrace {
|
|
|
520
694
|
*/
|
|
521
695
|
country: string | null;
|
|
522
696
|
placetype: string;
|
|
697
|
+
/**
|
|
698
|
+
* The ranking key the stages compared.
|
|
699
|
+
* It is unmeasured when `scoreUnmeasured` is set.
|
|
700
|
+
*/
|
|
523
701
|
score: number;
|
|
702
|
+
/**
|
|
703
|
+
* Why `score` and `prominence` are unmeasured, or null when they're measured.
|
|
704
|
+
*
|
|
705
|
+
* Optional because a trace recorded before the field existed holds no such entry.
|
|
706
|
+
*/
|
|
707
|
+
scoreUnmeasured?: ScoreUnmeasuredReason | null;
|
|
524
708
|
prominence: number | null;
|
|
525
709
|
importance: number | null;
|
|
526
710
|
population: number | null;
|
|
@@ -562,7 +746,7 @@ export interface ResolveNodeTrace {
|
|
|
562
746
|
picked: {
|
|
563
747
|
id: string | number;
|
|
564
748
|
name: string;
|
|
565
|
-
source: "ranked" | "bare_country" | "bare_region" | "bare_sublocality" | "postcode_prefix" | "postcode_format_probe" | "empty_admin" | "span_rescore" | "postal_compound_recovery" | "county_designator_fallback";
|
|
749
|
+
source: "ranked" | "bare_country" | "bare_region" | "bare_sublocality" | "postcode_prefix" | "postcode_format_probe" | "empty_admin" | "span_rescore" | "postal_compound_recovery" | "county_designator_fallback" | "sibling_locality_containment";
|
|
566
750
|
} | null;
|
|
567
751
|
}
|
|
568
752
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/resolver/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAA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a,GACb,cAAc,GACd,0BAA0B,GAC1B,4BAA4B,GAC5B,8BAA8B,CAAA;KACjC,GAAG,IAAI,CAAA;CACR;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACxB,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IACxE;;OAEG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;IACxC;;OAEG;IACH,gBAAgB,EAAE,yBAAyB,GAAG,IAAI,CAAA;CAClD"}
|
package/out/resolver/types.js
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
2
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
/**
|
|
4
|
+
* Why a place's ranking score is a rank without a measurement behind it.
|
|
5
|
+
*
|
|
6
|
+
* `population_unrecorded`: the backend ranks by population and the gazetteer records
|
|
7
|
+
* none for the place, so its score is the rank an unknown population sorts to.
|
|
8
|
+
* `population_estimated`: the gazetteer records no population for the place,
|
|
9
|
+
* and its score ranks a population estimated from the settlement that contains it.
|
|
10
|
+
* `unrecorded`: the resolver recorded no score for the place.
|
|
11
|
+
*/
|
|
12
|
+
export const ScoreUnmeasuredReason = {
|
|
13
|
+
PopulationUnrecorded: "population_unrecorded",
|
|
14
|
+
PopulationEstimated: "population_estimated",
|
|
15
|
+
Unrecorded: "unrecorded",
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Why a candidate-table row's score, `-neg_rank` with `neg_rank = -log10(population + 1)`,
|
|
19
|
+
* has no measured population behind it, or null when it has one.
|
|
20
|
+
*
|
|
21
|
+
* A row with no population and a negative `neg_rank` was ranked by a population estimate.
|
|
22
|
+
*/
|
|
23
|
+
export function populationScoreUnmeasured(population, negRank) {
|
|
24
|
+
if (typeof population === "number" && population > 0)
|
|
25
|
+
return null;
|
|
26
|
+
return negRank < 0 ? ScoreUnmeasuredReason.PopulationEstimated : ScoreUnmeasuredReason.PopulationUnrecorded;
|
|
27
|
+
}
|
|
3
28
|
/**
|
|
4
29
|
* The nullable {@link ResolvedPlace} signals, each `null`, spread first into a place literal.
|
|
5
30
|
*/
|
|
@@ -17,6 +42,16 @@ export const EMPTY_PLACE_FIELDS = Object.freeze({
|
|
|
17
42
|
* The stable ID prefix of a landmark that came from OpenStreetMap, as in `osm:W427818536`.
|
|
18
43
|
*/
|
|
19
44
|
export const OSM_LANDMARK_PREFIX = "osm:";
|
|
45
|
+
/**
|
|
46
|
+
* Parses the resolver's `placeID` URI back to a WOF id, returning `null` for anything else
|
|
47
|
+
* so a future non-WOF backend isn't silently read as one.
|
|
48
|
+
*/
|
|
49
|
+
export function wofIDFromPlaceID(placeID) {
|
|
50
|
+
if (!placeID)
|
|
51
|
+
return null;
|
|
52
|
+
const match = /^wof:(\d+)$/.exec(placeID);
|
|
53
|
+
return match ? Number(match[1]) : null;
|
|
54
|
+
}
|
|
20
55
|
/**
|
|
21
56
|
* Returns a landmark's place ID: `openstreetmap:W427818536` or `wikidata:Q160409`.
|
|
22
57
|
*/
|
|
@@ -26,6 +61,24 @@ export function landmarkPlaceID(id) {
|
|
|
26
61
|
? `openstreetmap:${value.slice(OSM_LANDMARK_PREFIX.length)}`
|
|
27
62
|
: `wikidata:${value}`;
|
|
28
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* How a scope acts on a lookup.
|
|
66
|
+
*
|
|
67
|
+
* - `"hard"`: a filter.
|
|
68
|
+
* A candidate outside the scope never answers.
|
|
69
|
+
* - `"soft"`: a bounded prior.
|
|
70
|
+
* A candidate outside the scope still answers when it's much larger.
|
|
71
|
+
*/
|
|
72
|
+
export const ScopeStrength = {
|
|
73
|
+
Hard: "hard",
|
|
74
|
+
Soft: "soft",
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* The country of a scope that filters lookups, or null when the scope is absent or soft.
|
|
78
|
+
*/
|
|
79
|
+
export function hardCountryOf(scope) {
|
|
80
|
+
return scope && scope.strength !== ScopeStrength.Soft ? scope.country : null;
|
|
81
|
+
}
|
|
29
82
|
/**
|
|
30
83
|
* The default of every {@link ResolveSwitches} key.
|
|
31
84
|
*/
|
|
@@ -44,6 +97,9 @@ export const RESOLVE_SWITCH_DEFAULTS = {
|
|
|
44
97
|
adminContainmentRerank: true,
|
|
45
98
|
dependentLocalityContainment: true,
|
|
46
99
|
countyDesignatorFallback: false,
|
|
100
|
+
formerDivisions: false,
|
|
101
|
+
scopeCountryRetrieval: false,
|
|
102
|
+
siblingLocalityContainment: false,
|
|
47
103
|
diagnoseUnreachable: false,
|
|
48
104
|
};
|
|
49
105
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/resolver/types.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/resolver/types.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAalE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACpC,oBAAoB,EAAE,uBAAuB;IAC7C,mBAAmB,EAAE,sBAAsB;IAC3C,UAAU,EAAE,YAAY;CACf,CAAA;AAIV;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACxC,UAAqC,EACrC,OAAe;IAEf,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,GAAG,CAAC;QAAE,OAAO,IAAI,CAAA;IAEjE,OAAO,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAC,qBAAqB,CAAC,oBAAoB,CAAA;AAC5G,CAAC;AA0GD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,IA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,wBAAwB,EAAE,KAAK;IAC/B,WAAW,EAAE,IAAI;IACjB,sBAAsB,EAAE,IAAI;IAC5B,mBAAmB,EAAE,IAAI;IACzB,wBAAwB,EAAE,IAAI;IAC9B,sBAAsB,EAAE,IAAI;IAC5B,4BAA4B,EAAE,KAAK;IACnC,mBAAmB,EAAE,KAAK;IAC1B,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,KAAK;IACvB,sBAAsB,EAAE,IAAI;IAC5B,4BAA4B,EAAE,IAAI;IAClC,wBAAwB,EAAE,KAAK;IAC/B,eAAe,EAAE,KAAK;IACtB,qBAAqB,EAAE,KAAK;IAC5B,0BAA0B,EAAE,KAAK;IACjC,mBAAmB,EAAE,KAAK;CAC1B,CAAA;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAkE;IACjG,MAAM,QAAQ,GAAG,EAAE,GAAG,uBAAuB,EAAE,CAAA;IAE/C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAA8B,EAAE,CAAC;QACrF,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,uBAAuB,CAAC,GAAG,CAAC,CAAA;IAC1D,CAAC;IAED,OAAO,QAAQ,CAAA;AAChB,CAAC"}
|
package/out/resolver.d.ts
CHANGED
|
@@ -12,10 +12,10 @@ export { compareReferential, REFERENTIAL_LOG2_SCALE, REFERENTIAL_POPULATION_DIVI
|
|
|
12
12
|
export type { ReferentiallyRankable } from "#resolver/referential";
|
|
13
13
|
export { AuthoritativeMatchStatus, AuthoritativeResponseStatus } from "#resolver/authoritative-provider";
|
|
14
14
|
export type { AuthoritativeMatch, AuthoritativeProvider, AuthoritativeQuery, AuthoritativeQueryComponent, AuthoritativeResponse, } from "#resolver/authoritative-provider";
|
|
15
|
-
export type { RegionDatabaseProvider, RegionDatabases } from "#resolver/region-database-provider";
|
|
16
|
-
export { EMPTY_PLACE_FIELDS, landmarkPlaceID, OSM_LANDMARK_PREFIX, RESOLVE_SWITCH_DEFAULTS, resolveSwitches, } from "#resolver/types";
|
|
15
|
+
export type { RegionDatabaseProvider, RegionDatabases, RegionLayerDatabase, SourceLocation, } from "#resolver/region-database-provider";
|
|
16
|
+
export { EMPTY_PLACE_FIELDS, hardCountryOf, landmarkPlaceID, OSM_LANDMARK_PREFIX, populationScoreUnmeasured, RESOLVE_SWITCH_DEFAULTS, resolveSwitches, ScopeStrength, ScoreUnmeasuredReason, wofIDFromPlaceID, } from "#resolver/types";
|
|
17
17
|
export { hardCountrySafelistFromCoverage } from "#resolver/coverage-facts";
|
|
18
|
-
export type { Ancestor, ResolveCandidateTrace, ResolveNodeTrace, ResolveOpts, ResolveSwitches, DefaultCountry, DefaultCountrySource, ResolvedPlace, Resolver, ResolverBackend, WeakResolutionReading, LandmarkHit, LandmarkKind, LandmarkLookup, } from "#resolver/types";
|
|
18
|
+
export type { Ancestor, ResolveCandidateTrace, ResolveNodeTrace, ResolveOpts, ResolveSwitches, DefaultCountry, DefaultCountrySource, ParentPlaceScope, ResolvedPlace, Resolver, ResolverBackend, WeakResolutionReading, LandmarkHit, LandmarkKind, LandmarkLookup, FormerDivisionLookup, FormerDivisionMatch, } from "#resolver/types";
|
|
19
19
|
export type { AddressPointHit, AddressPointLookup, InterpolatedPointHit, InterpolationLookup, POIDistanceHit, PostcodePlace, PostcodePrefixAncestor, PostcodePrefixIndexLike, PostcodePrefixNode, StreetCentroidHit, StreetCentroidLookup, WOFAncestor, } from "#resolver/lookup-types";
|
|
20
20
|
export type { CountryBBoxFact, CountryCoverageFact, GazetteerArtifactCoverage } from "#resolver/coverage-facts";
|
|
21
21
|
//# sourceMappingURL=resolver.d.ts.map
|
package/out/resolver.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../lib/resolver.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,8BAA8B,EAC9B,iCAAiC,EACjC,yBAAyB,GACzB,MAAM,uBAAuB,CAAA;AAE9B,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAElE,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAExG,YAAY,EACX,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,GACrB,MAAM,kCAAkC,CAAA;AAEzC,YAAY,
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../lib/resolver.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,8BAA8B,EAC9B,iCAAiC,EACjC,yBAAyB,GACzB,MAAM,uBAAuB,CAAA;AAE9B,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAElE,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAExG,YAAY,EACX,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,GACrB,MAAM,kCAAkC,CAAA;AAEzC,YAAY,EACX,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,cAAc,GACd,MAAM,oCAAoC,CAAA;AAE3C,OAAO,EACN,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,gBAAgB,GAChB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAA;AAE1E,YAAY,EACX,QAAQ,EACR,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,QAAQ,EACR,eAAe,EACf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