@adventurelabs/scout-core 1.2.6 → 1.3.1
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/helpers/cache.js +3 -1
- package/dist/helpers/session_summaries.d.ts +6 -0
- package/dist/helpers/session_summaries.js +51 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/useHerdData.d.ts +167 -0
- package/dist/hooks/useHerdData.js +153 -0
- package/dist/hooks/useInfiniteQuery.d.ts +24 -0
- package/dist/hooks/useInfiniteQuery.js +360 -0
- package/dist/hooks/useScoutRealtimeEvents.d.ts +1 -1
- package/dist/hooks/useScoutRealtimeEvents.js +18 -23
- package/dist/hooks/useScoutRealtimeSessions.d.ts +1 -1
- package/dist/hooks/useScoutRealtimeSessions.js +20 -12
- package/dist/hooks/useScoutRealtimeTags.d.ts +1 -1
- package/dist/hooks/useScoutRealtimeTags.js +15 -12
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/providers/ScoutRefreshProvider.d.ts +119 -0
- package/dist/store/api.d.ts +968 -0
- package/dist/store/api.js +377 -0
- package/dist/store/configureStore.d.ts +96 -0
- package/dist/store/configureStore.js +40 -0
- package/dist/store/hooks.d.ts +5 -0
- package/dist/store/hooks.js +21 -3
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.js +1 -0
- package/dist/store/scout.d.ts +13 -50
- package/dist/store/scout.js +33 -141
- package/dist/types/db.d.ts +18 -0
- package/dist/types/herd_module.d.ts +4 -16
- package/dist/types/herd_module.js +17 -23
- package/dist/types/supabase.d.ts +119 -0
- package/package.json +1 -1
package/dist/types/supabase.d.ts
CHANGED
|
@@ -1217,6 +1217,56 @@ export type Database = {
|
|
|
1217
1217
|
isSetofReturn: true;
|
|
1218
1218
|
};
|
|
1219
1219
|
};
|
|
1220
|
+
get_artifacts_infinite_by_device: {
|
|
1221
|
+
Args: {
|
|
1222
|
+
cursor_id?: number;
|
|
1223
|
+
cursor_timestamp?: string;
|
|
1224
|
+
device_id_caller: number;
|
|
1225
|
+
limit_caller?: number;
|
|
1226
|
+
};
|
|
1227
|
+
Returns: {
|
|
1228
|
+
created_at: string;
|
|
1229
|
+
device_id: number;
|
|
1230
|
+
file_path: string;
|
|
1231
|
+
id: number;
|
|
1232
|
+
modality: string | null;
|
|
1233
|
+
session_id: number | null;
|
|
1234
|
+
timestamp_observation: string | null;
|
|
1235
|
+
timestamp_observation_end: string;
|
|
1236
|
+
updated_at: string | null;
|
|
1237
|
+
}[];
|
|
1238
|
+
SetofOptions: {
|
|
1239
|
+
from: "*";
|
|
1240
|
+
to: "artifacts";
|
|
1241
|
+
isOneToOne: false;
|
|
1242
|
+
isSetofReturn: true;
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
get_artifacts_infinite_by_herd: {
|
|
1246
|
+
Args: {
|
|
1247
|
+
cursor_id?: number;
|
|
1248
|
+
cursor_timestamp?: string;
|
|
1249
|
+
herd_id_caller: number;
|
|
1250
|
+
limit_caller?: number;
|
|
1251
|
+
};
|
|
1252
|
+
Returns: {
|
|
1253
|
+
created_at: string;
|
|
1254
|
+
device_id: number;
|
|
1255
|
+
file_path: string;
|
|
1256
|
+
id: number;
|
|
1257
|
+
modality: string | null;
|
|
1258
|
+
session_id: number | null;
|
|
1259
|
+
timestamp_observation: string | null;
|
|
1260
|
+
timestamp_observation_end: string;
|
|
1261
|
+
updated_at: string | null;
|
|
1262
|
+
}[];
|
|
1263
|
+
SetofOptions: {
|
|
1264
|
+
from: "*";
|
|
1265
|
+
to: "artifacts";
|
|
1266
|
+
isOneToOne: false;
|
|
1267
|
+
isSetofReturn: true;
|
|
1268
|
+
};
|
|
1269
|
+
};
|
|
1220
1270
|
get_connectivity_with_coordinates: {
|
|
1221
1271
|
Args: {
|
|
1222
1272
|
session_id_caller: number;
|
|
@@ -1338,6 +1388,36 @@ export type Database = {
|
|
|
1338
1388
|
isSetofReturn: true;
|
|
1339
1389
|
};
|
|
1340
1390
|
};
|
|
1391
|
+
get_events_infinite_by_device: {
|
|
1392
|
+
Args: {
|
|
1393
|
+
cursor_id?: number;
|
|
1394
|
+
cursor_timestamp?: string;
|
|
1395
|
+
device_id_caller: number;
|
|
1396
|
+
limit_caller?: number;
|
|
1397
|
+
};
|
|
1398
|
+
Returns: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"][];
|
|
1399
|
+
SetofOptions: {
|
|
1400
|
+
from: "*";
|
|
1401
|
+
to: "event_and_tags_pretty_location";
|
|
1402
|
+
isOneToOne: false;
|
|
1403
|
+
isSetofReturn: true;
|
|
1404
|
+
};
|
|
1405
|
+
};
|
|
1406
|
+
get_events_infinite_by_herd: {
|
|
1407
|
+
Args: {
|
|
1408
|
+
cursor_id?: number;
|
|
1409
|
+
cursor_timestamp?: string;
|
|
1410
|
+
herd_id_caller: number;
|
|
1411
|
+
limit_caller?: number;
|
|
1412
|
+
};
|
|
1413
|
+
Returns: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"][];
|
|
1414
|
+
SetofOptions: {
|
|
1415
|
+
from: "*";
|
|
1416
|
+
to: "event_and_tags_pretty_location";
|
|
1417
|
+
isOneToOne: false;
|
|
1418
|
+
isSetofReturn: true;
|
|
1419
|
+
};
|
|
1420
|
+
};
|
|
1341
1421
|
get_events_with_tags_for_herd: {
|
|
1342
1422
|
Args: {
|
|
1343
1423
|
herd_id_caller: number;
|
|
@@ -1380,6 +1460,45 @@ export type Database = {
|
|
|
1380
1460
|
isSetofReturn: true;
|
|
1381
1461
|
};
|
|
1382
1462
|
};
|
|
1463
|
+
get_session_summaries: {
|
|
1464
|
+
Args: {
|
|
1465
|
+
device_id_caller?: number;
|
|
1466
|
+
end_date_caller?: string;
|
|
1467
|
+
herd_id_caller?: number;
|
|
1468
|
+
start_date_caller?: string;
|
|
1469
|
+
};
|
|
1470
|
+
Returns: Json;
|
|
1471
|
+
};
|
|
1472
|
+
get_sessions_infinite_by_device: {
|
|
1473
|
+
Args: {
|
|
1474
|
+
cursor_id?: number;
|
|
1475
|
+
cursor_timestamp?: string;
|
|
1476
|
+
device_id_caller: number;
|
|
1477
|
+
limit_caller?: number;
|
|
1478
|
+
};
|
|
1479
|
+
Returns: Database["public"]["CompositeTypes"]["session_with_coordinates"][];
|
|
1480
|
+
SetofOptions: {
|
|
1481
|
+
from: "*";
|
|
1482
|
+
to: "session_with_coordinates";
|
|
1483
|
+
isOneToOne: false;
|
|
1484
|
+
isSetofReturn: true;
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
get_sessions_infinite_by_herd: {
|
|
1488
|
+
Args: {
|
|
1489
|
+
cursor_id?: number;
|
|
1490
|
+
cursor_timestamp?: string;
|
|
1491
|
+
herd_id_caller: number;
|
|
1492
|
+
limit_caller?: number;
|
|
1493
|
+
};
|
|
1494
|
+
Returns: Database["public"]["CompositeTypes"]["session_with_coordinates"][];
|
|
1495
|
+
SetofOptions: {
|
|
1496
|
+
from: "*";
|
|
1497
|
+
to: "session_with_coordinates";
|
|
1498
|
+
isOneToOne: false;
|
|
1499
|
+
isSetofReturn: true;
|
|
1500
|
+
};
|
|
1501
|
+
};
|
|
1383
1502
|
get_sessions_with_coordinates: {
|
|
1384
1503
|
Args: {
|
|
1385
1504
|
herd_id_caller: number;
|