@mailwoman/photon 10.0.0 → 10.1.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/cli.ts → cli/main.ts} +40 -54
- package/lib/app.ts +13 -18
- package/lib/engine.ts +13 -5
- package/lib/index.ts +6 -11
- package/lib/locality-postcode.ts +9 -13
- package/lib/projection.ts +60 -55
- package/lib/routes.ts +9 -21
- package/lib/schema.ts +31 -24
- package/out/app.d.ts +13 -14
- package/out/app.d.ts.map +1 -1
- package/out/app.js +4 -11
- package/out/app.js.map +1 -1
- package/out/cli/main.d.ts +12 -0
- package/out/cli/main.d.ts.map +1 -0
- package/out/{cli.js → cli/main.js} +40 -54
- package/out/cli/main.js.map +1 -0
- package/out/engine.d.ts +13 -5
- package/out/engine.d.ts.map +1 -1
- package/out/engine.js +2 -2
- package/out/engine.js.map +1 -1
- package/out/index.d.ts +6 -11
- package/out/index.d.ts.map +1 -1
- package/out/index.js +6 -11
- package/out/index.js.map +1 -1
- package/out/locality-postcode.d.ts +4 -7
- package/out/locality-postcode.d.ts.map +1 -1
- package/out/locality-postcode.js +8 -12
- package/out/locality-postcode.js.map +1 -1
- package/out/projection.d.ts +48 -38
- package/out/projection.d.ts.map +1 -1
- package/out/projection.js +37 -35
- package/out/projection.js.map +1 -1
- package/out/routes.d.ts +2 -2
- package/out/routes.d.ts.map +1 -1
- package/out/routes.js +9 -21
- package/out/routes.js.map +1 -1
- package/out/schema.d.ts +29 -22
- package/out/schema.d.ts.map +1 -1
- package/out/schema.js +31 -24
- package/out/schema.js.map +1 -1
- package/package.json +47 -31
- package/out/cli.d.ts +0 -17
- package/out/cli.d.ts.map +0 -1
- package/out/cli.js.map +0 -1
package/out/schema.d.ts
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* Zod
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* and every wire decision stays in the handlers (see routes.ts's legacyQuery adapter).
|
|
6
|
+
* Zod schemas for the Photon-compatible API. Key names and envelopes match Photon and must not
|
|
7
|
+
* change. The query schemas accept any string or string array, so validation never fails. The
|
|
8
|
+
* handlers in `routes.ts` do the actual parsing.
|
|
10
9
|
*/
|
|
11
10
|
import { z } from "@hono/zod-openapi";
|
|
12
11
|
/**
|
|
13
|
-
* Photon feature properties
|
|
12
|
+
* Photon feature properties with OSM-derived keys.
|
|
13
|
+
* Extra keys are allowed.
|
|
14
14
|
*/
|
|
15
15
|
export declare const PhotonPropertiesSchema: z.ZodObject<{
|
|
16
16
|
osm_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -31,7 +31,7 @@ export declare const PhotonPropertiesSchema: z.ZodObject<{
|
|
|
31
31
|
extent: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
32
32
|
}, z.core.$loose>;
|
|
33
33
|
/**
|
|
34
|
-
* One Photon result feature
|
|
34
|
+
* One Photon result feature with GeoJSON geometry and Photon's properties.
|
|
35
35
|
*/
|
|
36
36
|
export declare const PhotonFeatureSchema: z.ZodObject<{
|
|
37
37
|
type: z.ZodLiteral<"Feature">;
|
|
@@ -59,7 +59,7 @@ export declare const PhotonFeatureSchema: z.ZodObject<{
|
|
|
59
59
|
}, z.core.$loose>;
|
|
60
60
|
}, z.core.$strip>;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* A GeoJSON FeatureCollection of Photon features.
|
|
63
63
|
*/
|
|
64
64
|
export declare const PhotonFeatureCollectionSchema: z.ZodObject<{
|
|
65
65
|
type: z.ZodLiteral<"FeatureCollection">;
|
|
@@ -90,7 +90,8 @@ export declare const PhotonFeatureCollectionSchema: z.ZodObject<{
|
|
|
90
90
|
}, z.core.$strip>>;
|
|
91
91
|
}, z.core.$strip>;
|
|
92
92
|
/**
|
|
93
|
-
* The error
|
|
93
|
+
* The error envelope is an empty FeatureCollection with a message.
|
|
94
|
+
* Photon does not use an `{ error }` body.
|
|
94
95
|
*/
|
|
95
96
|
export declare const PhotonMessageCollectionSchema: z.ZodObject<{
|
|
96
97
|
type: z.ZodLiteral<"FeatureCollection">;
|
|
@@ -122,10 +123,10 @@ export declare const PhotonMessageCollectionSchema: z.ZodObject<{
|
|
|
122
123
|
message: z.ZodString;
|
|
123
124
|
}, z.core.$strip>;
|
|
124
125
|
/**
|
|
125
|
-
* The schema.org [`GeoCoordinates`](https://schema.org/GeoCoordinates) node
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
126
|
+
* The schema.org [`GeoCoordinates`](https://schema.org/GeoCoordinates) node.
|
|
127
|
+
*
|
|
128
|
+
* It mirrors the `SchemaOrgGeoCoordinates` interface in `@mailwoman/annotations`.
|
|
129
|
+
* Each API package defines its own schemas, so this one is written out here.
|
|
129
130
|
*/
|
|
130
131
|
export declare const SchemaOrgGeoCoordinatesSchema: z.ZodObject<{
|
|
131
132
|
"@type": z.ZodLiteral<"GeoCoordinates">;
|
|
@@ -133,7 +134,8 @@ export declare const SchemaOrgGeoCoordinatesSchema: z.ZodObject<{
|
|
|
133
134
|
longitude: z.ZodNumber;
|
|
134
135
|
}, z.core.$strip>;
|
|
135
136
|
/**
|
|
136
|
-
* The schema.org [`PostalAddress`](https://schema.org/PostalAddress) node
|
|
137
|
+
* The schema.org [`PostalAddress`](https://schema.org/PostalAddress) node.
|
|
138
|
+
* It mirrors `SchemaOrgPostalAddress`.
|
|
137
139
|
*/
|
|
138
140
|
export declare const SchemaOrgPostalAddressSchema: z.ZodObject<{
|
|
139
141
|
"@type": z.ZodLiteral<"PostalAddress">;
|
|
@@ -145,8 +147,9 @@ export declare const SchemaOrgPostalAddressSchema: z.ZodObject<{
|
|
|
145
147
|
addressCountry: z.ZodOptional<z.ZodString>;
|
|
146
148
|
}, z.core.$strip>;
|
|
147
149
|
/**
|
|
148
|
-
* The `format=jsonld`
|
|
149
|
-
*
|
|
150
|
+
* The `format=jsonld` output.
|
|
151
|
+
*
|
|
152
|
+
* It mirrors the `SchemaOrgPlace` interface that `photonToSchemaOrg` produces.
|
|
150
153
|
*/
|
|
151
154
|
export declare const SchemaOrgPlaceSchema: z.ZodObject<{
|
|
152
155
|
"@context": z.ZodLiteral<"https://schema.org">;
|
|
@@ -168,8 +171,10 @@ export declare const SchemaOrgPlaceSchema: z.ZodObject<{
|
|
|
168
171
|
}, z.core.$strip>>;
|
|
169
172
|
}, z.core.$strip>;
|
|
170
173
|
/**
|
|
171
|
-
* The FeatureCollection
|
|
172
|
-
*
|
|
174
|
+
* The FeatureCollection with the optional `engine` stamp.
|
|
175
|
+
*
|
|
176
|
+
* The schema has an OpenAPI name because it is a union member.
|
|
177
|
+
* A generated client would otherwise label an inlined member by its position.
|
|
173
178
|
*/
|
|
174
179
|
export declare const StampedPhotonFeatureCollectionSchema: z.ZodIntersection<z.ZodObject<{
|
|
175
180
|
type: z.ZodLiteral<"FeatureCollection">;
|
|
@@ -208,9 +213,10 @@ export declare const StampedPhotonFeatureCollectionSchema: z.ZodIntersection<z.Z
|
|
|
208
213
|
}, z.core.$strict>>;
|
|
209
214
|
}, z.core.$strip>>;
|
|
210
215
|
/**
|
|
211
|
-
* The
|
|
212
|
-
*
|
|
213
|
-
*
|
|
216
|
+
* The `/api` and `/reverse` 200 response for the OpenAPI document.
|
|
217
|
+
*
|
|
218
|
+
* The response is a GeoJSON FeatureCollection by default or an array of schema.org
|
|
219
|
+
* `Place` objects for `format=jsonld`.
|
|
214
220
|
*/
|
|
215
221
|
export declare const PhotonResponseSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
216
222
|
type: z.ZodLiteral<"FeatureCollection">;
|
|
@@ -267,7 +273,8 @@ export declare const PhotonResponseSchema: z.ZodUnion<readonly [z.ZodIntersectio
|
|
|
267
273
|
}, z.core.$strip>>;
|
|
268
274
|
}, z.core.$strip>>]>;
|
|
269
275
|
/**
|
|
270
|
-
*
|
|
276
|
+
* The documented query parameters of `GET /api`.
|
|
277
|
+
* The handler checks and parses them.
|
|
271
278
|
*/
|
|
272
279
|
export declare const searchQueryParams: z.ZodObject<{
|
|
273
280
|
q: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
@@ -280,7 +287,7 @@ export declare const searchQueryParams: z.ZodObject<{
|
|
|
280
287
|
format: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
281
288
|
}, z.core.$strip>;
|
|
282
289
|
/**
|
|
283
|
-
* `GET /reverse
|
|
290
|
+
* The documented query parameters of `GET /reverse`.
|
|
284
291
|
*/
|
|
285
292
|
export declare const reverseQueryParams: z.ZodObject<{
|
|
286
293
|
lat: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
package/out/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AAGrC;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;iBAoBN,CAAA;AAE7B;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;iBAAiE,CAAA;AAEjG;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;iBACsC,CAAA;AAEhF;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMN,CAAA;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;;;;iBAMN,CAAA;AAEpC;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;iBAUN,CAAA;AAEnC;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;iBAQN,CAAA;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGhD,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEN,CAAA;AAQ3B;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;iBAa5B,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;iBAO7B,CAAA"}
|
package/out/schema.js
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* Zod
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* and every wire decision stays in the handlers (see routes.ts's legacyQuery adapter).
|
|
6
|
+
* Zod schemas for the Photon-compatible API. Key names and envelopes match Photon and must not
|
|
7
|
+
* change. The query schemas accept any string or string array, so validation never fails. The
|
|
8
|
+
* handlers in `routes.ts` do the actual parsing.
|
|
10
9
|
*/
|
|
11
10
|
import { z } from "@hono/zod-openapi";
|
|
12
11
|
import { featureCollectionSchema, featureSchema, stampedResponseSchema } from "@mailwoman/api-kit";
|
|
13
12
|
/**
|
|
14
|
-
* Photon feature properties
|
|
13
|
+
* Photon feature properties with OSM-derived keys.
|
|
14
|
+
* Extra keys are allowed.
|
|
15
15
|
*/
|
|
16
16
|
export const PhotonPropertiesSchema = z
|
|
17
17
|
.object({
|
|
@@ -35,15 +35,16 @@ export const PhotonPropertiesSchema = z
|
|
|
35
35
|
.loose()
|
|
36
36
|
.openapi("PhotonProperties");
|
|
37
37
|
/**
|
|
38
|
-
* One Photon result feature
|
|
38
|
+
* One Photon result feature with GeoJSON geometry and Photon's properties.
|
|
39
39
|
*/
|
|
40
40
|
export const PhotonFeatureSchema = featureSchema(PhotonPropertiesSchema).openapi("PhotonFeature");
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* A GeoJSON FeatureCollection of Photon features.
|
|
43
43
|
*/
|
|
44
44
|
export const PhotonFeatureCollectionSchema = featureCollectionSchema(PhotonFeatureSchema).openapi("PhotonFeatureCollection");
|
|
45
45
|
/**
|
|
46
|
-
* The error
|
|
46
|
+
* The error envelope is an empty FeatureCollection with a message.
|
|
47
|
+
* Photon does not use an `{ error }` body.
|
|
47
48
|
*/
|
|
48
49
|
export const PhotonMessageCollectionSchema = z
|
|
49
50
|
.object({
|
|
@@ -53,10 +54,10 @@ export const PhotonMessageCollectionSchema = z
|
|
|
53
54
|
})
|
|
54
55
|
.openapi("PhotonMessageCollection");
|
|
55
56
|
/**
|
|
56
|
-
* The schema.org [`GeoCoordinates`](https://schema.org/GeoCoordinates) node
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
57
|
+
* The schema.org [`GeoCoordinates`](https://schema.org/GeoCoordinates) node.
|
|
58
|
+
*
|
|
59
|
+
* It mirrors the `SchemaOrgGeoCoordinates` interface in `@mailwoman/annotations`.
|
|
60
|
+
* Each API package defines its own schemas, so this one is written out here.
|
|
60
61
|
*/
|
|
61
62
|
export const SchemaOrgGeoCoordinatesSchema = z
|
|
62
63
|
.object({
|
|
@@ -66,7 +67,8 @@ export const SchemaOrgGeoCoordinatesSchema = z
|
|
|
66
67
|
})
|
|
67
68
|
.openapi("SchemaOrgGeoCoordinates");
|
|
68
69
|
/**
|
|
69
|
-
* The schema.org [`PostalAddress`](https://schema.org/PostalAddress) node
|
|
70
|
+
* The schema.org [`PostalAddress`](https://schema.org/PostalAddress) node.
|
|
71
|
+
* It mirrors `SchemaOrgPostalAddress`.
|
|
70
72
|
*/
|
|
71
73
|
export const SchemaOrgPostalAddressSchema = z
|
|
72
74
|
.object({
|
|
@@ -80,8 +82,9 @@ export const SchemaOrgPostalAddressSchema = z
|
|
|
80
82
|
})
|
|
81
83
|
.openapi("SchemaOrgPostalAddress");
|
|
82
84
|
/**
|
|
83
|
-
* The `format=jsonld`
|
|
84
|
-
*
|
|
85
|
+
* The `format=jsonld` output.
|
|
86
|
+
*
|
|
87
|
+
* It mirrors the `SchemaOrgPlace` interface that `photonToSchemaOrg` produces.
|
|
85
88
|
*/
|
|
86
89
|
export const SchemaOrgPlaceSchema = z
|
|
87
90
|
.object({
|
|
@@ -93,25 +96,29 @@ export const SchemaOrgPlaceSchema = z
|
|
|
93
96
|
})
|
|
94
97
|
.openapi("SchemaOrgPlace");
|
|
95
98
|
/**
|
|
96
|
-
* The FeatureCollection
|
|
97
|
-
*
|
|
99
|
+
* The FeatureCollection with the optional `engine` stamp.
|
|
100
|
+
*
|
|
101
|
+
* The schema has an OpenAPI name because it is a union member.
|
|
102
|
+
* A generated client would otherwise label an inlined member by its position.
|
|
98
103
|
*/
|
|
99
104
|
export const StampedPhotonFeatureCollectionSchema = stampedResponseSchema(PhotonFeatureCollectionSchema, "StampedPhotonFeatureCollection");
|
|
100
105
|
/**
|
|
101
|
-
* The
|
|
102
|
-
*
|
|
103
|
-
*
|
|
106
|
+
* The `/api` and `/reverse` 200 response for the OpenAPI document.
|
|
107
|
+
*
|
|
108
|
+
* The response is a GeoJSON FeatureCollection by default or an array of schema.org
|
|
109
|
+
* `Place` objects for `format=jsonld`.
|
|
104
110
|
*/
|
|
105
111
|
export const PhotonResponseSchema = z
|
|
106
112
|
.union([StampedPhotonFeatureCollectionSchema, z.array(SchemaOrgPlaceSchema)])
|
|
107
113
|
.openapi("PhotonResponse");
|
|
108
114
|
/**
|
|
109
|
-
* A query
|
|
110
|
-
*
|
|
115
|
+
* A query parameter that accepts one value or a repeated value.
|
|
116
|
+
* Each use sets its documented type with `.openapi()`.
|
|
111
117
|
*/
|
|
112
118
|
const tolerantParam = z.union([z.string(), z.array(z.string())]).optional();
|
|
113
119
|
/**
|
|
114
|
-
*
|
|
120
|
+
* The documented query parameters of `GET /api`.
|
|
121
|
+
* The handler checks and parses them.
|
|
115
122
|
*/
|
|
116
123
|
export const searchQueryParams = z.object({
|
|
117
124
|
q: tolerantParam.openapi({ type: "string", description: "The query string to search for." }),
|
|
@@ -128,7 +135,7 @@ export const searchQueryParams = z.object({
|
|
|
128
135
|
format: tolerantParam.openapi({ type: "string", enum: ["geojson", "jsonld"], description: "Output format." }),
|
|
129
136
|
});
|
|
130
137
|
/**
|
|
131
|
-
* `GET /reverse
|
|
138
|
+
* The documented query parameters of `GET /reverse`.
|
|
132
139
|
*/
|
|
133
140
|
export const reverseQueryParams = z.object({
|
|
134
141
|
lat: tolerantParam.openapi({ type: "number", description: "Latitude." }),
|
package/out/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AACrC,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAElG;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACrC,MAAM,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE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AC,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;CAC7G,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/photon",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "Photon drop-in — a Photon-compatible autocomplete/type-ahead geocoding API (GeoJSON FeatureCollection over /api + /reverse) on the Mailwoman engine. Run it with `npx @mailwoman/photon serve`.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -8,25 +8,26 @@
|
|
|
8
8
|
"url": "https://github.com/sister-software/mailwoman.git",
|
|
9
9
|
"directory": "packages/photon"
|
|
10
10
|
},
|
|
11
|
-
"bin": "./out/cli.js",
|
|
11
|
+
"bin": "./out/cli/main.js",
|
|
12
12
|
"files": [
|
|
13
13
|
"out/**/*.js",
|
|
14
14
|
"out/**/*.js.map",
|
|
15
15
|
"out/**/*.d.ts",
|
|
16
16
|
"out/**/*.d.ts.map",
|
|
17
17
|
"README.md",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"**/*.tsx",
|
|
22
|
-
"!*.test.ts",
|
|
23
|
-
"!*.test.tsx",
|
|
18
|
+
"lib/**/*.ts",
|
|
19
|
+
"lib/**/*.tsx",
|
|
20
|
+
"cli/**/*.ts",
|
|
24
21
|
"!**/*.test.ts",
|
|
25
|
-
"!**/*.test.tsx"
|
|
26
|
-
"!test/**"
|
|
22
|
+
"!**/*.test.tsx"
|
|
27
23
|
],
|
|
28
24
|
"type": "module",
|
|
29
25
|
"imports": {
|
|
26
|
+
"#cli/*": {
|
|
27
|
+
"types": "./out/cli/*.d.ts",
|
|
28
|
+
"node": "./out/cli/*.js",
|
|
29
|
+
"default": "./out/cli/*.js"
|
|
30
|
+
},
|
|
30
31
|
"#*": {
|
|
31
32
|
"types": "./out/*.d.ts",
|
|
32
33
|
"node": "./out/*.js",
|
|
@@ -35,33 +36,48 @@
|
|
|
35
36
|
},
|
|
36
37
|
"exports": {
|
|
37
38
|
"./package.json": "./package.json",
|
|
38
|
-
"./projection": {
|
|
39
|
-
"types": "./out/projection.d.ts",
|
|
40
|
-
"node": "./out/projection.js",
|
|
41
|
-
"default": "./out/projection.js"
|
|
42
|
-
},
|
|
43
39
|
".": {
|
|
44
40
|
"types": "./out/index.d.ts",
|
|
45
41
|
"node": "./out/index.js",
|
|
46
42
|
"default": "./out/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./cli/*": {
|
|
45
|
+
"types": "./out/cli/*.d.ts",
|
|
46
|
+
"node": "./out/cli/*.js",
|
|
47
|
+
"default": "./out/cli/*.js"
|
|
48
|
+
},
|
|
49
|
+
"./*": {
|
|
50
|
+
"types": "./out/*.d.ts",
|
|
51
|
+
"node": "./out/*.js",
|
|
52
|
+
"default": "./out/*.js"
|
|
47
53
|
}
|
|
48
54
|
},
|
|
49
55
|
"publishConfig": {
|
|
50
56
|
"access": "public",
|
|
51
57
|
"exports": {
|
|
52
58
|
"./package.json": "./package.json",
|
|
53
|
-
"./projection": {
|
|
54
|
-
"types": "./out/projection.d.ts",
|
|
55
|
-
"node": "./out/projection.js",
|
|
56
|
-
"default": "./out/projection.js"
|
|
57
|
-
},
|
|
58
59
|
".": {
|
|
59
60
|
"types": "./out/index.d.ts",
|
|
60
61
|
"node": "./out/index.js",
|
|
61
62
|
"default": "./out/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./cli/*": {
|
|
65
|
+
"types": "./out/cli/*.d.ts",
|
|
66
|
+
"node": "./out/cli/*.js",
|
|
67
|
+
"default": "./out/cli/*.js"
|
|
68
|
+
},
|
|
69
|
+
"./*": {
|
|
70
|
+
"types": "./out/*.d.ts",
|
|
71
|
+
"node": "./out/*.js",
|
|
72
|
+
"default": "./out/*.js"
|
|
62
73
|
}
|
|
63
74
|
},
|
|
64
75
|
"imports": {
|
|
76
|
+
"#cli/*": {
|
|
77
|
+
"types": "./out/cli/*.d.ts",
|
|
78
|
+
"node": "./out/cli/*.js",
|
|
79
|
+
"default": "./out/cli/*.js"
|
|
80
|
+
},
|
|
65
81
|
"#*": {
|
|
66
82
|
"types": "./out/*.d.ts",
|
|
67
83
|
"node": "./out/*.js",
|
|
@@ -71,18 +87,18 @@
|
|
|
71
87
|
},
|
|
72
88
|
"dependencies": {
|
|
73
89
|
"@hono/zod-openapi": "^1.6.3",
|
|
74
|
-
"@mailwoman/annotations": "10.
|
|
75
|
-
"@mailwoman/api-kit": "10.
|
|
76
|
-
"@mailwoman/ban": "10.
|
|
77
|
-
"@mailwoman/codex": "10.
|
|
78
|
-
"@mailwoman/core": "10.
|
|
79
|
-
"@mailwoman/neural": "10.
|
|
80
|
-
"@mailwoman/neural-weights-en-us": "10.
|
|
81
|
-
"@mailwoman/resolver": "10.
|
|
82
|
-
"@mailwoman/resolver-wof-sqlite": "10.
|
|
83
|
-
"@mailwoman/sqlite": "10.
|
|
90
|
+
"@mailwoman/annotations": "10.1.0",
|
|
91
|
+
"@mailwoman/api-kit": "10.1.0",
|
|
92
|
+
"@mailwoman/ban": "10.1.0",
|
|
93
|
+
"@mailwoman/codex": "10.1.0",
|
|
94
|
+
"@mailwoman/core": "10.1.0",
|
|
95
|
+
"@mailwoman/neural": "10.1.0",
|
|
96
|
+
"@mailwoman/neural-weights-en-us": "10.1.0",
|
|
97
|
+
"@mailwoman/resolver": "10.1.0",
|
|
98
|
+
"@mailwoman/resolver-wof-sqlite": "10.1.0",
|
|
99
|
+
"@mailwoman/sqlite": "10.1.0",
|
|
84
100
|
"hono": "^4.13.7",
|
|
85
|
-
"mailwoman": "10.
|
|
101
|
+
"mailwoman": "10.1.0",
|
|
86
102
|
"zod": "^4.5.4"
|
|
87
103
|
}
|
|
88
104
|
}
|
package/out/cli.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @copyright Sister Software
|
|
4
|
-
* @license AGPL-3.0
|
|
5
|
-
* @author Teffen Ellis, et al.
|
|
6
|
-
*
|
|
7
|
-
* `mailwoman-photon` — boot a Photon-compatible autocomplete endpoint via the `serve` command.
|
|
8
|
-
* Usage
|
|
9
|
-
*
|
|
10
|
-
* - Examples live in the package README.
|
|
11
|
-
*
|
|
12
|
-
* Wires the real engine: `/api` over `geocodeAddress` (parse → resolve), `/reverse` over
|
|
13
|
-
* `WOFReverseGeocoder`, projecting results into Photon's GeoJSON FeatureCollection. The FST
|
|
14
|
-
* autocomplete tier is the eventual front for `/api`; geocode resolution is the MVP path.
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=cli.d.ts.map
|
package/out/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../lib/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;GAaG"}
|
package/out/cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../lib/cli.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EACN,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EAC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