@adventurelabs/scout-core 1.0.18 → 1.0.20

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.
@@ -171,15 +171,6 @@ export async function get_event_and_tags_by_event_id(event_id) {
171
171
  data: null,
172
172
  };
173
173
  }
174
- // Debug the location data structure
175
- console.log("Raw event data from DB:", {
176
- eventId: data[0].id,
177
- location: data[0].location,
178
- locationType: typeof data[0].location,
179
- hasCoordinates: data[0].location &&
180
- typeof data[0].location === "object" &&
181
- "coordinates" in data[0].location,
182
- });
183
174
  // Transform location to latitude/longitude with better error handling
184
175
  let latitude = null;
185
176
  let longitude = null;
@@ -230,6 +221,7 @@ export async function get_event_and_tags_by_event_id(event_id) {
230
221
  is_public: data[0].is_public,
231
222
  tags: data[0].tags || [],
232
223
  earthranger_url: data[0].earthranger_url,
224
+ file_path: data[0].file_path,
233
225
  };
234
226
  // Add signed URL to event using the same client
235
227
  const eventWithSignedUrl = await addSignedUrlToEvent(transformedData, supabase);
@@ -18,6 +18,7 @@ export type IUserRolePerHerd = Database["public"]["Tables"]["users_roles_per_her
18
18
  export type IHerd = Database["public"]["Tables"]["herds"]["Row"];
19
19
  export type IEventWithTags = Database["public"]["CompositeTypes"]["event_with_tags"] & {
20
20
  earthranger_url: string | null;
21
+ file_path: string | null;
21
22
  };
22
23
  export type IDevicePrettyLocation = Database["public"]["CompositeTypes"]["device_pretty_location"];
23
24
  export type IEventAndTagsPrettyLocation = Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adventurelabs/scout-core",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "Core utilities and helpers for Adventure Labs Scout applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",