@adventurelabs/scout-core 1.4.61 → 1.4.63

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.
@@ -1,7 +1,8 @@
1
1
  "use server";
2
2
  import { newServerClient } from "../supabase/server";
3
3
  import { IWebResponse } from "../types/requests";
4
- import { generateSignedUrlsBatch, generateSignedUrl, isNonEmptyStorageFilePath, } from "./storage";
4
+ import { generateSignedUrlsBatch, generateSignedUrl, } from "./storage";
5
+ import { isNonEmptyStorageFilePath } from "./storagePath";
5
6
  export async function server_get_artifact_by_id(id, client) {
6
7
  const supabase = client || (await newServerClient());
7
8
  const { data, error } = await supabase
@@ -2,7 +2,8 @@
2
2
  import { newServerClient } from "../supabase/server";
3
3
  import { EnumWebResponse, IWebResponse, } from "../types/requests";
4
4
  import { EnumSessionsVisibility } from "../types/events";
5
- import { generateSignedUrl, isNonEmptyStorageFilePath } from "./storage";
5
+ import { generateSignedUrl } from "./storage";
6
+ import { isNonEmptyStorageFilePath } from "./storagePath";
6
7
  export async function server_get_event_by_id(id, client) {
7
8
  const supabase = client || (await newServerClient());
8
9
  const { data, error } = await supabase
@@ -28,3 +28,4 @@ export * from "./versions_software";
28
28
  export * from "./versions_software_server";
29
29
  export * from "./artifacts";
30
30
  export * from "./pins";
31
+ export * from "./storagePath";
@@ -28,3 +28,4 @@ export * from "./versions_software";
28
28
  export * from "./versions_software_server";
29
29
  export * from "./artifacts";
30
30
  export * from "./pins";
31
+ export * from "./storagePath";
@@ -1,7 +1,8 @@
1
1
  "use server";
2
2
  import { newServerClient } from "../supabase/server";
3
3
  import { EnumWebResponse, IWebResponse, } from "../types/requests";
4
- import { generateSignedUrlsBatch, isNonEmptyStorageFilePath, } from "./storage";
4
+ import { generateSignedUrlsBatch, } from "./storage";
5
+ import { isNonEmptyStorageFilePath } from "./storagePath";
5
6
  // Get session by ID with coordinates
6
7
  export async function server_get_session_by_id(sessionId, client) {
7
8
  const supabase = client || (await newServerClient());
@@ -1,5 +1,4 @@
1
1
  import { SupabaseClient } from "@supabase/supabase-js";
2
2
  import { Database } from "../types/supabase";
3
- export { parseStorageFilePath, isNonEmptyStorageFilePath } from "./storagePath";
4
3
  export declare function generateSignedUrl(filePath: string, expiresIn?: number, supabaseClient?: SupabaseClient<Database>): Promise<string | null>;
5
4
  export declare function generateSignedUrlsBatch(filePaths: string[], expiresIn?: number, supabaseClient?: SupabaseClient<Database>): Promise<(string | null)[]>;
@@ -1,7 +1,7 @@
1
+ "use server";
1
2
  import { newServerClient } from "../supabase/server";
2
3
  import { SIGNED_URL_EXPIRATION_SECONDS } from "../constants/db";
3
4
  import { parseStorageFilePath } from "./storagePath";
4
- export { parseStorageFilePath, isNonEmptyStorageFilePath } from "./storagePath";
5
5
  export async function generateSignedUrl(filePath, expiresIn = SIGNED_URL_EXPIRATION_SECONDS, supabaseClient) {
6
6
  try {
7
7
  const supabase = supabaseClient || (await newServerClient());
@@ -2,7 +2,8 @@
2
2
  // add tag to db
3
3
  import { newServerClient } from "../supabase/server";
4
4
  import { EnumWebResponse, IWebResponse, } from "../types/requests";
5
- import { generateSignedUrlsBatch, generateSignedUrl, isNonEmptyStorageFilePath, } from "./storage";
5
+ import { generateSignedUrlsBatch, generateSignedUrl, } from "./storage";
6
+ import { isNonEmptyStorageFilePath } from "./storagePath";
6
7
  // Helper functions to extract coordinates from location field
7
8
  function extractLatitude(location) {
8
9
  try {
package/dist/index.d.ts CHANGED
@@ -46,6 +46,7 @@ export * from "./helpers/operators";
46
46
  export * from "./helpers/versions_software";
47
47
  export * from "./helpers/versions_software_server";
48
48
  export * from "./helpers/parts";
49
+ export * from "./helpers/storagePath";
49
50
  export * from "./hooks/useScoutRealtimeConnectivity";
50
51
  export * from "./hooks/useScoutRealtimeDevices";
51
52
  export * from "./hooks/useScoutRealtimeVersionsSoftware";
package/dist/index.js CHANGED
@@ -49,6 +49,7 @@ export * from "./helpers/operators";
49
49
  export * from "./helpers/versions_software";
50
50
  export * from "./helpers/versions_software_server";
51
51
  export * from "./helpers/parts";
52
+ export * from "./helpers/storagePath";
52
53
  // Hooks
53
54
  export * from "./hooks/useScoutRealtimeConnectivity";
54
55
  export * from "./hooks/useScoutRealtimeDevices";
package/dist/store/api.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { createApi, fakeBaseQuery } from "@reduxjs/toolkit/query/react";
2
- import { generateSignedUrlsBatch, isNonEmptyStorageFilePath, } from "../helpers/storage";
2
+ import { generateSignedUrlsBatch, } from "../helpers/storage";
3
+ import { isNonEmptyStorageFilePath } from "../helpers/storagePath";
3
4
  async function signedUrlMapForFeedRows(rows) {
4
5
  const seen = new Set();
5
6
  const paths = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adventurelabs/scout-core",
3
- "version": "1.4.61",
3
+ "version": "1.4.63",
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",