@adventurelabs/scout-core 2.0.2 → 2.0.4
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 +17 -1
- package/dist/helpers/compliance.js +48 -0
- package/dist/helpers/compliance.queries.d.ts +17 -1
- package/dist/helpers/compliance.queries.js +76 -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/helpers/realtime_topic_access.js +1 -1
- package/dist/hooks/useScoutRealtimeOperatingContexts.d.ts +5 -5
- package/dist/hooks/useScoutRealtimeOperatingContexts.js +9 -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/store/configureStore.js +1 -1
- package/dist/store/scout.d.ts +1 -2
- package/dist/store/scout.js +1 -1
- package/dist/types/db.d.ts +36 -1
- package/dist/types/jwt_mint.js +3 -3
- package/dist/types/supabase.d.ts +361 -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;
|
|
@@ -1013,11 +1064,13 @@ export type Database = {
|
|
|
1013
1064
|
Row: {
|
|
1014
1065
|
categories: string[];
|
|
1015
1066
|
compliance_resource_id: number | null;
|
|
1067
|
+
conflict_type_id: number | null;
|
|
1016
1068
|
description: string | null;
|
|
1017
1069
|
document_condition_id: number | null;
|
|
1018
1070
|
entity_for: Database["public"]["Enums"]["document_entity"] | null;
|
|
1019
1071
|
id: number;
|
|
1020
1072
|
inserted_at: string;
|
|
1073
|
+
is_opspec: boolean;
|
|
1021
1074
|
is_shared: boolean;
|
|
1022
1075
|
issuer_id: number | null;
|
|
1023
1076
|
localization_id: number | null;
|
|
@@ -1027,11 +1080,13 @@ export type Database = {
|
|
|
1027
1080
|
Insert: {
|
|
1028
1081
|
categories?: string[];
|
|
1029
1082
|
compliance_resource_id?: number | null;
|
|
1083
|
+
conflict_type_id?: number | null;
|
|
1030
1084
|
description?: string | null;
|
|
1031
1085
|
document_condition_id?: number | null;
|
|
1032
1086
|
entity_for?: Database["public"]["Enums"]["document_entity"] | null;
|
|
1033
1087
|
id?: number;
|
|
1034
1088
|
inserted_at?: string;
|
|
1089
|
+
is_opspec?: boolean;
|
|
1035
1090
|
is_shared?: boolean;
|
|
1036
1091
|
issuer_id?: number | null;
|
|
1037
1092
|
localization_id?: number | null;
|
|
@@ -1041,11 +1096,13 @@ export type Database = {
|
|
|
1041
1096
|
Update: {
|
|
1042
1097
|
categories?: string[];
|
|
1043
1098
|
compliance_resource_id?: number | null;
|
|
1099
|
+
conflict_type_id?: number | null;
|
|
1044
1100
|
description?: string | null;
|
|
1045
1101
|
document_condition_id?: number | null;
|
|
1046
1102
|
entity_for?: Database["public"]["Enums"]["document_entity"] | null;
|
|
1047
1103
|
id?: number;
|
|
1048
1104
|
inserted_at?: string;
|
|
1105
|
+
is_opspec?: boolean;
|
|
1049
1106
|
is_shared?: boolean;
|
|
1050
1107
|
issuer_id?: number | null;
|
|
1051
1108
|
localization_id?: number | null;
|
|
@@ -1060,6 +1117,13 @@ export type Database = {
|
|
|
1060
1117
|
referencedRelation: "compliance_resources";
|
|
1061
1118
|
referencedColumns: ["id"];
|
|
1062
1119
|
},
|
|
1120
|
+
{
|
|
1121
|
+
foreignKeyName: "document_templates_conflict_type_id_fkey";
|
|
1122
|
+
columns: ["conflict_type_id"];
|
|
1123
|
+
isOneToOne: false;
|
|
1124
|
+
referencedRelation: "conflict_types";
|
|
1125
|
+
referencedColumns: ["id"];
|
|
1126
|
+
},
|
|
1063
1127
|
{
|
|
1064
1128
|
foreignKeyName: "document_templates_document_condition_id_fkey";
|
|
1065
1129
|
columns: ["document_condition_id"];
|
|
@@ -2662,6 +2726,161 @@ export type Database = {
|
|
|
2662
2726
|
}
|
|
2663
2727
|
];
|
|
2664
2728
|
};
|
|
2729
|
+
operating_context_region_conflict_contacts: {
|
|
2730
|
+
Row: {
|
|
2731
|
+
contact_id: number;
|
|
2732
|
+
herd_id: number;
|
|
2733
|
+
id: number;
|
|
2734
|
+
inserted_at: string;
|
|
2735
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2736
|
+
lifecycle_changed_at: string;
|
|
2737
|
+
lifecycle_changed_by: string | null;
|
|
2738
|
+
lifecycle_reason: string | null;
|
|
2739
|
+
operating_context_region_conflict_id: number;
|
|
2740
|
+
};
|
|
2741
|
+
Insert: {
|
|
2742
|
+
contact_id: number;
|
|
2743
|
+
herd_id: number;
|
|
2744
|
+
id?: number;
|
|
2745
|
+
inserted_at?: string;
|
|
2746
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2747
|
+
lifecycle_changed_at?: string;
|
|
2748
|
+
lifecycle_changed_by?: string | null;
|
|
2749
|
+
lifecycle_reason?: string | null;
|
|
2750
|
+
operating_context_region_conflict_id: number;
|
|
2751
|
+
};
|
|
2752
|
+
Update: {
|
|
2753
|
+
contact_id?: number;
|
|
2754
|
+
herd_id?: number;
|
|
2755
|
+
id?: number;
|
|
2756
|
+
inserted_at?: string;
|
|
2757
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2758
|
+
lifecycle_changed_at?: string;
|
|
2759
|
+
lifecycle_changed_by?: string | null;
|
|
2760
|
+
lifecycle_reason?: string | null;
|
|
2761
|
+
operating_context_region_conflict_id?: number;
|
|
2762
|
+
};
|
|
2763
|
+
Relationships: [
|
|
2764
|
+
{
|
|
2765
|
+
foreignKeyName: "operating_context_region_conflict_con_lifecycle_changed_by_fkey";
|
|
2766
|
+
columns: ["lifecycle_changed_by"];
|
|
2767
|
+
isOneToOne: false;
|
|
2768
|
+
referencedRelation: "users";
|
|
2769
|
+
referencedColumns: ["id"];
|
|
2770
|
+
},
|
|
2771
|
+
{
|
|
2772
|
+
foreignKeyName: "operating_context_region_conflict_contact_conflict_fkey";
|
|
2773
|
+
columns: ["operating_context_region_conflict_id", "herd_id"];
|
|
2774
|
+
isOneToOne: false;
|
|
2775
|
+
referencedRelation: "operating_context_region_conflicts";
|
|
2776
|
+
referencedColumns: ["id", "herd_id"];
|
|
2777
|
+
},
|
|
2778
|
+
{
|
|
2779
|
+
foreignKeyName: "operating_context_region_conflict_contact_contact_fkey";
|
|
2780
|
+
columns: ["contact_id", "herd_id"];
|
|
2781
|
+
isOneToOne: false;
|
|
2782
|
+
referencedRelation: "contacts";
|
|
2783
|
+
referencedColumns: ["id", "herd_id"];
|
|
2784
|
+
}
|
|
2785
|
+
];
|
|
2786
|
+
};
|
|
2787
|
+
operating_context_region_conflicts: {
|
|
2788
|
+
Row: {
|
|
2789
|
+
conflict_type_id: number;
|
|
2790
|
+
created_at: string;
|
|
2791
|
+
created_by: string | null;
|
|
2792
|
+
description: string | null;
|
|
2793
|
+
herd_id: number;
|
|
2794
|
+
id: number;
|
|
2795
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2796
|
+
lifecycle_changed_at: string;
|
|
2797
|
+
lifecycle_changed_by: string | null;
|
|
2798
|
+
lifecycle_reason: string | null;
|
|
2799
|
+
location: unknown;
|
|
2800
|
+
name: string;
|
|
2801
|
+
operating_context_region_id: number;
|
|
2802
|
+
updated_at: string;
|
|
2803
|
+
updated_by: string | null;
|
|
2804
|
+
};
|
|
2805
|
+
Insert: {
|
|
2806
|
+
conflict_type_id: number;
|
|
2807
|
+
created_at?: string;
|
|
2808
|
+
created_by?: string | null;
|
|
2809
|
+
description?: string | null;
|
|
2810
|
+
herd_id: number;
|
|
2811
|
+
id?: number;
|
|
2812
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2813
|
+
lifecycle_changed_at?: string;
|
|
2814
|
+
lifecycle_changed_by?: string | null;
|
|
2815
|
+
lifecycle_reason?: string | null;
|
|
2816
|
+
location?: unknown;
|
|
2817
|
+
name: string;
|
|
2818
|
+
operating_context_region_id: number;
|
|
2819
|
+
updated_at?: string;
|
|
2820
|
+
updated_by?: string | null;
|
|
2821
|
+
};
|
|
2822
|
+
Update: {
|
|
2823
|
+
conflict_type_id?: number;
|
|
2824
|
+
created_at?: string;
|
|
2825
|
+
created_by?: string | null;
|
|
2826
|
+
description?: string | null;
|
|
2827
|
+
herd_id?: number;
|
|
2828
|
+
id?: number;
|
|
2829
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
2830
|
+
lifecycle_changed_at?: string;
|
|
2831
|
+
lifecycle_changed_by?: string | null;
|
|
2832
|
+
lifecycle_reason?: string | null;
|
|
2833
|
+
location?: unknown;
|
|
2834
|
+
name?: string;
|
|
2835
|
+
operating_context_region_id?: number;
|
|
2836
|
+
updated_at?: string;
|
|
2837
|
+
updated_by?: string | null;
|
|
2838
|
+
};
|
|
2839
|
+
Relationships: [
|
|
2840
|
+
{
|
|
2841
|
+
foreignKeyName: "operating_context_region_confl_operating_context_region_id_fkey";
|
|
2842
|
+
columns: ["operating_context_region_id"];
|
|
2843
|
+
isOneToOne: false;
|
|
2844
|
+
referencedRelation: "operating_context_regions";
|
|
2845
|
+
referencedColumns: ["id"];
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
foreignKeyName: "operating_context_region_conflicts_conflict_type_id_fkey";
|
|
2849
|
+
columns: ["conflict_type_id"];
|
|
2850
|
+
isOneToOne: false;
|
|
2851
|
+
referencedRelation: "conflict_types";
|
|
2852
|
+
referencedColumns: ["id"];
|
|
2853
|
+
},
|
|
2854
|
+
{
|
|
2855
|
+
foreignKeyName: "operating_context_region_conflicts_created_by_fkey";
|
|
2856
|
+
columns: ["created_by"];
|
|
2857
|
+
isOneToOne: false;
|
|
2858
|
+
referencedRelation: "users";
|
|
2859
|
+
referencedColumns: ["id"];
|
|
2860
|
+
},
|
|
2861
|
+
{
|
|
2862
|
+
foreignKeyName: "operating_context_region_conflicts_herd_id_fkey";
|
|
2863
|
+
columns: ["herd_id"];
|
|
2864
|
+
isOneToOne: false;
|
|
2865
|
+
referencedRelation: "herds";
|
|
2866
|
+
referencedColumns: ["id"];
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
foreignKeyName: "operating_context_region_conflicts_lifecycle_changed_by_fkey";
|
|
2870
|
+
columns: ["lifecycle_changed_by"];
|
|
2871
|
+
isOneToOne: false;
|
|
2872
|
+
referencedRelation: "users";
|
|
2873
|
+
referencedColumns: ["id"];
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
foreignKeyName: "operating_context_region_conflicts_updated_by_fkey";
|
|
2877
|
+
columns: ["updated_by"];
|
|
2878
|
+
isOneToOne: false;
|
|
2879
|
+
referencedRelation: "users";
|
|
2880
|
+
referencedColumns: ["id"];
|
|
2881
|
+
}
|
|
2882
|
+
];
|
|
2883
|
+
};
|
|
2665
2884
|
operating_context_regions: {
|
|
2666
2885
|
Row: {
|
|
2667
2886
|
created_at: string;
|
|
@@ -3208,6 +3427,72 @@ export type Database = {
|
|
|
3208
3427
|
}
|
|
3209
3428
|
];
|
|
3210
3429
|
};
|
|
3430
|
+
operating_permission_conflict_types: {
|
|
3431
|
+
Row: {
|
|
3432
|
+
conflict_type_id: number;
|
|
3433
|
+
inserted_at: string;
|
|
3434
|
+
operating_permission_id: number;
|
|
3435
|
+
};
|
|
3436
|
+
Insert: {
|
|
3437
|
+
conflict_type_id: number;
|
|
3438
|
+
inserted_at?: string;
|
|
3439
|
+
operating_permission_id: number;
|
|
3440
|
+
};
|
|
3441
|
+
Update: {
|
|
3442
|
+
conflict_type_id?: number;
|
|
3443
|
+
inserted_at?: string;
|
|
3444
|
+
operating_permission_id?: number;
|
|
3445
|
+
};
|
|
3446
|
+
Relationships: [
|
|
3447
|
+
{
|
|
3448
|
+
foreignKeyName: "operating_permission_conflict_type_operating_permission_id_fkey";
|
|
3449
|
+
columns: ["operating_permission_id"];
|
|
3450
|
+
isOneToOne: false;
|
|
3451
|
+
referencedRelation: "operating_permissions";
|
|
3452
|
+
referencedColumns: ["id"];
|
|
3453
|
+
},
|
|
3454
|
+
{
|
|
3455
|
+
foreignKeyName: "operating_permission_conflict_types_conflict_type_id_fkey";
|
|
3456
|
+
columns: ["conflict_type_id"];
|
|
3457
|
+
isOneToOne: false;
|
|
3458
|
+
referencedRelation: "conflict_types";
|
|
3459
|
+
referencedColumns: ["id"];
|
|
3460
|
+
}
|
|
3461
|
+
];
|
|
3462
|
+
};
|
|
3463
|
+
operating_permission_document_conditions: {
|
|
3464
|
+
Row: {
|
|
3465
|
+
document_condition_id: number;
|
|
3466
|
+
inserted_at: string;
|
|
3467
|
+
operating_permission_id: number;
|
|
3468
|
+
};
|
|
3469
|
+
Insert: {
|
|
3470
|
+
document_condition_id: number;
|
|
3471
|
+
inserted_at?: string;
|
|
3472
|
+
operating_permission_id: number;
|
|
3473
|
+
};
|
|
3474
|
+
Update: {
|
|
3475
|
+
document_condition_id?: number;
|
|
3476
|
+
inserted_at?: string;
|
|
3477
|
+
operating_permission_id?: number;
|
|
3478
|
+
};
|
|
3479
|
+
Relationships: [
|
|
3480
|
+
{
|
|
3481
|
+
foreignKeyName: "operating_permission_document_cond_operating_permission_id_fkey";
|
|
3482
|
+
columns: ["operating_permission_id"];
|
|
3483
|
+
isOneToOne: false;
|
|
3484
|
+
referencedRelation: "operating_permissions";
|
|
3485
|
+
referencedColumns: ["id"];
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
foreignKeyName: "operating_permission_document_condit_document_condition_id_fkey";
|
|
3489
|
+
columns: ["document_condition_id"];
|
|
3490
|
+
isOneToOne: false;
|
|
3491
|
+
referencedRelation: "document_conditions";
|
|
3492
|
+
referencedColumns: ["id"];
|
|
3493
|
+
}
|
|
3494
|
+
];
|
|
3495
|
+
};
|
|
3211
3496
|
operating_permissions: {
|
|
3212
3497
|
Row: {
|
|
3213
3498
|
description: string | null;
|
|
@@ -3219,6 +3504,7 @@ export type Database = {
|
|
|
3219
3504
|
lifecycle_reason: string | null;
|
|
3220
3505
|
localization_id: number;
|
|
3221
3506
|
name: string;
|
|
3507
|
+
payload_types: Database["public"]["Enums"]["operating_context_payload_type"][];
|
|
3222
3508
|
};
|
|
3223
3509
|
Insert: {
|
|
3224
3510
|
description?: string | null;
|
|
@@ -3230,6 +3516,7 @@ export type Database = {
|
|
|
3230
3516
|
lifecycle_reason?: string | null;
|
|
3231
3517
|
localization_id: number;
|
|
3232
3518
|
name: string;
|
|
3519
|
+
payload_types?: Database["public"]["Enums"]["operating_context_payload_type"][];
|
|
3233
3520
|
};
|
|
3234
3521
|
Update: {
|
|
3235
3522
|
description?: string | null;
|
|
@@ -3241,6 +3528,7 @@ export type Database = {
|
|
|
3241
3528
|
lifecycle_reason?: string | null;
|
|
3242
3529
|
localization_id?: number;
|
|
3243
3530
|
name?: string;
|
|
3531
|
+
payload_types?: Database["public"]["Enums"]["operating_context_payload_type"][];
|
|
3244
3532
|
};
|
|
3245
3533
|
Relationships: [
|
|
3246
3534
|
{
|
|
@@ -3777,6 +4065,79 @@ export type Database = {
|
|
|
3777
4065
|
};
|
|
3778
4066
|
Relationships: [];
|
|
3779
4067
|
};
|
|
4068
|
+
risk_recommendations: {
|
|
4069
|
+
Row: {
|
|
4070
|
+
conflict_type_id: number | null;
|
|
4071
|
+
document_condition_id: number | null;
|
|
4072
|
+
hazard: string | null;
|
|
4073
|
+
id: number;
|
|
4074
|
+
inserted_at: string;
|
|
4075
|
+
lifecycle: Database["public"]["Enums"]["entity_lifecycle"];
|
|
4076
|
+
lifecycle_changed_at: string;
|
|
4077
|
+
lifecycle_changed_by: string | null;
|
|
4078
|
+
lifecycle_reason: string | null;
|
|
4079
|
+
mitigation: string | null;
|
|
4080
|
+
probability_after: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4081
|
+
probability_before: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4082
|
+
severity_after: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4083
|
+
severity_before: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4084
|
+
};
|
|
4085
|
+
Insert: {
|
|
4086
|
+
conflict_type_id?: number | null;
|
|
4087
|
+
document_condition_id?: number | null;
|
|
4088
|
+
hazard?: string | null;
|
|
4089
|
+
id?: number;
|
|
4090
|
+
inserted_at?: string;
|
|
4091
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
4092
|
+
lifecycle_changed_at?: string;
|
|
4093
|
+
lifecycle_changed_by?: string | null;
|
|
4094
|
+
lifecycle_reason?: string | null;
|
|
4095
|
+
mitigation?: string | null;
|
|
4096
|
+
probability_after?: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4097
|
+
probability_before?: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4098
|
+
severity_after?: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4099
|
+
severity_before?: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4100
|
+
};
|
|
4101
|
+
Update: {
|
|
4102
|
+
conflict_type_id?: number | null;
|
|
4103
|
+
document_condition_id?: number | null;
|
|
4104
|
+
hazard?: string | null;
|
|
4105
|
+
id?: number;
|
|
4106
|
+
inserted_at?: string;
|
|
4107
|
+
lifecycle?: Database["public"]["Enums"]["entity_lifecycle"];
|
|
4108
|
+
lifecycle_changed_at?: string;
|
|
4109
|
+
lifecycle_changed_by?: string | null;
|
|
4110
|
+
lifecycle_reason?: string | null;
|
|
4111
|
+
mitigation?: string | null;
|
|
4112
|
+
probability_after?: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4113
|
+
probability_before?: Database["public"]["Enums"]["operating_context_risk_probability"] | null;
|
|
4114
|
+
severity_after?: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4115
|
+
severity_before?: Database["public"]["Enums"]["operating_context_risk_severity"] | null;
|
|
4116
|
+
};
|
|
4117
|
+
Relationships: [
|
|
4118
|
+
{
|
|
4119
|
+
foreignKeyName: "risk_recommendations_conflict_type_id_fkey";
|
|
4120
|
+
columns: ["conflict_type_id"];
|
|
4121
|
+
isOneToOne: false;
|
|
4122
|
+
referencedRelation: "conflict_types";
|
|
4123
|
+
referencedColumns: ["id"];
|
|
4124
|
+
},
|
|
4125
|
+
{
|
|
4126
|
+
foreignKeyName: "risk_recommendations_document_condition_id_fkey";
|
|
4127
|
+
columns: ["document_condition_id"];
|
|
4128
|
+
isOneToOne: false;
|
|
4129
|
+
referencedRelation: "document_conditions";
|
|
4130
|
+
referencedColumns: ["id"];
|
|
4131
|
+
},
|
|
4132
|
+
{
|
|
4133
|
+
foreignKeyName: "risk_recommendations_lifecycle_changed_by_fkey";
|
|
4134
|
+
columns: ["lifecycle_changed_by"];
|
|
4135
|
+
isOneToOne: false;
|
|
4136
|
+
referencedRelation: "users";
|
|
4137
|
+
referencedColumns: ["id"];
|
|
4138
|
+
}
|
|
4139
|
+
];
|
|
4140
|
+
};
|
|
3780
4141
|
segmentations_sam3: {
|
|
3781
4142
|
Row: {
|
|
3782
4143
|
artifact_id: number | null;
|