@elevasis/ui 2.22.0 → 2.24.0
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/app/index.d.ts +2915 -0
- package/dist/app/index.js +5 -4
- package/dist/{chunk-3HEUGBOT.js → chunk-2WZ635SS.js} +2 -2
- package/dist/{chunk-GJ7EIABJ.js → chunk-4NWNS7TX.js} +1 -1
- package/dist/{chunk-LKVBEE63.js → chunk-FUEXGRFR.js} +2 -2
- package/dist/{chunk-6IA2OMAE.js → chunk-HC2KV6BU.js} +9 -0
- package/dist/{chunk-IBUYJXA3.js → chunk-KCJ6VATY.js} +1133 -578
- package/dist/{chunk-WWJ6S2HQ.js → chunk-KLFIJDTD.js} +1 -1
- package/dist/{chunk-COG4ABRI.js → chunk-M2HWJY6O.js} +704 -375
- package/dist/{chunk-LVJGPE6H.js → chunk-MTR6AN2C.js} +3 -12
- package/dist/chunk-OWHQ65EQ.js +211 -0
- package/dist/{chunk-XOTJNW4Q.js → chunk-QIW6OCEI.js} +18 -1
- package/dist/{chunk-B4FHWKEF.js → chunk-QULLZ5PE.js} +193 -10
- package/dist/{chunk-QZJM3RYI.js → chunk-SNHGSCKH.js} +1 -1
- package/dist/{chunk-LVUCBY7X.js → chunk-UDJE54WN.js} +85 -3
- package/dist/{chunk-IOTLB6ND.js → chunk-VGNAV3TH.js} +406 -195
- package/dist/{chunk-BSZRKBAW.js → chunk-YBZT7MJR.js} +3 -3
- package/dist/{chunk-SQ5JGELM.js → chunk-ZDKQNQ4X.js} +19 -1
- package/dist/components/index.d.ts +500 -466
- package/dist/components/index.js +75 -32
- package/dist/components/navigation/index.js +2 -2
- package/dist/features/auth/index.d.ts +472 -389
- package/dist/features/crm/index.d.ts +468 -391
- package/dist/features/crm/index.js +8 -8
- package/dist/features/dashboard/index.js +8 -8
- package/dist/features/delivery/index.d.ts +466 -383
- package/dist/features/delivery/index.js +8 -8
- package/dist/features/lead-gen/index.d.ts +213 -65
- package/dist/features/lead-gen/index.js +9 -8
- package/dist/features/monitoring/index.js +9 -9
- package/dist/features/monitoring/requests/index.js +7 -7
- package/dist/features/operations/index.js +11 -10
- package/dist/features/settings/index.d.ts +472 -389
- package/dist/features/settings/index.js +9 -9
- package/dist/hooks/delivery/index.d.ts +466 -383
- package/dist/hooks/index.d.ts +967 -744
- package/dist/hooks/index.js +7 -7
- package/dist/hooks/published.d.ts +967 -744
- package/dist/hooks/published.js +7 -7
- package/dist/index.d.ts +1360 -1069
- package/dist/index.js +8 -8
- package/dist/initialization/index.d.ts +472 -389
- package/dist/organization/index.d.ts +11 -1
- package/dist/organization/index.js +2 -2
- package/dist/profile/index.d.ts +472 -389
- package/dist/provider/index.d.ts +3132 -169
- package/dist/provider/index.js +6 -6
- package/dist/provider/published.d.ts +3098 -168
- package/dist/provider/published.js +3 -3
- package/dist/supabase/index.d.ts +577 -413
- package/dist/test-utils/index.d.ts +21 -1
- package/dist/test-utils/index.js +13 -4
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.ts +472 -389
- package/package.json +2 -2
- package/src/test-utils/README.md +2 -0
- /package/dist/{chunk-ZBCTB5CA.js → chunk-EIOJNUPL.js} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -595,10 +595,57 @@ type Json = string | number | boolean | null | {
|
|
|
595
595
|
} | Json[];
|
|
596
596
|
type Database = {
|
|
597
597
|
__InternalSupabase: {
|
|
598
|
-
PostgrestVersion:
|
|
598
|
+
PostgrestVersion: '12.2.3 (519615d)';
|
|
599
599
|
};
|
|
600
600
|
public: {
|
|
601
601
|
Tables: {
|
|
602
|
+
acq_artifacts: {
|
|
603
|
+
Row: {
|
|
604
|
+
content: Json;
|
|
605
|
+
created_at: string;
|
|
606
|
+
created_by: string | null;
|
|
607
|
+
id: string;
|
|
608
|
+
kind: string;
|
|
609
|
+
organization_id: string;
|
|
610
|
+
owner_id: string;
|
|
611
|
+
owner_kind: string;
|
|
612
|
+
source_execution_id: string | null;
|
|
613
|
+
version: number;
|
|
614
|
+
};
|
|
615
|
+
Insert: {
|
|
616
|
+
content: Json;
|
|
617
|
+
created_at?: string;
|
|
618
|
+
created_by?: string | null;
|
|
619
|
+
id?: string;
|
|
620
|
+
kind: string;
|
|
621
|
+
organization_id: string;
|
|
622
|
+
owner_id: string;
|
|
623
|
+
owner_kind: string;
|
|
624
|
+
source_execution_id?: string | null;
|
|
625
|
+
version?: number;
|
|
626
|
+
};
|
|
627
|
+
Update: {
|
|
628
|
+
content?: Json;
|
|
629
|
+
created_at?: string;
|
|
630
|
+
created_by?: string | null;
|
|
631
|
+
id?: string;
|
|
632
|
+
kind?: string;
|
|
633
|
+
organization_id?: string;
|
|
634
|
+
owner_id?: string;
|
|
635
|
+
owner_kind?: string;
|
|
636
|
+
source_execution_id?: string | null;
|
|
637
|
+
version?: number;
|
|
638
|
+
};
|
|
639
|
+
Relationships: [
|
|
640
|
+
{
|
|
641
|
+
foreignKeyName: 'acq_artifacts_organization_id_fkey';
|
|
642
|
+
columns: ['organization_id'];
|
|
643
|
+
isOneToOne: false;
|
|
644
|
+
referencedRelation: 'organizations';
|
|
645
|
+
referencedColumns: ['id'];
|
|
646
|
+
}
|
|
647
|
+
];
|
|
648
|
+
};
|
|
602
649
|
acq_companies: {
|
|
603
650
|
Row: {
|
|
604
651
|
batch_id: string | null;
|
|
@@ -617,6 +664,9 @@ type Database = {
|
|
|
617
664
|
num_employees: number | null;
|
|
618
665
|
organization_id: string;
|
|
619
666
|
pipeline_status: Json;
|
|
667
|
+
qualification_rubric_key: string | null;
|
|
668
|
+
qualification_score: number | null;
|
|
669
|
+
qualification_signals: Json | null;
|
|
620
670
|
segment: string | null;
|
|
621
671
|
source: string | null;
|
|
622
672
|
status: string;
|
|
@@ -640,6 +690,9 @@ type Database = {
|
|
|
640
690
|
num_employees?: number | null;
|
|
641
691
|
organization_id: string;
|
|
642
692
|
pipeline_status?: Json;
|
|
693
|
+
qualification_rubric_key?: string | null;
|
|
694
|
+
qualification_score?: number | null;
|
|
695
|
+
qualification_signals?: Json | null;
|
|
643
696
|
segment?: string | null;
|
|
644
697
|
source?: string | null;
|
|
645
698
|
status?: string;
|
|
@@ -663,6 +716,9 @@ type Database = {
|
|
|
663
716
|
num_employees?: number | null;
|
|
664
717
|
organization_id?: string;
|
|
665
718
|
pipeline_status?: Json;
|
|
719
|
+
qualification_rubric_key?: string | null;
|
|
720
|
+
qualification_score?: number | null;
|
|
721
|
+
qualification_signals?: Json | null;
|
|
666
722
|
segment?: string | null;
|
|
667
723
|
source?: string | null;
|
|
668
724
|
status?: string;
|
|
@@ -671,11 +727,11 @@ type Database = {
|
|
|
671
727
|
};
|
|
672
728
|
Relationships: [
|
|
673
729
|
{
|
|
674
|
-
foreignKeyName:
|
|
675
|
-
columns: [
|
|
730
|
+
foreignKeyName: 'acq_companies_organization_id_fkey';
|
|
731
|
+
columns: ['organization_id'];
|
|
676
732
|
isOneToOne: false;
|
|
677
|
-
referencedRelation:
|
|
678
|
-
referencedColumns: [
|
|
733
|
+
referencedRelation: 'organizations';
|
|
734
|
+
referencedColumns: ['id'];
|
|
679
735
|
}
|
|
680
736
|
];
|
|
681
737
|
};
|
|
@@ -699,6 +755,9 @@ type Database = {
|
|
|
699
755
|
opening_line: string | null;
|
|
700
756
|
organization_id: string;
|
|
701
757
|
pipeline_status: Json;
|
|
758
|
+
qualification_rubric_key: string | null;
|
|
759
|
+
qualification_score: number | null;
|
|
760
|
+
qualification_signals: Json | null;
|
|
702
761
|
source: string | null;
|
|
703
762
|
source_id: string | null;
|
|
704
763
|
status: string;
|
|
@@ -724,6 +783,9 @@ type Database = {
|
|
|
724
783
|
opening_line?: string | null;
|
|
725
784
|
organization_id: string;
|
|
726
785
|
pipeline_status?: Json;
|
|
786
|
+
qualification_rubric_key?: string | null;
|
|
787
|
+
qualification_score?: number | null;
|
|
788
|
+
qualification_signals?: Json | null;
|
|
727
789
|
source?: string | null;
|
|
728
790
|
source_id?: string | null;
|
|
729
791
|
status?: string;
|
|
@@ -749,6 +811,9 @@ type Database = {
|
|
|
749
811
|
opening_line?: string | null;
|
|
750
812
|
organization_id?: string;
|
|
751
813
|
pipeline_status?: Json;
|
|
814
|
+
qualification_rubric_key?: string | null;
|
|
815
|
+
qualification_score?: number | null;
|
|
816
|
+
qualification_signals?: Json | null;
|
|
752
817
|
source?: string | null;
|
|
753
818
|
source_id?: string | null;
|
|
754
819
|
status?: string;
|
|
@@ -757,18 +822,18 @@ type Database = {
|
|
|
757
822
|
};
|
|
758
823
|
Relationships: [
|
|
759
824
|
{
|
|
760
|
-
foreignKeyName:
|
|
761
|
-
columns: [
|
|
825
|
+
foreignKeyName: 'acq_contacts_company_id_fkey';
|
|
826
|
+
columns: ['company_id'];
|
|
762
827
|
isOneToOne: false;
|
|
763
|
-
referencedRelation:
|
|
764
|
-
referencedColumns: [
|
|
828
|
+
referencedRelation: 'acq_companies';
|
|
829
|
+
referencedColumns: ['id'];
|
|
765
830
|
},
|
|
766
831
|
{
|
|
767
|
-
foreignKeyName:
|
|
768
|
-
columns: [
|
|
832
|
+
foreignKeyName: 'acq_contacts_organization_id_fkey';
|
|
833
|
+
columns: ['organization_id'];
|
|
769
834
|
isOneToOne: false;
|
|
770
|
-
referencedRelation:
|
|
771
|
-
referencedColumns: [
|
|
835
|
+
referencedRelation: 'organizations';
|
|
836
|
+
referencedColumns: ['id'];
|
|
772
837
|
}
|
|
773
838
|
];
|
|
774
839
|
};
|
|
@@ -805,11 +870,11 @@ type Database = {
|
|
|
805
870
|
};
|
|
806
871
|
Relationships: [
|
|
807
872
|
{
|
|
808
|
-
foreignKeyName:
|
|
809
|
-
columns: [
|
|
873
|
+
foreignKeyName: 'acq_content_organization_id_fkey';
|
|
874
|
+
columns: ['organization_id'];
|
|
810
875
|
isOneToOne: false;
|
|
811
|
-
referencedRelation:
|
|
812
|
-
referencedColumns: [
|
|
876
|
+
referencedRelation: 'organizations';
|
|
877
|
+
referencedColumns: ['id'];
|
|
813
878
|
}
|
|
814
879
|
];
|
|
815
880
|
};
|
|
@@ -873,18 +938,18 @@ type Database = {
|
|
|
873
938
|
};
|
|
874
939
|
Relationships: [
|
|
875
940
|
{
|
|
876
|
-
foreignKeyName:
|
|
877
|
-
columns: [
|
|
941
|
+
foreignKeyName: 'acq_content_distributions_content_id_fkey';
|
|
942
|
+
columns: ['content_id'];
|
|
878
943
|
isOneToOne: false;
|
|
879
|
-
referencedRelation:
|
|
880
|
-
referencedColumns: [
|
|
944
|
+
referencedRelation: 'acq_content';
|
|
945
|
+
referencedColumns: ['id'];
|
|
881
946
|
},
|
|
882
947
|
{
|
|
883
|
-
foreignKeyName:
|
|
884
|
-
columns: [
|
|
948
|
+
foreignKeyName: 'acq_content_distributions_organization_id_fkey';
|
|
949
|
+
columns: ['organization_id'];
|
|
885
950
|
isOneToOne: false;
|
|
886
|
-
referencedRelation:
|
|
887
|
-
referencedColumns: [
|
|
951
|
+
referencedRelation: 'organizations';
|
|
952
|
+
referencedColumns: ['id'];
|
|
888
953
|
}
|
|
889
954
|
];
|
|
890
955
|
};
|
|
@@ -918,18 +983,18 @@ type Database = {
|
|
|
918
983
|
};
|
|
919
984
|
Relationships: [
|
|
920
985
|
{
|
|
921
|
-
foreignKeyName:
|
|
922
|
-
columns: [
|
|
986
|
+
foreignKeyName: 'acq_deal_notes_deal_id_fkey';
|
|
987
|
+
columns: ['deal_id'];
|
|
923
988
|
isOneToOne: false;
|
|
924
|
-
referencedRelation:
|
|
925
|
-
referencedColumns: [
|
|
989
|
+
referencedRelation: 'acq_deals';
|
|
990
|
+
referencedColumns: ['id'];
|
|
926
991
|
},
|
|
927
992
|
{
|
|
928
|
-
foreignKeyName:
|
|
929
|
-
columns: [
|
|
993
|
+
foreignKeyName: 'acq_deal_notes_organization_id_fkey';
|
|
994
|
+
columns: ['organization_id'];
|
|
930
995
|
isOneToOne: false;
|
|
931
|
-
referencedRelation:
|
|
932
|
-
referencedColumns: [
|
|
996
|
+
referencedRelation: 'organizations';
|
|
997
|
+
referencedColumns: ['id'];
|
|
933
998
|
}
|
|
934
999
|
];
|
|
935
1000
|
};
|
|
@@ -981,25 +1046,24 @@ type Database = {
|
|
|
981
1046
|
};
|
|
982
1047
|
Relationships: [
|
|
983
1048
|
{
|
|
984
|
-
foreignKeyName:
|
|
985
|
-
columns: [
|
|
1049
|
+
foreignKeyName: 'acq_deal_tasks_deal_id_fkey';
|
|
1050
|
+
columns: ['deal_id'];
|
|
986
1051
|
isOneToOne: false;
|
|
987
|
-
referencedRelation:
|
|
988
|
-
referencedColumns: [
|
|
1052
|
+
referencedRelation: 'acq_deals';
|
|
1053
|
+
referencedColumns: ['id'];
|
|
989
1054
|
},
|
|
990
1055
|
{
|
|
991
|
-
foreignKeyName:
|
|
992
|
-
columns: [
|
|
1056
|
+
foreignKeyName: 'acq_deal_tasks_organization_id_fkey';
|
|
1057
|
+
columns: ['organization_id'];
|
|
993
1058
|
isOneToOne: false;
|
|
994
|
-
referencedRelation:
|
|
995
|
-
referencedColumns: [
|
|
1059
|
+
referencedRelation: 'organizations';
|
|
1060
|
+
referencedColumns: ['id'];
|
|
996
1061
|
}
|
|
997
1062
|
];
|
|
998
1063
|
};
|
|
999
1064
|
acq_deals: {
|
|
1000
1065
|
Row: {
|
|
1001
1066
|
activity_log: Json;
|
|
1002
|
-
cached_stage: string | null;
|
|
1003
1067
|
closed_lost_at: string | null;
|
|
1004
1068
|
closed_lost_reason: string | null;
|
|
1005
1069
|
contact_email: string;
|
|
@@ -1014,6 +1078,7 @@ type Database = {
|
|
|
1014
1078
|
organization_id: string;
|
|
1015
1079
|
payment_link_sent_at: string | null;
|
|
1016
1080
|
payment_received_at: string | null;
|
|
1081
|
+
pipeline_key: string;
|
|
1017
1082
|
proposal_data: Json | null;
|
|
1018
1083
|
proposal_generated_at: string | null;
|
|
1019
1084
|
proposal_pdf_url: string | null;
|
|
@@ -1021,10 +1086,11 @@ type Database = {
|
|
|
1021
1086
|
proposal_reviewed_by: string | null;
|
|
1022
1087
|
proposal_sent_at: string | null;
|
|
1023
1088
|
proposal_signed_at: string | null;
|
|
1024
|
-
proposal_status: string | null;
|
|
1025
1089
|
signature_envelope_id: string | null;
|
|
1026
1090
|
source_list_id: string | null;
|
|
1027
1091
|
source_type: string | null;
|
|
1092
|
+
stage_key: string | null;
|
|
1093
|
+
state_key: string | null;
|
|
1028
1094
|
stripe_payment_id: string | null;
|
|
1029
1095
|
stripe_payment_link: string | null;
|
|
1030
1096
|
stripe_payment_link_id: string | null;
|
|
@@ -1033,7 +1099,6 @@ type Database = {
|
|
|
1033
1099
|
};
|
|
1034
1100
|
Insert: {
|
|
1035
1101
|
activity_log?: Json;
|
|
1036
|
-
cached_stage?: string | null;
|
|
1037
1102
|
closed_lost_at?: string | null;
|
|
1038
1103
|
closed_lost_reason?: string | null;
|
|
1039
1104
|
contact_email: string;
|
|
@@ -1048,6 +1113,7 @@ type Database = {
|
|
|
1048
1113
|
organization_id: string;
|
|
1049
1114
|
payment_link_sent_at?: string | null;
|
|
1050
1115
|
payment_received_at?: string | null;
|
|
1116
|
+
pipeline_key?: string;
|
|
1051
1117
|
proposal_data?: Json | null;
|
|
1052
1118
|
proposal_generated_at?: string | null;
|
|
1053
1119
|
proposal_pdf_url?: string | null;
|
|
@@ -1055,10 +1121,11 @@ type Database = {
|
|
|
1055
1121
|
proposal_reviewed_by?: string | null;
|
|
1056
1122
|
proposal_sent_at?: string | null;
|
|
1057
1123
|
proposal_signed_at?: string | null;
|
|
1058
|
-
proposal_status?: string | null;
|
|
1059
1124
|
signature_envelope_id?: string | null;
|
|
1060
1125
|
source_list_id?: string | null;
|
|
1061
1126
|
source_type?: string | null;
|
|
1127
|
+
stage_key?: string | null;
|
|
1128
|
+
state_key?: string | null;
|
|
1062
1129
|
stripe_payment_id?: string | null;
|
|
1063
1130
|
stripe_payment_link?: string | null;
|
|
1064
1131
|
stripe_payment_link_id?: string | null;
|
|
@@ -1067,7 +1134,6 @@ type Database = {
|
|
|
1067
1134
|
};
|
|
1068
1135
|
Update: {
|
|
1069
1136
|
activity_log?: Json;
|
|
1070
|
-
cached_stage?: string | null;
|
|
1071
1137
|
closed_lost_at?: string | null;
|
|
1072
1138
|
closed_lost_reason?: string | null;
|
|
1073
1139
|
contact_email?: string;
|
|
@@ -1082,6 +1148,7 @@ type Database = {
|
|
|
1082
1148
|
organization_id?: string;
|
|
1083
1149
|
payment_link_sent_at?: string | null;
|
|
1084
1150
|
payment_received_at?: string | null;
|
|
1151
|
+
pipeline_key?: string;
|
|
1085
1152
|
proposal_data?: Json | null;
|
|
1086
1153
|
proposal_generated_at?: string | null;
|
|
1087
1154
|
proposal_pdf_url?: string | null;
|
|
@@ -1089,10 +1156,11 @@ type Database = {
|
|
|
1089
1156
|
proposal_reviewed_by?: string | null;
|
|
1090
1157
|
proposal_sent_at?: string | null;
|
|
1091
1158
|
proposal_signed_at?: string | null;
|
|
1092
|
-
proposal_status?: string | null;
|
|
1093
1159
|
signature_envelope_id?: string | null;
|
|
1094
1160
|
source_list_id?: string | null;
|
|
1095
1161
|
source_type?: string | null;
|
|
1162
|
+
stage_key?: string | null;
|
|
1163
|
+
state_key?: string | null;
|
|
1096
1164
|
stripe_payment_id?: string | null;
|
|
1097
1165
|
stripe_payment_link?: string | null;
|
|
1098
1166
|
stripe_payment_link_id?: string | null;
|
|
@@ -1101,86 +1169,95 @@ type Database = {
|
|
|
1101
1169
|
};
|
|
1102
1170
|
Relationships: [
|
|
1103
1171
|
{
|
|
1104
|
-
foreignKeyName:
|
|
1105
|
-
columns: [
|
|
1172
|
+
foreignKeyName: 'acq_deals_contact_id_fkey';
|
|
1173
|
+
columns: ['contact_id'];
|
|
1106
1174
|
isOneToOne: false;
|
|
1107
|
-
referencedRelation:
|
|
1108
|
-
referencedColumns: [
|
|
1175
|
+
referencedRelation: 'acq_contacts';
|
|
1176
|
+
referencedColumns: ['id'];
|
|
1109
1177
|
},
|
|
1110
1178
|
{
|
|
1111
|
-
foreignKeyName:
|
|
1112
|
-
columns: [
|
|
1179
|
+
foreignKeyName: 'acq_deals_organization_id_fkey';
|
|
1180
|
+
columns: ['organization_id'];
|
|
1113
1181
|
isOneToOne: false;
|
|
1114
|
-
referencedRelation:
|
|
1115
|
-
referencedColumns: [
|
|
1182
|
+
referencedRelation: 'organizations';
|
|
1183
|
+
referencedColumns: ['id'];
|
|
1116
1184
|
},
|
|
1117
1185
|
{
|
|
1118
|
-
foreignKeyName:
|
|
1119
|
-
columns: [
|
|
1186
|
+
foreignKeyName: 'acq_deals_source_list_id_fkey';
|
|
1187
|
+
columns: ['source_list_id'];
|
|
1120
1188
|
isOneToOne: false;
|
|
1121
|
-
referencedRelation:
|
|
1122
|
-
referencedColumns: [
|
|
1189
|
+
referencedRelation: 'acq_lists';
|
|
1190
|
+
referencedColumns: ['id'];
|
|
1123
1191
|
}
|
|
1124
1192
|
];
|
|
1125
1193
|
};
|
|
1126
1194
|
acq_list_companies: {
|
|
1127
1195
|
Row: {
|
|
1196
|
+
activity_log: Json;
|
|
1128
1197
|
added_at: string;
|
|
1129
1198
|
added_by: string | null;
|
|
1130
1199
|
company_id: string;
|
|
1131
1200
|
id: string;
|
|
1132
1201
|
list_id: string;
|
|
1202
|
+
pipeline_key: string;
|
|
1203
|
+
processing_state: Json;
|
|
1133
1204
|
source_execution_id: string | null;
|
|
1134
1205
|
source_input_hash: string | null;
|
|
1135
1206
|
source_resource_id: string | null;
|
|
1136
|
-
|
|
1137
|
-
|
|
1207
|
+
stage_key: string;
|
|
1208
|
+
state_key: string;
|
|
1138
1209
|
};
|
|
1139
1210
|
Insert: {
|
|
1211
|
+
activity_log?: Json;
|
|
1140
1212
|
added_at?: string;
|
|
1141
1213
|
added_by?: string | null;
|
|
1142
1214
|
company_id: string;
|
|
1143
1215
|
id?: string;
|
|
1144
1216
|
list_id: string;
|
|
1217
|
+
pipeline_key?: string;
|
|
1218
|
+
processing_state?: Json;
|
|
1145
1219
|
source_execution_id?: string | null;
|
|
1146
1220
|
source_input_hash?: string | null;
|
|
1147
1221
|
source_resource_id?: string | null;
|
|
1148
|
-
|
|
1149
|
-
|
|
1222
|
+
stage_key: string;
|
|
1223
|
+
state_key: string;
|
|
1150
1224
|
};
|
|
1151
1225
|
Update: {
|
|
1226
|
+
activity_log?: Json;
|
|
1152
1227
|
added_at?: string;
|
|
1153
1228
|
added_by?: string | null;
|
|
1154
1229
|
company_id?: string;
|
|
1155
1230
|
id?: string;
|
|
1156
1231
|
list_id?: string;
|
|
1232
|
+
pipeline_key?: string;
|
|
1233
|
+
processing_state?: Json;
|
|
1157
1234
|
source_execution_id?: string | null;
|
|
1158
1235
|
source_input_hash?: string | null;
|
|
1159
1236
|
source_resource_id?: string | null;
|
|
1160
|
-
|
|
1161
|
-
|
|
1237
|
+
stage_key?: string;
|
|
1238
|
+
state_key?: string;
|
|
1162
1239
|
};
|
|
1163
1240
|
Relationships: [
|
|
1164
1241
|
{
|
|
1165
|
-
foreignKeyName:
|
|
1166
|
-
columns: [
|
|
1242
|
+
foreignKeyName: 'acq_list_companies_company_id_fkey';
|
|
1243
|
+
columns: ['company_id'];
|
|
1167
1244
|
isOneToOne: false;
|
|
1168
|
-
referencedRelation:
|
|
1169
|
-
referencedColumns: [
|
|
1245
|
+
referencedRelation: 'acq_companies';
|
|
1246
|
+
referencedColumns: ['id'];
|
|
1170
1247
|
},
|
|
1171
1248
|
{
|
|
1172
|
-
foreignKeyName:
|
|
1173
|
-
columns: [
|
|
1249
|
+
foreignKeyName: 'acq_list_companies_list_id_fkey';
|
|
1250
|
+
columns: ['list_id'];
|
|
1174
1251
|
isOneToOne: false;
|
|
1175
|
-
referencedRelation:
|
|
1176
|
-
referencedColumns: [
|
|
1252
|
+
referencedRelation: 'acq_lists';
|
|
1253
|
+
referencedColumns: ['id'];
|
|
1177
1254
|
},
|
|
1178
1255
|
{
|
|
1179
|
-
foreignKeyName:
|
|
1180
|
-
columns: [
|
|
1256
|
+
foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
|
|
1257
|
+
columns: ['source_execution_id'];
|
|
1181
1258
|
isOneToOne: false;
|
|
1182
|
-
referencedRelation:
|
|
1183
|
-
referencedColumns: [
|
|
1259
|
+
referencedRelation: 'execution_logs';
|
|
1260
|
+
referencedColumns: ['execution_id'];
|
|
1184
1261
|
}
|
|
1185
1262
|
];
|
|
1186
1263
|
};
|
|
@@ -1208,79 +1285,88 @@ type Database = {
|
|
|
1208
1285
|
};
|
|
1209
1286
|
Relationships: [
|
|
1210
1287
|
{
|
|
1211
|
-
foreignKeyName:
|
|
1212
|
-
columns: [
|
|
1288
|
+
foreignKeyName: 'acq_list_executions_execution_id_fkey';
|
|
1289
|
+
columns: ['execution_id'];
|
|
1213
1290
|
isOneToOne: false;
|
|
1214
|
-
referencedRelation:
|
|
1215
|
-
referencedColumns: [
|
|
1291
|
+
referencedRelation: 'execution_logs';
|
|
1292
|
+
referencedColumns: ['execution_id'];
|
|
1216
1293
|
},
|
|
1217
1294
|
{
|
|
1218
|
-
foreignKeyName:
|
|
1219
|
-
columns: [
|
|
1295
|
+
foreignKeyName: 'acq_list_executions_list_id_fkey';
|
|
1296
|
+
columns: ['list_id'];
|
|
1220
1297
|
isOneToOne: false;
|
|
1221
|
-
referencedRelation:
|
|
1222
|
-
referencedColumns: [
|
|
1298
|
+
referencedRelation: 'acq_lists';
|
|
1299
|
+
referencedColumns: ['id'];
|
|
1223
1300
|
}
|
|
1224
1301
|
];
|
|
1225
1302
|
};
|
|
1226
1303
|
acq_list_members: {
|
|
1227
1304
|
Row: {
|
|
1305
|
+
activity_log: Json;
|
|
1228
1306
|
added_at: string;
|
|
1229
1307
|
added_by: string | null;
|
|
1230
1308
|
contact_id: string;
|
|
1231
1309
|
id: string;
|
|
1232
1310
|
list_id: string;
|
|
1311
|
+
pipeline_key: string;
|
|
1312
|
+
processing_state: Json;
|
|
1233
1313
|
source_execution_id: string | null;
|
|
1234
1314
|
source_input_hash: string | null;
|
|
1235
1315
|
source_resource_id: string | null;
|
|
1236
|
-
|
|
1237
|
-
|
|
1316
|
+
stage_key: string;
|
|
1317
|
+
state_key: string;
|
|
1238
1318
|
};
|
|
1239
1319
|
Insert: {
|
|
1320
|
+
activity_log?: Json;
|
|
1240
1321
|
added_at?: string;
|
|
1241
1322
|
added_by?: string | null;
|
|
1242
1323
|
contact_id: string;
|
|
1243
1324
|
id?: string;
|
|
1244
1325
|
list_id: string;
|
|
1326
|
+
pipeline_key?: string;
|
|
1327
|
+
processing_state?: Json;
|
|
1245
1328
|
source_execution_id?: string | null;
|
|
1246
1329
|
source_input_hash?: string | null;
|
|
1247
1330
|
source_resource_id?: string | null;
|
|
1248
|
-
|
|
1249
|
-
|
|
1331
|
+
stage_key: string;
|
|
1332
|
+
state_key: string;
|
|
1250
1333
|
};
|
|
1251
1334
|
Update: {
|
|
1335
|
+
activity_log?: Json;
|
|
1252
1336
|
added_at?: string;
|
|
1253
1337
|
added_by?: string | null;
|
|
1254
1338
|
contact_id?: string;
|
|
1255
1339
|
id?: string;
|
|
1256
1340
|
list_id?: string;
|
|
1341
|
+
pipeline_key?: string;
|
|
1342
|
+
processing_state?: Json;
|
|
1257
1343
|
source_execution_id?: string | null;
|
|
1258
1344
|
source_input_hash?: string | null;
|
|
1259
1345
|
source_resource_id?: string | null;
|
|
1260
|
-
|
|
1261
|
-
|
|
1346
|
+
stage_key?: string;
|
|
1347
|
+
state_key?: string;
|
|
1262
1348
|
};
|
|
1263
1349
|
Relationships: [
|
|
1264
1350
|
{
|
|
1265
|
-
foreignKeyName:
|
|
1266
|
-
columns: [
|
|
1351
|
+
foreignKeyName: 'acq_list_members_contact_id_fkey';
|
|
1352
|
+
columns: ['contact_id'];
|
|
1267
1353
|
isOneToOne: false;
|
|
1268
|
-
referencedRelation:
|
|
1269
|
-
referencedColumns: [
|
|
1354
|
+
referencedRelation: 'acq_contacts';
|
|
1355
|
+
referencedColumns: ['id'];
|
|
1270
1356
|
},
|
|
1271
1357
|
{
|
|
1272
|
-
foreignKeyName:
|
|
1273
|
-
columns: [
|
|
1358
|
+
foreignKeyName: 'acq_list_members_list_id_fkey';
|
|
1359
|
+
columns: ['list_id'];
|
|
1274
1360
|
isOneToOne: false;
|
|
1275
|
-
referencedRelation:
|
|
1276
|
-
referencedColumns: [
|
|
1361
|
+
referencedRelation: 'acq_lists';
|
|
1362
|
+
referencedColumns: ['id'];
|
|
1277
1363
|
},
|
|
1278
1364
|
{
|
|
1279
|
-
foreignKeyName:
|
|
1280
|
-
columns: [
|
|
1365
|
+
foreignKeyName: 'acq_list_members_source_execution_id_fkey';
|
|
1366
|
+
columns: ['source_execution_id'];
|
|
1281
1367
|
isOneToOne: false;
|
|
1282
|
-
referencedRelation:
|
|
1283
|
-
referencedColumns: [
|
|
1368
|
+
referencedRelation: 'execution_logs';
|
|
1369
|
+
referencedColumns: ['execution_id'];
|
|
1284
1370
|
}
|
|
1285
1371
|
];
|
|
1286
1372
|
};
|
|
@@ -1288,55 +1374,58 @@ type Database = {
|
|
|
1288
1374
|
Row: {
|
|
1289
1375
|
batch_ids: string[];
|
|
1290
1376
|
completed_at: string | null;
|
|
1291
|
-
config: Json;
|
|
1292
1377
|
created_at: string;
|
|
1293
1378
|
description: string | null;
|
|
1379
|
+
icp: Json;
|
|
1294
1380
|
id: string;
|
|
1295
1381
|
instantly_campaign_id: string | null;
|
|
1296
1382
|
launched_at: string | null;
|
|
1297
1383
|
metadata: Json;
|
|
1298
1384
|
name: string;
|
|
1299
1385
|
organization_id: string;
|
|
1386
|
+
pipeline_config: Json;
|
|
1387
|
+
scraping_config: Json;
|
|
1300
1388
|
status: string;
|
|
1301
|
-
type: string;
|
|
1302
1389
|
};
|
|
1303
1390
|
Insert: {
|
|
1304
1391
|
batch_ids?: string[];
|
|
1305
1392
|
completed_at?: string | null;
|
|
1306
|
-
config?: Json;
|
|
1307
1393
|
created_at?: string;
|
|
1308
1394
|
description?: string | null;
|
|
1395
|
+
icp?: Json;
|
|
1309
1396
|
id?: string;
|
|
1310
1397
|
instantly_campaign_id?: string | null;
|
|
1311
1398
|
launched_at?: string | null;
|
|
1312
1399
|
metadata?: Json;
|
|
1313
1400
|
name: string;
|
|
1314
1401
|
organization_id: string;
|
|
1402
|
+
pipeline_config?: Json;
|
|
1403
|
+
scraping_config?: Json;
|
|
1315
1404
|
status?: string;
|
|
1316
|
-
type?: string;
|
|
1317
1405
|
};
|
|
1318
1406
|
Update: {
|
|
1319
1407
|
batch_ids?: string[];
|
|
1320
1408
|
completed_at?: string | null;
|
|
1321
|
-
config?: Json;
|
|
1322
1409
|
created_at?: string;
|
|
1323
1410
|
description?: string | null;
|
|
1411
|
+
icp?: Json;
|
|
1324
1412
|
id?: string;
|
|
1325
1413
|
instantly_campaign_id?: string | null;
|
|
1326
1414
|
launched_at?: string | null;
|
|
1327
1415
|
metadata?: Json;
|
|
1328
1416
|
name?: string;
|
|
1329
1417
|
organization_id?: string;
|
|
1418
|
+
pipeline_config?: Json;
|
|
1419
|
+
scraping_config?: Json;
|
|
1330
1420
|
status?: string;
|
|
1331
|
-
type?: string;
|
|
1332
1421
|
};
|
|
1333
1422
|
Relationships: [
|
|
1334
1423
|
{
|
|
1335
|
-
foreignKeyName:
|
|
1336
|
-
columns: [
|
|
1424
|
+
foreignKeyName: 'acq_lists_organization_id_fkey';
|
|
1425
|
+
columns: ['organization_id'];
|
|
1337
1426
|
isOneToOne: false;
|
|
1338
|
-
referencedRelation:
|
|
1339
|
-
referencedColumns: [
|
|
1427
|
+
referencedRelation: 'organizations';
|
|
1428
|
+
referencedColumns: ['id'];
|
|
1340
1429
|
}
|
|
1341
1430
|
];
|
|
1342
1431
|
};
|
|
@@ -1412,18 +1501,18 @@ type Database = {
|
|
|
1412
1501
|
};
|
|
1413
1502
|
Relationships: [
|
|
1414
1503
|
{
|
|
1415
|
-
foreignKeyName:
|
|
1416
|
-
columns: [
|
|
1504
|
+
foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
|
|
1505
|
+
columns: ['organization_id'];
|
|
1417
1506
|
isOneToOne: false;
|
|
1418
|
-
referencedRelation:
|
|
1419
|
-
referencedColumns: [
|
|
1507
|
+
referencedRelation: 'organizations';
|
|
1508
|
+
referencedColumns: ['id'];
|
|
1420
1509
|
},
|
|
1421
1510
|
{
|
|
1422
|
-
foreignKeyName:
|
|
1423
|
-
columns: [
|
|
1511
|
+
foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
|
|
1512
|
+
columns: ['seo_page_id'];
|
|
1424
1513
|
isOneToOne: false;
|
|
1425
|
-
referencedRelation:
|
|
1426
|
-
referencedColumns: [
|
|
1514
|
+
referencedRelation: 'acq_seo_pages';
|
|
1515
|
+
referencedColumns: ['id'];
|
|
1427
1516
|
}
|
|
1428
1517
|
];
|
|
1429
1518
|
};
|
|
@@ -1499,11 +1588,11 @@ type Database = {
|
|
|
1499
1588
|
};
|
|
1500
1589
|
Relationships: [
|
|
1501
1590
|
{
|
|
1502
|
-
foreignKeyName:
|
|
1503
|
-
columns: [
|
|
1591
|
+
foreignKeyName: 'acq_seo_pages_organization_id_fkey';
|
|
1592
|
+
columns: ['organization_id'];
|
|
1504
1593
|
isOneToOne: false;
|
|
1505
|
-
referencedRelation:
|
|
1506
|
-
referencedColumns: [
|
|
1594
|
+
referencedRelation: 'organizations';
|
|
1595
|
+
referencedColumns: ['id'];
|
|
1507
1596
|
}
|
|
1508
1597
|
];
|
|
1509
1598
|
};
|
|
@@ -1600,11 +1689,11 @@ type Database = {
|
|
|
1600
1689
|
};
|
|
1601
1690
|
Relationships: [
|
|
1602
1691
|
{
|
|
1603
|
-
foreignKeyName:
|
|
1604
|
-
columns: [
|
|
1692
|
+
foreignKeyName: 'acq_social_posts_organization_id_fkey';
|
|
1693
|
+
columns: ['organization_id'];
|
|
1605
1694
|
isOneToOne: false;
|
|
1606
|
-
referencedRelation:
|
|
1607
|
-
referencedColumns: [
|
|
1695
|
+
referencedRelation: 'organizations';
|
|
1696
|
+
referencedColumns: ['id'];
|
|
1608
1697
|
}
|
|
1609
1698
|
];
|
|
1610
1699
|
};
|
|
@@ -1659,11 +1748,11 @@ type Database = {
|
|
|
1659
1748
|
};
|
|
1660
1749
|
Relationships: [
|
|
1661
1750
|
{
|
|
1662
|
-
foreignKeyName:
|
|
1663
|
-
columns: [
|
|
1751
|
+
foreignKeyName: 'activities_organization_id_fkey';
|
|
1752
|
+
columns: ['organization_id'];
|
|
1664
1753
|
isOneToOne: false;
|
|
1665
|
-
referencedRelation:
|
|
1666
|
-
referencedColumns: [
|
|
1754
|
+
referencedRelation: 'organizations';
|
|
1755
|
+
referencedColumns: ['id'];
|
|
1667
1756
|
}
|
|
1668
1757
|
];
|
|
1669
1758
|
};
|
|
@@ -1694,11 +1783,11 @@ type Database = {
|
|
|
1694
1783
|
};
|
|
1695
1784
|
Relationships: [
|
|
1696
1785
|
{
|
|
1697
|
-
foreignKeyName:
|
|
1698
|
-
columns: [
|
|
1786
|
+
foreignKeyName: 'api_keys_organization_id_fkey';
|
|
1787
|
+
columns: ['organization_id'];
|
|
1699
1788
|
isOneToOne: false;
|
|
1700
|
-
referencedRelation:
|
|
1701
|
-
referencedColumns: [
|
|
1789
|
+
referencedRelation: 'organizations';
|
|
1790
|
+
referencedColumns: ['id'];
|
|
1702
1791
|
}
|
|
1703
1792
|
];
|
|
1704
1793
|
};
|
|
@@ -1777,25 +1866,25 @@ type Database = {
|
|
|
1777
1866
|
};
|
|
1778
1867
|
Relationships: [
|
|
1779
1868
|
{
|
|
1780
|
-
foreignKeyName:
|
|
1781
|
-
columns: [
|
|
1869
|
+
foreignKeyName: 'command_queue_completed_by_fkey';
|
|
1870
|
+
columns: ['completed_by'];
|
|
1782
1871
|
isOneToOne: false;
|
|
1783
|
-
referencedRelation:
|
|
1784
|
-
referencedColumns: [
|
|
1872
|
+
referencedRelation: 'users';
|
|
1873
|
+
referencedColumns: ['id'];
|
|
1785
1874
|
},
|
|
1786
1875
|
{
|
|
1787
|
-
foreignKeyName:
|
|
1788
|
-
columns: [
|
|
1876
|
+
foreignKeyName: 'command_queue_organization_id_fkey';
|
|
1877
|
+
columns: ['organization_id'];
|
|
1789
1878
|
isOneToOne: false;
|
|
1790
|
-
referencedRelation:
|
|
1791
|
-
referencedColumns: [
|
|
1879
|
+
referencedRelation: 'organizations';
|
|
1880
|
+
referencedColumns: ['id'];
|
|
1792
1881
|
},
|
|
1793
1882
|
{
|
|
1794
|
-
foreignKeyName:
|
|
1795
|
-
columns: [
|
|
1883
|
+
foreignKeyName: 'command_queue_target_execution_id_fkey';
|
|
1884
|
+
columns: ['target_execution_id'];
|
|
1796
1885
|
isOneToOne: false;
|
|
1797
|
-
referencedRelation:
|
|
1798
|
-
referencedColumns: [
|
|
1886
|
+
referencedRelation: 'execution_logs';
|
|
1887
|
+
referencedColumns: ['execution_id'];
|
|
1799
1888
|
}
|
|
1800
1889
|
];
|
|
1801
1890
|
};
|
|
@@ -1835,18 +1924,18 @@ type Database = {
|
|
|
1835
1924
|
};
|
|
1836
1925
|
Relationships: [
|
|
1837
1926
|
{
|
|
1838
|
-
foreignKeyName:
|
|
1839
|
-
columns: [
|
|
1927
|
+
foreignKeyName: 'credentials_created_by_fkey';
|
|
1928
|
+
columns: ['created_by'];
|
|
1840
1929
|
isOneToOne: false;
|
|
1841
|
-
referencedRelation:
|
|
1842
|
-
referencedColumns: [
|
|
1930
|
+
referencedRelation: 'users';
|
|
1931
|
+
referencedColumns: ['id'];
|
|
1843
1932
|
},
|
|
1844
1933
|
{
|
|
1845
|
-
foreignKeyName:
|
|
1846
|
-
columns: [
|
|
1934
|
+
foreignKeyName: 'credentials_organization_id_fkey';
|
|
1935
|
+
columns: ['organization_id'];
|
|
1847
1936
|
isOneToOne: false;
|
|
1848
|
-
referencedRelation:
|
|
1849
|
-
referencedColumns: [
|
|
1937
|
+
referencedRelation: 'organizations';
|
|
1938
|
+
referencedColumns: ['id'];
|
|
1850
1939
|
}
|
|
1851
1940
|
];
|
|
1852
1941
|
};
|
|
@@ -1892,11 +1981,11 @@ type Database = {
|
|
|
1892
1981
|
};
|
|
1893
1982
|
Relationships: [
|
|
1894
1983
|
{
|
|
1895
|
-
foreignKeyName:
|
|
1896
|
-
columns: [
|
|
1984
|
+
foreignKeyName: 'deployments_organization_id_fkey';
|
|
1985
|
+
columns: ['organization_id'];
|
|
1897
1986
|
isOneToOne: false;
|
|
1898
|
-
referencedRelation:
|
|
1899
|
-
referencedColumns: [
|
|
1987
|
+
referencedRelation: 'organizations';
|
|
1988
|
+
referencedColumns: ['id'];
|
|
1900
1989
|
}
|
|
1901
1990
|
];
|
|
1902
1991
|
};
|
|
@@ -1951,25 +2040,25 @@ type Database = {
|
|
|
1951
2040
|
};
|
|
1952
2041
|
Relationships: [
|
|
1953
2042
|
{
|
|
1954
|
-
foreignKeyName:
|
|
1955
|
-
columns: [
|
|
2043
|
+
foreignKeyName: 'execution_errors_execution_id_fkey';
|
|
2044
|
+
columns: ['execution_id'];
|
|
1956
2045
|
isOneToOne: false;
|
|
1957
|
-
referencedRelation:
|
|
1958
|
-
referencedColumns: [
|
|
2046
|
+
referencedRelation: 'execution_logs';
|
|
2047
|
+
referencedColumns: ['execution_id'];
|
|
1959
2048
|
},
|
|
1960
2049
|
{
|
|
1961
|
-
foreignKeyName:
|
|
1962
|
-
columns: [
|
|
2050
|
+
foreignKeyName: 'execution_errors_organization_id_fkey';
|
|
2051
|
+
columns: ['organization_id'];
|
|
1963
2052
|
isOneToOne: false;
|
|
1964
|
-
referencedRelation:
|
|
1965
|
-
referencedColumns: [
|
|
2053
|
+
referencedRelation: 'organizations';
|
|
2054
|
+
referencedColumns: ['id'];
|
|
1966
2055
|
},
|
|
1967
2056
|
{
|
|
1968
|
-
foreignKeyName:
|
|
1969
|
-
columns: [
|
|
2057
|
+
foreignKeyName: 'execution_errors_resolved_by_fkey';
|
|
2058
|
+
columns: ['resolved_by'];
|
|
1970
2059
|
isOneToOne: false;
|
|
1971
|
-
referencedRelation:
|
|
1972
|
-
referencedColumns: [
|
|
2060
|
+
referencedRelation: 'users';
|
|
2061
|
+
referencedColumns: ['id'];
|
|
1973
2062
|
}
|
|
1974
2063
|
];
|
|
1975
2064
|
};
|
|
@@ -2051,32 +2140,32 @@ type Database = {
|
|
|
2051
2140
|
};
|
|
2052
2141
|
Relationships: [
|
|
2053
2142
|
{
|
|
2054
|
-
foreignKeyName:
|
|
2055
|
-
columns: [
|
|
2143
|
+
foreignKeyName: 'execution_history_organization_id_fkey';
|
|
2144
|
+
columns: ['organization_id'];
|
|
2056
2145
|
isOneToOne: false;
|
|
2057
|
-
referencedRelation:
|
|
2058
|
-
referencedColumns: [
|
|
2146
|
+
referencedRelation: 'organizations';
|
|
2147
|
+
referencedColumns: ['id'];
|
|
2059
2148
|
},
|
|
2060
2149
|
{
|
|
2061
|
-
foreignKeyName:
|
|
2062
|
-
columns: [
|
|
2150
|
+
foreignKeyName: 'execution_logs_origin_execution_id_fkey';
|
|
2151
|
+
columns: ['origin_execution_id'];
|
|
2063
2152
|
isOneToOne: false;
|
|
2064
|
-
referencedRelation:
|
|
2065
|
-
referencedColumns: [
|
|
2153
|
+
referencedRelation: 'execution_logs';
|
|
2154
|
+
referencedColumns: ['execution_id'];
|
|
2066
2155
|
},
|
|
2067
2156
|
{
|
|
2068
|
-
foreignKeyName:
|
|
2069
|
-
columns: [
|
|
2157
|
+
foreignKeyName: 'execution_logs_session_id_fkey';
|
|
2158
|
+
columns: ['session_id'];
|
|
2070
2159
|
isOneToOne: false;
|
|
2071
|
-
referencedRelation:
|
|
2072
|
-
referencedColumns: [
|
|
2160
|
+
referencedRelation: 'sessions';
|
|
2161
|
+
referencedColumns: ['session_id'];
|
|
2073
2162
|
},
|
|
2074
2163
|
{
|
|
2075
|
-
foreignKeyName:
|
|
2076
|
-
columns: [
|
|
2164
|
+
foreignKeyName: 'execution_logs_user_id_fkey';
|
|
2165
|
+
columns: ['user_id'];
|
|
2077
2166
|
isOneToOne: false;
|
|
2078
|
-
referencedRelation:
|
|
2079
|
-
referencedColumns: [
|
|
2167
|
+
referencedRelation: 'users';
|
|
2168
|
+
referencedColumns: ['id'];
|
|
2080
2169
|
}
|
|
2081
2170
|
];
|
|
2082
2171
|
};
|
|
@@ -2122,18 +2211,18 @@ type Database = {
|
|
|
2122
2211
|
};
|
|
2123
2212
|
Relationships: [
|
|
2124
2213
|
{
|
|
2125
|
-
foreignKeyName:
|
|
2126
|
-
columns: [
|
|
2214
|
+
foreignKeyName: 'execution_metrics_execution_id_fkey';
|
|
2215
|
+
columns: ['execution_id'];
|
|
2127
2216
|
isOneToOne: true;
|
|
2128
|
-
referencedRelation:
|
|
2129
|
-
referencedColumns: [
|
|
2217
|
+
referencedRelation: 'execution_logs';
|
|
2218
|
+
referencedColumns: ['execution_id'];
|
|
2130
2219
|
},
|
|
2131
2220
|
{
|
|
2132
|
-
foreignKeyName:
|
|
2133
|
-
columns: [
|
|
2221
|
+
foreignKeyName: 'execution_metrics_organization_id_fkey';
|
|
2222
|
+
columns: ['organization_id'];
|
|
2134
2223
|
isOneToOne: false;
|
|
2135
|
-
referencedRelation:
|
|
2136
|
-
referencedColumns: [
|
|
2224
|
+
referencedRelation: 'organizations';
|
|
2225
|
+
referencedColumns: ['id'];
|
|
2137
2226
|
}
|
|
2138
2227
|
];
|
|
2139
2228
|
};
|
|
@@ -2176,18 +2265,18 @@ type Database = {
|
|
|
2176
2265
|
};
|
|
2177
2266
|
Relationships: [
|
|
2178
2267
|
{
|
|
2179
|
-
foreignKeyName:
|
|
2180
|
-
columns: [
|
|
2268
|
+
foreignKeyName: 'notifications_organization_id_fkey';
|
|
2269
|
+
columns: ['organization_id'];
|
|
2181
2270
|
isOneToOne: false;
|
|
2182
|
-
referencedRelation:
|
|
2183
|
-
referencedColumns: [
|
|
2271
|
+
referencedRelation: 'organizations';
|
|
2272
|
+
referencedColumns: ['id'];
|
|
2184
2273
|
},
|
|
2185
2274
|
{
|
|
2186
|
-
foreignKeyName:
|
|
2187
|
-
columns: [
|
|
2275
|
+
foreignKeyName: 'notifications_user_id_fkey';
|
|
2276
|
+
columns: ['user_id'];
|
|
2188
2277
|
isOneToOne: false;
|
|
2189
|
-
referencedRelation:
|
|
2190
|
-
referencedColumns: [
|
|
2278
|
+
referencedRelation: 'users';
|
|
2279
|
+
referencedColumns: ['id'];
|
|
2191
2280
|
}
|
|
2192
2281
|
];
|
|
2193
2282
|
};
|
|
@@ -2242,18 +2331,18 @@ type Database = {
|
|
|
2242
2331
|
};
|
|
2243
2332
|
Relationships: [
|
|
2244
2333
|
{
|
|
2245
|
-
foreignKeyName:
|
|
2246
|
-
columns: [
|
|
2334
|
+
foreignKeyName: 'org_invitations_inviter_user_id_fkey';
|
|
2335
|
+
columns: ['inviter_user_id'];
|
|
2247
2336
|
isOneToOne: false;
|
|
2248
|
-
referencedRelation:
|
|
2249
|
-
referencedColumns: [
|
|
2337
|
+
referencedRelation: 'users';
|
|
2338
|
+
referencedColumns: ['id'];
|
|
2250
2339
|
},
|
|
2251
2340
|
{
|
|
2252
|
-
foreignKeyName:
|
|
2253
|
-
columns: [
|
|
2341
|
+
foreignKeyName: 'org_invitations_organization_id_fkey';
|
|
2342
|
+
columns: ['organization_id'];
|
|
2254
2343
|
isOneToOne: false;
|
|
2255
|
-
referencedRelation:
|
|
2256
|
-
referencedColumns: [
|
|
2344
|
+
referencedRelation: 'organizations';
|
|
2345
|
+
referencedColumns: ['id'];
|
|
2257
2346
|
}
|
|
2258
2347
|
];
|
|
2259
2348
|
};
|
|
@@ -2296,18 +2385,18 @@ type Database = {
|
|
|
2296
2385
|
};
|
|
2297
2386
|
Relationships: [
|
|
2298
2387
|
{
|
|
2299
|
-
foreignKeyName:
|
|
2300
|
-
columns: [
|
|
2388
|
+
foreignKeyName: 'org_memberships_organization_id_fkey';
|
|
2389
|
+
columns: ['organization_id'];
|
|
2301
2390
|
isOneToOne: false;
|
|
2302
|
-
referencedRelation:
|
|
2303
|
-
referencedColumns: [
|
|
2391
|
+
referencedRelation: 'organizations';
|
|
2392
|
+
referencedColumns: ['id'];
|
|
2304
2393
|
},
|
|
2305
2394
|
{
|
|
2306
|
-
foreignKeyName:
|
|
2307
|
-
columns: [
|
|
2395
|
+
foreignKeyName: 'org_memberships_user_id_fkey';
|
|
2396
|
+
columns: ['user_id'];
|
|
2308
2397
|
isOneToOne: false;
|
|
2309
|
-
referencedRelation:
|
|
2310
|
-
referencedColumns: [
|
|
2398
|
+
referencedRelation: 'users';
|
|
2399
|
+
referencedColumns: ['id'];
|
|
2311
2400
|
}
|
|
2312
2401
|
];
|
|
2313
2402
|
};
|
|
@@ -2332,25 +2421,25 @@ type Database = {
|
|
|
2332
2421
|
};
|
|
2333
2422
|
Relationships: [
|
|
2334
2423
|
{
|
|
2335
|
-
foreignKeyName:
|
|
2336
|
-
columns: [
|
|
2424
|
+
foreignKeyName: 'org_rol_assignments_granted_by_fkey';
|
|
2425
|
+
columns: ['granted_by'];
|
|
2337
2426
|
isOneToOne: false;
|
|
2338
|
-
referencedRelation:
|
|
2339
|
-
referencedColumns: [
|
|
2427
|
+
referencedRelation: 'users';
|
|
2428
|
+
referencedColumns: ['id'];
|
|
2340
2429
|
},
|
|
2341
2430
|
{
|
|
2342
|
-
foreignKeyName:
|
|
2343
|
-
columns: [
|
|
2431
|
+
foreignKeyName: 'org_rol_assignments_membership_id_fkey';
|
|
2432
|
+
columns: ['membership_id'];
|
|
2344
2433
|
isOneToOne: false;
|
|
2345
|
-
referencedRelation:
|
|
2346
|
-
referencedColumns: [
|
|
2434
|
+
referencedRelation: 'org_memberships';
|
|
2435
|
+
referencedColumns: ['id'];
|
|
2347
2436
|
},
|
|
2348
2437
|
{
|
|
2349
|
-
foreignKeyName:
|
|
2350
|
-
columns: [
|
|
2438
|
+
foreignKeyName: 'org_rol_assignments_role_id_fkey';
|
|
2439
|
+
columns: ['role_id'];
|
|
2351
2440
|
isOneToOne: false;
|
|
2352
|
-
referencedRelation:
|
|
2353
|
-
referencedColumns: [
|
|
2441
|
+
referencedRelation: 'org_rol_definitions';
|
|
2442
|
+
referencedColumns: ['id'];
|
|
2354
2443
|
}
|
|
2355
2444
|
];
|
|
2356
2445
|
};
|
|
@@ -2387,11 +2476,11 @@ type Database = {
|
|
|
2387
2476
|
};
|
|
2388
2477
|
Relationships: [
|
|
2389
2478
|
{
|
|
2390
|
-
foreignKeyName:
|
|
2391
|
-
columns: [
|
|
2479
|
+
foreignKeyName: 'org_rol_definitions_organization_id_fkey';
|
|
2480
|
+
columns: ['organization_id'];
|
|
2392
2481
|
isOneToOne: false;
|
|
2393
|
-
referencedRelation:
|
|
2394
|
-
referencedColumns: [
|
|
2482
|
+
referencedRelation: 'organizations';
|
|
2483
|
+
referencedColumns: ['id'];
|
|
2395
2484
|
}
|
|
2396
2485
|
];
|
|
2397
2486
|
};
|
|
@@ -2413,18 +2502,18 @@ type Database = {
|
|
|
2413
2502
|
};
|
|
2414
2503
|
Relationships: [
|
|
2415
2504
|
{
|
|
2416
|
-
foreignKeyName:
|
|
2417
|
-
columns: [
|
|
2505
|
+
foreignKeyName: 'org_rol_grants_permission_key_fkey';
|
|
2506
|
+
columns: ['permission_key'];
|
|
2418
2507
|
isOneToOne: false;
|
|
2419
|
-
referencedRelation:
|
|
2420
|
-
referencedColumns: [
|
|
2508
|
+
referencedRelation: 'org_rol_permissions';
|
|
2509
|
+
referencedColumns: ['key'];
|
|
2421
2510
|
},
|
|
2422
2511
|
{
|
|
2423
|
-
foreignKeyName:
|
|
2424
|
-
columns: [
|
|
2512
|
+
foreignKeyName: 'org_rol_grants_role_id_fkey';
|
|
2513
|
+
columns: ['role_id'];
|
|
2425
2514
|
isOneToOne: false;
|
|
2426
|
-
referencedRelation:
|
|
2427
|
-
referencedColumns: [
|
|
2515
|
+
referencedRelation: 'org_rol_definitions';
|
|
2516
|
+
referencedColumns: ['id'];
|
|
2428
2517
|
}
|
|
2429
2518
|
];
|
|
2430
2519
|
};
|
|
@@ -2536,25 +2625,25 @@ type Database = {
|
|
|
2536
2625
|
};
|
|
2537
2626
|
Relationships: [
|
|
2538
2627
|
{
|
|
2539
|
-
foreignKeyName:
|
|
2540
|
-
columns: [
|
|
2628
|
+
foreignKeyName: 'fk_milestones_project';
|
|
2629
|
+
columns: ['project_id'];
|
|
2541
2630
|
isOneToOne: false;
|
|
2542
|
-
referencedRelation:
|
|
2543
|
-
referencedColumns: [
|
|
2631
|
+
referencedRelation: 'prj_projects';
|
|
2632
|
+
referencedColumns: ['id'];
|
|
2544
2633
|
},
|
|
2545
2634
|
{
|
|
2546
|
-
foreignKeyName:
|
|
2547
|
-
columns: [
|
|
2635
|
+
foreignKeyName: 'prj_milestones_organization_id_fkey';
|
|
2636
|
+
columns: ['organization_id'];
|
|
2548
2637
|
isOneToOne: false;
|
|
2549
|
-
referencedRelation:
|
|
2550
|
-
referencedColumns: [
|
|
2638
|
+
referencedRelation: 'organizations';
|
|
2639
|
+
referencedColumns: ['id'];
|
|
2551
2640
|
},
|
|
2552
2641
|
{
|
|
2553
|
-
foreignKeyName:
|
|
2554
|
-
columns: [
|
|
2642
|
+
foreignKeyName: 'prj_milestones_project_id_fkey';
|
|
2643
|
+
columns: ['project_id'];
|
|
2555
2644
|
isOneToOne: false;
|
|
2556
|
-
referencedRelation:
|
|
2557
|
-
referencedColumns: [
|
|
2645
|
+
referencedRelation: 'prj_projects';
|
|
2646
|
+
referencedColumns: ['id'];
|
|
2558
2647
|
}
|
|
2559
2648
|
];
|
|
2560
2649
|
};
|
|
@@ -2603,67 +2692,67 @@ type Database = {
|
|
|
2603
2692
|
};
|
|
2604
2693
|
Relationships: [
|
|
2605
2694
|
{
|
|
2606
|
-
foreignKeyName:
|
|
2607
|
-
columns: [
|
|
2695
|
+
foreignKeyName: 'fk_notes_created_by';
|
|
2696
|
+
columns: ['created_by'];
|
|
2608
2697
|
isOneToOne: false;
|
|
2609
|
-
referencedRelation:
|
|
2610
|
-
referencedColumns: [
|
|
2698
|
+
referencedRelation: 'users';
|
|
2699
|
+
referencedColumns: ['id'];
|
|
2611
2700
|
},
|
|
2612
2701
|
{
|
|
2613
|
-
foreignKeyName:
|
|
2614
|
-
columns: [
|
|
2702
|
+
foreignKeyName: 'fk_notes_milestone';
|
|
2703
|
+
columns: ['milestone_id'];
|
|
2615
2704
|
isOneToOne: false;
|
|
2616
|
-
referencedRelation:
|
|
2617
|
-
referencedColumns: [
|
|
2705
|
+
referencedRelation: 'prj_milestones';
|
|
2706
|
+
referencedColumns: ['id'];
|
|
2618
2707
|
},
|
|
2619
2708
|
{
|
|
2620
|
-
foreignKeyName:
|
|
2621
|
-
columns: [
|
|
2709
|
+
foreignKeyName: 'fk_notes_project';
|
|
2710
|
+
columns: ['project_id'];
|
|
2622
2711
|
isOneToOne: false;
|
|
2623
|
-
referencedRelation:
|
|
2624
|
-
referencedColumns: [
|
|
2712
|
+
referencedRelation: 'prj_projects';
|
|
2713
|
+
referencedColumns: ['id'];
|
|
2625
2714
|
},
|
|
2626
2715
|
{
|
|
2627
|
-
foreignKeyName:
|
|
2628
|
-
columns: [
|
|
2716
|
+
foreignKeyName: 'fk_notes_task';
|
|
2717
|
+
columns: ['task_id'];
|
|
2629
2718
|
isOneToOne: false;
|
|
2630
|
-
referencedRelation:
|
|
2631
|
-
referencedColumns: [
|
|
2719
|
+
referencedRelation: 'prj_tasks';
|
|
2720
|
+
referencedColumns: ['id'];
|
|
2632
2721
|
},
|
|
2633
2722
|
{
|
|
2634
|
-
foreignKeyName:
|
|
2635
|
-
columns: [
|
|
2723
|
+
foreignKeyName: 'prj_notes_created_by_fkey';
|
|
2724
|
+
columns: ['created_by'];
|
|
2636
2725
|
isOneToOne: false;
|
|
2637
|
-
referencedRelation:
|
|
2638
|
-
referencedColumns: [
|
|
2726
|
+
referencedRelation: 'users';
|
|
2727
|
+
referencedColumns: ['id'];
|
|
2639
2728
|
},
|
|
2640
2729
|
{
|
|
2641
|
-
foreignKeyName:
|
|
2642
|
-
columns: [
|
|
2730
|
+
foreignKeyName: 'prj_notes_milestone_id_fkey';
|
|
2731
|
+
columns: ['milestone_id'];
|
|
2643
2732
|
isOneToOne: false;
|
|
2644
|
-
referencedRelation:
|
|
2645
|
-
referencedColumns: [
|
|
2733
|
+
referencedRelation: 'prj_milestones';
|
|
2734
|
+
referencedColumns: ['id'];
|
|
2646
2735
|
},
|
|
2647
2736
|
{
|
|
2648
|
-
foreignKeyName:
|
|
2649
|
-
columns: [
|
|
2737
|
+
foreignKeyName: 'prj_notes_organization_id_fkey';
|
|
2738
|
+
columns: ['organization_id'];
|
|
2650
2739
|
isOneToOne: false;
|
|
2651
|
-
referencedRelation:
|
|
2652
|
-
referencedColumns: [
|
|
2740
|
+
referencedRelation: 'organizations';
|
|
2741
|
+
referencedColumns: ['id'];
|
|
2653
2742
|
},
|
|
2654
2743
|
{
|
|
2655
|
-
foreignKeyName:
|
|
2656
|
-
columns: [
|
|
2744
|
+
foreignKeyName: 'prj_notes_project_id_fkey';
|
|
2745
|
+
columns: ['project_id'];
|
|
2657
2746
|
isOneToOne: false;
|
|
2658
|
-
referencedRelation:
|
|
2659
|
-
referencedColumns: [
|
|
2747
|
+
referencedRelation: 'prj_projects';
|
|
2748
|
+
referencedColumns: ['id'];
|
|
2660
2749
|
},
|
|
2661
2750
|
{
|
|
2662
|
-
foreignKeyName:
|
|
2663
|
-
columns: [
|
|
2751
|
+
foreignKeyName: 'prj_notes_task_id_fkey';
|
|
2752
|
+
columns: ['task_id'];
|
|
2664
2753
|
isOneToOne: false;
|
|
2665
|
-
referencedRelation:
|
|
2666
|
-
referencedColumns: [
|
|
2754
|
+
referencedRelation: 'prj_tasks';
|
|
2755
|
+
referencedColumns: ['id'];
|
|
2667
2756
|
}
|
|
2668
2757
|
];
|
|
2669
2758
|
};
|
|
@@ -2721,39 +2810,39 @@ type Database = {
|
|
|
2721
2810
|
};
|
|
2722
2811
|
Relationships: [
|
|
2723
2812
|
{
|
|
2724
|
-
foreignKeyName:
|
|
2725
|
-
columns: [
|
|
2813
|
+
foreignKeyName: 'fk_projects_company';
|
|
2814
|
+
columns: ['client_company_id'];
|
|
2726
2815
|
isOneToOne: false;
|
|
2727
|
-
referencedRelation:
|
|
2728
|
-
referencedColumns: [
|
|
2816
|
+
referencedRelation: 'acq_companies';
|
|
2817
|
+
referencedColumns: ['id'];
|
|
2729
2818
|
},
|
|
2730
2819
|
{
|
|
2731
|
-
foreignKeyName:
|
|
2732
|
-
columns: [
|
|
2820
|
+
foreignKeyName: 'fk_projects_deal';
|
|
2821
|
+
columns: ['deal_id'];
|
|
2733
2822
|
isOneToOne: false;
|
|
2734
|
-
referencedRelation:
|
|
2735
|
-
referencedColumns: [
|
|
2823
|
+
referencedRelation: 'acq_deals';
|
|
2824
|
+
referencedColumns: ['id'];
|
|
2736
2825
|
},
|
|
2737
2826
|
{
|
|
2738
|
-
foreignKeyName:
|
|
2739
|
-
columns: [
|
|
2827
|
+
foreignKeyName: 'prj_projects_client_company_id_fkey';
|
|
2828
|
+
columns: ['client_company_id'];
|
|
2740
2829
|
isOneToOne: false;
|
|
2741
|
-
referencedRelation:
|
|
2742
|
-
referencedColumns: [
|
|
2830
|
+
referencedRelation: 'acq_companies';
|
|
2831
|
+
referencedColumns: ['id'];
|
|
2743
2832
|
},
|
|
2744
2833
|
{
|
|
2745
|
-
foreignKeyName:
|
|
2746
|
-
columns: [
|
|
2834
|
+
foreignKeyName: 'prj_projects_deal_id_fkey';
|
|
2835
|
+
columns: ['deal_id'];
|
|
2747
2836
|
isOneToOne: false;
|
|
2748
|
-
referencedRelation:
|
|
2749
|
-
referencedColumns: [
|
|
2837
|
+
referencedRelation: 'acq_deals';
|
|
2838
|
+
referencedColumns: ['id'];
|
|
2750
2839
|
},
|
|
2751
2840
|
{
|
|
2752
|
-
foreignKeyName:
|
|
2753
|
-
columns: [
|
|
2841
|
+
foreignKeyName: 'prj_projects_organization_id_fkey';
|
|
2842
|
+
columns: ['organization_id'];
|
|
2754
2843
|
isOneToOne: false;
|
|
2755
|
-
referencedRelation:
|
|
2756
|
-
referencedColumns: [
|
|
2844
|
+
referencedRelation: 'organizations';
|
|
2845
|
+
referencedColumns: ['id'];
|
|
2757
2846
|
}
|
|
2758
2847
|
];
|
|
2759
2848
|
};
|
|
@@ -2817,53 +2906,53 @@ type Database = {
|
|
|
2817
2906
|
};
|
|
2818
2907
|
Relationships: [
|
|
2819
2908
|
{
|
|
2820
|
-
foreignKeyName:
|
|
2821
|
-
columns: [
|
|
2909
|
+
foreignKeyName: 'fk_tasks_milestone';
|
|
2910
|
+
columns: ['milestone_id'];
|
|
2822
2911
|
isOneToOne: false;
|
|
2823
|
-
referencedRelation:
|
|
2824
|
-
referencedColumns: [
|
|
2912
|
+
referencedRelation: 'prj_milestones';
|
|
2913
|
+
referencedColumns: ['id'];
|
|
2825
2914
|
},
|
|
2826
2915
|
{
|
|
2827
|
-
foreignKeyName:
|
|
2828
|
-
columns: [
|
|
2916
|
+
foreignKeyName: 'fk_tasks_parent';
|
|
2917
|
+
columns: ['parent_task_id'];
|
|
2829
2918
|
isOneToOne: false;
|
|
2830
|
-
referencedRelation:
|
|
2831
|
-
referencedColumns: [
|
|
2919
|
+
referencedRelation: 'prj_tasks';
|
|
2920
|
+
referencedColumns: ['id'];
|
|
2832
2921
|
},
|
|
2833
2922
|
{
|
|
2834
|
-
foreignKeyName:
|
|
2835
|
-
columns: [
|
|
2923
|
+
foreignKeyName: 'fk_tasks_project';
|
|
2924
|
+
columns: ['project_id'];
|
|
2836
2925
|
isOneToOne: false;
|
|
2837
|
-
referencedRelation:
|
|
2838
|
-
referencedColumns: [
|
|
2926
|
+
referencedRelation: 'prj_projects';
|
|
2927
|
+
referencedColumns: ['id'];
|
|
2839
2928
|
},
|
|
2840
2929
|
{
|
|
2841
|
-
foreignKeyName:
|
|
2842
|
-
columns: [
|
|
2930
|
+
foreignKeyName: 'prj_tasks_milestone_id_fkey';
|
|
2931
|
+
columns: ['milestone_id'];
|
|
2843
2932
|
isOneToOne: false;
|
|
2844
|
-
referencedRelation:
|
|
2845
|
-
referencedColumns: [
|
|
2933
|
+
referencedRelation: 'prj_milestones';
|
|
2934
|
+
referencedColumns: ['id'];
|
|
2846
2935
|
},
|
|
2847
2936
|
{
|
|
2848
|
-
foreignKeyName:
|
|
2849
|
-
columns: [
|
|
2937
|
+
foreignKeyName: 'prj_tasks_organization_id_fkey';
|
|
2938
|
+
columns: ['organization_id'];
|
|
2850
2939
|
isOneToOne: false;
|
|
2851
|
-
referencedRelation:
|
|
2852
|
-
referencedColumns: [
|
|
2940
|
+
referencedRelation: 'organizations';
|
|
2941
|
+
referencedColumns: ['id'];
|
|
2853
2942
|
},
|
|
2854
2943
|
{
|
|
2855
|
-
foreignKeyName:
|
|
2856
|
-
columns: [
|
|
2944
|
+
foreignKeyName: 'prj_tasks_parent_task_id_fkey';
|
|
2945
|
+
columns: ['parent_task_id'];
|
|
2857
2946
|
isOneToOne: false;
|
|
2858
|
-
referencedRelation:
|
|
2859
|
-
referencedColumns: [
|
|
2947
|
+
referencedRelation: 'prj_tasks';
|
|
2948
|
+
referencedColumns: ['id'];
|
|
2860
2949
|
},
|
|
2861
2950
|
{
|
|
2862
|
-
foreignKeyName:
|
|
2863
|
-
columns: [
|
|
2951
|
+
foreignKeyName: 'prj_tasks_project_id_fkey';
|
|
2952
|
+
columns: ['project_id'];
|
|
2864
2953
|
isOneToOne: false;
|
|
2865
|
-
referencedRelation:
|
|
2866
|
-
referencedColumns: [
|
|
2954
|
+
referencedRelation: 'prj_projects';
|
|
2955
|
+
referencedColumns: ['id'];
|
|
2867
2956
|
}
|
|
2868
2957
|
];
|
|
2869
2958
|
};
|
|
@@ -2933,25 +3022,25 @@ type Database = {
|
|
|
2933
3022
|
};
|
|
2934
3023
|
Relationships: [
|
|
2935
3024
|
{
|
|
2936
|
-
foreignKeyName:
|
|
2937
|
-
columns: [
|
|
3025
|
+
foreignKeyName: 'reported_requests_organization_id_fkey';
|
|
3026
|
+
columns: ['organization_id'];
|
|
2938
3027
|
isOneToOne: false;
|
|
2939
|
-
referencedRelation:
|
|
2940
|
-
referencedColumns: [
|
|
3028
|
+
referencedRelation: 'organizations';
|
|
3029
|
+
referencedColumns: ['id'];
|
|
2941
3030
|
},
|
|
2942
3031
|
{
|
|
2943
|
-
foreignKeyName:
|
|
2944
|
-
columns: [
|
|
3032
|
+
foreignKeyName: 'reported_requests_project_id_fkey';
|
|
3033
|
+
columns: ['project_id'];
|
|
2945
3034
|
isOneToOne: false;
|
|
2946
|
-
referencedRelation:
|
|
2947
|
-
referencedColumns: [
|
|
3035
|
+
referencedRelation: 'prj_projects';
|
|
3036
|
+
referencedColumns: ['id'];
|
|
2948
3037
|
},
|
|
2949
3038
|
{
|
|
2950
|
-
foreignKeyName:
|
|
2951
|
-
columns: [
|
|
3039
|
+
foreignKeyName: 'reported_requests_task_id_fkey';
|
|
3040
|
+
columns: ['task_id'];
|
|
2952
3041
|
isOneToOne: false;
|
|
2953
|
-
referencedRelation:
|
|
2954
|
-
referencedColumns: [
|
|
3042
|
+
referencedRelation: 'prj_tasks';
|
|
3043
|
+
referencedColumns: ['id'];
|
|
2955
3044
|
}
|
|
2956
3045
|
];
|
|
2957
3046
|
};
|
|
@@ -2991,11 +3080,11 @@ type Database = {
|
|
|
2991
3080
|
};
|
|
2992
3081
|
Relationships: [
|
|
2993
3082
|
{
|
|
2994
|
-
foreignKeyName:
|
|
2995
|
-
columns: [
|
|
3083
|
+
foreignKeyName: 'session_messages_session_id_fkey';
|
|
3084
|
+
columns: ['session_id'];
|
|
2996
3085
|
isOneToOne: false;
|
|
2997
|
-
referencedRelation:
|
|
2998
|
-
referencedColumns: [
|
|
3086
|
+
referencedRelation: 'sessions';
|
|
3087
|
+
referencedColumns: ['session_id'];
|
|
2999
3088
|
}
|
|
3000
3089
|
];
|
|
3001
3090
|
};
|
|
@@ -3050,18 +3139,18 @@ type Database = {
|
|
|
3050
3139
|
};
|
|
3051
3140
|
Relationships: [
|
|
3052
3141
|
{
|
|
3053
|
-
foreignKeyName:
|
|
3054
|
-
columns: [
|
|
3142
|
+
foreignKeyName: 'fk_organization';
|
|
3143
|
+
columns: ['organization_id'];
|
|
3055
3144
|
isOneToOne: false;
|
|
3056
|
-
referencedRelation:
|
|
3057
|
-
referencedColumns: [
|
|
3145
|
+
referencedRelation: 'organizations';
|
|
3146
|
+
referencedColumns: ['id'];
|
|
3058
3147
|
},
|
|
3059
3148
|
{
|
|
3060
|
-
foreignKeyName:
|
|
3061
|
-
columns: [
|
|
3149
|
+
foreignKeyName: 'fk_user';
|
|
3150
|
+
columns: ['user_id'];
|
|
3062
3151
|
isOneToOne: false;
|
|
3063
|
-
referencedRelation:
|
|
3064
|
-
referencedColumns: [
|
|
3152
|
+
referencedRelation: 'users';
|
|
3153
|
+
referencedColumns: ['id'];
|
|
3065
3154
|
}
|
|
3066
3155
|
];
|
|
3067
3156
|
};
|
|
@@ -3137,11 +3226,11 @@ type Database = {
|
|
|
3137
3226
|
};
|
|
3138
3227
|
Relationships: [
|
|
3139
3228
|
{
|
|
3140
|
-
foreignKeyName:
|
|
3141
|
-
columns: [
|
|
3229
|
+
foreignKeyName: 'task_schedules_organization_id_fkey';
|
|
3230
|
+
columns: ['organization_id'];
|
|
3142
3231
|
isOneToOne: false;
|
|
3143
|
-
referencedRelation:
|
|
3144
|
-
referencedColumns: [
|
|
3232
|
+
referencedRelation: 'organizations';
|
|
3233
|
+
referencedColumns: ['id'];
|
|
3145
3234
|
}
|
|
3146
3235
|
];
|
|
3147
3236
|
};
|
|
@@ -3196,11 +3285,11 @@ type Database = {
|
|
|
3196
3285
|
};
|
|
3197
3286
|
Relationships: [
|
|
3198
3287
|
{
|
|
3199
|
-
foreignKeyName:
|
|
3200
|
-
columns: [
|
|
3288
|
+
foreignKeyName: 'user_profiles_last_visited_org_fkey';
|
|
3289
|
+
columns: ['last_visited_org'];
|
|
3201
3290
|
isOneToOne: false;
|
|
3202
|
-
referencedRelation:
|
|
3203
|
-
referencedColumns: [
|
|
3291
|
+
referencedRelation: 'organizations';
|
|
3292
|
+
referencedColumns: ['id'];
|
|
3204
3293
|
}
|
|
3205
3294
|
];
|
|
3206
3295
|
};
|
|
@@ -3249,11 +3338,11 @@ type Database = {
|
|
|
3249
3338
|
};
|
|
3250
3339
|
Relationships: [
|
|
3251
3340
|
{
|
|
3252
|
-
foreignKeyName:
|
|
3253
|
-
columns: [
|
|
3341
|
+
foreignKeyName: 'webhook_endpoints_organization_id_fkey';
|
|
3342
|
+
columns: ['organization_id'];
|
|
3254
3343
|
isOneToOne: false;
|
|
3255
|
-
referencedRelation:
|
|
3256
|
-
referencedColumns: [
|
|
3344
|
+
referencedRelation: 'organizations';
|
|
3345
|
+
referencedColumns: ['id'];
|
|
3257
3346
|
}
|
|
3258
3347
|
];
|
|
3259
3348
|
};
|
|
@@ -3341,12 +3430,6 @@ type Database = {
|
|
|
3341
3430
|
};
|
|
3342
3431
|
Returns: boolean;
|
|
3343
3432
|
};
|
|
3344
|
-
is_org_admin: {
|
|
3345
|
-
Args: {
|
|
3346
|
-
org_id: string;
|
|
3347
|
-
};
|
|
3348
|
-
Returns: boolean;
|
|
3349
|
-
};
|
|
3350
3433
|
is_org_member: {
|
|
3351
3434
|
Args: {
|
|
3352
3435
|
org_id: string;
|
|
@@ -3407,17 +3490,17 @@ type Database = {
|
|
|
3407
3490
|
};
|
|
3408
3491
|
};
|
|
3409
3492
|
};
|
|
3410
|
-
type DatabaseWithoutInternals = Omit<Database,
|
|
3411
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database,
|
|
3412
|
-
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
3493
|
+
type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
|
|
3494
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
|
|
3495
|
+
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) | {
|
|
3413
3496
|
schema: keyof DatabaseWithoutInternals;
|
|
3414
3497
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3415
3498
|
schema: keyof DatabaseWithoutInternals;
|
|
3416
|
-
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions[
|
|
3499
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3417
3500
|
schema: keyof DatabaseWithoutInternals;
|
|
3418
|
-
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions[
|
|
3501
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
3419
3502
|
Row: infer R;
|
|
3420
|
-
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
3503
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
|
|
3421
3504
|
Row: infer R;
|
|
3422
3505
|
} ? R : never : never;
|
|
3423
3506
|
|