@adventurelabs/scout-core 1.4.92 → 1.4.93
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/types/supabase.d.ts +120 -0
- package/dist/types/supabase.js +10 -0
- package/package.json +1 -1
package/dist/types/supabase.d.ts
CHANGED
|
@@ -714,32 +714,74 @@ export type Database = {
|
|
|
714
714
|
}
|
|
715
715
|
];
|
|
716
716
|
};
|
|
717
|
+
document_template_abilities: {
|
|
718
|
+
Row: {
|
|
719
|
+
ability_id: number;
|
|
720
|
+
document_template_id: number;
|
|
721
|
+
id: number;
|
|
722
|
+
inserted_at: string;
|
|
723
|
+
};
|
|
724
|
+
Insert: {
|
|
725
|
+
ability_id: number;
|
|
726
|
+
document_template_id: number;
|
|
727
|
+
id?: number;
|
|
728
|
+
inserted_at?: string;
|
|
729
|
+
};
|
|
730
|
+
Update: {
|
|
731
|
+
ability_id?: number;
|
|
732
|
+
document_template_id?: number;
|
|
733
|
+
id?: number;
|
|
734
|
+
inserted_at?: string;
|
|
735
|
+
};
|
|
736
|
+
Relationships: [
|
|
737
|
+
{
|
|
738
|
+
foreignKeyName: "document_template_abilities_ability_id_fkey";
|
|
739
|
+
columns: ["ability_id"];
|
|
740
|
+
isOneToOne: false;
|
|
741
|
+
referencedRelation: "abilities";
|
|
742
|
+
referencedColumns: ["id"];
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
foreignKeyName: "document_template_abilities_document_template_id_fkey";
|
|
746
|
+
columns: ["document_template_id"];
|
|
747
|
+
isOneToOne: false;
|
|
748
|
+
referencedRelation: "document_templates";
|
|
749
|
+
referencedColumns: ["id"];
|
|
750
|
+
}
|
|
751
|
+
];
|
|
752
|
+
};
|
|
717
753
|
document_templates: {
|
|
718
754
|
Row: {
|
|
755
|
+
categories: string[];
|
|
719
756
|
description: string | null;
|
|
720
757
|
entity_for: Database["public"]["Enums"]["document_entity"] | null;
|
|
721
758
|
id: number;
|
|
722
759
|
inserted_at: string;
|
|
760
|
+
is_shared: boolean;
|
|
723
761
|
issuer_id: number | null;
|
|
724
762
|
localization_id: number | null;
|
|
725
763
|
name: string;
|
|
726
764
|
uses_expiry: boolean;
|
|
727
765
|
};
|
|
728
766
|
Insert: {
|
|
767
|
+
categories?: string[];
|
|
729
768
|
description?: string | null;
|
|
730
769
|
entity_for?: Database["public"]["Enums"]["document_entity"] | null;
|
|
731
770
|
id?: number;
|
|
732
771
|
inserted_at?: string;
|
|
772
|
+
is_shared?: boolean;
|
|
733
773
|
issuer_id?: number | null;
|
|
734
774
|
localization_id?: number | null;
|
|
735
775
|
name: string;
|
|
736
776
|
uses_expiry?: boolean;
|
|
737
777
|
};
|
|
738
778
|
Update: {
|
|
779
|
+
categories?: string[];
|
|
739
780
|
description?: string | null;
|
|
740
781
|
entity_for?: Database["public"]["Enums"]["document_entity"] | null;
|
|
741
782
|
id?: number;
|
|
742
783
|
inserted_at?: string;
|
|
784
|
+
is_shared?: boolean;
|
|
743
785
|
issuer_id?: number | null;
|
|
744
786
|
localization_id?: number | null;
|
|
745
787
|
name?: string;
|
|
@@ -764,12 +806,20 @@ export type Database = {
|
|
|
764
806
|
};
|
|
765
807
|
documents: {
|
|
766
808
|
Row: {
|
|
809
|
+
approved_at: string | null;
|
|
810
|
+
approved_by: string | null;
|
|
767
811
|
created_at: string;
|
|
768
812
|
created_by: string | null;
|
|
769
813
|
device_id: number | null;
|
|
770
814
|
herd_id: number | null;
|
|
771
815
|
id: number;
|
|
816
|
+
is_approved: boolean;
|
|
817
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
818
|
+
lifecycle_changed_at: string;
|
|
819
|
+
lifecycle_changed_by: string | null;
|
|
820
|
+
lifecycle_reason: string | null;
|
|
772
821
|
product_id: number | null;
|
|
822
|
+
related_herd_id: number | null;
|
|
773
823
|
size_bytes: number | null;
|
|
774
824
|
template_id: number | null;
|
|
775
825
|
updated_at: string;
|
|
@@ -780,12 +830,20 @@ export type Database = {
|
|
|
780
830
|
valid_to: string | null;
|
|
781
831
|
};
|
|
782
832
|
Insert: {
|
|
833
|
+
approved_at?: string | null;
|
|
834
|
+
approved_by?: string | null;
|
|
783
835
|
created_at?: string;
|
|
784
836
|
created_by?: string | null;
|
|
785
837
|
device_id?: number | null;
|
|
786
838
|
herd_id?: number | null;
|
|
787
839
|
id?: number;
|
|
840
|
+
is_approved?: boolean;
|
|
841
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
842
|
+
lifecycle_changed_at?: string;
|
|
843
|
+
lifecycle_changed_by?: string | null;
|
|
844
|
+
lifecycle_reason?: string | null;
|
|
788
845
|
product_id?: number | null;
|
|
846
|
+
related_herd_id?: number | null;
|
|
789
847
|
size_bytes?: number | null;
|
|
790
848
|
template_id?: number | null;
|
|
791
849
|
updated_at?: string;
|
|
@@ -796,12 +854,20 @@ export type Database = {
|
|
|
796
854
|
valid_to?: string | null;
|
|
797
855
|
};
|
|
798
856
|
Update: {
|
|
857
|
+
approved_at?: string | null;
|
|
858
|
+
approved_by?: string | null;
|
|
799
859
|
created_at?: string;
|
|
800
860
|
created_by?: string | null;
|
|
801
861
|
device_id?: number | null;
|
|
802
862
|
herd_id?: number | null;
|
|
803
863
|
id?: number;
|
|
864
|
+
is_approved?: boolean;
|
|
865
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
866
|
+
lifecycle_changed_at?: string;
|
|
867
|
+
lifecycle_changed_by?: string | null;
|
|
868
|
+
lifecycle_reason?: string | null;
|
|
804
869
|
product_id?: number | null;
|
|
870
|
+
related_herd_id?: number | null;
|
|
805
871
|
size_bytes?: number | null;
|
|
806
872
|
template_id?: number | null;
|
|
807
873
|
updated_at?: string;
|
|
@@ -812,6 +878,13 @@ export type Database = {
|
|
|
812
878
|
valid_to?: string | null;
|
|
813
879
|
};
|
|
814
880
|
Relationships: [
|
|
881
|
+
{
|
|
882
|
+
foreignKeyName: "documents_approved_by_fkey";
|
|
883
|
+
columns: ["approved_by"];
|
|
884
|
+
isOneToOne: false;
|
|
885
|
+
referencedRelation: "users";
|
|
886
|
+
referencedColumns: ["id"];
|
|
887
|
+
},
|
|
815
888
|
{
|
|
816
889
|
foreignKeyName: "documents_created_by_fkey";
|
|
817
890
|
columns: ["created_by"];
|
|
@@ -833,6 +906,13 @@ export type Database = {
|
|
|
833
906
|
referencedRelation: "herds";
|
|
834
907
|
referencedColumns: ["id"];
|
|
835
908
|
},
|
|
909
|
+
{
|
|
910
|
+
foreignKeyName: "documents_lifecycle_changed_by_fkey";
|
|
911
|
+
columns: ["lifecycle_changed_by"];
|
|
912
|
+
isOneToOne: false;
|
|
913
|
+
referencedRelation: "users";
|
|
914
|
+
referencedColumns: ["id"];
|
|
915
|
+
},
|
|
836
916
|
{
|
|
837
917
|
foreignKeyName: "documents_product_id_fkey";
|
|
838
918
|
columns: ["product_id"];
|
|
@@ -840,6 +920,13 @@ export type Database = {
|
|
|
840
920
|
referencedRelation: "products";
|
|
841
921
|
referencedColumns: ["id"];
|
|
842
922
|
},
|
|
923
|
+
{
|
|
924
|
+
foreignKeyName: "documents_related_herd_id_fkey";
|
|
925
|
+
columns: ["related_herd_id"];
|
|
926
|
+
isOneToOne: false;
|
|
927
|
+
referencedRelation: "herds";
|
|
928
|
+
referencedColumns: ["id"];
|
|
929
|
+
},
|
|
843
930
|
{
|
|
844
931
|
foreignKeyName: "documents_template_id_fkey";
|
|
845
932
|
columns: ["template_id"];
|
|
@@ -1355,6 +1442,7 @@ export type Database = {
|
|
|
1355
1442
|
auto_delete_media_with_humans: boolean | null;
|
|
1356
1443
|
auto_delete_media_with_no_tracks: boolean | null;
|
|
1357
1444
|
description: string;
|
|
1445
|
+
document_expiry_warning_period_days: number | null;
|
|
1358
1446
|
id: number;
|
|
1359
1447
|
inserted_at: string;
|
|
1360
1448
|
is_public: boolean;
|
|
@@ -1366,6 +1454,7 @@ export type Database = {
|
|
|
1366
1454
|
auto_delete_media_with_humans?: boolean | null;
|
|
1367
1455
|
auto_delete_media_with_no_tracks?: boolean | null;
|
|
1368
1456
|
description: string;
|
|
1457
|
+
document_expiry_warning_period_days?: number | null;
|
|
1369
1458
|
id?: number;
|
|
1370
1459
|
inserted_at?: string;
|
|
1371
1460
|
is_public?: boolean;
|
|
@@ -1377,6 +1466,7 @@ export type Database = {
|
|
|
1377
1466
|
auto_delete_media_with_humans?: boolean | null;
|
|
1378
1467
|
auto_delete_media_with_no_tracks?: boolean | null;
|
|
1379
1468
|
description?: string;
|
|
1469
|
+
document_expiry_warning_period_days?: number | null;
|
|
1380
1470
|
id?: number;
|
|
1381
1471
|
inserted_at?: string;
|
|
1382
1472
|
is_public?: boolean;
|
|
@@ -2511,6 +2601,8 @@ export type Database = {
|
|
|
2511
2601
|
device_id: number;
|
|
2512
2602
|
distance_max_from_start: number;
|
|
2513
2603
|
distance_total: number;
|
|
2604
|
+
end_approver: string | null;
|
|
2605
|
+
end_reason: Database["public"]["Enums"]["session_end_reason"] | null;
|
|
2514
2606
|
id: number;
|
|
2515
2607
|
inserted_at: string;
|
|
2516
2608
|
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
@@ -2520,6 +2612,8 @@ export type Database = {
|
|
|
2520
2612
|
locations: unknown;
|
|
2521
2613
|
post_approver: string | null;
|
|
2522
2614
|
software_version: string;
|
|
2615
|
+
start_approver: string | null;
|
|
2616
|
+
status: Database["public"]["Enums"]["session_status"];
|
|
2523
2617
|
timestamp_end: string | null;
|
|
2524
2618
|
timestamp_start: string;
|
|
2525
2619
|
velocity_average: number;
|
|
@@ -2534,6 +2628,8 @@ export type Database = {
|
|
|
2534
2628
|
device_id: number;
|
|
2535
2629
|
distance_max_from_start: number;
|
|
2536
2630
|
distance_total: number;
|
|
2631
|
+
end_approver?: string | null;
|
|
2632
|
+
end_reason?: Database["public"]["Enums"]["session_end_reason"] | null;
|
|
2537
2633
|
id?: number;
|
|
2538
2634
|
inserted_at?: string;
|
|
2539
2635
|
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
@@ -2543,6 +2639,8 @@ export type Database = {
|
|
|
2543
2639
|
locations?: unknown;
|
|
2544
2640
|
post_approver?: string | null;
|
|
2545
2641
|
software_version: string;
|
|
2642
|
+
start_approver?: string | null;
|
|
2643
|
+
status?: Database["public"]["Enums"]["session_status"];
|
|
2546
2644
|
timestamp_end?: string | null;
|
|
2547
2645
|
timestamp_start: string;
|
|
2548
2646
|
velocity_average: number;
|
|
@@ -2557,6 +2655,8 @@ export type Database = {
|
|
|
2557
2655
|
device_id?: number;
|
|
2558
2656
|
distance_max_from_start?: number;
|
|
2559
2657
|
distance_total?: number;
|
|
2658
|
+
end_approver?: string | null;
|
|
2659
|
+
end_reason?: Database["public"]["Enums"]["session_end_reason"] | null;
|
|
2560
2660
|
id?: number;
|
|
2561
2661
|
inserted_at?: string;
|
|
2562
2662
|
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
@@ -2566,6 +2666,8 @@ export type Database = {
|
|
|
2566
2666
|
locations?: unknown;
|
|
2567
2667
|
post_approver?: string | null;
|
|
2568
2668
|
software_version?: string;
|
|
2669
|
+
start_approver?: string | null;
|
|
2670
|
+
status?: Database["public"]["Enums"]["session_status"];
|
|
2569
2671
|
timestamp_end?: string | null;
|
|
2570
2672
|
timestamp_start?: string;
|
|
2571
2673
|
velocity_average?: number;
|
|
@@ -2587,6 +2689,13 @@ export type Database = {
|
|
|
2587
2689
|
referencedRelation: "devices";
|
|
2588
2690
|
referencedColumns: ["id"];
|
|
2589
2691
|
},
|
|
2692
|
+
{
|
|
2693
|
+
foreignKeyName: "sessions_end_approver_fkey";
|
|
2694
|
+
columns: ["end_approver"];
|
|
2695
|
+
isOneToOne: false;
|
|
2696
|
+
referencedRelation: "users";
|
|
2697
|
+
referencedColumns: ["id"];
|
|
2698
|
+
},
|
|
2590
2699
|
{
|
|
2591
2700
|
foreignKeyName: "sessions_lifecycle_changed_by_fkey";
|
|
2592
2701
|
columns: ["lifecycle_changed_by"];
|
|
@@ -2600,6 +2709,13 @@ export type Database = {
|
|
|
2600
2709
|
isOneToOne: false;
|
|
2601
2710
|
referencedRelation: "users";
|
|
2602
2711
|
referencedColumns: ["id"];
|
|
2712
|
+
},
|
|
2713
|
+
{
|
|
2714
|
+
foreignKeyName: "sessions_start_approver_fkey";
|
|
2715
|
+
columns: ["start_approver"];
|
|
2716
|
+
isOneToOne: false;
|
|
2717
|
+
referencedRelation: "users";
|
|
2718
|
+
referencedColumns: ["id"];
|
|
2603
2719
|
}
|
|
2604
2720
|
];
|
|
2605
2721
|
};
|
|
@@ -4645,7 +4761,9 @@ export type Database = {
|
|
|
4645
4761
|
media_type: "image" | "video" | "audio" | "text";
|
|
4646
4762
|
plan_type: "mission" | "fence" | "rally" | "markov";
|
|
4647
4763
|
review_status: "pending" | "annotating" | "in_review" | "completed" | "rejected";
|
|
4764
|
+
session_end_reason: "completed" | "superseded" | "reporting_lost" | "inactivity_timeout" | "operator_cancelled" | "system_cancelled" | "other";
|
|
4648
4765
|
session_incident_type: "collision_multi_device_other_direct_control" | "collision_multi_device_other_remote_control" | "collision_single_device_environment" | "link_loss" | "other";
|
|
4766
|
+
session_status: "in_progress" | "finalized" | "interrupted" | "cancelled";
|
|
4649
4767
|
tag_observation_type: "manual" | "auto";
|
|
4650
4768
|
user_status: "ONLINE" | "OFFLINE";
|
|
4651
4769
|
};
|
|
@@ -4971,7 +5089,9 @@ export declare const Constants: {
|
|
|
4971
5089
|
readonly media_type: readonly ["image", "video", "audio", "text"];
|
|
4972
5090
|
readonly plan_type: readonly ["mission", "fence", "rally", "markov"];
|
|
4973
5091
|
readonly review_status: readonly ["pending", "annotating", "in_review", "completed", "rejected"];
|
|
5092
|
+
readonly session_end_reason: readonly ["completed", "superseded", "reporting_lost", "inactivity_timeout", "operator_cancelled", "system_cancelled", "other"];
|
|
4974
5093
|
readonly session_incident_type: readonly ["collision_multi_device_other_direct_control", "collision_multi_device_other_remote_control", "collision_single_device_environment", "link_loss", "other"];
|
|
5094
|
+
readonly session_status: readonly ["in_progress", "finalized", "interrupted", "cancelled"];
|
|
4975
5095
|
readonly tag_observation_type: readonly ["manual", "auto"];
|
|
4976
5096
|
readonly user_status: readonly ["ONLINE", "OFFLINE"];
|
|
4977
5097
|
};
|
package/dist/types/supabase.js
CHANGED
|
@@ -40,6 +40,15 @@ export const Constants = {
|
|
|
40
40
|
"completed",
|
|
41
41
|
"rejected",
|
|
42
42
|
],
|
|
43
|
+
session_end_reason: [
|
|
44
|
+
"completed",
|
|
45
|
+
"superseded",
|
|
46
|
+
"reporting_lost",
|
|
47
|
+
"inactivity_timeout",
|
|
48
|
+
"operator_cancelled",
|
|
49
|
+
"system_cancelled",
|
|
50
|
+
"other",
|
|
51
|
+
],
|
|
43
52
|
session_incident_type: [
|
|
44
53
|
"collision_multi_device_other_direct_control",
|
|
45
54
|
"collision_multi_device_other_remote_control",
|
|
@@ -47,6 +56,7 @@ export const Constants = {
|
|
|
47
56
|
"link_loss",
|
|
48
57
|
"other",
|
|
49
58
|
],
|
|
59
|
+
session_status: ["in_progress", "finalized", "interrupted", "cancelled"],
|
|
50
60
|
tag_observation_type: ["manual", "auto"],
|
|
51
61
|
user_status: ["ONLINE", "OFFLINE"],
|
|
52
62
|
},
|