@elevasis/ui 2.25.0 → 2.25.1
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.css +11 -0
- package/dist/app/index.d.ts +457 -357
- package/dist/app/index.js +8 -7
- package/dist/auth/index.js +4 -4
- package/dist/charts/index.js +7 -7
- package/dist/{chunk-DDZOHLHB.js → chunk-26HQMR7S.js} +1 -1
- package/dist/{chunk-ZMXZ476Y.js → chunk-3AHEHVJ6.js} +3 -3
- package/dist/{chunk-LJWV4TWV.js → chunk-4ZFBVND2.js} +2 -2
- package/dist/{chunk-7D2HSSIW.js → chunk-7LJUTTXU.js} +5 -5
- package/dist/{chunk-ABV5LDDC.js → chunk-AZQY7AJR.js} +13 -24
- package/dist/{chunk-BIWHHWCJ.js → chunk-DWK2QIAK.js} +2 -1
- package/dist/{chunk-ZDKQNQ4X.js → chunk-GESXCQWY.js} +1 -1
- package/dist/{chunk-Z6FAH4XV.js → chunk-HKBEURCV.js} +1 -1
- package/dist/{chunk-HC2KV6BU.js → chunk-HOIT677G.js} +1 -1
- package/dist/chunk-IS53MXE4.js +230 -0
- package/dist/{chunk-WSC5LU3U.js → chunk-IX7LWINC.js} +6 -5
- package/dist/{chunk-AXXTN44Z.js → chunk-IYIZYMIE.js} +2 -2
- package/dist/{chunk-WWVSPOJY.js → chunk-JDQSCEEF.js} +1237 -642
- package/dist/{chunk-AZXSFDG2.js → chunk-JMI7L7Y7.js} +113 -63
- package/dist/{chunk-TSSKOQBX.js → chunk-KMAXFJPH.js} +2 -2
- package/dist/{chunk-HQ7M6PBW.js → chunk-KU7ZDWQ7.js} +1 -1
- package/dist/{chunk-ZGZZIR6K.js → chunk-L4RT57WU.js} +7 -7
- package/dist/{chunk-LK4MPIMK.js → chunk-MU4VPAMR.js} +2 -2
- package/dist/{chunk-3JCMO7SD.js → chunk-N55DVMAG.js} +1 -1
- package/dist/{chunk-EIOJNUPL.js → chunk-PNLJIPV5.js} +1 -1
- package/dist/{chunk-6Z3G4U2R.js → chunk-Q5BEODAT.js} +3 -2
- package/dist/{chunk-HVC2BTFO.js → chunk-QB2CC4VH.js} +1979 -257
- package/dist/{chunk-QJLRDTYS.js → chunk-RSG2O3HF.js} +932 -707
- package/dist/{chunk-M25JL54Z.js → chunk-RYTEQBAO.js} +1 -1
- package/dist/{chunk-XUYBOO32.js → chunk-U36X6NZM.js} +15 -7
- package/dist/{chunk-QSTH6T77.js → chunk-VKMNWHTL.js} +1 -1
- package/dist/{chunk-V3UOW2HG.js → chunk-VOVZLL23.js} +4 -4
- package/dist/{chunk-SLH2QLKV.js → chunk-WFTNY755.js} +1 -1
- package/dist/{chunk-DK2HVHCY.js → chunk-WKJ47GIW.js} +1 -1
- package/dist/chunk-X4WBGKJQ.js +138 -0
- package/dist/{chunk-QHSW4WHM.js → chunk-XTVZFT7U.js} +1 -1
- package/dist/components/index.css +11 -0
- package/dist/components/index.d.ts +478 -386
- package/dist/components/index.js +138 -336
- package/dist/components/navigation/index.css +11 -0
- package/dist/components/navigation/index.js +8 -8
- package/dist/features/auth/index.css +11 -0
- package/dist/features/auth/index.d.ts +369 -363
- package/dist/features/auth/index.js +7 -7
- package/dist/features/crm/index.css +11 -0
- package/dist/features/crm/index.d.ts +551 -360
- package/dist/features/crm/index.js +19 -19
- package/dist/features/dashboard/index.css +11 -0
- package/dist/features/dashboard/index.js +20 -20
- package/dist/features/delivery/index.css +11 -0
- package/dist/features/delivery/index.d.ts +363 -357
- package/dist/features/delivery/index.js +19 -19
- package/dist/features/lead-gen/index.css +11 -0
- package/dist/features/lead-gen/index.d.ts +160 -2
- package/dist/features/lead-gen/index.js +20 -19
- package/dist/features/monitoring/index.css +11 -0
- package/dist/features/monitoring/index.js +21 -21
- package/dist/features/monitoring/requests/index.css +11 -0
- package/dist/features/monitoring/requests/index.js +17 -17
- package/dist/features/operations/index.css +11 -0
- package/dist/features/operations/index.js +24 -23
- package/dist/features/seo/index.js +2 -2
- package/dist/features/settings/index.css +11 -0
- package/dist/features/settings/index.d.ts +369 -363
- package/dist/features/settings/index.js +19 -19
- package/dist/hooks/delivery/index.css +11 -0
- package/dist/hooks/delivery/index.d.ts +363 -357
- package/dist/hooks/delivery/index.js +2 -2
- package/dist/hooks/index.css +11 -0
- package/dist/hooks/index.d.ts +746 -399
- package/dist/hooks/index.js +17 -17
- package/dist/hooks/published.css +11 -0
- package/dist/hooks/published.d.ts +746 -399
- package/dist/hooks/published.js +17 -17
- package/dist/index.css +11 -0
- package/dist/index.d.ts +862 -381
- package/dist/index.js +17 -17
- package/dist/initialization/index.d.ts +369 -363
- package/dist/initialization/index.js +4 -4
- package/dist/layout/index.d.ts +6 -0
- package/dist/layout/index.js +5 -5
- package/dist/organization/index.css +11 -0
- package/dist/organization/index.js +4 -4
- package/dist/profile/index.d.ts +369 -363
- package/dist/profile/index.js +2 -2
- package/dist/provider/ElevasisServiceContext.d.ts +1 -0
- package/dist/provider/ElevasisServiceContext.js +1 -1
- package/dist/provider/index.css +11 -0
- package/dist/provider/index.d.ts +503 -362
- package/dist/provider/index.js +14 -14
- package/dist/provider/published.css +11 -0
- package/dist/provider/published.d.ts +494 -359
- package/dist/provider/published.js +12 -12
- package/dist/supabase/index.d.ts +369 -357
- package/dist/test-utils/index.js +1 -1
- package/dist/typeform/index.js +49 -20
- package/dist/types/index.d.ts +382 -363
- package/package.json +4 -4
- package/dist/chunk-CEWTOKE7.js +0 -109
- /package/dist/{chunk-IRW7JMQ4.js → chunk-5WWZXCS5.js} +0 -0
- /package/dist/{chunk-QJ2KCHKX.js → chunk-E565XMTQ.js} +0 -0
|
@@ -471,7 +471,7 @@ type Json = string | number | boolean | null | {
|
|
|
471
471
|
} | Json[];
|
|
472
472
|
type Database = {
|
|
473
473
|
__InternalSupabase: {
|
|
474
|
-
PostgrestVersion:
|
|
474
|
+
PostgrestVersion: "12.2.3 (519615d)";
|
|
475
475
|
};
|
|
476
476
|
public: {
|
|
477
477
|
Tables: {
|
|
@@ -514,11 +514,11 @@ type Database = {
|
|
|
514
514
|
};
|
|
515
515
|
Relationships: [
|
|
516
516
|
{
|
|
517
|
-
foreignKeyName:
|
|
518
|
-
columns: [
|
|
517
|
+
foreignKeyName: "acq_artifacts_organization_id_fkey";
|
|
518
|
+
columns: ["organization_id"];
|
|
519
519
|
isOneToOne: false;
|
|
520
|
-
referencedRelation:
|
|
521
|
-
referencedColumns: [
|
|
520
|
+
referencedRelation: "organizations";
|
|
521
|
+
referencedColumns: ["id"];
|
|
522
522
|
}
|
|
523
523
|
];
|
|
524
524
|
};
|
|
@@ -603,11 +603,11 @@ type Database = {
|
|
|
603
603
|
};
|
|
604
604
|
Relationships: [
|
|
605
605
|
{
|
|
606
|
-
foreignKeyName:
|
|
607
|
-
columns: [
|
|
606
|
+
foreignKeyName: "acq_companies_organization_id_fkey";
|
|
607
|
+
columns: ["organization_id"];
|
|
608
608
|
isOneToOne: false;
|
|
609
|
-
referencedRelation:
|
|
610
|
-
referencedColumns: [
|
|
609
|
+
referencedRelation: "organizations";
|
|
610
|
+
referencedColumns: ["id"];
|
|
611
611
|
}
|
|
612
612
|
];
|
|
613
613
|
};
|
|
@@ -698,18 +698,18 @@ type Database = {
|
|
|
698
698
|
};
|
|
699
699
|
Relationships: [
|
|
700
700
|
{
|
|
701
|
-
foreignKeyName:
|
|
702
|
-
columns: [
|
|
701
|
+
foreignKeyName: "acq_contacts_company_id_fkey";
|
|
702
|
+
columns: ["company_id"];
|
|
703
703
|
isOneToOne: false;
|
|
704
|
-
referencedRelation:
|
|
705
|
-
referencedColumns: [
|
|
704
|
+
referencedRelation: "acq_companies";
|
|
705
|
+
referencedColumns: ["id"];
|
|
706
706
|
},
|
|
707
707
|
{
|
|
708
|
-
foreignKeyName:
|
|
709
|
-
columns: [
|
|
708
|
+
foreignKeyName: "acq_contacts_organization_id_fkey";
|
|
709
|
+
columns: ["organization_id"];
|
|
710
710
|
isOneToOne: false;
|
|
711
|
-
referencedRelation:
|
|
712
|
-
referencedColumns: [
|
|
711
|
+
referencedRelation: "organizations";
|
|
712
|
+
referencedColumns: ["id"];
|
|
713
713
|
}
|
|
714
714
|
];
|
|
715
715
|
};
|
|
@@ -746,11 +746,11 @@ type Database = {
|
|
|
746
746
|
};
|
|
747
747
|
Relationships: [
|
|
748
748
|
{
|
|
749
|
-
foreignKeyName:
|
|
750
|
-
columns: [
|
|
749
|
+
foreignKeyName: "acq_content_organization_id_fkey";
|
|
750
|
+
columns: ["organization_id"];
|
|
751
751
|
isOneToOne: false;
|
|
752
|
-
referencedRelation:
|
|
753
|
-
referencedColumns: [
|
|
752
|
+
referencedRelation: "organizations";
|
|
753
|
+
referencedColumns: ["id"];
|
|
754
754
|
}
|
|
755
755
|
];
|
|
756
756
|
};
|
|
@@ -814,18 +814,18 @@ type Database = {
|
|
|
814
814
|
};
|
|
815
815
|
Relationships: [
|
|
816
816
|
{
|
|
817
|
-
foreignKeyName:
|
|
818
|
-
columns: [
|
|
817
|
+
foreignKeyName: "acq_content_distributions_content_id_fkey";
|
|
818
|
+
columns: ["content_id"];
|
|
819
819
|
isOneToOne: false;
|
|
820
|
-
referencedRelation:
|
|
821
|
-
referencedColumns: [
|
|
820
|
+
referencedRelation: "acq_content";
|
|
821
|
+
referencedColumns: ["id"];
|
|
822
822
|
},
|
|
823
823
|
{
|
|
824
|
-
foreignKeyName:
|
|
825
|
-
columns: [
|
|
824
|
+
foreignKeyName: "acq_content_distributions_organization_id_fkey";
|
|
825
|
+
columns: ["organization_id"];
|
|
826
826
|
isOneToOne: false;
|
|
827
|
-
referencedRelation:
|
|
828
|
-
referencedColumns: [
|
|
827
|
+
referencedRelation: "organizations";
|
|
828
|
+
referencedColumns: ["id"];
|
|
829
829
|
}
|
|
830
830
|
];
|
|
831
831
|
};
|
|
@@ -859,18 +859,18 @@ type Database = {
|
|
|
859
859
|
};
|
|
860
860
|
Relationships: [
|
|
861
861
|
{
|
|
862
|
-
foreignKeyName:
|
|
863
|
-
columns: [
|
|
862
|
+
foreignKeyName: "acq_deal_notes_deal_id_fkey";
|
|
863
|
+
columns: ["deal_id"];
|
|
864
864
|
isOneToOne: false;
|
|
865
|
-
referencedRelation:
|
|
866
|
-
referencedColumns: [
|
|
865
|
+
referencedRelation: "acq_deals";
|
|
866
|
+
referencedColumns: ["id"];
|
|
867
867
|
},
|
|
868
868
|
{
|
|
869
|
-
foreignKeyName:
|
|
870
|
-
columns: [
|
|
869
|
+
foreignKeyName: "acq_deal_notes_organization_id_fkey";
|
|
870
|
+
columns: ["organization_id"];
|
|
871
871
|
isOneToOne: false;
|
|
872
|
-
referencedRelation:
|
|
873
|
-
referencedColumns: [
|
|
872
|
+
referencedRelation: "organizations";
|
|
873
|
+
referencedColumns: ["id"];
|
|
874
874
|
}
|
|
875
875
|
];
|
|
876
876
|
};
|
|
@@ -922,18 +922,18 @@ type Database = {
|
|
|
922
922
|
};
|
|
923
923
|
Relationships: [
|
|
924
924
|
{
|
|
925
|
-
foreignKeyName:
|
|
926
|
-
columns: [
|
|
925
|
+
foreignKeyName: "acq_deal_tasks_deal_id_fkey";
|
|
926
|
+
columns: ["deal_id"];
|
|
927
927
|
isOneToOne: false;
|
|
928
|
-
referencedRelation:
|
|
929
|
-
referencedColumns: [
|
|
928
|
+
referencedRelation: "acq_deals";
|
|
929
|
+
referencedColumns: ["id"];
|
|
930
930
|
},
|
|
931
931
|
{
|
|
932
|
-
foreignKeyName:
|
|
933
|
-
columns: [
|
|
932
|
+
foreignKeyName: "acq_deal_tasks_organization_id_fkey";
|
|
933
|
+
columns: ["organization_id"];
|
|
934
934
|
isOneToOne: false;
|
|
935
|
-
referencedRelation:
|
|
936
|
-
referencedColumns: [
|
|
935
|
+
referencedRelation: "organizations";
|
|
936
|
+
referencedColumns: ["id"];
|
|
937
937
|
}
|
|
938
938
|
];
|
|
939
939
|
};
|
|
@@ -950,6 +950,8 @@ type Database = {
|
|
|
950
950
|
discovery_submitted_by: string | null;
|
|
951
951
|
id: string;
|
|
952
952
|
initial_fee: number | null;
|
|
953
|
+
instantly_email_account: string | null;
|
|
954
|
+
instantly_thread_uuid: string | null;
|
|
953
955
|
monthly_fee: number | null;
|
|
954
956
|
organization_id: string;
|
|
955
957
|
payment_link_sent_at: string | null;
|
|
@@ -985,6 +987,8 @@ type Database = {
|
|
|
985
987
|
discovery_submitted_by?: string | null;
|
|
986
988
|
id?: string;
|
|
987
989
|
initial_fee?: number | null;
|
|
990
|
+
instantly_email_account?: string | null;
|
|
991
|
+
instantly_thread_uuid?: string | null;
|
|
988
992
|
monthly_fee?: number | null;
|
|
989
993
|
organization_id: string;
|
|
990
994
|
payment_link_sent_at?: string | null;
|
|
@@ -1020,6 +1024,8 @@ type Database = {
|
|
|
1020
1024
|
discovery_submitted_by?: string | null;
|
|
1021
1025
|
id?: string;
|
|
1022
1026
|
initial_fee?: number | null;
|
|
1027
|
+
instantly_email_account?: string | null;
|
|
1028
|
+
instantly_thread_uuid?: string | null;
|
|
1023
1029
|
monthly_fee?: number | null;
|
|
1024
1030
|
organization_id?: string;
|
|
1025
1031
|
payment_link_sent_at?: string | null;
|
|
@@ -1045,25 +1051,25 @@ type Database = {
|
|
|
1045
1051
|
};
|
|
1046
1052
|
Relationships: [
|
|
1047
1053
|
{
|
|
1048
|
-
foreignKeyName:
|
|
1049
|
-
columns: [
|
|
1054
|
+
foreignKeyName: "acq_deals_contact_id_fkey";
|
|
1055
|
+
columns: ["contact_id"];
|
|
1050
1056
|
isOneToOne: false;
|
|
1051
|
-
referencedRelation:
|
|
1052
|
-
referencedColumns: [
|
|
1057
|
+
referencedRelation: "acq_contacts";
|
|
1058
|
+
referencedColumns: ["id"];
|
|
1053
1059
|
},
|
|
1054
1060
|
{
|
|
1055
|
-
foreignKeyName:
|
|
1056
|
-
columns: [
|
|
1061
|
+
foreignKeyName: "acq_deals_organization_id_fkey";
|
|
1062
|
+
columns: ["organization_id"];
|
|
1057
1063
|
isOneToOne: false;
|
|
1058
|
-
referencedRelation:
|
|
1059
|
-
referencedColumns: [
|
|
1064
|
+
referencedRelation: "organizations";
|
|
1065
|
+
referencedColumns: ["id"];
|
|
1060
1066
|
},
|
|
1061
1067
|
{
|
|
1062
|
-
foreignKeyName:
|
|
1063
|
-
columns: [
|
|
1068
|
+
foreignKeyName: "acq_deals_source_list_id_fkey";
|
|
1069
|
+
columns: ["source_list_id"];
|
|
1064
1070
|
isOneToOne: false;
|
|
1065
|
-
referencedRelation:
|
|
1066
|
-
referencedColumns: [
|
|
1071
|
+
referencedRelation: "acq_lists";
|
|
1072
|
+
referencedColumns: ["id"];
|
|
1067
1073
|
}
|
|
1068
1074
|
];
|
|
1069
1075
|
};
|
|
@@ -1115,25 +1121,25 @@ type Database = {
|
|
|
1115
1121
|
};
|
|
1116
1122
|
Relationships: [
|
|
1117
1123
|
{
|
|
1118
|
-
foreignKeyName:
|
|
1119
|
-
columns: [
|
|
1124
|
+
foreignKeyName: "acq_list_companies_company_id_fkey";
|
|
1125
|
+
columns: ["company_id"];
|
|
1120
1126
|
isOneToOne: false;
|
|
1121
|
-
referencedRelation:
|
|
1122
|
-
referencedColumns: [
|
|
1127
|
+
referencedRelation: "acq_companies";
|
|
1128
|
+
referencedColumns: ["id"];
|
|
1123
1129
|
},
|
|
1124
1130
|
{
|
|
1125
|
-
foreignKeyName:
|
|
1126
|
-
columns: [
|
|
1131
|
+
foreignKeyName: "acq_list_companies_list_id_fkey";
|
|
1132
|
+
columns: ["list_id"];
|
|
1127
1133
|
isOneToOne: false;
|
|
1128
|
-
referencedRelation:
|
|
1129
|
-
referencedColumns: [
|
|
1134
|
+
referencedRelation: "acq_lists";
|
|
1135
|
+
referencedColumns: ["id"];
|
|
1130
1136
|
},
|
|
1131
1137
|
{
|
|
1132
|
-
foreignKeyName:
|
|
1133
|
-
columns: [
|
|
1138
|
+
foreignKeyName: "acq_list_companies_source_execution_id_fkey";
|
|
1139
|
+
columns: ["source_execution_id"];
|
|
1134
1140
|
isOneToOne: false;
|
|
1135
|
-
referencedRelation:
|
|
1136
|
-
referencedColumns: [
|
|
1141
|
+
referencedRelation: "execution_logs";
|
|
1142
|
+
referencedColumns: ["execution_id"];
|
|
1137
1143
|
}
|
|
1138
1144
|
];
|
|
1139
1145
|
};
|
|
@@ -1161,18 +1167,18 @@ type Database = {
|
|
|
1161
1167
|
};
|
|
1162
1168
|
Relationships: [
|
|
1163
1169
|
{
|
|
1164
|
-
foreignKeyName:
|
|
1165
|
-
columns: [
|
|
1170
|
+
foreignKeyName: "acq_list_executions_execution_id_fkey";
|
|
1171
|
+
columns: ["execution_id"];
|
|
1166
1172
|
isOneToOne: false;
|
|
1167
|
-
referencedRelation:
|
|
1168
|
-
referencedColumns: [
|
|
1173
|
+
referencedRelation: "execution_logs";
|
|
1174
|
+
referencedColumns: ["execution_id"];
|
|
1169
1175
|
},
|
|
1170
1176
|
{
|
|
1171
|
-
foreignKeyName:
|
|
1172
|
-
columns: [
|
|
1177
|
+
foreignKeyName: "acq_list_executions_list_id_fkey";
|
|
1178
|
+
columns: ["list_id"];
|
|
1173
1179
|
isOneToOne: false;
|
|
1174
|
-
referencedRelation:
|
|
1175
|
-
referencedColumns: [
|
|
1180
|
+
referencedRelation: "acq_lists";
|
|
1181
|
+
referencedColumns: ["id"];
|
|
1176
1182
|
}
|
|
1177
1183
|
];
|
|
1178
1184
|
};
|
|
@@ -1224,25 +1230,25 @@ type Database = {
|
|
|
1224
1230
|
};
|
|
1225
1231
|
Relationships: [
|
|
1226
1232
|
{
|
|
1227
|
-
foreignKeyName:
|
|
1228
|
-
columns: [
|
|
1233
|
+
foreignKeyName: "acq_list_members_contact_id_fkey";
|
|
1234
|
+
columns: ["contact_id"];
|
|
1229
1235
|
isOneToOne: false;
|
|
1230
|
-
referencedRelation:
|
|
1231
|
-
referencedColumns: [
|
|
1236
|
+
referencedRelation: "acq_contacts";
|
|
1237
|
+
referencedColumns: ["id"];
|
|
1232
1238
|
},
|
|
1233
1239
|
{
|
|
1234
|
-
foreignKeyName:
|
|
1235
|
-
columns: [
|
|
1240
|
+
foreignKeyName: "acq_list_members_list_id_fkey";
|
|
1241
|
+
columns: ["list_id"];
|
|
1236
1242
|
isOneToOne: false;
|
|
1237
|
-
referencedRelation:
|
|
1238
|
-
referencedColumns: [
|
|
1243
|
+
referencedRelation: "acq_lists";
|
|
1244
|
+
referencedColumns: ["id"];
|
|
1239
1245
|
},
|
|
1240
1246
|
{
|
|
1241
|
-
foreignKeyName:
|
|
1242
|
-
columns: [
|
|
1247
|
+
foreignKeyName: "acq_list_members_source_execution_id_fkey";
|
|
1248
|
+
columns: ["source_execution_id"];
|
|
1243
1249
|
isOneToOne: false;
|
|
1244
|
-
referencedRelation:
|
|
1245
|
-
referencedColumns: [
|
|
1250
|
+
referencedRelation: "execution_logs";
|
|
1251
|
+
referencedColumns: ["execution_id"];
|
|
1246
1252
|
}
|
|
1247
1253
|
];
|
|
1248
1254
|
};
|
|
@@ -1297,11 +1303,11 @@ type Database = {
|
|
|
1297
1303
|
};
|
|
1298
1304
|
Relationships: [
|
|
1299
1305
|
{
|
|
1300
|
-
foreignKeyName:
|
|
1301
|
-
columns: [
|
|
1306
|
+
foreignKeyName: "acq_lists_organization_id_fkey";
|
|
1307
|
+
columns: ["organization_id"];
|
|
1302
1308
|
isOneToOne: false;
|
|
1303
|
-
referencedRelation:
|
|
1304
|
-
referencedColumns: [
|
|
1309
|
+
referencedRelation: "organizations";
|
|
1310
|
+
referencedColumns: ["id"];
|
|
1305
1311
|
}
|
|
1306
1312
|
];
|
|
1307
1313
|
};
|
|
@@ -1377,18 +1383,18 @@ type Database = {
|
|
|
1377
1383
|
};
|
|
1378
1384
|
Relationships: [
|
|
1379
1385
|
{
|
|
1380
|
-
foreignKeyName:
|
|
1381
|
-
columns: [
|
|
1386
|
+
foreignKeyName: "acq_seo_metrics_organization_id_fkey";
|
|
1387
|
+
columns: ["organization_id"];
|
|
1382
1388
|
isOneToOne: false;
|
|
1383
|
-
referencedRelation:
|
|
1384
|
-
referencedColumns: [
|
|
1389
|
+
referencedRelation: "organizations";
|
|
1390
|
+
referencedColumns: ["id"];
|
|
1385
1391
|
},
|
|
1386
1392
|
{
|
|
1387
|
-
foreignKeyName:
|
|
1388
|
-
columns: [
|
|
1393
|
+
foreignKeyName: "acq_seo_metrics_seo_page_id_fkey";
|
|
1394
|
+
columns: ["seo_page_id"];
|
|
1389
1395
|
isOneToOne: false;
|
|
1390
|
-
referencedRelation:
|
|
1391
|
-
referencedColumns: [
|
|
1396
|
+
referencedRelation: "acq_seo_pages";
|
|
1397
|
+
referencedColumns: ["id"];
|
|
1392
1398
|
}
|
|
1393
1399
|
];
|
|
1394
1400
|
};
|
|
@@ -1464,11 +1470,11 @@ type Database = {
|
|
|
1464
1470
|
};
|
|
1465
1471
|
Relationships: [
|
|
1466
1472
|
{
|
|
1467
|
-
foreignKeyName:
|
|
1468
|
-
columns: [
|
|
1473
|
+
foreignKeyName: "acq_seo_pages_organization_id_fkey";
|
|
1474
|
+
columns: ["organization_id"];
|
|
1469
1475
|
isOneToOne: false;
|
|
1470
|
-
referencedRelation:
|
|
1471
|
-
referencedColumns: [
|
|
1476
|
+
referencedRelation: "organizations";
|
|
1477
|
+
referencedColumns: ["id"];
|
|
1472
1478
|
}
|
|
1473
1479
|
];
|
|
1474
1480
|
};
|
|
@@ -1565,11 +1571,11 @@ type Database = {
|
|
|
1565
1571
|
};
|
|
1566
1572
|
Relationships: [
|
|
1567
1573
|
{
|
|
1568
|
-
foreignKeyName:
|
|
1569
|
-
columns: [
|
|
1574
|
+
foreignKeyName: "acq_social_posts_organization_id_fkey";
|
|
1575
|
+
columns: ["organization_id"];
|
|
1570
1576
|
isOneToOne: false;
|
|
1571
|
-
referencedRelation:
|
|
1572
|
-
referencedColumns: [
|
|
1577
|
+
referencedRelation: "organizations";
|
|
1578
|
+
referencedColumns: ["id"];
|
|
1573
1579
|
}
|
|
1574
1580
|
];
|
|
1575
1581
|
};
|
|
@@ -1624,11 +1630,11 @@ type Database = {
|
|
|
1624
1630
|
};
|
|
1625
1631
|
Relationships: [
|
|
1626
1632
|
{
|
|
1627
|
-
foreignKeyName:
|
|
1628
|
-
columns: [
|
|
1633
|
+
foreignKeyName: "activities_organization_id_fkey";
|
|
1634
|
+
columns: ["organization_id"];
|
|
1629
1635
|
isOneToOne: false;
|
|
1630
|
-
referencedRelation:
|
|
1631
|
-
referencedColumns: [
|
|
1636
|
+
referencedRelation: "organizations";
|
|
1637
|
+
referencedColumns: ["id"];
|
|
1632
1638
|
}
|
|
1633
1639
|
];
|
|
1634
1640
|
};
|
|
@@ -1659,11 +1665,11 @@ type Database = {
|
|
|
1659
1665
|
};
|
|
1660
1666
|
Relationships: [
|
|
1661
1667
|
{
|
|
1662
|
-
foreignKeyName:
|
|
1663
|
-
columns: [
|
|
1668
|
+
foreignKeyName: "api_keys_organization_id_fkey";
|
|
1669
|
+
columns: ["organization_id"];
|
|
1664
1670
|
isOneToOne: false;
|
|
1665
|
-
referencedRelation:
|
|
1666
|
-
referencedColumns: [
|
|
1671
|
+
referencedRelation: "organizations";
|
|
1672
|
+
referencedColumns: ["id"];
|
|
1667
1673
|
}
|
|
1668
1674
|
];
|
|
1669
1675
|
};
|
|
@@ -1742,25 +1748,25 @@ type Database = {
|
|
|
1742
1748
|
};
|
|
1743
1749
|
Relationships: [
|
|
1744
1750
|
{
|
|
1745
|
-
foreignKeyName:
|
|
1746
|
-
columns: [
|
|
1751
|
+
foreignKeyName: "command_queue_completed_by_fkey";
|
|
1752
|
+
columns: ["completed_by"];
|
|
1747
1753
|
isOneToOne: false;
|
|
1748
|
-
referencedRelation:
|
|
1749
|
-
referencedColumns: [
|
|
1754
|
+
referencedRelation: "users";
|
|
1755
|
+
referencedColumns: ["id"];
|
|
1750
1756
|
},
|
|
1751
1757
|
{
|
|
1752
|
-
foreignKeyName:
|
|
1753
|
-
columns: [
|
|
1758
|
+
foreignKeyName: "command_queue_organization_id_fkey";
|
|
1759
|
+
columns: ["organization_id"];
|
|
1754
1760
|
isOneToOne: false;
|
|
1755
|
-
referencedRelation:
|
|
1756
|
-
referencedColumns: [
|
|
1761
|
+
referencedRelation: "organizations";
|
|
1762
|
+
referencedColumns: ["id"];
|
|
1757
1763
|
},
|
|
1758
1764
|
{
|
|
1759
|
-
foreignKeyName:
|
|
1760
|
-
columns: [
|
|
1765
|
+
foreignKeyName: "command_queue_target_execution_id_fkey";
|
|
1766
|
+
columns: ["target_execution_id"];
|
|
1761
1767
|
isOneToOne: false;
|
|
1762
|
-
referencedRelation:
|
|
1763
|
-
referencedColumns: [
|
|
1768
|
+
referencedRelation: "execution_logs";
|
|
1769
|
+
referencedColumns: ["execution_id"];
|
|
1764
1770
|
}
|
|
1765
1771
|
];
|
|
1766
1772
|
};
|
|
@@ -1800,18 +1806,18 @@ type Database = {
|
|
|
1800
1806
|
};
|
|
1801
1807
|
Relationships: [
|
|
1802
1808
|
{
|
|
1803
|
-
foreignKeyName:
|
|
1804
|
-
columns: [
|
|
1809
|
+
foreignKeyName: "credentials_created_by_fkey";
|
|
1810
|
+
columns: ["created_by"];
|
|
1805
1811
|
isOneToOne: false;
|
|
1806
|
-
referencedRelation:
|
|
1807
|
-
referencedColumns: [
|
|
1812
|
+
referencedRelation: "users";
|
|
1813
|
+
referencedColumns: ["id"];
|
|
1808
1814
|
},
|
|
1809
1815
|
{
|
|
1810
|
-
foreignKeyName:
|
|
1811
|
-
columns: [
|
|
1816
|
+
foreignKeyName: "credentials_organization_id_fkey";
|
|
1817
|
+
columns: ["organization_id"];
|
|
1812
1818
|
isOneToOne: false;
|
|
1813
|
-
referencedRelation:
|
|
1814
|
-
referencedColumns: [
|
|
1819
|
+
referencedRelation: "organizations";
|
|
1820
|
+
referencedColumns: ["id"];
|
|
1815
1821
|
}
|
|
1816
1822
|
];
|
|
1817
1823
|
};
|
|
@@ -1857,11 +1863,11 @@ type Database = {
|
|
|
1857
1863
|
};
|
|
1858
1864
|
Relationships: [
|
|
1859
1865
|
{
|
|
1860
|
-
foreignKeyName:
|
|
1861
|
-
columns: [
|
|
1866
|
+
foreignKeyName: "deployments_organization_id_fkey";
|
|
1867
|
+
columns: ["organization_id"];
|
|
1862
1868
|
isOneToOne: false;
|
|
1863
|
-
referencedRelation:
|
|
1864
|
-
referencedColumns: [
|
|
1869
|
+
referencedRelation: "organizations";
|
|
1870
|
+
referencedColumns: ["id"];
|
|
1865
1871
|
}
|
|
1866
1872
|
];
|
|
1867
1873
|
};
|
|
@@ -1916,25 +1922,25 @@ type Database = {
|
|
|
1916
1922
|
};
|
|
1917
1923
|
Relationships: [
|
|
1918
1924
|
{
|
|
1919
|
-
foreignKeyName:
|
|
1920
|
-
columns: [
|
|
1925
|
+
foreignKeyName: "execution_errors_execution_id_fkey";
|
|
1926
|
+
columns: ["execution_id"];
|
|
1921
1927
|
isOneToOne: false;
|
|
1922
|
-
referencedRelation:
|
|
1923
|
-
referencedColumns: [
|
|
1928
|
+
referencedRelation: "execution_logs";
|
|
1929
|
+
referencedColumns: ["execution_id"];
|
|
1924
1930
|
},
|
|
1925
1931
|
{
|
|
1926
|
-
foreignKeyName:
|
|
1927
|
-
columns: [
|
|
1932
|
+
foreignKeyName: "execution_errors_organization_id_fkey";
|
|
1933
|
+
columns: ["organization_id"];
|
|
1928
1934
|
isOneToOne: false;
|
|
1929
|
-
referencedRelation:
|
|
1930
|
-
referencedColumns: [
|
|
1935
|
+
referencedRelation: "organizations";
|
|
1936
|
+
referencedColumns: ["id"];
|
|
1931
1937
|
},
|
|
1932
1938
|
{
|
|
1933
|
-
foreignKeyName:
|
|
1934
|
-
columns: [
|
|
1939
|
+
foreignKeyName: "execution_errors_resolved_by_fkey";
|
|
1940
|
+
columns: ["resolved_by"];
|
|
1935
1941
|
isOneToOne: false;
|
|
1936
|
-
referencedRelation:
|
|
1937
|
-
referencedColumns: [
|
|
1942
|
+
referencedRelation: "users";
|
|
1943
|
+
referencedColumns: ["id"];
|
|
1938
1944
|
}
|
|
1939
1945
|
];
|
|
1940
1946
|
};
|
|
@@ -2016,32 +2022,32 @@ type Database = {
|
|
|
2016
2022
|
};
|
|
2017
2023
|
Relationships: [
|
|
2018
2024
|
{
|
|
2019
|
-
foreignKeyName:
|
|
2020
|
-
columns: [
|
|
2025
|
+
foreignKeyName: "execution_history_organization_id_fkey";
|
|
2026
|
+
columns: ["organization_id"];
|
|
2021
2027
|
isOneToOne: false;
|
|
2022
|
-
referencedRelation:
|
|
2023
|
-
referencedColumns: [
|
|
2028
|
+
referencedRelation: "organizations";
|
|
2029
|
+
referencedColumns: ["id"];
|
|
2024
2030
|
},
|
|
2025
2031
|
{
|
|
2026
|
-
foreignKeyName:
|
|
2027
|
-
columns: [
|
|
2032
|
+
foreignKeyName: "execution_logs_origin_execution_id_fkey";
|
|
2033
|
+
columns: ["origin_execution_id"];
|
|
2028
2034
|
isOneToOne: false;
|
|
2029
|
-
referencedRelation:
|
|
2030
|
-
referencedColumns: [
|
|
2035
|
+
referencedRelation: "execution_logs";
|
|
2036
|
+
referencedColumns: ["execution_id"];
|
|
2031
2037
|
},
|
|
2032
2038
|
{
|
|
2033
|
-
foreignKeyName:
|
|
2034
|
-
columns: [
|
|
2039
|
+
foreignKeyName: "execution_logs_session_id_fkey";
|
|
2040
|
+
columns: ["session_id"];
|
|
2035
2041
|
isOneToOne: false;
|
|
2036
|
-
referencedRelation:
|
|
2037
|
-
referencedColumns: [
|
|
2042
|
+
referencedRelation: "sessions";
|
|
2043
|
+
referencedColumns: ["session_id"];
|
|
2038
2044
|
},
|
|
2039
2045
|
{
|
|
2040
|
-
foreignKeyName:
|
|
2041
|
-
columns: [
|
|
2046
|
+
foreignKeyName: "execution_logs_user_id_fkey";
|
|
2047
|
+
columns: ["user_id"];
|
|
2042
2048
|
isOneToOne: false;
|
|
2043
|
-
referencedRelation:
|
|
2044
|
-
referencedColumns: [
|
|
2049
|
+
referencedRelation: "users";
|
|
2050
|
+
referencedColumns: ["id"];
|
|
2045
2051
|
}
|
|
2046
2052
|
];
|
|
2047
2053
|
};
|
|
@@ -2087,18 +2093,18 @@ type Database = {
|
|
|
2087
2093
|
};
|
|
2088
2094
|
Relationships: [
|
|
2089
2095
|
{
|
|
2090
|
-
foreignKeyName:
|
|
2091
|
-
columns: [
|
|
2096
|
+
foreignKeyName: "execution_metrics_execution_id_fkey";
|
|
2097
|
+
columns: ["execution_id"];
|
|
2092
2098
|
isOneToOne: true;
|
|
2093
|
-
referencedRelation:
|
|
2094
|
-
referencedColumns: [
|
|
2099
|
+
referencedRelation: "execution_logs";
|
|
2100
|
+
referencedColumns: ["execution_id"];
|
|
2095
2101
|
},
|
|
2096
2102
|
{
|
|
2097
|
-
foreignKeyName:
|
|
2098
|
-
columns: [
|
|
2103
|
+
foreignKeyName: "execution_metrics_organization_id_fkey";
|
|
2104
|
+
columns: ["organization_id"];
|
|
2099
2105
|
isOneToOne: false;
|
|
2100
|
-
referencedRelation:
|
|
2101
|
-
referencedColumns: [
|
|
2106
|
+
referencedRelation: "organizations";
|
|
2107
|
+
referencedColumns: ["id"];
|
|
2102
2108
|
}
|
|
2103
2109
|
];
|
|
2104
2110
|
};
|
|
@@ -2141,18 +2147,18 @@ type Database = {
|
|
|
2141
2147
|
};
|
|
2142
2148
|
Relationships: [
|
|
2143
2149
|
{
|
|
2144
|
-
foreignKeyName:
|
|
2145
|
-
columns: [
|
|
2150
|
+
foreignKeyName: "notifications_organization_id_fkey";
|
|
2151
|
+
columns: ["organization_id"];
|
|
2146
2152
|
isOneToOne: false;
|
|
2147
|
-
referencedRelation:
|
|
2148
|
-
referencedColumns: [
|
|
2153
|
+
referencedRelation: "organizations";
|
|
2154
|
+
referencedColumns: ["id"];
|
|
2149
2155
|
},
|
|
2150
2156
|
{
|
|
2151
|
-
foreignKeyName:
|
|
2152
|
-
columns: [
|
|
2157
|
+
foreignKeyName: "notifications_user_id_fkey";
|
|
2158
|
+
columns: ["user_id"];
|
|
2153
2159
|
isOneToOne: false;
|
|
2154
|
-
referencedRelation:
|
|
2155
|
-
referencedColumns: [
|
|
2160
|
+
referencedRelation: "users";
|
|
2161
|
+
referencedColumns: ["id"];
|
|
2156
2162
|
}
|
|
2157
2163
|
];
|
|
2158
2164
|
};
|
|
@@ -2207,18 +2213,18 @@ type Database = {
|
|
|
2207
2213
|
};
|
|
2208
2214
|
Relationships: [
|
|
2209
2215
|
{
|
|
2210
|
-
foreignKeyName:
|
|
2211
|
-
columns: [
|
|
2216
|
+
foreignKeyName: "org_invitations_inviter_user_id_fkey";
|
|
2217
|
+
columns: ["inviter_user_id"];
|
|
2212
2218
|
isOneToOne: false;
|
|
2213
|
-
referencedRelation:
|
|
2214
|
-
referencedColumns: [
|
|
2219
|
+
referencedRelation: "users";
|
|
2220
|
+
referencedColumns: ["id"];
|
|
2215
2221
|
},
|
|
2216
2222
|
{
|
|
2217
|
-
foreignKeyName:
|
|
2218
|
-
columns: [
|
|
2223
|
+
foreignKeyName: "org_invitations_organization_id_fkey";
|
|
2224
|
+
columns: ["organization_id"];
|
|
2219
2225
|
isOneToOne: false;
|
|
2220
|
-
referencedRelation:
|
|
2221
|
-
referencedColumns: [
|
|
2226
|
+
referencedRelation: "organizations";
|
|
2227
|
+
referencedColumns: ["id"];
|
|
2222
2228
|
}
|
|
2223
2229
|
];
|
|
2224
2230
|
};
|
|
@@ -2261,18 +2267,18 @@ type Database = {
|
|
|
2261
2267
|
};
|
|
2262
2268
|
Relationships: [
|
|
2263
2269
|
{
|
|
2264
|
-
foreignKeyName:
|
|
2265
|
-
columns: [
|
|
2270
|
+
foreignKeyName: "org_memberships_organization_id_fkey";
|
|
2271
|
+
columns: ["organization_id"];
|
|
2266
2272
|
isOneToOne: false;
|
|
2267
|
-
referencedRelation:
|
|
2268
|
-
referencedColumns: [
|
|
2273
|
+
referencedRelation: "organizations";
|
|
2274
|
+
referencedColumns: ["id"];
|
|
2269
2275
|
},
|
|
2270
2276
|
{
|
|
2271
|
-
foreignKeyName:
|
|
2272
|
-
columns: [
|
|
2277
|
+
foreignKeyName: "org_memberships_user_id_fkey";
|
|
2278
|
+
columns: ["user_id"];
|
|
2273
2279
|
isOneToOne: false;
|
|
2274
|
-
referencedRelation:
|
|
2275
|
-
referencedColumns: [
|
|
2280
|
+
referencedRelation: "users";
|
|
2281
|
+
referencedColumns: ["id"];
|
|
2276
2282
|
}
|
|
2277
2283
|
];
|
|
2278
2284
|
};
|
|
@@ -2297,25 +2303,25 @@ type Database = {
|
|
|
2297
2303
|
};
|
|
2298
2304
|
Relationships: [
|
|
2299
2305
|
{
|
|
2300
|
-
foreignKeyName:
|
|
2301
|
-
columns: [
|
|
2306
|
+
foreignKeyName: "org_rol_assignments_granted_by_fkey";
|
|
2307
|
+
columns: ["granted_by"];
|
|
2302
2308
|
isOneToOne: false;
|
|
2303
|
-
referencedRelation:
|
|
2304
|
-
referencedColumns: [
|
|
2309
|
+
referencedRelation: "users";
|
|
2310
|
+
referencedColumns: ["id"];
|
|
2305
2311
|
},
|
|
2306
2312
|
{
|
|
2307
|
-
foreignKeyName:
|
|
2308
|
-
columns: [
|
|
2313
|
+
foreignKeyName: "org_rol_assignments_membership_id_fkey";
|
|
2314
|
+
columns: ["membership_id"];
|
|
2309
2315
|
isOneToOne: false;
|
|
2310
|
-
referencedRelation:
|
|
2311
|
-
referencedColumns: [
|
|
2316
|
+
referencedRelation: "org_memberships";
|
|
2317
|
+
referencedColumns: ["id"];
|
|
2312
2318
|
},
|
|
2313
2319
|
{
|
|
2314
|
-
foreignKeyName:
|
|
2315
|
-
columns: [
|
|
2320
|
+
foreignKeyName: "org_rol_assignments_role_id_fkey";
|
|
2321
|
+
columns: ["role_id"];
|
|
2316
2322
|
isOneToOne: false;
|
|
2317
|
-
referencedRelation:
|
|
2318
|
-
referencedColumns: [
|
|
2323
|
+
referencedRelation: "org_rol_definitions";
|
|
2324
|
+
referencedColumns: ["id"];
|
|
2319
2325
|
}
|
|
2320
2326
|
];
|
|
2321
2327
|
};
|
|
@@ -2352,11 +2358,11 @@ type Database = {
|
|
|
2352
2358
|
};
|
|
2353
2359
|
Relationships: [
|
|
2354
2360
|
{
|
|
2355
|
-
foreignKeyName:
|
|
2356
|
-
columns: [
|
|
2361
|
+
foreignKeyName: "org_rol_definitions_organization_id_fkey";
|
|
2362
|
+
columns: ["organization_id"];
|
|
2357
2363
|
isOneToOne: false;
|
|
2358
|
-
referencedRelation:
|
|
2359
|
-
referencedColumns: [
|
|
2364
|
+
referencedRelation: "organizations";
|
|
2365
|
+
referencedColumns: ["id"];
|
|
2360
2366
|
}
|
|
2361
2367
|
];
|
|
2362
2368
|
};
|
|
@@ -2378,18 +2384,18 @@ type Database = {
|
|
|
2378
2384
|
};
|
|
2379
2385
|
Relationships: [
|
|
2380
2386
|
{
|
|
2381
|
-
foreignKeyName:
|
|
2382
|
-
columns: [
|
|
2387
|
+
foreignKeyName: "org_rol_grants_permission_key_fkey";
|
|
2388
|
+
columns: ["permission_key"];
|
|
2383
2389
|
isOneToOne: false;
|
|
2384
|
-
referencedRelation:
|
|
2385
|
-
referencedColumns: [
|
|
2390
|
+
referencedRelation: "org_rol_permissions";
|
|
2391
|
+
referencedColumns: ["key"];
|
|
2386
2392
|
},
|
|
2387
2393
|
{
|
|
2388
|
-
foreignKeyName:
|
|
2389
|
-
columns: [
|
|
2394
|
+
foreignKeyName: "org_rol_grants_role_id_fkey";
|
|
2395
|
+
columns: ["role_id"];
|
|
2390
2396
|
isOneToOne: false;
|
|
2391
|
-
referencedRelation:
|
|
2392
|
-
referencedColumns: [
|
|
2397
|
+
referencedRelation: "org_rol_definitions";
|
|
2398
|
+
referencedColumns: ["id"];
|
|
2393
2399
|
}
|
|
2394
2400
|
];
|
|
2395
2401
|
};
|
|
@@ -2501,25 +2507,25 @@ type Database = {
|
|
|
2501
2507
|
};
|
|
2502
2508
|
Relationships: [
|
|
2503
2509
|
{
|
|
2504
|
-
foreignKeyName:
|
|
2505
|
-
columns: [
|
|
2510
|
+
foreignKeyName: "fk_milestones_project";
|
|
2511
|
+
columns: ["project_id"];
|
|
2506
2512
|
isOneToOne: false;
|
|
2507
|
-
referencedRelation:
|
|
2508
|
-
referencedColumns: [
|
|
2513
|
+
referencedRelation: "prj_projects";
|
|
2514
|
+
referencedColumns: ["id"];
|
|
2509
2515
|
},
|
|
2510
2516
|
{
|
|
2511
|
-
foreignKeyName:
|
|
2512
|
-
columns: [
|
|
2517
|
+
foreignKeyName: "prj_milestones_organization_id_fkey";
|
|
2518
|
+
columns: ["organization_id"];
|
|
2513
2519
|
isOneToOne: false;
|
|
2514
|
-
referencedRelation:
|
|
2515
|
-
referencedColumns: [
|
|
2520
|
+
referencedRelation: "organizations";
|
|
2521
|
+
referencedColumns: ["id"];
|
|
2516
2522
|
},
|
|
2517
2523
|
{
|
|
2518
|
-
foreignKeyName:
|
|
2519
|
-
columns: [
|
|
2524
|
+
foreignKeyName: "prj_milestones_project_id_fkey";
|
|
2525
|
+
columns: ["project_id"];
|
|
2520
2526
|
isOneToOne: false;
|
|
2521
|
-
referencedRelation:
|
|
2522
|
-
referencedColumns: [
|
|
2527
|
+
referencedRelation: "prj_projects";
|
|
2528
|
+
referencedColumns: ["id"];
|
|
2523
2529
|
}
|
|
2524
2530
|
];
|
|
2525
2531
|
};
|
|
@@ -2568,67 +2574,67 @@ type Database = {
|
|
|
2568
2574
|
};
|
|
2569
2575
|
Relationships: [
|
|
2570
2576
|
{
|
|
2571
|
-
foreignKeyName:
|
|
2572
|
-
columns: [
|
|
2577
|
+
foreignKeyName: "fk_notes_created_by";
|
|
2578
|
+
columns: ["created_by"];
|
|
2573
2579
|
isOneToOne: false;
|
|
2574
|
-
referencedRelation:
|
|
2575
|
-
referencedColumns: [
|
|
2580
|
+
referencedRelation: "users";
|
|
2581
|
+
referencedColumns: ["id"];
|
|
2576
2582
|
},
|
|
2577
2583
|
{
|
|
2578
|
-
foreignKeyName:
|
|
2579
|
-
columns: [
|
|
2584
|
+
foreignKeyName: "fk_notes_milestone";
|
|
2585
|
+
columns: ["milestone_id"];
|
|
2580
2586
|
isOneToOne: false;
|
|
2581
|
-
referencedRelation:
|
|
2582
|
-
referencedColumns: [
|
|
2587
|
+
referencedRelation: "prj_milestones";
|
|
2588
|
+
referencedColumns: ["id"];
|
|
2583
2589
|
},
|
|
2584
2590
|
{
|
|
2585
|
-
foreignKeyName:
|
|
2586
|
-
columns: [
|
|
2591
|
+
foreignKeyName: "fk_notes_project";
|
|
2592
|
+
columns: ["project_id"];
|
|
2587
2593
|
isOneToOne: false;
|
|
2588
|
-
referencedRelation:
|
|
2589
|
-
referencedColumns: [
|
|
2594
|
+
referencedRelation: "prj_projects";
|
|
2595
|
+
referencedColumns: ["id"];
|
|
2590
2596
|
},
|
|
2591
2597
|
{
|
|
2592
|
-
foreignKeyName:
|
|
2593
|
-
columns: [
|
|
2598
|
+
foreignKeyName: "fk_notes_task";
|
|
2599
|
+
columns: ["task_id"];
|
|
2594
2600
|
isOneToOne: false;
|
|
2595
|
-
referencedRelation:
|
|
2596
|
-
referencedColumns: [
|
|
2601
|
+
referencedRelation: "prj_tasks";
|
|
2602
|
+
referencedColumns: ["id"];
|
|
2597
2603
|
},
|
|
2598
2604
|
{
|
|
2599
|
-
foreignKeyName:
|
|
2600
|
-
columns: [
|
|
2605
|
+
foreignKeyName: "prj_notes_created_by_fkey";
|
|
2606
|
+
columns: ["created_by"];
|
|
2601
2607
|
isOneToOne: false;
|
|
2602
|
-
referencedRelation:
|
|
2603
|
-
referencedColumns: [
|
|
2608
|
+
referencedRelation: "users";
|
|
2609
|
+
referencedColumns: ["id"];
|
|
2604
2610
|
},
|
|
2605
2611
|
{
|
|
2606
|
-
foreignKeyName:
|
|
2607
|
-
columns: [
|
|
2612
|
+
foreignKeyName: "prj_notes_milestone_id_fkey";
|
|
2613
|
+
columns: ["milestone_id"];
|
|
2608
2614
|
isOneToOne: false;
|
|
2609
|
-
referencedRelation:
|
|
2610
|
-
referencedColumns: [
|
|
2615
|
+
referencedRelation: "prj_milestones";
|
|
2616
|
+
referencedColumns: ["id"];
|
|
2611
2617
|
},
|
|
2612
2618
|
{
|
|
2613
|
-
foreignKeyName:
|
|
2614
|
-
columns: [
|
|
2619
|
+
foreignKeyName: "prj_notes_organization_id_fkey";
|
|
2620
|
+
columns: ["organization_id"];
|
|
2615
2621
|
isOneToOne: false;
|
|
2616
|
-
referencedRelation:
|
|
2617
|
-
referencedColumns: [
|
|
2622
|
+
referencedRelation: "organizations";
|
|
2623
|
+
referencedColumns: ["id"];
|
|
2618
2624
|
},
|
|
2619
2625
|
{
|
|
2620
|
-
foreignKeyName:
|
|
2621
|
-
columns: [
|
|
2626
|
+
foreignKeyName: "prj_notes_project_id_fkey";
|
|
2627
|
+
columns: ["project_id"];
|
|
2622
2628
|
isOneToOne: false;
|
|
2623
|
-
referencedRelation:
|
|
2624
|
-
referencedColumns: [
|
|
2629
|
+
referencedRelation: "prj_projects";
|
|
2630
|
+
referencedColumns: ["id"];
|
|
2625
2631
|
},
|
|
2626
2632
|
{
|
|
2627
|
-
foreignKeyName:
|
|
2628
|
-
columns: [
|
|
2633
|
+
foreignKeyName: "prj_notes_task_id_fkey";
|
|
2634
|
+
columns: ["task_id"];
|
|
2629
2635
|
isOneToOne: false;
|
|
2630
|
-
referencedRelation:
|
|
2631
|
-
referencedColumns: [
|
|
2636
|
+
referencedRelation: "prj_tasks";
|
|
2637
|
+
referencedColumns: ["id"];
|
|
2632
2638
|
}
|
|
2633
2639
|
];
|
|
2634
2640
|
};
|
|
@@ -2686,39 +2692,39 @@ type Database = {
|
|
|
2686
2692
|
};
|
|
2687
2693
|
Relationships: [
|
|
2688
2694
|
{
|
|
2689
|
-
foreignKeyName:
|
|
2690
|
-
columns: [
|
|
2695
|
+
foreignKeyName: "fk_projects_company";
|
|
2696
|
+
columns: ["client_company_id"];
|
|
2691
2697
|
isOneToOne: false;
|
|
2692
|
-
referencedRelation:
|
|
2693
|
-
referencedColumns: [
|
|
2698
|
+
referencedRelation: "acq_companies";
|
|
2699
|
+
referencedColumns: ["id"];
|
|
2694
2700
|
},
|
|
2695
2701
|
{
|
|
2696
|
-
foreignKeyName:
|
|
2697
|
-
columns: [
|
|
2702
|
+
foreignKeyName: "fk_projects_deal";
|
|
2703
|
+
columns: ["deal_id"];
|
|
2698
2704
|
isOneToOne: false;
|
|
2699
|
-
referencedRelation:
|
|
2700
|
-
referencedColumns: [
|
|
2705
|
+
referencedRelation: "acq_deals";
|
|
2706
|
+
referencedColumns: ["id"];
|
|
2701
2707
|
},
|
|
2702
2708
|
{
|
|
2703
|
-
foreignKeyName:
|
|
2704
|
-
columns: [
|
|
2709
|
+
foreignKeyName: "prj_projects_client_company_id_fkey";
|
|
2710
|
+
columns: ["client_company_id"];
|
|
2705
2711
|
isOneToOne: false;
|
|
2706
|
-
referencedRelation:
|
|
2707
|
-
referencedColumns: [
|
|
2712
|
+
referencedRelation: "acq_companies";
|
|
2713
|
+
referencedColumns: ["id"];
|
|
2708
2714
|
},
|
|
2709
2715
|
{
|
|
2710
|
-
foreignKeyName:
|
|
2711
|
-
columns: [
|
|
2716
|
+
foreignKeyName: "prj_projects_deal_id_fkey";
|
|
2717
|
+
columns: ["deal_id"];
|
|
2712
2718
|
isOneToOne: false;
|
|
2713
|
-
referencedRelation:
|
|
2714
|
-
referencedColumns: [
|
|
2719
|
+
referencedRelation: "acq_deals";
|
|
2720
|
+
referencedColumns: ["id"];
|
|
2715
2721
|
},
|
|
2716
2722
|
{
|
|
2717
|
-
foreignKeyName:
|
|
2718
|
-
columns: [
|
|
2723
|
+
foreignKeyName: "prj_projects_organization_id_fkey";
|
|
2724
|
+
columns: ["organization_id"];
|
|
2719
2725
|
isOneToOne: false;
|
|
2720
|
-
referencedRelation:
|
|
2721
|
-
referencedColumns: [
|
|
2726
|
+
referencedRelation: "organizations";
|
|
2727
|
+
referencedColumns: ["id"];
|
|
2722
2728
|
}
|
|
2723
2729
|
];
|
|
2724
2730
|
};
|
|
@@ -2782,53 +2788,53 @@ type Database = {
|
|
|
2782
2788
|
};
|
|
2783
2789
|
Relationships: [
|
|
2784
2790
|
{
|
|
2785
|
-
foreignKeyName:
|
|
2786
|
-
columns: [
|
|
2791
|
+
foreignKeyName: "fk_tasks_milestone";
|
|
2792
|
+
columns: ["milestone_id"];
|
|
2787
2793
|
isOneToOne: false;
|
|
2788
|
-
referencedRelation:
|
|
2789
|
-
referencedColumns: [
|
|
2794
|
+
referencedRelation: "prj_milestones";
|
|
2795
|
+
referencedColumns: ["id"];
|
|
2790
2796
|
},
|
|
2791
2797
|
{
|
|
2792
|
-
foreignKeyName:
|
|
2793
|
-
columns: [
|
|
2798
|
+
foreignKeyName: "fk_tasks_parent";
|
|
2799
|
+
columns: ["parent_task_id"];
|
|
2794
2800
|
isOneToOne: false;
|
|
2795
|
-
referencedRelation:
|
|
2796
|
-
referencedColumns: [
|
|
2801
|
+
referencedRelation: "prj_tasks";
|
|
2802
|
+
referencedColumns: ["id"];
|
|
2797
2803
|
},
|
|
2798
2804
|
{
|
|
2799
|
-
foreignKeyName:
|
|
2800
|
-
columns: [
|
|
2805
|
+
foreignKeyName: "fk_tasks_project";
|
|
2806
|
+
columns: ["project_id"];
|
|
2801
2807
|
isOneToOne: false;
|
|
2802
|
-
referencedRelation:
|
|
2803
|
-
referencedColumns: [
|
|
2808
|
+
referencedRelation: "prj_projects";
|
|
2809
|
+
referencedColumns: ["id"];
|
|
2804
2810
|
},
|
|
2805
2811
|
{
|
|
2806
|
-
foreignKeyName:
|
|
2807
|
-
columns: [
|
|
2812
|
+
foreignKeyName: "prj_tasks_milestone_id_fkey";
|
|
2813
|
+
columns: ["milestone_id"];
|
|
2808
2814
|
isOneToOne: false;
|
|
2809
|
-
referencedRelation:
|
|
2810
|
-
referencedColumns: [
|
|
2815
|
+
referencedRelation: "prj_milestones";
|
|
2816
|
+
referencedColumns: ["id"];
|
|
2811
2817
|
},
|
|
2812
2818
|
{
|
|
2813
|
-
foreignKeyName:
|
|
2814
|
-
columns: [
|
|
2819
|
+
foreignKeyName: "prj_tasks_organization_id_fkey";
|
|
2820
|
+
columns: ["organization_id"];
|
|
2815
2821
|
isOneToOne: false;
|
|
2816
|
-
referencedRelation:
|
|
2817
|
-
referencedColumns: [
|
|
2822
|
+
referencedRelation: "organizations";
|
|
2823
|
+
referencedColumns: ["id"];
|
|
2818
2824
|
},
|
|
2819
2825
|
{
|
|
2820
|
-
foreignKeyName:
|
|
2821
|
-
columns: [
|
|
2826
|
+
foreignKeyName: "prj_tasks_parent_task_id_fkey";
|
|
2827
|
+
columns: ["parent_task_id"];
|
|
2822
2828
|
isOneToOne: false;
|
|
2823
|
-
referencedRelation:
|
|
2824
|
-
referencedColumns: [
|
|
2829
|
+
referencedRelation: "prj_tasks";
|
|
2830
|
+
referencedColumns: ["id"];
|
|
2825
2831
|
},
|
|
2826
2832
|
{
|
|
2827
|
-
foreignKeyName:
|
|
2828
|
-
columns: [
|
|
2833
|
+
foreignKeyName: "prj_tasks_project_id_fkey";
|
|
2834
|
+
columns: ["project_id"];
|
|
2829
2835
|
isOneToOne: false;
|
|
2830
|
-
referencedRelation:
|
|
2831
|
-
referencedColumns: [
|
|
2836
|
+
referencedRelation: "prj_projects";
|
|
2837
|
+
referencedColumns: ["id"];
|
|
2832
2838
|
}
|
|
2833
2839
|
];
|
|
2834
2840
|
};
|
|
@@ -2898,25 +2904,25 @@ type Database = {
|
|
|
2898
2904
|
};
|
|
2899
2905
|
Relationships: [
|
|
2900
2906
|
{
|
|
2901
|
-
foreignKeyName:
|
|
2902
|
-
columns: [
|
|
2907
|
+
foreignKeyName: "reported_requests_organization_id_fkey";
|
|
2908
|
+
columns: ["organization_id"];
|
|
2903
2909
|
isOneToOne: false;
|
|
2904
|
-
referencedRelation:
|
|
2905
|
-
referencedColumns: [
|
|
2910
|
+
referencedRelation: "organizations";
|
|
2911
|
+
referencedColumns: ["id"];
|
|
2906
2912
|
},
|
|
2907
2913
|
{
|
|
2908
|
-
foreignKeyName:
|
|
2909
|
-
columns: [
|
|
2914
|
+
foreignKeyName: "reported_requests_project_id_fkey";
|
|
2915
|
+
columns: ["project_id"];
|
|
2910
2916
|
isOneToOne: false;
|
|
2911
|
-
referencedRelation:
|
|
2912
|
-
referencedColumns: [
|
|
2917
|
+
referencedRelation: "prj_projects";
|
|
2918
|
+
referencedColumns: ["id"];
|
|
2913
2919
|
},
|
|
2914
2920
|
{
|
|
2915
|
-
foreignKeyName:
|
|
2916
|
-
columns: [
|
|
2921
|
+
foreignKeyName: "reported_requests_task_id_fkey";
|
|
2922
|
+
columns: ["task_id"];
|
|
2917
2923
|
isOneToOne: false;
|
|
2918
|
-
referencedRelation:
|
|
2919
|
-
referencedColumns: [
|
|
2924
|
+
referencedRelation: "prj_tasks";
|
|
2925
|
+
referencedColumns: ["id"];
|
|
2920
2926
|
}
|
|
2921
2927
|
];
|
|
2922
2928
|
};
|
|
@@ -2956,11 +2962,11 @@ type Database = {
|
|
|
2956
2962
|
};
|
|
2957
2963
|
Relationships: [
|
|
2958
2964
|
{
|
|
2959
|
-
foreignKeyName:
|
|
2960
|
-
columns: [
|
|
2965
|
+
foreignKeyName: "session_messages_session_id_fkey";
|
|
2966
|
+
columns: ["session_id"];
|
|
2961
2967
|
isOneToOne: false;
|
|
2962
|
-
referencedRelation:
|
|
2963
|
-
referencedColumns: [
|
|
2968
|
+
referencedRelation: "sessions";
|
|
2969
|
+
referencedColumns: ["session_id"];
|
|
2964
2970
|
}
|
|
2965
2971
|
];
|
|
2966
2972
|
};
|
|
@@ -3015,18 +3021,18 @@ type Database = {
|
|
|
3015
3021
|
};
|
|
3016
3022
|
Relationships: [
|
|
3017
3023
|
{
|
|
3018
|
-
foreignKeyName:
|
|
3019
|
-
columns: [
|
|
3024
|
+
foreignKeyName: "fk_organization";
|
|
3025
|
+
columns: ["organization_id"];
|
|
3020
3026
|
isOneToOne: false;
|
|
3021
|
-
referencedRelation:
|
|
3022
|
-
referencedColumns: [
|
|
3027
|
+
referencedRelation: "organizations";
|
|
3028
|
+
referencedColumns: ["id"];
|
|
3023
3029
|
},
|
|
3024
3030
|
{
|
|
3025
|
-
foreignKeyName:
|
|
3026
|
-
columns: [
|
|
3031
|
+
foreignKeyName: "fk_user";
|
|
3032
|
+
columns: ["user_id"];
|
|
3027
3033
|
isOneToOne: false;
|
|
3028
|
-
referencedRelation:
|
|
3029
|
-
referencedColumns: [
|
|
3034
|
+
referencedRelation: "users";
|
|
3035
|
+
referencedColumns: ["id"];
|
|
3030
3036
|
}
|
|
3031
3037
|
];
|
|
3032
3038
|
};
|
|
@@ -3102,11 +3108,11 @@ type Database = {
|
|
|
3102
3108
|
};
|
|
3103
3109
|
Relationships: [
|
|
3104
3110
|
{
|
|
3105
|
-
foreignKeyName:
|
|
3106
|
-
columns: [
|
|
3111
|
+
foreignKeyName: "task_schedules_organization_id_fkey";
|
|
3112
|
+
columns: ["organization_id"];
|
|
3107
3113
|
isOneToOne: false;
|
|
3108
|
-
referencedRelation:
|
|
3109
|
-
referencedColumns: [
|
|
3114
|
+
referencedRelation: "organizations";
|
|
3115
|
+
referencedColumns: ["id"];
|
|
3110
3116
|
}
|
|
3111
3117
|
];
|
|
3112
3118
|
};
|
|
@@ -3161,11 +3167,11 @@ type Database = {
|
|
|
3161
3167
|
};
|
|
3162
3168
|
Relationships: [
|
|
3163
3169
|
{
|
|
3164
|
-
foreignKeyName:
|
|
3165
|
-
columns: [
|
|
3170
|
+
foreignKeyName: "user_profiles_last_visited_org_fkey";
|
|
3171
|
+
columns: ["last_visited_org"];
|
|
3166
3172
|
isOneToOne: false;
|
|
3167
|
-
referencedRelation:
|
|
3168
|
-
referencedColumns: [
|
|
3173
|
+
referencedRelation: "organizations";
|
|
3174
|
+
referencedColumns: ["id"];
|
|
3169
3175
|
}
|
|
3170
3176
|
];
|
|
3171
3177
|
};
|
|
@@ -3214,11 +3220,11 @@ type Database = {
|
|
|
3214
3220
|
};
|
|
3215
3221
|
Relationships: [
|
|
3216
3222
|
{
|
|
3217
|
-
foreignKeyName:
|
|
3218
|
-
columns: [
|
|
3223
|
+
foreignKeyName: "webhook_endpoints_organization_id_fkey";
|
|
3224
|
+
columns: ["organization_id"];
|
|
3219
3225
|
isOneToOne: false;
|
|
3220
|
-
referencedRelation:
|
|
3221
|
-
referencedColumns: [
|
|
3226
|
+
referencedRelation: "organizations";
|
|
3227
|
+
referencedColumns: ["id"];
|
|
3222
3228
|
}
|
|
3223
3229
|
];
|
|
3224
3230
|
};
|
|
@@ -3366,17 +3372,17 @@ type Database = {
|
|
|
3366
3372
|
};
|
|
3367
3373
|
};
|
|
3368
3374
|
};
|
|
3369
|
-
type DatabaseWithoutInternals = Omit<Database,
|
|
3370
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database,
|
|
3371
|
-
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
3375
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
3376
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
3377
|
+
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3372
3378
|
schema: keyof DatabaseWithoutInternals;
|
|
3373
3379
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3374
3380
|
schema: keyof DatabaseWithoutInternals;
|
|
3375
|
-
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions[
|
|
3381
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3376
3382
|
schema: keyof DatabaseWithoutInternals;
|
|
3377
|
-
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions[
|
|
3383
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3378
3384
|
Row: infer R;
|
|
3379
|
-
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
|
|
3385
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3380
3386
|
Row: infer R;
|
|
3381
3387
|
} ? R : never : never;
|
|
3382
3388
|
|
|
@@ -3388,6 +3394,16 @@ type ApiKeyListItem = Omit<SupabaseApiKey, 'key_hash'>;
|
|
|
3388
3394
|
/** Raw database row type for acq_deals table */
|
|
3389
3395
|
type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
|
|
3390
3396
|
type DealStage = 'interested' | 'proposal' | 'closing' | 'closed_won' | 'closed_lost' | 'nurturing';
|
|
3397
|
+
type DealPriorityBucketKey = 'needs_response' | 'follow_up_due' | 'waiting' | 'stale' | 'closed_low';
|
|
3398
|
+
interface DealPriority {
|
|
3399
|
+
bucketKey: DealPriorityBucketKey;
|
|
3400
|
+
rank: number;
|
|
3401
|
+
label: string;
|
|
3402
|
+
color: string;
|
|
3403
|
+
reason: string;
|
|
3404
|
+
latestActivityAt: string | null;
|
|
3405
|
+
nextActionAt: string | null;
|
|
3406
|
+
}
|
|
3391
3407
|
interface DealContact {
|
|
3392
3408
|
id: string;
|
|
3393
3409
|
first_name: string | null;
|
|
@@ -3417,9 +3433,12 @@ interface DealFilters {
|
|
|
3417
3433
|
}
|
|
3418
3434
|
/** Deal list item with joined contact and company data */
|
|
3419
3435
|
interface DealListItem extends AcqDealRow {
|
|
3436
|
+
priority: DealPriority;
|
|
3437
|
+
ownership: 'us' | 'them' | null;
|
|
3438
|
+
nextAction: string | null;
|
|
3420
3439
|
contact: DealContact | null;
|
|
3421
3440
|
}
|
|
3422
|
-
type DealDetail = DealListItem;
|
|
3441
|
+
type DealDetail$1 = DealListItem;
|
|
3423
3442
|
/** Task kind options for a deal task (human follow-up action type) */
|
|
3424
3443
|
type AcqDealTaskKind = 'call' | 'email' | 'meeting' | 'other';
|
|
3425
3444
|
/**
|
|
@@ -3477,7 +3496,92 @@ declare const TransitionItemRequestSchema: z.ZodObject<{
|
|
|
3477
3496
|
reason: z.ZodOptional<z.ZodString>;
|
|
3478
3497
|
expectedUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
3479
3498
|
}, z.core.$strict>;
|
|
3499
|
+
/**
|
|
3500
|
+
* Deal detail shape — currently the same as a list item (full joined record).
|
|
3501
|
+
* Additive fields keep existing DealListItem callers compatible.
|
|
3502
|
+
*/
|
|
3503
|
+
declare const DealDetailResponseSchema: z.ZodObject<{
|
|
3504
|
+
id: z.ZodString;
|
|
3505
|
+
organization_id: z.ZodString;
|
|
3506
|
+
contact_id: z.ZodNullable<z.ZodString>;
|
|
3507
|
+
contact_email: z.ZodString;
|
|
3508
|
+
pipeline_key: z.ZodString;
|
|
3509
|
+
stage_key: z.ZodNullable<z.ZodString>;
|
|
3510
|
+
state_key: z.ZodNullable<z.ZodString>;
|
|
3511
|
+
activity_log: z.ZodUnknown;
|
|
3512
|
+
discovery_data: z.ZodNullable<z.ZodUnknown>;
|
|
3513
|
+
discovery_submitted_at: z.ZodNullable<z.ZodString>;
|
|
3514
|
+
discovery_submitted_by: z.ZodNullable<z.ZodString>;
|
|
3515
|
+
proposal_data: z.ZodNullable<z.ZodUnknown>;
|
|
3516
|
+
proposal_sent_at: z.ZodNullable<z.ZodString>;
|
|
3517
|
+
proposal_pdf_url: z.ZodNullable<z.ZodString>;
|
|
3518
|
+
signature_envelope_id: z.ZodNullable<z.ZodString>;
|
|
3519
|
+
source_list_id: z.ZodNullable<z.ZodString>;
|
|
3520
|
+
source_type: z.ZodNullable<z.ZodString>;
|
|
3521
|
+
initial_fee: z.ZodNullable<z.ZodNumber>;
|
|
3522
|
+
monthly_fee: z.ZodNullable<z.ZodNumber>;
|
|
3523
|
+
closed_lost_at: z.ZodNullable<z.ZodString>;
|
|
3524
|
+
closed_lost_reason: z.ZodNullable<z.ZodString>;
|
|
3525
|
+
created_at: z.ZodString;
|
|
3526
|
+
updated_at: z.ZodString;
|
|
3527
|
+
priority: z.ZodObject<{
|
|
3528
|
+
bucketKey: z.ZodEnum<{
|
|
3529
|
+
needs_response: "needs_response";
|
|
3530
|
+
follow_up_due: "follow_up_due";
|
|
3531
|
+
waiting: "waiting";
|
|
3532
|
+
stale: "stale";
|
|
3533
|
+
closed_low: "closed_low";
|
|
3534
|
+
}>;
|
|
3535
|
+
rank: z.ZodNumber;
|
|
3536
|
+
label: z.ZodString;
|
|
3537
|
+
color: z.ZodString;
|
|
3538
|
+
reason: z.ZodString;
|
|
3539
|
+
latestActivityAt: z.ZodNullable<z.ZodString>;
|
|
3540
|
+
nextActionAt: z.ZodNullable<z.ZodString>;
|
|
3541
|
+
}, z.core.$strip>;
|
|
3542
|
+
ownership: z.ZodNullable<z.ZodEnum<{
|
|
3543
|
+
us: "us";
|
|
3544
|
+
them: "them";
|
|
3545
|
+
}>>;
|
|
3546
|
+
nextAction: z.ZodNullable<z.ZodString>;
|
|
3547
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
3548
|
+
id: z.ZodString;
|
|
3549
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
3550
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
3551
|
+
email: z.ZodString;
|
|
3552
|
+
title: z.ZodNullable<z.ZodString>;
|
|
3553
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
3554
|
+
linkedin_url: z.ZodNullable<z.ZodString>;
|
|
3555
|
+
pipeline_status: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3556
|
+
enrichment_data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3557
|
+
company: z.ZodNullable<z.ZodObject<{
|
|
3558
|
+
id: z.ZodString;
|
|
3559
|
+
name: z.ZodString;
|
|
3560
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
3561
|
+
website: z.ZodNullable<z.ZodString>;
|
|
3562
|
+
linkedin_url: z.ZodNullable<z.ZodString>;
|
|
3563
|
+
segment: z.ZodNullable<z.ZodString>;
|
|
3564
|
+
category: z.ZodNullable<z.ZodString>;
|
|
3565
|
+
num_employees: z.ZodNullable<z.ZodNumber>;
|
|
3566
|
+
}, z.core.$strip>>;
|
|
3567
|
+
}, z.core.$strip>>;
|
|
3568
|
+
conversation: z.ZodObject<{
|
|
3569
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
3570
|
+
id: z.ZodString;
|
|
3571
|
+
direction: z.ZodEnum<{
|
|
3572
|
+
inbound: "inbound";
|
|
3573
|
+
outbound: "outbound";
|
|
3574
|
+
}>;
|
|
3575
|
+
fromEmail: z.ZodString;
|
|
3576
|
+
toEmail: z.ZodString;
|
|
3577
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
3578
|
+
body: z.ZodString;
|
|
3579
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
3580
|
+
}, z.core.$strip>>;
|
|
3581
|
+
}, z.core.$strip>;
|
|
3582
|
+
}, z.core.$strip>;
|
|
3480
3583
|
type TransitionItemRequest = z.infer<typeof TransitionItemRequestSchema>;
|
|
3584
|
+
type DealDetailResponse = z.infer<typeof DealDetailResponseSchema>;
|
|
3481
3585
|
/**
|
|
3482
3586
|
* Lifecycle status enum for `acq_lists.status` (mirrors DB CHECK constraint
|
|
3483
3587
|
* from migration 20260428000003_lead_gen_acq_lists_status_and_config.sql).
|
|
@@ -4756,6 +4860,57 @@ type ResourceCategory = z.infer<typeof ResourceCategorySchema>;
|
|
|
4756
4860
|
type ResourceLink = Link;
|
|
4757
4861
|
|
|
4758
4862
|
type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'warning';
|
|
4863
|
+
/**
|
|
4864
|
+
* Event sent when new execution starts
|
|
4865
|
+
*/
|
|
4866
|
+
interface ExecutionStartedEvent {
|
|
4867
|
+
type: 'new-execution';
|
|
4868
|
+
resourceId: string;
|
|
4869
|
+
executionId: string;
|
|
4870
|
+
timestamp: number;
|
|
4871
|
+
data?: undefined;
|
|
4872
|
+
}
|
|
4873
|
+
/**
|
|
4874
|
+
* Event sent when execution log message is emitted
|
|
4875
|
+
*/
|
|
4876
|
+
interface ExecutionLogEvent {
|
|
4877
|
+
type: 'log';
|
|
4878
|
+
resourceId: string;
|
|
4879
|
+
executionId: string;
|
|
4880
|
+
timestamp: number;
|
|
4881
|
+
data: {
|
|
4882
|
+
log: ExecutionLogMessage;
|
|
4883
|
+
};
|
|
4884
|
+
}
|
|
4885
|
+
/**
|
|
4886
|
+
* Event sent when execution completes (success or failure)
|
|
4887
|
+
*/
|
|
4888
|
+
interface ExecutionCompleteEvent {
|
|
4889
|
+
type: 'execution-complete';
|
|
4890
|
+
resourceId: string;
|
|
4891
|
+
executionId: string;
|
|
4892
|
+
timestamp: number;
|
|
4893
|
+
data: {
|
|
4894
|
+
success: boolean;
|
|
4895
|
+
status?: ExecutionStatus;
|
|
4896
|
+
result?: unknown;
|
|
4897
|
+
error?: string;
|
|
4898
|
+
};
|
|
4899
|
+
}
|
|
4900
|
+
/**
|
|
4901
|
+
* Connection confirmation event
|
|
4902
|
+
*/
|
|
4903
|
+
interface ExecutionConnectedEvent {
|
|
4904
|
+
type: 'connected';
|
|
4905
|
+
resourceId: string;
|
|
4906
|
+
executionId?: undefined;
|
|
4907
|
+
timestamp: number;
|
|
4908
|
+
data?: undefined;
|
|
4909
|
+
}
|
|
4910
|
+
/**
|
|
4911
|
+
* Union of all execution SSE events
|
|
4912
|
+
*/
|
|
4913
|
+
type ExecutionSSEEvent = ExecutionStartedEvent | ExecutionLogEvent | ExecutionCompleteEvent | ExecutionConnectedEvent;
|
|
4759
4914
|
interface APIExecutionSummary {
|
|
4760
4915
|
id: string;
|
|
4761
4916
|
status: ExecutionStatus;
|
|
@@ -5047,6 +5202,81 @@ interface ExecuteAsyncResult {
|
|
|
5047
5202
|
*/
|
|
5048
5203
|
declare function useExecuteAsync(): _tanstack_react_query.UseMutationResult<ExecuteAsyncResult, Error, ExecuteAsyncParams, unknown>;
|
|
5049
5204
|
|
|
5205
|
+
interface UseWorkflowExecutionOptions {
|
|
5206
|
+
workflowId: string;
|
|
5207
|
+
listId?: string;
|
|
5208
|
+
}
|
|
5209
|
+
interface WorkflowExecutionTriggerParams {
|
|
5210
|
+
input: unknown;
|
|
5211
|
+
}
|
|
5212
|
+
interface UseWorkflowExecutionResult {
|
|
5213
|
+
execute: (params: WorkflowExecutionTriggerParams) => Promise<ExecuteAsyncResult>;
|
|
5214
|
+
executionId: string | null;
|
|
5215
|
+
status: string | null;
|
|
5216
|
+
isIdle: boolean;
|
|
5217
|
+
isPending: boolean;
|
|
5218
|
+
isSuccess: boolean;
|
|
5219
|
+
isError: boolean;
|
|
5220
|
+
error: Error | null;
|
|
5221
|
+
data: ExecuteAsyncResult | undefined;
|
|
5222
|
+
reset: () => void;
|
|
5223
|
+
}
|
|
5224
|
+
/**
|
|
5225
|
+
* List-builder-friendly wrapper around async workflow execution.
|
|
5226
|
+
*
|
|
5227
|
+
* Binds a workflow ID once, exposes a small trigger API, and refreshes both
|
|
5228
|
+
* platform execution lists and list execution history when a list ID is known.
|
|
5229
|
+
*/
|
|
5230
|
+
declare function useWorkflowExecution({ workflowId, listId }: UseWorkflowExecutionOptions): UseWorkflowExecutionResult;
|
|
5231
|
+
|
|
5232
|
+
interface FetchEventSourceWithTokenRefreshOptions {
|
|
5233
|
+
url: string;
|
|
5234
|
+
getToken: () => Promise<string | undefined>;
|
|
5235
|
+
headers?: Record<string, string>;
|
|
5236
|
+
signal: AbortSignal;
|
|
5237
|
+
/** Delay in ms before reconnecting after token refresh. Defaults to 2000. */
|
|
5238
|
+
tokenRefreshDelayMs?: number;
|
|
5239
|
+
onopen?: (response: Response) => void | Promise<void>;
|
|
5240
|
+
onmessage?: (event: EventSourceMessage) => void;
|
|
5241
|
+
onerror?: (error: unknown) => void;
|
|
5242
|
+
onclose?: () => void;
|
|
5243
|
+
}
|
|
5244
|
+
|
|
5245
|
+
interface SSEConnectionManagerLike {
|
|
5246
|
+
subscribe(key: string, subscriberId: string, options: Omit<FetchEventSourceWithTokenRefreshOptions, 'signal'>): () => void;
|
|
5247
|
+
closeConnection(key: string): void;
|
|
5248
|
+
getConnectionInfo(): Map<string, {
|
|
5249
|
+
url: string;
|
|
5250
|
+
subscribers: number;
|
|
5251
|
+
}>;
|
|
5252
|
+
}
|
|
5253
|
+
|
|
5254
|
+
interface UseExecutionSSEOptions {
|
|
5255
|
+
enabled?: boolean;
|
|
5256
|
+
apiUrl?: string;
|
|
5257
|
+
manager?: SSEConnectionManagerLike;
|
|
5258
|
+
listId?: string;
|
|
5259
|
+
onEvent?: (event: ExecutionSSEEvent) => void;
|
|
5260
|
+
}
|
|
5261
|
+
interface UseExecutionSSEResult {
|
|
5262
|
+
connected: boolean;
|
|
5263
|
+
error: string | null;
|
|
5264
|
+
events: ExecutionSSEEvent[];
|
|
5265
|
+
latestEvent: ExecutionSSEEvent | null;
|
|
5266
|
+
liveExecutions: Set<string>;
|
|
5267
|
+
streamingLogs: Map<string, ExecutionLogMessage[]>;
|
|
5268
|
+
runningCount: number;
|
|
5269
|
+
isLive: (executionId: string) => boolean;
|
|
5270
|
+
clear: () => void;
|
|
5271
|
+
}
|
|
5272
|
+
/**
|
|
5273
|
+
* Tail execution SSE for a workflow/resource using the shared SSE manager.
|
|
5274
|
+
*
|
|
5275
|
+
* Auth is supplied by useSSEConnection; this hook adds the active WorkOS org
|
|
5276
|
+
* header and invalidates execution/list caches when execution events arrive.
|
|
5277
|
+
*/
|
|
5278
|
+
declare function useExecutionSSE(resourceId: string, options?: UseExecutionSSEOptions): UseExecutionSSEResult;
|
|
5279
|
+
|
|
5050
5280
|
interface RetryExecutionParams {
|
|
5051
5281
|
resourceId: string;
|
|
5052
5282
|
resourceType: ResourceType;
|
|
@@ -5175,28 +5405,6 @@ declare function useExecuteResource<TSchema extends z.ZodType | undefined = unde
|
|
|
5175
5405
|
reset: () => void;
|
|
5176
5406
|
};
|
|
5177
5407
|
|
|
5178
|
-
interface FetchEventSourceWithTokenRefreshOptions {
|
|
5179
|
-
url: string;
|
|
5180
|
-
getToken: () => Promise<string | undefined>;
|
|
5181
|
-
headers?: Record<string, string>;
|
|
5182
|
-
signal: AbortSignal;
|
|
5183
|
-
/** Delay in ms before reconnecting after token refresh. Defaults to 2000. */
|
|
5184
|
-
tokenRefreshDelayMs?: number;
|
|
5185
|
-
onopen?: (response: Response) => void | Promise<void>;
|
|
5186
|
-
onmessage?: (event: EventSourceMessage) => void;
|
|
5187
|
-
onerror?: (error: unknown) => void;
|
|
5188
|
-
onclose?: () => void;
|
|
5189
|
-
}
|
|
5190
|
-
|
|
5191
|
-
interface SSEConnectionManagerLike {
|
|
5192
|
-
subscribe(key: string, subscriberId: string, options: Omit<FetchEventSourceWithTokenRefreshOptions, 'signal'>): () => void;
|
|
5193
|
-
closeConnection(key: string): void;
|
|
5194
|
-
getConnectionInfo(): Map<string, {
|
|
5195
|
-
url: string;
|
|
5196
|
-
subscribers: number;
|
|
5197
|
-
}>;
|
|
5198
|
-
}
|
|
5199
|
-
|
|
5200
5408
|
declare function useExecutionLogSSE(resourceId: string, manager: SSEConnectionManagerLike, apiUrl: string): {
|
|
5201
5409
|
liveExecutions: Set<string>;
|
|
5202
5410
|
connected: boolean;
|
|
@@ -6900,6 +7108,17 @@ declare function useDeals(filters?: DealFilters): {
|
|
|
6900
7108
|
closed_lost_reason: string | null;
|
|
6901
7109
|
created_at: string;
|
|
6902
7110
|
updated_at: string;
|
|
7111
|
+
priority: {
|
|
7112
|
+
bucketKey: "needs_response" | "follow_up_due" | "waiting" | "stale" | "closed_low";
|
|
7113
|
+
rank: number;
|
|
7114
|
+
label: string;
|
|
7115
|
+
color: string;
|
|
7116
|
+
reason: string;
|
|
7117
|
+
latestActivityAt: string | null;
|
|
7118
|
+
nextActionAt: string | null;
|
|
7119
|
+
};
|
|
7120
|
+
ownership: "us" | "them" | null;
|
|
7121
|
+
nextAction: string | null;
|
|
6903
7122
|
contact: {
|
|
6904
7123
|
id: string;
|
|
6905
7124
|
first_name: string | null;
|
|
@@ -6953,6 +7172,17 @@ declare function useDeals(filters?: DealFilters): {
|
|
|
6953
7172
|
closed_lost_reason: string | null;
|
|
6954
7173
|
created_at: string;
|
|
6955
7174
|
updated_at: string;
|
|
7175
|
+
priority: {
|
|
7176
|
+
bucketKey: "needs_response" | "follow_up_due" | "waiting" | "stale" | "closed_low";
|
|
7177
|
+
rank: number;
|
|
7178
|
+
label: string;
|
|
7179
|
+
color: string;
|
|
7180
|
+
reason: string;
|
|
7181
|
+
latestActivityAt: string | null;
|
|
7182
|
+
nextActionAt: string | null;
|
|
7183
|
+
};
|
|
7184
|
+
ownership: "us" | "them" | null;
|
|
7185
|
+
nextAction: string | null;
|
|
6956
7186
|
contact: {
|
|
6957
7187
|
id: string;
|
|
6958
7188
|
first_name: string | null;
|
|
@@ -6998,7 +7228,8 @@ declare function useDealsLookup(filters?: DealLookupFilters, options?: UseDealsL
|
|
|
6998
7228
|
*/
|
|
6999
7229
|
declare function useDeleteDeal(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
7000
7230
|
|
|
7001
|
-
|
|
7231
|
+
type DealDetail = DealDetail$1 & Pick<DealDetailResponse, 'conversation'>;
|
|
7232
|
+
declare function useDealDetail(acqDealId: string): _tanstack_react_query.UseQueryResult<DealDetail | null, Error>;
|
|
7002
7233
|
|
|
7003
7234
|
interface TransitionItemInput {
|
|
7004
7235
|
dealId: string;
|
|
@@ -7131,11 +7362,29 @@ declare function useLists(): _tanstack_react_query.UseQueryResult<{
|
|
|
7131
7362
|
organizationId: string;
|
|
7132
7363
|
name: string;
|
|
7133
7364
|
description: string | null;
|
|
7134
|
-
type: string;
|
|
7135
7365
|
batchIds: string[];
|
|
7136
7366
|
instantlyCampaignId: string | null;
|
|
7137
7367
|
status: "closing" | "draft" | "enriching" | "launched" | "archived";
|
|
7138
|
-
metadata:
|
|
7368
|
+
metadata: {
|
|
7369
|
+
[x: string]: unknown;
|
|
7370
|
+
buildPlanSnapshot?: {
|
|
7371
|
+
templateId: string;
|
|
7372
|
+
templateLabel: string;
|
|
7373
|
+
steps: {
|
|
7374
|
+
id: string;
|
|
7375
|
+
label: string;
|
|
7376
|
+
primaryEntity: "company" | "contact";
|
|
7377
|
+
outputs: ("company" | "contact" | "export")[];
|
|
7378
|
+
stageKey: string;
|
|
7379
|
+
dependencyMode: "per-record-eligibility";
|
|
7380
|
+
capabilityKey: string;
|
|
7381
|
+
defaultBatchSize: number;
|
|
7382
|
+
maxBatchSize: number;
|
|
7383
|
+
description?: string | undefined;
|
|
7384
|
+
dependsOn?: string[] | undefined;
|
|
7385
|
+
}[];
|
|
7386
|
+
} | undefined;
|
|
7387
|
+
};
|
|
7139
7388
|
launchedAt: string | null;
|
|
7140
7389
|
completedAt: string | null;
|
|
7141
7390
|
createdAt: string;
|
|
@@ -7167,11 +7416,29 @@ declare function useList(listId: string): _tanstack_react_query.UseQueryResult<{
|
|
|
7167
7416
|
organizationId: string;
|
|
7168
7417
|
name: string;
|
|
7169
7418
|
description: string | null;
|
|
7170
|
-
type: string;
|
|
7171
7419
|
batchIds: string[];
|
|
7172
7420
|
instantlyCampaignId: string | null;
|
|
7173
7421
|
status: "closing" | "draft" | "enriching" | "launched" | "archived";
|
|
7174
|
-
metadata:
|
|
7422
|
+
metadata: {
|
|
7423
|
+
[x: string]: unknown;
|
|
7424
|
+
buildPlanSnapshot?: {
|
|
7425
|
+
templateId: string;
|
|
7426
|
+
templateLabel: string;
|
|
7427
|
+
steps: {
|
|
7428
|
+
id: string;
|
|
7429
|
+
label: string;
|
|
7430
|
+
primaryEntity: "company" | "contact";
|
|
7431
|
+
outputs: ("company" | "contact" | "export")[];
|
|
7432
|
+
stageKey: string;
|
|
7433
|
+
dependencyMode: "per-record-eligibility";
|
|
7434
|
+
capabilityKey: string;
|
|
7435
|
+
defaultBatchSize: number;
|
|
7436
|
+
maxBatchSize: number;
|
|
7437
|
+
description?: string | undefined;
|
|
7438
|
+
dependsOn?: string[] | undefined;
|
|
7439
|
+
}[];
|
|
7440
|
+
} | undefined;
|
|
7441
|
+
};
|
|
7175
7442
|
launchedAt: string | null;
|
|
7176
7443
|
completedAt: string | null;
|
|
7177
7444
|
createdAt: string;
|
|
@@ -7236,11 +7503,29 @@ declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
|
|
|
7236
7503
|
organizationId: string;
|
|
7237
7504
|
name: string;
|
|
7238
7505
|
description: string | null;
|
|
7239
|
-
type: string;
|
|
7240
7506
|
batchIds: string[];
|
|
7241
7507
|
instantlyCampaignId: string | null;
|
|
7242
7508
|
status: "closing" | "draft" | "enriching" | "launched" | "archived";
|
|
7243
|
-
metadata:
|
|
7509
|
+
metadata: {
|
|
7510
|
+
[x: string]: unknown;
|
|
7511
|
+
buildPlanSnapshot?: {
|
|
7512
|
+
templateId: string;
|
|
7513
|
+
templateLabel: string;
|
|
7514
|
+
steps: {
|
|
7515
|
+
id: string;
|
|
7516
|
+
label: string;
|
|
7517
|
+
primaryEntity: "company" | "contact";
|
|
7518
|
+
outputs: ("company" | "contact" | "export")[];
|
|
7519
|
+
stageKey: string;
|
|
7520
|
+
dependencyMode: "per-record-eligibility";
|
|
7521
|
+
capabilityKey: string;
|
|
7522
|
+
defaultBatchSize: number;
|
|
7523
|
+
maxBatchSize: number;
|
|
7524
|
+
description?: string | undefined;
|
|
7525
|
+
dependsOn?: string[] | undefined;
|
|
7526
|
+
}[];
|
|
7527
|
+
} | undefined;
|
|
7528
|
+
};
|
|
7244
7529
|
launchedAt: string | null;
|
|
7245
7530
|
completedAt: string | null;
|
|
7246
7531
|
createdAt: string;
|
|
@@ -7270,6 +7555,7 @@ declare function useCreateList(): _tanstack_react_query.UseMutationResult<{
|
|
|
7270
7555
|
name: string;
|
|
7271
7556
|
description?: string | null | undefined;
|
|
7272
7557
|
status?: "closing" | "draft" | "enriching" | "launched" | "archived" | undefined;
|
|
7558
|
+
buildTemplateId?: string | undefined;
|
|
7273
7559
|
scrapingConfig?: {
|
|
7274
7560
|
vertical?: string | undefined;
|
|
7275
7561
|
geography?: string | undefined;
|
|
@@ -7298,11 +7584,29 @@ declare function useUpdateList(listId: string): _tanstack_react_query.UseMutatio
|
|
|
7298
7584
|
organizationId: string;
|
|
7299
7585
|
name: string;
|
|
7300
7586
|
description: string | null;
|
|
7301
|
-
type: string;
|
|
7302
7587
|
batchIds: string[];
|
|
7303
7588
|
instantlyCampaignId: string | null;
|
|
7304
7589
|
status: "closing" | "draft" | "enriching" | "launched" | "archived";
|
|
7305
|
-
metadata:
|
|
7590
|
+
metadata: {
|
|
7591
|
+
[x: string]: unknown;
|
|
7592
|
+
buildPlanSnapshot?: {
|
|
7593
|
+
templateId: string;
|
|
7594
|
+
templateLabel: string;
|
|
7595
|
+
steps: {
|
|
7596
|
+
id: string;
|
|
7597
|
+
label: string;
|
|
7598
|
+
primaryEntity: "company" | "contact";
|
|
7599
|
+
outputs: ("company" | "contact" | "export")[];
|
|
7600
|
+
stageKey: string;
|
|
7601
|
+
dependencyMode: "per-record-eligibility";
|
|
7602
|
+
capabilityKey: string;
|
|
7603
|
+
defaultBatchSize: number;
|
|
7604
|
+
maxBatchSize: number;
|
|
7605
|
+
description?: string | undefined;
|
|
7606
|
+
dependsOn?: string[] | undefined;
|
|
7607
|
+
}[];
|
|
7608
|
+
} | undefined;
|
|
7609
|
+
};
|
|
7306
7610
|
launchedAt: string | null;
|
|
7307
7611
|
completedAt: string | null;
|
|
7308
7612
|
createdAt: string;
|
|
@@ -7332,17 +7636,37 @@ declare function useUpdateList(listId: string): _tanstack_react_query.UseMutatio
|
|
|
7332
7636
|
name?: string | undefined;
|
|
7333
7637
|
description?: string | null | undefined;
|
|
7334
7638
|
batchIds?: string[] | undefined;
|
|
7639
|
+
buildTemplateId?: string | undefined;
|
|
7640
|
+
confirmBuildTemplateChange?: true | undefined;
|
|
7335
7641
|
}, unknown>;
|
|
7336
7642
|
declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseMutationResult<{
|
|
7337
7643
|
id: string;
|
|
7338
7644
|
organizationId: string;
|
|
7339
7645
|
name: string;
|
|
7340
7646
|
description: string | null;
|
|
7341
|
-
type: string;
|
|
7342
7647
|
batchIds: string[];
|
|
7343
7648
|
instantlyCampaignId: string | null;
|
|
7344
7649
|
status: "closing" | "draft" | "enriching" | "launched" | "archived";
|
|
7345
|
-
metadata:
|
|
7650
|
+
metadata: {
|
|
7651
|
+
[x: string]: unknown;
|
|
7652
|
+
buildPlanSnapshot?: {
|
|
7653
|
+
templateId: string;
|
|
7654
|
+
templateLabel: string;
|
|
7655
|
+
steps: {
|
|
7656
|
+
id: string;
|
|
7657
|
+
label: string;
|
|
7658
|
+
primaryEntity: "company" | "contact";
|
|
7659
|
+
outputs: ("company" | "contact" | "export")[];
|
|
7660
|
+
stageKey: string;
|
|
7661
|
+
dependencyMode: "per-record-eligibility";
|
|
7662
|
+
capabilityKey: string;
|
|
7663
|
+
defaultBatchSize: number;
|
|
7664
|
+
maxBatchSize: number;
|
|
7665
|
+
description?: string | undefined;
|
|
7666
|
+
dependsOn?: string[] | undefined;
|
|
7667
|
+
}[];
|
|
7668
|
+
} | undefined;
|
|
7669
|
+
};
|
|
7346
7670
|
launchedAt: string | null;
|
|
7347
7671
|
completedAt: string | null;
|
|
7348
7672
|
createdAt: string;
|
|
@@ -7394,6 +7718,29 @@ declare function useUpdateListConfig(listId: string): _tanstack_react_query.UseM
|
|
|
7394
7718
|
}, unknown>;
|
|
7395
7719
|
declare function useDeleteList(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
7396
7720
|
|
|
7721
|
+
interface AddCompaniesToListResult {
|
|
7722
|
+
added: number;
|
|
7723
|
+
alreadyExisted: number;
|
|
7724
|
+
}
|
|
7725
|
+
declare function useAddCompaniesToList(listId: string): _tanstack_react_query.UseMutationResult<AddCompaniesToListResult, Error, {
|
|
7726
|
+
companyIds: string[];
|
|
7727
|
+
}, unknown>;
|
|
7728
|
+
|
|
7729
|
+
interface RemoveCompaniesFromListResult {
|
|
7730
|
+
removed: number;
|
|
7731
|
+
}
|
|
7732
|
+
declare function useRemoveCompaniesFromList(listId: string): _tanstack_react_query.UseMutationResult<RemoveCompaniesFromListResult, Error, {
|
|
7733
|
+
companyIds: string[];
|
|
7734
|
+
}, unknown>;
|
|
7735
|
+
|
|
7736
|
+
interface AddContactsToListResult {
|
|
7737
|
+
added: number;
|
|
7738
|
+
alreadyExisted: number;
|
|
7739
|
+
}
|
|
7740
|
+
declare function useAddContactsToList(listId: string): _tanstack_react_query.UseMutationResult<AddContactsToListResult, Error, {
|
|
7741
|
+
contactIds: string[];
|
|
7742
|
+
}, unknown>;
|
|
7743
|
+
|
|
7397
7744
|
/**
|
|
7398
7745
|
* Deprecated alias retained until the remaining batch-oriented callers are removed.
|
|
7399
7746
|
*/
|
|
@@ -8799,5 +9146,5 @@ declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
|
|
|
8799
9146
|
type?: string;
|
|
8800
9147
|
}, "organization_id">, unknown>;
|
|
8801
9148
|
|
|
8802
|
-
export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, collectResourceFilterFacets, companyKeys, contactKeys, createFeatureAccessHook, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useHasPermission, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification };
|
|
8803
|
-
export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AssignRoleInput, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, FeatureAccessResult, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, OrgRole, RequestRow, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusFilter, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, TransitionStateInput, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };
|
|
9149
|
+
export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, collectResourceFilterFacets, companyKeys, contactKeys, createFeatureAccessHook, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useHasPermission, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMemberConfig, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification, useWorkflowExecution };
|
|
9150
|
+
export type { AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AddCompaniesToListResult, AddContactsToListResult, AssignRoleInput, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, FeatureAccessResult, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, OrgRole, RemoveCompaniesFromListResult, RequestRow, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusFilter, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, TransitionStateInput, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseExecutionSSEOptions, UseExecutionSSEResult, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseWorkflowExecutionOptions, UseWorkflowExecutionResult, WebSocketState, WorkflowExecutionTriggerParams };
|