@keystrokehq/placekey 0.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 +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/get-geocode-from-address.cjs +34 -0
- package/dist/actions/get-geocode-from-address.cjs.map +1 -0
- package/dist/actions/get-geocode-from-address.d.cts +9 -0
- package/dist/actions/get-geocode-from-address.d.cts.map +1 -0
- package/dist/actions/get-geocode-from-address.d.mts +9 -0
- package/dist/actions/get-geocode-from-address.d.mts.map +1 -0
- package/dist/actions/get-geocode-from-address.mjs +33 -0
- package/dist/actions/get-geocode-from-address.mjs.map +1 -0
- package/dist/actions/get-placekey-from-address.cjs +27 -0
- package/dist/actions/get-placekey-from-address.cjs.map +1 -0
- package/dist/actions/get-placekey-from-address.d.cts +9 -0
- package/dist/actions/get-placekey-from-address.d.cts.map +1 -0
- package/dist/actions/get-placekey-from-address.d.mts +9 -0
- package/dist/actions/get-placekey-from-address.d.mts.map +1 -0
- package/dist/actions/get-placekey-from-address.mjs +24 -0
- package/dist/actions/get-placekey-from-address.mjs.map +1 -0
- package/dist/actions/get-placekey.cjs +77 -0
- package/dist/actions/get-placekey.cjs.map +1 -0
- package/dist/actions/get-placekey.d.cts +9 -0
- package/dist/actions/get-placekey.d.cts.map +1 -0
- package/dist/actions/get-placekey.d.mts +9 -0
- package/dist/actions/get-placekey.d.mts.map +1 -0
- package/dist/actions/get-placekey.mjs +76 -0
- package/dist/actions/get-placekey.mjs.map +1 -0
- package/dist/actions/get-placekeys-bulk.cjs +62 -0
- package/dist/actions/get-placekeys-bulk.cjs.map +1 -0
- package/dist/actions/get-placekeys-bulk.d.cts +9 -0
- package/dist/actions/get-placekeys-bulk.d.cts.map +1 -0
- package/dist/actions/get-placekeys-bulk.d.mts +9 -0
- package/dist/actions/get-placekeys-bulk.d.mts.map +1 -0
- package/dist/actions/get-placekeys-bulk.mjs +61 -0
- package/dist/actions/get-placekeys-bulk.mjs.map +1 -0
- package/dist/actions/index.cjs +9 -0
- package/dist/actions/index.d.cts +5 -0
- package/dist/actions/index.d.mts +5 -0
- package/dist/actions/index.mjs +5 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +14 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.mjs +8 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/placekey
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `placekey`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 4
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { placekeyGetGeocodeFromAddress } from "@keystrokehq/placekey/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "placekey-agent",
|
|
15
|
+
tools: [placekeyGetGeocodeFromAddress],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.placekey.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executePlacekeyTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["placekey","executePlacekeyTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { placekey } from \"./app\";\nimport { executePlacekeyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return placekey.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePlacekeyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { placekey } from "./app.mjs";
|
|
2
|
+
import { executePlacekeyTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return placekey.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executePlacekeyTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { placekey } from \"./app\";\nimport { executePlacekeyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return placekey.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePlacekeyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-geocode-from-address.ts
|
|
4
|
+
const PlacekeyGetGeocodeFromAddressInput = zod.z.object({
|
|
5
|
+
city: zod.z.string().describe("City name"),
|
|
6
|
+
region: zod.z.string().describe("State/region code"),
|
|
7
|
+
postal_code: zod.z.string().describe("Postal/ZIP code"),
|
|
8
|
+
street_address: zod.z.string().describe("Street address of the location"),
|
|
9
|
+
iso_country_code: zod.z.string().describe("Two-letter country code")
|
|
10
|
+
});
|
|
11
|
+
const PlacekeyGetGeocodeFromAddress_LocationSchema = zod.z.object({
|
|
12
|
+
lat: zod.z.number().describe("Latitude of the location"),
|
|
13
|
+
lng: zod.z.number().describe("Longitude of the location")
|
|
14
|
+
});
|
|
15
|
+
const PlacekeyGetGeocodeFromAddress_GeocodeSchema = zod.z.object({
|
|
16
|
+
location: PlacekeyGetGeocodeFromAddress_LocationSchema.nullable(),
|
|
17
|
+
location_type: zod.z.string().describe("Precision level of the geocode. Possible values: ROOFTOP (most accurate, building-level), PARCEL (property boundary), APPROXIMATE (general area), RANGE_INTERPOLATED (estimated along a street range), UNKNOWN (precision level not determined)")
|
|
18
|
+
});
|
|
19
|
+
const PlacekeyGetGeocodeFromAddressOutput = zod.z.object({
|
|
20
|
+
geocode: PlacekeyGetGeocodeFromAddress_GeocodeSchema.nullable(),
|
|
21
|
+
placekey: zod.z.string().describe("Unique Placekey identifier"),
|
|
22
|
+
query_id: zod.z.string().describe("Unique identifier for the query")
|
|
23
|
+
});
|
|
24
|
+
const placekeyGetGeocodeFromAddress = require_action.action("PLACEKEY_GET_GEOCODE_FROM_ADDRESS", {
|
|
25
|
+
slug: "placekey-get-geocode-from-address",
|
|
26
|
+
name: "Get Geocode From Address",
|
|
27
|
+
description: "This tool retrieves geocode information (latitude and longitude) for a given address using the Placekey API. It accepts address components (street_address, city, region, postal_code, iso_country_code) and returns geocode data including the unique Placekey identifier and location details.",
|
|
28
|
+
input: PlacekeyGetGeocodeFromAddressInput,
|
|
29
|
+
output: PlacekeyGetGeocodeFromAddressOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.placekeyGetGeocodeFromAddress = placekeyGetGeocodeFromAddress;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=get-geocode-from-address.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-geocode-from-address.cjs","names":["z","action"],"sources":["../../src/actions/get-geocode-from-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacekeyGetGeocodeFromAddressInput: z.ZodTypeAny = z.object({\n city: z.string().describe(\"City name\"),\n region: z.string().describe(\"State/region code\"),\n postal_code: z.string().describe(\"Postal/ZIP code\"),\n street_address: z.string().describe(\"Street address of the location\"),\n iso_country_code: z.string().describe(\"Two-letter country code\"),\n});\nconst PlacekeyGetGeocodeFromAddress_LocationSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of the location\"),\n lng: z.number().describe(\"Longitude of the location\"),\n});\nconst PlacekeyGetGeocodeFromAddress_GeocodeSchema: z.ZodTypeAny = z.object({\n location: PlacekeyGetGeocodeFromAddress_LocationSchema.nullable(),\n location_type: z.string().describe(\"Precision level of the geocode. Possible values: ROOFTOP (most accurate, building-level), PARCEL (property boundary), APPROXIMATE (general area), RANGE_INTERPOLATED (estimated along a street range), UNKNOWN (precision level not determined)\"),\n});\nexport const PlacekeyGetGeocodeFromAddressOutput: z.ZodTypeAny = z.object({\n geocode: PlacekeyGetGeocodeFromAddress_GeocodeSchema.nullable(),\n placekey: z.string().describe(\"Unique Placekey identifier\"),\n query_id: z.string().describe(\"Unique identifier for the query\"),\n});\n\nexport const placekeyGetGeocodeFromAddress = action(\"PLACEKEY_GET_GEOCODE_FROM_ADDRESS\", {\n slug: \"placekey-get-geocode-from-address\",\n name: \"Get Geocode From Address\",\n description: \"This tool retrieves geocode information (latitude and longitude) for a given address using the Placekey API. It accepts address components (street_address, city, region, postal_code, iso_country_code) and returns geocode data including the unique Placekey identifier and location details.\",\n input: PlacekeyGetGeocodeFromAddressInput,\n output: PlacekeyGetGeocodeFromAddressOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;CACrC,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAClD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACpE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AACjE,CAAC;AACD,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACtD,CAAC;AACD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,UAAU,6CAA6C,SAAS;CAChE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iPAAiP;AACtR,CAAC;AACD,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,SAAS,4CAA4C,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AACjE,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-geocode-from-address.d.ts
|
|
4
|
+
declare const PlacekeyGetGeocodeFromAddressInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacekeyGetGeocodeFromAddressOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placekeyGetGeocodeFromAddress: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placekeyGetGeocodeFromAddress };
|
|
9
|
+
//# sourceMappingURL=get-geocode-from-address.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-geocode-from-address.d.cts","names":[],"sources":["../../src/actions/get-geocode-from-address.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAMjD;AAAA,cASW,mCAAA,EAAqC,CAAA,CAAE,UAIlD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-geocode-from-address.d.ts
|
|
4
|
+
declare const PlacekeyGetGeocodeFromAddressInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacekeyGetGeocodeFromAddressOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placekeyGetGeocodeFromAddress: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placekeyGetGeocodeFromAddress };
|
|
9
|
+
//# sourceMappingURL=get-geocode-from-address.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-geocode-from-address.d.mts","names":[],"sources":["../../src/actions/get-geocode-from-address.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAMjD;AAAA,cASW,mCAAA,EAAqC,CAAA,CAAE,UAIlD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-geocode-from-address.ts
|
|
4
|
+
const PlacekeyGetGeocodeFromAddressInput = z.object({
|
|
5
|
+
city: z.string().describe("City name"),
|
|
6
|
+
region: z.string().describe("State/region code"),
|
|
7
|
+
postal_code: z.string().describe("Postal/ZIP code"),
|
|
8
|
+
street_address: z.string().describe("Street address of the location"),
|
|
9
|
+
iso_country_code: z.string().describe("Two-letter country code")
|
|
10
|
+
});
|
|
11
|
+
const PlacekeyGetGeocodeFromAddress_LocationSchema = z.object({
|
|
12
|
+
lat: z.number().describe("Latitude of the location"),
|
|
13
|
+
lng: z.number().describe("Longitude of the location")
|
|
14
|
+
});
|
|
15
|
+
const PlacekeyGetGeocodeFromAddress_GeocodeSchema = z.object({
|
|
16
|
+
location: PlacekeyGetGeocodeFromAddress_LocationSchema.nullable(),
|
|
17
|
+
location_type: z.string().describe("Precision level of the geocode. Possible values: ROOFTOP (most accurate, building-level), PARCEL (property boundary), APPROXIMATE (general area), RANGE_INTERPOLATED (estimated along a street range), UNKNOWN (precision level not determined)")
|
|
18
|
+
});
|
|
19
|
+
const placekeyGetGeocodeFromAddress = action("PLACEKEY_GET_GEOCODE_FROM_ADDRESS", {
|
|
20
|
+
slug: "placekey-get-geocode-from-address",
|
|
21
|
+
name: "Get Geocode From Address",
|
|
22
|
+
description: "This tool retrieves geocode information (latitude and longitude) for a given address using the Placekey API. It accepts address components (street_address, city, region, postal_code, iso_country_code) and returns geocode data including the unique Placekey identifier and location details.",
|
|
23
|
+
input: PlacekeyGetGeocodeFromAddressInput,
|
|
24
|
+
output: z.object({
|
|
25
|
+
geocode: PlacekeyGetGeocodeFromAddress_GeocodeSchema.nullable(),
|
|
26
|
+
placekey: z.string().describe("Unique Placekey identifier"),
|
|
27
|
+
query_id: z.string().describe("Unique identifier for the query")
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { placekeyGetGeocodeFromAddress };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=get-geocode-from-address.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-geocode-from-address.mjs","names":[],"sources":["../../src/actions/get-geocode-from-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacekeyGetGeocodeFromAddressInput: z.ZodTypeAny = z.object({\n city: z.string().describe(\"City name\"),\n region: z.string().describe(\"State/region code\"),\n postal_code: z.string().describe(\"Postal/ZIP code\"),\n street_address: z.string().describe(\"Street address of the location\"),\n iso_country_code: z.string().describe(\"Two-letter country code\"),\n});\nconst PlacekeyGetGeocodeFromAddress_LocationSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of the location\"),\n lng: z.number().describe(\"Longitude of the location\"),\n});\nconst PlacekeyGetGeocodeFromAddress_GeocodeSchema: z.ZodTypeAny = z.object({\n location: PlacekeyGetGeocodeFromAddress_LocationSchema.nullable(),\n location_type: z.string().describe(\"Precision level of the geocode. Possible values: ROOFTOP (most accurate, building-level), PARCEL (property boundary), APPROXIMATE (general area), RANGE_INTERPOLATED (estimated along a street range), UNKNOWN (precision level not determined)\"),\n});\nexport const PlacekeyGetGeocodeFromAddressOutput: z.ZodTypeAny = z.object({\n geocode: PlacekeyGetGeocodeFromAddress_GeocodeSchema.nullable(),\n placekey: z.string().describe(\"Unique Placekey identifier\"),\n query_id: z.string().describe(\"Unique identifier for the query\"),\n});\n\nexport const placekeyGetGeocodeFromAddress = action(\"PLACEKEY_GET_GEOCODE_FROM_ADDRESS\", {\n slug: \"placekey-get-geocode-from-address\",\n name: \"Get Geocode From Address\",\n description: \"This tool retrieves geocode information (latitude and longitude) for a given address using the Placekey API. It accepts address components (street_address, city, region, postal_code, iso_country_code) and returns geocode data including the unique Placekey identifier and location details.\",\n input: PlacekeyGetGeocodeFromAddressInput,\n output: PlacekeyGetGeocodeFromAddressOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;CACrC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAClD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACpE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AACjE,CAAC;AACD,MAAM,+CAA6D,EAAE,OAAO;CAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACtD,CAAC;AACD,MAAM,8CAA4D,EAAE,OAAO;CACzE,UAAU,6CAA6C,SAAS;CAChE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iPAAiP;AACtR,CAAC;AAOD,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+D,EAAE,OAAO;EACxE,SAAS,4CAA4C,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACjE,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-placekey-from-address.ts
|
|
4
|
+
const PlacekeyGetPlacekeyFromAddressInput = zod.z.object({
|
|
5
|
+
city: zod.z.string().describe("The city name"),
|
|
6
|
+
region: zod.z.string().describe("The state/region code (e.g., 'CA' for California)"),
|
|
7
|
+
postal_code: zod.z.string().describe("The postal/ZIP code"),
|
|
8
|
+
location_name: zod.z.string().describe("Name of the location/business if available").optional(),
|
|
9
|
+
street_address: zod.z.string().describe("The street address of the location"),
|
|
10
|
+
iso_country_code: zod.z.string().describe("The two-letter ISO country code (e.g., 'US' for United States)")
|
|
11
|
+
});
|
|
12
|
+
const PlacekeyGetPlacekeyFromAddressOutput = zod.z.object({
|
|
13
|
+
error: zod.z.string().describe("Error message if the request could not be processed").nullable().optional(),
|
|
14
|
+
placekey: zod.z.string().describe("A unique identifier for the location in Placekey's format").nullable().optional(),
|
|
15
|
+
query_id: zod.z.string().describe("An identifier for the query")
|
|
16
|
+
});
|
|
17
|
+
const placekeyGetPlacekeyFromAddress = require_action.action("PLACEKEY_GET_PLACEKEY_FROM_ADDRESS", {
|
|
18
|
+
slug: "placekey-get-placekey-from-address",
|
|
19
|
+
name: "Get placekey from address",
|
|
20
|
+
description: "Convert a physical address into a unique Placekey identifier. The Placekey is a universal standard identifier for any physical place that helps in location matching, enrichment, and deduplication.",
|
|
21
|
+
input: PlacekeyGetPlacekeyFromAddressInput,
|
|
22
|
+
output: PlacekeyGetPlacekeyFromAddressOutput
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.placekeyGetPlacekeyFromAddress = placekeyGetPlacekeyFromAddress;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=get-placekey-from-address.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekey-from-address.cjs","names":["z","action"],"sources":["../../src/actions/get-placekey-from-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacekeyGetPlacekeyFromAddressInput: z.ZodTypeAny = z.object({\n city: z.string().describe(\"The city name\"),\n region: z.string().describe(\"The state/region code (e.g., 'CA' for California)\"),\n postal_code: z.string().describe(\"The postal/ZIP code\"),\n location_name: z.string().describe(\"Name of the location/business if available\").optional(),\n street_address: z.string().describe(\"The street address of the location\"),\n iso_country_code: z.string().describe(\"The two-letter ISO country code (e.g., 'US' for United States)\"),\n});\nexport const PlacekeyGetPlacekeyFromAddressOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message if the request could not be processed\").nullable().optional(),\n placekey: z.string().describe(\"A unique identifier for the location in Placekey's format\").nullable().optional(),\n query_id: z.string().describe(\"An identifier for the query\"),\n});\n\nexport const placekeyGetPlacekeyFromAddress = action(\"PLACEKEY_GET_PLACEKEY_FROM_ADDRESS\", {\n slug: \"placekey-get-placekey-from-address\",\n name: \"Get placekey from address\",\n description: \"Convert a physical address into a unique Placekey identifier. The Placekey is a universal standard identifier for any physical place that helps in location matching, enrichment, and deduplication.\",\n input: PlacekeyGetPlacekeyFromAddressInput,\n output: PlacekeyGetPlacekeyFromAddressOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CACzC,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACtD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACxE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;AACxG,CAAC;AACD,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC7D,CAAC;AAED,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-placekey-from-address.d.ts
|
|
4
|
+
declare const PlacekeyGetPlacekeyFromAddressInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacekeyGetPlacekeyFromAddressOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placekeyGetPlacekeyFromAddress: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placekeyGetPlacekeyFromAddress };
|
|
9
|
+
//# sourceMappingURL=get-placekey-from-address.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekey-from-address.d.cts","names":[],"sources":["../../src/actions/get-placekey-from-address.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAOlD;AAAA,cACW,oCAAA,EAAsC,CAAA,CAAE,UAInD;AAAA,cAEW,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-placekey-from-address.d.ts
|
|
4
|
+
declare const PlacekeyGetPlacekeyFromAddressInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacekeyGetPlacekeyFromAddressOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placekeyGetPlacekeyFromAddress: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placekeyGetPlacekeyFromAddress };
|
|
9
|
+
//# sourceMappingURL=get-placekey-from-address.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekey-from-address.d.mts","names":[],"sources":["../../src/actions/get-placekey-from-address.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAOlD;AAAA,cACW,oCAAA,EAAsC,CAAA,CAAE,UAInD;AAAA,cAEW,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const placekeyGetPlacekeyFromAddress = action("PLACEKEY_GET_PLACEKEY_FROM_ADDRESS", {
|
|
4
|
+
slug: "placekey-get-placekey-from-address",
|
|
5
|
+
name: "Get placekey from address",
|
|
6
|
+
description: "Convert a physical address into a unique Placekey identifier. The Placekey is a universal standard identifier for any physical place that helps in location matching, enrichment, and deduplication.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
city: z.string().describe("The city name"),
|
|
9
|
+
region: z.string().describe("The state/region code (e.g., 'CA' for California)"),
|
|
10
|
+
postal_code: z.string().describe("The postal/ZIP code"),
|
|
11
|
+
location_name: z.string().describe("Name of the location/business if available").optional(),
|
|
12
|
+
street_address: z.string().describe("The street address of the location"),
|
|
13
|
+
iso_country_code: z.string().describe("The two-letter ISO country code (e.g., 'US' for United States)")
|
|
14
|
+
}),
|
|
15
|
+
output: z.object({
|
|
16
|
+
error: z.string().describe("Error message if the request could not be processed").nullable().optional(),
|
|
17
|
+
placekey: z.string().describe("A unique identifier for the location in Placekey's format").nullable().optional(),
|
|
18
|
+
query_id: z.string().describe("An identifier for the query")
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { placekeyGetPlacekeyFromAddress };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=get-placekey-from-address.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekey-from-address.mjs","names":[],"sources":["../../src/actions/get-placekey-from-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacekeyGetPlacekeyFromAddressInput: z.ZodTypeAny = z.object({\n city: z.string().describe(\"The city name\"),\n region: z.string().describe(\"The state/region code (e.g., 'CA' for California)\"),\n postal_code: z.string().describe(\"The postal/ZIP code\"),\n location_name: z.string().describe(\"Name of the location/business if available\").optional(),\n street_address: z.string().describe(\"The street address of the location\"),\n iso_country_code: z.string().describe(\"The two-letter ISO country code (e.g., 'US' for United States)\"),\n});\nexport const PlacekeyGetPlacekeyFromAddressOutput: z.ZodTypeAny = z.object({\n error: z.string().describe(\"Error message if the request could not be processed\").nullable().optional(),\n placekey: z.string().describe(\"A unique identifier for the location in Placekey's format\").nullable().optional(),\n query_id: z.string().describe(\"An identifier for the query\"),\n});\n\nexport const placekeyGetPlacekeyFromAddress = action(\"PLACEKEY_GET_PLACEKEY_FROM_ADDRESS\", {\n slug: \"placekey-get-placekey-from-address\",\n name: \"Get placekey from address\",\n description: \"Convert a physical address into a unique Placekey identifier. The Placekey is a universal standard identifier for any physical place that helps in location matching, enrichment, and deduplication.\",\n input: PlacekeyGetPlacekeyFromAddressInput,\n output: PlacekeyGetPlacekeyFromAddressOutput,\n});\n"],"mappings":";;AAkBA,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB+D,EAAE,OAAO;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EACzC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACtD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EACxE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACxG,CAWS;CACP,QAXgE,EAAE,OAAO;EACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC7D,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-placekey.ts
|
|
4
|
+
const PlacekeyGetPlacekeyInput = zod.z.object({
|
|
5
|
+
city: zod.z.string().describe("The city where the place is located").optional(),
|
|
6
|
+
region: zod.z.string().describe("The second-level administrative region (e.g., state in US)").optional(),
|
|
7
|
+
options: zod.z.object({
|
|
8
|
+
fields: zod.z.array(zod.z.enum([
|
|
9
|
+
"address_placekey",
|
|
10
|
+
"building_placekey",
|
|
11
|
+
"confidence_score",
|
|
12
|
+
"normalized_address",
|
|
13
|
+
"geocode",
|
|
14
|
+
"upi",
|
|
15
|
+
"parcel",
|
|
16
|
+
"geoid",
|
|
17
|
+
"gers"
|
|
18
|
+
])).describe("Additional fields to include in the response (address_placekey, building_placekey, confidence_score, normalized_address, geocode, upi, parcel, geoid, gers)").optional(),
|
|
19
|
+
strict_name_match: zod.z.boolean().describe("If true, requires exact name match for POIs").optional(),
|
|
20
|
+
strict_address_match: zod.z.boolean().describe("If true, requires exact address match").optional()
|
|
21
|
+
}).describe("Options to customize the response and matching behavior").optional(),
|
|
22
|
+
latitude: zod.z.number().describe("The latitude of the place in WGS-84 coordinates").optional(),
|
|
23
|
+
query_id: zod.z.string().describe("Custom identifier for this query. Will be echoed back in the response.").optional(),
|
|
24
|
+
longitude: zod.z.number().describe("The longitude of the place in WGS-84 coordinates").optional(),
|
|
25
|
+
postal_code: zod.z.string().describe("The postal code for the place").optional(),
|
|
26
|
+
location_name: zod.z.string().describe("The name of the place or business (POI name) for better matching").optional(),
|
|
27
|
+
place_metadata: zod.z.object({
|
|
28
|
+
website: zod.z.string().describe("Web URL for the POI website").optional(),
|
|
29
|
+
mcc_code: zod.z.string().describe("Merchant category code").optional(),
|
|
30
|
+
store_id: zod.z.string().describe("Unique store ID from the brand").optional(),
|
|
31
|
+
naics_code: zod.z.string().describe("4-digit or 6-digit NAICS code for the business").optional(),
|
|
32
|
+
phone_number: zod.z.string().describe("Phone number of the POI for better matching accuracy").optional()
|
|
33
|
+
}).describe("Additional metadata about the place to improve matching accuracy").optional(),
|
|
34
|
+
street_address: zod.z.string().describe("The street address of the place").optional(),
|
|
35
|
+
iso_country_code: zod.z.string().describe("The ISO 2-letter country code (e.g., US, CA, GB)").optional()
|
|
36
|
+
});
|
|
37
|
+
const PlacekeyGetPlacekey_GeocodeSchema = zod.z.object({
|
|
38
|
+
latitude: zod.z.number().describe("Latitude coordinate").nullable().optional(),
|
|
39
|
+
longitude: zod.z.number().describe("Longitude coordinate").nullable().optional()
|
|
40
|
+
});
|
|
41
|
+
const PlacekeyGetPlacekey_ConfidenceScoreSchema = zod.z.enum([
|
|
42
|
+
"HIGH",
|
|
43
|
+
"MEDIUM",
|
|
44
|
+
"LOW"
|
|
45
|
+
]);
|
|
46
|
+
const PlacekeyGetPlacekey_NormalizedAddressSchema = zod.z.object({
|
|
47
|
+
city: zod.z.string().describe("Normalized city name").nullable().optional(),
|
|
48
|
+
region: zod.z.string().describe("Normalized region/state").nullable().optional(),
|
|
49
|
+
postal_code: zod.z.string().describe("Normalized postal code").nullable().optional(),
|
|
50
|
+
country_code: zod.z.string().describe("Normalized country code").nullable().optional(),
|
|
51
|
+
street_address: zod.z.string().describe("Normalized street address").nullable().optional()
|
|
52
|
+
});
|
|
53
|
+
const PlacekeyGetPlacekeyOutput = zod.z.object({
|
|
54
|
+
upi: zod.z.string().describe("Universal Parcel Identifier").nullable().optional(),
|
|
55
|
+
gers: zod.z.string().describe("Overture Maps identifier").nullable().optional(),
|
|
56
|
+
error: zod.z.string().describe("Error message if the query could not be processed").nullable().optional(),
|
|
57
|
+
geoid: zod.z.string().describe("Geographic identifier code for census/demographic data").nullable().optional(),
|
|
58
|
+
parcel: zod.z.string().describe("Unique land identifier assigned by local government").nullable().optional(),
|
|
59
|
+
geocode: PlacekeyGetPlacekey_GeocodeSchema.nullable().optional(),
|
|
60
|
+
placekey: zod.z.string().describe("The unique Placekey identifier for the location").nullable().optional(),
|
|
61
|
+
query_id: zod.z.string().describe("The query ID echoed back, or auto-generated index if not provided").nullable().optional(),
|
|
62
|
+
address_placekey: zod.z.string().describe("Placekey for the address without location name (optional field)").nullable().optional(),
|
|
63
|
+
confidence_score: PlacekeyGetPlacekey_ConfidenceScoreSchema.nullable().optional(),
|
|
64
|
+
building_placekey: zod.z.string().describe("Postal address placekey without suite/apartment number (optional field)").nullable().optional(),
|
|
65
|
+
normalized_address: PlacekeyGetPlacekey_NormalizedAddressSchema.nullable().optional()
|
|
66
|
+
});
|
|
67
|
+
const placekeyGetPlacekey = require_action.action("PLACEKEY_GET_PLACEKEY", {
|
|
68
|
+
slug: "placekey-get-placekey",
|
|
69
|
+
name: "Get Placekey",
|
|
70
|
+
description: "Tool to get a Placekey for a single location using address, coordinates, or POI details. Use when you need to obtain a unique identifier for a physical place with support for address fields, coordinates, location name, and optional metadata for enhanced matching.",
|
|
71
|
+
input: PlacekeyGetPlacekeyInput,
|
|
72
|
+
output: PlacekeyGetPlacekeyOutput
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
exports.placekeyGetPlacekey = placekeyGetPlacekey;
|
|
76
|
+
|
|
77
|
+
//# sourceMappingURL=get-placekey.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekey.cjs","names":["z","action"],"sources":["../../src/actions/get-placekey.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacekeyGetPlacekeyInput: z.ZodTypeAny = z.object({\n city: z.string().describe(\"The city where the place is located\").optional(),\n region: z.string().describe(\"The second-level administrative region (e.g., state in US)\").optional(),\n options: z.object({\n fields: z.array(z.enum([\"address_placekey\", \"building_placekey\", \"confidence_score\", \"normalized_address\", \"geocode\", \"upi\", \"parcel\", \"geoid\", \"gers\"])).describe(\"Additional fields to include in the response (address_placekey, building_placekey, confidence_score, normalized_address, geocode, upi, parcel, geoid, gers)\").optional(),\n strict_name_match: z.boolean().describe(\"If true, requires exact name match for POIs\").optional(),\n strict_address_match: z.boolean().describe(\"If true, requires exact address match\").optional(),\n}).describe(\"Options to customize the response and matching behavior\").optional(),\n latitude: z.number().describe(\"The latitude of the place in WGS-84 coordinates\").optional(),\n query_id: z.string().describe(\"Custom identifier for this query. Will be echoed back in the response.\").optional(),\n longitude: z.number().describe(\"The longitude of the place in WGS-84 coordinates\").optional(),\n postal_code: z.string().describe(\"The postal code for the place\").optional(),\n location_name: z.string().describe(\"The name of the place or business (POI name) for better matching\").optional(),\n place_metadata: z.object({\n website: z.string().describe(\"Web URL for the POI website\").optional(),\n mcc_code: z.string().describe(\"Merchant category code\").optional(),\n store_id: z.string().describe(\"Unique store ID from the brand\").optional(),\n naics_code: z.string().describe(\"4-digit or 6-digit NAICS code for the business\").optional(),\n phone_number: z.string().describe(\"Phone number of the POI for better matching accuracy\").optional(),\n}).describe(\"Additional metadata about the place to improve matching accuracy\").optional(),\n street_address: z.string().describe(\"The street address of the place\").optional(),\n iso_country_code: z.string().describe(\"The ISO 2-letter country code (e.g., US, CA, GB)\").optional(),\n});\nconst PlacekeyGetPlacekey_GeocodeSchema: z.ZodTypeAny = z.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n});\nconst PlacekeyGetPlacekey_ConfidenceScoreSchema: z.ZodTypeAny = z.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]);\nconst PlacekeyGetPlacekey_NormalizedAddressSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"Normalized city name\").nullable().optional(),\n region: z.string().describe(\"Normalized region/state\").nullable().optional(),\n postal_code: z.string().describe(\"Normalized postal code\").nullable().optional(),\n country_code: z.string().describe(\"Normalized country code\").nullable().optional(),\n street_address: z.string().describe(\"Normalized street address\").nullable().optional(),\n});\nexport const PlacekeyGetPlacekeyOutput: z.ZodTypeAny = z.object({\n upi: z.string().describe(\"Universal Parcel Identifier\").nullable().optional(),\n gers: z.string().describe(\"Overture Maps identifier\").nullable().optional(),\n error: z.string().describe(\"Error message if the query could not be processed\").nullable().optional(),\n geoid: z.string().describe(\"Geographic identifier code for census/demographic data\").nullable().optional(),\n parcel: z.string().describe(\"Unique land identifier assigned by local government\").nullable().optional(),\n geocode: PlacekeyGetPlacekey_GeocodeSchema.nullable().optional(),\n placekey: z.string().describe(\"The unique Placekey identifier for the location\").nullable().optional(),\n query_id: z.string().describe(\"The query ID echoed back, or auto-generated index if not provided\").nullable().optional(),\n address_placekey: z.string().describe(\"Placekey for the address without location name (optional field)\").nullable().optional(),\n confidence_score: PlacekeyGetPlacekey_ConfidenceScoreSchema.nullable().optional(),\n building_placekey: z.string().describe(\"Postal address placekey without suite/apartment number (optional field)\").nullable().optional(),\n normalized_address: PlacekeyGetPlacekey_NormalizedAddressSchema.nullable().optional(),\n});\n\nexport const placekeyGetPlacekey = action(\"PLACEKEY_GET_PLACEKEY\", {\n slug: \"placekey-get-placekey\",\n name: \"Get Placekey\",\n description: \"Tool to get a Placekey for a single location using address, coordinates, or POI details. Use when you need to obtain a unique identifier for a physical place with support for address fields,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,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-placekey.d.ts
|
|
4
|
+
declare const PlacekeyGetPlacekeyInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacekeyGetPlacekeyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placekeyGetPlacekey: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placekeyGetPlacekey };
|
|
9
|
+
//# sourceMappingURL=get-placekey.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekey.d.cts","names":[],"sources":["../../src/actions/get-placekey.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAsBvC;AAAA,cAaW,yBAAA,EAA2B,CAAA,CAAE,UAaxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-placekey.d.ts
|
|
4
|
+
declare const PlacekeyGetPlacekeyInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacekeyGetPlacekeyOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placekeyGetPlacekey: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placekeyGetPlacekey };
|
|
9
|
+
//# sourceMappingURL=get-placekey.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekey.d.mts","names":[],"sources":["../../src/actions/get-placekey.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAsBvC;AAAA,cAaW,yBAAA,EAA2B,CAAA,CAAE,UAaxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-placekey.ts
|
|
4
|
+
const PlacekeyGetPlacekeyInput = z.object({
|
|
5
|
+
city: z.string().describe("The city where the place is located").optional(),
|
|
6
|
+
region: z.string().describe("The second-level administrative region (e.g., state in US)").optional(),
|
|
7
|
+
options: z.object({
|
|
8
|
+
fields: z.array(z.enum([
|
|
9
|
+
"address_placekey",
|
|
10
|
+
"building_placekey",
|
|
11
|
+
"confidence_score",
|
|
12
|
+
"normalized_address",
|
|
13
|
+
"geocode",
|
|
14
|
+
"upi",
|
|
15
|
+
"parcel",
|
|
16
|
+
"geoid",
|
|
17
|
+
"gers"
|
|
18
|
+
])).describe("Additional fields to include in the response (address_placekey, building_placekey, confidence_score, normalized_address, geocode, upi, parcel, geoid, gers)").optional(),
|
|
19
|
+
strict_name_match: z.boolean().describe("If true, requires exact name match for POIs").optional(),
|
|
20
|
+
strict_address_match: z.boolean().describe("If true, requires exact address match").optional()
|
|
21
|
+
}).describe("Options to customize the response and matching behavior").optional(),
|
|
22
|
+
latitude: z.number().describe("The latitude of the place in WGS-84 coordinates").optional(),
|
|
23
|
+
query_id: z.string().describe("Custom identifier for this query. Will be echoed back in the response.").optional(),
|
|
24
|
+
longitude: z.number().describe("The longitude of the place in WGS-84 coordinates").optional(),
|
|
25
|
+
postal_code: z.string().describe("The postal code for the place").optional(),
|
|
26
|
+
location_name: z.string().describe("The name of the place or business (POI name) for better matching").optional(),
|
|
27
|
+
place_metadata: z.object({
|
|
28
|
+
website: z.string().describe("Web URL for the POI website").optional(),
|
|
29
|
+
mcc_code: z.string().describe("Merchant category code").optional(),
|
|
30
|
+
store_id: z.string().describe("Unique store ID from the brand").optional(),
|
|
31
|
+
naics_code: z.string().describe("4-digit or 6-digit NAICS code for the business").optional(),
|
|
32
|
+
phone_number: z.string().describe("Phone number of the POI for better matching accuracy").optional()
|
|
33
|
+
}).describe("Additional metadata about the place to improve matching accuracy").optional(),
|
|
34
|
+
street_address: z.string().describe("The street address of the place").optional(),
|
|
35
|
+
iso_country_code: z.string().describe("The ISO 2-letter country code (e.g., US, CA, GB)").optional()
|
|
36
|
+
});
|
|
37
|
+
const PlacekeyGetPlacekey_GeocodeSchema = z.object({
|
|
38
|
+
latitude: z.number().describe("Latitude coordinate").nullable().optional(),
|
|
39
|
+
longitude: z.number().describe("Longitude coordinate").nullable().optional()
|
|
40
|
+
});
|
|
41
|
+
const PlacekeyGetPlacekey_ConfidenceScoreSchema = z.enum([
|
|
42
|
+
"HIGH",
|
|
43
|
+
"MEDIUM",
|
|
44
|
+
"LOW"
|
|
45
|
+
]);
|
|
46
|
+
const PlacekeyGetPlacekey_NormalizedAddressSchema = z.object({
|
|
47
|
+
city: z.string().describe("Normalized city name").nullable().optional(),
|
|
48
|
+
region: z.string().describe("Normalized region/state").nullable().optional(),
|
|
49
|
+
postal_code: z.string().describe("Normalized postal code").nullable().optional(),
|
|
50
|
+
country_code: z.string().describe("Normalized country code").nullable().optional(),
|
|
51
|
+
street_address: z.string().describe("Normalized street address").nullable().optional()
|
|
52
|
+
});
|
|
53
|
+
const placekeyGetPlacekey = action("PLACEKEY_GET_PLACEKEY", {
|
|
54
|
+
slug: "placekey-get-placekey",
|
|
55
|
+
name: "Get Placekey",
|
|
56
|
+
description: "Tool to get a Placekey for a single location using address, coordinates, or POI details. Use when you need to obtain a unique identifier for a physical place with support for address fields, coordinates, location name, and optional metadata for enhanced matching.",
|
|
57
|
+
input: PlacekeyGetPlacekeyInput,
|
|
58
|
+
output: z.object({
|
|
59
|
+
upi: z.string().describe("Universal Parcel Identifier").nullable().optional(),
|
|
60
|
+
gers: z.string().describe("Overture Maps identifier").nullable().optional(),
|
|
61
|
+
error: z.string().describe("Error message if the query could not be processed").nullable().optional(),
|
|
62
|
+
geoid: z.string().describe("Geographic identifier code for census/demographic data").nullable().optional(),
|
|
63
|
+
parcel: z.string().describe("Unique land identifier assigned by local government").nullable().optional(),
|
|
64
|
+
geocode: PlacekeyGetPlacekey_GeocodeSchema.nullable().optional(),
|
|
65
|
+
placekey: z.string().describe("The unique Placekey identifier for the location").nullable().optional(),
|
|
66
|
+
query_id: z.string().describe("The query ID echoed back, or auto-generated index if not provided").nullable().optional(),
|
|
67
|
+
address_placekey: z.string().describe("Placekey for the address without location name (optional field)").nullable().optional(),
|
|
68
|
+
confidence_score: PlacekeyGetPlacekey_ConfidenceScoreSchema.nullable().optional(),
|
|
69
|
+
building_placekey: z.string().describe("Postal address placekey without suite/apartment number (optional field)").nullable().optional(),
|
|
70
|
+
normalized_address: PlacekeyGetPlacekey_NormalizedAddressSchema.nullable().optional()
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
//#endregion
|
|
74
|
+
export { placekeyGetPlacekey };
|
|
75
|
+
|
|
76
|
+
//# sourceMappingURL=get-placekey.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekey.mjs","names":[],"sources":["../../src/actions/get-placekey.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacekeyGetPlacekeyInput: z.ZodTypeAny = z.object({\n city: z.string().describe(\"The city where the place is located\").optional(),\n region: z.string().describe(\"The second-level administrative region (e.g., state in US)\").optional(),\n options: z.object({\n fields: z.array(z.enum([\"address_placekey\", \"building_placekey\", \"confidence_score\", \"normalized_address\", \"geocode\", \"upi\", \"parcel\", \"geoid\", \"gers\"])).describe(\"Additional fields to include in the response (address_placekey, building_placekey, confidence_score, normalized_address, geocode, upi, parcel, geoid, gers)\").optional(),\n strict_name_match: z.boolean().describe(\"If true, requires exact name match for POIs\").optional(),\n strict_address_match: z.boolean().describe(\"If true, requires exact address match\").optional(),\n}).describe(\"Options to customize the response and matching behavior\").optional(),\n latitude: z.number().describe(\"The latitude of the place in WGS-84 coordinates\").optional(),\n query_id: z.string().describe(\"Custom identifier for this query. Will be echoed back in the response.\").optional(),\n longitude: z.number().describe(\"The longitude of the place in WGS-84 coordinates\").optional(),\n postal_code: z.string().describe(\"The postal code for the place\").optional(),\n location_name: z.string().describe(\"The name of the place or business (POI name) for better matching\").optional(),\n place_metadata: z.object({\n website: z.string().describe(\"Web URL for the POI website\").optional(),\n mcc_code: z.string().describe(\"Merchant category code\").optional(),\n store_id: z.string().describe(\"Unique store ID from the brand\").optional(),\n naics_code: z.string().describe(\"4-digit or 6-digit NAICS code for the business\").optional(),\n phone_number: z.string().describe(\"Phone number of the POI for better matching accuracy\").optional(),\n}).describe(\"Additional metadata about the place to improve matching accuracy\").optional(),\n street_address: z.string().describe(\"The street address of the place\").optional(),\n iso_country_code: z.string().describe(\"The ISO 2-letter country code (e.g., US, CA, GB)\").optional(),\n});\nconst PlacekeyGetPlacekey_GeocodeSchema: z.ZodTypeAny = z.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n});\nconst PlacekeyGetPlacekey_ConfidenceScoreSchema: z.ZodTypeAny = z.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]);\nconst PlacekeyGetPlacekey_NormalizedAddressSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"Normalized city name\").nullable().optional(),\n region: z.string().describe(\"Normalized region/state\").nullable().optional(),\n postal_code: z.string().describe(\"Normalized postal code\").nullable().optional(),\n country_code: z.string().describe(\"Normalized country code\").nullable().optional(),\n street_address: z.string().describe(\"Normalized street address\").nullable().optional(),\n});\nexport const PlacekeyGetPlacekeyOutput: z.ZodTypeAny = z.object({\n upi: z.string().describe(\"Universal Parcel Identifier\").nullable().optional(),\n gers: z.string().describe(\"Overture Maps identifier\").nullable().optional(),\n error: z.string().describe(\"Error message if the query could not be processed\").nullable().optional(),\n geoid: z.string().describe(\"Geographic identifier code for census/demographic data\").nullable().optional(),\n parcel: z.string().describe(\"Unique land identifier assigned by local government\").nullable().optional(),\n geocode: PlacekeyGetPlacekey_GeocodeSchema.nullable().optional(),\n placekey: z.string().describe(\"The unique Placekey identifier for the location\").nullable().optional(),\n query_id: z.string().describe(\"The query ID echoed back, or auto-generated index if not provided\").nullable().optional(),\n address_placekey: z.string().describe(\"Placekey for the address without location name (optional field)\").nullable().optional(),\n confidence_score: PlacekeyGetPlacekey_ConfidenceScoreSchema.nullable().optional(),\n building_placekey: z.string().describe(\"Postal address placekey without suite/apartment number (optional field)\").nullable().optional(),\n normalized_address: PlacekeyGetPlacekey_NormalizedAddressSchema.nullable().optional(),\n});\n\nexport const placekeyGetPlacekey = action(\"PLACEKEY_GET_PLACEKEY\", {\n slug: \"placekey-get-placekey\",\n name: \"Get Placekey\",\n description: \"Tool to get a Placekey for a single location using address, coordinates, or POI details. Use when you need to obtain a unique identifier for a physical place with support for address fields, coordinates, location name, and optional metadata for enhanced matching.\",\n input: PlacekeyGetPlacekeyInput,\n output: PlacekeyGetPlacekeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,SAAS,EAAE,OAAO;EAClB,QAAQ,EAAE,MAAM,EAAE,KAAK;GAAC;GAAoB;GAAqB;GAAoB;GAAsB;GAAW;GAAO;GAAU;GAAS;EAAM,CAAC,CAAC,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;EAC3U,mBAAmB,EAAE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EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,kBAAkB,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAChF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,oBAAoB,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACtF,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-placekeys-bulk.ts
|
|
4
|
+
const PlacekeyGetPlacekeysBulkInput = zod.z.object({
|
|
5
|
+
options: zod.z.object({
|
|
6
|
+
strict_name_match: zod.z.boolean().describe("If true, requires exact name match for POIs. Use when precise business/POI name matching is critical.").optional(),
|
|
7
|
+
strict_address_match: zod.z.boolean().describe("If true, requires exact address match. Use when precise matching is critical.").optional()
|
|
8
|
+
}).describe("Options to customize the Placekey response").optional(),
|
|
9
|
+
queries: zod.z.array(zod.z.object({
|
|
10
|
+
city: zod.z.string().describe("The city where the place is located").optional(),
|
|
11
|
+
region: zod.z.string().describe("The second-level administrative region (e.g., state in US)").optional(),
|
|
12
|
+
latitude: zod.z.number().describe("The latitude of the place in WGS-84 coordinates").optional(),
|
|
13
|
+
query_id: zod.z.string().describe("Custom ID that will be echoed back in response for tracking purposes").optional(),
|
|
14
|
+
longitude: zod.z.number().describe("The longitude of the place in WGS-84 coordinates").optional(),
|
|
15
|
+
postal_code: zod.z.string().describe("The postal code for the place").optional(),
|
|
16
|
+
location_name: zod.z.string().describe("The name of the place (POI) for business or landmark lookups").optional(),
|
|
17
|
+
street_address: zod.z.string().describe("The street address of the place").optional(),
|
|
18
|
+
iso_country_code: zod.z.string().describe("The ISO 2-letter Country Code. All queries in a batch must have the same iso_country_code.").optional()
|
|
19
|
+
}).describe("A single location query for bulk Placekey lookup")).describe("Array of location queries. Maximum 100 queries per request. All queries must have the same iso_country_code.")
|
|
20
|
+
}).describe("Request model for bulk Placekey lookup");
|
|
21
|
+
const PlacekeyGetPlacekeysBulk_GeocodeSchema = zod.z.object({
|
|
22
|
+
latitude: zod.z.number().describe("Latitude coordinate").nullable().optional(),
|
|
23
|
+
longitude: zod.z.number().describe("Longitude coordinate").nullable().optional()
|
|
24
|
+
}).describe("Geographic coordinates for the location");
|
|
25
|
+
const PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema = zod.z.enum([
|
|
26
|
+
"HIGH",
|
|
27
|
+
"MEDIUM",
|
|
28
|
+
"LOW"
|
|
29
|
+
]).describe("Confidence level of the Placekey match");
|
|
30
|
+
const PlacekeyGetPlacekeysBulk_NormalizedAddressSchema = zod.z.object({
|
|
31
|
+
city: zod.z.string().describe("Normalized city name").nullable().optional(),
|
|
32
|
+
region: zod.z.string().describe("Normalized region/state").nullable().optional(),
|
|
33
|
+
postal_code: zod.z.string().describe("Normalized postal code").nullable().optional(),
|
|
34
|
+
country_code: zod.z.string().describe("Normalized country code").nullable().optional(),
|
|
35
|
+
street_address: zod.z.string().describe("Normalized street address").nullable().optional()
|
|
36
|
+
}).describe("Structured and parsed representation of the address");
|
|
37
|
+
const PlacekeyGetPlacekeysBulk_PlacekeyResultSchema = zod.z.object({
|
|
38
|
+
upi: zod.z.string().describe("Universal Parcel Identifier").nullable().optional(),
|
|
39
|
+
gers: zod.z.string().describe("Overture Maps identifier").nullable().optional(),
|
|
40
|
+
error: zod.z.string().describe("Error message if the query could not be processed").nullable().optional(),
|
|
41
|
+
geoid: zod.z.string().describe("Geographic identifier code for census/demographic data").nullable().optional(),
|
|
42
|
+
parcel: zod.z.string().describe("Unique land identifier assigned by local government").nullable().optional(),
|
|
43
|
+
geocode: PlacekeyGetPlacekeysBulk_GeocodeSchema.nullable().optional(),
|
|
44
|
+
placekey: zod.z.string().describe("The unique Placekey identifier for the location").nullable().optional(),
|
|
45
|
+
query_id: zod.z.string().describe("The query ID echoed back, or auto-generated index if not provided").nullable().optional(),
|
|
46
|
+
address_placekey: zod.z.string().describe("Placekey for the address without location name (optional field)").nullable().optional(),
|
|
47
|
+
confidence_score: PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema.nullable().optional(),
|
|
48
|
+
building_placekey: zod.z.string().describe("Postal address placekey without suite/apartment number (optional field)").nullable().optional(),
|
|
49
|
+
normalized_address: PlacekeyGetPlacekeysBulk_NormalizedAddressSchema.nullable().optional()
|
|
50
|
+
}).describe("Result for a single Placekey query");
|
|
51
|
+
const PlacekeyGetPlacekeysBulkOutput = zod.z.object({ results: zod.z.array(PlacekeyGetPlacekeysBulk_PlacekeyResultSchema).describe("Array of Placekey results, one for each query in the request") }).describe("Response model containing Placekey results for all queries");
|
|
52
|
+
const placekeyGetPlacekeysBulk = require_action.action("PLACEKEY_GET_PLACEKEYS_BULK", {
|
|
53
|
+
slug: "placekey-get-placekeys-bulk",
|
|
54
|
+
name: "Get Placekeys Bulk",
|
|
55
|
+
description: "Get Placekeys for multiple locations in bulk (up to 100 queries per request). All queries must have the same iso_country_code. Supports address, coordinates, and POI queries with optional query_id for tracking. Returns an array of Placekey results for each query.",
|
|
56
|
+
input: PlacekeyGetPlacekeysBulkInput,
|
|
57
|
+
output: PlacekeyGetPlacekeysBulkOutput
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
exports.placekeyGetPlacekeysBulk = placekeyGetPlacekeysBulk;
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=get-placekeys-bulk.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekeys-bulk.cjs","names":["z","action"],"sources":["../../src/actions/get-placekeys-bulk.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacekeyGetPlacekeysBulkInput: z.ZodTypeAny = z.object({\n options: z.object({\n strict_name_match: z.boolean().describe(\"If true, requires exact name match for POIs. Use when precise business/POI name matching is critical.\").optional(),\n strict_address_match: z.boolean().describe(\"If true, requires exact address match. Use when precise matching is critical.\").optional(),\n}).describe(\"Options to customize the Placekey response\").optional(),\n queries: z.array(z.object({\n city: z.string().describe(\"The city where the place is located\").optional(),\n region: z.string().describe(\"The second-level administrative region (e.g., state in US)\").optional(),\n latitude: z.number().describe(\"The latitude of the place in WGS-84 coordinates\").optional(),\n query_id: z.string().describe(\"Custom ID that will be echoed back in response for tracking purposes\").optional(),\n longitude: z.number().describe(\"The longitude of the place in WGS-84 coordinates\").optional(),\n postal_code: z.string().describe(\"The postal code for the place\").optional(),\n location_name: z.string().describe(\"The name of the place (POI) for business or landmark lookups\").optional(),\n street_address: z.string().describe(\"The street address of the place\").optional(),\n iso_country_code: z.string().describe(\"The ISO 2-letter Country Code. All queries in a batch must have the same iso_country_code.\").optional(),\n}).describe(\"A single location query for bulk Placekey lookup\")).describe(\"Array of location queries. Maximum 100 queries per request. All queries must have the same iso_country_code.\"),\n}).describe(\"Request model for bulk Placekey lookup\");\nconst PlacekeyGetPlacekeysBulk_GeocodeSchema: z.ZodTypeAny = z.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n}).describe(\"Geographic coordinates for the location\");\nconst PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema: z.ZodTypeAny = z.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]).describe(\"Confidence level of the Placekey match\");\nconst PlacekeyGetPlacekeysBulk_NormalizedAddressSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"Normalized city name\").nullable().optional(),\n region: z.string().describe(\"Normalized region/state\").nullable().optional(),\n postal_code: z.string().describe(\"Normalized postal code\").nullable().optional(),\n country_code: z.string().describe(\"Normalized country code\").nullable().optional(),\n street_address: z.string().describe(\"Normalized street address\").nullable().optional(),\n}).describe(\"Structured and parsed representation of the address\");\nconst PlacekeyGetPlacekeysBulk_PlacekeyResultSchema: z.ZodTypeAny = z.object({\n upi: z.string().describe(\"Universal Parcel Identifier\").nullable().optional(),\n gers: z.string().describe(\"Overture Maps identifier\").nullable().optional(),\n error: z.string().describe(\"Error message if the query could not be processed\").nullable().optional(),\n geoid: z.string().describe(\"Geographic identifier code for census/demographic data\").nullable().optional(),\n parcel: z.string().describe(\"Unique land identifier assigned by local government\").nullable().optional(),\n geocode: PlacekeyGetPlacekeysBulk_GeocodeSchema.nullable().optional(),\n placekey: z.string().describe(\"The unique Placekey identifier for the location\").nullable().optional(),\n query_id: z.string().describe(\"The query ID echoed back, or auto-generated index if not provided\").nullable().optional(),\n address_placekey: z.string().describe(\"Placekey for the address without location name (optional field)\").nullable().optional(),\n confidence_score: PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema.nullable().optional(),\n building_placekey: z.string().describe(\"Postal address placekey without suite/apartment number (optional field)\").nullable().optional(),\n normalized_address: PlacekeyGetPlacekeysBulk_NormalizedAddressSchema.nullable().optional(),\n}).describe(\"Result for a single Placekey query\");\nexport const PlacekeyGetPlacekeysBulkOutput: z.ZodTypeAny = z.object({\n results: z.array(PlacekeyGetPlacekeysBulk_PlacekeyResultSchema).describe(\"Array of Placekey results, one for each query in the request\"),\n}).describe(\"Response model containing Placekey results for all queries\");\n\nexport const placekeyGetPlacekeysBulk = action(\"PLACEKEY_GET_PLACEKEYS_BULK\", {\n slug: \"placekey-get-placekeys-bulk\",\n name: \"Get Placekeys Bulk\",\n description: \"Get Placekeys for multiple locations in bulk (up to 100 queries per request). All queries must have the same iso_country_code. Supports address, coordinates, and POI queries with optional query_id for tracking. Returns an array of Placekey results for each query.\",\n input: PlacekeyGetPlacekeysBulkInput,\n output: PlacekeyGetPlacekeysBulkOutput,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,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,SAAS,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,kBAAkB,+CAA+C,SAAS,CAAC,CAAC,SAAS;CACrF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,oBAAoB,iDAAiD,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,SAASA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,8DAA8D,EACzI,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-placekeys-bulk.d.ts
|
|
4
|
+
declare const PlacekeyGetPlacekeysBulkInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacekeyGetPlacekeysBulkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placekeyGetPlacekeysBulk: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placekeyGetPlacekeysBulk };
|
|
9
|
+
//# sourceMappingURL=get-placekeys-bulk.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekeys-bulk.d.cts","names":[],"sources":["../../src/actions/get-placekeys-bulk.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAgBO;AAAA,cA2BxC,8BAAA,EAAgC,CAAA,CAAE,UAE0B;AAAA,cAE5D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-placekeys-bulk.d.ts
|
|
4
|
+
declare const PlacekeyGetPlacekeysBulkInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacekeyGetPlacekeysBulkOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placekeyGetPlacekeysBulk: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placekeyGetPlacekeysBulk };
|
|
9
|
+
//# sourceMappingURL=get-placekeys-bulk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekeys-bulk.d.mts","names":[],"sources":["../../src/actions/get-placekeys-bulk.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAgBO;AAAA,cA2BxC,8BAAA,EAAgC,CAAA,CAAE,UAE0B;AAAA,cAE5D,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-placekeys-bulk.ts
|
|
4
|
+
const PlacekeyGetPlacekeysBulkInput = z.object({
|
|
5
|
+
options: z.object({
|
|
6
|
+
strict_name_match: z.boolean().describe("If true, requires exact name match for POIs. Use when precise business/POI name matching is critical.").optional(),
|
|
7
|
+
strict_address_match: z.boolean().describe("If true, requires exact address match. Use when precise matching is critical.").optional()
|
|
8
|
+
}).describe("Options to customize the Placekey response").optional(),
|
|
9
|
+
queries: z.array(z.object({
|
|
10
|
+
city: z.string().describe("The city where the place is located").optional(),
|
|
11
|
+
region: z.string().describe("The second-level administrative region (e.g., state in US)").optional(),
|
|
12
|
+
latitude: z.number().describe("The latitude of the place in WGS-84 coordinates").optional(),
|
|
13
|
+
query_id: z.string().describe("Custom ID that will be echoed back in response for tracking purposes").optional(),
|
|
14
|
+
longitude: z.number().describe("The longitude of the place in WGS-84 coordinates").optional(),
|
|
15
|
+
postal_code: z.string().describe("The postal code for the place").optional(),
|
|
16
|
+
location_name: z.string().describe("The name of the place (POI) for business or landmark lookups").optional(),
|
|
17
|
+
street_address: z.string().describe("The street address of the place").optional(),
|
|
18
|
+
iso_country_code: z.string().describe("The ISO 2-letter Country Code. All queries in a batch must have the same iso_country_code.").optional()
|
|
19
|
+
}).describe("A single location query for bulk Placekey lookup")).describe("Array of location queries. Maximum 100 queries per request. All queries must have the same iso_country_code.")
|
|
20
|
+
}).describe("Request model for bulk Placekey lookup");
|
|
21
|
+
const PlacekeyGetPlacekeysBulk_GeocodeSchema = z.object({
|
|
22
|
+
latitude: z.number().describe("Latitude coordinate").nullable().optional(),
|
|
23
|
+
longitude: z.number().describe("Longitude coordinate").nullable().optional()
|
|
24
|
+
}).describe("Geographic coordinates for the location");
|
|
25
|
+
const PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema = z.enum([
|
|
26
|
+
"HIGH",
|
|
27
|
+
"MEDIUM",
|
|
28
|
+
"LOW"
|
|
29
|
+
]).describe("Confidence level of the Placekey match");
|
|
30
|
+
const PlacekeyGetPlacekeysBulk_NormalizedAddressSchema = z.object({
|
|
31
|
+
city: z.string().describe("Normalized city name").nullable().optional(),
|
|
32
|
+
region: z.string().describe("Normalized region/state").nullable().optional(),
|
|
33
|
+
postal_code: z.string().describe("Normalized postal code").nullable().optional(),
|
|
34
|
+
country_code: z.string().describe("Normalized country code").nullable().optional(),
|
|
35
|
+
street_address: z.string().describe("Normalized street address").nullable().optional()
|
|
36
|
+
}).describe("Structured and parsed representation of the address");
|
|
37
|
+
const PlacekeyGetPlacekeysBulk_PlacekeyResultSchema = z.object({
|
|
38
|
+
upi: z.string().describe("Universal Parcel Identifier").nullable().optional(),
|
|
39
|
+
gers: z.string().describe("Overture Maps identifier").nullable().optional(),
|
|
40
|
+
error: z.string().describe("Error message if the query could not be processed").nullable().optional(),
|
|
41
|
+
geoid: z.string().describe("Geographic identifier code for census/demographic data").nullable().optional(),
|
|
42
|
+
parcel: z.string().describe("Unique land identifier assigned by local government").nullable().optional(),
|
|
43
|
+
geocode: PlacekeyGetPlacekeysBulk_GeocodeSchema.nullable().optional(),
|
|
44
|
+
placekey: z.string().describe("The unique Placekey identifier for the location").nullable().optional(),
|
|
45
|
+
query_id: z.string().describe("The query ID echoed back, or auto-generated index if not provided").nullable().optional(),
|
|
46
|
+
address_placekey: z.string().describe("Placekey for the address without location name (optional field)").nullable().optional(),
|
|
47
|
+
confidence_score: PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema.nullable().optional(),
|
|
48
|
+
building_placekey: z.string().describe("Postal address placekey without suite/apartment number (optional field)").nullable().optional(),
|
|
49
|
+
normalized_address: PlacekeyGetPlacekeysBulk_NormalizedAddressSchema.nullable().optional()
|
|
50
|
+
}).describe("Result for a single Placekey query");
|
|
51
|
+
const placekeyGetPlacekeysBulk = action("PLACEKEY_GET_PLACEKEYS_BULK", {
|
|
52
|
+
slug: "placekey-get-placekeys-bulk",
|
|
53
|
+
name: "Get Placekeys Bulk",
|
|
54
|
+
description: "Get Placekeys for multiple locations in bulk (up to 100 queries per request). All queries must have the same iso_country_code. Supports address, coordinates, and POI queries with optional query_id for tracking. Returns an array of Placekey results for each query.",
|
|
55
|
+
input: PlacekeyGetPlacekeysBulkInput,
|
|
56
|
+
output: z.object({ results: z.array(PlacekeyGetPlacekeysBulk_PlacekeyResultSchema).describe("Array of Placekey results, one for each query in the request") }).describe("Response model containing Placekey results for all queries")
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
export { placekeyGetPlacekeysBulk };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=get-placekeys-bulk.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-placekeys-bulk.mjs","names":[],"sources":["../../src/actions/get-placekeys-bulk.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacekeyGetPlacekeysBulkInput: z.ZodTypeAny = z.object({\n options: z.object({\n strict_name_match: z.boolean().describe(\"If true, requires exact name match for POIs. Use when precise business/POI name matching is critical.\").optional(),\n strict_address_match: z.boolean().describe(\"If true, requires exact address match. Use when precise matching is critical.\").optional(),\n}).describe(\"Options to customize the Placekey response\").optional(),\n queries: z.array(z.object({\n city: z.string().describe(\"The city where the place is located\").optional(),\n region: z.string().describe(\"The second-level administrative region (e.g., state in US)\").optional(),\n latitude: z.number().describe(\"The latitude of the place in WGS-84 coordinates\").optional(),\n query_id: z.string().describe(\"Custom ID that will be echoed back in response for tracking purposes\").optional(),\n longitude: z.number().describe(\"The longitude of the place in WGS-84 coordinates\").optional(),\n postal_code: z.string().describe(\"The postal code for the place\").optional(),\n location_name: z.string().describe(\"The name of the place (POI) for business or landmark lookups\").optional(),\n street_address: z.string().describe(\"The street address of the place\").optional(),\n iso_country_code: z.string().describe(\"The ISO 2-letter Country Code. All queries in a batch must have the same iso_country_code.\").optional(),\n}).describe(\"A single location query for bulk Placekey lookup\")).describe(\"Array of location queries. Maximum 100 queries per request. All queries must have the same iso_country_code.\"),\n}).describe(\"Request model for bulk Placekey lookup\");\nconst PlacekeyGetPlacekeysBulk_GeocodeSchema: z.ZodTypeAny = z.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n}).describe(\"Geographic coordinates for the location\");\nconst PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema: z.ZodTypeAny = z.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]).describe(\"Confidence level of the Placekey match\");\nconst PlacekeyGetPlacekeysBulk_NormalizedAddressSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"Normalized city name\").nullable().optional(),\n region: z.string().describe(\"Normalized region/state\").nullable().optional(),\n postal_code: z.string().describe(\"Normalized postal code\").nullable().optional(),\n country_code: z.string().describe(\"Normalized country code\").nullable().optional(),\n street_address: z.string().describe(\"Normalized street address\").nullable().optional(),\n}).describe(\"Structured and parsed representation of the address\");\nconst PlacekeyGetPlacekeysBulk_PlacekeyResultSchema: z.ZodTypeAny = z.object({\n upi: z.string().describe(\"Universal Parcel Identifier\").nullable().optional(),\n gers: z.string().describe(\"Overture Maps identifier\").nullable().optional(),\n error: z.string().describe(\"Error message if the query could not be processed\").nullable().optional(),\n geoid: z.string().describe(\"Geographic identifier code for census/demographic data\").nullable().optional(),\n parcel: z.string().describe(\"Unique land identifier assigned by local government\").nullable().optional(),\n geocode: PlacekeyGetPlacekeysBulk_GeocodeSchema.nullable().optional(),\n placekey: z.string().describe(\"The unique Placekey identifier for the location\").nullable().optional(),\n query_id: z.string().describe(\"The query ID echoed back, or auto-generated index if not provided\").nullable().optional(),\n address_placekey: z.string().describe(\"Placekey for the address without location name (optional field)\").nullable().optional(),\n confidence_score: PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema.nullable().optional(),\n building_placekey: z.string().describe(\"Postal address placekey without suite/apartment number (optional field)\").nullable().optional(),\n normalized_address: PlacekeyGetPlacekeysBulk_NormalizedAddressSchema.nullable().optional(),\n}).describe(\"Result for a single Placekey query\");\nexport const PlacekeyGetPlacekeysBulkOutput: z.ZodTypeAny = z.object({\n results: z.array(PlacekeyGetPlacekeysBulk_PlacekeyResultSchema).describe(\"Array of Placekey results, one for each query in the request\"),\n}).describe(\"Response model containing Placekey results for all queries\");\n\nexport const placekeyGetPlacekeysBulk = action(\"PLACEKEY_GET_PLACEKEYS_BULK\", {\n slug: \"placekey-get-placekeys-bulk\",\n name: \"Get Placekeys Bulk\",\n description: \"Get Placekeys for multiple locations in bulk (up to 100 queries per request). All queries must have the same iso_country_code. Supports address, coordinates, and POI queries with optional query_id for tracking. Returns an array of Placekey results for each query.\",\n input: PlacekeyGetPlacekeysBulkInput,\n output: PlacekeyGetPlacekeysBulkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,SAAS,EAAE,OAAO;EAClB,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EAC1J,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACvI,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjE,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC/G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC5F,a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+1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_get_geocode_from_address = require("./get-geocode-from-address.cjs");
|
|
3
|
+
const require_get_placekey = require("./get-placekey.cjs");
|
|
4
|
+
const require_get_placekey_from_address = require("./get-placekey-from-address.cjs");
|
|
5
|
+
const require_get_placekeys_bulk = require("./get-placekeys-bulk.cjs");
|
|
6
|
+
exports.placekeyGetGeocodeFromAddress = require_get_geocode_from_address.placekeyGetGeocodeFromAddress;
|
|
7
|
+
exports.placekeyGetPlacekey = require_get_placekey.placekeyGetPlacekey;
|
|
8
|
+
exports.placekeyGetPlacekeyFromAddress = require_get_placekey_from_address.placekeyGetPlacekeyFromAddress;
|
|
9
|
+
exports.placekeyGetPlacekeysBulk = require_get_placekeys_bulk.placekeyGetPlacekeysBulk;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { placekeyGetGeocodeFromAddress } from "./get-geocode-from-address.cjs";
|
|
2
|
+
import { placekeyGetPlacekey } from "./get-placekey.cjs";
|
|
3
|
+
import { placekeyGetPlacekeyFromAddress } from "./get-placekey-from-address.cjs";
|
|
4
|
+
import { placekeyGetPlacekeysBulk } from "./get-placekeys-bulk.cjs";
|
|
5
|
+
export { placekeyGetGeocodeFromAddress, placekeyGetPlacekey, placekeyGetPlacekeyFromAddress, placekeyGetPlacekeysBulk };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { placekeyGetGeocodeFromAddress } from "./get-geocode-from-address.mjs";
|
|
2
|
+
import { placekeyGetPlacekey } from "./get-placekey.mjs";
|
|
3
|
+
import { placekeyGetPlacekeyFromAddress } from "./get-placekey-from-address.mjs";
|
|
4
|
+
import { placekeyGetPlacekeysBulk } from "./get-placekeys-bulk.mjs";
|
|
5
|
+
export { placekeyGetGeocodeFromAddress, placekeyGetPlacekey, placekeyGetPlacekeyFromAddress, placekeyGetPlacekeysBulk };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { placekeyGetGeocodeFromAddress } from "./get-geocode-from-address.mjs";
|
|
2
|
+
import { placekeyGetPlacekey } from "./get-placekey.mjs";
|
|
3
|
+
import { placekeyGetPlacekeyFromAddress } from "./get-placekey-from-address.mjs";
|
|
4
|
+
import { placekeyGetPlacekeysBulk } from "./get-placekeys-bulk.mjs";
|
|
5
|
+
export { placekeyGetGeocodeFromAddress, placekeyGetPlacekey, placekeyGetPlacekeyFromAddress, placekeyGetPlacekeysBulk };
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const placekey = defineApp({\n slug: \"placekey\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,YAAA,uCAAA,CAAA,CAAA,UAAA,CAAqB;CAChC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,QAAA,6BAAQ,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,QAAA,6BAAQ,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const placekey = defineApp({\n slug: \"placekey\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,WAAW,UAAU;CAChC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const placekeyCatalog = {
|
|
4
|
+
"slug": "placekey",
|
|
5
|
+
"name": "Placekey",
|
|
6
|
+
"description": "Placekey standardizes location data by assigning unique IDs to physical addresses, simplifying address matching and enabling data sharing across platforms",
|
|
7
|
+
"category": "Analytics",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/placekey",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.placekeyCatalog = placekeyCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const placekeyCatalog = {\n \"slug\": \"placekey\",\n \"name\": \"Placekey\",\n \"description\": \"Placekey standardizes location data by assigning unique IDs to physical addresses, simplifying address matching and enabling data sharing across platforms\",\n \"category\": \"Analytics\",\n \"logo\": \"https://logos.composio.dev/api/placekey\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const placekeyCatalog: {
|
|
4
|
+
readonly slug: "placekey";
|
|
5
|
+
readonly name: "Placekey";
|
|
6
|
+
readonly description: "Placekey standardizes location data by assigning unique IDs to physical addresses, simplifying address matching and enabling data sharing across platforms";
|
|
7
|
+
readonly category: "Analytics";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/placekey";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { placekeyCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,eAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const placekeyCatalog: {
|
|
4
|
+
readonly slug: "placekey";
|
|
5
|
+
readonly name: "Placekey";
|
|
6
|
+
readonly description: "Placekey standardizes location data by assigning unique IDs to physical addresses, simplifying address matching and enabling data sharing across platforms";
|
|
7
|
+
readonly category: "Analytics";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/placekey";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { placekeyCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,eAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const placekeyCatalog = {
|
|
4
|
+
"slug": "placekey",
|
|
5
|
+
"name": "Placekey",
|
|
6
|
+
"description": "Placekey standardizes location data by assigning unique IDs to physical addresses, simplifying address matching and enabling data sharing across platforms",
|
|
7
|
+
"category": "Analytics",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/placekey",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { placekeyCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const placekeyCatalog = {\n \"slug\": \"placekey\",\n \"name\": \"Placekey\",\n \"description\": \"Placekey standardizes location data by assigning unique IDs to physical addresses, simplifying address matching and enabling data sharing across platforms\",\n \"category\": \"Analytics\",\n \"logo\": \"https://logos.composio.dev/api/placekey\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "placekey";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executePlacekeyTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executePlacekeyTool = executePlacekeyTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"placekey\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executePlacekeyTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,oBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "placekey";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executePlacekeyTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executePlacekeyTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"placekey\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executePlacekeyTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,oBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_get_geocode_from_address = require("./actions/get-geocode-from-address.cjs");
|
|
5
|
+
const require_get_placekey = require("./actions/get-placekey.cjs");
|
|
6
|
+
const require_get_placekey_from_address = require("./actions/get-placekey-from-address.cjs");
|
|
7
|
+
const require_get_placekeys_bulk = require("./actions/get-placekeys-bulk.cjs");
|
|
8
|
+
require("./actions/index.cjs");
|
|
9
|
+
exports.placekey = require_app.placekey;
|
|
10
|
+
exports.placekeyCatalog = require_catalog.placekeyCatalog;
|
|
11
|
+
exports.placekeyGetGeocodeFromAddress = require_get_geocode_from_address.placekeyGetGeocodeFromAddress;
|
|
12
|
+
exports.placekeyGetPlacekey = require_get_placekey.placekeyGetPlacekey;
|
|
13
|
+
exports.placekeyGetPlacekeyFromAddress = require_get_placekey_from_address.placekeyGetPlacekeyFromAddress;
|
|
14
|
+
exports.placekeyGetPlacekeysBulk = require_get_placekeys_bulk.placekeyGetPlacekeysBulk;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { placekeyGetGeocodeFromAddress } from "./actions/get-geocode-from-address.cjs";
|
|
2
|
+
import { placekeyGetPlacekey } from "./actions/get-placekey.cjs";
|
|
3
|
+
import { placekeyGetPlacekeyFromAddress } from "./actions/get-placekey-from-address.cjs";
|
|
4
|
+
import { placekeyGetPlacekeysBulk } from "./actions/get-placekeys-bulk.cjs";
|
|
5
|
+
import { placekey } from "./app.cjs";
|
|
6
|
+
import { placekeyCatalog } from "./catalog.cjs";
|
|
7
|
+
export { placekey, placekeyCatalog, placekeyGetGeocodeFromAddress, placekeyGetPlacekey, placekeyGetPlacekeyFromAddress, placekeyGetPlacekeysBulk };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { placekeyGetGeocodeFromAddress } from "./actions/get-geocode-from-address.mjs";
|
|
2
|
+
import { placekeyGetPlacekey } from "./actions/get-placekey.mjs";
|
|
3
|
+
import { placekeyGetPlacekeyFromAddress } from "./actions/get-placekey-from-address.mjs";
|
|
4
|
+
import { placekeyGetPlacekeysBulk } from "./actions/get-placekeys-bulk.mjs";
|
|
5
|
+
import { placekey } from "./app.mjs";
|
|
6
|
+
import { placekeyCatalog } from "./catalog.mjs";
|
|
7
|
+
export { placekey, placekeyCatalog, placekeyGetGeocodeFromAddress, placekeyGetPlacekey, placekeyGetPlacekeyFromAddress, placekeyGetPlacekeysBulk };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { placekey } from "./app.mjs";
|
|
2
|
+
import { placekeyCatalog } from "./catalog.mjs";
|
|
3
|
+
import { placekeyGetGeocodeFromAddress } from "./actions/get-geocode-from-address.mjs";
|
|
4
|
+
import { placekeyGetPlacekey } from "./actions/get-placekey.mjs";
|
|
5
|
+
import { placekeyGetPlacekeyFromAddress } from "./actions/get-placekey-from-address.mjs";
|
|
6
|
+
import { placekeyGetPlacekeysBulk } from "./actions/get-placekeys-bulk.mjs";
|
|
7
|
+
import "./actions/index.mjs";
|
|
8
|
+
export { placekey, placekeyCatalog, placekeyGetGeocodeFromAddress, placekeyGetPlacekey, placekeyGetPlacekeyFromAddress, placekeyGetPlacekeysBulk };
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@keystrokehq/placekey",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public",
|
|
6
|
+
"registry": "https://registry.npmjs.org"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/keystrokehq/keystroke.git",
|
|
11
|
+
"directory": "packages/integrations/placekey"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./actions": {
|
|
28
|
+
"types": "./dist/actions/index.d.mts",
|
|
29
|
+
"import": "./dist/actions/index.mjs",
|
|
30
|
+
"require": "./dist/actions/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@keystrokehq/keystroke": "^0.1.4",
|
|
35
|
+
"zod": "^4.4.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@keystrokehq/keystroke": "link:../../keystroke",
|
|
39
|
+
"@types/node": "^25.9.1",
|
|
40
|
+
"tsdown": "^0.22.0",
|
|
41
|
+
"typescript": "^6.0.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"dev": "tsdown --watch --no-clean",
|
|
47
|
+
"typecheck": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|