@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.
Files changed (57) hide show
  1. package/dist/app/index.d.ts +2915 -0
  2. package/dist/app/index.js +5 -4
  3. package/dist/{chunk-3HEUGBOT.js → chunk-2WZ635SS.js} +2 -2
  4. package/dist/{chunk-GJ7EIABJ.js → chunk-4NWNS7TX.js} +1 -1
  5. package/dist/{chunk-LKVBEE63.js → chunk-FUEXGRFR.js} +2 -2
  6. package/dist/{chunk-6IA2OMAE.js → chunk-HC2KV6BU.js} +9 -0
  7. package/dist/{chunk-IBUYJXA3.js → chunk-KCJ6VATY.js} +1133 -578
  8. package/dist/{chunk-WWJ6S2HQ.js → chunk-KLFIJDTD.js} +1 -1
  9. package/dist/{chunk-COG4ABRI.js → chunk-M2HWJY6O.js} +704 -375
  10. package/dist/{chunk-LVJGPE6H.js → chunk-MTR6AN2C.js} +3 -12
  11. package/dist/chunk-OWHQ65EQ.js +211 -0
  12. package/dist/{chunk-XOTJNW4Q.js → chunk-QIW6OCEI.js} +18 -1
  13. package/dist/{chunk-B4FHWKEF.js → chunk-QULLZ5PE.js} +193 -10
  14. package/dist/{chunk-QZJM3RYI.js → chunk-SNHGSCKH.js} +1 -1
  15. package/dist/{chunk-LVUCBY7X.js → chunk-UDJE54WN.js} +85 -3
  16. package/dist/{chunk-IOTLB6ND.js → chunk-VGNAV3TH.js} +406 -195
  17. package/dist/{chunk-BSZRKBAW.js → chunk-YBZT7MJR.js} +3 -3
  18. package/dist/{chunk-SQ5JGELM.js → chunk-ZDKQNQ4X.js} +19 -1
  19. package/dist/components/index.d.ts +500 -466
  20. package/dist/components/index.js +75 -32
  21. package/dist/components/navigation/index.js +2 -2
  22. package/dist/features/auth/index.d.ts +472 -389
  23. package/dist/features/crm/index.d.ts +468 -391
  24. package/dist/features/crm/index.js +8 -8
  25. package/dist/features/dashboard/index.js +8 -8
  26. package/dist/features/delivery/index.d.ts +466 -383
  27. package/dist/features/delivery/index.js +8 -8
  28. package/dist/features/lead-gen/index.d.ts +213 -65
  29. package/dist/features/lead-gen/index.js +9 -8
  30. package/dist/features/monitoring/index.js +9 -9
  31. package/dist/features/monitoring/requests/index.js +7 -7
  32. package/dist/features/operations/index.js +11 -10
  33. package/dist/features/settings/index.d.ts +472 -389
  34. package/dist/features/settings/index.js +9 -9
  35. package/dist/hooks/delivery/index.d.ts +466 -383
  36. package/dist/hooks/index.d.ts +967 -744
  37. package/dist/hooks/index.js +7 -7
  38. package/dist/hooks/published.d.ts +967 -744
  39. package/dist/hooks/published.js +7 -7
  40. package/dist/index.d.ts +1360 -1069
  41. package/dist/index.js +8 -8
  42. package/dist/initialization/index.d.ts +472 -389
  43. package/dist/organization/index.d.ts +11 -1
  44. package/dist/organization/index.js +2 -2
  45. package/dist/profile/index.d.ts +472 -389
  46. package/dist/provider/index.d.ts +3132 -169
  47. package/dist/provider/index.js +6 -6
  48. package/dist/provider/published.d.ts +3098 -168
  49. package/dist/provider/published.js +3 -3
  50. package/dist/supabase/index.d.ts +577 -413
  51. package/dist/test-utils/index.d.ts +21 -1
  52. package/dist/test-utils/index.js +13 -4
  53. package/dist/theme/index.js +2 -2
  54. package/dist/types/index.d.ts +472 -389
  55. package/package.json +2 -2
  56. package/src/test-utils/README.md +2 -0
  57. /package/dist/{chunk-ZBCTB5CA.js → chunk-EIOJNUPL.js} +0 -0
@@ -595,10 +595,57 @@ type Json = string | number | boolean | null | {
595
595
  } | Json[];
596
596
  type Database = {
597
597
  __InternalSupabase: {
598
- PostgrestVersion: "12.2.3 (519615d)";
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: "acq_companies_organization_id_fkey";
675
- columns: ["organization_id"];
730
+ foreignKeyName: 'acq_companies_organization_id_fkey';
731
+ columns: ['organization_id'];
676
732
  isOneToOne: false;
677
- referencedRelation: "organizations";
678
- referencedColumns: ["id"];
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: "acq_contacts_company_id_fkey";
761
- columns: ["company_id"];
825
+ foreignKeyName: 'acq_contacts_company_id_fkey';
826
+ columns: ['company_id'];
762
827
  isOneToOne: false;
763
- referencedRelation: "acq_companies";
764
- referencedColumns: ["id"];
828
+ referencedRelation: 'acq_companies';
829
+ referencedColumns: ['id'];
765
830
  },
766
831
  {
767
- foreignKeyName: "acq_contacts_organization_id_fkey";
768
- columns: ["organization_id"];
832
+ foreignKeyName: 'acq_contacts_organization_id_fkey';
833
+ columns: ['organization_id'];
769
834
  isOneToOne: false;
770
- referencedRelation: "organizations";
771
- referencedColumns: ["id"];
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: "acq_content_organization_id_fkey";
809
- columns: ["organization_id"];
873
+ foreignKeyName: 'acq_content_organization_id_fkey';
874
+ columns: ['organization_id'];
810
875
  isOneToOne: false;
811
- referencedRelation: "organizations";
812
- referencedColumns: ["id"];
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: "acq_content_distributions_content_id_fkey";
877
- columns: ["content_id"];
941
+ foreignKeyName: 'acq_content_distributions_content_id_fkey';
942
+ columns: ['content_id'];
878
943
  isOneToOne: false;
879
- referencedRelation: "acq_content";
880
- referencedColumns: ["id"];
944
+ referencedRelation: 'acq_content';
945
+ referencedColumns: ['id'];
881
946
  },
882
947
  {
883
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
884
- columns: ["organization_id"];
948
+ foreignKeyName: 'acq_content_distributions_organization_id_fkey';
949
+ columns: ['organization_id'];
885
950
  isOneToOne: false;
886
- referencedRelation: "organizations";
887
- referencedColumns: ["id"];
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: "acq_deal_notes_deal_id_fkey";
922
- columns: ["deal_id"];
986
+ foreignKeyName: 'acq_deal_notes_deal_id_fkey';
987
+ columns: ['deal_id'];
923
988
  isOneToOne: false;
924
- referencedRelation: "acq_deals";
925
- referencedColumns: ["id"];
989
+ referencedRelation: 'acq_deals';
990
+ referencedColumns: ['id'];
926
991
  },
927
992
  {
928
- foreignKeyName: "acq_deal_notes_organization_id_fkey";
929
- columns: ["organization_id"];
993
+ foreignKeyName: 'acq_deal_notes_organization_id_fkey';
994
+ columns: ['organization_id'];
930
995
  isOneToOne: false;
931
- referencedRelation: "organizations";
932
- referencedColumns: ["id"];
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: "acq_deal_tasks_deal_id_fkey";
985
- columns: ["deal_id"];
1049
+ foreignKeyName: 'acq_deal_tasks_deal_id_fkey';
1050
+ columns: ['deal_id'];
986
1051
  isOneToOne: false;
987
- referencedRelation: "acq_deals";
988
- referencedColumns: ["id"];
1052
+ referencedRelation: 'acq_deals';
1053
+ referencedColumns: ['id'];
989
1054
  },
990
1055
  {
991
- foreignKeyName: "acq_deal_tasks_organization_id_fkey";
992
- columns: ["organization_id"];
1056
+ foreignKeyName: 'acq_deal_tasks_organization_id_fkey';
1057
+ columns: ['organization_id'];
993
1058
  isOneToOne: false;
994
- referencedRelation: "organizations";
995
- referencedColumns: ["id"];
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: "acq_deals_contact_id_fkey";
1105
- columns: ["contact_id"];
1172
+ foreignKeyName: 'acq_deals_contact_id_fkey';
1173
+ columns: ['contact_id'];
1106
1174
  isOneToOne: false;
1107
- referencedRelation: "acq_contacts";
1108
- referencedColumns: ["id"];
1175
+ referencedRelation: 'acq_contacts';
1176
+ referencedColumns: ['id'];
1109
1177
  },
1110
1178
  {
1111
- foreignKeyName: "acq_deals_organization_id_fkey";
1112
- columns: ["organization_id"];
1179
+ foreignKeyName: 'acq_deals_organization_id_fkey';
1180
+ columns: ['organization_id'];
1113
1181
  isOneToOne: false;
1114
- referencedRelation: "organizations";
1115
- referencedColumns: ["id"];
1182
+ referencedRelation: 'organizations';
1183
+ referencedColumns: ['id'];
1116
1184
  },
1117
1185
  {
1118
- foreignKeyName: "acq_deals_source_list_id_fkey";
1119
- columns: ["source_list_id"];
1186
+ foreignKeyName: 'acq_deals_source_list_id_fkey';
1187
+ columns: ['source_list_id'];
1120
1188
  isOneToOne: false;
1121
- referencedRelation: "acq_lists";
1122
- referencedColumns: ["id"];
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
- stage: string | null;
1137
- stage_updated_at: string | null;
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
- stage?: string | null;
1149
- stage_updated_at?: string | null;
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
- stage?: string | null;
1161
- stage_updated_at?: string | null;
1237
+ stage_key?: string;
1238
+ state_key?: string;
1162
1239
  };
1163
1240
  Relationships: [
1164
1241
  {
1165
- foreignKeyName: "acq_list_companies_company_id_fkey";
1166
- columns: ["company_id"];
1242
+ foreignKeyName: 'acq_list_companies_company_id_fkey';
1243
+ columns: ['company_id'];
1167
1244
  isOneToOne: false;
1168
- referencedRelation: "acq_companies";
1169
- referencedColumns: ["id"];
1245
+ referencedRelation: 'acq_companies';
1246
+ referencedColumns: ['id'];
1170
1247
  },
1171
1248
  {
1172
- foreignKeyName: "acq_list_companies_list_id_fkey";
1173
- columns: ["list_id"];
1249
+ foreignKeyName: 'acq_list_companies_list_id_fkey';
1250
+ columns: ['list_id'];
1174
1251
  isOneToOne: false;
1175
- referencedRelation: "acq_lists";
1176
- referencedColumns: ["id"];
1252
+ referencedRelation: 'acq_lists';
1253
+ referencedColumns: ['id'];
1177
1254
  },
1178
1255
  {
1179
- foreignKeyName: "acq_list_companies_source_execution_id_fkey";
1180
- columns: ["source_execution_id"];
1256
+ foreignKeyName: 'acq_list_companies_source_execution_id_fkey';
1257
+ columns: ['source_execution_id'];
1181
1258
  isOneToOne: false;
1182
- referencedRelation: "execution_logs";
1183
- referencedColumns: ["execution_id"];
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: "acq_list_executions_execution_id_fkey";
1212
- columns: ["execution_id"];
1288
+ foreignKeyName: 'acq_list_executions_execution_id_fkey';
1289
+ columns: ['execution_id'];
1213
1290
  isOneToOne: false;
1214
- referencedRelation: "execution_logs";
1215
- referencedColumns: ["execution_id"];
1291
+ referencedRelation: 'execution_logs';
1292
+ referencedColumns: ['execution_id'];
1216
1293
  },
1217
1294
  {
1218
- foreignKeyName: "acq_list_executions_list_id_fkey";
1219
- columns: ["list_id"];
1295
+ foreignKeyName: 'acq_list_executions_list_id_fkey';
1296
+ columns: ['list_id'];
1220
1297
  isOneToOne: false;
1221
- referencedRelation: "acq_lists";
1222
- referencedColumns: ["id"];
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
- stage: string | null;
1237
- stage_updated_at: string | null;
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
- stage?: string | null;
1249
- stage_updated_at?: string | null;
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
- stage?: string | null;
1261
- stage_updated_at?: string | null;
1346
+ stage_key?: string;
1347
+ state_key?: string;
1262
1348
  };
1263
1349
  Relationships: [
1264
1350
  {
1265
- foreignKeyName: "acq_list_members_contact_id_fkey";
1266
- columns: ["contact_id"];
1351
+ foreignKeyName: 'acq_list_members_contact_id_fkey';
1352
+ columns: ['contact_id'];
1267
1353
  isOneToOne: false;
1268
- referencedRelation: "acq_contacts";
1269
- referencedColumns: ["id"];
1354
+ referencedRelation: 'acq_contacts';
1355
+ referencedColumns: ['id'];
1270
1356
  },
1271
1357
  {
1272
- foreignKeyName: "acq_list_members_list_id_fkey";
1273
- columns: ["list_id"];
1358
+ foreignKeyName: 'acq_list_members_list_id_fkey';
1359
+ columns: ['list_id'];
1274
1360
  isOneToOne: false;
1275
- referencedRelation: "acq_lists";
1276
- referencedColumns: ["id"];
1361
+ referencedRelation: 'acq_lists';
1362
+ referencedColumns: ['id'];
1277
1363
  },
1278
1364
  {
1279
- foreignKeyName: "acq_list_members_source_execution_id_fkey";
1280
- columns: ["source_execution_id"];
1365
+ foreignKeyName: 'acq_list_members_source_execution_id_fkey';
1366
+ columns: ['source_execution_id'];
1281
1367
  isOneToOne: false;
1282
- referencedRelation: "execution_logs";
1283
- referencedColumns: ["execution_id"];
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: "acq_lists_organization_id_fkey";
1336
- columns: ["organization_id"];
1424
+ foreignKeyName: 'acq_lists_organization_id_fkey';
1425
+ columns: ['organization_id'];
1337
1426
  isOneToOne: false;
1338
- referencedRelation: "organizations";
1339
- referencedColumns: ["id"];
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: "acq_seo_metrics_organization_id_fkey";
1416
- columns: ["organization_id"];
1504
+ foreignKeyName: 'acq_seo_metrics_organization_id_fkey';
1505
+ columns: ['organization_id'];
1417
1506
  isOneToOne: false;
1418
- referencedRelation: "organizations";
1419
- referencedColumns: ["id"];
1507
+ referencedRelation: 'organizations';
1508
+ referencedColumns: ['id'];
1420
1509
  },
1421
1510
  {
1422
- foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
1423
- columns: ["seo_page_id"];
1511
+ foreignKeyName: 'acq_seo_metrics_seo_page_id_fkey';
1512
+ columns: ['seo_page_id'];
1424
1513
  isOneToOne: false;
1425
- referencedRelation: "acq_seo_pages";
1426
- referencedColumns: ["id"];
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: "acq_seo_pages_organization_id_fkey";
1503
- columns: ["organization_id"];
1591
+ foreignKeyName: 'acq_seo_pages_organization_id_fkey';
1592
+ columns: ['organization_id'];
1504
1593
  isOneToOne: false;
1505
- referencedRelation: "organizations";
1506
- referencedColumns: ["id"];
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: "acq_social_posts_organization_id_fkey";
1604
- columns: ["organization_id"];
1692
+ foreignKeyName: 'acq_social_posts_organization_id_fkey';
1693
+ columns: ['organization_id'];
1605
1694
  isOneToOne: false;
1606
- referencedRelation: "organizations";
1607
- referencedColumns: ["id"];
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: "activities_organization_id_fkey";
1663
- columns: ["organization_id"];
1751
+ foreignKeyName: 'activities_organization_id_fkey';
1752
+ columns: ['organization_id'];
1664
1753
  isOneToOne: false;
1665
- referencedRelation: "organizations";
1666
- referencedColumns: ["id"];
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: "api_keys_organization_id_fkey";
1698
- columns: ["organization_id"];
1786
+ foreignKeyName: 'api_keys_organization_id_fkey';
1787
+ columns: ['organization_id'];
1699
1788
  isOneToOne: false;
1700
- referencedRelation: "organizations";
1701
- referencedColumns: ["id"];
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: "command_queue_completed_by_fkey";
1781
- columns: ["completed_by"];
1869
+ foreignKeyName: 'command_queue_completed_by_fkey';
1870
+ columns: ['completed_by'];
1782
1871
  isOneToOne: false;
1783
- referencedRelation: "users";
1784
- referencedColumns: ["id"];
1872
+ referencedRelation: 'users';
1873
+ referencedColumns: ['id'];
1785
1874
  },
1786
1875
  {
1787
- foreignKeyName: "command_queue_organization_id_fkey";
1788
- columns: ["organization_id"];
1876
+ foreignKeyName: 'command_queue_organization_id_fkey';
1877
+ columns: ['organization_id'];
1789
1878
  isOneToOne: false;
1790
- referencedRelation: "organizations";
1791
- referencedColumns: ["id"];
1879
+ referencedRelation: 'organizations';
1880
+ referencedColumns: ['id'];
1792
1881
  },
1793
1882
  {
1794
- foreignKeyName: "command_queue_target_execution_id_fkey";
1795
- columns: ["target_execution_id"];
1883
+ foreignKeyName: 'command_queue_target_execution_id_fkey';
1884
+ columns: ['target_execution_id'];
1796
1885
  isOneToOne: false;
1797
- referencedRelation: "execution_logs";
1798
- referencedColumns: ["execution_id"];
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: "credentials_created_by_fkey";
1839
- columns: ["created_by"];
1927
+ foreignKeyName: 'credentials_created_by_fkey';
1928
+ columns: ['created_by'];
1840
1929
  isOneToOne: false;
1841
- referencedRelation: "users";
1842
- referencedColumns: ["id"];
1930
+ referencedRelation: 'users';
1931
+ referencedColumns: ['id'];
1843
1932
  },
1844
1933
  {
1845
- foreignKeyName: "credentials_organization_id_fkey";
1846
- columns: ["organization_id"];
1934
+ foreignKeyName: 'credentials_organization_id_fkey';
1935
+ columns: ['organization_id'];
1847
1936
  isOneToOne: false;
1848
- referencedRelation: "organizations";
1849
- referencedColumns: ["id"];
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: "deployments_organization_id_fkey";
1896
- columns: ["organization_id"];
1984
+ foreignKeyName: 'deployments_organization_id_fkey';
1985
+ columns: ['organization_id'];
1897
1986
  isOneToOne: false;
1898
- referencedRelation: "organizations";
1899
- referencedColumns: ["id"];
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: "execution_errors_execution_id_fkey";
1955
- columns: ["execution_id"];
2043
+ foreignKeyName: 'execution_errors_execution_id_fkey';
2044
+ columns: ['execution_id'];
1956
2045
  isOneToOne: false;
1957
- referencedRelation: "execution_logs";
1958
- referencedColumns: ["execution_id"];
2046
+ referencedRelation: 'execution_logs';
2047
+ referencedColumns: ['execution_id'];
1959
2048
  },
1960
2049
  {
1961
- foreignKeyName: "execution_errors_organization_id_fkey";
1962
- columns: ["organization_id"];
2050
+ foreignKeyName: 'execution_errors_organization_id_fkey';
2051
+ columns: ['organization_id'];
1963
2052
  isOneToOne: false;
1964
- referencedRelation: "organizations";
1965
- referencedColumns: ["id"];
2053
+ referencedRelation: 'organizations';
2054
+ referencedColumns: ['id'];
1966
2055
  },
1967
2056
  {
1968
- foreignKeyName: "execution_errors_resolved_by_fkey";
1969
- columns: ["resolved_by"];
2057
+ foreignKeyName: 'execution_errors_resolved_by_fkey';
2058
+ columns: ['resolved_by'];
1970
2059
  isOneToOne: false;
1971
- referencedRelation: "users";
1972
- referencedColumns: ["id"];
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: "execution_history_organization_id_fkey";
2055
- columns: ["organization_id"];
2143
+ foreignKeyName: 'execution_history_organization_id_fkey';
2144
+ columns: ['organization_id'];
2056
2145
  isOneToOne: false;
2057
- referencedRelation: "organizations";
2058
- referencedColumns: ["id"];
2146
+ referencedRelation: 'organizations';
2147
+ referencedColumns: ['id'];
2059
2148
  },
2060
2149
  {
2061
- foreignKeyName: "execution_logs_origin_execution_id_fkey";
2062
- columns: ["origin_execution_id"];
2150
+ foreignKeyName: 'execution_logs_origin_execution_id_fkey';
2151
+ columns: ['origin_execution_id'];
2063
2152
  isOneToOne: false;
2064
- referencedRelation: "execution_logs";
2065
- referencedColumns: ["execution_id"];
2153
+ referencedRelation: 'execution_logs';
2154
+ referencedColumns: ['execution_id'];
2066
2155
  },
2067
2156
  {
2068
- foreignKeyName: "execution_logs_session_id_fkey";
2069
- columns: ["session_id"];
2157
+ foreignKeyName: 'execution_logs_session_id_fkey';
2158
+ columns: ['session_id'];
2070
2159
  isOneToOne: false;
2071
- referencedRelation: "sessions";
2072
- referencedColumns: ["session_id"];
2160
+ referencedRelation: 'sessions';
2161
+ referencedColumns: ['session_id'];
2073
2162
  },
2074
2163
  {
2075
- foreignKeyName: "execution_logs_user_id_fkey";
2076
- columns: ["user_id"];
2164
+ foreignKeyName: 'execution_logs_user_id_fkey';
2165
+ columns: ['user_id'];
2077
2166
  isOneToOne: false;
2078
- referencedRelation: "users";
2079
- referencedColumns: ["id"];
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: "execution_metrics_execution_id_fkey";
2126
- columns: ["execution_id"];
2214
+ foreignKeyName: 'execution_metrics_execution_id_fkey';
2215
+ columns: ['execution_id'];
2127
2216
  isOneToOne: true;
2128
- referencedRelation: "execution_logs";
2129
- referencedColumns: ["execution_id"];
2217
+ referencedRelation: 'execution_logs';
2218
+ referencedColumns: ['execution_id'];
2130
2219
  },
2131
2220
  {
2132
- foreignKeyName: "execution_metrics_organization_id_fkey";
2133
- columns: ["organization_id"];
2221
+ foreignKeyName: 'execution_metrics_organization_id_fkey';
2222
+ columns: ['organization_id'];
2134
2223
  isOneToOne: false;
2135
- referencedRelation: "organizations";
2136
- referencedColumns: ["id"];
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: "notifications_organization_id_fkey";
2180
- columns: ["organization_id"];
2268
+ foreignKeyName: 'notifications_organization_id_fkey';
2269
+ columns: ['organization_id'];
2181
2270
  isOneToOne: false;
2182
- referencedRelation: "organizations";
2183
- referencedColumns: ["id"];
2271
+ referencedRelation: 'organizations';
2272
+ referencedColumns: ['id'];
2184
2273
  },
2185
2274
  {
2186
- foreignKeyName: "notifications_user_id_fkey";
2187
- columns: ["user_id"];
2275
+ foreignKeyName: 'notifications_user_id_fkey';
2276
+ columns: ['user_id'];
2188
2277
  isOneToOne: false;
2189
- referencedRelation: "users";
2190
- referencedColumns: ["id"];
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: "org_invitations_inviter_user_id_fkey";
2246
- columns: ["inviter_user_id"];
2334
+ foreignKeyName: 'org_invitations_inviter_user_id_fkey';
2335
+ columns: ['inviter_user_id'];
2247
2336
  isOneToOne: false;
2248
- referencedRelation: "users";
2249
- referencedColumns: ["id"];
2337
+ referencedRelation: 'users';
2338
+ referencedColumns: ['id'];
2250
2339
  },
2251
2340
  {
2252
- foreignKeyName: "org_invitations_organization_id_fkey";
2253
- columns: ["organization_id"];
2341
+ foreignKeyName: 'org_invitations_organization_id_fkey';
2342
+ columns: ['organization_id'];
2254
2343
  isOneToOne: false;
2255
- referencedRelation: "organizations";
2256
- referencedColumns: ["id"];
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: "org_memberships_organization_id_fkey";
2300
- columns: ["organization_id"];
2388
+ foreignKeyName: 'org_memberships_organization_id_fkey';
2389
+ columns: ['organization_id'];
2301
2390
  isOneToOne: false;
2302
- referencedRelation: "organizations";
2303
- referencedColumns: ["id"];
2391
+ referencedRelation: 'organizations';
2392
+ referencedColumns: ['id'];
2304
2393
  },
2305
2394
  {
2306
- foreignKeyName: "org_memberships_user_id_fkey";
2307
- columns: ["user_id"];
2395
+ foreignKeyName: 'org_memberships_user_id_fkey';
2396
+ columns: ['user_id'];
2308
2397
  isOneToOne: false;
2309
- referencedRelation: "users";
2310
- referencedColumns: ["id"];
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: "org_rol_assignments_granted_by_fkey";
2336
- columns: ["granted_by"];
2424
+ foreignKeyName: 'org_rol_assignments_granted_by_fkey';
2425
+ columns: ['granted_by'];
2337
2426
  isOneToOne: false;
2338
- referencedRelation: "users";
2339
- referencedColumns: ["id"];
2427
+ referencedRelation: 'users';
2428
+ referencedColumns: ['id'];
2340
2429
  },
2341
2430
  {
2342
- foreignKeyName: "org_rol_assignments_membership_id_fkey";
2343
- columns: ["membership_id"];
2431
+ foreignKeyName: 'org_rol_assignments_membership_id_fkey';
2432
+ columns: ['membership_id'];
2344
2433
  isOneToOne: false;
2345
- referencedRelation: "org_memberships";
2346
- referencedColumns: ["id"];
2434
+ referencedRelation: 'org_memberships';
2435
+ referencedColumns: ['id'];
2347
2436
  },
2348
2437
  {
2349
- foreignKeyName: "org_rol_assignments_role_id_fkey";
2350
- columns: ["role_id"];
2438
+ foreignKeyName: 'org_rol_assignments_role_id_fkey';
2439
+ columns: ['role_id'];
2351
2440
  isOneToOne: false;
2352
- referencedRelation: "org_rol_definitions";
2353
- referencedColumns: ["id"];
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: "org_rol_definitions_organization_id_fkey";
2391
- columns: ["organization_id"];
2479
+ foreignKeyName: 'org_rol_definitions_organization_id_fkey';
2480
+ columns: ['organization_id'];
2392
2481
  isOneToOne: false;
2393
- referencedRelation: "organizations";
2394
- referencedColumns: ["id"];
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: "org_rol_grants_permission_key_fkey";
2417
- columns: ["permission_key"];
2505
+ foreignKeyName: 'org_rol_grants_permission_key_fkey';
2506
+ columns: ['permission_key'];
2418
2507
  isOneToOne: false;
2419
- referencedRelation: "org_rol_permissions";
2420
- referencedColumns: ["key"];
2508
+ referencedRelation: 'org_rol_permissions';
2509
+ referencedColumns: ['key'];
2421
2510
  },
2422
2511
  {
2423
- foreignKeyName: "org_rol_grants_role_id_fkey";
2424
- columns: ["role_id"];
2512
+ foreignKeyName: 'org_rol_grants_role_id_fkey';
2513
+ columns: ['role_id'];
2425
2514
  isOneToOne: false;
2426
- referencedRelation: "org_rol_definitions";
2427
- referencedColumns: ["id"];
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: "fk_milestones_project";
2540
- columns: ["project_id"];
2628
+ foreignKeyName: 'fk_milestones_project';
2629
+ columns: ['project_id'];
2541
2630
  isOneToOne: false;
2542
- referencedRelation: "prj_projects";
2543
- referencedColumns: ["id"];
2631
+ referencedRelation: 'prj_projects';
2632
+ referencedColumns: ['id'];
2544
2633
  },
2545
2634
  {
2546
- foreignKeyName: "prj_milestones_organization_id_fkey";
2547
- columns: ["organization_id"];
2635
+ foreignKeyName: 'prj_milestones_organization_id_fkey';
2636
+ columns: ['organization_id'];
2548
2637
  isOneToOne: false;
2549
- referencedRelation: "organizations";
2550
- referencedColumns: ["id"];
2638
+ referencedRelation: 'organizations';
2639
+ referencedColumns: ['id'];
2551
2640
  },
2552
2641
  {
2553
- foreignKeyName: "prj_milestones_project_id_fkey";
2554
- columns: ["project_id"];
2642
+ foreignKeyName: 'prj_milestones_project_id_fkey';
2643
+ columns: ['project_id'];
2555
2644
  isOneToOne: false;
2556
- referencedRelation: "prj_projects";
2557
- referencedColumns: ["id"];
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: "fk_notes_created_by";
2607
- columns: ["created_by"];
2695
+ foreignKeyName: 'fk_notes_created_by';
2696
+ columns: ['created_by'];
2608
2697
  isOneToOne: false;
2609
- referencedRelation: "users";
2610
- referencedColumns: ["id"];
2698
+ referencedRelation: 'users';
2699
+ referencedColumns: ['id'];
2611
2700
  },
2612
2701
  {
2613
- foreignKeyName: "fk_notes_milestone";
2614
- columns: ["milestone_id"];
2702
+ foreignKeyName: 'fk_notes_milestone';
2703
+ columns: ['milestone_id'];
2615
2704
  isOneToOne: false;
2616
- referencedRelation: "prj_milestones";
2617
- referencedColumns: ["id"];
2705
+ referencedRelation: 'prj_milestones';
2706
+ referencedColumns: ['id'];
2618
2707
  },
2619
2708
  {
2620
- foreignKeyName: "fk_notes_project";
2621
- columns: ["project_id"];
2709
+ foreignKeyName: 'fk_notes_project';
2710
+ columns: ['project_id'];
2622
2711
  isOneToOne: false;
2623
- referencedRelation: "prj_projects";
2624
- referencedColumns: ["id"];
2712
+ referencedRelation: 'prj_projects';
2713
+ referencedColumns: ['id'];
2625
2714
  },
2626
2715
  {
2627
- foreignKeyName: "fk_notes_task";
2628
- columns: ["task_id"];
2716
+ foreignKeyName: 'fk_notes_task';
2717
+ columns: ['task_id'];
2629
2718
  isOneToOne: false;
2630
- referencedRelation: "prj_tasks";
2631
- referencedColumns: ["id"];
2719
+ referencedRelation: 'prj_tasks';
2720
+ referencedColumns: ['id'];
2632
2721
  },
2633
2722
  {
2634
- foreignKeyName: "prj_notes_created_by_fkey";
2635
- columns: ["created_by"];
2723
+ foreignKeyName: 'prj_notes_created_by_fkey';
2724
+ columns: ['created_by'];
2636
2725
  isOneToOne: false;
2637
- referencedRelation: "users";
2638
- referencedColumns: ["id"];
2726
+ referencedRelation: 'users';
2727
+ referencedColumns: ['id'];
2639
2728
  },
2640
2729
  {
2641
- foreignKeyName: "prj_notes_milestone_id_fkey";
2642
- columns: ["milestone_id"];
2730
+ foreignKeyName: 'prj_notes_milestone_id_fkey';
2731
+ columns: ['milestone_id'];
2643
2732
  isOneToOne: false;
2644
- referencedRelation: "prj_milestones";
2645
- referencedColumns: ["id"];
2733
+ referencedRelation: 'prj_milestones';
2734
+ referencedColumns: ['id'];
2646
2735
  },
2647
2736
  {
2648
- foreignKeyName: "prj_notes_organization_id_fkey";
2649
- columns: ["organization_id"];
2737
+ foreignKeyName: 'prj_notes_organization_id_fkey';
2738
+ columns: ['organization_id'];
2650
2739
  isOneToOne: false;
2651
- referencedRelation: "organizations";
2652
- referencedColumns: ["id"];
2740
+ referencedRelation: 'organizations';
2741
+ referencedColumns: ['id'];
2653
2742
  },
2654
2743
  {
2655
- foreignKeyName: "prj_notes_project_id_fkey";
2656
- columns: ["project_id"];
2744
+ foreignKeyName: 'prj_notes_project_id_fkey';
2745
+ columns: ['project_id'];
2657
2746
  isOneToOne: false;
2658
- referencedRelation: "prj_projects";
2659
- referencedColumns: ["id"];
2747
+ referencedRelation: 'prj_projects';
2748
+ referencedColumns: ['id'];
2660
2749
  },
2661
2750
  {
2662
- foreignKeyName: "prj_notes_task_id_fkey";
2663
- columns: ["task_id"];
2751
+ foreignKeyName: 'prj_notes_task_id_fkey';
2752
+ columns: ['task_id'];
2664
2753
  isOneToOne: false;
2665
- referencedRelation: "prj_tasks";
2666
- referencedColumns: ["id"];
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: "fk_projects_company";
2725
- columns: ["client_company_id"];
2813
+ foreignKeyName: 'fk_projects_company';
2814
+ columns: ['client_company_id'];
2726
2815
  isOneToOne: false;
2727
- referencedRelation: "acq_companies";
2728
- referencedColumns: ["id"];
2816
+ referencedRelation: 'acq_companies';
2817
+ referencedColumns: ['id'];
2729
2818
  },
2730
2819
  {
2731
- foreignKeyName: "fk_projects_deal";
2732
- columns: ["deal_id"];
2820
+ foreignKeyName: 'fk_projects_deal';
2821
+ columns: ['deal_id'];
2733
2822
  isOneToOne: false;
2734
- referencedRelation: "acq_deals";
2735
- referencedColumns: ["id"];
2823
+ referencedRelation: 'acq_deals';
2824
+ referencedColumns: ['id'];
2736
2825
  },
2737
2826
  {
2738
- foreignKeyName: "prj_projects_client_company_id_fkey";
2739
- columns: ["client_company_id"];
2827
+ foreignKeyName: 'prj_projects_client_company_id_fkey';
2828
+ columns: ['client_company_id'];
2740
2829
  isOneToOne: false;
2741
- referencedRelation: "acq_companies";
2742
- referencedColumns: ["id"];
2830
+ referencedRelation: 'acq_companies';
2831
+ referencedColumns: ['id'];
2743
2832
  },
2744
2833
  {
2745
- foreignKeyName: "prj_projects_deal_id_fkey";
2746
- columns: ["deal_id"];
2834
+ foreignKeyName: 'prj_projects_deal_id_fkey';
2835
+ columns: ['deal_id'];
2747
2836
  isOneToOne: false;
2748
- referencedRelation: "acq_deals";
2749
- referencedColumns: ["id"];
2837
+ referencedRelation: 'acq_deals';
2838
+ referencedColumns: ['id'];
2750
2839
  },
2751
2840
  {
2752
- foreignKeyName: "prj_projects_organization_id_fkey";
2753
- columns: ["organization_id"];
2841
+ foreignKeyName: 'prj_projects_organization_id_fkey';
2842
+ columns: ['organization_id'];
2754
2843
  isOneToOne: false;
2755
- referencedRelation: "organizations";
2756
- referencedColumns: ["id"];
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: "fk_tasks_milestone";
2821
- columns: ["milestone_id"];
2909
+ foreignKeyName: 'fk_tasks_milestone';
2910
+ columns: ['milestone_id'];
2822
2911
  isOneToOne: false;
2823
- referencedRelation: "prj_milestones";
2824
- referencedColumns: ["id"];
2912
+ referencedRelation: 'prj_milestones';
2913
+ referencedColumns: ['id'];
2825
2914
  },
2826
2915
  {
2827
- foreignKeyName: "fk_tasks_parent";
2828
- columns: ["parent_task_id"];
2916
+ foreignKeyName: 'fk_tasks_parent';
2917
+ columns: ['parent_task_id'];
2829
2918
  isOneToOne: false;
2830
- referencedRelation: "prj_tasks";
2831
- referencedColumns: ["id"];
2919
+ referencedRelation: 'prj_tasks';
2920
+ referencedColumns: ['id'];
2832
2921
  },
2833
2922
  {
2834
- foreignKeyName: "fk_tasks_project";
2835
- columns: ["project_id"];
2923
+ foreignKeyName: 'fk_tasks_project';
2924
+ columns: ['project_id'];
2836
2925
  isOneToOne: false;
2837
- referencedRelation: "prj_projects";
2838
- referencedColumns: ["id"];
2926
+ referencedRelation: 'prj_projects';
2927
+ referencedColumns: ['id'];
2839
2928
  },
2840
2929
  {
2841
- foreignKeyName: "prj_tasks_milestone_id_fkey";
2842
- columns: ["milestone_id"];
2930
+ foreignKeyName: 'prj_tasks_milestone_id_fkey';
2931
+ columns: ['milestone_id'];
2843
2932
  isOneToOne: false;
2844
- referencedRelation: "prj_milestones";
2845
- referencedColumns: ["id"];
2933
+ referencedRelation: 'prj_milestones';
2934
+ referencedColumns: ['id'];
2846
2935
  },
2847
2936
  {
2848
- foreignKeyName: "prj_tasks_organization_id_fkey";
2849
- columns: ["organization_id"];
2937
+ foreignKeyName: 'prj_tasks_organization_id_fkey';
2938
+ columns: ['organization_id'];
2850
2939
  isOneToOne: false;
2851
- referencedRelation: "organizations";
2852
- referencedColumns: ["id"];
2940
+ referencedRelation: 'organizations';
2941
+ referencedColumns: ['id'];
2853
2942
  },
2854
2943
  {
2855
- foreignKeyName: "prj_tasks_parent_task_id_fkey";
2856
- columns: ["parent_task_id"];
2944
+ foreignKeyName: 'prj_tasks_parent_task_id_fkey';
2945
+ columns: ['parent_task_id'];
2857
2946
  isOneToOne: false;
2858
- referencedRelation: "prj_tasks";
2859
- referencedColumns: ["id"];
2947
+ referencedRelation: 'prj_tasks';
2948
+ referencedColumns: ['id'];
2860
2949
  },
2861
2950
  {
2862
- foreignKeyName: "prj_tasks_project_id_fkey";
2863
- columns: ["project_id"];
2951
+ foreignKeyName: 'prj_tasks_project_id_fkey';
2952
+ columns: ['project_id'];
2864
2953
  isOneToOne: false;
2865
- referencedRelation: "prj_projects";
2866
- referencedColumns: ["id"];
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: "reported_requests_organization_id_fkey";
2937
- columns: ["organization_id"];
3025
+ foreignKeyName: 'reported_requests_organization_id_fkey';
3026
+ columns: ['organization_id'];
2938
3027
  isOneToOne: false;
2939
- referencedRelation: "organizations";
2940
- referencedColumns: ["id"];
3028
+ referencedRelation: 'organizations';
3029
+ referencedColumns: ['id'];
2941
3030
  },
2942
3031
  {
2943
- foreignKeyName: "reported_requests_project_id_fkey";
2944
- columns: ["project_id"];
3032
+ foreignKeyName: 'reported_requests_project_id_fkey';
3033
+ columns: ['project_id'];
2945
3034
  isOneToOne: false;
2946
- referencedRelation: "prj_projects";
2947
- referencedColumns: ["id"];
3035
+ referencedRelation: 'prj_projects';
3036
+ referencedColumns: ['id'];
2948
3037
  },
2949
3038
  {
2950
- foreignKeyName: "reported_requests_task_id_fkey";
2951
- columns: ["task_id"];
3039
+ foreignKeyName: 'reported_requests_task_id_fkey';
3040
+ columns: ['task_id'];
2952
3041
  isOneToOne: false;
2953
- referencedRelation: "prj_tasks";
2954
- referencedColumns: ["id"];
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: "session_messages_session_id_fkey";
2995
- columns: ["session_id"];
3083
+ foreignKeyName: 'session_messages_session_id_fkey';
3084
+ columns: ['session_id'];
2996
3085
  isOneToOne: false;
2997
- referencedRelation: "sessions";
2998
- referencedColumns: ["session_id"];
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: "fk_organization";
3054
- columns: ["organization_id"];
3142
+ foreignKeyName: 'fk_organization';
3143
+ columns: ['organization_id'];
3055
3144
  isOneToOne: false;
3056
- referencedRelation: "organizations";
3057
- referencedColumns: ["id"];
3145
+ referencedRelation: 'organizations';
3146
+ referencedColumns: ['id'];
3058
3147
  },
3059
3148
  {
3060
- foreignKeyName: "fk_user";
3061
- columns: ["user_id"];
3149
+ foreignKeyName: 'fk_user';
3150
+ columns: ['user_id'];
3062
3151
  isOneToOne: false;
3063
- referencedRelation: "users";
3064
- referencedColumns: ["id"];
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: "task_schedules_organization_id_fkey";
3141
- columns: ["organization_id"];
3229
+ foreignKeyName: 'task_schedules_organization_id_fkey';
3230
+ columns: ['organization_id'];
3142
3231
  isOneToOne: false;
3143
- referencedRelation: "organizations";
3144
- referencedColumns: ["id"];
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: "user_profiles_last_visited_org_fkey";
3200
- columns: ["last_visited_org"];
3288
+ foreignKeyName: 'user_profiles_last_visited_org_fkey';
3289
+ columns: ['last_visited_org'];
3201
3290
  isOneToOne: false;
3202
- referencedRelation: "organizations";
3203
- referencedColumns: ["id"];
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: "webhook_endpoints_organization_id_fkey";
3253
- columns: ["organization_id"];
3341
+ foreignKeyName: 'webhook_endpoints_organization_id_fkey';
3342
+ columns: ['organization_id'];
3254
3343
  isOneToOne: false;
3255
- referencedRelation: "organizations";
3256
- referencedColumns: ["id"];
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, "__InternalSupabase">;
3411
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
3412
- type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
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["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
3499
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
3417
3500
  schema: keyof DatabaseWithoutInternals;
3418
- } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3501
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
3419
3502
  Row: infer R;
3420
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
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