@adventurelabs/scout-core 1.4.17 → 1.4.19
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/artifacts.d.ts +11 -2
- package/dist/helpers/artifacts.js +33 -6
- package/dist/helpers/bounding_boxes.d.ts +2 -2
- package/dist/helpers/bounding_boxes.js +3 -5
- package/dist/helpers/events.d.ts +2 -1
- package/dist/helpers/events.js +24 -0
- package/dist/helpers/tags.js +35 -16
- package/dist/hooks/useInfiniteQuery.d.ts +3 -1
- package/dist/hooks/useInfiniteQuery.js +122 -1
- package/dist/providers/ScoutRefreshProvider.d.ts +326 -52
- package/dist/store/api.d.ts +387 -1
- package/dist/store/api.js +168 -1
- package/dist/store/configureStore.d.ts +48 -0
- package/dist/types/db.d.ts +14 -0
- package/dist/types/supabase.d.ts +337 -52
- package/package.json +1 -1
|
@@ -54,6 +54,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
54
54
|
embedding_qwen_vl_2b: string | null;
|
|
55
55
|
embedding_vertex_mm_01: string | null;
|
|
56
56
|
file_path: string;
|
|
57
|
+
file_size_bytes: number | null;
|
|
57
58
|
id: number;
|
|
58
59
|
modality: string | null;
|
|
59
60
|
session_id: number | null;
|
|
@@ -67,6 +68,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
67
68
|
embedding_qwen_vl_2b?: string | null;
|
|
68
69
|
embedding_vertex_mm_01?: string | null;
|
|
69
70
|
file_path: string;
|
|
71
|
+
file_size_bytes?: number | null;
|
|
70
72
|
id?: number;
|
|
71
73
|
modality?: string | null;
|
|
72
74
|
session_id?: number | null;
|
|
@@ -80,6 +82,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
80
82
|
embedding_qwen_vl_2b?: string | null;
|
|
81
83
|
embedding_vertex_mm_01?: string | null;
|
|
82
84
|
file_path?: string;
|
|
85
|
+
file_size_bytes?: number | null;
|
|
83
86
|
id?: number;
|
|
84
87
|
modality?: string | null;
|
|
85
88
|
session_id?: number | null;
|
|
@@ -107,6 +110,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
107
110
|
expiration: string | null;
|
|
108
111
|
id: number;
|
|
109
112
|
issuer: string;
|
|
113
|
+
part_id: number | null;
|
|
110
114
|
tracking_number: string | null;
|
|
111
115
|
type: string;
|
|
112
116
|
updated_at: string | null;
|
|
@@ -116,6 +120,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
116
120
|
expiration?: string | null;
|
|
117
121
|
id?: number;
|
|
118
122
|
issuer: string;
|
|
123
|
+
part_id?: number | null;
|
|
119
124
|
tracking_number?: string | null;
|
|
120
125
|
type: string;
|
|
121
126
|
updated_at?: string | null;
|
|
@@ -125,11 +130,18 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
125
130
|
expiration?: string | null;
|
|
126
131
|
id?: number;
|
|
127
132
|
issuer?: string;
|
|
133
|
+
part_id?: number | null;
|
|
128
134
|
tracking_number?: string | null;
|
|
129
135
|
type?: string;
|
|
130
136
|
updated_at?: string | null;
|
|
131
137
|
};
|
|
132
|
-
Relationships: [
|
|
138
|
+
Relationships: [{
|
|
139
|
+
foreignKeyName: "certificates_part_id_fkey";
|
|
140
|
+
columns: ["part_id"];
|
|
141
|
+
isOneToOne: false;
|
|
142
|
+
referencedRelation: "parts";
|
|
143
|
+
referencedColumns: ["id"];
|
|
144
|
+
}];
|
|
133
145
|
};
|
|
134
146
|
chat: {
|
|
135
147
|
Row: {
|
|
@@ -245,6 +257,45 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
245
257
|
referencedColumns: ["id"];
|
|
246
258
|
}];
|
|
247
259
|
};
|
|
260
|
+
credentials: {
|
|
261
|
+
Row: {
|
|
262
|
+
created_at: string;
|
|
263
|
+
expiration: string | null;
|
|
264
|
+
id: number;
|
|
265
|
+
issuer: string;
|
|
266
|
+
tracking_number: string | null;
|
|
267
|
+
type: string;
|
|
268
|
+
updated_at: string | null;
|
|
269
|
+
user_id: string;
|
|
270
|
+
};
|
|
271
|
+
Insert: {
|
|
272
|
+
created_at?: string;
|
|
273
|
+
expiration?: string | null;
|
|
274
|
+
id?: number;
|
|
275
|
+
issuer: string;
|
|
276
|
+
tracking_number?: string | null;
|
|
277
|
+
type: string;
|
|
278
|
+
updated_at?: string | null;
|
|
279
|
+
user_id: string;
|
|
280
|
+
};
|
|
281
|
+
Update: {
|
|
282
|
+
created_at?: string;
|
|
283
|
+
expiration?: string | null;
|
|
284
|
+
id?: number;
|
|
285
|
+
issuer?: string;
|
|
286
|
+
tracking_number?: string | null;
|
|
287
|
+
type?: string;
|
|
288
|
+
updated_at?: string | null;
|
|
289
|
+
user_id?: string;
|
|
290
|
+
};
|
|
291
|
+
Relationships: [{
|
|
292
|
+
foreignKeyName: "credentials_user_id_fkey";
|
|
293
|
+
columns: ["user_id"];
|
|
294
|
+
isOneToOne: false;
|
|
295
|
+
referencedRelation: "users";
|
|
296
|
+
referencedColumns: ["id"];
|
|
297
|
+
}];
|
|
298
|
+
};
|
|
248
299
|
devices: {
|
|
249
300
|
Row: {
|
|
250
301
|
altitude: number | null;
|
|
@@ -518,6 +569,78 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
518
569
|
referencedColumns: ["id"];
|
|
519
570
|
}];
|
|
520
571
|
};
|
|
572
|
+
maintenance: {
|
|
573
|
+
Row: {
|
|
574
|
+
created_at: string;
|
|
575
|
+
description: string | null;
|
|
576
|
+
id: number;
|
|
577
|
+
part_id: number;
|
|
578
|
+
timestamp_completion: string;
|
|
579
|
+
type: string | null;
|
|
580
|
+
updated_at: string | null;
|
|
581
|
+
};
|
|
582
|
+
Insert: {
|
|
583
|
+
created_at?: string;
|
|
584
|
+
description?: string | null;
|
|
585
|
+
id?: number;
|
|
586
|
+
part_id: number;
|
|
587
|
+
timestamp_completion: string;
|
|
588
|
+
type?: string | null;
|
|
589
|
+
updated_at?: string | null;
|
|
590
|
+
};
|
|
591
|
+
Update: {
|
|
592
|
+
created_at?: string;
|
|
593
|
+
description?: string | null;
|
|
594
|
+
id?: number;
|
|
595
|
+
part_id?: number;
|
|
596
|
+
timestamp_completion?: string;
|
|
597
|
+
type?: string | null;
|
|
598
|
+
updated_at?: string | null;
|
|
599
|
+
};
|
|
600
|
+
Relationships: [{
|
|
601
|
+
foreignKeyName: "maintenance_part_id_fkey";
|
|
602
|
+
columns: ["part_id"];
|
|
603
|
+
isOneToOne: false;
|
|
604
|
+
referencedRelation: "parts";
|
|
605
|
+
referencedColumns: ["id"];
|
|
606
|
+
}];
|
|
607
|
+
};
|
|
608
|
+
observations: {
|
|
609
|
+
Row: {
|
|
610
|
+
action_complete: boolean;
|
|
611
|
+
action_required: string | null;
|
|
612
|
+
description: string;
|
|
613
|
+
id: number;
|
|
614
|
+
inserted_at: string;
|
|
615
|
+
session_id: number;
|
|
616
|
+
updated_at: string | null;
|
|
617
|
+
};
|
|
618
|
+
Insert: {
|
|
619
|
+
action_complete?: boolean;
|
|
620
|
+
action_required?: string | null;
|
|
621
|
+
description: string;
|
|
622
|
+
id?: number;
|
|
623
|
+
inserted_at?: string;
|
|
624
|
+
session_id: number;
|
|
625
|
+
updated_at?: string | null;
|
|
626
|
+
};
|
|
627
|
+
Update: {
|
|
628
|
+
action_complete?: boolean;
|
|
629
|
+
action_required?: string | null;
|
|
630
|
+
description?: string;
|
|
631
|
+
id?: number;
|
|
632
|
+
inserted_at?: string;
|
|
633
|
+
session_id?: number;
|
|
634
|
+
updated_at?: string | null;
|
|
635
|
+
};
|
|
636
|
+
Relationships: [{
|
|
637
|
+
foreignKeyName: "observations_session_id_fkey";
|
|
638
|
+
columns: ["session_id"];
|
|
639
|
+
isOneToOne: false;
|
|
640
|
+
referencedRelation: "sessions";
|
|
641
|
+
referencedColumns: ["id"];
|
|
642
|
+
}];
|
|
643
|
+
};
|
|
521
644
|
operators: {
|
|
522
645
|
Row: {
|
|
523
646
|
action: string | null;
|
|
@@ -724,13 +847,14 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
724
847
|
altitude_average: number;
|
|
725
848
|
altitude_max: number;
|
|
726
849
|
altitude_min: number;
|
|
850
|
+
battery_id: number | null;
|
|
727
851
|
device_id: number;
|
|
728
852
|
distance_max_from_start: number;
|
|
729
853
|
distance_total: number;
|
|
730
|
-
earthranger_url: string | null;
|
|
731
854
|
id: number;
|
|
732
855
|
inserted_at: string;
|
|
733
856
|
locations: unknown;
|
|
857
|
+
post_approver: string | null;
|
|
734
858
|
software_version: string;
|
|
735
859
|
timestamp_end: string | null;
|
|
736
860
|
timestamp_start: string;
|
|
@@ -742,13 +866,14 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
742
866
|
altitude_average: number;
|
|
743
867
|
altitude_max: number;
|
|
744
868
|
altitude_min: number;
|
|
869
|
+
battery_id?: number | null;
|
|
745
870
|
device_id: number;
|
|
746
871
|
distance_max_from_start: number;
|
|
747
872
|
distance_total: number;
|
|
748
|
-
earthranger_url?: string | null;
|
|
749
873
|
id?: number;
|
|
750
874
|
inserted_at?: string;
|
|
751
875
|
locations?: unknown;
|
|
876
|
+
post_approver?: string | null;
|
|
752
877
|
software_version: string;
|
|
753
878
|
timestamp_end?: string | null;
|
|
754
879
|
timestamp_start: string;
|
|
@@ -760,13 +885,14 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
760
885
|
altitude_average?: number;
|
|
761
886
|
altitude_max?: number;
|
|
762
887
|
altitude_min?: number;
|
|
888
|
+
battery_id?: number | null;
|
|
763
889
|
device_id?: number;
|
|
764
890
|
distance_max_from_start?: number;
|
|
765
891
|
distance_total?: number;
|
|
766
|
-
earthranger_url?: string | null;
|
|
767
892
|
id?: number;
|
|
768
893
|
inserted_at?: string;
|
|
769
894
|
locations?: unknown;
|
|
895
|
+
post_approver?: string | null;
|
|
770
896
|
software_version?: string;
|
|
771
897
|
timestamp_end?: string | null;
|
|
772
898
|
timestamp_start?: string;
|
|
@@ -775,54 +901,114 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
775
901
|
velocity_min?: number;
|
|
776
902
|
};
|
|
777
903
|
Relationships: [{
|
|
904
|
+
foreignKeyName: "sessions_battery_id_fkey";
|
|
905
|
+
columns: ["battery_id"];
|
|
906
|
+
isOneToOne: false;
|
|
907
|
+
referencedRelation: "parts";
|
|
908
|
+
referencedColumns: ["id"];
|
|
909
|
+
}, {
|
|
778
910
|
foreignKeyName: "sessions_device_id_fkey";
|
|
779
911
|
columns: ["device_id"];
|
|
780
912
|
isOneToOne: false;
|
|
781
913
|
referencedRelation: "devices";
|
|
782
914
|
referencedColumns: ["id"];
|
|
915
|
+
}, {
|
|
916
|
+
foreignKeyName: "sessions_post_approver_fkey";
|
|
917
|
+
columns: ["post_approver"];
|
|
918
|
+
isOneToOne: false;
|
|
919
|
+
referencedRelation: "users";
|
|
920
|
+
referencedColumns: ["id"];
|
|
783
921
|
}];
|
|
784
922
|
};
|
|
785
923
|
tags: {
|
|
786
924
|
Row: {
|
|
787
|
-
|
|
925
|
+
artifact_id: number | null;
|
|
926
|
+
class: string;
|
|
788
927
|
conf: number;
|
|
789
|
-
|
|
928
|
+
detector: string;
|
|
929
|
+
event_id: number | null;
|
|
930
|
+
frame_index: number | null;
|
|
790
931
|
height: number;
|
|
791
932
|
id: number;
|
|
792
933
|
inserted_at: string;
|
|
793
934
|
location: unknown;
|
|
794
935
|
observation_type: Database["public"]["Enums"]["tag_observation_type"];
|
|
936
|
+
origin_heading: number | null;
|
|
937
|
+
origin_height: number | null;
|
|
938
|
+
origin_location: unknown;
|
|
939
|
+
origin_pitch: number | null;
|
|
940
|
+
origin_roll: number | null;
|
|
941
|
+
sensor_pitch: number | null;
|
|
942
|
+
sensor_roll: number | null;
|
|
943
|
+
sensor_yaw: number | null;
|
|
944
|
+
subject_height: number | null;
|
|
945
|
+
subject_location: unknown;
|
|
946
|
+
timestamp_observation: string | null;
|
|
795
947
|
width: number;
|
|
796
948
|
x: number;
|
|
797
949
|
y: number;
|
|
798
950
|
};
|
|
799
951
|
Insert: {
|
|
800
|
-
|
|
952
|
+
artifact_id?: number | null;
|
|
953
|
+
class: string;
|
|
801
954
|
conf: number;
|
|
802
|
-
|
|
955
|
+
detector?: string;
|
|
956
|
+
event_id?: number | null;
|
|
957
|
+
frame_index?: number | null;
|
|
803
958
|
height?: number;
|
|
804
959
|
id?: number;
|
|
805
960
|
inserted_at?: string;
|
|
806
961
|
location?: unknown;
|
|
807
962
|
observation_type: Database["public"]["Enums"]["tag_observation_type"];
|
|
963
|
+
origin_heading?: number | null;
|
|
964
|
+
origin_height?: number | null;
|
|
965
|
+
origin_location?: unknown;
|
|
966
|
+
origin_pitch?: number | null;
|
|
967
|
+
origin_roll?: number | null;
|
|
968
|
+
sensor_pitch?: number | null;
|
|
969
|
+
sensor_roll?: number | null;
|
|
970
|
+
sensor_yaw?: number | null;
|
|
971
|
+
subject_height?: number | null;
|
|
972
|
+
subject_location?: unknown;
|
|
973
|
+
timestamp_observation?: string | null;
|
|
808
974
|
width: number;
|
|
809
975
|
x: number;
|
|
810
976
|
y: number;
|
|
811
977
|
};
|
|
812
978
|
Update: {
|
|
813
|
-
|
|
979
|
+
artifact_id?: number | null;
|
|
980
|
+
class?: string;
|
|
814
981
|
conf?: number;
|
|
815
|
-
|
|
982
|
+
detector?: string;
|
|
983
|
+
event_id?: number | null;
|
|
984
|
+
frame_index?: number | null;
|
|
816
985
|
height?: number;
|
|
817
986
|
id?: number;
|
|
818
987
|
inserted_at?: string;
|
|
819
988
|
location?: unknown;
|
|
820
989
|
observation_type?: Database["public"]["Enums"]["tag_observation_type"];
|
|
990
|
+
origin_heading?: number | null;
|
|
991
|
+
origin_height?: number | null;
|
|
992
|
+
origin_location?: unknown;
|
|
993
|
+
origin_pitch?: number | null;
|
|
994
|
+
origin_roll?: number | null;
|
|
995
|
+
sensor_pitch?: number | null;
|
|
996
|
+
sensor_roll?: number | null;
|
|
997
|
+
sensor_yaw?: number | null;
|
|
998
|
+
subject_height?: number | null;
|
|
999
|
+
subject_location?: unknown;
|
|
1000
|
+
timestamp_observation?: string | null;
|
|
821
1001
|
width?: number;
|
|
822
1002
|
x?: number;
|
|
823
1003
|
y?: number;
|
|
824
1004
|
};
|
|
825
1005
|
Relationships: [{
|
|
1006
|
+
foreignKeyName: "tags_artifact_id_fkey";
|
|
1007
|
+
columns: ["artifact_id"];
|
|
1008
|
+
isOneToOne: false;
|
|
1009
|
+
referencedRelation: "artifacts";
|
|
1010
|
+
referencedColumns: ["id"];
|
|
1011
|
+
}, {
|
|
826
1012
|
foreignKeyName: "tags_event_id_fkey";
|
|
827
1013
|
columns: ["event_id"];
|
|
828
1014
|
isOneToOne: false;
|
|
@@ -1167,6 +1353,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1167
1353
|
embedding_qwen_vl_2b: string | null;
|
|
1168
1354
|
embedding_vertex_mm_01: string | null;
|
|
1169
1355
|
file_path: string;
|
|
1356
|
+
file_size_bytes: number | null;
|
|
1170
1357
|
id: number;
|
|
1171
1358
|
modality: string | null;
|
|
1172
1359
|
session_id: number | null;
|
|
@@ -1192,6 +1379,34 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1192
1379
|
embedding_qwen_vl_2b: string | null;
|
|
1193
1380
|
embedding_vertex_mm_01: string | null;
|
|
1194
1381
|
file_path: string;
|
|
1382
|
+
file_size_bytes: number | null;
|
|
1383
|
+
id: number;
|
|
1384
|
+
modality: string | null;
|
|
1385
|
+
session_id: number | null;
|
|
1386
|
+
timestamp_observation: string | null;
|
|
1387
|
+
timestamp_observation_end: string;
|
|
1388
|
+
updated_at: string | null;
|
|
1389
|
+
}[];
|
|
1390
|
+
SetofOptions: {
|
|
1391
|
+
from: "*";
|
|
1392
|
+
to: "artifacts";
|
|
1393
|
+
isOneToOne: false;
|
|
1394
|
+
isSetofReturn: true;
|
|
1395
|
+
};
|
|
1396
|
+
} | {
|
|
1397
|
+
Args: {
|
|
1398
|
+
device_ids: number[];
|
|
1399
|
+
end_timestamp?: string;
|
|
1400
|
+
limit_per_device?: number;
|
|
1401
|
+
start_timestamp?: string;
|
|
1402
|
+
};
|
|
1403
|
+
Returns: {
|
|
1404
|
+
created_at: string;
|
|
1405
|
+
device_id: number;
|
|
1406
|
+
embedding_qwen_vl_2b: string | null;
|
|
1407
|
+
embedding_vertex_mm_01: string | null;
|
|
1408
|
+
file_path: string;
|
|
1409
|
+
file_size_bytes: number | null;
|
|
1195
1410
|
id: number;
|
|
1196
1411
|
modality: string | null;
|
|
1197
1412
|
session_id: number | null;
|
|
@@ -1218,6 +1433,35 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1218
1433
|
embedding_qwen_vl_2b: string | null;
|
|
1219
1434
|
embedding_vertex_mm_01: string | null;
|
|
1220
1435
|
file_path: string;
|
|
1436
|
+
file_size_bytes: number | null;
|
|
1437
|
+
id: number;
|
|
1438
|
+
modality: string | null;
|
|
1439
|
+
session_id: number | null;
|
|
1440
|
+
timestamp_observation: string | null;
|
|
1441
|
+
timestamp_observation_end: string;
|
|
1442
|
+
updated_at: string | null;
|
|
1443
|
+
}[];
|
|
1444
|
+
SetofOptions: {
|
|
1445
|
+
from: "*";
|
|
1446
|
+
to: "artifacts";
|
|
1447
|
+
isOneToOne: false;
|
|
1448
|
+
isSetofReturn: true;
|
|
1449
|
+
};
|
|
1450
|
+
} | {
|
|
1451
|
+
Args: {
|
|
1452
|
+
end_timestamp?: string;
|
|
1453
|
+
herd_id_caller: number;
|
|
1454
|
+
limit_caller?: number;
|
|
1455
|
+
offset_caller?: number;
|
|
1456
|
+
start_timestamp?: string;
|
|
1457
|
+
};
|
|
1458
|
+
Returns: {
|
|
1459
|
+
created_at: string;
|
|
1460
|
+
device_id: number;
|
|
1461
|
+
embedding_qwen_vl_2b: string | null;
|
|
1462
|
+
embedding_vertex_mm_01: string | null;
|
|
1463
|
+
file_path: string;
|
|
1464
|
+
file_size_bytes: number | null;
|
|
1221
1465
|
id: number;
|
|
1222
1466
|
modality: string | null;
|
|
1223
1467
|
session_id: number | null;
|
|
@@ -1245,6 +1489,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1245
1489
|
embedding_qwen_vl_2b: string | null;
|
|
1246
1490
|
embedding_vertex_mm_01: string | null;
|
|
1247
1491
|
file_path: string;
|
|
1492
|
+
file_size_bytes: number | null;
|
|
1248
1493
|
id: number;
|
|
1249
1494
|
modality: string | null;
|
|
1250
1495
|
session_id: number | null;
|
|
@@ -1272,6 +1517,7 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1272
1517
|
embedding_qwen_vl_2b: string | null;
|
|
1273
1518
|
embedding_vertex_mm_01: string | null;
|
|
1274
1519
|
file_path: string;
|
|
1520
|
+
file_size_bytes: number | null;
|
|
1275
1521
|
id: number;
|
|
1276
1522
|
modality: string | null;
|
|
1277
1523
|
session_id: number | null;
|
|
@@ -1451,6 +1697,38 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1451
1697
|
isSetofReturn: true;
|
|
1452
1698
|
};
|
|
1453
1699
|
};
|
|
1700
|
+
get_feed_infinite_by_device: {
|
|
1701
|
+
Args: {
|
|
1702
|
+
cursor_feed_type?: string;
|
|
1703
|
+
cursor_id?: number;
|
|
1704
|
+
cursor_timestamp?: string;
|
|
1705
|
+
device_id_caller: number;
|
|
1706
|
+
limit_caller?: number;
|
|
1707
|
+
};
|
|
1708
|
+
Returns: Database["public"]["CompositeTypes"]["feed_item"][];
|
|
1709
|
+
SetofOptions: {
|
|
1710
|
+
from: "*";
|
|
1711
|
+
to: "feed_item";
|
|
1712
|
+
isOneToOne: false;
|
|
1713
|
+
isSetofReturn: true;
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
get_feed_infinite_by_herd: {
|
|
1717
|
+
Args: {
|
|
1718
|
+
cursor_feed_type?: string;
|
|
1719
|
+
cursor_id?: number;
|
|
1720
|
+
cursor_timestamp?: string;
|
|
1721
|
+
herd_id_caller: number;
|
|
1722
|
+
limit_caller?: number;
|
|
1723
|
+
};
|
|
1724
|
+
Returns: Database["public"]["CompositeTypes"]["feed_item"][];
|
|
1725
|
+
SetofOptions: {
|
|
1726
|
+
from: "*";
|
|
1727
|
+
to: "feed_item";
|
|
1728
|
+
isOneToOne: false;
|
|
1729
|
+
isSetofReturn: true;
|
|
1730
|
+
};
|
|
1731
|
+
};
|
|
1454
1732
|
get_health_metrics_summary: {
|
|
1455
1733
|
Args: {
|
|
1456
1734
|
p_device_id: number;
|
|
@@ -1657,22 +1935,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1657
1935
|
match_threshold: number;
|
|
1658
1936
|
query_embedding: string;
|
|
1659
1937
|
};
|
|
1660
|
-
Returns:
|
|
1661
|
-
created_at: string;
|
|
1662
|
-
device_id: number;
|
|
1663
|
-
embedding_qwen_vl_2b: string | null;
|
|
1664
|
-
embedding_vertex_mm_01: string | null;
|
|
1665
|
-
file_path: string;
|
|
1666
|
-
id: number;
|
|
1667
|
-
modality: string | null;
|
|
1668
|
-
session_id: number | null;
|
|
1669
|
-
timestamp_observation: string | null;
|
|
1670
|
-
timestamp_observation_end: string;
|
|
1671
|
-
updated_at: string | null;
|
|
1672
|
-
}[];
|
|
1938
|
+
Returns: Database["public"]["CompositeTypes"]["embedding_match"][];
|
|
1673
1939
|
SetofOptions: {
|
|
1674
1940
|
from: "*";
|
|
1675
|
-
to: "
|
|
1941
|
+
to: "embedding_match";
|
|
1676
1942
|
isOneToOne: false;
|
|
1677
1943
|
isSetofReturn: true;
|
|
1678
1944
|
};
|
|
@@ -1684,27 +1950,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1684
1950
|
match_threshold: number;
|
|
1685
1951
|
query_embedding: string;
|
|
1686
1952
|
};
|
|
1687
|
-
Returns:
|
|
1688
|
-
altitude: number;
|
|
1689
|
-
device_id: number;
|
|
1690
|
-
earthranger_url: string | null;
|
|
1691
|
-
embedding_qwen_vl_2b: string | null;
|
|
1692
|
-
embedding_vertex_mm_01: string | null;
|
|
1693
|
-
file_path: string | null;
|
|
1694
|
-
heading: number;
|
|
1695
|
-
id: number;
|
|
1696
|
-
inserted_at: string;
|
|
1697
|
-
is_public: boolean;
|
|
1698
|
-
location: unknown;
|
|
1699
|
-
media_type: Database["public"]["Enums"]["media_type"];
|
|
1700
|
-
media_url: string | null;
|
|
1701
|
-
message: string | null;
|
|
1702
|
-
session_id: number | null;
|
|
1703
|
-
timestamp_observation: string;
|
|
1704
|
-
}[];
|
|
1953
|
+
Returns: Database["public"]["CompositeTypes"]["embedding_match"][];
|
|
1705
1954
|
SetofOptions: {
|
|
1706
1955
|
from: "*";
|
|
1707
|
-
to: "
|
|
1956
|
+
to: "embedding_match";
|
|
1708
1957
|
isOneToOne: false;
|
|
1709
1958
|
isSetofReturn: true;
|
|
1710
1959
|
};
|
|
@@ -1783,6 +2032,10 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1783
2032
|
latitude: number | null;
|
|
1784
2033
|
longitude: number | null;
|
|
1785
2034
|
};
|
|
2035
|
+
embedding_match: {
|
|
2036
|
+
id: number | null;
|
|
2037
|
+
confidence: number | null;
|
|
2038
|
+
};
|
|
1786
2039
|
event_and_tags: {
|
|
1787
2040
|
id: number | null;
|
|
1788
2041
|
inserted_at: string | null;
|
|
@@ -1848,6 +2101,13 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1848
2101
|
is_public: boolean | null;
|
|
1849
2102
|
tags: Database["public"]["Tables"]["tags"]["Row"][] | null;
|
|
1850
2103
|
};
|
|
2104
|
+
feed_item: {
|
|
2105
|
+
feed_type: string | null;
|
|
2106
|
+
sort_ts: string | null;
|
|
2107
|
+
sort_id: number | null;
|
|
2108
|
+
event_data: Database["public"]["CompositeTypes"]["event_and_tags_pretty_location"] | null;
|
|
2109
|
+
artifact_data: Database["public"]["Tables"]["artifacts"]["Row"] | null;
|
|
2110
|
+
};
|
|
1851
2111
|
herds_pretty_location: {
|
|
1852
2112
|
id: number | null;
|
|
1853
2113
|
inserted_at: string | null;
|
|
@@ -1897,17 +2157,31 @@ export declare function useSupabase(): SupabaseClient<Database, "public", "publi
|
|
|
1897
2157
|
tags_pretty_location: {
|
|
1898
2158
|
id: number | null;
|
|
1899
2159
|
inserted_at: string | null;
|
|
1900
|
-
|
|
1901
|
-
y: number | null;
|
|
1902
|
-
width: number | null;
|
|
1903
|
-
conf: number | null;
|
|
1904
|
-
observation_type: Database["public"]["Enums"]["tag_observation_type"] | null;
|
|
2160
|
+
artifact_id: number | null;
|
|
1905
2161
|
event_id: number | null;
|
|
1906
|
-
|
|
2162
|
+
detector: string | null;
|
|
2163
|
+
width: number | null;
|
|
1907
2164
|
height: number | null;
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
2165
|
+
conf: number | null;
|
|
2166
|
+
x: number | null;
|
|
2167
|
+
y: number | null;
|
|
2168
|
+
class: string | null;
|
|
2169
|
+
timestamp_observation: string | null;
|
|
2170
|
+
frame_index: number | null;
|
|
2171
|
+
origin_location: unknown;
|
|
2172
|
+
origin_pitch: number | null;
|
|
2173
|
+
origin_heading: number | null;
|
|
2174
|
+
origin_roll: number | null;
|
|
2175
|
+
sensor_pitch: number | null;
|
|
2176
|
+
sensor_yaw: number | null;
|
|
2177
|
+
sensor_roll: number | null;
|
|
2178
|
+
origin_height: number | null;
|
|
2179
|
+
subject_location: unknown;
|
|
2180
|
+
subject_height: number | null;
|
|
2181
|
+
origin_latitude: number | null;
|
|
2182
|
+
origin_longitude: number | null;
|
|
2183
|
+
subject_latitude: number | null;
|
|
2184
|
+
subject_longitude: number | null;
|
|
1911
2185
|
};
|
|
1912
2186
|
zones_and_actions_pretty_location: {
|
|
1913
2187
|
id: number | null;
|