@adventurelabs/scout-core 1.4.67 → 1.4.69
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/index.d.ts +3 -0
- package/dist/helpers/index.js +3 -0
- package/dist/helpers/lifecycle.d.ts +14 -0
- package/dist/helpers/lifecycle.js +74 -0
- package/dist/helpers/parts.d.ts +19 -13
- package/dist/helpers/parts.js +51 -47
- package/dist/helpers/pubsub_token.d.ts +5 -0
- package/dist/helpers/pubsub_token.js +14 -0
- package/dist/helpers/pubsub_token_server.d.ts +7 -0
- package/dist/helpers/pubsub_token_server.js +7 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/providers/ScoutRefreshProvider.d.ts +208 -15
- package/dist/types/db.d.ts +2 -0
- package/dist/types/pubsub_token.d.ts +7 -0
- package/dist/types/supabase.d.ts +217 -17
- package/dist/types/supabase.js +2 -2
- package/package.json +1 -1
- package/dist/helpers/components.d.ts +0 -14
- package/dist/helpers/components.js +0 -155
- package/dist/helpers/operator.d.ts +0 -5
- package/dist/helpers/operator.js +0 -64
- package/dist/hooks/useHerdData.d.ts +0 -167
- package/dist/hooks/useHerdData.js +0 -153
- package/dist/hooks/useScoutBrowserClient.d.ts +0 -11
- package/dist/hooks/useScoutBrowserClient.js +0 -17
- package/dist/hooks/useScoutDbListener.d.ts +0 -3
- package/dist/hooks/useScoutDbListener.js +0 -134
- package/dist/hooks/useScoutRealtimeConnectivity copy.d.ts +0 -3
- package/dist/hooks/useScoutRealtimeConnectivity copy.js +0 -159
- package/dist/hooks/useScoutRealtimeDevices copy.d.ts +0 -3
- package/dist/hooks/useScoutRealtimeDevices copy.js +0 -55
- package/dist/types/data.d.ts +0 -4
- /package/dist/types/{data.js → pubsub_token.js} +0 -0
package/dist/types/supabase.d.ts
CHANGED
|
@@ -174,6 +174,10 @@ export type Database = {
|
|
|
174
174
|
file_path: string;
|
|
175
175
|
file_size_bytes: number | null;
|
|
176
176
|
id: number;
|
|
177
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
178
|
+
lifecycle_changed_at: string;
|
|
179
|
+
lifecycle_changed_by: string | null;
|
|
180
|
+
lifecycle_reason: string | null;
|
|
177
181
|
modality: string | null;
|
|
178
182
|
segmented_at: string | null;
|
|
179
183
|
session_id: number | null;
|
|
@@ -190,6 +194,10 @@ export type Database = {
|
|
|
190
194
|
file_path: string;
|
|
191
195
|
file_size_bytes?: number | null;
|
|
192
196
|
id?: number;
|
|
197
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
198
|
+
lifecycle_changed_at?: string;
|
|
199
|
+
lifecycle_changed_by?: string | null;
|
|
200
|
+
lifecycle_reason?: string | null;
|
|
193
201
|
modality?: string | null;
|
|
194
202
|
segmented_at?: string | null;
|
|
195
203
|
session_id?: number | null;
|
|
@@ -206,6 +214,10 @@ export type Database = {
|
|
|
206
214
|
file_path?: string;
|
|
207
215
|
file_size_bytes?: number | null;
|
|
208
216
|
id?: number;
|
|
217
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
218
|
+
lifecycle_changed_at?: string;
|
|
219
|
+
lifecycle_changed_by?: string | null;
|
|
220
|
+
lifecycle_reason?: string | null;
|
|
209
221
|
modality?: string | null;
|
|
210
222
|
segmented_at?: string | null;
|
|
211
223
|
session_id?: number | null;
|
|
@@ -223,6 +235,13 @@ export type Database = {
|
|
|
223
235
|
referencedRelation: "devices";
|
|
224
236
|
referencedColumns: ["id"];
|
|
225
237
|
},
|
|
238
|
+
{
|
|
239
|
+
foreignKeyName: "artifacts_lifecycle_changed_by_fkey";
|
|
240
|
+
columns: ["lifecycle_changed_by"];
|
|
241
|
+
isOneToOne: false;
|
|
242
|
+
referencedRelation: "users";
|
|
243
|
+
referencedColumns: ["id"];
|
|
244
|
+
},
|
|
226
245
|
{
|
|
227
246
|
foreignKeyName: "artifacts_session_id_fkey";
|
|
228
247
|
columns: ["session_id"];
|
|
@@ -449,10 +468,12 @@ export type Database = {
|
|
|
449
468
|
herd_id: number;
|
|
450
469
|
id: number;
|
|
451
470
|
inserted_at: string;
|
|
471
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
472
|
+
lifecycle_changed_at: string;
|
|
473
|
+
lifecycle_changed_by: string | null;
|
|
474
|
+
lifecycle_reason: string | null;
|
|
452
475
|
location: unknown;
|
|
453
476
|
name: string;
|
|
454
|
-
video_publisher_token: string | null;
|
|
455
|
-
video_subscriber_token: string | null;
|
|
456
477
|
};
|
|
457
478
|
Insert: {
|
|
458
479
|
altitude?: number | null;
|
|
@@ -465,10 +486,12 @@ export type Database = {
|
|
|
465
486
|
herd_id: number;
|
|
466
487
|
id?: number;
|
|
467
488
|
inserted_at?: string;
|
|
489
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
490
|
+
lifecycle_changed_at?: string;
|
|
491
|
+
lifecycle_changed_by?: string | null;
|
|
492
|
+
lifecycle_reason?: string | null;
|
|
468
493
|
location?: unknown;
|
|
469
494
|
name: string;
|
|
470
|
-
video_publisher_token?: string | null;
|
|
471
|
-
video_subscriber_token?: string | null;
|
|
472
495
|
};
|
|
473
496
|
Update: {
|
|
474
497
|
altitude?: number | null;
|
|
@@ -481,10 +504,12 @@ export type Database = {
|
|
|
481
504
|
herd_id?: number;
|
|
482
505
|
id?: number;
|
|
483
506
|
inserted_at?: string;
|
|
507
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
508
|
+
lifecycle_changed_at?: string;
|
|
509
|
+
lifecycle_changed_by?: string | null;
|
|
510
|
+
lifecycle_reason?: string | null;
|
|
484
511
|
location?: unknown;
|
|
485
512
|
name?: string;
|
|
486
|
-
video_publisher_token?: string | null;
|
|
487
|
-
video_subscriber_token?: string | null;
|
|
488
513
|
};
|
|
489
514
|
Relationships: [
|
|
490
515
|
{
|
|
@@ -500,6 +525,13 @@ export type Database = {
|
|
|
500
525
|
isOneToOne: false;
|
|
501
526
|
referencedRelation: "herds";
|
|
502
527
|
referencedColumns: ["id"];
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
foreignKeyName: "devices_lifecycle_changed_by_fkey";
|
|
531
|
+
columns: ["lifecycle_changed_by"];
|
|
532
|
+
isOneToOne: false;
|
|
533
|
+
referencedRelation: "users";
|
|
534
|
+
referencedColumns: ["id"];
|
|
503
535
|
}
|
|
504
536
|
];
|
|
505
537
|
};
|
|
@@ -597,6 +629,10 @@ export type Database = {
|
|
|
597
629
|
id: number;
|
|
598
630
|
inserted_at: string;
|
|
599
631
|
is_public: boolean;
|
|
632
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
633
|
+
lifecycle_changed_at: string;
|
|
634
|
+
lifecycle_changed_by: string | null;
|
|
635
|
+
lifecycle_reason: string | null;
|
|
600
636
|
location: unknown;
|
|
601
637
|
media_type: Database["public"]["Enums"]["media_type"];
|
|
602
638
|
media_url: string | null;
|
|
@@ -617,6 +653,10 @@ export type Database = {
|
|
|
617
653
|
id?: number;
|
|
618
654
|
inserted_at?: string;
|
|
619
655
|
is_public?: boolean;
|
|
656
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
657
|
+
lifecycle_changed_at?: string;
|
|
658
|
+
lifecycle_changed_by?: string | null;
|
|
659
|
+
lifecycle_reason?: string | null;
|
|
620
660
|
location?: unknown;
|
|
621
661
|
media_type?: Database["public"]["Enums"]["media_type"];
|
|
622
662
|
media_url?: string | null;
|
|
@@ -637,6 +677,10 @@ export type Database = {
|
|
|
637
677
|
id?: number;
|
|
638
678
|
inserted_at?: string;
|
|
639
679
|
is_public?: boolean;
|
|
680
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
681
|
+
lifecycle_changed_at?: string;
|
|
682
|
+
lifecycle_changed_by?: string | null;
|
|
683
|
+
lifecycle_reason?: string | null;
|
|
640
684
|
location?: unknown;
|
|
641
685
|
media_type?: Database["public"]["Enums"]["media_type"];
|
|
642
686
|
media_url?: string | null;
|
|
@@ -655,6 +699,13 @@ export type Database = {
|
|
|
655
699
|
referencedRelation: "devices";
|
|
656
700
|
referencedColumns: ["id"];
|
|
657
701
|
},
|
|
702
|
+
{
|
|
703
|
+
foreignKeyName: "events_lifecycle_changed_by_fkey";
|
|
704
|
+
columns: ["lifecycle_changed_by"];
|
|
705
|
+
isOneToOne: false;
|
|
706
|
+
referencedRelation: "users";
|
|
707
|
+
referencedColumns: ["id"];
|
|
708
|
+
},
|
|
658
709
|
{
|
|
659
710
|
foreignKeyName: "events_session_id_fkey";
|
|
660
711
|
columns: ["session_id"];
|
|
@@ -947,34 +998,40 @@ export type Database = {
|
|
|
947
998
|
Row: {
|
|
948
999
|
certificate_id: number | null;
|
|
949
1000
|
created_at: string;
|
|
950
|
-
deleted_at: string | null;
|
|
951
1001
|
device_id: number;
|
|
952
1002
|
id: number;
|
|
1003
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1004
|
+
lifecycle_changed_at: string;
|
|
1005
|
+
lifecycle_changed_by: string | null;
|
|
1006
|
+
lifecycle_reason: string | null;
|
|
953
1007
|
product_number: string;
|
|
954
1008
|
serial_number: string;
|
|
955
|
-
status: Database["public"]["Enums"]["component_status"];
|
|
956
1009
|
updated_at: string | null;
|
|
957
1010
|
};
|
|
958
1011
|
Insert: {
|
|
959
1012
|
certificate_id?: number | null;
|
|
960
1013
|
created_at?: string;
|
|
961
|
-
deleted_at?: string | null;
|
|
962
1014
|
device_id: number;
|
|
963
1015
|
id?: number;
|
|
1016
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1017
|
+
lifecycle_changed_at?: string;
|
|
1018
|
+
lifecycle_changed_by?: string | null;
|
|
1019
|
+
lifecycle_reason?: string | null;
|
|
964
1020
|
product_number: string;
|
|
965
1021
|
serial_number: string;
|
|
966
|
-
status?: Database["public"]["Enums"]["component_status"];
|
|
967
1022
|
updated_at?: string | null;
|
|
968
1023
|
};
|
|
969
1024
|
Update: {
|
|
970
1025
|
certificate_id?: number | null;
|
|
971
1026
|
created_at?: string;
|
|
972
|
-
deleted_at?: string | null;
|
|
973
1027
|
device_id?: number;
|
|
974
1028
|
id?: number;
|
|
1029
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1030
|
+
lifecycle_changed_at?: string;
|
|
1031
|
+
lifecycle_changed_by?: string | null;
|
|
1032
|
+
lifecycle_reason?: string | null;
|
|
975
1033
|
product_number?: string;
|
|
976
1034
|
serial_number?: string;
|
|
977
|
-
status?: Database["public"]["Enums"]["component_status"];
|
|
978
1035
|
updated_at?: string | null;
|
|
979
1036
|
};
|
|
980
1037
|
Relationships: [
|
|
@@ -991,6 +1048,13 @@ export type Database = {
|
|
|
991
1048
|
isOneToOne: false;
|
|
992
1049
|
referencedRelation: "devices";
|
|
993
1050
|
referencedColumns: ["id"];
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
foreignKeyName: "parts_lifecycle_changed_by_fkey";
|
|
1054
|
+
columns: ["lifecycle_changed_by"];
|
|
1055
|
+
isOneToOne: false;
|
|
1056
|
+
referencedRelation: "users";
|
|
1057
|
+
referencedColumns: ["id"];
|
|
994
1058
|
}
|
|
995
1059
|
];
|
|
996
1060
|
};
|
|
@@ -1138,6 +1202,27 @@ export type Database = {
|
|
|
1138
1202
|
}
|
|
1139
1203
|
];
|
|
1140
1204
|
};
|
|
1205
|
+
pubsub_jwt_public_keys: {
|
|
1206
|
+
Row: {
|
|
1207
|
+
created_at: string;
|
|
1208
|
+
kid: string;
|
|
1209
|
+
public_jwk: Json;
|
|
1210
|
+
revoked_at: string | null;
|
|
1211
|
+
};
|
|
1212
|
+
Insert: {
|
|
1213
|
+
created_at?: string;
|
|
1214
|
+
kid: string;
|
|
1215
|
+
public_jwk: Json;
|
|
1216
|
+
revoked_at?: string | null;
|
|
1217
|
+
};
|
|
1218
|
+
Update: {
|
|
1219
|
+
created_at?: string;
|
|
1220
|
+
kid?: string;
|
|
1221
|
+
public_jwk?: Json;
|
|
1222
|
+
revoked_at?: string | null;
|
|
1223
|
+
};
|
|
1224
|
+
Relationships: [];
|
|
1225
|
+
};
|
|
1141
1226
|
segmentations_sam3: {
|
|
1142
1227
|
Row: {
|
|
1143
1228
|
artifact_id: number | null;
|
|
@@ -1244,6 +1329,10 @@ export type Database = {
|
|
|
1244
1329
|
distance_total: number;
|
|
1245
1330
|
id: number;
|
|
1246
1331
|
inserted_at: string;
|
|
1332
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1333
|
+
lifecycle_changed_at: string;
|
|
1334
|
+
lifecycle_changed_by: string | null;
|
|
1335
|
+
lifecycle_reason: string | null;
|
|
1247
1336
|
locations: unknown;
|
|
1248
1337
|
post_approver: string | null;
|
|
1249
1338
|
software_version: string;
|
|
@@ -1263,6 +1352,10 @@ export type Database = {
|
|
|
1263
1352
|
distance_total: number;
|
|
1264
1353
|
id?: number;
|
|
1265
1354
|
inserted_at?: string;
|
|
1355
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1356
|
+
lifecycle_changed_at?: string;
|
|
1357
|
+
lifecycle_changed_by?: string | null;
|
|
1358
|
+
lifecycle_reason?: string | null;
|
|
1266
1359
|
locations?: unknown;
|
|
1267
1360
|
post_approver?: string | null;
|
|
1268
1361
|
software_version: string;
|
|
@@ -1282,6 +1375,10 @@ export type Database = {
|
|
|
1282
1375
|
distance_total?: number;
|
|
1283
1376
|
id?: number;
|
|
1284
1377
|
inserted_at?: string;
|
|
1378
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1379
|
+
lifecycle_changed_at?: string;
|
|
1380
|
+
lifecycle_changed_by?: string | null;
|
|
1381
|
+
lifecycle_reason?: string | null;
|
|
1285
1382
|
locations?: unknown;
|
|
1286
1383
|
post_approver?: string | null;
|
|
1287
1384
|
software_version?: string;
|
|
@@ -1306,6 +1403,13 @@ export type Database = {
|
|
|
1306
1403
|
referencedRelation: "devices";
|
|
1307
1404
|
referencedColumns: ["id"];
|
|
1308
1405
|
},
|
|
1406
|
+
{
|
|
1407
|
+
foreignKeyName: "sessions_lifecycle_changed_by_fkey";
|
|
1408
|
+
columns: ["lifecycle_changed_by"];
|
|
1409
|
+
isOneToOne: false;
|
|
1410
|
+
referencedRelation: "users";
|
|
1411
|
+
referencedColumns: ["id"];
|
|
1412
|
+
},
|
|
1309
1413
|
{
|
|
1310
1414
|
foreignKeyName: "sessions_post_approver_fkey";
|
|
1311
1415
|
columns: ["post_approver"];
|
|
@@ -1440,7 +1544,12 @@ export type Database = {
|
|
|
1440
1544
|
earthranger_id: string | null;
|
|
1441
1545
|
first: string | null;
|
|
1442
1546
|
id: string;
|
|
1547
|
+
is_registered: boolean;
|
|
1443
1548
|
last: string | null;
|
|
1549
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1550
|
+
lifecycle_changed_at: string;
|
|
1551
|
+
lifecycle_changed_by: string | null;
|
|
1552
|
+
lifecycle_reason: string | null;
|
|
1444
1553
|
signature_base64: string | null;
|
|
1445
1554
|
title: string | null;
|
|
1446
1555
|
username: string | null;
|
|
@@ -1450,7 +1559,12 @@ export type Database = {
|
|
|
1450
1559
|
earthranger_id?: string | null;
|
|
1451
1560
|
first?: string | null;
|
|
1452
1561
|
id: string;
|
|
1562
|
+
is_registered?: boolean;
|
|
1453
1563
|
last?: string | null;
|
|
1564
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1565
|
+
lifecycle_changed_at?: string;
|
|
1566
|
+
lifecycle_changed_by?: string | null;
|
|
1567
|
+
lifecycle_reason?: string | null;
|
|
1454
1568
|
signature_base64?: string | null;
|
|
1455
1569
|
title?: string | null;
|
|
1456
1570
|
username?: string | null;
|
|
@@ -1460,12 +1574,25 @@ export type Database = {
|
|
|
1460
1574
|
earthranger_id?: string | null;
|
|
1461
1575
|
first?: string | null;
|
|
1462
1576
|
id?: string;
|
|
1577
|
+
is_registered?: boolean;
|
|
1463
1578
|
last?: string | null;
|
|
1579
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1580
|
+
lifecycle_changed_at?: string;
|
|
1581
|
+
lifecycle_changed_by?: string | null;
|
|
1582
|
+
lifecycle_reason?: string | null;
|
|
1464
1583
|
signature_base64?: string | null;
|
|
1465
1584
|
title?: string | null;
|
|
1466
1585
|
username?: string | null;
|
|
1467
1586
|
};
|
|
1468
|
-
Relationships: [
|
|
1587
|
+
Relationships: [
|
|
1588
|
+
{
|
|
1589
|
+
foreignKeyName: "users_lifecycle_changed_by_fkey";
|
|
1590
|
+
columns: ["lifecycle_changed_by"];
|
|
1591
|
+
isOneToOne: false;
|
|
1592
|
+
referencedRelation: "users";
|
|
1593
|
+
referencedColumns: ["id"];
|
|
1594
|
+
}
|
|
1595
|
+
];
|
|
1469
1596
|
};
|
|
1470
1597
|
users_roles_per_herd: {
|
|
1471
1598
|
Row: {
|
|
@@ -1838,6 +1965,10 @@ export type Database = {
|
|
|
1838
1965
|
file_path: string;
|
|
1839
1966
|
file_size_bytes: number | null;
|
|
1840
1967
|
id: number;
|
|
1968
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
1969
|
+
lifecycle_changed_at: string;
|
|
1970
|
+
lifecycle_changed_by: string | null;
|
|
1971
|
+
lifecycle_reason: string | null;
|
|
1841
1972
|
modality: string | null;
|
|
1842
1973
|
segmented_at: string | null;
|
|
1843
1974
|
session_id: number | null;
|
|
@@ -1866,6 +1997,10 @@ export type Database = {
|
|
|
1866
1997
|
file_path: string;
|
|
1867
1998
|
file_size_bytes: number | null;
|
|
1868
1999
|
id: number;
|
|
2000
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2001
|
+
lifecycle_changed_at: string;
|
|
2002
|
+
lifecycle_changed_by: string | null;
|
|
2003
|
+
lifecycle_reason: string | null;
|
|
1869
2004
|
modality: string | null;
|
|
1870
2005
|
segmented_at: string | null;
|
|
1871
2006
|
session_id: number | null;
|
|
@@ -1895,6 +2030,10 @@ export type Database = {
|
|
|
1895
2030
|
file_path: string;
|
|
1896
2031
|
file_size_bytes: number | null;
|
|
1897
2032
|
id: number;
|
|
2033
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2034
|
+
lifecycle_changed_at: string;
|
|
2035
|
+
lifecycle_changed_by: string | null;
|
|
2036
|
+
lifecycle_reason: string | null;
|
|
1898
2037
|
modality: string | null;
|
|
1899
2038
|
segmented_at: string | null;
|
|
1900
2039
|
session_id: number | null;
|
|
@@ -1924,6 +2063,10 @@ export type Database = {
|
|
|
1924
2063
|
file_path: string;
|
|
1925
2064
|
file_size_bytes: number | null;
|
|
1926
2065
|
id: number;
|
|
2066
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2067
|
+
lifecycle_changed_at: string;
|
|
2068
|
+
lifecycle_changed_by: string | null;
|
|
2069
|
+
lifecycle_reason: string | null;
|
|
1927
2070
|
modality: string | null;
|
|
1928
2071
|
segmented_at: string | null;
|
|
1929
2072
|
session_id: number | null;
|
|
@@ -1954,6 +2097,10 @@ export type Database = {
|
|
|
1954
2097
|
file_path: string;
|
|
1955
2098
|
file_size_bytes: number | null;
|
|
1956
2099
|
id: number;
|
|
2100
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2101
|
+
lifecycle_changed_at: string;
|
|
2102
|
+
lifecycle_changed_by: string | null;
|
|
2103
|
+
lifecycle_reason: string | null;
|
|
1957
2104
|
modality: string | null;
|
|
1958
2105
|
segmented_at: string | null;
|
|
1959
2106
|
session_id: number | null;
|
|
@@ -1984,6 +2131,10 @@ export type Database = {
|
|
|
1984
2131
|
file_path: string;
|
|
1985
2132
|
file_size_bytes: number | null;
|
|
1986
2133
|
id: number;
|
|
2134
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2135
|
+
lifecycle_changed_at: string;
|
|
2136
|
+
lifecycle_changed_by: string | null;
|
|
2137
|
+
lifecycle_reason: string | null;
|
|
1987
2138
|
modality: string | null;
|
|
1988
2139
|
segmented_at: string | null;
|
|
1989
2140
|
session_id: number | null;
|
|
@@ -2015,6 +2166,10 @@ export type Database = {
|
|
|
2015
2166
|
file_path: string;
|
|
2016
2167
|
file_size_bytes: number | null;
|
|
2017
2168
|
id: number;
|
|
2169
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2170
|
+
lifecycle_changed_at: string;
|
|
2171
|
+
lifecycle_changed_by: string | null;
|
|
2172
|
+
lifecycle_reason: string | null;
|
|
2018
2173
|
modality: string | null;
|
|
2019
2174
|
segmented_at: string | null;
|
|
2020
2175
|
session_id: number | null;
|
|
@@ -2045,6 +2200,10 @@ export type Database = {
|
|
|
2045
2200
|
file_path: string;
|
|
2046
2201
|
file_size_bytes: number | null;
|
|
2047
2202
|
id: number;
|
|
2203
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2204
|
+
lifecycle_changed_at: string;
|
|
2205
|
+
lifecycle_changed_by: string | null;
|
|
2206
|
+
lifecycle_reason: string | null;
|
|
2048
2207
|
modality: string | null;
|
|
2049
2208
|
segmented_at: string | null;
|
|
2050
2209
|
session_id: number | null;
|
|
@@ -2076,6 +2235,10 @@ export type Database = {
|
|
|
2076
2235
|
file_path: string;
|
|
2077
2236
|
file_size_bytes: number | null;
|
|
2078
2237
|
id: number;
|
|
2238
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2239
|
+
lifecycle_changed_at: string;
|
|
2240
|
+
lifecycle_changed_by: string | null;
|
|
2241
|
+
lifecycle_reason: string | null;
|
|
2079
2242
|
modality: string | null;
|
|
2080
2243
|
segmented_at: string | null;
|
|
2081
2244
|
session_id: number | null;
|
|
@@ -2493,6 +2656,14 @@ export type Database = {
|
|
|
2493
2656
|
isSetofReturn: true;
|
|
2494
2657
|
};
|
|
2495
2658
|
};
|
|
2659
|
+
get_pubsub_jwt_public_keys: {
|
|
2660
|
+
Args: never;
|
|
2661
|
+
Returns: Json;
|
|
2662
|
+
};
|
|
2663
|
+
get_pubsub_token_claims: {
|
|
2664
|
+
Args: never;
|
|
2665
|
+
Returns: Json;
|
|
2666
|
+
};
|
|
2496
2667
|
get_segmentations_sam3_for_artifact: {
|
|
2497
2668
|
Args: {
|
|
2498
2669
|
artifact_id_caller: number;
|
|
@@ -2815,6 +2986,21 @@ export type Database = {
|
|
|
2815
2986
|
isSetofReturn: true;
|
|
2816
2987
|
};
|
|
2817
2988
|
};
|
|
2989
|
+
migrate_conservaition_users_to_sentala: {
|
|
2990
|
+
Args: {
|
|
2991
|
+
preview?: boolean;
|
|
2992
|
+
source_domains?: string[];
|
|
2993
|
+
target_domain?: string;
|
|
2994
|
+
};
|
|
2995
|
+
Returns: {
|
|
2996
|
+
action: string;
|
|
2997
|
+
detail: string;
|
|
2998
|
+
source_email: string;
|
|
2999
|
+
source_user_id: string;
|
|
3000
|
+
target_email: string;
|
|
3001
|
+
target_user_id: string;
|
|
3002
|
+
}[];
|
|
3003
|
+
};
|
|
2818
3004
|
preview_fix_all_sessions_missing_distance: {
|
|
2819
3005
|
Args: never;
|
|
2820
3006
|
Returns: {
|
|
@@ -2844,6 +3030,12 @@ export type Database = {
|
|
|
2844
3030
|
Args: never;
|
|
2845
3031
|
Returns: undefined;
|
|
2846
3032
|
};
|
|
3033
|
+
revoke_pubsub_jwt_public_key: {
|
|
3034
|
+
Args: {
|
|
3035
|
+
p_kid: string;
|
|
3036
|
+
};
|
|
3037
|
+
Returns: undefined;
|
|
3038
|
+
};
|
|
2847
3039
|
search_embeddings_vertex_multimodal_001: {
|
|
2848
3040
|
Args: {
|
|
2849
3041
|
herd_id_caller?: number;
|
|
@@ -2888,15 +3080,22 @@ export type Database = {
|
|
|
2888
3080
|
};
|
|
2889
3081
|
Returns: undefined;
|
|
2890
3082
|
};
|
|
3083
|
+
upsert_pubsub_jwt_public_key: {
|
|
3084
|
+
Args: {
|
|
3085
|
+
p_kid: string;
|
|
3086
|
+
p_public_jwk: Json;
|
|
3087
|
+
};
|
|
3088
|
+
Returns: undefined;
|
|
3089
|
+
};
|
|
2891
3090
|
};
|
|
2892
3091
|
Enums: {
|
|
2893
3092
|
analysis_work_status: "waiting" | "cancelled" | "processing" | "failed" | "success";
|
|
2894
3093
|
app_permission: "herds.delete" | "events.delete";
|
|
2895
|
-
component_status: "active" | "inactive";
|
|
2896
3094
|
device_type: "trail_camera" | "drone_fixed_wing" | "drone_quad" | "gps_tracker" | "sentry_tower" | "smart_buoy" | "radio_mesh_base_station" | "radio_mesh_repeater" | "unknown" | "gps_tracker_vehicle" | "gps_tracker_person" | "radio_mesh_base_station_gateway";
|
|
3095
|
+
entity_lifecycle: "active" | "retired" | "deleted";
|
|
2897
3096
|
media_type: "image" | "video" | "audio" | "text";
|
|
2898
3097
|
plan_type: "mission" | "fence" | "rally" | "markov";
|
|
2899
|
-
role: "admin" | "
|
|
3098
|
+
role: "admin" | "editor" | "viewer";
|
|
2900
3099
|
tag_observation_type: "manual" | "auto";
|
|
2901
3100
|
user_status: "ONLINE" | "OFFLINE";
|
|
2902
3101
|
};
|
|
@@ -2951,6 +3150,7 @@ export type Database = {
|
|
|
2951
3150
|
description: string | null;
|
|
2952
3151
|
latitude: number | null;
|
|
2953
3152
|
longitude: number | null;
|
|
3153
|
+
color: string | null;
|
|
2954
3154
|
};
|
|
2955
3155
|
embedding_match: {
|
|
2956
3156
|
id: number | null;
|
|
@@ -3206,11 +3406,11 @@ export declare const Constants: {
|
|
|
3206
3406
|
readonly Enums: {
|
|
3207
3407
|
readonly analysis_work_status: readonly ["waiting", "cancelled", "processing", "failed", "success"];
|
|
3208
3408
|
readonly app_permission: readonly ["herds.delete", "events.delete"];
|
|
3209
|
-
readonly component_status: readonly ["active", "inactive"];
|
|
3210
3409
|
readonly device_type: readonly ["trail_camera", "drone_fixed_wing", "drone_quad", "gps_tracker", "sentry_tower", "smart_buoy", "radio_mesh_base_station", "radio_mesh_repeater", "unknown", "gps_tracker_vehicle", "gps_tracker_person", "radio_mesh_base_station_gateway"];
|
|
3410
|
+
readonly entity_lifecycle: readonly ["active", "retired", "deleted"];
|
|
3211
3411
|
readonly media_type: readonly ["image", "video", "audio", "text"];
|
|
3212
3412
|
readonly plan_type: readonly ["mission", "fence", "rally", "markov"];
|
|
3213
|
-
readonly role: readonly ["admin", "
|
|
3413
|
+
readonly role: readonly ["admin", "editor", "viewer"];
|
|
3214
3414
|
readonly tag_observation_type: readonly ["manual", "auto"];
|
|
3215
3415
|
readonly user_status: readonly ["ONLINE", "OFFLINE"];
|
|
3216
3416
|
};
|
package/dist/types/supabase.js
CHANGED
|
@@ -9,7 +9,6 @@ export const Constants = {
|
|
|
9
9
|
"success",
|
|
10
10
|
],
|
|
11
11
|
app_permission: ["herds.delete", "events.delete"],
|
|
12
|
-
component_status: ["active", "inactive"],
|
|
13
12
|
device_type: [
|
|
14
13
|
"trail_camera",
|
|
15
14
|
"drone_fixed_wing",
|
|
@@ -24,9 +23,10 @@ export const Constants = {
|
|
|
24
23
|
"gps_tracker_person",
|
|
25
24
|
"radio_mesh_base_station_gateway",
|
|
26
25
|
],
|
|
26
|
+
entity_lifecycle: ["active", "retired", "deleted"],
|
|
27
27
|
media_type: ["image", "video", "audio", "text"],
|
|
28
28
|
plan_type: ["mission", "fence", "rally", "markov"],
|
|
29
|
-
role: ["admin", "
|
|
29
|
+
role: ["admin", "editor", "viewer"],
|
|
30
30
|
tag_observation_type: ["manual", "auto"],
|
|
31
31
|
user_status: ["ONLINE", "OFFLINE"],
|
|
32
32
|
},
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Database } from "../types/supabase";
|
|
2
|
-
import { IComponent, ComponentInsert } from "../types/db";
|
|
3
|
-
import { IWebResponseCompatible } from "../types/requests";
|
|
4
|
-
import { SupabaseClient } from "@supabase/supabase-js";
|
|
5
|
-
export declare function get_components_by_device_id(client: SupabaseClient<Database>, device_id: number): Promise<IWebResponseCompatible<IComponent[]>>;
|
|
6
|
-
export declare function get_component_by_id(client: SupabaseClient<Database>, component_id: number): Promise<IWebResponseCompatible<IComponent | null>>;
|
|
7
|
-
export declare function get_components_by_serial_number(client: SupabaseClient<Database>, serial_number: string): Promise<IWebResponseCompatible<IComponent[]>>;
|
|
8
|
-
export declare function get_components_by_product_number(client: SupabaseClient<Database>, product_number: string): Promise<IWebResponseCompatible<IComponent[]>>;
|
|
9
|
-
export declare function get_components_by_status(client: SupabaseClient<Database>, status: Database["public"]["Enums"]["component_status"]): Promise<IWebResponseCompatible<IComponent[]>>;
|
|
10
|
-
export declare function create_component(client: SupabaseClient<Database>, newComponent: ComponentInsert): Promise<IWebResponseCompatible<IComponent | null>>;
|
|
11
|
-
export declare function update_component(client: SupabaseClient<Database>, component_id: number, updatedComponent: Partial<ComponentInsert>): Promise<IWebResponseCompatible<IComponent | null>>;
|
|
12
|
-
export declare function delete_component(client: SupabaseClient<Database>, component_id: number): Promise<IWebResponseCompatible<IComponent | null>>;
|
|
13
|
-
export declare function update_component_status(client: SupabaseClient<Database>, component_id: number, status: Database["public"]["Enums"]["component_status"]): Promise<IWebResponseCompatible<IComponent | null>>;
|
|
14
|
-
export declare function get_components_by_certificate_id(client: SupabaseClient<Database>, certificate_id: number): Promise<IWebResponseCompatible<IComponent[]>>;
|