@adventurelabs/scout-core 1.4.92 → 1.4.94

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.
@@ -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,34 +1442,40 @@ 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;
1361
1449
  localization_id: number | null;
1362
1450
  location: unknown;
1363
1451
  slug: string;
1452
+ video_server_url: string | null;
1364
1453
  };
1365
1454
  Insert: {
1366
1455
  auto_delete_media_with_humans?: boolean | null;
1367
1456
  auto_delete_media_with_no_tracks?: boolean | null;
1368
1457
  description: string;
1458
+ document_expiry_warning_period_days?: number | null;
1369
1459
  id?: number;
1370
1460
  inserted_at?: string;
1371
1461
  is_public?: boolean;
1372
1462
  localization_id?: number | null;
1373
1463
  location?: unknown;
1374
1464
  slug: string;
1465
+ video_server_url?: string | null;
1375
1466
  };
1376
1467
  Update: {
1377
1468
  auto_delete_media_with_humans?: boolean | null;
1378
1469
  auto_delete_media_with_no_tracks?: boolean | null;
1379
1470
  description?: string;
1471
+ document_expiry_warning_period_days?: number | null;
1380
1472
  id?: number;
1381
1473
  inserted_at?: string;
1382
1474
  is_public?: boolean;
1383
1475
  localization_id?: number | null;
1384
1476
  location?: unknown;
1385
1477
  slug?: string;
1478
+ video_server_url?: string | null;
1386
1479
  };
1387
1480
  Relationships: [
1388
1481
  {
@@ -2511,6 +2604,8 @@ export type Database = {
2511
2604
  device_id: number;
2512
2605
  distance_max_from_start: number;
2513
2606
  distance_total: number;
2607
+ end_approver: string | null;
2608
+ end_reason: Database["public"]["Enums"]["session_end_reason"] | null;
2514
2609
  id: number;
2515
2610
  inserted_at: string;
2516
2611
  lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
@@ -2520,6 +2615,8 @@ export type Database = {
2520
2615
  locations: unknown;
2521
2616
  post_approver: string | null;
2522
2617
  software_version: string;
2618
+ start_approver: string | null;
2619
+ status: Database["public"]["Enums"]["session_status"];
2523
2620
  timestamp_end: string | null;
2524
2621
  timestamp_start: string;
2525
2622
  velocity_average: number;
@@ -2534,6 +2631,8 @@ export type Database = {
2534
2631
  device_id: number;
2535
2632
  distance_max_from_start: number;
2536
2633
  distance_total: number;
2634
+ end_approver?: string | null;
2635
+ end_reason?: Database["public"]["Enums"]["session_end_reason"] | null;
2537
2636
  id?: number;
2538
2637
  inserted_at?: string;
2539
2638
  lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
@@ -2543,6 +2642,8 @@ export type Database = {
2543
2642
  locations?: unknown;
2544
2643
  post_approver?: string | null;
2545
2644
  software_version: string;
2645
+ start_approver?: string | null;
2646
+ status?: Database["public"]["Enums"]["session_status"];
2546
2647
  timestamp_end?: string | null;
2547
2648
  timestamp_start: string;
2548
2649
  velocity_average: number;
@@ -2557,6 +2658,8 @@ export type Database = {
2557
2658
  device_id?: number;
2558
2659
  distance_max_from_start?: number;
2559
2660
  distance_total?: number;
2661
+ end_approver?: string | null;
2662
+ end_reason?: Database["public"]["Enums"]["session_end_reason"] | null;
2560
2663
  id?: number;
2561
2664
  inserted_at?: string;
2562
2665
  lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
@@ -2566,6 +2669,8 @@ export type Database = {
2566
2669
  locations?: unknown;
2567
2670
  post_approver?: string | null;
2568
2671
  software_version?: string;
2672
+ start_approver?: string | null;
2673
+ status?: Database["public"]["Enums"]["session_status"];
2569
2674
  timestamp_end?: string | null;
2570
2675
  timestamp_start?: string;
2571
2676
  velocity_average?: number;
@@ -2587,6 +2692,13 @@ export type Database = {
2587
2692
  referencedRelation: "devices";
2588
2693
  referencedColumns: ["id"];
2589
2694
  },
2695
+ {
2696
+ foreignKeyName: "sessions_end_approver_fkey";
2697
+ columns: ["end_approver"];
2698
+ isOneToOne: false;
2699
+ referencedRelation: "users";
2700
+ referencedColumns: ["id"];
2701
+ },
2590
2702
  {
2591
2703
  foreignKeyName: "sessions_lifecycle_changed_by_fkey";
2592
2704
  columns: ["lifecycle_changed_by"];
@@ -2600,6 +2712,13 @@ export type Database = {
2600
2712
  isOneToOne: false;
2601
2713
  referencedRelation: "users";
2602
2714
  referencedColumns: ["id"];
2715
+ },
2716
+ {
2717
+ foreignKeyName: "sessions_start_approver_fkey";
2718
+ columns: ["start_approver"];
2719
+ isOneToOne: false;
2720
+ referencedRelation: "users";
2721
+ referencedColumns: ["id"];
2603
2722
  }
2604
2723
  ];
2605
2724
  };
@@ -4645,7 +4764,9 @@ export type Database = {
4645
4764
  media_type: "image" | "video" | "audio" | "text";
4646
4765
  plan_type: "mission" | "fence" | "rally" | "markov";
4647
4766
  review_status: "pending" | "annotating" | "in_review" | "completed" | "rejected";
4767
+ session_end_reason: "completed" | "superseded" | "reporting_lost" | "inactivity_timeout" | "operator_cancelled" | "system_cancelled" | "other";
4648
4768
  session_incident_type: "collision_multi_device_other_direct_control" | "collision_multi_device_other_remote_control" | "collision_single_device_environment" | "link_loss" | "other";
4769
+ session_status: "in_progress" | "finalized" | "interrupted" | "cancelled";
4649
4770
  tag_observation_type: "manual" | "auto";
4650
4771
  user_status: "ONLINE" | "OFFLINE";
4651
4772
  };
@@ -4813,6 +4934,7 @@ export type Database = {
4813
4934
  auto_delete_media_with_no_tracks: boolean | null;
4814
4935
  localization_id: number | null;
4815
4936
  localization_region: string | null;
4937
+ video_server_url: string | null;
4816
4938
  };
4817
4939
  pins_pretty_location: {
4818
4940
  id: number | null;
@@ -4971,7 +5093,9 @@ export declare const Constants: {
4971
5093
  readonly media_type: readonly ["image", "video", "audio", "text"];
4972
5094
  readonly plan_type: readonly ["mission", "fence", "rally", "markov"];
4973
5095
  readonly review_status: readonly ["pending", "annotating", "in_review", "completed", "rejected"];
5096
+ readonly session_end_reason: readonly ["completed", "superseded", "reporting_lost", "inactivity_timeout", "operator_cancelled", "system_cancelled", "other"];
4974
5097
  readonly session_incident_type: readonly ["collision_multi_device_other_direct_control", "collision_multi_device_other_remote_control", "collision_single_device_environment", "link_loss", "other"];
5098
+ readonly session_status: readonly ["in_progress", "finalized", "interrupted", "cancelled"];
4975
5099
  readonly tag_observation_type: readonly ["manual", "auto"];
4976
5100
  readonly user_status: readonly ["ONLINE", "OFFLINE"];
4977
5101
  };
@@ -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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adventurelabs/scout-core",
3
- "version": "1.4.92",
3
+ "version": "1.4.94",
4
4
  "description": "Core utilities and helpers for Adventure Labs Scout applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",