@keystrokehq/radar 0.1.0 → 0.1.3
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.cjs +12 -12
- package/dist/actions/autocomplete-address-or-place.cjs.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.cts +50 -3
- package/dist/actions/autocomplete-address-or-place.d.cts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.d.mts +50 -3
- package/dist/actions/autocomplete-address-or-place.d.mts.map +1 -1
- package/dist/actions/autocomplete-address-or-place.mjs +12 -12
- package/dist/actions/autocomplete-address-or-place.mjs.map +1 -1
- package/dist/actions/create-beacon.cjs +12 -12
- package/dist/actions/create-beacon.cjs.map +1 -1
- package/dist/actions/create-beacon.d.cts +56 -3
- package/dist/actions/create-beacon.d.cts.map +1 -1
- package/dist/actions/create-beacon.d.mts +56 -3
- package/dist/actions/create-beacon.d.mts.map +1 -1
- package/dist/actions/create-beacon.mjs +12 -12
- package/dist/actions/create-beacon.mjs.map +1 -1
- package/dist/actions/create-trip.cjs +1 -1
- package/dist/actions/create-trip.cjs.map +1 -1
- package/dist/actions/create-trip.d.cts +44 -3
- package/dist/actions/create-trip.d.cts.map +1 -1
- package/dist/actions/create-trip.d.mts +44 -3
- package/dist/actions/create-trip.d.mts.map +1 -1
- package/dist/actions/create-trip.mjs +1 -1
- package/dist/actions/create-trip.mjs.map +1 -1
- package/dist/actions/delete-beacon.cjs +2 -2
- package/dist/actions/delete-beacon.cjs.map +1 -1
- package/dist/actions/delete-beacon.d.cts +11 -3
- package/dist/actions/delete-beacon.d.cts.map +1 -1
- package/dist/actions/delete-beacon.d.mts +11 -3
- package/dist/actions/delete-beacon.d.mts.map +1 -1
- package/dist/actions/delete-beacon.mjs +2 -2
- package/dist/actions/delete-beacon.mjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.cjs +2 -2
- package/dist/actions/delete-geofence-by-tag.cjs.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.cts +13 -3
- package/dist/actions/delete-geofence-by-tag.d.cts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.d.mts +13 -3
- package/dist/actions/delete-geofence-by-tag.d.mts.map +1 -1
- package/dist/actions/delete-geofence-by-tag.mjs +2 -2
- package/dist/actions/delete-geofence-by-tag.mjs.map +1 -1
- package/dist/actions/delete-geofence.cjs +2 -2
- package/dist/actions/delete-geofence.cjs.map +1 -1
- package/dist/actions/delete-geofence.d.cts +11 -3
- package/dist/actions/delete-geofence.d.cts.map +1 -1
- package/dist/actions/delete-geofence.d.mts +11 -3
- package/dist/actions/delete-geofence.d.mts.map +1 -1
- package/dist/actions/delete-geofence.mjs +2 -2
- package/dist/actions/delete-geofence.mjs.map +1 -1
- package/dist/actions/delete-trip.cjs +2 -2
- package/dist/actions/delete-trip.cjs.map +1 -1
- package/dist/actions/delete-trip.d.cts +11 -3
- package/dist/actions/delete-trip.d.cts.map +1 -1
- package/dist/actions/delete-trip.d.mts +11 -3
- package/dist/actions/delete-trip.d.mts.map +1 -1
- package/dist/actions/delete-trip.mjs +2 -2
- package/dist/actions/delete-trip.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +2 -2
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +11 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +11 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +2 -2
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/forward-geocode.cjs +7 -7
- package/dist/actions/forward-geocode.cjs.map +1 -1
- package/dist/actions/forward-geocode.d.cts +37 -3
- package/dist/actions/forward-geocode.d.cts.map +1 -1
- package/dist/actions/forward-geocode.d.mts +37 -3
- package/dist/actions/forward-geocode.d.mts.map +1 -1
- package/dist/actions/forward-geocode.mjs +7 -7
- package/dist/actions/forward-geocode.mjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.cjs +10 -10
- package/dist/actions/get-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.cts +33 -3
- package/dist/actions/get-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/get-beacon-by-tag.d.mts +33 -3
- package/dist/actions/get-beacon-by-tag.d.mts.map +1 -1
- package/dist/actions/get-beacon-by-tag.mjs +10 -10
- package/dist/actions/get-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/get-beacon.cjs +6 -6
- package/dist/actions/get-beacon.cjs.map +1 -1
- package/dist/actions/get-beacon.d.cts +29 -3
- package/dist/actions/get-beacon.d.cts.map +1 -1
- package/dist/actions/get-beacon.d.mts +29 -3
- package/dist/actions/get-beacon.d.mts.map +1 -1
- package/dist/actions/get-beacon.mjs +6 -6
- package/dist/actions/get-beacon.mjs.map +1 -1
- package/dist/actions/get-context-for-location.cjs +18 -18
- package/dist/actions/get-context-for-location.cjs.map +1 -1
- package/dist/actions/get-context-for-location.d.cts +85 -3
- package/dist/actions/get-context-for-location.d.cts.map +1 -1
- package/dist/actions/get-context-for-location.d.mts +85 -3
- package/dist/actions/get-context-for-location.d.mts.map +1 -1
- package/dist/actions/get-context-for-location.mjs +18 -18
- package/dist/actions/get-context-for-location.mjs.map +1 -1
- package/dist/actions/get-geofence.cjs +8 -8
- package/dist/actions/get-geofence.cjs.map +1 -1
- package/dist/actions/get-geofence.d.cts +26 -3
- package/dist/actions/get-geofence.d.cts.map +1 -1
- package/dist/actions/get-geofence.d.mts +26 -3
- package/dist/actions/get-geofence.d.mts.map +1 -1
- package/dist/actions/get-geofence.mjs +8 -8
- package/dist/actions/get-geofence.mjs.map +1 -1
- package/dist/actions/get-places-settings.cjs +3 -3
- package/dist/actions/get-places-settings.cjs.map +1 -1
- package/dist/actions/get-places-settings.d.cts +15 -3
- package/dist/actions/get-places-settings.d.cts.map +1 -1
- package/dist/actions/get-places-settings.d.mts +15 -3
- package/dist/actions/get-places-settings.d.mts.map +1 -1
- package/dist/actions/get-places-settings.mjs +3 -3
- package/dist/actions/get-places-settings.mjs.map +1 -1
- package/dist/actions/get-route-directions.cjs +16 -16
- package/dist/actions/get-route-directions.cjs.map +1 -1
- package/dist/actions/get-route-directions.d.cts +118 -3
- package/dist/actions/get-route-directions.d.cts.map +1 -1
- package/dist/actions/get-route-directions.d.mts +118 -3
- package/dist/actions/get-route-directions.d.mts.map +1 -1
- package/dist/actions/get-route-directions.mjs +16 -16
- package/dist/actions/get-route-directions.mjs.map +1 -1
- package/dist/actions/get-route-matrix.cjs +14 -14
- package/dist/actions/get-route-matrix.cjs.map +1 -1
- package/dist/actions/get-route-matrix.d.cts +45 -3
- package/dist/actions/get-route-matrix.d.cts.map +1 -1
- package/dist/actions/get-route-matrix.d.mts +45 -3
- package/dist/actions/get-route-matrix.d.mts.map +1 -1
- package/dist/actions/get-route-matrix.mjs +14 -14
- package/dist/actions/get-route-matrix.mjs.map +1 -1
- package/dist/actions/get-trip.cjs +6 -6
- package/dist/actions/get-trip.cjs.map +1 -1
- package/dist/actions/get-trip.d.cts +39 -3
- package/dist/actions/get-trip.d.cts.map +1 -1
- package/dist/actions/get-trip.d.mts +39 -3
- package/dist/actions/get-trip.d.mts.map +1 -1
- package/dist/actions/get-trip.mjs +6 -6
- package/dist/actions/get-trip.mjs.map +1 -1
- package/dist/actions/get-user.cjs +8 -8
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +66 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +66 -3
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +8 -8
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-in-geofence.cjs +4 -4
- package/dist/actions/get-users-in-geofence.cjs.map +1 -1
- package/dist/actions/get-users-in-geofence.d.cts +19 -3
- package/dist/actions/get-users-in-geofence.d.cts.map +1 -1
- package/dist/actions/get-users-in-geofence.d.mts +19 -3
- package/dist/actions/get-users-in-geofence.d.mts.map +1 -1
- package/dist/actions/get-users-in-geofence.mjs +4 -4
- package/dist/actions/get-users-in-geofence.mjs.map +1 -1
- package/dist/actions/ip-geocode.cjs +5 -5
- package/dist/actions/ip-geocode.cjs.map +1 -1
- package/dist/actions/ip-geocode.d.cts +20 -3
- package/dist/actions/ip-geocode.d.cts.map +1 -1
- package/dist/actions/ip-geocode.d.mts +20 -3
- package/dist/actions/ip-geocode.d.mts.map +1 -1
- package/dist/actions/ip-geocode.mjs +5 -5
- package/dist/actions/ip-geocode.mjs.map +1 -1
- package/dist/actions/list-events.cjs +9 -9
- package/dist/actions/list-events.cjs.map +1 -1
- package/dist/actions/list-events.d.cts +52 -3
- package/dist/actions/list-events.d.cts.map +1 -1
- package/dist/actions/list-events.d.mts +52 -3
- package/dist/actions/list-events.d.mts.map +1 -1
- package/dist/actions/list-events.mjs +9 -9
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-geofences.cjs +13 -13
- package/dist/actions/list-geofences.cjs.map +1 -1
- package/dist/actions/list-geofences.d.cts +50 -3
- package/dist/actions/list-geofences.d.cts.map +1 -1
- package/dist/actions/list-geofences.d.mts +50 -3
- package/dist/actions/list-geofences.d.mts.map +1 -1
- package/dist/actions/list-geofences.mjs +13 -13
- package/dist/actions/list-geofences.mjs.map +1 -1
- package/dist/actions/list-trips.cjs +9 -9
- package/dist/actions/list-trips.cjs.map +1 -1
- package/dist/actions/list-trips.d.cts +50 -3
- package/dist/actions/list-trips.d.cts.map +1 -1
- package/dist/actions/list-trips.d.mts +50 -3
- package/dist/actions/list-trips.d.mts.map +1 -1
- package/dist/actions/list-trips.mjs +9 -9
- package/dist/actions/list-trips.mjs.map +1 -1
- package/dist/actions/list-users.cjs +8 -8
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +35 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +35 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +8 -8
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/reverse-geocode.cjs +2 -2
- package/dist/actions/reverse-geocode.cjs.map +1 -1
- package/dist/actions/reverse-geocode.d.cts +33 -3
- package/dist/actions/reverse-geocode.d.cts.map +1 -1
- package/dist/actions/reverse-geocode.d.mts +33 -3
- package/dist/actions/reverse-geocode.d.mts.map +1 -1
- package/dist/actions/reverse-geocode.mjs +2 -2
- package/dist/actions/reverse-geocode.mjs.map +1 -1
- package/dist/actions/route-distance.cjs +12 -12
- package/dist/actions/route-distance.cjs.map +1 -1
- package/dist/actions/route-distance.d.cts +110 -3
- package/dist/actions/route-distance.d.cts.map +1 -1
- package/dist/actions/route-distance.d.mts +110 -3
- package/dist/actions/route-distance.d.mts.map +1 -1
- package/dist/actions/route-distance.mjs +12 -12
- package/dist/actions/route-distance.mjs.map +1 -1
- package/dist/actions/search-geofences-near-location.cjs +5 -5
- package/dist/actions/search-geofences-near-location.cjs.map +1 -1
- package/dist/actions/search-geofences-near-location.d.cts +34 -3
- package/dist/actions/search-geofences-near-location.d.cts.map +1 -1
- package/dist/actions/search-geofences-near-location.d.mts +34 -3
- package/dist/actions/search-geofences-near-location.d.mts.map +1 -1
- package/dist/actions/search-geofences-near-location.mjs +5 -5
- package/dist/actions/search-geofences-near-location.mjs.map +1 -1
- package/dist/actions/search-places-near-location.cjs +9 -9
- package/dist/actions/search-places-near-location.cjs.map +1 -1
- package/dist/actions/search-places-near-location.d.cts +51 -3
- package/dist/actions/search-places-near-location.d.cts.map +1 -1
- package/dist/actions/search-places-near-location.d.mts +51 -3
- package/dist/actions/search-places-near-location.d.mts.map +1 -1
- package/dist/actions/search-places-near-location.mjs +9 -9
- package/dist/actions/search-places-near-location.mjs.map +1 -1
- package/dist/actions/search-users-near-location.cjs +9 -9
- package/dist/actions/search-users-near-location.cjs.map +1 -1
- package/dist/actions/search-users-near-location.d.cts +28 -3
- package/dist/actions/search-users-near-location.d.cts.map +1 -1
- package/dist/actions/search-users-near-location.d.mts +28 -3
- package/dist/actions/search-users-near-location.d.mts.map +1 -1
- package/dist/actions/search-users-near-location.mjs +9 -9
- package/dist/actions/search-users-near-location.mjs.map +1 -1
- package/dist/actions/track-location-update.cjs +1 -1
- package/dist/actions/track-location-update.cjs.map +1 -1
- package/dist/actions/track-location-update.d.cts +43 -3
- package/dist/actions/track-location-update.d.cts.map +1 -1
- package/dist/actions/track-location-update.d.mts +43 -3
- package/dist/actions/track-location-update.d.mts.map +1 -1
- package/dist/actions/track-location-update.mjs +1 -1
- package/dist/actions/track-location-update.mjs.map +1 -1
- package/dist/actions/update-places-settings.cjs +3 -3
- package/dist/actions/update-places-settings.cjs.map +1 -1
- package/dist/actions/update-places-settings.d.cts +23 -3
- package/dist/actions/update-places-settings.d.cts.map +1 -1
- package/dist/actions/update-places-settings.d.mts +23 -3
- package/dist/actions/update-places-settings.d.mts.map +1 -1
- package/dist/actions/update-places-settings.mjs +3 -3
- package/dist/actions/update-places-settings.mjs.map +1 -1
- package/dist/actions/update-trip-by-id.cjs +3 -3
- package/dist/actions/update-trip-by-id.cjs.map +1 -1
- package/dist/actions/update-trip-by-id.d.cts +47 -3
- package/dist/actions/update-trip-by-id.d.cts.map +1 -1
- package/dist/actions/update-trip-by-id.d.mts +47 -3
- package/dist/actions/update-trip-by-id.d.mts.map +1 -1
- package/dist/actions/update-trip-by-id.mjs +3 -3
- package/dist/actions/update-trip-by-id.mjs.map +1 -1
- package/dist/actions/update-trip.cjs +5 -5
- package/dist/actions/update-trip.cjs.map +1 -1
- package/dist/actions/update-trip.d.cts +67 -3
- package/dist/actions/update-trip.d.cts.map +1 -1
- package/dist/actions/update-trip.d.mts +67 -3
- package/dist/actions/update-trip.d.mts.map +1 -1
- package/dist/actions/update-trip.mjs +5 -5
- package/dist/actions/update-trip.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.cjs +9 -9
- package/dist/actions/upsert-beacon-by-id.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.cts +53 -3
- package/dist/actions/upsert-beacon-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.d.mts +53 -3
- package/dist/actions/upsert-beacon-by-id.d.mts.map +1 -1
- package/dist/actions/upsert-beacon-by-id.mjs +9 -9
- package/dist/actions/upsert-beacon-by-id.mjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.cjs +8 -8
- package/dist/actions/upsert-beacon-by-tag.cjs.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.cts +54 -3
- package/dist/actions/upsert-beacon-by-tag.d.cts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.d.mts +54 -3
- package/dist/actions/upsert-beacon-by-tag.d.mts.map +1 -1
- package/dist/actions/upsert-beacon-by-tag.mjs +8 -8
- package/dist/actions/upsert-beacon-by-tag.mjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.cjs +12 -12
- package/dist/actions/upsert-geofence-by-id.cjs.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.cts +48 -3
- package/dist/actions/upsert-geofence-by-id.d.cts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.d.mts +48 -3
- package/dist/actions/upsert-geofence-by-id.d.mts.map +1 -1
- package/dist/actions/upsert-geofence-by-id.mjs +12 -12
- package/dist/actions/upsert-geofence-by-id.mjs.map +1 -1
- package/dist/actions/upsert-geofence.cjs +7 -7
- package/dist/actions/upsert-geofence.cjs.map +1 -1
- package/dist/actions/upsert-geofence.d.cts +40 -3
- package/dist/actions/upsert-geofence.d.cts.map +1 -1
- package/dist/actions/upsert-geofence.d.mts +40 -3
- package/dist/actions/upsert-geofence.d.mts.map +1 -1
- package/dist/actions/upsert-geofence.mjs +7 -7
- package/dist/actions/upsert-geofence.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,59 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/upsert-beacon-by-id.d.ts
|
|
4
|
-
declare const RadarUpsertBeaconByIdInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarUpsertBeaconByIdInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
7
|
+
type: z.ZodString;
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
major: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
10
|
+
minor: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
11
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
14
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const RadarUpsertBeaconByIdOutput: z.ZodObject<{
|
|
17
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
beacon: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
_id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
|
+
type: z.ZodNullable<z.ZodString>;
|
|
26
|
+
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
major: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
28
|
+
minor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
29
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
|
+
placeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
type: z.ZodNullable<z.ZodString>;
|
|
34
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
|
+
instance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
39
|
+
namespace: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
41
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
declare const radarUpsertBeaconById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
|
+
id: string;
|
|
47
|
+
type: string;
|
|
48
|
+
uuid: string;
|
|
49
|
+
major: string | number;
|
|
50
|
+
minor: string | number;
|
|
51
|
+
coordinates: number[];
|
|
52
|
+
tag?: string | undefined;
|
|
53
|
+
enabled?: boolean | undefined;
|
|
54
|
+
externalId?: string | undefined;
|
|
55
|
+
description?: string | undefined;
|
|
56
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
57
|
//#endregion
|
|
8
58
|
export { radarUpsertBeaconById };
|
|
9
59
|
//# sourceMappingURL=upsert-beacon-by-id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-id.d.cts","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-id.d.cts","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAwC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,59 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/upsert-beacon-by-id.d.ts
|
|
4
|
-
declare const RadarUpsertBeaconByIdInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarUpsertBeaconByIdInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
7
|
+
type: z.ZodString;
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
major: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
10
|
+
minor: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
11
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
14
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const RadarUpsertBeaconByIdOutput: z.ZodObject<{
|
|
17
|
+
meta: z.ZodNullable<z.ZodObject<{
|
|
18
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
beacon: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
_id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
live: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
|
+
type: z.ZodNullable<z.ZodString>;
|
|
26
|
+
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
major: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
28
|
+
minor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
29
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
|
+
placeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
deviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
type: z.ZodNullable<z.ZodString>;
|
|
34
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
|
+
instance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
39
|
+
namespace: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
41
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
declare const radarUpsertBeaconById: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
|
+
id: string;
|
|
47
|
+
type: string;
|
|
48
|
+
uuid: string;
|
|
49
|
+
major: string | number;
|
|
50
|
+
minor: string | number;
|
|
51
|
+
coordinates: number[];
|
|
52
|
+
tag?: string | undefined;
|
|
53
|
+
enabled?: boolean | undefined;
|
|
54
|
+
externalId?: string | undefined;
|
|
55
|
+
description?: string | undefined;
|
|
56
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
57
|
//#endregion
|
|
8
58
|
export { radarUpsertBeaconById };
|
|
9
59
|
//# sourceMappingURL=upsert-beacon-by-id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-id.d.mts","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-id.d.mts","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAwC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -13,17 +13,17 @@ const RadarUpsertBeaconByIdInput = z.object({
|
|
|
13
13
|
coordinates: z.array(z.number()).describe("The approximate location in [longitude, latitude] format"),
|
|
14
14
|
description: z.string().describe("Display name for the beacon").optional()
|
|
15
15
|
}).describe("Request model for upserting a beacon by Radar _id.");
|
|
16
|
-
const RadarUpsertBeaconById_MetaSchema = z.object({ code: z.number().int().describe("The HTTP status code of the response") }).describe("Response metadata for beacon operations.");
|
|
16
|
+
const RadarUpsertBeaconById_MetaSchema = z.object({ code: z.number().int().describe("The HTTP status code of the response").nullable() }).passthrough().describe("Response metadata for beacon operations.");
|
|
17
17
|
const RadarUpsertBeaconById_GeometrySchema = z.object({
|
|
18
|
-
type: z.string().describe("Geometry type (Point)"),
|
|
18
|
+
type: z.string().describe("Geometry type (Point)").nullable(),
|
|
19
19
|
coordinates: z.array(z.number()).describe("Coordinates in [longitude, latitude] format")
|
|
20
|
-
}).describe("Geometry object for beacon location.");
|
|
20
|
+
}).passthrough().describe("Geometry object for beacon location.");
|
|
21
21
|
const RadarUpsertBeaconById_BeaconObjectSchema = z.object({
|
|
22
|
-
_id: z.string().describe("Beacon ID"),
|
|
22
|
+
_id: z.string().describe("Beacon ID").nullable(),
|
|
23
23
|
tag: z.string().describe("Group tag for the beacon").nullable().optional(),
|
|
24
24
|
url: z.string().describe("URL for Eddystone URL").nullable().optional(),
|
|
25
25
|
live: z.boolean().describe("Whether the beacon is live").nullable().optional(),
|
|
26
|
-
type: z.string().describe("Beacon technology type"),
|
|
26
|
+
type: z.string().describe("Beacon technology type").nullable(),
|
|
27
27
|
uuid: z.string().describe("UUID for iBeacon").nullable().optional(),
|
|
28
28
|
major: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
29
29
|
minor: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
@@ -33,12 +33,12 @@ const RadarUpsertBeaconById_BeaconObjectSchema = z.object({
|
|
|
33
33
|
geometry: RadarUpsertBeaconById_GeometrySchema.nullable(),
|
|
34
34
|
instance: z.string().describe("Instance for Eddystone UID").nullable().optional(),
|
|
35
35
|
metadata: z.record(z.string(), z.unknown()).describe("Custom metadata of the beacon").nullable().optional(),
|
|
36
|
-
createdAt: z.string().describe("Timestamp when created (ISO 8601)"),
|
|
36
|
+
createdAt: z.string().describe("Timestamp when created (ISO 8601)").nullable(),
|
|
37
37
|
namespace: z.string().describe("Namespace for Eddystone UID").nullable().optional(),
|
|
38
|
-
updatedAt: z.string().describe("Timestamp when last updated (ISO 8601)"),
|
|
38
|
+
updatedAt: z.string().describe("Timestamp when last updated (ISO 8601)").nullable(),
|
|
39
39
|
externalId: z.string().describe("External ID of the beacon").nullable().optional(),
|
|
40
40
|
description: z.string().describe("Description of the beacon").nullable().optional()
|
|
41
|
-
}).describe("Beacon object returned by Radar API.");
|
|
41
|
+
}).passthrough().describe("Beacon object returned by Radar API.");
|
|
42
42
|
const radarUpsertBeaconById = action("RADAR_UPSERT_BEACON_BY_ID", {
|
|
43
43
|
slug: "radar-upsert-beacon-by-id",
|
|
44
44
|
name: "Upsert Beacon by ID",
|
|
@@ -47,7 +47,7 @@ const radarUpsertBeaconById = action("RADAR_UPSERT_BEACON_BY_ID", {
|
|
|
47
47
|
output: z.object({
|
|
48
48
|
meta: RadarUpsertBeaconById_MetaSchema.nullable(),
|
|
49
49
|
beacon: RadarUpsertBeaconById_BeaconObjectSchema.nullable()
|
|
50
|
-
}).describe("Response model for upserting a beacon by ID.")
|
|
50
|
+
}).passthrough().describe("Response model for upserting a beacon by ID.")
|
|
51
51
|
});
|
|
52
52
|
//#endregion
|
|
53
53
|
export { radarUpsertBeaconById };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-id.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByIdInput
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-id.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByIdInput = z.object({\n id: z.string().describe(\"The Radar beacon _id to create or update\"),\n tag: z.string().describe(\"A group for the beacon\").optional(),\n type: z.string().describe(\"Beacon type, must be 'ibeacon'\"),\n uuid: z.string().describe(\"The iBeacon UUID\"),\n major: z.union([z.string(), z.number().int()]),\n minor: z.union([z.string(), z.number().int()]),\n enabled: z.boolean().describe(\"If true, the beacon will generate events; defaults to true\").optional(),\n externalId: z.string().describe(\"External ID for the beacon\").optional(),\n coordinates: z.array(z.number()).describe(\"The approximate location in [longitude, latitude] format\"),\n description: z.string().describe(\"Display name for the beacon\").optional(),\n}).describe(\"Request model for upserting a beacon by Radar _id.\");\nconst RadarUpsertBeaconById_MetaSchema = z.object({\n code: z.number().int().describe(\"The HTTP status code of the response\").nullable(),\n}).passthrough().describe(\"Response metadata for beacon operations.\");\nconst RadarUpsertBeaconById_GeometrySchema = z.object({\n type: z.string().describe(\"Geometry type (Point)\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates in [longitude, latitude] format\"),\n}).passthrough().describe(\"Geometry object for beacon location.\");\nconst RadarUpsertBeaconById_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Beacon ID\").nullable(),\n tag: z.string().describe(\"Group tag for the beacon\").nullable().optional(),\n url: z.string().describe(\"URL for Eddystone URL\").nullable().optional(),\n live: z.boolean().describe(\"Whether the beacon is live\").nullable().optional(),\n type: z.string().describe(\"Beacon technology type\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon\").nullable().optional(),\n major: z.union([z.string(), z.number().int()]).nullable().optional(),\n minor: z.union([z.string(), z.number().int()]).nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon generates events\").nullable().optional(),\n placeId: z.string().describe(\"Radar placeId associated with the beacon\").nullable().optional(),\n deviceId: z.string().describe(\"Device ID or serial number of the beacon\").nullable().optional(),\n geometry: RadarUpsertBeaconById_GeometrySchema.nullable(),\n instance: z.string().describe(\"Instance for Eddystone UID\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"Timestamp when created (ISO 8601)\").nullable(),\n namespace: z.string().describe(\"Namespace for Eddystone UID\").nullable().optional(),\n updatedAt: z.string().describe(\"Timestamp when last updated (ISO 8601)\").nullable(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Beacon object returned by Radar API.\");\nexport const RadarUpsertBeaconByIdOutput = z.object({\n meta: RadarUpsertBeaconById_MetaSchema.nullable(),\n beacon: RadarUpsertBeaconById_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon by ID.\");\n\nexport const radarUpsertBeaconById = action(\"RADAR_UPSERT_BEACON_BY_ID\", {\n slug: \"radar-upsert-beacon-by-id\",\n name: \"Upsert Beacon by ID\",\n description: \"Tool to create or update a beacon by Radar _id. Use when you need to ensure a beacon with a specific ID exists with updated properties.\",\n input: RadarUpsertBeaconByIdInput,\n output: RadarUpsertBeaconByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7C,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC7C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,mCAAmC,EAAE,OAAO,EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,qCAAqC,SAAS;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAMhE,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,iCAAiC,SAAS;EAChD,QAAQ,yCAAyC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -10,36 +10,36 @@ const RadarUpsertBeaconByTagInput = zod.z.object({
|
|
|
10
10
|
minor: zod.z.string().describe("Minor ID for iBeacon type (required for ibeacon, not used for eddystone)").optional(),
|
|
11
11
|
enabled: zod.z.boolean().describe("Whether the beacon is active and generates events"),
|
|
12
12
|
instance: zod.z.string().describe("Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)").optional(),
|
|
13
|
-
metadata: zod.z.
|
|
13
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)").optional(),
|
|
14
14
|
externalId: zod.z.string().describe("External identifier mapping to your database (appears in URL path)"),
|
|
15
15
|
coordinates: zod.z.array(zod.z.number()).describe("Beacon location as [longitude, latitude] in GeoJSON format"),
|
|
16
16
|
description: zod.z.string().describe("Human-readable display name for the beacon")
|
|
17
17
|
}).describe("Request model for upserting a beacon by tag and externalId.");
|
|
18
18
|
const RadarUpsertBeaconByTag_BeaconGeometrySchema = zod.z.object({
|
|
19
|
-
type: zod.z.string().describe("Geometry type, typically 'Point' for beacons"),
|
|
19
|
+
type: zod.z.string().describe("Geometry type, typically 'Point' for beacons").nullable(),
|
|
20
20
|
coordinates: zod.z.array(zod.z.number()).describe("Coordinates as [longitude, latitude]")
|
|
21
|
-
}).describe("Geometry details of a beacon");
|
|
21
|
+
}).passthrough().describe("Geometry details of a beacon");
|
|
22
22
|
const RadarUpsertBeaconByTag_BeaconObjectSchema = zod.z.object({
|
|
23
23
|
_id: zod.z.string().describe("Unique identifier of the beacon").nullable().optional(),
|
|
24
24
|
tag: zod.z.string().describe("Tag associated with the beacon").nullable().optional(),
|
|
25
25
|
uid: zod.z.string().describe("UID for Eddystone type").nullable().optional(),
|
|
26
|
-
type: zod.z.string().describe("Type of beacon (ibeacon or eddystone)"),
|
|
26
|
+
type: zod.z.string().describe("Type of beacon (ibeacon or eddystone)").nullable(),
|
|
27
27
|
uuid: zod.z.string().describe("UUID for iBeacon type").nullable().optional(),
|
|
28
28
|
major: zod.z.string().describe("Major ID for iBeacon type").nullable().optional(),
|
|
29
29
|
minor: zod.z.string().describe("Minor ID for iBeacon type").nullable().optional(),
|
|
30
30
|
enabled: zod.z.boolean().describe("Whether the beacon is enabled").nullable().optional(),
|
|
31
31
|
geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),
|
|
32
32
|
instance: zod.z.string().describe("Instance for Eddystone type").nullable().optional(),
|
|
33
|
-
metadata: zod.z.
|
|
33
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata of the beacon").nullable().optional(),
|
|
34
34
|
createdAt: zod.z.string().describe("ISO8601 timestamp when created").nullable().optional(),
|
|
35
35
|
updatedAt: zod.z.string().describe("ISO8601 timestamp when last updated").nullable().optional(),
|
|
36
36
|
externalId: zod.z.string().describe("External ID of the beacon").nullable().optional(),
|
|
37
37
|
description: zod.z.string().describe("Description of the beacon").nullable().optional()
|
|
38
|
-
}).describe("Representation of a Radar beacon");
|
|
38
|
+
}).passthrough().describe("Representation of a Radar beacon");
|
|
39
39
|
const RadarUpsertBeaconByTagOutput = zod.z.object({
|
|
40
|
-
meta: zod.z.
|
|
40
|
+
meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response metadata"),
|
|
41
41
|
beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable()
|
|
42
|
-
}).describe("Response model for upserting a beacon");
|
|
42
|
+
}).passthrough().describe("Response model for upserting a beacon");
|
|
43
43
|
const radarUpsertBeaconByTag = require_action.action("RADAR_UPSERT_BEACON_BY_TAG", {
|
|
44
44
|
slug: "radar-upsert-beacon-by-tag",
|
|
45
45
|
name: "Upsert Beacon by Tag",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-tag.cjs","names":["z","action"],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByTagInput
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-tag.cjs","names":["z","action"],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByTagInput = z.object({\n tag: z.string().describe(\"Tag identifier for grouping the beacon (appears in URL path)\"),\n uid: z.string().describe(\"UID identifier for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"Beacon technology type: ibeacon or eddystone\"),\n uuid: z.string().describe(\"UUID identifier for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n major: z.string().describe(\"Major ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is active and generates events\"),\n instance: z.string().describe(\"Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)\").optional(),\n externalId: z.string().describe(\"External identifier mapping to your database (appears in URL path)\"),\n coordinates: z.array(z.number()).describe(\"Beacon location as [longitude, latitude] in GeoJSON format\"),\n description: z.string().describe(\"Human-readable display name for the beacon\"),\n}).describe(\"Request model for upserting a beacon by tag and externalId.\");\nconst RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, typically 'Point' for beacons\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"Geometry details of a beacon\");\nconst RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the beacon\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uid: z.string().describe(\"UID for Eddystone type\").nullable().optional(),\n type: z.string().describe(\"Type of beacon (ibeacon or eddystone)\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon type\").nullable().optional(),\n major: z.string().describe(\"Major ID for iBeacon type\").nullable().optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable().optional(),\n geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),\n instance: z.string().describe(\"Instance for Eddystone type\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable().optional(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar beacon\");\nexport const RadarUpsertBeaconByTagOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon\");\n\nexport const radarUpsertBeaconByTag = action(\"RADAR_UPSERT_BEACON_BY_TAG\", {\n slug: \"radar-upsert-beacon-by-tag\",\n name: \"Upsert Beacon by Tag\",\n description: \"Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.\",\n input: RadarUpsertBeaconByTagInput,\n output: RadarUpsertBeaconByTagOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACzH,MAAMA,IAAAA,EAAE,KAAK,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,SAAS,8CAA8C;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACtH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD;CACjF,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C;AAEjE,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,60 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/upsert-beacon-by-tag.d.ts
|
|
4
|
-
declare const RadarUpsertBeaconByTagInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarUpsertBeaconByTagInput: z.ZodObject<{
|
|
5
|
+
tag: z.ZodString;
|
|
6
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
type: z.ZodEnum<{
|
|
8
|
+
ibeacon: "ibeacon";
|
|
9
|
+
eddystone: "eddystone";
|
|
10
|
+
}>;
|
|
11
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
12
|
+
major: z.ZodOptional<z.ZodString>;
|
|
13
|
+
minor: z.ZodOptional<z.ZodString>;
|
|
14
|
+
enabled: z.ZodBoolean;
|
|
15
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
16
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
17
|
+
externalId: z.ZodString;
|
|
18
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
19
|
+
description: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const RadarUpsertBeaconByTagOutput: z.ZodObject<{
|
|
22
|
+
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
beacon: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
type: z.ZodNullable<z.ZodString>;
|
|
28
|
+
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
major: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
minor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
32
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
type: z.ZodNullable<z.ZodString>;
|
|
34
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
|
+
instance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
|
+
}, z.core.$loose>;
|
|
44
|
+
declare const radarUpsertBeaconByTag: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
|
+
tag: string;
|
|
46
|
+
type: "ibeacon" | "eddystone";
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
externalId: string;
|
|
49
|
+
coordinates: number[];
|
|
50
|
+
description: string;
|
|
51
|
+
uid?: string | undefined;
|
|
52
|
+
uuid?: string | undefined;
|
|
53
|
+
major?: string | undefined;
|
|
54
|
+
minor?: string | undefined;
|
|
55
|
+
instance?: string | undefined;
|
|
56
|
+
metadata?: Record<string, unknown> | undefined;
|
|
57
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
58
|
//#endregion
|
|
8
59
|
export { radarUpsertBeaconByTag };
|
|
9
60
|
//# sourceMappingURL=upsert-beacon-by-tag.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-tag.d.cts","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-tag.d.cts","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;aAMjC,MAAA;AAAA"}
|
|
@@ -1,9 +1,60 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/upsert-beacon-by-tag.d.ts
|
|
4
|
-
declare const RadarUpsertBeaconByTagInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RadarUpsertBeaconByTagInput: z.ZodObject<{
|
|
5
|
+
tag: z.ZodString;
|
|
6
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
type: z.ZodEnum<{
|
|
8
|
+
ibeacon: "ibeacon";
|
|
9
|
+
eddystone: "eddystone";
|
|
10
|
+
}>;
|
|
11
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
12
|
+
major: z.ZodOptional<z.ZodString>;
|
|
13
|
+
minor: z.ZodOptional<z.ZodString>;
|
|
14
|
+
enabled: z.ZodBoolean;
|
|
15
|
+
instance: z.ZodOptional<z.ZodString>;
|
|
16
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
17
|
+
externalId: z.ZodString;
|
|
18
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
19
|
+
description: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
declare const RadarUpsertBeaconByTagOutput: z.ZodObject<{
|
|
22
|
+
meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
beacon: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
type: z.ZodNullable<z.ZodString>;
|
|
28
|
+
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
major: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
minor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
32
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
type: z.ZodNullable<z.ZodString>;
|
|
34
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
|
+
instance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
|
+
}, z.core.$loose>;
|
|
44
|
+
declare const radarUpsertBeaconByTag: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
|
+
tag: string;
|
|
46
|
+
type: "ibeacon" | "eddystone";
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
externalId: string;
|
|
49
|
+
coordinates: number[];
|
|
50
|
+
description: string;
|
|
51
|
+
uid?: string | undefined;
|
|
52
|
+
uuid?: string | undefined;
|
|
53
|
+
major?: string | undefined;
|
|
54
|
+
minor?: string | undefined;
|
|
55
|
+
instance?: string | undefined;
|
|
56
|
+
metadata?: Record<string, unknown> | undefined;
|
|
57
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
58
|
//#endregion
|
|
8
59
|
export { radarUpsertBeaconByTag };
|
|
9
60
|
//# sourceMappingURL=upsert-beacon-by-tag.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-tag.d.mts","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-tag.d.mts","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;aAMjC,MAAA;AAAA"}
|
|
@@ -10,41 +10,41 @@ const RadarUpsertBeaconByTagInput = z.object({
|
|
|
10
10
|
minor: z.string().describe("Minor ID for iBeacon type (required for ibeacon, not used for eddystone)").optional(),
|
|
11
11
|
enabled: z.boolean().describe("Whether the beacon is active and generates events"),
|
|
12
12
|
instance: z.string().describe("Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)").optional(),
|
|
13
|
-
metadata: z.
|
|
13
|
+
metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)").optional(),
|
|
14
14
|
externalId: z.string().describe("External identifier mapping to your database (appears in URL path)"),
|
|
15
15
|
coordinates: z.array(z.number()).describe("Beacon location as [longitude, latitude] in GeoJSON format"),
|
|
16
16
|
description: z.string().describe("Human-readable display name for the beacon")
|
|
17
17
|
}).describe("Request model for upserting a beacon by tag and externalId.");
|
|
18
18
|
const RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({
|
|
19
|
-
type: z.string().describe("Geometry type, typically 'Point' for beacons"),
|
|
19
|
+
type: z.string().describe("Geometry type, typically 'Point' for beacons").nullable(),
|
|
20
20
|
coordinates: z.array(z.number()).describe("Coordinates as [longitude, latitude]")
|
|
21
|
-
}).describe("Geometry details of a beacon");
|
|
21
|
+
}).passthrough().describe("Geometry details of a beacon");
|
|
22
22
|
const RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({
|
|
23
23
|
_id: z.string().describe("Unique identifier of the beacon").nullable().optional(),
|
|
24
24
|
tag: z.string().describe("Tag associated with the beacon").nullable().optional(),
|
|
25
25
|
uid: z.string().describe("UID for Eddystone type").nullable().optional(),
|
|
26
|
-
type: z.string().describe("Type of beacon (ibeacon or eddystone)"),
|
|
26
|
+
type: z.string().describe("Type of beacon (ibeacon or eddystone)").nullable(),
|
|
27
27
|
uuid: z.string().describe("UUID for iBeacon type").nullable().optional(),
|
|
28
28
|
major: z.string().describe("Major ID for iBeacon type").nullable().optional(),
|
|
29
29
|
minor: z.string().describe("Minor ID for iBeacon type").nullable().optional(),
|
|
30
30
|
enabled: z.boolean().describe("Whether the beacon is enabled").nullable().optional(),
|
|
31
31
|
geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),
|
|
32
32
|
instance: z.string().describe("Instance for Eddystone type").nullable().optional(),
|
|
33
|
-
metadata: z.
|
|
33
|
+
metadata: z.record(z.string(), z.unknown()).describe("Custom metadata of the beacon").nullable().optional(),
|
|
34
34
|
createdAt: z.string().describe("ISO8601 timestamp when created").nullable().optional(),
|
|
35
35
|
updatedAt: z.string().describe("ISO8601 timestamp when last updated").nullable().optional(),
|
|
36
36
|
externalId: z.string().describe("External ID of the beacon").nullable().optional(),
|
|
37
37
|
description: z.string().describe("Description of the beacon").nullable().optional()
|
|
38
|
-
}).describe("Representation of a Radar beacon");
|
|
38
|
+
}).passthrough().describe("Representation of a Radar beacon");
|
|
39
39
|
const radarUpsertBeaconByTag = action("RADAR_UPSERT_BEACON_BY_TAG", {
|
|
40
40
|
slug: "radar-upsert-beacon-by-tag",
|
|
41
41
|
name: "Upsert Beacon by Tag",
|
|
42
42
|
description: "Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.",
|
|
43
43
|
input: RadarUpsertBeaconByTagInput,
|
|
44
44
|
output: z.object({
|
|
45
|
-
meta: z.
|
|
45
|
+
meta: z.record(z.string(), z.unknown()).describe("Response metadata"),
|
|
46
46
|
beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable()
|
|
47
|
-
}).describe("Response model for upserting a beacon")
|
|
47
|
+
}).passthrough().describe("Response model for upserting a beacon")
|
|
48
48
|
});
|
|
49
49
|
//#endregion
|
|
50
50
|
export { radarUpsertBeaconByTag };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-beacon-by-tag.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByTagInput
|
|
1
|
+
{"version":3,"file":"upsert-beacon-by-tag.mjs","names":[],"sources":["../../src/actions/upsert-beacon-by-tag.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RadarUpsertBeaconByTagInput = z.object({\n tag: z.string().describe(\"Tag identifier for grouping the beacon (appears in URL path)\"),\n uid: z.string().describe(\"UID identifier for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n type: z.enum([\"ibeacon\", \"eddystone\"]).describe(\"Beacon technology type: ibeacon or eddystone\"),\n uuid: z.string().describe(\"UUID identifier for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n major: z.string().describe(\"Major ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type (required for ibeacon, not used for eddystone)\").optional(),\n enabled: z.boolean().describe(\"Whether the beacon is active and generates events\"),\n instance: z.string().describe(\"Instance ID for Eddystone beacons (required for eddystone, not used for ibeacon)\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for the beacon (max 16 keys, values must be string/boolean/number)\").optional(),\n externalId: z.string().describe(\"External identifier mapping to your database (appears in URL path)\"),\n coordinates: z.array(z.number()).describe(\"Beacon location as [longitude, latitude] in GeoJSON format\"),\n description: z.string().describe(\"Human-readable display name for the beacon\"),\n}).describe(\"Request model for upserting a beacon by tag and externalId.\");\nconst RadarUpsertBeaconByTag_BeaconGeometrySchema = z.object({\n type: z.string().describe(\"Geometry type, typically 'Point' for beacons\").nullable(),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude]\"),\n}).passthrough().describe(\"Geometry details of a beacon\");\nconst RadarUpsertBeaconByTag_BeaconObjectSchema = z.object({\n _id: z.string().describe(\"Unique identifier of the beacon\").nullable().optional(),\n tag: z.string().describe(\"Tag associated with the beacon\").nullable().optional(),\n uid: z.string().describe(\"UID for Eddystone type\").nullable().optional(),\n type: z.string().describe(\"Type of beacon (ibeacon or eddystone)\").nullable(),\n uuid: z.string().describe(\"UUID for iBeacon type\").nullable().optional(),\n major: z.string().describe(\"Major ID for iBeacon type\").nullable().optional(),\n minor: z.string().describe(\"Minor ID for iBeacon type\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the beacon is enabled\").nullable().optional(),\n geometry: RadarUpsertBeaconByTag_BeaconGeometrySchema.nullable().optional(),\n instance: z.string().describe(\"Instance for Eddystone type\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata of the beacon\").nullable().optional(),\n createdAt: z.string().describe(\"ISO8601 timestamp when created\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when last updated\").nullable().optional(),\n externalId: z.string().describe(\"External ID of the beacon\").nullable().optional(),\n description: z.string().describe(\"Description of the beacon\").nullable().optional(),\n}).passthrough().describe(\"Representation of a Radar beacon\");\nexport const RadarUpsertBeaconByTagOutput = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n beacon: RadarUpsertBeaconByTag_BeaconObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for upserting a beacon\");\n\nexport const radarUpsertBeaconByTag = action(\"RADAR_UPSERT_BEACON_BY_TAG\", {\n slug: \"radar-upsert-beacon-by-tag\",\n name: \"Upsert Beacon by Tag\",\n description: \"Tool to create or update a beacon by tag and externalId. Use when you need to ensure a beacon exists or is updated with specific identifiers.\",\n input: RadarUpsertBeaconByTagInput,\n output: RadarUpsertBeaconByTagOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACvF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACzH,MAAM,EAAE,KAAK,CAAC,WAAW,WAAW,CAAC,CAAC,CAAC,SAAS,8CAA8C;CAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC3H,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC3J,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACpG,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC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,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAM5D,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mBAAmB;EACpE,QAAQ,0CAA0C,SAAS;CAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
|
|
@@ -11,34 +11,34 @@ const RadarUpsertGeofenceByIdInput = zod.z.object({
|
|
|
11
11
|
]).describe("Geofence geometry type: circle, polygon, or isochrone"),
|
|
12
12
|
radius: zod.z.number().describe("Distance in meters (required for circle and isochrone types)").optional(),
|
|
13
13
|
enabled: zod.z.boolean().describe("Boolean to enable/disable event generation for this geofence").optional(),
|
|
14
|
-
metadata: zod.z.
|
|
14
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs (up to 16 keys)").optional(),
|
|
15
15
|
externalId: zod.z.string().describe("External database reference").optional(),
|
|
16
16
|
coordinates: zod.z.union([zod.z.array(zod.z.number()), zod.z.array(zod.z.array(zod.z.number()))]),
|
|
17
17
|
description: zod.z.string().describe("A display name for the geofence (required by API)")
|
|
18
18
|
}).describe("Request model for upserting a geofence by its Radar internal _id.");
|
|
19
|
-
const RadarUpsertGeofenceById_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code returned by Radar API") }).describe("Response metadata from Radar API.");
|
|
19
|
+
const RadarUpsertGeofenceById_MetaSchema = zod.z.object({ code: zod.z.number().int().describe("HTTP status code returned by Radar API").nullable() }).passthrough().describe("Response metadata from Radar API.");
|
|
20
20
|
const RadarUpsertGeofenceById_GeometrySchema = zod.z.object({
|
|
21
|
-
type: zod.z.string().describe("Geometry type, e.g., 'Point' or 'Polygon'"),
|
|
21
|
+
type: zod.z.string().describe("Geometry type, e.g., 'Point' or 'Polygon'").nullable(),
|
|
22
22
|
coordinates: zod.z.union([zod.z.array(zod.z.number()), zod.z.array(zod.z.array(zod.z.array(zod.z.number())))])
|
|
23
|
-
}).describe("Geometry details of a geofence.");
|
|
23
|
+
}).passthrough().describe("Geometry details of a geofence.");
|
|
24
24
|
const RadarUpsertGeofenceById_GeofenceSchema = zod.z.object({
|
|
25
|
-
_id: zod.z.string().describe("Unique identifier of the geofence"),
|
|
25
|
+
_id: zod.z.string().describe("Unique identifier of the geofence").nullable(),
|
|
26
26
|
tag: zod.z.string().describe("Tag associated with the geofence").nullable().optional(),
|
|
27
|
-
type: zod.z.string().describe("Type of the geofence shape"),
|
|
27
|
+
type: zod.z.string().describe("Type of the geofence shape").nullable(),
|
|
28
28
|
enabled: zod.z.boolean().describe("Whether the geofence is enabled").nullable().optional(),
|
|
29
29
|
geometry: RadarUpsertGeofenceById_GeometrySchema.nullable(),
|
|
30
|
-
metadata: zod.z.
|
|
31
|
-
createdAt: zod.z.string().describe("ISO8601 timestamp when created"),
|
|
32
|
-
updatedAt: zod.z.string().describe("ISO8601 timestamp when last updated"),
|
|
30
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata of the geofence").nullable().optional(),
|
|
31
|
+
createdAt: zod.z.string().describe("ISO8601 timestamp when created").nullable(),
|
|
32
|
+
updatedAt: zod.z.string().describe("ISO8601 timestamp when last updated").nullable(),
|
|
33
33
|
externalId: zod.z.string().describe("External identifier of the geofence").nullable().optional(),
|
|
34
34
|
description: zod.z.string().describe("Description of the geofence").nullable().optional(),
|
|
35
|
-
geometryCenter: zod.z.
|
|
35
|
+
geometryCenter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Center point of the geofence").nullable().optional(),
|
|
36
36
|
geometryRadius: zod.z.number().describe("Radius of the geofence in meters (for circles)").nullable().optional()
|
|
37
|
-
}).describe("Representation of a Radar geofence.");
|
|
37
|
+
}).passthrough().describe("Representation of a Radar geofence.");
|
|
38
38
|
const RadarUpsertGeofenceByIdOutput = zod.z.object({
|
|
39
39
|
meta: RadarUpsertGeofenceById_MetaSchema.nullable(),
|
|
40
40
|
geofence: RadarUpsertGeofenceById_GeofenceSchema.nullable()
|
|
41
|
-
}).describe("Response model for upserting a geofence by ID.");
|
|
41
|
+
}).passthrough().describe("Response model for upserting a geofence by ID.");
|
|
42
42
|
const radarUpsertGeofenceById = require_action.action("RADAR_UPSERT_GEOFENCE_BY_ID", {
|
|
43
43
|
slug: "radar-upsert-geofence-by-id",
|
|
44
44
|
name: "Upsert Geofence By ID",
|