@finbheara/domain 0.23.0 → 0.25.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/dist/place.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  placesRelation2,
18
18
  probablySamePlace2,
19
19
  sameReading2
20
- } from "./chunks/place-qe5krdev.js";
20
+ } from "./chunks/place-h2s1w0tq.js";
21
21
  import"./chunks/place-tcgfvemw.js";
22
22
  export {
23
23
  DEFAULT_PLACE_CAPACITY2 as DEFAULT_PLACE_CAPACITY,
package/dist/school.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  areAllPlaceTokens2,
13
13
  placeRelation2,
14
14
  sameReading2
15
- } from "./chunks/place-qe5krdev.js";
15
+ } from "./chunks/place-h2s1w0tq.js";
16
16
  import {
17
17
  validity
18
18
  } from "./chunks/place-q9kwsmzd.js";
package/dist/tune.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  settingAt2,
9
9
  tune2,
10
10
  tuneRelation2
11
- } from "./chunks/place-yndzaae5.js";
11
+ } from "./chunks/place-26pfr6ak.js";
12
12
  import"./chunks/place-htxgptyv.js";
13
13
  export {
14
14
  PLAUSIBLE_SET_TEMPO_MAX2 as PLAUSIBLE_SET_TEMPO_MAX,
@@ -0,0 +1,12 @@
1
+ import type { PlaceContext } from "./place-types.ts";
2
+ import { type Place } from "./place.ts";
3
+ export interface GeocodeTown {
4
+ readonly id: string;
5
+ readonly parent: string;
6
+ readonly name: string;
7
+ readonly cell: string;
8
+ readonly geonameid: number;
9
+ }
10
+ export declare function geocodeTowns(): ReadonlyMap<string, GeocodeTown>;
11
+ export declare function geocode(print: string, ctx?: string | PlaceContext): Place;
12
+ export declare function townCell(id: string): string | undefined;
@@ -0,0 +1,3 @@
1
+ export declare const PLACE_TOWNS_TREE = "7766f91ef2cbbb099f93d878d1fd33d8b66bf6f3fe1a35590d0b5755f9a6dda6";
2
+ export declare const PLACE_TOWNS_SOURCES: Readonly<Record<string, string>>;
3
+ export declare const PLACE_TOWNS: Readonly<Record<string, string>>;
@@ -1,4 +1,5 @@
1
1
  import type { PlaceNode } from "./place-types.ts";
2
2
  export declare const AMBIGUOUS_PRINTS: readonly string[];
3
3
  export declare const CROSS_BORDER_REGIONS: readonly string[];
4
+ export declare const FOREIGN_MEMBER_REGIONS: readonly string[];
4
5
  export declare const PLACE_NODES: readonly PlaceNode[];
@@ -1,4 +1,4 @@
1
1
  import type { PlaceWithin } from "./place-types.ts";
2
- export declare const PLACE_WITHIN_TREE = "42be759c4de3678a3d22fc5174dbafad342c5437ec8fd8e2f05cd8b0a37660bf";
2
+ export declare const PLACE_WITHIN_TREE = "7766f91ef2cbbb099f93d878d1fd33d8b66bf6f3fe1a35590d0b5755f9a6dda6";
3
3
  export declare const PLACE_WITHIN_SOURCES: Readonly<Record<string, string>>;
4
4
  export declare const PLACE_WITHIN: Readonly<Record<string, PlaceWithin>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finbheara/domain",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "Places, CLRG regions, school names, ages, dances and a person's print in its role, as they are printed: read, compared and told apart",
5
5
  "keywords": [
6
6
  "places",
@@ -21,6 +21,10 @@
21
21
  "types": "./dist/types/place.d.ts",
22
22
  "default": "./dist/place.js"
23
23
  },
24
+ "./geocode": {
25
+ "types": "./dist/types/geocode.d.ts",
26
+ "default": "./dist/geocode.js"
27
+ },
24
28
  "./clrg-regions": {
25
29
  "types": "./dist/types/clrg-regions.d.ts",
26
30
  "default": "./dist/clrg-regions.js"