@adventurelabs/scout-core 2.0.3 → 2.0.5
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/README.md +5 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +2 -2
- package/dist/helpers/compliance.d.ts +20 -1
- package/dist/helpers/compliance.js +57 -0
- package/dist/helpers/compliance.queries.d.ts +20 -1
- package/dist/helpers/compliance.queries.js +92 -0
- package/dist/helpers/operating_contexts.d.ts +4 -1
- package/dist/helpers/operating_contexts.js +9 -0
- package/dist/helpers/operating_contexts.queries.d.ts +4 -1
- package/dist/helpers/operating_contexts.queries.js +9 -0
- package/dist/hooks/useScoutRealtimeOperatingContexts.d.ts +5 -5
- package/dist/hooks/useScoutRealtimeOperatingContexts.js +10 -0
- package/dist/hooks/useScoutRefresh.d.ts +7 -1
- package/dist/hooks/useScoutRefresh.js +149 -52
- package/dist/providers/ScoutRefreshProvider.js +221 -51
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +2 -2
- package/dist/types/db.d.ts +41 -2
- package/dist/types/jwt_mint.js +3 -3
- package/dist/types/supabase.d.ts +390 -0
- package/package.json +1 -1
package/dist/types/supabase.d.ts
CHANGED
|
@@ -606,6 +606,57 @@ export type Database = {
|
|
|
606
606
|
}
|
|
607
607
|
];
|
|
608
608
|
};
|
|
609
|
+
conflict_types: {
|
|
610
|
+
Row: {
|
|
611
|
+
id: number;
|
|
612
|
+
inserted_at: string;
|
|
613
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
614
|
+
lifecycle_changed_at: string;
|
|
615
|
+
lifecycle_changed_by: string | null;
|
|
616
|
+
lifecycle_reason: string | null;
|
|
617
|
+
localization_id: number;
|
|
618
|
+
name: string;
|
|
619
|
+
system_name: string;
|
|
620
|
+
};
|
|
621
|
+
Insert: {
|
|
622
|
+
id?: number;
|
|
623
|
+
inserted_at?: string;
|
|
624
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
625
|
+
lifecycle_changed_at?: string;
|
|
626
|
+
lifecycle_changed_by?: string | null;
|
|
627
|
+
lifecycle_reason?: string | null;
|
|
628
|
+
localization_id: number;
|
|
629
|
+
name: string;
|
|
630
|
+
system_name: string;
|
|
631
|
+
};
|
|
632
|
+
Update: {
|
|
633
|
+
id?: number;
|
|
634
|
+
inserted_at?: string;
|
|
635
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
636
|
+
lifecycle_changed_at?: string;
|
|
637
|
+
lifecycle_changed_by?: string | null;
|
|
638
|
+
lifecycle_reason?: string | null;
|
|
639
|
+
localization_id?: number;
|
|
640
|
+
name?: string;
|
|
641
|
+
system_name?: string;
|
|
642
|
+
};
|
|
643
|
+
Relationships: [
|
|
644
|
+
{
|
|
645
|
+
foreignKeyName: "conflict_types_lifecycle_changed_by_fkey";
|
|
646
|
+
columns: ["lifecycle_changed_by"];
|
|
647
|
+
isOneToOne: false;
|
|
648
|
+
referencedRelation: "users";
|
|
649
|
+
referencedColumns: ["id"];
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
foreignKeyName: "conflict_types_localization_id_fkey";
|
|
653
|
+
columns: ["localization_id"];
|
|
654
|
+
isOneToOne: false;
|
|
655
|
+
referencedRelation: "localizations";
|
|
656
|
+
referencedColumns: ["id"];
|
|
657
|
+
}
|
|
658
|
+
];
|
|
659
|
+
};
|
|
609
660
|
connectivity: {
|
|
610
661
|
Row: {
|
|
611
662
|
altitude: number;
|
|
@@ -1009,6 +1060,39 @@ export type Database = {
|
|
|
1009
1060
|
}
|
|
1010
1061
|
];
|
|
1011
1062
|
};
|
|
1063
|
+
document_template_conflict_types: {
|
|
1064
|
+
Row: {
|
|
1065
|
+
conflict_type_id: number;
|
|
1066
|
+
document_template_id: number;
|
|
1067
|
+
inserted_at: string;
|
|
1068
|
+
};
|
|
1069
|
+
Insert: {
|
|
1070
|
+
conflict_type_id: number;
|
|
1071
|
+
document_template_id: number;
|
|
1072
|
+
inserted_at?: string;
|
|
1073
|
+
};
|
|
1074
|
+
Update: {
|
|
1075
|
+
conflict_type_id?: number;
|
|
1076
|
+
document_template_id?: number;
|
|
1077
|
+
inserted_at?: string;
|
|
1078
|
+
};
|
|
1079
|
+
Relationships: [
|
|
1080
|
+
{
|
|
1081
|
+
foreignKeyName: "document_template_conflict_types_conflict_type_id_fkey";
|
|
1082
|
+
columns: ["conflict_type_id"];
|
|
1083
|
+
isOneToOne: false;
|
|
1084
|
+
referencedRelation: "conflict_types";
|
|
1085
|
+
referencedColumns: ["id"];
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
foreignKeyName: "document_template_conflict_types_document_template_id_fkey";
|
|
1089
|
+
columns: ["document_template_id"];
|
|
1090
|
+
isOneToOne: false;
|
|
1091
|
+
referencedRelation: "document_templates";
|
|
1092
|
+
referencedColumns: ["id"];
|
|
1093
|
+
}
|
|
1094
|
+
];
|
|
1095
|
+
};
|
|
1012
1096
|
document_templates: {
|
|
1013
1097
|
Row: {
|
|
1014
1098
|
categories: string[];
|
|
@@ -1018,6 +1102,7 @@ export type Database = {
|
|
|
1018
1102
|
entity_for: Database["public"]["Enums"]["document_entity"] | null;
|
|
1019
1103
|
id: number;
|
|
1020
1104
|
inserted_at: string;
|
|
1105
|
+
is_opspec: boolean;
|
|
1021
1106
|
is_shared: boolean;
|
|
1022
1107
|
issuer_id: number | null;
|
|
1023
1108
|
localization_id: number | null;
|
|
@@ -1032,6 +1117,7 @@ export type Database = {
|
|
|
1032
1117
|
entity_for?: Database["public"]["Enums"]["document_entity"] | null;
|
|
1033
1118
|
id?: number;
|
|
1034
1119
|
inserted_at?: string;
|
|
1120
|
+
is_opspec?: boolean;
|
|
1035
1121
|
is_shared?: boolean;
|
|
1036
1122
|
issuer_id?: number | null;
|
|
1037
1123
|
localization_id?: number | null;
|
|
@@ -1046,6 +1132,7 @@ export type Database = {
|
|
|
1046
1132
|
entity_for?: Database["public"]["Enums"]["document_entity"] | null;
|
|
1047
1133
|
id?: number;
|
|
1048
1134
|
inserted_at?: string;
|
|
1135
|
+
is_opspec?: boolean;
|
|
1049
1136
|
is_shared?: boolean;
|
|
1050
1137
|
issuer_id?: number | null;
|
|
1051
1138
|
localization_id?: number | null;
|
|
@@ -2662,6 +2749,161 @@ export type Database = {
|
|
|
2662
2749
|
}
|
|
2663
2750
|
];
|
|
2664
2751
|
};
|
|
2752
|
+
operating_context_region_conflict_contacts: {
|
|
2753
|
+
Row: {
|
|
2754
|
+
contact_id: number;
|
|
2755
|
+
herd_id: number;
|
|
2756
|
+
id: number;
|
|
2757
|
+
inserted_at: string;
|
|
2758
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2759
|
+
lifecycle_changed_at: string;
|
|
2760
|
+
lifecycle_changed_by: string | null;
|
|
2761
|
+
lifecycle_reason: string | null;
|
|
2762
|
+
operating_context_region_conflict_id: number;
|
|
2763
|
+
};
|
|
2764
|
+
Insert: {
|
|
2765
|
+
contact_id: number;
|
|
2766
|
+
herd_id: number;
|
|
2767
|
+
id?: number;
|
|
2768
|
+
inserted_at?: string;
|
|
2769
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2770
|
+
lifecycle_changed_at?: string;
|
|
2771
|
+
lifecycle_changed_by?: string | null;
|
|
2772
|
+
lifecycle_reason?: string | null;
|
|
2773
|
+
operating_context_region_conflict_id: number;
|
|
2774
|
+
};
|
|
2775
|
+
Update: {
|
|
2776
|
+
contact_id?: number;
|
|
2777
|
+
herd_id?: number;
|
|
2778
|
+
id?: number;
|
|
2779
|
+
inserted_at?: string;
|
|
2780
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2781
|
+
lifecycle_changed_at?: string;
|
|
2782
|
+
lifecycle_changed_by?: string | null;
|
|
2783
|
+
lifecycle_reason?: string | null;
|
|
2784
|
+
operating_context_region_conflict_id?: number;
|
|
2785
|
+
};
|
|
2786
|
+
Relationships: [
|
|
2787
|
+
{
|
|
2788
|
+
foreignKeyName: "operating_context_region_conflict_con_lifecycle_changed_by_fkey";
|
|
2789
|
+
columns: ["lifecycle_changed_by"];
|
|
2790
|
+
isOneToOne: false;
|
|
2791
|
+
referencedRelation: "users";
|
|
2792
|
+
referencedColumns: ["id"];
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
foreignKeyName: "operating_context_region_conflict_contact_conflict_fkey";
|
|
2796
|
+
columns: ["operating_context_region_conflict_id", "herd_id"];
|
|
2797
|
+
isOneToOne: false;
|
|
2798
|
+
referencedRelation: "operating_context_region_conflicts";
|
|
2799
|
+
referencedColumns: ["id", "herd_id"];
|
|
2800
|
+
},
|
|
2801
|
+
{
|
|
2802
|
+
foreignKeyName: "operating_context_region_conflict_contact_contact_fkey";
|
|
2803
|
+
columns: ["contact_id", "herd_id"];
|
|
2804
|
+
isOneToOne: false;
|
|
2805
|
+
referencedRelation: "contacts";
|
|
2806
|
+
referencedColumns: ["id", "herd_id"];
|
|
2807
|
+
}
|
|
2808
|
+
];
|
|
2809
|
+
};
|
|
2810
|
+
operating_context_region_conflicts: {
|
|
2811
|
+
Row: {
|
|
2812
|
+
conflict_type_id: number;
|
|
2813
|
+
created_at: string;
|
|
2814
|
+
created_by: string | null;
|
|
2815
|
+
description: string | null;
|
|
2816
|
+
herd_id: number;
|
|
2817
|
+
id: number;
|
|
2818
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2819
|
+
lifecycle_changed_at: string;
|
|
2820
|
+
lifecycle_changed_by: string | null;
|
|
2821
|
+
lifecycle_reason: string | null;
|
|
2822
|
+
location: unknown;
|
|
2823
|
+
name: string;
|
|
2824
|
+
operating_context_region_id: number;
|
|
2825
|
+
updated_at: string;
|
|
2826
|
+
updated_by: string | null;
|
|
2827
|
+
};
|
|
2828
|
+
Insert: {
|
|
2829
|
+
conflict_type_id: number;
|
|
2830
|
+
created_at?: string;
|
|
2831
|
+
created_by?: string | null;
|
|
2832
|
+
description?: string | null;
|
|
2833
|
+
herd_id: number;
|
|
2834
|
+
id?: number;
|
|
2835
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2836
|
+
lifecycle_changed_at?: string;
|
|
2837
|
+
lifecycle_changed_by?: string | null;
|
|
2838
|
+
lifecycle_reason?: string | null;
|
|
2839
|
+
location?: unknown;
|
|
2840
|
+
name: string;
|
|
2841
|
+
operating_context_region_id: number;
|
|
2842
|
+
updated_at?: string;
|
|
2843
|
+
updated_by?: string | null;
|
|
2844
|
+
};
|
|
2845
|
+
Update: {
|
|
2846
|
+
conflict_type_id?: number;
|
|
2847
|
+
created_at?: string;
|
|
2848
|
+
created_by?: string | null;
|
|
2849
|
+
description?: string | null;
|
|
2850
|
+
herd_id?: number;
|
|
2851
|
+
id?: number;
|
|
2852
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2853
|
+
lifecycle_changed_at?: string;
|
|
2854
|
+
lifecycle_changed_by?: string | null;
|
|
2855
|
+
lifecycle_reason?: string | null;
|
|
2856
|
+
location?: unknown;
|
|
2857
|
+
name?: string;
|
|
2858
|
+
operating_context_region_id?: number;
|
|
2859
|
+
updated_at?: string;
|
|
2860
|
+
updated_by?: string | null;
|
|
2861
|
+
};
|
|
2862
|
+
Relationships: [
|
|
2863
|
+
{
|
|
2864
|
+
foreignKeyName: "operating_context_region_confl_operating_context_region_id_fkey";
|
|
2865
|
+
columns: ["operating_context_region_id"];
|
|
2866
|
+
isOneToOne: false;
|
|
2867
|
+
referencedRelation: "operating_context_regions";
|
|
2868
|
+
referencedColumns: ["id"];
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
foreignKeyName: "operating_context_region_conflicts_conflict_type_id_fkey";
|
|
2872
|
+
columns: ["conflict_type_id"];
|
|
2873
|
+
isOneToOne: false;
|
|
2874
|
+
referencedRelation: "conflict_types";
|
|
2875
|
+
referencedColumns: ["id"];
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
foreignKeyName: "operating_context_region_conflicts_created_by_fkey";
|
|
2879
|
+
columns: ["created_by"];
|
|
2880
|
+
isOneToOne: false;
|
|
2881
|
+
referencedRelation: "users";
|
|
2882
|
+
referencedColumns: ["id"];
|
|
2883
|
+
},
|
|
2884
|
+
{
|
|
2885
|
+
foreignKeyName: "operating_context_region_conflicts_herd_id_fkey";
|
|
2886
|
+
columns: ["herd_id"];
|
|
2887
|
+
isOneToOne: false;
|
|
2888
|
+
referencedRelation: "herds";
|
|
2889
|
+
referencedColumns: ["id"];
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
foreignKeyName: "operating_context_region_conflicts_lifecycle_changed_by_fkey";
|
|
2893
|
+
columns: ["lifecycle_changed_by"];
|
|
2894
|
+
isOneToOne: false;
|
|
2895
|
+
referencedRelation: "users";
|
|
2896
|
+
referencedColumns: ["id"];
|
|
2897
|
+
},
|
|
2898
|
+
{
|
|
2899
|
+
foreignKeyName: "operating_context_region_conflicts_updated_by_fkey";
|
|
2900
|
+
columns: ["updated_by"];
|
|
2901
|
+
isOneToOne: false;
|
|
2902
|
+
referencedRelation: "users";
|
|
2903
|
+
referencedColumns: ["id"];
|
|
2904
|
+
}
|
|
2905
|
+
];
|
|
2906
|
+
};
|
|
2665
2907
|
operating_context_regions: {
|
|
2666
2908
|
Row: {
|
|
2667
2909
|
created_at: string;
|
|
@@ -3065,6 +3307,8 @@ export type Database = {
|
|
|
3065
3307
|
local_notes: string | null;
|
|
3066
3308
|
name: string;
|
|
3067
3309
|
operating_context_type_id: number;
|
|
3310
|
+
time_of_day_end: string | null;
|
|
3311
|
+
time_of_day_start: string | null;
|
|
3068
3312
|
updated_at: string;
|
|
3069
3313
|
updated_by: string | null;
|
|
3070
3314
|
valid_from: string;
|
|
@@ -3086,6 +3330,8 @@ export type Database = {
|
|
|
3086
3330
|
local_notes?: string | null;
|
|
3087
3331
|
name: string;
|
|
3088
3332
|
operating_context_type_id: number;
|
|
3333
|
+
time_of_day_end?: string | null;
|
|
3334
|
+
time_of_day_start?: string | null;
|
|
3089
3335
|
updated_at?: string;
|
|
3090
3336
|
updated_by?: string | null;
|
|
3091
3337
|
valid_from: string;
|
|
@@ -3107,6 +3353,8 @@ export type Database = {
|
|
|
3107
3353
|
local_notes?: string | null;
|
|
3108
3354
|
name?: string;
|
|
3109
3355
|
operating_context_type_id?: number;
|
|
3356
|
+
time_of_day_end?: string | null;
|
|
3357
|
+
time_of_day_start?: string | null;
|
|
3110
3358
|
updated_at?: string;
|
|
3111
3359
|
updated_by?: string | null;
|
|
3112
3360
|
valid_from?: string;
|
|
@@ -3208,6 +3456,72 @@ export type Database = {
|
|
|
3208
3456
|
}
|
|
3209
3457
|
];
|
|
3210
3458
|
};
|
|
3459
|
+
operating_permission_conflict_types: {
|
|
3460
|
+
Row: {
|
|
3461
|
+
conflict_type_id: number;
|
|
3462
|
+
inserted_at: string;
|
|
3463
|
+
operating_permission_id: number;
|
|
3464
|
+
};
|
|
3465
|
+
Insert: {
|
|
3466
|
+
conflict_type_id: number;
|
|
3467
|
+
inserted_at?: string;
|
|
3468
|
+
operating_permission_id: number;
|
|
3469
|
+
};
|
|
3470
|
+
Update: {
|
|
3471
|
+
conflict_type_id?: number;
|
|
3472
|
+
inserted_at?: string;
|
|
3473
|
+
operating_permission_id?: number;
|
|
3474
|
+
};
|
|
3475
|
+
Relationships: [
|
|
3476
|
+
{
|
|
3477
|
+
foreignKeyName: "operating_permission_conflict_type_operating_permission_id_fkey";
|
|
3478
|
+
columns: ["operating_permission_id"];
|
|
3479
|
+
isOneToOne: false;
|
|
3480
|
+
referencedRelation: "operating_permissions";
|
|
3481
|
+
referencedColumns: ["id"];
|
|
3482
|
+
},
|
|
3483
|
+
{
|
|
3484
|
+
foreignKeyName: "operating_permission_conflict_types_conflict_type_id_fkey";
|
|
3485
|
+
columns: ["conflict_type_id"];
|
|
3486
|
+
isOneToOne: false;
|
|
3487
|
+
referencedRelation: "conflict_types";
|
|
3488
|
+
referencedColumns: ["id"];
|
|
3489
|
+
}
|
|
3490
|
+
];
|
|
3491
|
+
};
|
|
3492
|
+
operating_permission_document_conditions: {
|
|
3493
|
+
Row: {
|
|
3494
|
+
document_condition_id: number;
|
|
3495
|
+
inserted_at: string;
|
|
3496
|
+
operating_permission_id: number;
|
|
3497
|
+
};
|
|
3498
|
+
Insert: {
|
|
3499
|
+
document_condition_id: number;
|
|
3500
|
+
inserted_at?: string;
|
|
3501
|
+
operating_permission_id: number;
|
|
3502
|
+
};
|
|
3503
|
+
Update: {
|
|
3504
|
+
document_condition_id?: number;
|
|
3505
|
+
inserted_at?: string;
|
|
3506
|
+
operating_permission_id?: number;
|
|
3507
|
+
};
|
|
3508
|
+
Relationships: [
|
|
3509
|
+
{
|
|
3510
|
+
foreignKeyName: "operating_permission_document_cond_operating_permission_id_fkey";
|
|
3511
|
+
columns: ["operating_permission_id"];
|
|
3512
|
+
isOneToOne: false;
|
|
3513
|
+
referencedRelation: "operating_permissions";
|
|
3514
|
+
referencedColumns: ["id"];
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
foreignKeyName: "operating_permission_document_condit_document_condition_id_fkey";
|
|
3518
|
+
columns: ["document_condition_id"];
|
|
3519
|
+
isOneToOne: false;
|
|
3520
|
+
referencedRelation: "document_conditions";
|
|
3521
|
+
referencedColumns: ["id"];
|
|
3522
|
+
}
|
|
3523
|
+
];
|
|
3524
|
+
};
|
|
3211
3525
|
operating_permissions: {
|
|
3212
3526
|
Row: {
|
|
3213
3527
|
description: string | null;
|
|
@@ -3219,6 +3533,7 @@ export type Database = {
|
|
|
3219
3533
|
lifecycle_reason: string | null;
|
|
3220
3534
|
localization_id: number;
|
|
3221
3535
|
name: string;
|
|
3536
|
+
payload_types: Database["public"]["Enums"]["operating_context_payload_type"][];
|
|
3222
3537
|
};
|
|
3223
3538
|
Insert: {
|
|
3224
3539
|
description?: string | null;
|
|
@@ -3230,6 +3545,7 @@ export type Database = {
|
|
|
3230
3545
|
lifecycle_reason?: string | null;
|
|
3231
3546
|
localization_id: number;
|
|
3232
3547
|
name: string;
|
|
3548
|
+
payload_types?: Database["public"]["Enums"]["operating_context_payload_type"][];
|
|
3233
3549
|
};
|
|
3234
3550
|
Update: {
|
|
3235
3551
|
description?: string | null;
|
|
@@ -3241,6 +3557,7 @@ export type Database = {
|
|
|
3241
3557
|
lifecycle_reason?: string | null;
|
|
3242
3558
|
localization_id?: number;
|
|
3243
3559
|
name?: string;
|
|
3560
|
+
payload_types?: Database["public"]["Enums"]["operating_context_payload_type"][];
|
|
3244
3561
|
};
|
|
3245
3562
|
Relationships: [
|
|
3246
3563
|
{
|
|
@@ -3777,6 +4094,79 @@ export type Database = {
|
|
|
3777
4094
|
};
|
|
3778
4095
|
Relationships: [];
|
|
3779
4096
|
};
|
|
4097
|
+
risk_recommendations: {
|
|
4098
|
+
Row: {
|
|
4099
|
+
conflict_type_id: number | null;
|
|
4100
|
+
document_condition_id: number | null;
|
|
4101
|
+
hazard: string | null;
|
|
4102
|
+
id: number;
|
|
4103
|
+
inserted_at: string;
|
|
4104
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
4105
|
+
lifecycle_changed_at: string;
|
|
4106
|
+
lifecycle_changed_by: string | null;
|
|
4107
|
+
lifecycle_reason: string | null;
|
|
4108
|
+
mitigation: string | null;
|
|
4109
|
+
probability_after: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4110
|
+
probability_before: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4111
|
+
severity_after: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4112
|
+
severity_before: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4113
|
+
};
|
|
4114
|
+
Insert: {
|
|
4115
|
+
conflict_type_id?: number | null;
|
|
4116
|
+
document_condition_id?: number | null;
|
|
4117
|
+
hazard?: string | null;
|
|
4118
|
+
id?: number;
|
|
4119
|
+
inserted_at?: string;
|
|
4120
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
4121
|
+
lifecycle_changed_at?: string;
|
|
4122
|
+
lifecycle_changed_by?: string | null;
|
|
4123
|
+
lifecycle_reason?: string | null;
|
|
4124
|
+
mitigation?: string | null;
|
|
4125
|
+
probability_after?: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4126
|
+
probability_before?: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4127
|
+
severity_after?: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4128
|
+
severity_before?: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4129
|
+
};
|
|
4130
|
+
Update: {
|
|
4131
|
+
conflict_type_id?: number | null;
|
|
4132
|
+
document_condition_id?: number | null;
|
|
4133
|
+
hazard?: string | null;
|
|
4134
|
+
id?: number;
|
|
4135
|
+
inserted_at?: string;
|
|
4136
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
4137
|
+
lifecycle_changed_at?: string;
|
|
4138
|
+
lifecycle_changed_by?: string | null;
|
|
4139
|
+
lifecycle_reason?: string | null;
|
|
4140
|
+
mitigation?: string | null;
|
|
4141
|
+
probability_after?: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4142
|
+
probability_before?: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4143
|
+
severity_after?: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4144
|
+
severity_before?: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4145
|
+
};
|
|
4146
|
+
Relationships: [
|
|
4147
|
+
{
|
|
4148
|
+
foreignKeyName: "risk_recommendations_conflict_type_id_fkey";
|
|
4149
|
+
columns: ["conflict_type_id"];
|
|
4150
|
+
isOneToOne: false;
|
|
4151
|
+
referencedRelation: "conflict_types";
|
|
4152
|
+
referencedColumns: ["id"];
|
|
4153
|
+
},
|
|
4154
|
+
{
|
|
4155
|
+
foreignKeyName: "risk_recommendations_document_condition_id_fkey";
|
|
4156
|
+
columns: ["document_condition_id"];
|
|
4157
|
+
isOneToOne: false;
|
|
4158
|
+
referencedRelation: "document_conditions";
|
|
4159
|
+
referencedColumns: ["id"];
|
|
4160
|
+
},
|
|
4161
|
+
{
|
|
4162
|
+
foreignKeyName: "risk_recommendations_lifecycle_changed_by_fkey";
|
|
4163
|
+
columns: ["lifecycle_changed_by"];
|
|
4164
|
+
isOneToOne: false;
|
|
4165
|
+
referencedRelation: "users";
|
|
4166
|
+
referencedColumns: ["id"];
|
|
4167
|
+
}
|
|
4168
|
+
];
|
|
4169
|
+
};
|
|
3780
4170
|
segmentations_sam3: {
|
|
3781
4171
|
Row: {
|
|
3782
4172
|
artifact_id: number | null;
|