@adventurelabs/scout-core 1.2.5 → 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/pins.d.ts +2 -0
- package/dist/helpers/pins.js +58 -42
- 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 +123 -6
- 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 +123 -6
- package/package.json +1 -1
package/dist/types/supabase.d.ts
CHANGED
|
@@ -583,8 +583,7 @@ export type Database = {
|
|
|
583
583
|
description: string | null;
|
|
584
584
|
herd_id: number;
|
|
585
585
|
id: number;
|
|
586
|
-
|
|
587
|
-
longitude: unknown;
|
|
586
|
+
location: unknown;
|
|
588
587
|
name: string;
|
|
589
588
|
};
|
|
590
589
|
Insert: {
|
|
@@ -595,8 +594,7 @@ export type Database = {
|
|
|
595
594
|
description?: string | null;
|
|
596
595
|
herd_id: number;
|
|
597
596
|
id?: number;
|
|
598
|
-
|
|
599
|
-
longitude: unknown;
|
|
597
|
+
location?: unknown;
|
|
600
598
|
name: string;
|
|
601
599
|
};
|
|
602
600
|
Update: {
|
|
@@ -607,8 +605,7 @@ export type Database = {
|
|
|
607
605
|
description?: string | null;
|
|
608
606
|
herd_id?: number;
|
|
609
607
|
id?: number;
|
|
610
|
-
|
|
611
|
-
longitude?: unknown;
|
|
608
|
+
location?: unknown;
|
|
612
609
|
name?: string;
|
|
613
610
|
};
|
|
614
611
|
Relationships: [
|
|
@@ -1220,6 +1217,56 @@ export type Database = {
|
|
|
1220
1217
|
isSetofReturn: true;
|
|
1221
1218
|
};
|
|
1222
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
|
+
};
|
|
1223
1270
|
get_connectivity_with_coordinates: {
|
|
1224
1271
|
Args: {
|
|
1225
1272
|
session_id_caller: number;
|
|
@@ -1341,6 +1388,36 @@ export type Database = {
|
|
|
1341
1388
|
isSetofReturn: true;
|
|
1342
1389
|
};
|
|
1343
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
|
+
};
|
|
1344
1421
|
get_events_with_tags_for_herd: {
|
|
1345
1422
|
Args: {
|
|
1346
1423
|
herd_id_caller: number;
|
|
@@ -1383,6 +1460,45 @@ export type Database = {
|
|
|
1383
1460
|
isSetofReturn: true;
|
|
1384
1461
|
};
|
|
1385
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
|
+
};
|
|
1386
1502
|
get_sessions_with_coordinates: {
|
|
1387
1503
|
Args: {
|
|
1388
1504
|
herd_id_caller: number;
|
|
@@ -1605,6 +1721,7 @@ export type Database = {
|
|
|
1605
1721
|
pins_pretty_location: {
|
|
1606
1722
|
id: number | null;
|
|
1607
1723
|
created_at: string | null;
|
|
1724
|
+
location: unknown;
|
|
1608
1725
|
altitude_relative_to_ground: number | null;
|
|
1609
1726
|
color: string | null;
|
|
1610
1727
|
name: string | null;
|