@keystrokehq/placekey 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/get-geocode-from-address.cjs +3 -3
- package/dist/actions/get-geocode-from-address.cjs.map +1 -1
- package/dist/actions/get-geocode-from-address.d.cts +3 -3
- package/dist/actions/get-geocode-from-address.d.mts +3 -3
- package/dist/actions/get-geocode-from-address.mjs +3 -3
- package/dist/actions/get-geocode-from-address.mjs.map +1 -1
- package/dist/actions/get-placekey-from-address.cjs +1 -1
- package/dist/actions/get-placekey-from-address.cjs.map +1 -1
- package/dist/actions/get-placekey-from-address.d.cts +1 -1
- package/dist/actions/get-placekey-from-address.d.mts +1 -1
- package/dist/actions/get-placekey-from-address.mjs +1 -1
- package/dist/actions/get-placekey-from-address.mjs.map +1 -1
- package/dist/actions/get-placekey.cjs +3 -3
- package/dist/actions/get-placekey.cjs.map +1 -1
- package/dist/actions/get-placekey.d.cts +3 -3
- package/dist/actions/get-placekey.d.mts +3 -3
- package/dist/actions/get-placekey.mjs +3 -3
- package/dist/actions/get-placekey.mjs.map +1 -1
- package/dist/actions/get-placekeys-bulk.cjs +5 -5
- package/dist/actions/get-placekeys-bulk.cjs.map +1 -1
- package/dist/actions/get-placekeys-bulk.d.cts +6 -5
- package/dist/actions/get-placekeys-bulk.d.mts +6 -5
- package/dist/actions/get-placekeys-bulk.mjs +5 -5
- package/dist/actions/get-placekeys-bulk.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -11,16 +11,16 @@ const PlacekeyGetGeocodeFromAddressInput = zod.z.object({
|
|
|
11
11
|
const PlacekeyGetGeocodeFromAddress_LocationSchema = zod.z.object({
|
|
12
12
|
lat: zod.z.number().describe("Latitude of the location").nullable(),
|
|
13
13
|
lng: zod.z.number().describe("Longitude of the location").nullable()
|
|
14
|
-
});
|
|
14
|
+
}).passthrough();
|
|
15
15
|
const PlacekeyGetGeocodeFromAddress_GeocodeSchema = zod.z.object({
|
|
16
16
|
location: PlacekeyGetGeocodeFromAddress_LocationSchema.nullable(),
|
|
17
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)").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const PlacekeyGetGeocodeFromAddressOutput = zod.z.object({
|
|
20
20
|
geocode: PlacekeyGetGeocodeFromAddress_GeocodeSchema.nullable(),
|
|
21
21
|
placekey: zod.z.string().describe("Unique Placekey identifier").nullable(),
|
|
22
22
|
query_id: zod.z.string().describe("Unique identifier for the query").nullable()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const placekeyGetGeocodeFromAddress = require_action.action("PLACEKEY_GET_GEOCODE_FROM_ADDRESS", {
|
|
25
25
|
slug: "placekey-get-geocode-from-address",
|
|
26
26
|
name: "Get Geocode From Address",
|
|
@@ -1 +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.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.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lng: z.number().describe(\"Longitude of the location\").nullable(),\n});\nconst PlacekeyGetGeocodeFromAddress_GeocodeSchema = 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)\").nullable(),\n});\nexport const PlacekeyGetGeocodeFromAddressOutput = z.object({\n geocode: PlacekeyGetGeocodeFromAddress_GeocodeSchema.nullable(),\n placekey: z.string().describe(\"Unique Placekey identifier\").nullable(),\n query_id: z.string().describe(\"Unique identifier for the query\").nullable(),\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,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,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,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACjE,CAAC;
|
|
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.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.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lng: z.number().describe(\"Longitude of the location\").nullable(),\n}).passthrough();\nconst PlacekeyGetGeocodeFromAddress_GeocodeSchema = 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)\").nullable(),\n}).passthrough();\nexport const PlacekeyGetGeocodeFromAddressOutput = z.object({\n geocode: PlacekeyGetGeocodeFromAddress_GeocodeSchema.nullable(),\n placekey: z.string().describe(\"Unique Placekey identifier\").nullable(),\n query_id: z.string().describe(\"Unique identifier for the query\").nullable(),\n}).passthrough();\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,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,W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
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
17
|
location_type: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
placekey: z.ZodNullable<z.ZodString>;
|
|
20
20
|
query_id: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const placekeyGetGeocodeFromAddress: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
city: string;
|
|
24
24
|
region: string;
|
|
@@ -13,12 +13,12 @@ declare const PlacekeyGetGeocodeFromAddressOutput: z.ZodObject<{
|
|
|
13
13
|
location: z.ZodNullable<z.ZodObject<{
|
|
14
14
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
17
|
location_type: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
placekey: z.ZodNullable<z.ZodString>;
|
|
20
20
|
query_id: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const placekeyGetGeocodeFromAddress: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
city: string;
|
|
24
24
|
region: string;
|
|
@@ -11,11 +11,11 @@ const PlacekeyGetGeocodeFromAddressInput = z.object({
|
|
|
11
11
|
const PlacekeyGetGeocodeFromAddress_LocationSchema = z.object({
|
|
12
12
|
lat: z.number().describe("Latitude of the location").nullable(),
|
|
13
13
|
lng: z.number().describe("Longitude of the location").nullable()
|
|
14
|
-
});
|
|
14
|
+
}).passthrough();
|
|
15
15
|
const PlacekeyGetGeocodeFromAddress_GeocodeSchema = z.object({
|
|
16
16
|
location: PlacekeyGetGeocodeFromAddress_LocationSchema.nullable(),
|
|
17
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)").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const placekeyGetGeocodeFromAddress = action("PLACEKEY_GET_GEOCODE_FROM_ADDRESS", {
|
|
20
20
|
slug: "placekey-get-geocode-from-address",
|
|
21
21
|
name: "Get Geocode From Address",
|
|
@@ -25,7 +25,7 @@ const placekeyGetGeocodeFromAddress = action("PLACEKEY_GET_GEOCODE_FROM_ADDRESS"
|
|
|
25
25
|
geocode: PlacekeyGetGeocodeFromAddress_GeocodeSchema.nullable(),
|
|
26
26
|
placekey: z.string().describe("Unique Placekey identifier").nullable(),
|
|
27
27
|
query_id: z.string().describe("Unique identifier for the query").nullable()
|
|
28
|
-
})
|
|
28
|
+
}).passthrough()
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { placekeyGetGeocodeFromAddress };
|
|
@@ -1 +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.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.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lng: z.number().describe(\"Longitude of the location\").nullable(),\n});\nconst PlacekeyGetGeocodeFromAddress_GeocodeSchema = 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)\").nullable(),\n});\nexport const PlacekeyGetGeocodeFromAddressOutput = z.object({\n geocode: PlacekeyGetGeocodeFromAddress_GeocodeSchema.nullable(),\n placekey: z.string().describe(\"Unique Placekey identifier\").nullable(),\n query_id: z.string().describe(\"Unique identifier for the query\").nullable(),\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,qCAAqC,EAAE,OAAO;CACzD,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,+CAA+C,EAAE,OAAO;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACjE,CAAC;
|
|
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.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.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lng: z.number().describe(\"Longitude of the location\").nullable(),\n}).passthrough();\nconst PlacekeyGetGeocodeFromAddress_GeocodeSchema = 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)\").nullable(),\n}).passthrough();\nexport const PlacekeyGetGeocodeFromAddressOutput = z.object({\n geocode: PlacekeyGetGeocodeFromAddress_GeocodeSchema.nullable(),\n placekey: z.string().describe(\"Unique Placekey identifier\").nullable(),\n query_id: z.string().describe(\"Unique identifier for the query\").nullable(),\n}).passthrough();\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,qCAAqC,EAAE,OAAO;CACzD,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,+CAA+C,EAAE,OAAO;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO;CAC3D,UAAU,6CAA6C,SAAS;CAChE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iPAAiP,CAAC,CAAC,SAAS;AACjS,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,SAAS,4CAA4C,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -13,7 +13,7 @@ const PlacekeyGetPlacekeyFromAddressOutput = zod.z.object({
|
|
|
13
13
|
error: zod.z.string().describe("Error message if the request could not be processed").nullable().optional(),
|
|
14
14
|
placekey: zod.z.string().describe("A unique identifier for the location in Placekey's format").nullable().optional(),
|
|
15
15
|
query_id: zod.z.string().describe("An identifier for the query").nullable()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const placekeyGetPlacekeyFromAddress = require_action.action("PLACEKEY_GET_PLACEKEY_FROM_ADDRESS", {
|
|
18
18
|
slug: "placekey-get-placekey-from-address",
|
|
19
19
|
name: "Get placekey from address",
|
|
@@ -1 +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.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.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\").nullable(),\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,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,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,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,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,CAAC,CAAC,SAAS;AACxE,CAAC;
|
|
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.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.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\").nullable(),\n}).passthrough();\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,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,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,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,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,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,7 +13,7 @@ declare const PlacekeyGetPlacekeyFromAddressOutput: z.ZodObject<{
|
|
|
13
13
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
placekey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
query_id: z.ZodNullable<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const placekeyGetPlacekeyFromAddress: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
city: string;
|
|
19
19
|
region: string;
|
|
@@ -13,7 +13,7 @@ declare const PlacekeyGetPlacekeyFromAddressOutput: z.ZodObject<{
|
|
|
13
13
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
placekey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
query_id: z.ZodNullable<z.ZodString>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const placekeyGetPlacekeyFromAddress: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
18
|
city: string;
|
|
19
19
|
region: string;
|
|
@@ -16,7 +16,7 @@ const placekeyGetPlacekeyFromAddress = action("PLACEKEY_GET_PLACEKEY_FROM_ADDRES
|
|
|
16
16
|
error: z.string().describe("Error message if the request could not be processed").nullable().optional(),
|
|
17
17
|
placekey: z.string().describe("A unique identifier for the location in Placekey's format").nullable().optional(),
|
|
18
18
|
query_id: z.string().describe("An identifier for the query").nullable()
|
|
19
|
-
})
|
|
19
|
+
}).passthrough()
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { placekeyGetPlacekeyFromAddress };
|
|
@@ -1 +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.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.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\").nullable(),\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,OAlBiD,EAAE,OAAO;EAC1D,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,QAXkD,EAAE,OAAO;EAC3D,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,CAAC,CAAC,SAAS;CACxE,
|
|
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.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.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\").nullable(),\n}).passthrough();\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,OAlBiD,EAAE,OAAO;EAC1D,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,QAXkD,EAAE,OAAO;EAC3D,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,CAAC,CAAC,SAAS;CACxE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -37,7 +37,7 @@ const PlacekeyGetPlacekeyInput = zod.z.object({
|
|
|
37
37
|
const PlacekeyGetPlacekey_GeocodeSchema = zod.z.object({
|
|
38
38
|
latitude: zod.z.number().describe("Latitude coordinate").nullable().optional(),
|
|
39
39
|
longitude: zod.z.number().describe("Longitude coordinate").nullable().optional()
|
|
40
|
-
});
|
|
40
|
+
}).passthrough();
|
|
41
41
|
const PlacekeyGetPlacekey_ConfidenceScoreSchema = zod.z.enum([
|
|
42
42
|
"HIGH",
|
|
43
43
|
"MEDIUM",
|
|
@@ -49,7 +49,7 @@ const PlacekeyGetPlacekey_NormalizedAddressSchema = zod.z.object({
|
|
|
49
49
|
postal_code: zod.z.string().describe("Normalized postal code").nullable().optional(),
|
|
50
50
|
country_code: zod.z.string().describe("Normalized country code").nullable().optional(),
|
|
51
51
|
street_address: zod.z.string().describe("Normalized street address").nullable().optional()
|
|
52
|
-
});
|
|
52
|
+
}).passthrough();
|
|
53
53
|
const PlacekeyGetPlacekeyOutput = zod.z.object({
|
|
54
54
|
upi: zod.z.string().describe("Universal Parcel Identifier").nullable().optional(),
|
|
55
55
|
gers: zod.z.string().describe("Overture Maps identifier").nullable().optional(),
|
|
@@ -63,7 +63,7 @@ const PlacekeyGetPlacekeyOutput = zod.z.object({
|
|
|
63
63
|
confidence_score: PlacekeyGetPlacekey_ConfidenceScoreSchema.nullable().optional(),
|
|
64
64
|
building_placekey: zod.z.string().describe("Postal address placekey without suite/apartment number (optional field)").nullable().optional(),
|
|
65
65
|
normalized_address: PlacekeyGetPlacekey_NormalizedAddressSchema.nullable().optional()
|
|
66
|
-
});
|
|
66
|
+
}).passthrough();
|
|
67
67
|
const placekeyGetPlacekey = require_action.action("PLACEKEY_GET_PLACEKEY", {
|
|
68
68
|
slug: "placekey-get-placekey",
|
|
69
69
|
name: "Get Placekey",
|
|
@@ -1 +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.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.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n});\nconst PlacekeyGetPlacekey_ConfidenceScoreSchema = z.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]);\nconst PlacekeyGetPlacekey_NormalizedAddressSchema = 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.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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,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AC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAChF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACrG,CAAC;AACD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC;
|
|
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.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.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n}).passthrough();\nconst PlacekeyGetPlacekey_ConfidenceScoreSchema = z.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]);\nconst PlacekeyGetPlacekey_NormalizedAddressSchema = 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}).passthrough();\nexport const PlacekeyGetPlacekeyOutput = 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}).passthrough();\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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO;EAClB,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAoB;GAAqB;GAAoB;GAAsB;GAAW;GAAO;GAAU;GAAS;EAAM,CAAC,CAAC,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;EAC3U,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAChG,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAw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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,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAChF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,oBAAoB,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -43,7 +43,7 @@ declare const PlacekeyGetPlacekeyOutput: z.ZodObject<{
|
|
|
43
43
|
geocode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
44
|
latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
45
|
longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
47
|
placekey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
48
|
query_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
address_placekey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -59,8 +59,8 @@ declare const PlacekeyGetPlacekeyOutput: z.ZodObject<{
|
|
|
59
59
|
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
60
|
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
61
|
street_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
-
}, z.core.$
|
|
63
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$loose>>>;
|
|
63
|
+
}, z.core.$loose>;
|
|
64
64
|
declare const placekeyGetPlacekey: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
65
65
|
city?: string | undefined;
|
|
66
66
|
region?: string | undefined;
|
|
@@ -43,7 +43,7 @@ declare const PlacekeyGetPlacekeyOutput: z.ZodObject<{
|
|
|
43
43
|
geocode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
44
|
latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
45
|
longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
47
|
placekey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
48
|
query_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
address_placekey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -59,8 +59,8 @@ declare const PlacekeyGetPlacekeyOutput: z.ZodObject<{
|
|
|
59
59
|
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
60
|
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
61
|
street_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
-
}, z.core.$
|
|
63
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$loose>>>;
|
|
63
|
+
}, z.core.$loose>;
|
|
64
64
|
declare const placekeyGetPlacekey: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
65
65
|
city?: string | undefined;
|
|
66
66
|
region?: string | undefined;
|
|
@@ -37,7 +37,7 @@ const PlacekeyGetPlacekeyInput = z.object({
|
|
|
37
37
|
const PlacekeyGetPlacekey_GeocodeSchema = z.object({
|
|
38
38
|
latitude: z.number().describe("Latitude coordinate").nullable().optional(),
|
|
39
39
|
longitude: z.number().describe("Longitude coordinate").nullable().optional()
|
|
40
|
-
});
|
|
40
|
+
}).passthrough();
|
|
41
41
|
const PlacekeyGetPlacekey_ConfidenceScoreSchema = z.enum([
|
|
42
42
|
"HIGH",
|
|
43
43
|
"MEDIUM",
|
|
@@ -49,7 +49,7 @@ const PlacekeyGetPlacekey_NormalizedAddressSchema = z.object({
|
|
|
49
49
|
postal_code: z.string().describe("Normalized postal code").nullable().optional(),
|
|
50
50
|
country_code: z.string().describe("Normalized country code").nullable().optional(),
|
|
51
51
|
street_address: z.string().describe("Normalized street address").nullable().optional()
|
|
52
|
-
});
|
|
52
|
+
}).passthrough();
|
|
53
53
|
const placekeyGetPlacekey = action("PLACEKEY_GET_PLACEKEY", {
|
|
54
54
|
slug: "placekey-get-placekey",
|
|
55
55
|
name: "Get Placekey",
|
|
@@ -68,7 +68,7 @@ const placekeyGetPlacekey = action("PLACEKEY_GET_PLACEKEY", {
|
|
|
68
68
|
confidence_score: PlacekeyGetPlacekey_ConfidenceScoreSchema.nullable().optional(),
|
|
69
69
|
building_placekey: z.string().describe("Postal address placekey without suite/apartment number (optional field)").nullable().optional(),
|
|
70
70
|
normalized_address: PlacekeyGetPlacekey_NormalizedAddressSchema.nullable().optional()
|
|
71
|
-
})
|
|
71
|
+
}).passthrough()
|
|
72
72
|
});
|
|
73
73
|
//#endregion
|
|
74
74
|
export { placekeyGetPlacekey };
|
|
@@ -1 +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.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.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n});\nconst PlacekeyGetPlacekey_ConfidenceScoreSchema = z.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]);\nconst PlacekeyGetPlacekey_NormalizedAddressSchema = 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.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,2BAA2B,EAAE,OAAO;CAC/C,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,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAChG,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC/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mjs","names":[],"sources":["../../src/actions/get-placekey.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacekeyGetPlacekeyInput = 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.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n}).passthrough();\nconst PlacekeyGetPlacekey_ConfidenceScoreSchema = z.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]);\nconst PlacekeyGetPlacekey_NormalizedAddressSchema = 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}).passthrough();\nexport const PlacekeyGetPlacekeyOutput = 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}).passthrough();\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,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,q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AC,SAAS,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,SAAS,kCAAkC,SAAS,CAAC,CAAC,SAAS;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,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -16,12 +16,12 @@ const PlacekeyGetPlacekeysBulkInput = zod.z.object({
|
|
|
16
16
|
location_name: zod.z.string().describe("The name of the place (POI) for business or landmark lookups").optional(),
|
|
17
17
|
street_address: zod.z.string().describe("The street address of the place").optional(),
|
|
18
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.")
|
|
19
|
+
}).passthrough().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
20
|
}).describe("Request model for bulk Placekey lookup");
|
|
21
21
|
const PlacekeyGetPlacekeysBulk_GeocodeSchema = zod.z.object({
|
|
22
22
|
latitude: zod.z.number().describe("Latitude coordinate").nullable().optional(),
|
|
23
23
|
longitude: zod.z.number().describe("Longitude coordinate").nullable().optional()
|
|
24
|
-
}).describe("Geographic coordinates for the location");
|
|
24
|
+
}).passthrough().describe("Geographic coordinates for the location");
|
|
25
25
|
const PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema = zod.z.enum([
|
|
26
26
|
"HIGH",
|
|
27
27
|
"MEDIUM",
|
|
@@ -33,7 +33,7 @@ const PlacekeyGetPlacekeysBulk_NormalizedAddressSchema = zod.z.object({
|
|
|
33
33
|
postal_code: zod.z.string().describe("Normalized postal code").nullable().optional(),
|
|
34
34
|
country_code: zod.z.string().describe("Normalized country code").nullable().optional(),
|
|
35
35
|
street_address: zod.z.string().describe("Normalized street address").nullable().optional()
|
|
36
|
-
}).describe("Structured and parsed representation of the address");
|
|
36
|
+
}).passthrough().describe("Structured and parsed representation of the address");
|
|
37
37
|
const PlacekeyGetPlacekeysBulk_PlacekeyResultSchema = zod.z.object({
|
|
38
38
|
upi: zod.z.string().describe("Universal Parcel Identifier").nullable().optional(),
|
|
39
39
|
gers: zod.z.string().describe("Overture Maps identifier").nullable().optional(),
|
|
@@ -47,8 +47,8 @@ const PlacekeyGetPlacekeysBulk_PlacekeyResultSchema = zod.z.object({
|
|
|
47
47
|
confidence_score: PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema.nullable().optional(),
|
|
48
48
|
building_placekey: zod.z.string().describe("Postal address placekey without suite/apartment number (optional field)").nullable().optional(),
|
|
49
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");
|
|
50
|
+
}).passthrough().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") }).passthrough().describe("Response model containing Placekey results for all queries");
|
|
52
52
|
const placekeyGetPlacekeysBulk = require_action.action("PLACEKEY_GET_PLACEKEYS_BULK", {
|
|
53
53
|
slug: "placekey-get-placekeys-bulk",
|
|
54
54
|
name: "Get Placekeys Bulk",
|
|
@@ -1 +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.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.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.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]).describe(\"Confidence level of the Placekey match\");\nconst PlacekeyGetPlacekeysBulk_NormalizedAddressSchema = 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.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.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,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,OAAO;EAClB,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EAC1J,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACvI,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC5G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAChF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8GAA8G;
|
|
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.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}).passthrough().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.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n}).passthrough().describe(\"Geographic coordinates for the location\");\nconst PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema = z.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]).describe(\"Confidence level of the Placekey match\");\nconst PlacekeyGetPlacekeysBulk_NormalizedAddressSchema = 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}).passthrough().describe(\"Structured and parsed representation of the address\");\nconst PlacekeyGetPlacekeysBulk_PlacekeyResultSchema = 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}).passthrough().describe(\"Result for a single Placekey query\");\nexport const PlacekeyGetPlacekeysBulkOutput = z.object({\n results: z.array(PlacekeyGetPlacekeysBulk_PlacekeyResultSchema).describe(\"Array of Placekey results, one for each query in the request\"),\n}).passthrough().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,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,OAAO;EAClB,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EAC1J,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACvI,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC1F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC/G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC5G,gBAAgBA,I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C,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,7 +16,7 @@ declare const PlacekeyGetPlacekeysBulkInput: z.ZodObject<{
|
|
|
16
16
|
location_name: z.ZodOptional<z.ZodString>;
|
|
17
17
|
street_address: z.ZodOptional<z.ZodString>;
|
|
18
18
|
iso_country_code: z.ZodOptional<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
declare const PlacekeyGetPlacekeysBulkOutput: z.ZodObject<{
|
|
22
22
|
results: z.ZodArray<z.ZodObject<{
|
|
@@ -28,7 +28,7 @@ declare const PlacekeyGetPlacekeysBulkOutput: z.ZodObject<{
|
|
|
28
28
|
geocode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
29
|
latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
32
|
placekey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
query_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
address_placekey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -44,11 +44,12 @@ declare const PlacekeyGetPlacekeysBulkOutput: z.ZodObject<{
|
|
|
44
44
|
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
street_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
49
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
|
+
}, z.core.$loose>>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
50
|
declare const placekeyGetPlacekeysBulk: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
51
51
|
queries: {
|
|
52
|
+
[x: string]: unknown;
|
|
52
53
|
city?: string | undefined;
|
|
53
54
|
region?: string | undefined;
|
|
54
55
|
latitude?: number | undefined;
|
|
@@ -16,7 +16,7 @@ declare const PlacekeyGetPlacekeysBulkInput: z.ZodObject<{
|
|
|
16
16
|
location_name: z.ZodOptional<z.ZodString>;
|
|
17
17
|
street_address: z.ZodOptional<z.ZodString>;
|
|
18
18
|
iso_country_code: z.ZodOptional<z.ZodString>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
declare const PlacekeyGetPlacekeysBulkOutput: z.ZodObject<{
|
|
22
22
|
results: z.ZodArray<z.ZodObject<{
|
|
@@ -28,7 +28,7 @@ declare const PlacekeyGetPlacekeysBulkOutput: z.ZodObject<{
|
|
|
28
28
|
geocode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
29
|
latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>>;
|
|
32
32
|
placekey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
query_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
address_placekey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -44,11 +44,12 @@ declare const PlacekeyGetPlacekeysBulkOutput: z.ZodObject<{
|
|
|
44
44
|
postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
street_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
49
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
|
+
}, z.core.$loose>>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
50
|
declare const placekeyGetPlacekeysBulk: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
51
51
|
queries: {
|
|
52
|
+
[x: string]: unknown;
|
|
52
53
|
city?: string | undefined;
|
|
53
54
|
region?: string | undefined;
|
|
54
55
|
latitude?: number | undefined;
|
|
@@ -16,12 +16,12 @@ const PlacekeyGetPlacekeysBulkInput = z.object({
|
|
|
16
16
|
location_name: z.string().describe("The name of the place (POI) for business or landmark lookups").optional(),
|
|
17
17
|
street_address: z.string().describe("The street address of the place").optional(),
|
|
18
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.")
|
|
19
|
+
}).passthrough().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
20
|
}).describe("Request model for bulk Placekey lookup");
|
|
21
21
|
const PlacekeyGetPlacekeysBulk_GeocodeSchema = z.object({
|
|
22
22
|
latitude: z.number().describe("Latitude coordinate").nullable().optional(),
|
|
23
23
|
longitude: z.number().describe("Longitude coordinate").nullable().optional()
|
|
24
|
-
}).describe("Geographic coordinates for the location");
|
|
24
|
+
}).passthrough().describe("Geographic coordinates for the location");
|
|
25
25
|
const PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema = z.enum([
|
|
26
26
|
"HIGH",
|
|
27
27
|
"MEDIUM",
|
|
@@ -33,7 +33,7 @@ const PlacekeyGetPlacekeysBulk_NormalizedAddressSchema = z.object({
|
|
|
33
33
|
postal_code: z.string().describe("Normalized postal code").nullable().optional(),
|
|
34
34
|
country_code: z.string().describe("Normalized country code").nullable().optional(),
|
|
35
35
|
street_address: z.string().describe("Normalized street address").nullable().optional()
|
|
36
|
-
}).describe("Structured and parsed representation of the address");
|
|
36
|
+
}).passthrough().describe("Structured and parsed representation of the address");
|
|
37
37
|
const PlacekeyGetPlacekeysBulk_PlacekeyResultSchema = z.object({
|
|
38
38
|
upi: z.string().describe("Universal Parcel Identifier").nullable().optional(),
|
|
39
39
|
gers: z.string().describe("Overture Maps identifier").nullable().optional(),
|
|
@@ -47,13 +47,13 @@ const PlacekeyGetPlacekeysBulk_PlacekeyResultSchema = z.object({
|
|
|
47
47
|
confidence_score: PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema.nullable().optional(),
|
|
48
48
|
building_placekey: z.string().describe("Postal address placekey without suite/apartment number (optional field)").nullable().optional(),
|
|
49
49
|
normalized_address: PlacekeyGetPlacekeysBulk_NormalizedAddressSchema.nullable().optional()
|
|
50
|
-
}).describe("Result for a single Placekey query");
|
|
50
|
+
}).passthrough().describe("Result for a single Placekey query");
|
|
51
51
|
const placekeyGetPlacekeysBulk = action("PLACEKEY_GET_PLACEKEYS_BULK", {
|
|
52
52
|
slug: "placekey-get-placekeys-bulk",
|
|
53
53
|
name: "Get Placekeys Bulk",
|
|
54
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
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")
|
|
56
|
+
output: z.object({ results: z.array(PlacekeyGetPlacekeysBulk_PlacekeyResultSchema).describe("Array of Placekey results, one for each query in the request") }).passthrough().describe("Response model containing Placekey results for all queries")
|
|
57
57
|
});
|
|
58
58
|
//#endregion
|
|
59
59
|
export { placekeyGetPlacekeysBulk };
|
|
@@ -1 +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.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.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.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]).describe(\"Confidence level of the Placekey match\");\nconst PlacekeyGetPlacekeysBulk_NormalizedAddressSchema = 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.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.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,gCAAgC,EAAE,OAAO;CACpD,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,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAChF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,CAAC,SAAS,8GAA8G;
|
|
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.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}).passthrough().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.object({\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n}).passthrough().describe(\"Geographic coordinates for the location\");\nconst PlacekeyGetPlacekeysBulk_ConfidenceScoreSchema = z.enum([\"HIGH\", \"MEDIUM\", \"LOW\"]).describe(\"Confidence level of the Placekey match\");\nconst PlacekeyGetPlacekeysBulk_NormalizedAddressSchema = 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}).passthrough().describe(\"Structured and parsed representation of the address\");\nconst PlacekeyGetPlacekeysBulk_PlacekeyResultSchema = 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}).passthrough().describe(\"Result for a single Placekey query\");\nexport const PlacekeyGetPlacekeysBulkOutput = z.object({\n results: z.array(PlacekeyGetPlacekeysBulk_PlacekeyResultSchema).describe(\"Array of Placekey results, one for each query in the request\"),\n}).passthrough().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,gCAAgC,EAAE,OAAO;CACpD,SAAS,EAAE,OAAO;EAClB,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EAC1J,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+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E,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,kBAAkB,+CAA+C,SAAS,CAAC,CAAC,SAAS;CACrF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,oBAAoB,iDAAiD,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAK9D,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,8DAA8D,EACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const placekeyCatalog = {
|
|
|
8
8
|
"logo": "https://logos.composio.dev/api/placekey",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
10
|
"oauthScopes": [],
|
|
11
|
-
"credentialFields": { "
|
|
11
|
+
"credentialFields": { "generic_api_key": {
|
|
12
12
|
"label": "API Key",
|
|
13
13
|
"secret": true,
|
|
14
14
|
"description": "Your Placekey API key"
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +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 \"credentialFields\": {\n \"
|
|
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 \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Your Placekey API key\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,mBAAmB;EACjB,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ declare const placekeyCatalog: {
|
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
11
|
readonly credentialFields: {
|
|
12
|
-
readonly
|
|
12
|
+
readonly generic_api_key: {
|
|
13
13
|
readonly label: "API Key";
|
|
14
14
|
readonly secret: true;
|
|
15
15
|
readonly description: "Your Placekey API key";
|
package/dist/catalog.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ declare const placekeyCatalog: {
|
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
11
|
readonly credentialFields: {
|
|
12
|
-
readonly
|
|
12
|
+
readonly generic_api_key: {
|
|
13
13
|
readonly label: "API Key";
|
|
14
14
|
readonly secret: true;
|
|
15
15
|
readonly description: "Your Placekey API key";
|
package/dist/catalog.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const placekeyCatalog = {
|
|
|
8
8
|
"logo": "https://logos.composio.dev/api/placekey",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
10
|
"oauthScopes": [],
|
|
11
|
-
"credentialFields": { "
|
|
11
|
+
"credentialFields": { "generic_api_key": {
|
|
12
12
|
"label": "API Key",
|
|
13
13
|
"secret": true,
|
|
14
14
|
"description": "Your Placekey API key"
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +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 \"credentialFields\": {\n \"
|
|
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 \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Your Placekey API key\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,mBAAmB;EACjB,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|