@adventurelabs/scout-core 1.4.35 → 1.4.37
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.
|
@@ -9,5 +9,7 @@ export declare function server_update_connectivity(connectivity: (ConnectivityUp
|
|
|
9
9
|
}) | (ConnectivityUpdate & {
|
|
10
10
|
id: number;
|
|
11
11
|
})[], client?: SupabaseClient): Promise<IWebResponseCompatible<IConnectivity[]>>;
|
|
12
|
+
/** Connectivity records for a herd within a time range (devices in herd). */
|
|
13
|
+
export declare function server_get_connectivity_for_herd_time_range(herdId: number, startTimestamp: string, endTimestamp: string, maxCount?: number): Promise<IWebResponseCompatible<IConnectivityWithCoordinates[]>>;
|
|
12
14
|
/** Connectivity records for an artifact (uses session when set, else device + time window). */
|
|
13
15
|
export declare function server_get_connectivity_for_artifact(artifactId: number, maxElements?: number): Promise<IWebResponseCompatible<IConnectivityWithCoordinates[]>>;
|
|
@@ -96,6 +96,31 @@ export async function server_update_connectivity(connectivity, client) {
|
|
|
96
96
|
}
|
|
97
97
|
return IWebResponse.success(updatedConnectivity).to_compatible();
|
|
98
98
|
}
|
|
99
|
+
/** Connectivity records for a herd within a time range (devices in herd). */
|
|
100
|
+
export async function server_get_connectivity_for_herd_time_range(herdId, startTimestamp, endTimestamp, maxCount = 1000) {
|
|
101
|
+
const supabase = await newServerClient();
|
|
102
|
+
const { data, error } = await supabase.rpc("get_connectivity_for_herd_time_range", {
|
|
103
|
+
herd_id_caller: herdId,
|
|
104
|
+
start_timestamp_caller: startTimestamp,
|
|
105
|
+
end_timestamp_caller: endTimestamp,
|
|
106
|
+
max_elements_caller: maxCount,
|
|
107
|
+
});
|
|
108
|
+
if (error) {
|
|
109
|
+
console.warn("Error fetching connectivity for herd time range:", error.message);
|
|
110
|
+
return {
|
|
111
|
+
status: EnumWebResponse.ERROR,
|
|
112
|
+
msg: error.message,
|
|
113
|
+
data: [],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
const sortedConnectivity = (data || []).sort((a, b) => {
|
|
117
|
+
if (!a.timestamp_start || !b.timestamp_start)
|
|
118
|
+
return 0;
|
|
119
|
+
return (new Date(a.timestamp_start).getTime() -
|
|
120
|
+
new Date(b.timestamp_start).getTime());
|
|
121
|
+
});
|
|
122
|
+
return IWebResponse.success(sortedConnectivity).to_compatible();
|
|
123
|
+
}
|
|
99
124
|
/** Connectivity records for an artifact (uses session when set, else device + time window). */
|
|
100
125
|
export async function server_get_connectivity_for_artifact(artifactId, maxElements = 1000) {
|
|
101
126
|
const supabase = await newServerClient();
|
package/dist/helpers/tags.js
CHANGED
|
@@ -441,6 +441,9 @@ export async function get_event_and_tags_by_event_id(event_id) {
|
|
|
441
441
|
}),
|
|
442
442
|
earthranger_url: data[0].earthranger_url,
|
|
443
443
|
file_path: data[0].file_path,
|
|
444
|
+
embedded_at: data[0].embedded_at ?? null,
|
|
445
|
+
segmented_at: data[0].segmented_at ?? null,
|
|
446
|
+
tagged_at: data[0].tagged_at ?? null,
|
|
444
447
|
};
|
|
445
448
|
// Generate signed URL for event
|
|
446
449
|
let eventWithSignedUrl = transformedData;
|
|
@@ -51,10 +51,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
51
51
|
Row: {
|
|
52
52
|
created_at: string;
|
|
53
53
|
device_id: number;
|
|
54
|
+
embedded_at: string | null;
|
|
54
55
|
file_path: string;
|
|
55
56
|
file_size_bytes: number | null;
|
|
56
57
|
id: number;
|
|
57
58
|
modality: string | null;
|
|
59
|
+
segmented_at: string | null;
|
|
58
60
|
session_id: number | null;
|
|
59
61
|
tagged_at: string | null;
|
|
60
62
|
timestamp_observation: string | null;
|
|
@@ -64,10 +66,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
64
66
|
Insert: {
|
|
65
67
|
created_at?: string;
|
|
66
68
|
device_id: number;
|
|
69
|
+
embedded_at?: string | null;
|
|
67
70
|
file_path: string;
|
|
68
71
|
file_size_bytes?: number | null;
|
|
69
72
|
id?: number;
|
|
70
73
|
modality?: string | null;
|
|
74
|
+
segmented_at?: string | null;
|
|
71
75
|
session_id?: number | null;
|
|
72
76
|
tagged_at?: string | null;
|
|
73
77
|
timestamp_observation?: string | null;
|
|
@@ -77,10 +81,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
77
81
|
Update: {
|
|
78
82
|
created_at?: string;
|
|
79
83
|
device_id?: number;
|
|
84
|
+
embedded_at?: string | null;
|
|
80
85
|
file_path?: string;
|
|
81
86
|
file_size_bytes?: number | null;
|
|
82
87
|
id?: number;
|
|
83
88
|
modality?: string | null;
|
|
89
|
+
segmented_at?: string | null;
|
|
84
90
|
session_id?: number | null;
|
|
85
91
|
tagged_at?: string | null;
|
|
86
92
|
timestamp_observation?: string | null;
|
|
@@ -359,6 +365,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
359
365
|
created_at: string;
|
|
360
366
|
embedding: string;
|
|
361
367
|
event_id: number | null;
|
|
368
|
+
frame_index: number;
|
|
362
369
|
id: number;
|
|
363
370
|
origin_heading: number | null;
|
|
364
371
|
origin_height: number | null;
|
|
@@ -375,6 +382,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
375
382
|
created_at?: string;
|
|
376
383
|
embedding: string;
|
|
377
384
|
event_id?: number | null;
|
|
385
|
+
frame_index?: number;
|
|
378
386
|
id?: number;
|
|
379
387
|
origin_heading?: number | null;
|
|
380
388
|
origin_height?: number | null;
|
|
@@ -391,6 +399,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
391
399
|
created_at?: string;
|
|
392
400
|
embedding?: string;
|
|
393
401
|
event_id?: number | null;
|
|
402
|
+
frame_index?: number;
|
|
394
403
|
id?: number;
|
|
395
404
|
origin_heading?: number | null;
|
|
396
405
|
origin_height?: number | null;
|
|
@@ -433,6 +442,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
433
442
|
altitude: number;
|
|
434
443
|
device_id: number;
|
|
435
444
|
earthranger_url: string | null;
|
|
445
|
+
embedded_at: string | null;
|
|
436
446
|
file_path: string | null;
|
|
437
447
|
heading: number;
|
|
438
448
|
id: number;
|
|
@@ -442,13 +452,16 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
442
452
|
media_type: Database["public"]["Enums"]["media_type"];
|
|
443
453
|
media_url: string | null;
|
|
444
454
|
message: string | null;
|
|
455
|
+
segmented_at: string | null;
|
|
445
456
|
session_id: number | null;
|
|
457
|
+
tagged_at: string | null;
|
|
446
458
|
timestamp_observation: string;
|
|
447
459
|
};
|
|
448
460
|
Insert: {
|
|
449
461
|
altitude?: number;
|
|
450
462
|
device_id: number;
|
|
451
463
|
earthranger_url?: string | null;
|
|
464
|
+
embedded_at?: string | null;
|
|
452
465
|
file_path?: string | null;
|
|
453
466
|
heading?: number;
|
|
454
467
|
id?: number;
|
|
@@ -458,13 +471,16 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
458
471
|
media_type?: Database["public"]["Enums"]["media_type"];
|
|
459
472
|
media_url?: string | null;
|
|
460
473
|
message?: string | null;
|
|
474
|
+
segmented_at?: string | null;
|
|
461
475
|
session_id?: number | null;
|
|
476
|
+
tagged_at?: string | null;
|
|
462
477
|
timestamp_observation?: string;
|
|
463
478
|
};
|
|
464
479
|
Update: {
|
|
465
480
|
altitude?: number;
|
|
466
481
|
device_id?: number;
|
|
467
482
|
earthranger_url?: string | null;
|
|
483
|
+
embedded_at?: string | null;
|
|
468
484
|
file_path?: string | null;
|
|
469
485
|
heading?: number;
|
|
470
486
|
id?: number;
|
|
@@ -474,7 +490,9 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
474
490
|
media_type?: Database["public"]["Enums"]["media_type"];
|
|
475
491
|
media_url?: string | null;
|
|
476
492
|
message?: string | null;
|
|
493
|
+
segmented_at?: string | null;
|
|
477
494
|
session_id?: number | null;
|
|
495
|
+
tagged_at?: string | null;
|
|
478
496
|
timestamp_observation?: string;
|
|
479
497
|
};
|
|
480
498
|
Relationships: [{
|
|
@@ -908,6 +926,90 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
908
926
|
referencedColumns: ["id"];
|
|
909
927
|
}];
|
|
910
928
|
};
|
|
929
|
+
segmentations_sam3: {
|
|
930
|
+
Row: {
|
|
931
|
+
artifact_id: number | null;
|
|
932
|
+
created_at: string;
|
|
933
|
+
event_id: number | null;
|
|
934
|
+
frame_index: number;
|
|
935
|
+
id: number;
|
|
936
|
+
mask_rle: import("../types/supabase").Json;
|
|
937
|
+
origin_heading: number | null;
|
|
938
|
+
origin_height: number | null;
|
|
939
|
+
origin_location: unknown;
|
|
940
|
+
origin_pitch: number | null;
|
|
941
|
+
origin_roll: number | null;
|
|
942
|
+
sensor_pitch: number | null;
|
|
943
|
+
sensor_roll: number | null;
|
|
944
|
+
sensor_yaw: number | null;
|
|
945
|
+
subject_height: number | null;
|
|
946
|
+
subject_location: unknown;
|
|
947
|
+
timestamp_observation: string | null;
|
|
948
|
+
};
|
|
949
|
+
Insert: {
|
|
950
|
+
artifact_id?: number | null;
|
|
951
|
+
created_at?: string;
|
|
952
|
+
event_id?: number | null;
|
|
953
|
+
frame_index?: number;
|
|
954
|
+
id?: number;
|
|
955
|
+
mask_rle: import("../types/supabase").Json;
|
|
956
|
+
origin_heading?: number | null;
|
|
957
|
+
origin_height?: number | null;
|
|
958
|
+
origin_location?: unknown;
|
|
959
|
+
origin_pitch?: number | null;
|
|
960
|
+
origin_roll?: number | null;
|
|
961
|
+
sensor_pitch?: number | null;
|
|
962
|
+
sensor_roll?: number | null;
|
|
963
|
+
sensor_yaw?: number | null;
|
|
964
|
+
subject_height?: number | null;
|
|
965
|
+
subject_location?: unknown;
|
|
966
|
+
timestamp_observation?: string | null;
|
|
967
|
+
};
|
|
968
|
+
Update: {
|
|
969
|
+
artifact_id?: number | null;
|
|
970
|
+
created_at?: string;
|
|
971
|
+
event_id?: number | null;
|
|
972
|
+
frame_index?: number;
|
|
973
|
+
id?: number;
|
|
974
|
+
mask_rle?: import("../types/supabase").Json;
|
|
975
|
+
origin_heading?: number | null;
|
|
976
|
+
origin_height?: number | null;
|
|
977
|
+
origin_location?: unknown;
|
|
978
|
+
origin_pitch?: number | null;
|
|
979
|
+
origin_roll?: number | null;
|
|
980
|
+
sensor_pitch?: number | null;
|
|
981
|
+
sensor_roll?: number | null;
|
|
982
|
+
sensor_yaw?: number | null;
|
|
983
|
+
subject_height?: number | null;
|
|
984
|
+
subject_location?: unknown;
|
|
985
|
+
timestamp_observation?: string | null;
|
|
986
|
+
};
|
|
987
|
+
Relationships: [{
|
|
988
|
+
foreignKeyName: "segmentations_sam3_artifact_id_fkey";
|
|
989
|
+
columns: ["artifact_id"];
|
|
990
|
+
isOneToOne: false;
|
|
991
|
+
referencedRelation: "artifacts";
|
|
992
|
+
referencedColumns: ["id"];
|
|
993
|
+
}, {
|
|
994
|
+
foreignKeyName: "segmentations_sam3_event_id_fkey";
|
|
995
|
+
columns: ["event_id"];
|
|
996
|
+
isOneToOne: false;
|
|
997
|
+
referencedRelation: "events";
|
|
998
|
+
referencedColumns: ["id"];
|
|
999
|
+
}, {
|
|
1000
|
+
foreignKeyName: "segmentations_sam3_event_id_fkey";
|
|
1001
|
+
columns: ["event_id"];
|
|
1002
|
+
isOneToOne: false;
|
|
1003
|
+
referencedRelation: "events_with_tags";
|
|
1004
|
+
referencedColumns: ["id"];
|
|
1005
|
+
}, {
|
|
1006
|
+
foreignKeyName: "segmentations_sam3_event_id_fkey";
|
|
1007
|
+
columns: ["event_id"];
|
|
1008
|
+
isOneToOne: false;
|
|
1009
|
+
referencedRelation: "events_with_tags_by_session";
|
|
1010
|
+
referencedColumns: ["id"];
|
|
1011
|
+
}];
|
|
1012
|
+
};
|
|
911
1013
|
sessions: {
|
|
912
1014
|
Row: {
|
|
913
1015
|
altitude_average: number;
|
|
@@ -993,7 +1095,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
993
1095
|
conf: number;
|
|
994
1096
|
detector: string;
|
|
995
1097
|
event_id: number | null;
|
|
996
|
-
frame_index: number
|
|
1098
|
+
frame_index: number;
|
|
997
1099
|
height: number;
|
|
998
1100
|
id: number;
|
|
999
1101
|
inserted_at: string;
|
|
@@ -1019,7 +1121,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1019
1121
|
conf: number;
|
|
1020
1122
|
detector?: string;
|
|
1021
1123
|
event_id?: number | null;
|
|
1022
|
-
frame_index?: number
|
|
1124
|
+
frame_index?: number;
|
|
1023
1125
|
height?: number;
|
|
1024
1126
|
id?: number;
|
|
1025
1127
|
inserted_at?: string;
|
|
@@ -1045,7 +1147,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1045
1147
|
conf?: number;
|
|
1046
1148
|
detector?: string;
|
|
1047
1149
|
event_id?: number | null;
|
|
1048
|
-
frame_index?: number
|
|
1150
|
+
frame_index?: number;
|
|
1049
1151
|
height?: number;
|
|
1050
1152
|
id?: number;
|
|
1051
1153
|
inserted_at?: string;
|
|
@@ -1227,6 +1329,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1227
1329
|
altitude: number | null;
|
|
1228
1330
|
device_id: number | null;
|
|
1229
1331
|
earthranger_url: string | null;
|
|
1332
|
+
embedded_at: string | null;
|
|
1230
1333
|
file_path: string | null;
|
|
1231
1334
|
heading: number | null;
|
|
1232
1335
|
herd_id: number | null;
|
|
@@ -1237,7 +1340,9 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1237
1340
|
media_type: Database["public"]["Enums"]["media_type"] | null;
|
|
1238
1341
|
media_url: string | null;
|
|
1239
1342
|
message: string | null;
|
|
1343
|
+
segmented_at: string | null;
|
|
1240
1344
|
session_id: number | null;
|
|
1345
|
+
tagged_at: string | null;
|
|
1241
1346
|
tags: Database["public"]["Tables"]["tags"]["Row"][] | null;
|
|
1242
1347
|
timestamp_observation: string | null;
|
|
1243
1348
|
};
|
|
@@ -1419,10 +1524,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1419
1524
|
Returns: {
|
|
1420
1525
|
created_at: string;
|
|
1421
1526
|
device_id: number;
|
|
1527
|
+
embedded_at: string | null;
|
|
1422
1528
|
file_path: string;
|
|
1423
1529
|
file_size_bytes: number | null;
|
|
1424
1530
|
id: number;
|
|
1425
1531
|
modality: string | null;
|
|
1532
|
+
segmented_at: string | null;
|
|
1426
1533
|
session_id: number | null;
|
|
1427
1534
|
tagged_at: string | null;
|
|
1428
1535
|
timestamp_observation: string | null;
|
|
@@ -1444,10 +1551,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1444
1551
|
Returns: {
|
|
1445
1552
|
created_at: string;
|
|
1446
1553
|
device_id: number;
|
|
1554
|
+
embedded_at: string | null;
|
|
1447
1555
|
file_path: string;
|
|
1448
1556
|
file_size_bytes: number | null;
|
|
1449
1557
|
id: number;
|
|
1450
1558
|
modality: string | null;
|
|
1559
|
+
segmented_at: string | null;
|
|
1451
1560
|
session_id: number | null;
|
|
1452
1561
|
tagged_at: string | null;
|
|
1453
1562
|
timestamp_observation: string | null;
|
|
@@ -1470,10 +1579,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1470
1579
|
Returns: {
|
|
1471
1580
|
created_at: string;
|
|
1472
1581
|
device_id: number;
|
|
1582
|
+
embedded_at: string | null;
|
|
1473
1583
|
file_path: string;
|
|
1474
1584
|
file_size_bytes: number | null;
|
|
1475
1585
|
id: number;
|
|
1476
1586
|
modality: string | null;
|
|
1587
|
+
segmented_at: string | null;
|
|
1477
1588
|
session_id: number | null;
|
|
1478
1589
|
tagged_at: string | null;
|
|
1479
1590
|
timestamp_observation: string | null;
|
|
@@ -1496,10 +1607,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1496
1607
|
Returns: {
|
|
1497
1608
|
created_at: string;
|
|
1498
1609
|
device_id: number;
|
|
1610
|
+
embedded_at: string | null;
|
|
1499
1611
|
file_path: string;
|
|
1500
1612
|
file_size_bytes: number | null;
|
|
1501
1613
|
id: number;
|
|
1502
1614
|
modality: string | null;
|
|
1615
|
+
segmented_at: string | null;
|
|
1503
1616
|
session_id: number | null;
|
|
1504
1617
|
tagged_at: string | null;
|
|
1505
1618
|
timestamp_observation: string | null;
|
|
@@ -1523,10 +1636,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1523
1636
|
Returns: {
|
|
1524
1637
|
created_at: string;
|
|
1525
1638
|
device_id: number;
|
|
1639
|
+
embedded_at: string | null;
|
|
1526
1640
|
file_path: string;
|
|
1527
1641
|
file_size_bytes: number | null;
|
|
1528
1642
|
id: number;
|
|
1529
1643
|
modality: string | null;
|
|
1644
|
+
segmented_at: string | null;
|
|
1530
1645
|
session_id: number | null;
|
|
1531
1646
|
tagged_at: string | null;
|
|
1532
1647
|
timestamp_observation: string | null;
|
|
@@ -1550,10 +1665,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1550
1665
|
Returns: {
|
|
1551
1666
|
created_at: string;
|
|
1552
1667
|
device_id: number;
|
|
1668
|
+
embedded_at: string | null;
|
|
1553
1669
|
file_path: string;
|
|
1554
1670
|
file_size_bytes: number | null;
|
|
1555
1671
|
id: number;
|
|
1556
1672
|
modality: string | null;
|
|
1673
|
+
segmented_at: string | null;
|
|
1557
1674
|
session_id: number | null;
|
|
1558
1675
|
tagged_at: string | null;
|
|
1559
1676
|
timestamp_observation: string | null;
|
|
@@ -1577,10 +1694,12 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1577
1694
|
Returns: {
|
|
1578
1695
|
created_at: string;
|
|
1579
1696
|
device_id: number;
|
|
1697
|
+
embedded_at: string | null;
|
|
1580
1698
|
file_path: string;
|
|
1581
1699
|
file_size_bytes: number | null;
|
|
1582
1700
|
id: number;
|
|
1583
1701
|
modality: string | null;
|
|
1702
|
+
segmented_at: string | null;
|
|
1584
1703
|
session_id: number | null;
|
|
1585
1704
|
tagged_at: string | null;
|
|
1586
1705
|
timestamp_observation: string | null;
|
|
@@ -1607,6 +1726,34 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1607
1726
|
isSetofReturn: true;
|
|
1608
1727
|
};
|
|
1609
1728
|
};
|
|
1729
|
+
get_connectivity_for_event: {
|
|
1730
|
+
Args: {
|
|
1731
|
+
event_id_caller: number;
|
|
1732
|
+
max_elements_caller?: number;
|
|
1733
|
+
};
|
|
1734
|
+
Returns: Database["public"]["CompositeTypes"]["connectivity_with_coordinates"][];
|
|
1735
|
+
SetofOptions: {
|
|
1736
|
+
from: "*";
|
|
1737
|
+
to: "connectivity_with_coordinates";
|
|
1738
|
+
isOneToOne: false;
|
|
1739
|
+
isSetofReturn: true;
|
|
1740
|
+
};
|
|
1741
|
+
};
|
|
1742
|
+
get_connectivity_for_herd_time_range: {
|
|
1743
|
+
Args: {
|
|
1744
|
+
end_timestamp_caller: string;
|
|
1745
|
+
herd_id_caller: number;
|
|
1746
|
+
max_elements_caller?: number;
|
|
1747
|
+
start_timestamp_caller: string;
|
|
1748
|
+
};
|
|
1749
|
+
Returns: Database["public"]["CompositeTypes"]["connectivity_with_coordinates"][];
|
|
1750
|
+
SetofOptions: {
|
|
1751
|
+
from: "*";
|
|
1752
|
+
to: "connectivity_with_coordinates";
|
|
1753
|
+
isOneToOne: false;
|
|
1754
|
+
isSetofReturn: true;
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1610
1757
|
get_connectivity_with_coordinates: {
|
|
1611
1758
|
Args: {
|
|
1612
1759
|
session_id_caller: number;
|
|
@@ -2180,6 +2327,9 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
2180
2327
|
is_public: boolean | null;
|
|
2181
2328
|
tags: Database["public"]["CompositeTypes"]["tags_pretty_location"][] | null;
|
|
2182
2329
|
herd_id: number | null;
|
|
2330
|
+
embedded_at: string | null;
|
|
2331
|
+
segmented_at: string | null;
|
|
2332
|
+
tagged_at: string | null;
|
|
2183
2333
|
};
|
|
2184
2334
|
event_plus_tags: {
|
|
2185
2335
|
id: number | null;
|
package/dist/types/supabase.d.ts
CHANGED
|
@@ -50,10 +50,12 @@ export type Database = {
|
|
|
50
50
|
Row: {
|
|
51
51
|
created_at: string;
|
|
52
52
|
device_id: number;
|
|
53
|
+
embedded_at: string | null;
|
|
53
54
|
file_path: string;
|
|
54
55
|
file_size_bytes: number | null;
|
|
55
56
|
id: number;
|
|
56
57
|
modality: string | null;
|
|
58
|
+
segmented_at: string | null;
|
|
57
59
|
session_id: number | null;
|
|
58
60
|
tagged_at: string | null;
|
|
59
61
|
timestamp_observation: string | null;
|
|
@@ -63,10 +65,12 @@ export type Database = {
|
|
|
63
65
|
Insert: {
|
|
64
66
|
created_at?: string;
|
|
65
67
|
device_id: number;
|
|
68
|
+
embedded_at?: string | null;
|
|
66
69
|
file_path: string;
|
|
67
70
|
file_size_bytes?: number | null;
|
|
68
71
|
id?: number;
|
|
69
72
|
modality?: string | null;
|
|
73
|
+
segmented_at?: string | null;
|
|
70
74
|
session_id?: number | null;
|
|
71
75
|
tagged_at?: string | null;
|
|
72
76
|
timestamp_observation?: string | null;
|
|
@@ -76,10 +80,12 @@ export type Database = {
|
|
|
76
80
|
Update: {
|
|
77
81
|
created_at?: string;
|
|
78
82
|
device_id?: number;
|
|
83
|
+
embedded_at?: string | null;
|
|
79
84
|
file_path?: string;
|
|
80
85
|
file_size_bytes?: number | null;
|
|
81
86
|
id?: number;
|
|
82
87
|
modality?: string | null;
|
|
88
|
+
segmented_at?: string | null;
|
|
83
89
|
session_id?: number | null;
|
|
84
90
|
tagged_at?: string | null;
|
|
85
91
|
timestamp_observation?: string | null;
|
|
@@ -374,6 +380,7 @@ export type Database = {
|
|
|
374
380
|
created_at: string;
|
|
375
381
|
embedding: string;
|
|
376
382
|
event_id: number | null;
|
|
383
|
+
frame_index: number;
|
|
377
384
|
id: number;
|
|
378
385
|
origin_heading: number | null;
|
|
379
386
|
origin_height: number | null;
|
|
@@ -390,6 +397,7 @@ export type Database = {
|
|
|
390
397
|
created_at?: string;
|
|
391
398
|
embedding: string;
|
|
392
399
|
event_id?: number | null;
|
|
400
|
+
frame_index?: number;
|
|
393
401
|
id?: number;
|
|
394
402
|
origin_heading?: number | null;
|
|
395
403
|
origin_height?: number | null;
|
|
@@ -406,6 +414,7 @@ export type Database = {
|
|
|
406
414
|
created_at?: string;
|
|
407
415
|
embedding?: string;
|
|
408
416
|
event_id?: number | null;
|
|
417
|
+
frame_index?: number;
|
|
409
418
|
id?: number;
|
|
410
419
|
origin_heading?: number | null;
|
|
411
420
|
origin_height?: number | null;
|
|
@@ -453,6 +462,7 @@ export type Database = {
|
|
|
453
462
|
altitude: number;
|
|
454
463
|
device_id: number;
|
|
455
464
|
earthranger_url: string | null;
|
|
465
|
+
embedded_at: string | null;
|
|
456
466
|
file_path: string | null;
|
|
457
467
|
heading: number;
|
|
458
468
|
id: number;
|
|
@@ -462,13 +472,16 @@ export type Database = {
|
|
|
462
472
|
media_type: Database["public"]["Enums"]["media_type"];
|
|
463
473
|
media_url: string | null;
|
|
464
474
|
message: string | null;
|
|
475
|
+
segmented_at: string | null;
|
|
465
476
|
session_id: number | null;
|
|
477
|
+
tagged_at: string | null;
|
|
466
478
|
timestamp_observation: string;
|
|
467
479
|
};
|
|
468
480
|
Insert: {
|
|
469
481
|
altitude?: number;
|
|
470
482
|
device_id: number;
|
|
471
483
|
earthranger_url?: string | null;
|
|
484
|
+
embedded_at?: string | null;
|
|
472
485
|
file_path?: string | null;
|
|
473
486
|
heading?: number;
|
|
474
487
|
id?: number;
|
|
@@ -478,13 +491,16 @@ export type Database = {
|
|
|
478
491
|
media_type?: Database["public"]["Enums"]["media_type"];
|
|
479
492
|
media_url?: string | null;
|
|
480
493
|
message?: string | null;
|
|
494
|
+
segmented_at?: string | null;
|
|
481
495
|
session_id?: number | null;
|
|
496
|
+
tagged_at?: string | null;
|
|
482
497
|
timestamp_observation?: string;
|
|
483
498
|
};
|
|
484
499
|
Update: {
|
|
485
500
|
altitude?: number;
|
|
486
501
|
device_id?: number;
|
|
487
502
|
earthranger_url?: string | null;
|
|
503
|
+
embedded_at?: string | null;
|
|
488
504
|
file_path?: string | null;
|
|
489
505
|
heading?: number;
|
|
490
506
|
id?: number;
|
|
@@ -494,7 +510,9 @@ export type Database = {
|
|
|
494
510
|
media_type?: Database["public"]["Enums"]["media_type"];
|
|
495
511
|
media_url?: string | null;
|
|
496
512
|
message?: string | null;
|
|
513
|
+
segmented_at?: string | null;
|
|
497
514
|
session_id?: number | null;
|
|
515
|
+
tagged_at?: string | null;
|
|
498
516
|
timestamp_observation?: string;
|
|
499
517
|
};
|
|
500
518
|
Relationships: [
|
|
@@ -956,6 +974,95 @@ export type Database = {
|
|
|
956
974
|
}
|
|
957
975
|
];
|
|
958
976
|
};
|
|
977
|
+
segmentations_sam3: {
|
|
978
|
+
Row: {
|
|
979
|
+
artifact_id: number | null;
|
|
980
|
+
created_at: string;
|
|
981
|
+
event_id: number | null;
|
|
982
|
+
frame_index: number;
|
|
983
|
+
id: number;
|
|
984
|
+
mask_rle: Json;
|
|
985
|
+
origin_heading: number | null;
|
|
986
|
+
origin_height: number | null;
|
|
987
|
+
origin_location: unknown;
|
|
988
|
+
origin_pitch: number | null;
|
|
989
|
+
origin_roll: number | null;
|
|
990
|
+
sensor_pitch: number | null;
|
|
991
|
+
sensor_roll: number | null;
|
|
992
|
+
sensor_yaw: number | null;
|
|
993
|
+
subject_height: number | null;
|
|
994
|
+
subject_location: unknown;
|
|
995
|
+
timestamp_observation: string | null;
|
|
996
|
+
};
|
|
997
|
+
Insert: {
|
|
998
|
+
artifact_id?: number | null;
|
|
999
|
+
created_at?: string;
|
|
1000
|
+
event_id?: number | null;
|
|
1001
|
+
frame_index?: number;
|
|
1002
|
+
id?: number;
|
|
1003
|
+
mask_rle: Json;
|
|
1004
|
+
origin_heading?: number | null;
|
|
1005
|
+
origin_height?: number | null;
|
|
1006
|
+
origin_location?: unknown;
|
|
1007
|
+
origin_pitch?: number | null;
|
|
1008
|
+
origin_roll?: number | null;
|
|
1009
|
+
sensor_pitch?: number | null;
|
|
1010
|
+
sensor_roll?: number | null;
|
|
1011
|
+
sensor_yaw?: number | null;
|
|
1012
|
+
subject_height?: number | null;
|
|
1013
|
+
subject_location?: unknown;
|
|
1014
|
+
timestamp_observation?: string | null;
|
|
1015
|
+
};
|
|
1016
|
+
Update: {
|
|
1017
|
+
artifact_id?: number | null;
|
|
1018
|
+
created_at?: string;
|
|
1019
|
+
event_id?: number | null;
|
|
1020
|
+
frame_index?: number;
|
|
1021
|
+
id?: number;
|
|
1022
|
+
mask_rle?: Json;
|
|
1023
|
+
origin_heading?: number | null;
|
|
1024
|
+
origin_height?: number | null;
|
|
1025
|
+
origin_location?: unknown;
|
|
1026
|
+
origin_pitch?: number | null;
|
|
1027
|
+
origin_roll?: number | null;
|
|
1028
|
+
sensor_pitch?: number | null;
|
|
1029
|
+
sensor_roll?: number | null;
|
|
1030
|
+
sensor_yaw?: number | null;
|
|
1031
|
+
subject_height?: number | null;
|
|
1032
|
+
subject_location?: unknown;
|
|
1033
|
+
timestamp_observation?: string | null;
|
|
1034
|
+
};
|
|
1035
|
+
Relationships: [
|
|
1036
|
+
{
|
|
1037
|
+
foreignKeyName: "segmentations_sam3_artifact_id_fkey";
|
|
1038
|
+
columns: ["artifact_id"];
|
|
1039
|
+
isOneToOne: false;
|
|
1040
|
+
referencedRelation: "artifacts";
|
|
1041
|
+
referencedColumns: ["id"];
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
foreignKeyName: "segmentations_sam3_event_id_fkey";
|
|
1045
|
+
columns: ["event_id"];
|
|
1046
|
+
isOneToOne: false;
|
|
1047
|
+
referencedRelation: "events";
|
|
1048
|
+
referencedColumns: ["id"];
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
foreignKeyName: "segmentations_sam3_event_id_fkey";
|
|
1052
|
+
columns: ["event_id"];
|
|
1053
|
+
isOneToOne: false;
|
|
1054
|
+
referencedRelation: "events_with_tags";
|
|
1055
|
+
referencedColumns: ["id"];
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
foreignKeyName: "segmentations_sam3_event_id_fkey";
|
|
1059
|
+
columns: ["event_id"];
|
|
1060
|
+
isOneToOne: false;
|
|
1061
|
+
referencedRelation: "events_with_tags_by_session";
|
|
1062
|
+
referencedColumns: ["id"];
|
|
1063
|
+
}
|
|
1064
|
+
];
|
|
1065
|
+
};
|
|
959
1066
|
sessions: {
|
|
960
1067
|
Row: {
|
|
961
1068
|
altitude_average: number;
|
|
@@ -1045,7 +1152,7 @@ export type Database = {
|
|
|
1045
1152
|
conf: number;
|
|
1046
1153
|
detector: string;
|
|
1047
1154
|
event_id: number | null;
|
|
1048
|
-
frame_index: number
|
|
1155
|
+
frame_index: number;
|
|
1049
1156
|
height: number;
|
|
1050
1157
|
id: number;
|
|
1051
1158
|
inserted_at: string;
|
|
@@ -1071,7 +1178,7 @@ export type Database = {
|
|
|
1071
1178
|
conf: number;
|
|
1072
1179
|
detector?: string;
|
|
1073
1180
|
event_id?: number | null;
|
|
1074
|
-
frame_index?: number
|
|
1181
|
+
frame_index?: number;
|
|
1075
1182
|
height?: number;
|
|
1076
1183
|
id?: number;
|
|
1077
1184
|
inserted_at?: string;
|
|
@@ -1097,7 +1204,7 @@ export type Database = {
|
|
|
1097
1204
|
conf?: number;
|
|
1098
1205
|
detector?: string;
|
|
1099
1206
|
event_id?: number | null;
|
|
1100
|
-
frame_index?: number
|
|
1207
|
+
frame_index?: number;
|
|
1101
1208
|
height?: number;
|
|
1102
1209
|
id?: number;
|
|
1103
1210
|
inserted_at?: string;
|
|
@@ -1289,6 +1396,7 @@ export type Database = {
|
|
|
1289
1396
|
altitude: number | null;
|
|
1290
1397
|
device_id: number | null;
|
|
1291
1398
|
earthranger_url: string | null;
|
|
1399
|
+
embedded_at: string | null;
|
|
1292
1400
|
file_path: string | null;
|
|
1293
1401
|
heading: number | null;
|
|
1294
1402
|
herd_id: number | null;
|
|
@@ -1299,7 +1407,9 @@ export type Database = {
|
|
|
1299
1407
|
media_type: Database["public"]["Enums"]["media_type"] | null;
|
|
1300
1408
|
media_url: string | null;
|
|
1301
1409
|
message: string | null;
|
|
1410
|
+
segmented_at: string | null;
|
|
1302
1411
|
session_id: number | null;
|
|
1412
|
+
tagged_at: string | null;
|
|
1303
1413
|
tags: Database["public"]["Tables"]["tags"]["Row"][] | null;
|
|
1304
1414
|
timestamp_observation: string | null;
|
|
1305
1415
|
};
|
|
@@ -1491,10 +1601,12 @@ export type Database = {
|
|
|
1491
1601
|
Returns: {
|
|
1492
1602
|
created_at: string;
|
|
1493
1603
|
device_id: number;
|
|
1604
|
+
embedded_at: string | null;
|
|
1494
1605
|
file_path: string;
|
|
1495
1606
|
file_size_bytes: number | null;
|
|
1496
1607
|
id: number;
|
|
1497
1608
|
modality: string | null;
|
|
1609
|
+
segmented_at: string | null;
|
|
1498
1610
|
session_id: number | null;
|
|
1499
1611
|
tagged_at: string | null;
|
|
1500
1612
|
timestamp_observation: string | null;
|
|
@@ -1516,10 +1628,12 @@ export type Database = {
|
|
|
1516
1628
|
Returns: {
|
|
1517
1629
|
created_at: string;
|
|
1518
1630
|
device_id: number;
|
|
1631
|
+
embedded_at: string | null;
|
|
1519
1632
|
file_path: string;
|
|
1520
1633
|
file_size_bytes: number | null;
|
|
1521
1634
|
id: number;
|
|
1522
1635
|
modality: string | null;
|
|
1636
|
+
segmented_at: string | null;
|
|
1523
1637
|
session_id: number | null;
|
|
1524
1638
|
tagged_at: string | null;
|
|
1525
1639
|
timestamp_observation: string | null;
|
|
@@ -1542,10 +1656,12 @@ export type Database = {
|
|
|
1542
1656
|
Returns: {
|
|
1543
1657
|
created_at: string;
|
|
1544
1658
|
device_id: number;
|
|
1659
|
+
embedded_at: string | null;
|
|
1545
1660
|
file_path: string;
|
|
1546
1661
|
file_size_bytes: number | null;
|
|
1547
1662
|
id: number;
|
|
1548
1663
|
modality: string | null;
|
|
1664
|
+
segmented_at: string | null;
|
|
1549
1665
|
session_id: number | null;
|
|
1550
1666
|
tagged_at: string | null;
|
|
1551
1667
|
timestamp_observation: string | null;
|
|
@@ -1568,10 +1684,12 @@ export type Database = {
|
|
|
1568
1684
|
Returns: {
|
|
1569
1685
|
created_at: string;
|
|
1570
1686
|
device_id: number;
|
|
1687
|
+
embedded_at: string | null;
|
|
1571
1688
|
file_path: string;
|
|
1572
1689
|
file_size_bytes: number | null;
|
|
1573
1690
|
id: number;
|
|
1574
1691
|
modality: string | null;
|
|
1692
|
+
segmented_at: string | null;
|
|
1575
1693
|
session_id: number | null;
|
|
1576
1694
|
tagged_at: string | null;
|
|
1577
1695
|
timestamp_observation: string | null;
|
|
@@ -1595,10 +1713,12 @@ export type Database = {
|
|
|
1595
1713
|
Returns: {
|
|
1596
1714
|
created_at: string;
|
|
1597
1715
|
device_id: number;
|
|
1716
|
+
embedded_at: string | null;
|
|
1598
1717
|
file_path: string;
|
|
1599
1718
|
file_size_bytes: number | null;
|
|
1600
1719
|
id: number;
|
|
1601
1720
|
modality: string | null;
|
|
1721
|
+
segmented_at: string | null;
|
|
1602
1722
|
session_id: number | null;
|
|
1603
1723
|
tagged_at: string | null;
|
|
1604
1724
|
timestamp_observation: string | null;
|
|
@@ -1622,10 +1742,12 @@ export type Database = {
|
|
|
1622
1742
|
Returns: {
|
|
1623
1743
|
created_at: string;
|
|
1624
1744
|
device_id: number;
|
|
1745
|
+
embedded_at: string | null;
|
|
1625
1746
|
file_path: string;
|
|
1626
1747
|
file_size_bytes: number | null;
|
|
1627
1748
|
id: number;
|
|
1628
1749
|
modality: string | null;
|
|
1750
|
+
segmented_at: string | null;
|
|
1629
1751
|
session_id: number | null;
|
|
1630
1752
|
tagged_at: string | null;
|
|
1631
1753
|
timestamp_observation: string | null;
|
|
@@ -1649,10 +1771,12 @@ export type Database = {
|
|
|
1649
1771
|
Returns: {
|
|
1650
1772
|
created_at: string;
|
|
1651
1773
|
device_id: number;
|
|
1774
|
+
embedded_at: string | null;
|
|
1652
1775
|
file_path: string;
|
|
1653
1776
|
file_size_bytes: number | null;
|
|
1654
1777
|
id: number;
|
|
1655
1778
|
modality: string | null;
|
|
1779
|
+
segmented_at: string | null;
|
|
1656
1780
|
session_id: number | null;
|
|
1657
1781
|
tagged_at: string | null;
|
|
1658
1782
|
timestamp_observation: string | null;
|
|
@@ -1679,6 +1803,34 @@ export type Database = {
|
|
|
1679
1803
|
isSetofReturn: true;
|
|
1680
1804
|
};
|
|
1681
1805
|
};
|
|
1806
|
+
get_connectivity_for_event: {
|
|
1807
|
+
Args: {
|
|
1808
|
+
event_id_caller: number;
|
|
1809
|
+
max_elements_caller?: number;
|
|
1810
|
+
};
|
|
1811
|
+
Returns: Database["public"]["CompositeTypes"]["connectivity_with_coordinates"][];
|
|
1812
|
+
SetofOptions: {
|
|
1813
|
+
from: "*";
|
|
1814
|
+
to: "connectivity_with_coordinates";
|
|
1815
|
+
isOneToOne: false;
|
|
1816
|
+
isSetofReturn: true;
|
|
1817
|
+
};
|
|
1818
|
+
};
|
|
1819
|
+
get_connectivity_for_herd_time_range: {
|
|
1820
|
+
Args: {
|
|
1821
|
+
end_timestamp_caller: string;
|
|
1822
|
+
herd_id_caller: number;
|
|
1823
|
+
max_elements_caller?: number;
|
|
1824
|
+
start_timestamp_caller: string;
|
|
1825
|
+
};
|
|
1826
|
+
Returns: Database["public"]["CompositeTypes"]["connectivity_with_coordinates"][];
|
|
1827
|
+
SetofOptions: {
|
|
1828
|
+
from: "*";
|
|
1829
|
+
to: "connectivity_with_coordinates";
|
|
1830
|
+
isOneToOne: false;
|
|
1831
|
+
isSetofReturn: true;
|
|
1832
|
+
};
|
|
1833
|
+
};
|
|
1682
1834
|
get_connectivity_with_coordinates: {
|
|
1683
1835
|
Args: {
|
|
1684
1836
|
session_id_caller: number;
|
|
@@ -2252,6 +2404,9 @@ export type Database = {
|
|
|
2252
2404
|
is_public: boolean | null;
|
|
2253
2405
|
tags: Database["public"]["CompositeTypes"]["tags_pretty_location"][] | null;
|
|
2254
2406
|
herd_id: number | null;
|
|
2407
|
+
embedded_at: string | null;
|
|
2408
|
+
segmented_at: string | null;
|
|
2409
|
+
tagged_at: string | null;
|
|
2255
2410
|
};
|
|
2256
2411
|
event_plus_tags: {
|
|
2257
2412
|
id: number | null;
|