@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
|
@@ -556,8 +556,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
556
556
|
description: string | null;
|
|
557
557
|
herd_id: number;
|
|
558
558
|
id: number;
|
|
559
|
-
|
|
560
|
-
longitude: unknown;
|
|
559
|
+
location: unknown;
|
|
561
560
|
name: string;
|
|
562
561
|
};
|
|
563
562
|
Insert: {
|
|
@@ -568,8 +567,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
568
567
|
description?: string | null;
|
|
569
568
|
herd_id: number;
|
|
570
569
|
id?: number;
|
|
571
|
-
|
|
572
|
-
longitude: unknown;
|
|
570
|
+
location?: unknown;
|
|
573
571
|
name: string;
|
|
574
572
|
};
|
|
575
573
|
Update: {
|
|
@@ -580,8 +578,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
580
578
|
description?: string | null;
|
|
581
579
|
herd_id?: number;
|
|
582
580
|
id?: number;
|
|
583
|
-
|
|
584
|
-
longitude?: unknown;
|
|
581
|
+
location?: unknown;
|
|
585
582
|
name?: string;
|
|
586
583
|
};
|
|
587
584
|
Relationships: [{
|
|
@@ -1165,6 +1162,56 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1165
1162
|
isSetofReturn: true;
|
|
1166
1163
|
};
|
|
1167
1164
|
};
|
|
1165
|
+
get_artifacts_infinite_by_device: {
|
|
1166
|
+
Args: {
|
|
1167
|
+
cursor_id?: number;
|
|
1168
|
+
cursor_timestamp?: string;
|
|
1169
|
+
device_id_caller: number;
|
|
1170
|
+
limit_caller?: number;
|
|
1171
|
+
};
|
|
1172
|
+
Returns: {
|
|
1173
|
+
created_at: string;
|
|
1174
|
+
device_id: number;
|
|
1175
|
+
file_path: string;
|
|
1176
|
+
id: number;
|
|
1177
|
+
modality: string | null;
|
|
1178
|
+
session_id: number | null;
|
|
1179
|
+
timestamp_observation: string | null;
|
|
1180
|
+
timestamp_observation_end: string;
|
|
1181
|
+
updated_at: string | null;
|
|
1182
|
+
}[];
|
|
1183
|
+
SetofOptions: {
|
|
1184
|
+
from: "*";
|
|
1185
|
+
to: "artifacts";
|
|
1186
|
+
isOneToOne: false;
|
|
1187
|
+
isSetofReturn: true;
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
get_artifacts_infinite_by_herd: {
|
|
1191
|
+
Args: {
|
|
1192
|
+
cursor_id?: number;
|
|
1193
|
+
cursor_timestamp?: string;
|
|
1194
|
+
herd_id_caller: number;
|
|
1195
|
+
limit_caller?: number;
|
|
1196
|
+
};
|
|
1197
|
+
Returns: {
|
|
1198
|
+
created_at: string;
|
|
1199
|
+
device_id: number;
|
|
1200
|
+
file_path: string;
|
|
1201
|
+
id: number;
|
|
1202
|
+
modality: string | null;
|
|
1203
|
+
session_id: number | null;
|
|
1204
|
+
timestamp_observation: string | null;
|
|
1205
|
+
timestamp_observation_end: string;
|
|
1206
|
+
updated_at: string | null;
|
|
1207
|
+
}[];
|
|
1208
|
+
SetofOptions: {
|
|
1209
|
+
from: "*";
|
|
1210
|
+
to: "artifacts";
|
|
1211
|
+
isOneToOne: false;
|
|
1212
|
+
isSetofReturn: true;
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1168
1215
|
get_connectivity_with_coordinates: {
|
|
1169
1216
|
Args: {
|
|
1170
1217
|
session_id_caller: number;
|
|
@@ -1286,6 +1333,36 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1286
1333
|
isSetofReturn: true;
|
|
1287
1334
|
};
|
|
1288
1335
|
};
|
|
1336
|
+
get_events_infinite_by_device: {
|
|
1337
|
+
Args: {
|
|
1338
|
+
cursor_id?: number;
|
|
1339
|
+
cursor_timestamp?: string;
|
|
1340
|
+
device_id_caller: number;
|
|
1341
|
+
limit_caller?: number;
|
|
1342
|
+
};
|
|
1343
|
+
Returns: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"][];
|
|
1344
|
+
SetofOptions: {
|
|
1345
|
+
from: "*";
|
|
1346
|
+
to: "event_and_tags_pretty_location";
|
|
1347
|
+
isOneToOne: false;
|
|
1348
|
+
isSetofReturn: true;
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
get_events_infinite_by_herd: {
|
|
1352
|
+
Args: {
|
|
1353
|
+
cursor_id?: number;
|
|
1354
|
+
cursor_timestamp?: string;
|
|
1355
|
+
herd_id_caller: number;
|
|
1356
|
+
limit_caller?: number;
|
|
1357
|
+
};
|
|
1358
|
+
Returns: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"][];
|
|
1359
|
+
SetofOptions: {
|
|
1360
|
+
from: "*";
|
|
1361
|
+
to: "event_and_tags_pretty_location";
|
|
1362
|
+
isOneToOne: false;
|
|
1363
|
+
isSetofReturn: true;
|
|
1364
|
+
};
|
|
1365
|
+
};
|
|
1289
1366
|
get_events_with_tags_for_herd: {
|
|
1290
1367
|
Args: {
|
|
1291
1368
|
herd_id_caller: number;
|
|
@@ -1328,6 +1405,45 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1328
1405
|
isSetofReturn: true;
|
|
1329
1406
|
};
|
|
1330
1407
|
};
|
|
1408
|
+
get_session_summaries: {
|
|
1409
|
+
Args: {
|
|
1410
|
+
device_id_caller?: number;
|
|
1411
|
+
end_date_caller?: string;
|
|
1412
|
+
herd_id_caller?: number;
|
|
1413
|
+
start_date_caller?: string;
|
|
1414
|
+
};
|
|
1415
|
+
Returns: import("../types/supabase").Json;
|
|
1416
|
+
};
|
|
1417
|
+
get_sessions_infinite_by_device: {
|
|
1418
|
+
Args: {
|
|
1419
|
+
cursor_id?: number;
|
|
1420
|
+
cursor_timestamp?: string;
|
|
1421
|
+
device_id_caller: number;
|
|
1422
|
+
limit_caller?: number;
|
|
1423
|
+
};
|
|
1424
|
+
Returns: Database["public"]["CompositeTypes"]["session_with_coordinates"][];
|
|
1425
|
+
SetofOptions: {
|
|
1426
|
+
from: "*";
|
|
1427
|
+
to: "session_with_coordinates";
|
|
1428
|
+
isOneToOne: false;
|
|
1429
|
+
isSetofReturn: true;
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
get_sessions_infinite_by_herd: {
|
|
1433
|
+
Args: {
|
|
1434
|
+
cursor_id?: number;
|
|
1435
|
+
cursor_timestamp?: string;
|
|
1436
|
+
herd_id_caller: number;
|
|
1437
|
+
limit_caller?: number;
|
|
1438
|
+
};
|
|
1439
|
+
Returns: Database["public"]["CompositeTypes"]["session_with_coordinates"][];
|
|
1440
|
+
SetofOptions: {
|
|
1441
|
+
from: "*";
|
|
1442
|
+
to: "session_with_coordinates";
|
|
1443
|
+
isOneToOne: false;
|
|
1444
|
+
isSetofReturn: true;
|
|
1445
|
+
};
|
|
1446
|
+
};
|
|
1331
1447
|
get_sessions_with_coordinates: {
|
|
1332
1448
|
Args: {
|
|
1333
1449
|
herd_id_caller: number;
|
|
@@ -1550,6 +1666,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1550
1666
|
pins_pretty_location: {
|
|
1551
1667
|
id: number | null;
|
|
1552
1668
|
created_at: string | null;
|
|
1669
|
+
location: unknown;
|
|
1553
1670
|
altitude_relative_to_ground: number | null;
|
|
1554
1671
|
color: string | null;
|
|
1555
1672
|
name: string | null;
|