@elevasis/ui 1.24.3 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts/index.js +2 -2
- package/dist/{chunk-H3MU3WTM.js → chunk-3EVTCVKR.js} +2 -2
- package/dist/{chunk-ZDKC3V7C.js → chunk-7RS6VTAV.js} +56 -57
- package/dist/{chunk-TQBM3OEW.js → chunk-BS4J2LAW.js} +1 -1
- package/dist/{chunk-JR2C4XAN.js → chunk-CYXZHBP4.js} +202 -295
- package/dist/{chunk-OH74INP2.js → chunk-FEZZ3IDU.js} +434 -314
- package/dist/{chunk-IAZT3VO6.js → chunk-G25YWGUL.js} +4 -1
- package/dist/{chunk-BGTZFEKR.js → chunk-HYYI4ZFT.js} +6 -252
- package/dist/{chunk-CTF6FS2M.js → chunk-L3GVDMCA.js} +211 -1
- package/dist/{chunk-VMMNFRAO.js → chunk-QNABH7YG.js} +3 -3
- package/dist/{chunk-JTUX5FDC.js → chunk-R565P6XC.js} +691 -2
- package/dist/{chunk-WY5IJI37.js → chunk-RIL2CDFE.js} +2 -2
- package/dist/{chunk-TML32XBW.js → chunk-RMPXGBNI.js} +2 -2
- package/dist/{chunk-UG5565XQ.js → chunk-US4JUSI3.js} +3 -3
- package/dist/components/index.d.ts +3005 -192
- package/dist/components/index.js +1539 -24
- package/dist/features/auth/index.d.ts +108 -9
- package/dist/features/dashboard/index.js +7 -7
- package/dist/features/monitoring/index.js +8 -8
- package/dist/features/operations/index.d.ts +8 -2
- package/dist/features/operations/index.js +52 -55
- package/dist/features/settings/index.d.ts +108 -9
- package/dist/features/settings/index.js +27 -10
- package/dist/hooks/index.d.ts +3279 -185
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/published.d.ts +108 -9
- package/dist/hooks/published.js +3 -3
- package/dist/index.d.ts +3285 -187
- package/dist/index.js +5 -5
- package/dist/initialization/index.d.ts +108 -9
- package/dist/layout/index.d.ts +60 -3
- package/dist/layout/index.js +2 -2
- package/dist/profile/index.d.ts +108 -9
- package/dist/provider/index.d.ts +6 -2
- package/dist/provider/index.js +3 -3
- package/dist/provider/published.d.ts +6 -2
- package/dist/supabase/index.d.ts +210 -18
- package/dist/theme/index.d.ts +6 -2
- package/dist/theme/index.js +3 -3
- package/dist/types/index.d.ts +108 -9
- package/package.json +1 -1
|
@@ -253,6 +253,33 @@ interface APIErrorAlertProps {
|
|
|
253
253
|
*/
|
|
254
254
|
declare function APIErrorAlert({ error, title, showRequestId, icon, color }: APIErrorAlertProps): react_jsx_runtime.JSX.Element;
|
|
255
255
|
|
|
256
|
+
interface CenteredErrorStateProps {
|
|
257
|
+
error: unknown;
|
|
258
|
+
title?: string;
|
|
259
|
+
/** Minimum height of the centering container. Defaults to 300. */
|
|
260
|
+
h?: number | string;
|
|
261
|
+
/** Vertical padding (used when h is not set). */
|
|
262
|
+
py?: MantineSpacing;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* CenteredErrorState - Displays an error centered inside its container.
|
|
266
|
+
*
|
|
267
|
+
* The caller is responsible for providing the container (e.g. `<Paper withBorder>`).
|
|
268
|
+
* This component only handles centering + rendering the error alert.
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
271
|
+
* ```tsx
|
|
272
|
+
* if (error) {
|
|
273
|
+
* return (
|
|
274
|
+
* <Paper withBorder>
|
|
275
|
+
* <CenteredErrorState error={error} title="Failed to load trends" />
|
|
276
|
+
* </Paper>
|
|
277
|
+
* )
|
|
278
|
+
* }
|
|
279
|
+
* ```
|
|
280
|
+
*/
|
|
281
|
+
declare function CenteredErrorState({ error, title, h, py }: CenteredErrorStateProps): react_jsx_runtime.JSX.Element;
|
|
282
|
+
|
|
256
283
|
interface StatCardBaseProps {
|
|
257
284
|
/** The label/description text */
|
|
258
285
|
label: string;
|
|
@@ -852,10 +879,10 @@ interface AgentMemory {
|
|
|
852
879
|
history: MemoryEntry[];
|
|
853
880
|
}
|
|
854
881
|
|
|
855
|
-
type Json = string | number | boolean | null | {
|
|
856
|
-
[key: string]: Json | undefined;
|
|
857
|
-
} | Json[];
|
|
858
|
-
type Database = {
|
|
882
|
+
type Json$1 = string | number | boolean | null | {
|
|
883
|
+
[key: string]: Json$1 | undefined;
|
|
884
|
+
} | Json$1[];
|
|
885
|
+
type Database$1 = {
|
|
859
886
|
__InternalSupabase: {
|
|
860
887
|
PostgrestVersion: "12.2.3 (519615d)";
|
|
861
888
|
};
|
|
@@ -863,13 +890,12 @@ type Database = {
|
|
|
863
890
|
Tables: {
|
|
864
891
|
acq_companies: {
|
|
865
892
|
Row: {
|
|
866
|
-
attio_company_id: string | null;
|
|
867
893
|
batch_id: string | null;
|
|
868
894
|
category: string | null;
|
|
869
895
|
category_pain: string | null;
|
|
870
896
|
created_at: string;
|
|
871
897
|
domain: string | null;
|
|
872
|
-
enrichment_data: Json | null;
|
|
898
|
+
enrichment_data: Json$1 | null;
|
|
873
899
|
filter_reason: string | null;
|
|
874
900
|
founded_year: number | null;
|
|
875
901
|
id: string;
|
|
@@ -879,7 +905,7 @@ type Database = {
|
|
|
879
905
|
name: string;
|
|
880
906
|
num_employees: number | null;
|
|
881
907
|
organization_id: string;
|
|
882
|
-
pipeline_status: Json;
|
|
908
|
+
pipeline_status: Json$1;
|
|
883
909
|
segment: string | null;
|
|
884
910
|
source: string | null;
|
|
885
911
|
status: string;
|
|
@@ -887,13 +913,12 @@ type Database = {
|
|
|
887
913
|
website: string | null;
|
|
888
914
|
};
|
|
889
915
|
Insert: {
|
|
890
|
-
attio_company_id?: string | null;
|
|
891
916
|
batch_id?: string | null;
|
|
892
917
|
category?: string | null;
|
|
893
918
|
category_pain?: string | null;
|
|
894
919
|
created_at?: string;
|
|
895
920
|
domain?: string | null;
|
|
896
|
-
enrichment_data?: Json | null;
|
|
921
|
+
enrichment_data?: Json$1 | null;
|
|
897
922
|
filter_reason?: string | null;
|
|
898
923
|
founded_year?: number | null;
|
|
899
924
|
id?: string;
|
|
@@ -903,7 +928,7 @@ type Database = {
|
|
|
903
928
|
name: string;
|
|
904
929
|
num_employees?: number | null;
|
|
905
930
|
organization_id: string;
|
|
906
|
-
pipeline_status?: Json;
|
|
931
|
+
pipeline_status?: Json$1;
|
|
907
932
|
segment?: string | null;
|
|
908
933
|
source?: string | null;
|
|
909
934
|
status?: string;
|
|
@@ -911,13 +936,12 @@ type Database = {
|
|
|
911
936
|
website?: string | null;
|
|
912
937
|
};
|
|
913
938
|
Update: {
|
|
914
|
-
attio_company_id?: string | null;
|
|
915
939
|
batch_id?: string | null;
|
|
916
940
|
category?: string | null;
|
|
917
941
|
category_pain?: string | null;
|
|
918
942
|
created_at?: string;
|
|
919
943
|
domain?: string | null;
|
|
920
|
-
enrichment_data?: Json | null;
|
|
944
|
+
enrichment_data?: Json$1 | null;
|
|
921
945
|
filter_reason?: string | null;
|
|
922
946
|
founded_year?: number | null;
|
|
923
947
|
id?: string;
|
|
@@ -927,7 +951,7 @@ type Database = {
|
|
|
927
951
|
name?: string;
|
|
928
952
|
num_employees?: number | null;
|
|
929
953
|
organization_id?: string;
|
|
930
|
-
pipeline_status?: Json;
|
|
954
|
+
pipeline_status?: Json$1;
|
|
931
955
|
segment?: string | null;
|
|
932
956
|
source?: string | null;
|
|
933
957
|
status?: string;
|
|
@@ -946,7 +970,6 @@ type Database = {
|
|
|
946
970
|
};
|
|
947
971
|
acq_contacts: {
|
|
948
972
|
Row: {
|
|
949
|
-
attio_person_id: string | null;
|
|
950
973
|
batch_id: string | null;
|
|
951
974
|
brochure_first_viewed_at: string | null;
|
|
952
975
|
brochure_view_count: number;
|
|
@@ -954,7 +977,7 @@ type Database = {
|
|
|
954
977
|
created_at: string;
|
|
955
978
|
email: string;
|
|
956
979
|
email_valid: string | null;
|
|
957
|
-
enrichment_data: Json;
|
|
980
|
+
enrichment_data: Json$1;
|
|
958
981
|
filter_reason: string | null;
|
|
959
982
|
first_name: string | null;
|
|
960
983
|
headline: string | null;
|
|
@@ -964,7 +987,7 @@ type Database = {
|
|
|
964
987
|
nurture: boolean;
|
|
965
988
|
opening_line: string | null;
|
|
966
989
|
organization_id: string;
|
|
967
|
-
pipeline_status: Json;
|
|
990
|
+
pipeline_status: Json$1;
|
|
968
991
|
source: string | null;
|
|
969
992
|
source_id: string | null;
|
|
970
993
|
status: string;
|
|
@@ -972,7 +995,6 @@ type Database = {
|
|
|
972
995
|
updated_at: string;
|
|
973
996
|
};
|
|
974
997
|
Insert: {
|
|
975
|
-
attio_person_id?: string | null;
|
|
976
998
|
batch_id?: string | null;
|
|
977
999
|
brochure_first_viewed_at?: string | null;
|
|
978
1000
|
brochure_view_count?: number;
|
|
@@ -980,7 +1002,7 @@ type Database = {
|
|
|
980
1002
|
created_at?: string;
|
|
981
1003
|
email: string;
|
|
982
1004
|
email_valid?: string | null;
|
|
983
|
-
enrichment_data?: Json;
|
|
1005
|
+
enrichment_data?: Json$1;
|
|
984
1006
|
filter_reason?: string | null;
|
|
985
1007
|
first_name?: string | null;
|
|
986
1008
|
headline?: string | null;
|
|
@@ -990,7 +1012,7 @@ type Database = {
|
|
|
990
1012
|
nurture?: boolean;
|
|
991
1013
|
opening_line?: string | null;
|
|
992
1014
|
organization_id: string;
|
|
993
|
-
pipeline_status?: Json;
|
|
1015
|
+
pipeline_status?: Json$1;
|
|
994
1016
|
source?: string | null;
|
|
995
1017
|
source_id?: string | null;
|
|
996
1018
|
status?: string;
|
|
@@ -998,7 +1020,6 @@ type Database = {
|
|
|
998
1020
|
updated_at?: string;
|
|
999
1021
|
};
|
|
1000
1022
|
Update: {
|
|
1001
|
-
attio_person_id?: string | null;
|
|
1002
1023
|
batch_id?: string | null;
|
|
1003
1024
|
brochure_first_viewed_at?: string | null;
|
|
1004
1025
|
brochure_view_count?: number;
|
|
@@ -1006,7 +1027,7 @@ type Database = {
|
|
|
1006
1027
|
created_at?: string;
|
|
1007
1028
|
email?: string;
|
|
1008
1029
|
email_valid?: string | null;
|
|
1009
|
-
enrichment_data?: Json;
|
|
1030
|
+
enrichment_data?: Json$1;
|
|
1010
1031
|
filter_reason?: string | null;
|
|
1011
1032
|
first_name?: string | null;
|
|
1012
1033
|
headline?: string | null;
|
|
@@ -1016,7 +1037,7 @@ type Database = {
|
|
|
1016
1037
|
nurture?: boolean;
|
|
1017
1038
|
opening_line?: string | null;
|
|
1018
1039
|
organization_id?: string;
|
|
1019
|
-
pipeline_status?: Json;
|
|
1040
|
+
pipeline_status?: Json$1;
|
|
1020
1041
|
source?: string | null;
|
|
1021
1042
|
source_id?: string | null;
|
|
1022
1043
|
status?: string;
|
|
@@ -1084,17 +1105,17 @@ type Database = {
|
|
|
1084
1105
|
acq_content_distributions: {
|
|
1085
1106
|
Row: {
|
|
1086
1107
|
adapted_body: string | null;
|
|
1087
|
-
checklist: Json | null;
|
|
1108
|
+
checklist: Json$1 | null;
|
|
1088
1109
|
content_id: string;
|
|
1089
1110
|
created_at: string;
|
|
1090
1111
|
format: string;
|
|
1091
1112
|
id: string;
|
|
1092
|
-
media_urls: Json;
|
|
1093
|
-
metrics: Json;
|
|
1113
|
+
media_urls: Json$1;
|
|
1114
|
+
metrics: Json$1;
|
|
1094
1115
|
metrics_updated_at: string | null;
|
|
1095
1116
|
organization_id: string;
|
|
1096
1117
|
platform: string;
|
|
1097
|
-
platform_content: Json | null;
|
|
1118
|
+
platform_content: Json$1 | null;
|
|
1098
1119
|
platform_post_id: string | null;
|
|
1099
1120
|
platform_url: string | null;
|
|
1100
1121
|
published_at: string | null;
|
|
@@ -1103,17 +1124,17 @@ type Database = {
|
|
|
1103
1124
|
};
|
|
1104
1125
|
Insert: {
|
|
1105
1126
|
adapted_body?: string | null;
|
|
1106
|
-
checklist?: Json | null;
|
|
1127
|
+
checklist?: Json$1 | null;
|
|
1107
1128
|
content_id: string;
|
|
1108
1129
|
created_at?: string;
|
|
1109
1130
|
format: string;
|
|
1110
1131
|
id?: string;
|
|
1111
|
-
media_urls?: Json;
|
|
1112
|
-
metrics?: Json;
|
|
1132
|
+
media_urls?: Json$1;
|
|
1133
|
+
metrics?: Json$1;
|
|
1113
1134
|
metrics_updated_at?: string | null;
|
|
1114
1135
|
organization_id: string;
|
|
1115
1136
|
platform: string;
|
|
1116
|
-
platform_content?: Json | null;
|
|
1137
|
+
platform_content?: Json$1 | null;
|
|
1117
1138
|
platform_post_id?: string | null;
|
|
1118
1139
|
platform_url?: string | null;
|
|
1119
1140
|
published_at?: string | null;
|
|
@@ -1122,17 +1143,17 @@ type Database = {
|
|
|
1122
1143
|
};
|
|
1123
1144
|
Update: {
|
|
1124
1145
|
adapted_body?: string | null;
|
|
1125
|
-
checklist?: Json | null;
|
|
1146
|
+
checklist?: Json$1 | null;
|
|
1126
1147
|
content_id?: string;
|
|
1127
1148
|
created_at?: string;
|
|
1128
1149
|
format?: string;
|
|
1129
1150
|
id?: string;
|
|
1130
|
-
media_urls?: Json;
|
|
1131
|
-
metrics?: Json;
|
|
1151
|
+
media_urls?: Json$1;
|
|
1152
|
+
metrics?: Json$1;
|
|
1132
1153
|
metrics_updated_at?: string | null;
|
|
1133
1154
|
organization_id?: string;
|
|
1134
1155
|
platform?: string;
|
|
1135
|
-
platform_content?: Json | null;
|
|
1156
|
+
platform_content?: Json$1 | null;
|
|
1136
1157
|
platform_post_id?: string | null;
|
|
1137
1158
|
platform_url?: string | null;
|
|
1138
1159
|
published_at?: string | null;
|
|
@@ -1156,17 +1177,124 @@ type Database = {
|
|
|
1156
1177
|
}
|
|
1157
1178
|
];
|
|
1158
1179
|
};
|
|
1180
|
+
acq_deal_notes: {
|
|
1181
|
+
Row: {
|
|
1182
|
+
author_user_id: string | null;
|
|
1183
|
+
body: string;
|
|
1184
|
+
created_at: string;
|
|
1185
|
+
deal_id: string;
|
|
1186
|
+
id: string;
|
|
1187
|
+
organization_id: string;
|
|
1188
|
+
updated_at: string;
|
|
1189
|
+
};
|
|
1190
|
+
Insert: {
|
|
1191
|
+
author_user_id?: string | null;
|
|
1192
|
+
body: string;
|
|
1193
|
+
created_at?: string;
|
|
1194
|
+
deal_id: string;
|
|
1195
|
+
id?: string;
|
|
1196
|
+
organization_id: string;
|
|
1197
|
+
updated_at?: string;
|
|
1198
|
+
};
|
|
1199
|
+
Update: {
|
|
1200
|
+
author_user_id?: string | null;
|
|
1201
|
+
body?: string;
|
|
1202
|
+
created_at?: string;
|
|
1203
|
+
deal_id?: string;
|
|
1204
|
+
id?: string;
|
|
1205
|
+
organization_id?: string;
|
|
1206
|
+
updated_at?: string;
|
|
1207
|
+
};
|
|
1208
|
+
Relationships: [
|
|
1209
|
+
{
|
|
1210
|
+
foreignKeyName: "acq_deal_notes_deal_id_fkey";
|
|
1211
|
+
columns: ["deal_id"];
|
|
1212
|
+
isOneToOne: false;
|
|
1213
|
+
referencedRelation: "acq_deals";
|
|
1214
|
+
referencedColumns: ["id"];
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
foreignKeyName: "acq_deal_notes_organization_id_fkey";
|
|
1218
|
+
columns: ["organization_id"];
|
|
1219
|
+
isOneToOne: false;
|
|
1220
|
+
referencedRelation: "organizations";
|
|
1221
|
+
referencedColumns: ["id"];
|
|
1222
|
+
}
|
|
1223
|
+
];
|
|
1224
|
+
};
|
|
1225
|
+
acq_deal_tasks: {
|
|
1226
|
+
Row: {
|
|
1227
|
+
assignee_user_id: string | null;
|
|
1228
|
+
completed_at: string | null;
|
|
1229
|
+
completed_by_user_id: string | null;
|
|
1230
|
+
created_at: string;
|
|
1231
|
+
created_by_user_id: string | null;
|
|
1232
|
+
deal_id: string;
|
|
1233
|
+
description: string | null;
|
|
1234
|
+
due_at: string | null;
|
|
1235
|
+
id: string;
|
|
1236
|
+
kind: string;
|
|
1237
|
+
organization_id: string;
|
|
1238
|
+
title: string;
|
|
1239
|
+
updated_at: string;
|
|
1240
|
+
};
|
|
1241
|
+
Insert: {
|
|
1242
|
+
assignee_user_id?: string | null;
|
|
1243
|
+
completed_at?: string | null;
|
|
1244
|
+
completed_by_user_id?: string | null;
|
|
1245
|
+
created_at?: string;
|
|
1246
|
+
created_by_user_id?: string | null;
|
|
1247
|
+
deal_id: string;
|
|
1248
|
+
description?: string | null;
|
|
1249
|
+
due_at?: string | null;
|
|
1250
|
+
id?: string;
|
|
1251
|
+
kind?: string;
|
|
1252
|
+
organization_id: string;
|
|
1253
|
+
title: string;
|
|
1254
|
+
updated_at?: string;
|
|
1255
|
+
};
|
|
1256
|
+
Update: {
|
|
1257
|
+
assignee_user_id?: string | null;
|
|
1258
|
+
completed_at?: string | null;
|
|
1259
|
+
completed_by_user_id?: string | null;
|
|
1260
|
+
created_at?: string;
|
|
1261
|
+
created_by_user_id?: string | null;
|
|
1262
|
+
deal_id?: string;
|
|
1263
|
+
description?: string | null;
|
|
1264
|
+
due_at?: string | null;
|
|
1265
|
+
id?: string;
|
|
1266
|
+
kind?: string;
|
|
1267
|
+
organization_id?: string;
|
|
1268
|
+
title?: string;
|
|
1269
|
+
updated_at?: string;
|
|
1270
|
+
};
|
|
1271
|
+
Relationships: [
|
|
1272
|
+
{
|
|
1273
|
+
foreignKeyName: "acq_deal_tasks_deal_id_fkey";
|
|
1274
|
+
columns: ["deal_id"];
|
|
1275
|
+
isOneToOne: false;
|
|
1276
|
+
referencedRelation: "acq_deals";
|
|
1277
|
+
referencedColumns: ["id"];
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
foreignKeyName: "acq_deal_tasks_organization_id_fkey";
|
|
1281
|
+
columns: ["organization_id"];
|
|
1282
|
+
isOneToOne: false;
|
|
1283
|
+
referencedRelation: "organizations";
|
|
1284
|
+
referencedColumns: ["id"];
|
|
1285
|
+
}
|
|
1286
|
+
];
|
|
1287
|
+
};
|
|
1159
1288
|
acq_deals: {
|
|
1160
1289
|
Row: {
|
|
1161
|
-
activity_log: Json;
|
|
1162
|
-
attio_deal_id: string;
|
|
1290
|
+
activity_log: Json$1;
|
|
1163
1291
|
cached_stage: string | null;
|
|
1164
1292
|
closed_lost_at: string | null;
|
|
1165
1293
|
closed_lost_reason: string | null;
|
|
1166
1294
|
contact_email: string;
|
|
1167
1295
|
contact_id: string | null;
|
|
1168
1296
|
created_at: string;
|
|
1169
|
-
discovery_data: Json | null;
|
|
1297
|
+
discovery_data: Json$1 | null;
|
|
1170
1298
|
discovery_submitted_at: string | null;
|
|
1171
1299
|
discovery_submitted_by: string | null;
|
|
1172
1300
|
id: string;
|
|
@@ -1175,7 +1303,7 @@ type Database = {
|
|
|
1175
1303
|
organization_id: string;
|
|
1176
1304
|
payment_link_sent_at: string | null;
|
|
1177
1305
|
payment_received_at: string | null;
|
|
1178
|
-
proposal_data: Json | null;
|
|
1306
|
+
proposal_data: Json$1 | null;
|
|
1179
1307
|
proposal_generated_at: string | null;
|
|
1180
1308
|
proposal_pdf_url: string | null;
|
|
1181
1309
|
proposal_reviewed_at: string | null;
|
|
@@ -1193,15 +1321,14 @@ type Database = {
|
|
|
1193
1321
|
updated_at: string;
|
|
1194
1322
|
};
|
|
1195
1323
|
Insert: {
|
|
1196
|
-
activity_log?: Json;
|
|
1197
|
-
attio_deal_id: string;
|
|
1324
|
+
activity_log?: Json$1;
|
|
1198
1325
|
cached_stage?: string | null;
|
|
1199
1326
|
closed_lost_at?: string | null;
|
|
1200
1327
|
closed_lost_reason?: string | null;
|
|
1201
1328
|
contact_email: string;
|
|
1202
1329
|
contact_id?: string | null;
|
|
1203
1330
|
created_at?: string;
|
|
1204
|
-
discovery_data?: Json | null;
|
|
1331
|
+
discovery_data?: Json$1 | null;
|
|
1205
1332
|
discovery_submitted_at?: string | null;
|
|
1206
1333
|
discovery_submitted_by?: string | null;
|
|
1207
1334
|
id?: string;
|
|
@@ -1210,7 +1337,7 @@ type Database = {
|
|
|
1210
1337
|
organization_id: string;
|
|
1211
1338
|
payment_link_sent_at?: string | null;
|
|
1212
1339
|
payment_received_at?: string | null;
|
|
1213
|
-
proposal_data?: Json | null;
|
|
1340
|
+
proposal_data?: Json$1 | null;
|
|
1214
1341
|
proposal_generated_at?: string | null;
|
|
1215
1342
|
proposal_pdf_url?: string | null;
|
|
1216
1343
|
proposal_reviewed_at?: string | null;
|
|
@@ -1228,15 +1355,14 @@ type Database = {
|
|
|
1228
1355
|
updated_at?: string;
|
|
1229
1356
|
};
|
|
1230
1357
|
Update: {
|
|
1231
|
-
activity_log?: Json;
|
|
1232
|
-
attio_deal_id?: string;
|
|
1358
|
+
activity_log?: Json$1;
|
|
1233
1359
|
cached_stage?: string | null;
|
|
1234
1360
|
closed_lost_at?: string | null;
|
|
1235
1361
|
closed_lost_reason?: string | null;
|
|
1236
1362
|
contact_email?: string;
|
|
1237
1363
|
contact_id?: string | null;
|
|
1238
1364
|
created_at?: string;
|
|
1239
|
-
discovery_data?: Json | null;
|
|
1365
|
+
discovery_data?: Json$1 | null;
|
|
1240
1366
|
discovery_submitted_at?: string | null;
|
|
1241
1367
|
discovery_submitted_by?: string | null;
|
|
1242
1368
|
id?: string;
|
|
@@ -1245,7 +1371,7 @@ type Database = {
|
|
|
1245
1371
|
organization_id?: string;
|
|
1246
1372
|
payment_link_sent_at?: string | null;
|
|
1247
1373
|
payment_received_at?: string | null;
|
|
1248
|
-
proposal_data?: Json | null;
|
|
1374
|
+
proposal_data?: Json$1 | null;
|
|
1249
1375
|
proposal_generated_at?: string | null;
|
|
1250
1376
|
proposal_pdf_url?: string | null;
|
|
1251
1377
|
proposal_reviewed_at?: string | null;
|
|
@@ -1334,7 +1460,7 @@ type Database = {
|
|
|
1334
1460
|
id: string;
|
|
1335
1461
|
instantly_campaign_id: string | null;
|
|
1336
1462
|
launched_at: string | null;
|
|
1337
|
-
metadata: Json;
|
|
1463
|
+
metadata: Json$1;
|
|
1338
1464
|
name: string;
|
|
1339
1465
|
organization_id: string;
|
|
1340
1466
|
status: string;
|
|
@@ -1348,7 +1474,7 @@ type Database = {
|
|
|
1348
1474
|
id?: string;
|
|
1349
1475
|
instantly_campaign_id?: string | null;
|
|
1350
1476
|
launched_at?: string | null;
|
|
1351
|
-
metadata?: Json;
|
|
1477
|
+
metadata?: Json$1;
|
|
1352
1478
|
name: string;
|
|
1353
1479
|
organization_id: string;
|
|
1354
1480
|
status?: string;
|
|
@@ -1362,7 +1488,7 @@ type Database = {
|
|
|
1362
1488
|
id?: string;
|
|
1363
1489
|
instantly_campaign_id?: string | null;
|
|
1364
1490
|
launched_at?: string | null;
|
|
1365
|
-
metadata?: Json;
|
|
1491
|
+
metadata?: Json$1;
|
|
1366
1492
|
name?: string;
|
|
1367
1493
|
organization_id?: string;
|
|
1368
1494
|
status?: string;
|
|
@@ -1380,7 +1506,7 @@ type Database = {
|
|
|
1380
1506
|
};
|
|
1381
1507
|
acq_seo_metrics: {
|
|
1382
1508
|
Row: {
|
|
1383
|
-
ai_citations: Json | null;
|
|
1509
|
+
ai_citations: Json$1 | null;
|
|
1384
1510
|
avg_position: number | null;
|
|
1385
1511
|
clicks: number | null;
|
|
1386
1512
|
created_at: string;
|
|
@@ -1403,7 +1529,7 @@ type Database = {
|
|
|
1403
1529
|
word_count: number | null;
|
|
1404
1530
|
};
|
|
1405
1531
|
Insert: {
|
|
1406
|
-
ai_citations?: Json | null;
|
|
1532
|
+
ai_citations?: Json$1 | null;
|
|
1407
1533
|
avg_position?: number | null;
|
|
1408
1534
|
clicks?: number | null;
|
|
1409
1535
|
created_at?: string;
|
|
@@ -1426,7 +1552,7 @@ type Database = {
|
|
|
1426
1552
|
word_count?: number | null;
|
|
1427
1553
|
};
|
|
1428
1554
|
Update: {
|
|
1429
|
-
ai_citations?: Json | null;
|
|
1555
|
+
ai_citations?: Json$1 | null;
|
|
1430
1556
|
avg_position?: number | null;
|
|
1431
1557
|
clicks?: number | null;
|
|
1432
1558
|
created_at?: string;
|
|
@@ -1468,19 +1594,19 @@ type Database = {
|
|
|
1468
1594
|
acq_seo_pages: {
|
|
1469
1595
|
Row: {
|
|
1470
1596
|
city: string | null;
|
|
1471
|
-
content: Json | null;
|
|
1597
|
+
content: Json$1 | null;
|
|
1472
1598
|
created_at: string;
|
|
1473
|
-
faq_items: Json | null;
|
|
1599
|
+
faq_items: Json$1 | null;
|
|
1474
1600
|
hero_image_url: string | null;
|
|
1475
1601
|
id: string;
|
|
1476
|
-
internal_links: Json | null;
|
|
1477
|
-
local_data: Json | null;
|
|
1602
|
+
internal_links: Json$1 | null;
|
|
1603
|
+
local_data: Json$1 | null;
|
|
1478
1604
|
meta_description: string | null;
|
|
1479
1605
|
organization_id: string;
|
|
1480
1606
|
page_type: string;
|
|
1481
1607
|
published_at: string | null;
|
|
1482
1608
|
refreshed_at: string | null;
|
|
1483
|
-
schema_markup: Json | null;
|
|
1609
|
+
schema_markup: Json$1 | null;
|
|
1484
1610
|
slug: string;
|
|
1485
1611
|
state: string | null;
|
|
1486
1612
|
status: string;
|
|
@@ -1491,19 +1617,19 @@ type Database = {
|
|
|
1491
1617
|
};
|
|
1492
1618
|
Insert: {
|
|
1493
1619
|
city?: string | null;
|
|
1494
|
-
content?: Json | null;
|
|
1620
|
+
content?: Json$1 | null;
|
|
1495
1621
|
created_at?: string;
|
|
1496
|
-
faq_items?: Json | null;
|
|
1622
|
+
faq_items?: Json$1 | null;
|
|
1497
1623
|
hero_image_url?: string | null;
|
|
1498
1624
|
id?: string;
|
|
1499
|
-
internal_links?: Json | null;
|
|
1500
|
-
local_data?: Json | null;
|
|
1625
|
+
internal_links?: Json$1 | null;
|
|
1626
|
+
local_data?: Json$1 | null;
|
|
1501
1627
|
meta_description?: string | null;
|
|
1502
1628
|
organization_id: string;
|
|
1503
1629
|
page_type: string;
|
|
1504
1630
|
published_at?: string | null;
|
|
1505
1631
|
refreshed_at?: string | null;
|
|
1506
|
-
schema_markup?: Json | null;
|
|
1632
|
+
schema_markup?: Json$1 | null;
|
|
1507
1633
|
slug: string;
|
|
1508
1634
|
state?: string | null;
|
|
1509
1635
|
status?: string;
|
|
@@ -1514,19 +1640,19 @@ type Database = {
|
|
|
1514
1640
|
};
|
|
1515
1641
|
Update: {
|
|
1516
1642
|
city?: string | null;
|
|
1517
|
-
content?: Json | null;
|
|
1643
|
+
content?: Json$1 | null;
|
|
1518
1644
|
created_at?: string;
|
|
1519
|
-
faq_items?: Json | null;
|
|
1645
|
+
faq_items?: Json$1 | null;
|
|
1520
1646
|
hero_image_url?: string | null;
|
|
1521
1647
|
id?: string;
|
|
1522
|
-
internal_links?: Json | null;
|
|
1523
|
-
local_data?: Json | null;
|
|
1648
|
+
internal_links?: Json$1 | null;
|
|
1649
|
+
local_data?: Json$1 | null;
|
|
1524
1650
|
meta_description?: string | null;
|
|
1525
1651
|
organization_id?: string;
|
|
1526
1652
|
page_type?: string;
|
|
1527
1653
|
published_at?: string | null;
|
|
1528
1654
|
refreshed_at?: string | null;
|
|
1529
|
-
schema_markup?: Json | null;
|
|
1655
|
+
schema_markup?: Json$1 | null;
|
|
1530
1656
|
slug?: string;
|
|
1531
1657
|
state?: string | null;
|
|
1532
1658
|
status?: string;
|
|
@@ -1560,7 +1686,7 @@ type Database = {
|
|
|
1560
1686
|
initial_draft: string | null;
|
|
1561
1687
|
matched_keywords: string[];
|
|
1562
1688
|
matched_query: string | null;
|
|
1563
|
-
metadata: Json;
|
|
1689
|
+
metadata: Json$1;
|
|
1564
1690
|
organization_id: string;
|
|
1565
1691
|
platform: string;
|
|
1566
1692
|
platform_post_id: string;
|
|
@@ -1590,7 +1716,7 @@ type Database = {
|
|
|
1590
1716
|
initial_draft?: string | null;
|
|
1591
1717
|
matched_keywords?: string[];
|
|
1592
1718
|
matched_query?: string | null;
|
|
1593
|
-
metadata?: Json;
|
|
1719
|
+
metadata?: Json$1;
|
|
1594
1720
|
organization_id: string;
|
|
1595
1721
|
platform: string;
|
|
1596
1722
|
platform_post_id: string;
|
|
@@ -1620,7 +1746,7 @@ type Database = {
|
|
|
1620
1746
|
initial_draft?: string | null;
|
|
1621
1747
|
matched_keywords?: string[];
|
|
1622
1748
|
matched_query?: string | null;
|
|
1623
|
-
metadata?: Json;
|
|
1749
|
+
metadata?: Json$1;
|
|
1624
1750
|
organization_id?: string;
|
|
1625
1751
|
platform?: string;
|
|
1626
1752
|
platform_post_id?: string;
|
|
@@ -1657,7 +1783,7 @@ type Database = {
|
|
|
1657
1783
|
entity_name: string | null;
|
|
1658
1784
|
entity_type: string;
|
|
1659
1785
|
id: string;
|
|
1660
|
-
metadata: Json | null;
|
|
1786
|
+
metadata: Json$1 | null;
|
|
1661
1787
|
occurred_at: string;
|
|
1662
1788
|
organization_id: string;
|
|
1663
1789
|
status: string;
|
|
@@ -1673,7 +1799,7 @@ type Database = {
|
|
|
1673
1799
|
entity_name?: string | null;
|
|
1674
1800
|
entity_type: string;
|
|
1675
1801
|
id?: string;
|
|
1676
|
-
metadata?: Json | null;
|
|
1802
|
+
metadata?: Json$1 | null;
|
|
1677
1803
|
occurred_at?: string;
|
|
1678
1804
|
organization_id: string;
|
|
1679
1805
|
status: string;
|
|
@@ -1689,7 +1815,7 @@ type Database = {
|
|
|
1689
1815
|
entity_name?: string | null;
|
|
1690
1816
|
entity_type?: string;
|
|
1691
1817
|
id?: string;
|
|
1692
|
-
metadata?: Json | null;
|
|
1818
|
+
metadata?: Json$1 | null;
|
|
1693
1819
|
occurred_at?: string;
|
|
1694
1820
|
organization_id?: string;
|
|
1695
1821
|
status?: string;
|
|
@@ -1784,51 +1910,51 @@ type Database = {
|
|
|
1784
1910
|
calibration_runs: {
|
|
1785
1911
|
Row: {
|
|
1786
1912
|
completed_at: string | null;
|
|
1787
|
-
config_variants: Json;
|
|
1913
|
+
config_variants: Json$1;
|
|
1788
1914
|
created_at: string | null;
|
|
1789
1915
|
description: string | null;
|
|
1790
1916
|
execution_mode: string;
|
|
1791
1917
|
grader_model: string | null;
|
|
1792
|
-
grading_rubric: Json | null;
|
|
1918
|
+
grading_rubric: Json$1 | null;
|
|
1793
1919
|
id: string;
|
|
1794
1920
|
name: string;
|
|
1795
1921
|
organization_id: string;
|
|
1796
1922
|
project_id: string;
|
|
1797
|
-
results: Json;
|
|
1923
|
+
results: Json$1;
|
|
1798
1924
|
status: string;
|
|
1799
|
-
test_inputs: Json;
|
|
1925
|
+
test_inputs: Json$1;
|
|
1800
1926
|
};
|
|
1801
1927
|
Insert: {
|
|
1802
1928
|
completed_at?: string | null;
|
|
1803
|
-
config_variants: Json;
|
|
1929
|
+
config_variants: Json$1;
|
|
1804
1930
|
created_at?: string | null;
|
|
1805
1931
|
description?: string | null;
|
|
1806
1932
|
execution_mode?: string;
|
|
1807
1933
|
grader_model?: string | null;
|
|
1808
|
-
grading_rubric?: Json | null;
|
|
1934
|
+
grading_rubric?: Json$1 | null;
|
|
1809
1935
|
id?: string;
|
|
1810
1936
|
name: string;
|
|
1811
1937
|
organization_id: string;
|
|
1812
1938
|
project_id: string;
|
|
1813
|
-
results?: Json;
|
|
1939
|
+
results?: Json$1;
|
|
1814
1940
|
status?: string;
|
|
1815
|
-
test_inputs: Json;
|
|
1941
|
+
test_inputs: Json$1;
|
|
1816
1942
|
};
|
|
1817
1943
|
Update: {
|
|
1818
1944
|
completed_at?: string | null;
|
|
1819
|
-
config_variants?: Json;
|
|
1945
|
+
config_variants?: Json$1;
|
|
1820
1946
|
created_at?: string | null;
|
|
1821
1947
|
description?: string | null;
|
|
1822
1948
|
execution_mode?: string;
|
|
1823
1949
|
grader_model?: string | null;
|
|
1824
|
-
grading_rubric?: Json | null;
|
|
1950
|
+
grading_rubric?: Json$1 | null;
|
|
1825
1951
|
id?: string;
|
|
1826
1952
|
name?: string;
|
|
1827
1953
|
organization_id?: string;
|
|
1828
1954
|
project_id?: string;
|
|
1829
|
-
results?: Json;
|
|
1955
|
+
results?: Json$1;
|
|
1830
1956
|
status?: string;
|
|
1831
|
-
test_inputs?: Json;
|
|
1957
|
+
test_inputs?: Json$1;
|
|
1832
1958
|
};
|
|
1833
1959
|
Relationships: [
|
|
1834
1960
|
{
|
|
@@ -1849,18 +1975,18 @@ type Database = {
|
|
|
1849
1975
|
};
|
|
1850
1976
|
command_queue: {
|
|
1851
1977
|
Row: {
|
|
1852
|
-
action_payload: Json | null;
|
|
1853
|
-
actions: Json;
|
|
1978
|
+
action_payload: Json$1 | null;
|
|
1979
|
+
actions: Json$1;
|
|
1854
1980
|
completed_at: string | null;
|
|
1855
1981
|
completed_by: string | null;
|
|
1856
|
-
context: Json;
|
|
1982
|
+
context: Json$1;
|
|
1857
1983
|
created_at: string;
|
|
1858
1984
|
description: string | null;
|
|
1859
1985
|
expires_at: string | null;
|
|
1860
1986
|
human_checkpoint: string | null;
|
|
1861
1987
|
id: string;
|
|
1862
1988
|
idempotency_key: string | null;
|
|
1863
|
-
metadata: Json | null;
|
|
1989
|
+
metadata: Json$1 | null;
|
|
1864
1990
|
organization_id: string;
|
|
1865
1991
|
origin_execution_id: string;
|
|
1866
1992
|
origin_resource_id: string;
|
|
@@ -1873,18 +1999,18 @@ type Database = {
|
|
|
1873
1999
|
target_resource_type: string | null;
|
|
1874
2000
|
};
|
|
1875
2001
|
Insert: {
|
|
1876
|
-
action_payload?: Json | null;
|
|
1877
|
-
actions: Json;
|
|
2002
|
+
action_payload?: Json$1 | null;
|
|
2003
|
+
actions: Json$1;
|
|
1878
2004
|
completed_at?: string | null;
|
|
1879
2005
|
completed_by?: string | null;
|
|
1880
|
-
context: Json;
|
|
2006
|
+
context: Json$1;
|
|
1881
2007
|
created_at?: string;
|
|
1882
2008
|
description?: string | null;
|
|
1883
2009
|
expires_at?: string | null;
|
|
1884
2010
|
human_checkpoint?: string | null;
|
|
1885
2011
|
id?: string;
|
|
1886
2012
|
idempotency_key?: string | null;
|
|
1887
|
-
metadata?: Json | null;
|
|
2013
|
+
metadata?: Json$1 | null;
|
|
1888
2014
|
organization_id: string;
|
|
1889
2015
|
origin_execution_id: string;
|
|
1890
2016
|
origin_resource_id: string;
|
|
@@ -1897,18 +2023,18 @@ type Database = {
|
|
|
1897
2023
|
target_resource_type?: string | null;
|
|
1898
2024
|
};
|
|
1899
2025
|
Update: {
|
|
1900
|
-
action_payload?: Json | null;
|
|
1901
|
-
actions?: Json;
|
|
2026
|
+
action_payload?: Json$1 | null;
|
|
2027
|
+
actions?: Json$1;
|
|
1902
2028
|
completed_at?: string | null;
|
|
1903
2029
|
completed_by?: string | null;
|
|
1904
|
-
context?: Json;
|
|
2030
|
+
context?: Json$1;
|
|
1905
2031
|
created_at?: string;
|
|
1906
2032
|
description?: string | null;
|
|
1907
2033
|
expires_at?: string | null;
|
|
1908
2034
|
human_checkpoint?: string | null;
|
|
1909
2035
|
id?: string;
|
|
1910
2036
|
idempotency_key?: string | null;
|
|
1911
|
-
metadata?: Json | null;
|
|
2037
|
+
metadata?: Json$1 | null;
|
|
1912
2038
|
organization_id?: string;
|
|
1913
2039
|
origin_execution_id?: string;
|
|
1914
2040
|
origin_resource_id?: string;
|
|
@@ -1997,10 +2123,10 @@ type Database = {
|
|
|
1997
2123
|
};
|
|
1998
2124
|
deployments: {
|
|
1999
2125
|
Row: {
|
|
2000
|
-
compiled_docs: Json | null;
|
|
2126
|
+
compiled_docs: Json$1 | null;
|
|
2001
2127
|
created_at: string;
|
|
2002
2128
|
deployment_version: string | null;
|
|
2003
|
-
documentation: Json | null;
|
|
2129
|
+
documentation: Json$1 | null;
|
|
2004
2130
|
error_message: string | null;
|
|
2005
2131
|
id: string;
|
|
2006
2132
|
organization_id: string;
|
|
@@ -2012,10 +2138,10 @@ type Database = {
|
|
|
2012
2138
|
updated_at: string;
|
|
2013
2139
|
};
|
|
2014
2140
|
Insert: {
|
|
2015
|
-
compiled_docs?: Json | null;
|
|
2141
|
+
compiled_docs?: Json$1 | null;
|
|
2016
2142
|
created_at?: string;
|
|
2017
2143
|
deployment_version?: string | null;
|
|
2018
|
-
documentation?: Json | null;
|
|
2144
|
+
documentation?: Json$1 | null;
|
|
2019
2145
|
error_message?: string | null;
|
|
2020
2146
|
id?: string;
|
|
2021
2147
|
organization_id: string;
|
|
@@ -2027,10 +2153,10 @@ type Database = {
|
|
|
2027
2153
|
updated_at?: string;
|
|
2028
2154
|
};
|
|
2029
2155
|
Update: {
|
|
2030
|
-
compiled_docs?: Json | null;
|
|
2156
|
+
compiled_docs?: Json$1 | null;
|
|
2031
2157
|
created_at?: string;
|
|
2032
2158
|
deployment_version?: string | null;
|
|
2033
|
-
documentation?: Json | null;
|
|
2159
|
+
documentation?: Json$1 | null;
|
|
2034
2160
|
error_message?: string | null;
|
|
2035
2161
|
id?: string;
|
|
2036
2162
|
organization_id?: string;
|
|
@@ -2061,7 +2187,7 @@ type Database = {
|
|
|
2061
2187
|
error_type: string;
|
|
2062
2188
|
execution_id: string;
|
|
2063
2189
|
id: string;
|
|
2064
|
-
metadata: Json | null;
|
|
2190
|
+
metadata: Json$1 | null;
|
|
2065
2191
|
occurred_at: string;
|
|
2066
2192
|
organization_id: string;
|
|
2067
2193
|
resolved: boolean;
|
|
@@ -2077,7 +2203,7 @@ type Database = {
|
|
|
2077
2203
|
error_type: string;
|
|
2078
2204
|
execution_id: string;
|
|
2079
2205
|
id?: string;
|
|
2080
|
-
metadata?: Json | null;
|
|
2206
|
+
metadata?: Json$1 | null;
|
|
2081
2207
|
occurred_at?: string;
|
|
2082
2208
|
organization_id: string;
|
|
2083
2209
|
resolved?: boolean;
|
|
@@ -2093,7 +2219,7 @@ type Database = {
|
|
|
2093
2219
|
error_type?: string;
|
|
2094
2220
|
execution_id?: string;
|
|
2095
2221
|
id?: string;
|
|
2096
|
-
metadata?: Json | null;
|
|
2222
|
+
metadata?: Json$1 | null;
|
|
2097
2223
|
occurred_at?: string;
|
|
2098
2224
|
organization_id?: string;
|
|
2099
2225
|
resolved?: boolean;
|
|
@@ -2131,12 +2257,12 @@ type Database = {
|
|
|
2131
2257
|
created_at: string | null;
|
|
2132
2258
|
error: string | null;
|
|
2133
2259
|
execution_id: string;
|
|
2134
|
-
input: Json | null;
|
|
2260
|
+
input: Json$1 | null;
|
|
2135
2261
|
last_heartbeat_at: string | null;
|
|
2136
|
-
logs: Json | null;
|
|
2262
|
+
logs: Json$1 | null;
|
|
2137
2263
|
organization_id: string;
|
|
2138
2264
|
origin_execution_id: string | null;
|
|
2139
|
-
output: Json | null;
|
|
2265
|
+
output: Json$1 | null;
|
|
2140
2266
|
resource_id: string;
|
|
2141
2267
|
resource_status: string;
|
|
2142
2268
|
resource_type: string;
|
|
@@ -2156,12 +2282,12 @@ type Database = {
|
|
|
2156
2282
|
created_at?: string | null;
|
|
2157
2283
|
error?: string | null;
|
|
2158
2284
|
execution_id?: string;
|
|
2159
|
-
input?: Json | null;
|
|
2285
|
+
input?: Json$1 | null;
|
|
2160
2286
|
last_heartbeat_at?: string | null;
|
|
2161
|
-
logs?: Json | null;
|
|
2287
|
+
logs?: Json$1 | null;
|
|
2162
2288
|
organization_id: string;
|
|
2163
2289
|
origin_execution_id?: string | null;
|
|
2164
|
-
output?: Json | null;
|
|
2290
|
+
output?: Json$1 | null;
|
|
2165
2291
|
resource_id: string;
|
|
2166
2292
|
resource_status?: string;
|
|
2167
2293
|
resource_type?: string;
|
|
@@ -2181,12 +2307,12 @@ type Database = {
|
|
|
2181
2307
|
created_at?: string | null;
|
|
2182
2308
|
error?: string | null;
|
|
2183
2309
|
execution_id?: string;
|
|
2184
|
-
input?: Json | null;
|
|
2310
|
+
input?: Json$1 | null;
|
|
2185
2311
|
last_heartbeat_at?: string | null;
|
|
2186
|
-
logs?: Json | null;
|
|
2312
|
+
logs?: Json$1 | null;
|
|
2187
2313
|
organization_id?: string;
|
|
2188
2314
|
origin_execution_id?: string | null;
|
|
2189
|
-
output?: Json | null;
|
|
2315
|
+
output?: Json$1 | null;
|
|
2190
2316
|
resource_id?: string;
|
|
2191
2317
|
resource_status?: string;
|
|
2192
2318
|
resource_type?: string;
|
|
@@ -2234,7 +2360,7 @@ type Database = {
|
|
|
2234
2360
|
execution_metrics: {
|
|
2235
2361
|
Row: {
|
|
2236
2362
|
ai_call_count: number;
|
|
2237
|
-
ai_calls: Json | null;
|
|
2363
|
+
ai_calls: Json$1 | null;
|
|
2238
2364
|
automation_savings_usd: number | null;
|
|
2239
2365
|
created_at: string | null;
|
|
2240
2366
|
duration_ms: number | null;
|
|
@@ -2247,7 +2373,7 @@ type Database = {
|
|
|
2247
2373
|
};
|
|
2248
2374
|
Insert: {
|
|
2249
2375
|
ai_call_count: number;
|
|
2250
|
-
ai_calls?: Json | null;
|
|
2376
|
+
ai_calls?: Json$1 | null;
|
|
2251
2377
|
automation_savings_usd?: number | null;
|
|
2252
2378
|
created_at?: string | null;
|
|
2253
2379
|
duration_ms?: number | null;
|
|
@@ -2260,7 +2386,7 @@ type Database = {
|
|
|
2260
2386
|
};
|
|
2261
2387
|
Update: {
|
|
2262
2388
|
ai_call_count?: number;
|
|
2263
|
-
ai_calls?: Json | null;
|
|
2389
|
+
ai_calls?: Json$1 | null;
|
|
2264
2390
|
automation_savings_usd?: number | null;
|
|
2265
2391
|
created_at?: string | null;
|
|
2266
2392
|
duration_ms?: number | null;
|
|
@@ -2410,7 +2536,7 @@ type Database = {
|
|
|
2410
2536
|
};
|
|
2411
2537
|
org_memberships: {
|
|
2412
2538
|
Row: {
|
|
2413
|
-
config: Json;
|
|
2539
|
+
config: Json$1;
|
|
2414
2540
|
created_at: string | null;
|
|
2415
2541
|
id: string;
|
|
2416
2542
|
membership_status: string | null;
|
|
@@ -2421,7 +2547,7 @@ type Database = {
|
|
|
2421
2547
|
workos_membership_id: string | null;
|
|
2422
2548
|
};
|
|
2423
2549
|
Insert: {
|
|
2424
|
-
config?: Json;
|
|
2550
|
+
config?: Json$1;
|
|
2425
2551
|
created_at?: string | null;
|
|
2426
2552
|
id?: string;
|
|
2427
2553
|
membership_status?: string | null;
|
|
@@ -2432,7 +2558,7 @@ type Database = {
|
|
|
2432
2558
|
workos_membership_id?: string | null;
|
|
2433
2559
|
};
|
|
2434
2560
|
Update: {
|
|
2435
|
-
config?: Json;
|
|
2561
|
+
config?: Json$1;
|
|
2436
2562
|
created_at?: string | null;
|
|
2437
2563
|
id?: string;
|
|
2438
2564
|
membership_status?: string | null;
|
|
@@ -2461,33 +2587,33 @@ type Database = {
|
|
|
2461
2587
|
};
|
|
2462
2588
|
organizations: {
|
|
2463
2589
|
Row: {
|
|
2464
|
-
config: Json;
|
|
2590
|
+
config: Json$1;
|
|
2465
2591
|
created_at: string;
|
|
2466
2592
|
id: string;
|
|
2467
2593
|
is_test: boolean;
|
|
2468
|
-
metadata: Json;
|
|
2594
|
+
metadata: Json$1;
|
|
2469
2595
|
name: string;
|
|
2470
2596
|
status: string;
|
|
2471
2597
|
updated_at: string;
|
|
2472
2598
|
workos_org_id: string;
|
|
2473
2599
|
};
|
|
2474
2600
|
Insert: {
|
|
2475
|
-
config?: Json;
|
|
2601
|
+
config?: Json$1;
|
|
2476
2602
|
created_at?: string;
|
|
2477
2603
|
id?: string;
|
|
2478
2604
|
is_test?: boolean;
|
|
2479
|
-
metadata?: Json;
|
|
2605
|
+
metadata?: Json$1;
|
|
2480
2606
|
name: string;
|
|
2481
2607
|
status?: string;
|
|
2482
2608
|
updated_at?: string;
|
|
2483
2609
|
workos_org_id: string;
|
|
2484
2610
|
};
|
|
2485
2611
|
Update: {
|
|
2486
|
-
config?: Json;
|
|
2612
|
+
config?: Json$1;
|
|
2487
2613
|
created_at?: string;
|
|
2488
2614
|
id?: string;
|
|
2489
2615
|
is_test?: boolean;
|
|
2490
|
-
metadata?: Json;
|
|
2616
|
+
metadata?: Json$1;
|
|
2491
2617
|
name?: string;
|
|
2492
2618
|
status?: string;
|
|
2493
2619
|
updated_at?: string;
|
|
@@ -2497,13 +2623,13 @@ type Database = {
|
|
|
2497
2623
|
};
|
|
2498
2624
|
prj_milestones: {
|
|
2499
2625
|
Row: {
|
|
2500
|
-
checklist: Json | null;
|
|
2626
|
+
checklist: Json$1 | null;
|
|
2501
2627
|
completed_at: string | null;
|
|
2502
2628
|
created_at: string;
|
|
2503
2629
|
description: string | null;
|
|
2504
2630
|
due_date: string | null;
|
|
2505
2631
|
id: string;
|
|
2506
|
-
metadata: Json | null;
|
|
2632
|
+
metadata: Json$1 | null;
|
|
2507
2633
|
name: string;
|
|
2508
2634
|
organization_id: string;
|
|
2509
2635
|
project_id: string;
|
|
@@ -2512,13 +2638,13 @@ type Database = {
|
|
|
2512
2638
|
updated_at: string;
|
|
2513
2639
|
};
|
|
2514
2640
|
Insert: {
|
|
2515
|
-
checklist?: Json | null;
|
|
2641
|
+
checklist?: Json$1 | null;
|
|
2516
2642
|
completed_at?: string | null;
|
|
2517
2643
|
created_at?: string;
|
|
2518
2644
|
description?: string | null;
|
|
2519
2645
|
due_date?: string | null;
|
|
2520
2646
|
id?: string;
|
|
2521
|
-
metadata?: Json | null;
|
|
2647
|
+
metadata?: Json$1 | null;
|
|
2522
2648
|
name: string;
|
|
2523
2649
|
organization_id: string;
|
|
2524
2650
|
project_id: string;
|
|
@@ -2527,13 +2653,13 @@ type Database = {
|
|
|
2527
2653
|
updated_at?: string;
|
|
2528
2654
|
};
|
|
2529
2655
|
Update: {
|
|
2530
|
-
checklist?: Json | null;
|
|
2656
|
+
checklist?: Json$1 | null;
|
|
2531
2657
|
completed_at?: string | null;
|
|
2532
2658
|
created_at?: string;
|
|
2533
2659
|
description?: string | null;
|
|
2534
2660
|
due_date?: string | null;
|
|
2535
2661
|
id?: string;
|
|
2536
|
-
metadata?: Json | null;
|
|
2662
|
+
metadata?: Json$1 | null;
|
|
2537
2663
|
name?: string;
|
|
2538
2664
|
organization_id?: string;
|
|
2539
2665
|
project_id?: string;
|
|
@@ -2564,7 +2690,7 @@ type Database = {
|
|
|
2564
2690
|
created_at: string;
|
|
2565
2691
|
created_by: string | null;
|
|
2566
2692
|
id: string;
|
|
2567
|
-
metadata: Json | null;
|
|
2693
|
+
metadata: Json$1 | null;
|
|
2568
2694
|
milestone_id: string | null;
|
|
2569
2695
|
occurred_at: string;
|
|
2570
2696
|
organization_id: string;
|
|
@@ -2578,7 +2704,7 @@ type Database = {
|
|
|
2578
2704
|
created_at?: string;
|
|
2579
2705
|
created_by?: string | null;
|
|
2580
2706
|
id?: string;
|
|
2581
|
-
metadata?: Json | null;
|
|
2707
|
+
metadata?: Json$1 | null;
|
|
2582
2708
|
milestone_id?: string | null;
|
|
2583
2709
|
occurred_at?: string;
|
|
2584
2710
|
organization_id: string;
|
|
@@ -2592,7 +2718,7 @@ type Database = {
|
|
|
2592
2718
|
created_at?: string;
|
|
2593
2719
|
created_by?: string | null;
|
|
2594
2720
|
id?: string;
|
|
2595
|
-
metadata?: Json | null;
|
|
2721
|
+
metadata?: Json$1 | null;
|
|
2596
2722
|
milestone_id?: string | null;
|
|
2597
2723
|
occurred_at?: string;
|
|
2598
2724
|
organization_id?: string;
|
|
@@ -2649,7 +2775,7 @@ type Database = {
|
|
|
2649
2775
|
description: string | null;
|
|
2650
2776
|
id: string;
|
|
2651
2777
|
kind: string;
|
|
2652
|
-
metadata: Json | null;
|
|
2778
|
+
metadata: Json$1 | null;
|
|
2653
2779
|
name: string;
|
|
2654
2780
|
organization_id: string;
|
|
2655
2781
|
start_date: string | null;
|
|
@@ -2666,7 +2792,7 @@ type Database = {
|
|
|
2666
2792
|
description?: string | null;
|
|
2667
2793
|
id?: string;
|
|
2668
2794
|
kind?: string;
|
|
2669
|
-
metadata?: Json | null;
|
|
2795
|
+
metadata?: Json$1 | null;
|
|
2670
2796
|
name: string;
|
|
2671
2797
|
organization_id: string;
|
|
2672
2798
|
start_date?: string | null;
|
|
@@ -2683,7 +2809,7 @@ type Database = {
|
|
|
2683
2809
|
description?: string | null;
|
|
2684
2810
|
id?: string;
|
|
2685
2811
|
kind?: string;
|
|
2686
|
-
metadata?: Json | null;
|
|
2812
|
+
metadata?: Json$1 | null;
|
|
2687
2813
|
name?: string;
|
|
2688
2814
|
organization_id?: string;
|
|
2689
2815
|
start_date?: string | null;
|
|
@@ -2717,58 +2843,58 @@ type Database = {
|
|
|
2717
2843
|
};
|
|
2718
2844
|
prj_tasks: {
|
|
2719
2845
|
Row: {
|
|
2720
|
-
checklist: Json;
|
|
2846
|
+
checklist: Json$1;
|
|
2721
2847
|
completed_at: string | null;
|
|
2722
2848
|
created_at: string;
|
|
2723
2849
|
description: string | null;
|
|
2724
2850
|
due_date: string | null;
|
|
2725
2851
|
file_url: string | null;
|
|
2726
2852
|
id: string;
|
|
2727
|
-
metadata: Json | null;
|
|
2853
|
+
metadata: Json$1 | null;
|
|
2728
2854
|
milestone_id: string | null;
|
|
2729
2855
|
name: string;
|
|
2730
2856
|
organization_id: string;
|
|
2731
2857
|
parent_task_id: string | null;
|
|
2732
2858
|
project_id: string;
|
|
2733
|
-
resume_context: Json | null;
|
|
2859
|
+
resume_context: Json$1 | null;
|
|
2734
2860
|
status: string;
|
|
2735
2861
|
type: string;
|
|
2736
2862
|
updated_at: string;
|
|
2737
2863
|
};
|
|
2738
2864
|
Insert: {
|
|
2739
|
-
checklist?: Json;
|
|
2865
|
+
checklist?: Json$1;
|
|
2740
2866
|
completed_at?: string | null;
|
|
2741
2867
|
created_at?: string;
|
|
2742
2868
|
description?: string | null;
|
|
2743
2869
|
due_date?: string | null;
|
|
2744
2870
|
file_url?: string | null;
|
|
2745
2871
|
id?: string;
|
|
2746
|
-
metadata?: Json | null;
|
|
2872
|
+
metadata?: Json$1 | null;
|
|
2747
2873
|
milestone_id?: string | null;
|
|
2748
2874
|
name: string;
|
|
2749
2875
|
organization_id: string;
|
|
2750
2876
|
parent_task_id?: string | null;
|
|
2751
2877
|
project_id: string;
|
|
2752
|
-
resume_context?: Json | null;
|
|
2878
|
+
resume_context?: Json$1 | null;
|
|
2753
2879
|
status?: string;
|
|
2754
2880
|
type?: string;
|
|
2755
2881
|
updated_at?: string;
|
|
2756
2882
|
};
|
|
2757
2883
|
Update: {
|
|
2758
|
-
checklist?: Json;
|
|
2884
|
+
checklist?: Json$1;
|
|
2759
2885
|
completed_at?: string | null;
|
|
2760
2886
|
created_at?: string;
|
|
2761
2887
|
description?: string | null;
|
|
2762
2888
|
due_date?: string | null;
|
|
2763
2889
|
file_url?: string | null;
|
|
2764
2890
|
id?: string;
|
|
2765
|
-
metadata?: Json | null;
|
|
2891
|
+
metadata?: Json$1 | null;
|
|
2766
2892
|
milestone_id?: string | null;
|
|
2767
2893
|
name?: string;
|
|
2768
2894
|
organization_id?: string;
|
|
2769
2895
|
parent_task_id?: string | null;
|
|
2770
2896
|
project_id?: string;
|
|
2771
|
-
resume_context?: Json | null;
|
|
2897
|
+
resume_context?: Json$1 | null;
|
|
2772
2898
|
status?: string;
|
|
2773
2899
|
type?: string;
|
|
2774
2900
|
updated_at?: string;
|
|
@@ -2811,7 +2937,7 @@ type Database = {
|
|
|
2811
2937
|
message: string;
|
|
2812
2938
|
message_index: number | null;
|
|
2813
2939
|
message_type: string | null;
|
|
2814
|
-
metadata: Json | null;
|
|
2940
|
+
metadata: Json$1 | null;
|
|
2815
2941
|
role: string;
|
|
2816
2942
|
session_id: string;
|
|
2817
2943
|
session_turn_number: number;
|
|
@@ -2822,7 +2948,7 @@ type Database = {
|
|
|
2822
2948
|
message: string;
|
|
2823
2949
|
message_index?: number | null;
|
|
2824
2950
|
message_type?: string | null;
|
|
2825
|
-
metadata?: Json | null;
|
|
2951
|
+
metadata?: Json$1 | null;
|
|
2826
2952
|
role: string;
|
|
2827
2953
|
session_id: string;
|
|
2828
2954
|
session_turn_number: number;
|
|
@@ -2833,7 +2959,7 @@ type Database = {
|
|
|
2833
2959
|
message?: string;
|
|
2834
2960
|
message_index?: number | null;
|
|
2835
2961
|
message_type?: string | null;
|
|
2836
|
-
metadata?: Json | null;
|
|
2962
|
+
metadata?: Json$1 | null;
|
|
2837
2963
|
role?: string;
|
|
2838
2964
|
session_id?: string;
|
|
2839
2965
|
session_turn_number?: number;
|
|
@@ -2856,8 +2982,8 @@ type Database = {
|
|
|
2856
2982
|
cumulative_output_tokens: number;
|
|
2857
2983
|
deleted_at: string | null;
|
|
2858
2984
|
ended_at: string | null;
|
|
2859
|
-
memory_snapshot: Json;
|
|
2860
|
-
metadata: Json | null;
|
|
2985
|
+
memory_snapshot: Json$1;
|
|
2986
|
+
metadata: Json$1 | null;
|
|
2861
2987
|
organization_id: string;
|
|
2862
2988
|
resource_id: string;
|
|
2863
2989
|
session_id: string;
|
|
@@ -2872,8 +2998,8 @@ type Database = {
|
|
|
2872
2998
|
cumulative_output_tokens?: number;
|
|
2873
2999
|
deleted_at?: string | null;
|
|
2874
3000
|
ended_at?: string | null;
|
|
2875
|
-
memory_snapshot: Json;
|
|
2876
|
-
metadata?: Json | null;
|
|
3001
|
+
memory_snapshot: Json$1;
|
|
3002
|
+
metadata?: Json$1 | null;
|
|
2877
3003
|
organization_id: string;
|
|
2878
3004
|
resource_id: string;
|
|
2879
3005
|
session_id?: string;
|
|
@@ -2888,8 +3014,8 @@ type Database = {
|
|
|
2888
3014
|
cumulative_output_tokens?: number;
|
|
2889
3015
|
deleted_at?: string | null;
|
|
2890
3016
|
ended_at?: string | null;
|
|
2891
|
-
memory_snapshot?: Json;
|
|
2892
|
-
metadata?: Json | null;
|
|
3017
|
+
memory_snapshot?: Json$1;
|
|
3018
|
+
metadata?: Json$1 | null;
|
|
2893
3019
|
organization_id?: string;
|
|
2894
3020
|
resource_id?: string;
|
|
2895
3021
|
session_id?: string;
|
|
@@ -2924,7 +3050,7 @@ type Database = {
|
|
|
2924
3050
|
last_execution_id: string | null;
|
|
2925
3051
|
last_run_at: string | null;
|
|
2926
3052
|
max_retries: number;
|
|
2927
|
-
metadata: Json | null;
|
|
3053
|
+
metadata: Json$1 | null;
|
|
2928
3054
|
name: string;
|
|
2929
3055
|
next_run_at: string | null;
|
|
2930
3056
|
organization_id: string;
|
|
@@ -2932,7 +3058,7 @@ type Database = {
|
|
|
2932
3058
|
origin_resource_id: string | null;
|
|
2933
3059
|
origin_resource_type: string | null;
|
|
2934
3060
|
retry_count: number;
|
|
2935
|
-
schedule_config: Json;
|
|
3061
|
+
schedule_config: Json$1;
|
|
2936
3062
|
status: string;
|
|
2937
3063
|
target_resource_id: string;
|
|
2938
3064
|
target_resource_type: string;
|
|
@@ -2947,7 +3073,7 @@ type Database = {
|
|
|
2947
3073
|
last_execution_id?: string | null;
|
|
2948
3074
|
last_run_at?: string | null;
|
|
2949
3075
|
max_retries?: number;
|
|
2950
|
-
metadata?: Json | null;
|
|
3076
|
+
metadata?: Json$1 | null;
|
|
2951
3077
|
name: string;
|
|
2952
3078
|
next_run_at?: string | null;
|
|
2953
3079
|
organization_id: string;
|
|
@@ -2955,7 +3081,7 @@ type Database = {
|
|
|
2955
3081
|
origin_resource_id?: string | null;
|
|
2956
3082
|
origin_resource_type?: string | null;
|
|
2957
3083
|
retry_count?: number;
|
|
2958
|
-
schedule_config: Json;
|
|
3084
|
+
schedule_config: Json$1;
|
|
2959
3085
|
status?: string;
|
|
2960
3086
|
target_resource_id: string;
|
|
2961
3087
|
target_resource_type: string;
|
|
@@ -2970,7 +3096,7 @@ type Database = {
|
|
|
2970
3096
|
last_execution_id?: string | null;
|
|
2971
3097
|
last_run_at?: string | null;
|
|
2972
3098
|
max_retries?: number;
|
|
2973
|
-
metadata?: Json | null;
|
|
3099
|
+
metadata?: Json$1 | null;
|
|
2974
3100
|
name?: string;
|
|
2975
3101
|
next_run_at?: string | null;
|
|
2976
3102
|
organization_id?: string;
|
|
@@ -2978,7 +3104,7 @@ type Database = {
|
|
|
2978
3104
|
origin_resource_id?: string | null;
|
|
2979
3105
|
origin_resource_type?: string | null;
|
|
2980
3106
|
retry_count?: number;
|
|
2981
|
-
schedule_config?: Json;
|
|
3107
|
+
schedule_config?: Json$1;
|
|
2982
3108
|
status?: string;
|
|
2983
3109
|
target_resource_id?: string;
|
|
2984
3110
|
target_resource_type?: string;
|
|
@@ -2996,7 +3122,7 @@ type Database = {
|
|
|
2996
3122
|
};
|
|
2997
3123
|
users: {
|
|
2998
3124
|
Row: {
|
|
2999
|
-
config: Json;
|
|
3125
|
+
config: Json$1;
|
|
3000
3126
|
created_at: string;
|
|
3001
3127
|
display_name: string | null;
|
|
3002
3128
|
email: string;
|
|
@@ -3012,7 +3138,7 @@ type Database = {
|
|
|
3012
3138
|
workos_user_id: string | null;
|
|
3013
3139
|
};
|
|
3014
3140
|
Insert: {
|
|
3015
|
-
config?: Json;
|
|
3141
|
+
config?: Json$1;
|
|
3016
3142
|
created_at?: string;
|
|
3017
3143
|
display_name?: string | null;
|
|
3018
3144
|
email: string;
|
|
@@ -3028,7 +3154,7 @@ type Database = {
|
|
|
3028
3154
|
workos_user_id?: string | null;
|
|
3029
3155
|
};
|
|
3030
3156
|
Update: {
|
|
3031
|
-
config?: Json;
|
|
3157
|
+
config?: Json$1;
|
|
3032
3158
|
created_at?: string;
|
|
3033
3159
|
display_name?: string | null;
|
|
3034
3160
|
email?: string;
|
|
@@ -3112,11 +3238,11 @@ type Database = {
|
|
|
3112
3238
|
Args: {
|
|
3113
3239
|
p_platform: string;
|
|
3114
3240
|
};
|
|
3115
|
-
Returns: Json;
|
|
3241
|
+
Returns: Json$1;
|
|
3116
3242
|
};
|
|
3117
3243
|
append_deal_activity: {
|
|
3118
3244
|
Args: {
|
|
3119
|
-
p_activity: Json;
|
|
3245
|
+
p_activity: Json$1;
|
|
3120
3246
|
p_deal_id: string;
|
|
3121
3247
|
p_organization_id: string;
|
|
3122
3248
|
};
|
|
@@ -3124,7 +3250,7 @@ type Database = {
|
|
|
3124
3250
|
};
|
|
3125
3251
|
auth_jwt_claims: {
|
|
3126
3252
|
Args: never;
|
|
3127
|
-
Returns: Json;
|
|
3253
|
+
Returns: Json$1;
|
|
3128
3254
|
};
|
|
3129
3255
|
auth_uid_safe: {
|
|
3130
3256
|
Args: never;
|
|
@@ -3149,8 +3275,8 @@ type Database = {
|
|
|
3149
3275
|
Returns: {
|
|
3150
3276
|
created_at: string;
|
|
3151
3277
|
ended_at: string;
|
|
3152
|
-
memory_snapshot: Json;
|
|
3153
|
-
metadata: Json;
|
|
3278
|
+
memory_snapshot: Json$1;
|
|
3279
|
+
metadata: Json$1;
|
|
3154
3280
|
organization_id: string;
|
|
3155
3281
|
resource_id: string;
|
|
3156
3282
|
session_id: string;
|
|
@@ -3195,11 +3321,11 @@ type Database = {
|
|
|
3195
3321
|
p_organization_id: string;
|
|
3196
3322
|
p_role_slug?: string;
|
|
3197
3323
|
};
|
|
3198
|
-
Returns: Json;
|
|
3324
|
+
Returns: Json$1;
|
|
3199
3325
|
};
|
|
3200
3326
|
process_due_schedules: {
|
|
3201
3327
|
Args: never;
|
|
3202
|
-
Returns: Json;
|
|
3328
|
+
Returns: Json$1;
|
|
3203
3329
|
};
|
|
3204
3330
|
upsert_user_profile: {
|
|
3205
3331
|
Args: never;
|
|
@@ -3219,8 +3345,8 @@ type Database = {
|
|
|
3219
3345
|
};
|
|
3220
3346
|
};
|
|
3221
3347
|
};
|
|
3222
|
-
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
3223
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
3348
|
+
type DatabaseWithoutInternals = Omit<Database$1, "__InternalSupabase">;
|
|
3349
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database$1, "public">];
|
|
3224
3350
|
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3225
3351
|
schema: keyof DatabaseWithoutInternals;
|
|
3226
3352
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
@@ -3482,6 +3608,44 @@ interface NotificationDTO {
|
|
|
3482
3608
|
createdAt: string;
|
|
3483
3609
|
}
|
|
3484
3610
|
|
|
3611
|
+
/** Raw database row type for acq_deals table */
|
|
3612
|
+
type AcqDealRow = Database$1['public']['Tables']['acq_deals']['Row'];
|
|
3613
|
+
type DealStage = 'interested' | 'booked' | 'qualified' | 'demo_booked' | 'proposal' | 'proposal_sent' | 'proposal_signed' | 'payment_sent' | 'proposal_revision' | 'closed_won' | 'closed_lost' | 'nurturing' | 'cancelled' | 'no_show';
|
|
3614
|
+
interface KanbanStageConfig {
|
|
3615
|
+
color: string;
|
|
3616
|
+
label?: string;
|
|
3617
|
+
}
|
|
3618
|
+
type KanbanBoardConfig = Partial<Record<DealStage, KanbanStageConfig>>;
|
|
3619
|
+
interface DealContact {
|
|
3620
|
+
id: string;
|
|
3621
|
+
first_name: string | null;
|
|
3622
|
+
last_name: string | null;
|
|
3623
|
+
email: string;
|
|
3624
|
+
title: string | null;
|
|
3625
|
+
headline: string | null;
|
|
3626
|
+
linkedin_url: string | null;
|
|
3627
|
+
pipeline_status: Record<string, unknown> | null;
|
|
3628
|
+
enrichment_data: Record<string, unknown> | null;
|
|
3629
|
+
company: {
|
|
3630
|
+
id: string;
|
|
3631
|
+
name: string;
|
|
3632
|
+
domain: string | null;
|
|
3633
|
+
website: string | null;
|
|
3634
|
+
linkedin_url: string | null;
|
|
3635
|
+
segment: string | null;
|
|
3636
|
+
category: string | null;
|
|
3637
|
+
num_employees: number | null;
|
|
3638
|
+
} | null;
|
|
3639
|
+
}
|
|
3640
|
+
interface DealFilters {
|
|
3641
|
+
stage?: DealStage;
|
|
3642
|
+
search?: string;
|
|
3643
|
+
}
|
|
3644
|
+
/** Deal list item with joined contact and company data */
|
|
3645
|
+
interface DealListItem extends AcqDealRow {
|
|
3646
|
+
contact: DealContact | null;
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3485
3649
|
/**
|
|
3486
3650
|
* Multi-tenancy configuration types
|
|
3487
3651
|
*
|
|
@@ -4069,6 +4233,2433 @@ interface IConfirmationInputModalProps {
|
|
|
4069
4233
|
}
|
|
4070
4234
|
declare const ConfirmationInputModal: ({ opened, onClose, loading, icon, confirmationHandler, style, title, text, buttonText, buttonColor, inputValue, onInputChange, expectedValue, placeholder }: IConfirmationInputModalProps) => react_jsx_runtime.JSX.Element;
|
|
4071
4235
|
|
|
4236
|
+
type Json =
|
|
4237
|
+
| string
|
|
4238
|
+
| number
|
|
4239
|
+
| boolean
|
|
4240
|
+
| null
|
|
4241
|
+
| { [key: string]: Json | undefined }
|
|
4242
|
+
| Json[]
|
|
4243
|
+
|
|
4244
|
+
type Database = {
|
|
4245
|
+
// Allows to automatically instantiate createClient with right options
|
|
4246
|
+
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
|
|
4247
|
+
__InternalSupabase: {
|
|
4248
|
+
PostgrestVersion: "12.2.3 (519615d)"
|
|
4249
|
+
}
|
|
4250
|
+
public: {
|
|
4251
|
+
Tables: {
|
|
4252
|
+
acq_companies: {
|
|
4253
|
+
Row: {
|
|
4254
|
+
batch_id: string | null
|
|
4255
|
+
category: string | null
|
|
4256
|
+
category_pain: string | null
|
|
4257
|
+
created_at: string
|
|
4258
|
+
domain: string | null
|
|
4259
|
+
enrichment_data: Json | null
|
|
4260
|
+
filter_reason: string | null
|
|
4261
|
+
founded_year: number | null
|
|
4262
|
+
id: string
|
|
4263
|
+
linkedin_url: string | null
|
|
4264
|
+
location_city: string | null
|
|
4265
|
+
location_state: string | null
|
|
4266
|
+
name: string
|
|
4267
|
+
num_employees: number | null
|
|
4268
|
+
organization_id: string
|
|
4269
|
+
pipeline_status: Json
|
|
4270
|
+
segment: string | null
|
|
4271
|
+
source: string | null
|
|
4272
|
+
status: string
|
|
4273
|
+
updated_at: string
|
|
4274
|
+
website: string | null
|
|
4275
|
+
}
|
|
4276
|
+
Insert: {
|
|
4277
|
+
batch_id?: string | null
|
|
4278
|
+
category?: string | null
|
|
4279
|
+
category_pain?: string | null
|
|
4280
|
+
created_at?: string
|
|
4281
|
+
domain?: string | null
|
|
4282
|
+
enrichment_data?: Json | null
|
|
4283
|
+
filter_reason?: string | null
|
|
4284
|
+
founded_year?: number | null
|
|
4285
|
+
id?: string
|
|
4286
|
+
linkedin_url?: string | null
|
|
4287
|
+
location_city?: string | null
|
|
4288
|
+
location_state?: string | null
|
|
4289
|
+
name: string
|
|
4290
|
+
num_employees?: number | null
|
|
4291
|
+
organization_id: string
|
|
4292
|
+
pipeline_status?: Json
|
|
4293
|
+
segment?: string | null
|
|
4294
|
+
source?: string | null
|
|
4295
|
+
status?: string
|
|
4296
|
+
updated_at?: string
|
|
4297
|
+
website?: string | null
|
|
4298
|
+
}
|
|
4299
|
+
Update: {
|
|
4300
|
+
batch_id?: string | null
|
|
4301
|
+
category?: string | null
|
|
4302
|
+
category_pain?: string | null
|
|
4303
|
+
created_at?: string
|
|
4304
|
+
domain?: string | null
|
|
4305
|
+
enrichment_data?: Json | null
|
|
4306
|
+
filter_reason?: string | null
|
|
4307
|
+
founded_year?: number | null
|
|
4308
|
+
id?: string
|
|
4309
|
+
linkedin_url?: string | null
|
|
4310
|
+
location_city?: string | null
|
|
4311
|
+
location_state?: string | null
|
|
4312
|
+
name?: string
|
|
4313
|
+
num_employees?: number | null
|
|
4314
|
+
organization_id?: string
|
|
4315
|
+
pipeline_status?: Json
|
|
4316
|
+
segment?: string | null
|
|
4317
|
+
source?: string | null
|
|
4318
|
+
status?: string
|
|
4319
|
+
updated_at?: string
|
|
4320
|
+
website?: string | null
|
|
4321
|
+
}
|
|
4322
|
+
Relationships: [
|
|
4323
|
+
{
|
|
4324
|
+
foreignKeyName: "acq_companies_organization_id_fkey"
|
|
4325
|
+
columns: ["organization_id"]
|
|
4326
|
+
isOneToOne: false
|
|
4327
|
+
referencedRelation: "organizations"
|
|
4328
|
+
referencedColumns: ["id"]
|
|
4329
|
+
},
|
|
4330
|
+
]
|
|
4331
|
+
}
|
|
4332
|
+
acq_contacts: {
|
|
4333
|
+
Row: {
|
|
4334
|
+
batch_id: string | null
|
|
4335
|
+
brochure_first_viewed_at: string | null
|
|
4336
|
+
brochure_view_count: number
|
|
4337
|
+
company_id: string | null
|
|
4338
|
+
created_at: string
|
|
4339
|
+
email: string
|
|
4340
|
+
email_valid: string | null
|
|
4341
|
+
enrichment_data: Json
|
|
4342
|
+
filter_reason: string | null
|
|
4343
|
+
first_name: string | null
|
|
4344
|
+
headline: string | null
|
|
4345
|
+
id: string
|
|
4346
|
+
last_name: string | null
|
|
4347
|
+
linkedin_url: string | null
|
|
4348
|
+
nurture: boolean
|
|
4349
|
+
opening_line: string | null
|
|
4350
|
+
organization_id: string
|
|
4351
|
+
pipeline_status: Json
|
|
4352
|
+
source: string | null
|
|
4353
|
+
source_id: string | null
|
|
4354
|
+
status: string
|
|
4355
|
+
title: string | null
|
|
4356
|
+
updated_at: string
|
|
4357
|
+
}
|
|
4358
|
+
Insert: {
|
|
4359
|
+
batch_id?: string | null
|
|
4360
|
+
brochure_first_viewed_at?: string | null
|
|
4361
|
+
brochure_view_count?: number
|
|
4362
|
+
company_id?: string | null
|
|
4363
|
+
created_at?: string
|
|
4364
|
+
email: string
|
|
4365
|
+
email_valid?: string | null
|
|
4366
|
+
enrichment_data?: Json
|
|
4367
|
+
filter_reason?: string | null
|
|
4368
|
+
first_name?: string | null
|
|
4369
|
+
headline?: string | null
|
|
4370
|
+
id?: string
|
|
4371
|
+
last_name?: string | null
|
|
4372
|
+
linkedin_url?: string | null
|
|
4373
|
+
nurture?: boolean
|
|
4374
|
+
opening_line?: string | null
|
|
4375
|
+
organization_id: string
|
|
4376
|
+
pipeline_status?: Json
|
|
4377
|
+
source?: string | null
|
|
4378
|
+
source_id?: string | null
|
|
4379
|
+
status?: string
|
|
4380
|
+
title?: string | null
|
|
4381
|
+
updated_at?: string
|
|
4382
|
+
}
|
|
4383
|
+
Update: {
|
|
4384
|
+
batch_id?: string | null
|
|
4385
|
+
brochure_first_viewed_at?: string | null
|
|
4386
|
+
brochure_view_count?: number
|
|
4387
|
+
company_id?: string | null
|
|
4388
|
+
created_at?: string
|
|
4389
|
+
email?: string
|
|
4390
|
+
email_valid?: string | null
|
|
4391
|
+
enrichment_data?: Json
|
|
4392
|
+
filter_reason?: string | null
|
|
4393
|
+
first_name?: string | null
|
|
4394
|
+
headline?: string | null
|
|
4395
|
+
id?: string
|
|
4396
|
+
last_name?: string | null
|
|
4397
|
+
linkedin_url?: string | null
|
|
4398
|
+
nurture?: boolean
|
|
4399
|
+
opening_line?: string | null
|
|
4400
|
+
organization_id?: string
|
|
4401
|
+
pipeline_status?: Json
|
|
4402
|
+
source?: string | null
|
|
4403
|
+
source_id?: string | null
|
|
4404
|
+
status?: string
|
|
4405
|
+
title?: string | null
|
|
4406
|
+
updated_at?: string
|
|
4407
|
+
}
|
|
4408
|
+
Relationships: [
|
|
4409
|
+
{
|
|
4410
|
+
foreignKeyName: "acq_contacts_company_id_fkey"
|
|
4411
|
+
columns: ["company_id"]
|
|
4412
|
+
isOneToOne: false
|
|
4413
|
+
referencedRelation: "acq_companies"
|
|
4414
|
+
referencedColumns: ["id"]
|
|
4415
|
+
},
|
|
4416
|
+
{
|
|
4417
|
+
foreignKeyName: "acq_contacts_organization_id_fkey"
|
|
4418
|
+
columns: ["organization_id"]
|
|
4419
|
+
isOneToOne: false
|
|
4420
|
+
referencedRelation: "organizations"
|
|
4421
|
+
referencedColumns: ["id"]
|
|
4422
|
+
},
|
|
4423
|
+
]
|
|
4424
|
+
}
|
|
4425
|
+
acq_content: {
|
|
4426
|
+
Row: {
|
|
4427
|
+
body: string | null
|
|
4428
|
+
created_at: string
|
|
4429
|
+
id: string
|
|
4430
|
+
organization_id: string
|
|
4431
|
+
pillar: string
|
|
4432
|
+
status: string
|
|
4433
|
+
title: string
|
|
4434
|
+
updated_at: string
|
|
4435
|
+
}
|
|
4436
|
+
Insert: {
|
|
4437
|
+
body?: string | null
|
|
4438
|
+
created_at?: string
|
|
4439
|
+
id?: string
|
|
4440
|
+
organization_id: string
|
|
4441
|
+
pillar: string
|
|
4442
|
+
status?: string
|
|
4443
|
+
title: string
|
|
4444
|
+
updated_at?: string
|
|
4445
|
+
}
|
|
4446
|
+
Update: {
|
|
4447
|
+
body?: string | null
|
|
4448
|
+
created_at?: string
|
|
4449
|
+
id?: string
|
|
4450
|
+
organization_id?: string
|
|
4451
|
+
pillar?: string
|
|
4452
|
+
status?: string
|
|
4453
|
+
title?: string
|
|
4454
|
+
updated_at?: string
|
|
4455
|
+
}
|
|
4456
|
+
Relationships: [
|
|
4457
|
+
{
|
|
4458
|
+
foreignKeyName: "acq_content_organization_id_fkey"
|
|
4459
|
+
columns: ["organization_id"]
|
|
4460
|
+
isOneToOne: false
|
|
4461
|
+
referencedRelation: "organizations"
|
|
4462
|
+
referencedColumns: ["id"]
|
|
4463
|
+
},
|
|
4464
|
+
]
|
|
4465
|
+
}
|
|
4466
|
+
acq_content_distributions: {
|
|
4467
|
+
Row: {
|
|
4468
|
+
adapted_body: string | null
|
|
4469
|
+
checklist: Json | null
|
|
4470
|
+
content_id: string
|
|
4471
|
+
created_at: string
|
|
4472
|
+
format: string
|
|
4473
|
+
id: string
|
|
4474
|
+
media_urls: Json
|
|
4475
|
+
metrics: Json
|
|
4476
|
+
metrics_updated_at: string | null
|
|
4477
|
+
organization_id: string
|
|
4478
|
+
platform: string
|
|
4479
|
+
platform_content: Json | null
|
|
4480
|
+
platform_post_id: string | null
|
|
4481
|
+
platform_url: string | null
|
|
4482
|
+
published_at: string | null
|
|
4483
|
+
status: string
|
|
4484
|
+
updated_at: string
|
|
4485
|
+
}
|
|
4486
|
+
Insert: {
|
|
4487
|
+
adapted_body?: string | null
|
|
4488
|
+
checklist?: Json | null
|
|
4489
|
+
content_id: string
|
|
4490
|
+
created_at?: string
|
|
4491
|
+
format: string
|
|
4492
|
+
id?: string
|
|
4493
|
+
media_urls?: Json
|
|
4494
|
+
metrics?: Json
|
|
4495
|
+
metrics_updated_at?: string | null
|
|
4496
|
+
organization_id: string
|
|
4497
|
+
platform: string
|
|
4498
|
+
platform_content?: Json | null
|
|
4499
|
+
platform_post_id?: string | null
|
|
4500
|
+
platform_url?: string | null
|
|
4501
|
+
published_at?: string | null
|
|
4502
|
+
status?: string
|
|
4503
|
+
updated_at?: string
|
|
4504
|
+
}
|
|
4505
|
+
Update: {
|
|
4506
|
+
adapted_body?: string | null
|
|
4507
|
+
checklist?: Json | null
|
|
4508
|
+
content_id?: string
|
|
4509
|
+
created_at?: string
|
|
4510
|
+
format?: string
|
|
4511
|
+
id?: string
|
|
4512
|
+
media_urls?: Json
|
|
4513
|
+
metrics?: Json
|
|
4514
|
+
metrics_updated_at?: string | null
|
|
4515
|
+
organization_id?: string
|
|
4516
|
+
platform?: string
|
|
4517
|
+
platform_content?: Json | null
|
|
4518
|
+
platform_post_id?: string | null
|
|
4519
|
+
platform_url?: string | null
|
|
4520
|
+
published_at?: string | null
|
|
4521
|
+
status?: string
|
|
4522
|
+
updated_at?: string
|
|
4523
|
+
}
|
|
4524
|
+
Relationships: [
|
|
4525
|
+
{
|
|
4526
|
+
foreignKeyName: "acq_content_distributions_content_id_fkey"
|
|
4527
|
+
columns: ["content_id"]
|
|
4528
|
+
isOneToOne: false
|
|
4529
|
+
referencedRelation: "acq_content"
|
|
4530
|
+
referencedColumns: ["id"]
|
|
4531
|
+
},
|
|
4532
|
+
{
|
|
4533
|
+
foreignKeyName: "acq_content_distributions_organization_id_fkey"
|
|
4534
|
+
columns: ["organization_id"]
|
|
4535
|
+
isOneToOne: false
|
|
4536
|
+
referencedRelation: "organizations"
|
|
4537
|
+
referencedColumns: ["id"]
|
|
4538
|
+
},
|
|
4539
|
+
]
|
|
4540
|
+
}
|
|
4541
|
+
acq_deal_notes: {
|
|
4542
|
+
Row: {
|
|
4543
|
+
author_user_id: string | null
|
|
4544
|
+
body: string
|
|
4545
|
+
created_at: string
|
|
4546
|
+
deal_id: string
|
|
4547
|
+
id: string
|
|
4548
|
+
organization_id: string
|
|
4549
|
+
updated_at: string
|
|
4550
|
+
}
|
|
4551
|
+
Insert: {
|
|
4552
|
+
author_user_id?: string | null
|
|
4553
|
+
body: string
|
|
4554
|
+
created_at?: string
|
|
4555
|
+
deal_id: string
|
|
4556
|
+
id?: string
|
|
4557
|
+
organization_id: string
|
|
4558
|
+
updated_at?: string
|
|
4559
|
+
}
|
|
4560
|
+
Update: {
|
|
4561
|
+
author_user_id?: string | null
|
|
4562
|
+
body?: string
|
|
4563
|
+
created_at?: string
|
|
4564
|
+
deal_id?: string
|
|
4565
|
+
id?: string
|
|
4566
|
+
organization_id?: string
|
|
4567
|
+
updated_at?: string
|
|
4568
|
+
}
|
|
4569
|
+
Relationships: [
|
|
4570
|
+
{
|
|
4571
|
+
foreignKeyName: "acq_deal_notes_deal_id_fkey"
|
|
4572
|
+
columns: ["deal_id"]
|
|
4573
|
+
isOneToOne: false
|
|
4574
|
+
referencedRelation: "acq_deals"
|
|
4575
|
+
referencedColumns: ["id"]
|
|
4576
|
+
},
|
|
4577
|
+
{
|
|
4578
|
+
foreignKeyName: "acq_deal_notes_organization_id_fkey"
|
|
4579
|
+
columns: ["organization_id"]
|
|
4580
|
+
isOneToOne: false
|
|
4581
|
+
referencedRelation: "organizations"
|
|
4582
|
+
referencedColumns: ["id"]
|
|
4583
|
+
},
|
|
4584
|
+
]
|
|
4585
|
+
}
|
|
4586
|
+
acq_deal_tasks: {
|
|
4587
|
+
Row: {
|
|
4588
|
+
assignee_user_id: string | null
|
|
4589
|
+
completed_at: string | null
|
|
4590
|
+
completed_by_user_id: string | null
|
|
4591
|
+
created_at: string
|
|
4592
|
+
created_by_user_id: string | null
|
|
4593
|
+
deal_id: string
|
|
4594
|
+
description: string | null
|
|
4595
|
+
due_at: string | null
|
|
4596
|
+
id: string
|
|
4597
|
+
kind: string
|
|
4598
|
+
organization_id: string
|
|
4599
|
+
title: string
|
|
4600
|
+
updated_at: string
|
|
4601
|
+
}
|
|
4602
|
+
Insert: {
|
|
4603
|
+
assignee_user_id?: string | null
|
|
4604
|
+
completed_at?: string | null
|
|
4605
|
+
completed_by_user_id?: string | null
|
|
4606
|
+
created_at?: string
|
|
4607
|
+
created_by_user_id?: string | null
|
|
4608
|
+
deal_id: string
|
|
4609
|
+
description?: string | null
|
|
4610
|
+
due_at?: string | null
|
|
4611
|
+
id?: string
|
|
4612
|
+
kind?: string
|
|
4613
|
+
organization_id: string
|
|
4614
|
+
title: string
|
|
4615
|
+
updated_at?: string
|
|
4616
|
+
}
|
|
4617
|
+
Update: {
|
|
4618
|
+
assignee_user_id?: string | null
|
|
4619
|
+
completed_at?: string | null
|
|
4620
|
+
completed_by_user_id?: string | null
|
|
4621
|
+
created_at?: string
|
|
4622
|
+
created_by_user_id?: string | null
|
|
4623
|
+
deal_id?: string
|
|
4624
|
+
description?: string | null
|
|
4625
|
+
due_at?: string | null
|
|
4626
|
+
id?: string
|
|
4627
|
+
kind?: string
|
|
4628
|
+
organization_id?: string
|
|
4629
|
+
title?: string
|
|
4630
|
+
updated_at?: string
|
|
4631
|
+
}
|
|
4632
|
+
Relationships: [
|
|
4633
|
+
{
|
|
4634
|
+
foreignKeyName: "acq_deal_tasks_deal_id_fkey"
|
|
4635
|
+
columns: ["deal_id"]
|
|
4636
|
+
isOneToOne: false
|
|
4637
|
+
referencedRelation: "acq_deals"
|
|
4638
|
+
referencedColumns: ["id"]
|
|
4639
|
+
},
|
|
4640
|
+
{
|
|
4641
|
+
foreignKeyName: "acq_deal_tasks_organization_id_fkey"
|
|
4642
|
+
columns: ["organization_id"]
|
|
4643
|
+
isOneToOne: false
|
|
4644
|
+
referencedRelation: "organizations"
|
|
4645
|
+
referencedColumns: ["id"]
|
|
4646
|
+
},
|
|
4647
|
+
]
|
|
4648
|
+
}
|
|
4649
|
+
acq_deals: {
|
|
4650
|
+
Row: {
|
|
4651
|
+
activity_log: Json
|
|
4652
|
+
cached_stage: string | null
|
|
4653
|
+
closed_lost_at: string | null
|
|
4654
|
+
closed_lost_reason: string | null
|
|
4655
|
+
contact_email: string
|
|
4656
|
+
contact_id: string | null
|
|
4657
|
+
created_at: string
|
|
4658
|
+
discovery_data: Json | null
|
|
4659
|
+
discovery_submitted_at: string | null
|
|
4660
|
+
discovery_submitted_by: string | null
|
|
4661
|
+
id: string
|
|
4662
|
+
initial_fee: number | null
|
|
4663
|
+
monthly_fee: number | null
|
|
4664
|
+
organization_id: string
|
|
4665
|
+
payment_link_sent_at: string | null
|
|
4666
|
+
payment_received_at: string | null
|
|
4667
|
+
proposal_data: Json | null
|
|
4668
|
+
proposal_generated_at: string | null
|
|
4669
|
+
proposal_pdf_url: string | null
|
|
4670
|
+
proposal_reviewed_at: string | null
|
|
4671
|
+
proposal_reviewed_by: string | null
|
|
4672
|
+
proposal_sent_at: string | null
|
|
4673
|
+
proposal_signed_at: string | null
|
|
4674
|
+
proposal_status: string | null
|
|
4675
|
+
signature_envelope_id: string | null
|
|
4676
|
+
source_list_id: string | null
|
|
4677
|
+
source_type: string | null
|
|
4678
|
+
stripe_payment_id: string | null
|
|
4679
|
+
stripe_payment_link: string | null
|
|
4680
|
+
stripe_payment_link_id: string | null
|
|
4681
|
+
stripe_subscription_id: string | null
|
|
4682
|
+
updated_at: string
|
|
4683
|
+
}
|
|
4684
|
+
Insert: {
|
|
4685
|
+
activity_log?: Json
|
|
4686
|
+
cached_stage?: string | null
|
|
4687
|
+
closed_lost_at?: string | null
|
|
4688
|
+
closed_lost_reason?: string | null
|
|
4689
|
+
contact_email: string
|
|
4690
|
+
contact_id?: string | null
|
|
4691
|
+
created_at?: string
|
|
4692
|
+
discovery_data?: Json | null
|
|
4693
|
+
discovery_submitted_at?: string | null
|
|
4694
|
+
discovery_submitted_by?: string | null
|
|
4695
|
+
id?: string
|
|
4696
|
+
initial_fee?: number | null
|
|
4697
|
+
monthly_fee?: number | null
|
|
4698
|
+
organization_id: string
|
|
4699
|
+
payment_link_sent_at?: string | null
|
|
4700
|
+
payment_received_at?: string | null
|
|
4701
|
+
proposal_data?: Json | null
|
|
4702
|
+
proposal_generated_at?: string | null
|
|
4703
|
+
proposal_pdf_url?: string | null
|
|
4704
|
+
proposal_reviewed_at?: string | null
|
|
4705
|
+
proposal_reviewed_by?: string | null
|
|
4706
|
+
proposal_sent_at?: string | null
|
|
4707
|
+
proposal_signed_at?: string | null
|
|
4708
|
+
proposal_status?: string | null
|
|
4709
|
+
signature_envelope_id?: string | null
|
|
4710
|
+
source_list_id?: string | null
|
|
4711
|
+
source_type?: string | null
|
|
4712
|
+
stripe_payment_id?: string | null
|
|
4713
|
+
stripe_payment_link?: string | null
|
|
4714
|
+
stripe_payment_link_id?: string | null
|
|
4715
|
+
stripe_subscription_id?: string | null
|
|
4716
|
+
updated_at?: string
|
|
4717
|
+
}
|
|
4718
|
+
Update: {
|
|
4719
|
+
activity_log?: Json
|
|
4720
|
+
cached_stage?: string | null
|
|
4721
|
+
closed_lost_at?: string | null
|
|
4722
|
+
closed_lost_reason?: string | null
|
|
4723
|
+
contact_email?: string
|
|
4724
|
+
contact_id?: string | null
|
|
4725
|
+
created_at?: string
|
|
4726
|
+
discovery_data?: Json | null
|
|
4727
|
+
discovery_submitted_at?: string | null
|
|
4728
|
+
discovery_submitted_by?: string | null
|
|
4729
|
+
id?: string
|
|
4730
|
+
initial_fee?: number | null
|
|
4731
|
+
monthly_fee?: number | null
|
|
4732
|
+
organization_id?: string
|
|
4733
|
+
payment_link_sent_at?: string | null
|
|
4734
|
+
payment_received_at?: string | null
|
|
4735
|
+
proposal_data?: Json | null
|
|
4736
|
+
proposal_generated_at?: string | null
|
|
4737
|
+
proposal_pdf_url?: string | null
|
|
4738
|
+
proposal_reviewed_at?: string | null
|
|
4739
|
+
proposal_reviewed_by?: string | null
|
|
4740
|
+
proposal_sent_at?: string | null
|
|
4741
|
+
proposal_signed_at?: string | null
|
|
4742
|
+
proposal_status?: string | null
|
|
4743
|
+
signature_envelope_id?: string | null
|
|
4744
|
+
source_list_id?: string | null
|
|
4745
|
+
source_type?: string | null
|
|
4746
|
+
stripe_payment_id?: string | null
|
|
4747
|
+
stripe_payment_link?: string | null
|
|
4748
|
+
stripe_payment_link_id?: string | null
|
|
4749
|
+
stripe_subscription_id?: string | null
|
|
4750
|
+
updated_at?: string
|
|
4751
|
+
}
|
|
4752
|
+
Relationships: [
|
|
4753
|
+
{
|
|
4754
|
+
foreignKeyName: "acq_deals_contact_id_fkey"
|
|
4755
|
+
columns: ["contact_id"]
|
|
4756
|
+
isOneToOne: false
|
|
4757
|
+
referencedRelation: "acq_contacts"
|
|
4758
|
+
referencedColumns: ["id"]
|
|
4759
|
+
},
|
|
4760
|
+
{
|
|
4761
|
+
foreignKeyName: "acq_deals_organization_id_fkey"
|
|
4762
|
+
columns: ["organization_id"]
|
|
4763
|
+
isOneToOne: false
|
|
4764
|
+
referencedRelation: "organizations"
|
|
4765
|
+
referencedColumns: ["id"]
|
|
4766
|
+
},
|
|
4767
|
+
{
|
|
4768
|
+
foreignKeyName: "acq_deals_source_list_id_fkey"
|
|
4769
|
+
columns: ["source_list_id"]
|
|
4770
|
+
isOneToOne: false
|
|
4771
|
+
referencedRelation: "acq_lists"
|
|
4772
|
+
referencedColumns: ["id"]
|
|
4773
|
+
},
|
|
4774
|
+
]
|
|
4775
|
+
}
|
|
4776
|
+
acq_list_members: {
|
|
4777
|
+
Row: {
|
|
4778
|
+
added_at: string
|
|
4779
|
+
added_by: string | null
|
|
4780
|
+
contact_id: string
|
|
4781
|
+
id: string
|
|
4782
|
+
list_id: string
|
|
4783
|
+
}
|
|
4784
|
+
Insert: {
|
|
4785
|
+
added_at?: string
|
|
4786
|
+
added_by?: string | null
|
|
4787
|
+
contact_id: string
|
|
4788
|
+
id?: string
|
|
4789
|
+
list_id: string
|
|
4790
|
+
}
|
|
4791
|
+
Update: {
|
|
4792
|
+
added_at?: string
|
|
4793
|
+
added_by?: string | null
|
|
4794
|
+
contact_id?: string
|
|
4795
|
+
id?: string
|
|
4796
|
+
list_id?: string
|
|
4797
|
+
}
|
|
4798
|
+
Relationships: [
|
|
4799
|
+
{
|
|
4800
|
+
foreignKeyName: "acq_list_members_contact_id_fkey"
|
|
4801
|
+
columns: ["contact_id"]
|
|
4802
|
+
isOneToOne: false
|
|
4803
|
+
referencedRelation: "acq_contacts"
|
|
4804
|
+
referencedColumns: ["id"]
|
|
4805
|
+
},
|
|
4806
|
+
{
|
|
4807
|
+
foreignKeyName: "acq_list_members_list_id_fkey"
|
|
4808
|
+
columns: ["list_id"]
|
|
4809
|
+
isOneToOne: false
|
|
4810
|
+
referencedRelation: "acq_lists"
|
|
4811
|
+
referencedColumns: ["id"]
|
|
4812
|
+
},
|
|
4813
|
+
]
|
|
4814
|
+
}
|
|
4815
|
+
acq_lists: {
|
|
4816
|
+
Row: {
|
|
4817
|
+
batch_ids: string[]
|
|
4818
|
+
completed_at: string | null
|
|
4819
|
+
created_at: string
|
|
4820
|
+
description: string | null
|
|
4821
|
+
id: string
|
|
4822
|
+
instantly_campaign_id: string | null
|
|
4823
|
+
launched_at: string | null
|
|
4824
|
+
metadata: Json
|
|
4825
|
+
name: string
|
|
4826
|
+
organization_id: string
|
|
4827
|
+
status: string
|
|
4828
|
+
type: string
|
|
4829
|
+
}
|
|
4830
|
+
Insert: {
|
|
4831
|
+
batch_ids?: string[]
|
|
4832
|
+
completed_at?: string | null
|
|
4833
|
+
created_at?: string
|
|
4834
|
+
description?: string | null
|
|
4835
|
+
id?: string
|
|
4836
|
+
instantly_campaign_id?: string | null
|
|
4837
|
+
launched_at?: string | null
|
|
4838
|
+
metadata?: Json
|
|
4839
|
+
name: string
|
|
4840
|
+
organization_id: string
|
|
4841
|
+
status?: string
|
|
4842
|
+
type?: string
|
|
4843
|
+
}
|
|
4844
|
+
Update: {
|
|
4845
|
+
batch_ids?: string[]
|
|
4846
|
+
completed_at?: string | null
|
|
4847
|
+
created_at?: string
|
|
4848
|
+
description?: string | null
|
|
4849
|
+
id?: string
|
|
4850
|
+
instantly_campaign_id?: string | null
|
|
4851
|
+
launched_at?: string | null
|
|
4852
|
+
metadata?: Json
|
|
4853
|
+
name?: string
|
|
4854
|
+
organization_id?: string
|
|
4855
|
+
status?: string
|
|
4856
|
+
type?: string
|
|
4857
|
+
}
|
|
4858
|
+
Relationships: [
|
|
4859
|
+
{
|
|
4860
|
+
foreignKeyName: "acq_lists_organization_id_fkey"
|
|
4861
|
+
columns: ["organization_id"]
|
|
4862
|
+
isOneToOne: false
|
|
4863
|
+
referencedRelation: "organizations"
|
|
4864
|
+
referencedColumns: ["id"]
|
|
4865
|
+
},
|
|
4866
|
+
]
|
|
4867
|
+
}
|
|
4868
|
+
acq_seo_metrics: {
|
|
4869
|
+
Row: {
|
|
4870
|
+
ai_citations: Json | null
|
|
4871
|
+
avg_position: number | null
|
|
4872
|
+
clicks: number | null
|
|
4873
|
+
created_at: string
|
|
4874
|
+
cta_clicks: number | null
|
|
4875
|
+
ctr: number | null
|
|
4876
|
+
data_point_count: number | null
|
|
4877
|
+
faq_count: number | null
|
|
4878
|
+
form_submissions: number | null
|
|
4879
|
+
id: string
|
|
4880
|
+
impressions: number | null
|
|
4881
|
+
organization_id: string
|
|
4882
|
+
period: string
|
|
4883
|
+
quality_score: number | null
|
|
4884
|
+
readability: number | null
|
|
4885
|
+
scroll_100: number | null
|
|
4886
|
+
scroll_25: number | null
|
|
4887
|
+
scroll_50: number | null
|
|
4888
|
+
scroll_75: number | null
|
|
4889
|
+
seo_page_id: string
|
|
4890
|
+
word_count: number | null
|
|
4891
|
+
}
|
|
4892
|
+
Insert: {
|
|
4893
|
+
ai_citations?: Json | null
|
|
4894
|
+
avg_position?: number | null
|
|
4895
|
+
clicks?: number | null
|
|
4896
|
+
created_at?: string
|
|
4897
|
+
cta_clicks?: number | null
|
|
4898
|
+
ctr?: number | null
|
|
4899
|
+
data_point_count?: number | null
|
|
4900
|
+
faq_count?: number | null
|
|
4901
|
+
form_submissions?: number | null
|
|
4902
|
+
id?: string
|
|
4903
|
+
impressions?: number | null
|
|
4904
|
+
organization_id: string
|
|
4905
|
+
period: string
|
|
4906
|
+
quality_score?: number | null
|
|
4907
|
+
readability?: number | null
|
|
4908
|
+
scroll_100?: number | null
|
|
4909
|
+
scroll_25?: number | null
|
|
4910
|
+
scroll_50?: number | null
|
|
4911
|
+
scroll_75?: number | null
|
|
4912
|
+
seo_page_id: string
|
|
4913
|
+
word_count?: number | null
|
|
4914
|
+
}
|
|
4915
|
+
Update: {
|
|
4916
|
+
ai_citations?: Json | null
|
|
4917
|
+
avg_position?: number | null
|
|
4918
|
+
clicks?: number | null
|
|
4919
|
+
created_at?: string
|
|
4920
|
+
cta_clicks?: number | null
|
|
4921
|
+
ctr?: number | null
|
|
4922
|
+
data_point_count?: number | null
|
|
4923
|
+
faq_count?: number | null
|
|
4924
|
+
form_submissions?: number | null
|
|
4925
|
+
id?: string
|
|
4926
|
+
impressions?: number | null
|
|
4927
|
+
organization_id?: string
|
|
4928
|
+
period?: string
|
|
4929
|
+
quality_score?: number | null
|
|
4930
|
+
readability?: number | null
|
|
4931
|
+
scroll_100?: number | null
|
|
4932
|
+
scroll_25?: number | null
|
|
4933
|
+
scroll_50?: number | null
|
|
4934
|
+
scroll_75?: number | null
|
|
4935
|
+
seo_page_id?: string
|
|
4936
|
+
word_count?: number | null
|
|
4937
|
+
}
|
|
4938
|
+
Relationships: [
|
|
4939
|
+
{
|
|
4940
|
+
foreignKeyName: "acq_seo_metrics_organization_id_fkey"
|
|
4941
|
+
columns: ["organization_id"]
|
|
4942
|
+
isOneToOne: false
|
|
4943
|
+
referencedRelation: "organizations"
|
|
4944
|
+
referencedColumns: ["id"]
|
|
4945
|
+
},
|
|
4946
|
+
{
|
|
4947
|
+
foreignKeyName: "acq_seo_metrics_seo_page_id_fkey"
|
|
4948
|
+
columns: ["seo_page_id"]
|
|
4949
|
+
isOneToOne: false
|
|
4950
|
+
referencedRelation: "acq_seo_pages"
|
|
4951
|
+
referencedColumns: ["id"]
|
|
4952
|
+
},
|
|
4953
|
+
]
|
|
4954
|
+
}
|
|
4955
|
+
acq_seo_pages: {
|
|
4956
|
+
Row: {
|
|
4957
|
+
city: string | null
|
|
4958
|
+
content: Json | null
|
|
4959
|
+
created_at: string
|
|
4960
|
+
faq_items: Json | null
|
|
4961
|
+
hero_image_url: string | null
|
|
4962
|
+
id: string
|
|
4963
|
+
internal_links: Json | null
|
|
4964
|
+
local_data: Json | null
|
|
4965
|
+
meta_description: string | null
|
|
4966
|
+
organization_id: string
|
|
4967
|
+
page_type: string
|
|
4968
|
+
published_at: string | null
|
|
4969
|
+
refreshed_at: string | null
|
|
4970
|
+
schema_markup: Json | null
|
|
4971
|
+
slug: string
|
|
4972
|
+
state: string | null
|
|
4973
|
+
status: string
|
|
4974
|
+
title: string
|
|
4975
|
+
updated_at: string
|
|
4976
|
+
use_case: string | null
|
|
4977
|
+
vertical: string
|
|
4978
|
+
}
|
|
4979
|
+
Insert: {
|
|
4980
|
+
city?: string | null
|
|
4981
|
+
content?: Json | null
|
|
4982
|
+
created_at?: string
|
|
4983
|
+
faq_items?: Json | null
|
|
4984
|
+
hero_image_url?: string | null
|
|
4985
|
+
id?: string
|
|
4986
|
+
internal_links?: Json | null
|
|
4987
|
+
local_data?: Json | null
|
|
4988
|
+
meta_description?: string | null
|
|
4989
|
+
organization_id: string
|
|
4990
|
+
page_type: string
|
|
4991
|
+
published_at?: string | null
|
|
4992
|
+
refreshed_at?: string | null
|
|
4993
|
+
schema_markup?: Json | null
|
|
4994
|
+
slug: string
|
|
4995
|
+
state?: string | null
|
|
4996
|
+
status?: string
|
|
4997
|
+
title: string
|
|
4998
|
+
updated_at?: string
|
|
4999
|
+
use_case?: string | null
|
|
5000
|
+
vertical: string
|
|
5001
|
+
}
|
|
5002
|
+
Update: {
|
|
5003
|
+
city?: string | null
|
|
5004
|
+
content?: Json | null
|
|
5005
|
+
created_at?: string
|
|
5006
|
+
faq_items?: Json | null
|
|
5007
|
+
hero_image_url?: string | null
|
|
5008
|
+
id?: string
|
|
5009
|
+
internal_links?: Json | null
|
|
5010
|
+
local_data?: Json | null
|
|
5011
|
+
meta_description?: string | null
|
|
5012
|
+
organization_id?: string
|
|
5013
|
+
page_type?: string
|
|
5014
|
+
published_at?: string | null
|
|
5015
|
+
refreshed_at?: string | null
|
|
5016
|
+
schema_markup?: Json | null
|
|
5017
|
+
slug?: string
|
|
5018
|
+
state?: string | null
|
|
5019
|
+
status?: string
|
|
5020
|
+
title?: string
|
|
5021
|
+
updated_at?: string
|
|
5022
|
+
use_case?: string | null
|
|
5023
|
+
vertical?: string
|
|
5024
|
+
}
|
|
5025
|
+
Relationships: [
|
|
5026
|
+
{
|
|
5027
|
+
foreignKeyName: "acq_seo_pages_organization_id_fkey"
|
|
5028
|
+
columns: ["organization_id"]
|
|
5029
|
+
isOneToOne: false
|
|
5030
|
+
referencedRelation: "organizations"
|
|
5031
|
+
referencedColumns: ["id"]
|
|
5032
|
+
},
|
|
5033
|
+
]
|
|
5034
|
+
}
|
|
5035
|
+
acq_social_posts: {
|
|
5036
|
+
Row: {
|
|
5037
|
+
author_name: string
|
|
5038
|
+
author_url: string | null
|
|
5039
|
+
comments_count: number
|
|
5040
|
+
created_at: string
|
|
5041
|
+
discovered_at: string
|
|
5042
|
+
engagement_count: number
|
|
5043
|
+
feedback: string | null
|
|
5044
|
+
final_response: string | null
|
|
5045
|
+
fully_reviewed: boolean
|
|
5046
|
+
id: string
|
|
5047
|
+
initial_draft: string | null
|
|
5048
|
+
matched_keywords: string[]
|
|
5049
|
+
matched_query: string | null
|
|
5050
|
+
metadata: Json
|
|
5051
|
+
organization_id: string
|
|
5052
|
+
platform: string
|
|
5053
|
+
platform_post_id: string
|
|
5054
|
+
post_text: string
|
|
5055
|
+
post_title: string
|
|
5056
|
+
post_url: string
|
|
5057
|
+
posted_at: string
|
|
5058
|
+
relevance_score: number
|
|
5059
|
+
responded_at: string | null
|
|
5060
|
+
reviewed_at: string | null
|
|
5061
|
+
skip_reason: string | null
|
|
5062
|
+
source_category: string | null
|
|
5063
|
+
status: string
|
|
5064
|
+
updated_at: string
|
|
5065
|
+
}
|
|
5066
|
+
Insert: {
|
|
5067
|
+
author_name: string
|
|
5068
|
+
author_url?: string | null
|
|
5069
|
+
comments_count?: number
|
|
5070
|
+
created_at?: string
|
|
5071
|
+
discovered_at?: string
|
|
5072
|
+
engagement_count?: number
|
|
5073
|
+
feedback?: string | null
|
|
5074
|
+
final_response?: string | null
|
|
5075
|
+
fully_reviewed?: boolean
|
|
5076
|
+
id?: string
|
|
5077
|
+
initial_draft?: string | null
|
|
5078
|
+
matched_keywords?: string[]
|
|
5079
|
+
matched_query?: string | null
|
|
5080
|
+
metadata?: Json
|
|
5081
|
+
organization_id: string
|
|
5082
|
+
platform: string
|
|
5083
|
+
platform_post_id: string
|
|
5084
|
+
post_text: string
|
|
5085
|
+
post_title: string
|
|
5086
|
+
post_url: string
|
|
5087
|
+
posted_at: string
|
|
5088
|
+
relevance_score?: number
|
|
5089
|
+
responded_at?: string | null
|
|
5090
|
+
reviewed_at?: string | null
|
|
5091
|
+
skip_reason?: string | null
|
|
5092
|
+
source_category?: string | null
|
|
5093
|
+
status?: string
|
|
5094
|
+
updated_at?: string
|
|
5095
|
+
}
|
|
5096
|
+
Update: {
|
|
5097
|
+
author_name?: string
|
|
5098
|
+
author_url?: string | null
|
|
5099
|
+
comments_count?: number
|
|
5100
|
+
created_at?: string
|
|
5101
|
+
discovered_at?: string
|
|
5102
|
+
engagement_count?: number
|
|
5103
|
+
feedback?: string | null
|
|
5104
|
+
final_response?: string | null
|
|
5105
|
+
fully_reviewed?: boolean
|
|
5106
|
+
id?: string
|
|
5107
|
+
initial_draft?: string | null
|
|
5108
|
+
matched_keywords?: string[]
|
|
5109
|
+
matched_query?: string | null
|
|
5110
|
+
metadata?: Json
|
|
5111
|
+
organization_id?: string
|
|
5112
|
+
platform?: string
|
|
5113
|
+
platform_post_id?: string
|
|
5114
|
+
post_text?: string
|
|
5115
|
+
post_title?: string
|
|
5116
|
+
post_url?: string
|
|
5117
|
+
posted_at?: string
|
|
5118
|
+
relevance_score?: number
|
|
5119
|
+
responded_at?: string | null
|
|
5120
|
+
reviewed_at?: string | null
|
|
5121
|
+
skip_reason?: string | null
|
|
5122
|
+
source_category?: string | null
|
|
5123
|
+
status?: string
|
|
5124
|
+
updated_at?: string
|
|
5125
|
+
}
|
|
5126
|
+
Relationships: [
|
|
5127
|
+
{
|
|
5128
|
+
foreignKeyName: "acq_social_posts_organization_id_fkey"
|
|
5129
|
+
columns: ["organization_id"]
|
|
5130
|
+
isOneToOne: false
|
|
5131
|
+
referencedRelation: "organizations"
|
|
5132
|
+
referencedColumns: ["id"]
|
|
5133
|
+
},
|
|
5134
|
+
]
|
|
5135
|
+
}
|
|
5136
|
+
activities: {
|
|
5137
|
+
Row: {
|
|
5138
|
+
activity_type: string
|
|
5139
|
+
actor_id: string | null
|
|
5140
|
+
actor_type: string | null
|
|
5141
|
+
created_at: string
|
|
5142
|
+
description: string | null
|
|
5143
|
+
entity_id: string
|
|
5144
|
+
entity_name: string | null
|
|
5145
|
+
entity_type: string
|
|
5146
|
+
id: string
|
|
5147
|
+
metadata: Json | null
|
|
5148
|
+
occurred_at: string
|
|
5149
|
+
organization_id: string
|
|
5150
|
+
status: string
|
|
5151
|
+
title: string
|
|
5152
|
+
}
|
|
5153
|
+
Insert: {
|
|
5154
|
+
activity_type: string
|
|
5155
|
+
actor_id?: string | null
|
|
5156
|
+
actor_type?: string | null
|
|
5157
|
+
created_at?: string
|
|
5158
|
+
description?: string | null
|
|
5159
|
+
entity_id: string
|
|
5160
|
+
entity_name?: string | null
|
|
5161
|
+
entity_type: string
|
|
5162
|
+
id?: string
|
|
5163
|
+
metadata?: Json | null
|
|
5164
|
+
occurred_at?: string
|
|
5165
|
+
organization_id: string
|
|
5166
|
+
status: string
|
|
5167
|
+
title: string
|
|
5168
|
+
}
|
|
5169
|
+
Update: {
|
|
5170
|
+
activity_type?: string
|
|
5171
|
+
actor_id?: string | null
|
|
5172
|
+
actor_type?: string | null
|
|
5173
|
+
created_at?: string
|
|
5174
|
+
description?: string | null
|
|
5175
|
+
entity_id?: string
|
|
5176
|
+
entity_name?: string | null
|
|
5177
|
+
entity_type?: string
|
|
5178
|
+
id?: string
|
|
5179
|
+
metadata?: Json | null
|
|
5180
|
+
occurred_at?: string
|
|
5181
|
+
organization_id?: string
|
|
5182
|
+
status?: string
|
|
5183
|
+
title?: string
|
|
5184
|
+
}
|
|
5185
|
+
Relationships: [
|
|
5186
|
+
{
|
|
5187
|
+
foreignKeyName: "activities_organization_id_fkey"
|
|
5188
|
+
columns: ["organization_id"]
|
|
5189
|
+
isOneToOne: false
|
|
5190
|
+
referencedRelation: "organizations"
|
|
5191
|
+
referencedColumns: ["id"]
|
|
5192
|
+
},
|
|
5193
|
+
]
|
|
5194
|
+
}
|
|
5195
|
+
api_keys: {
|
|
5196
|
+
Row: {
|
|
5197
|
+
created_at: string | null
|
|
5198
|
+
id: string
|
|
5199
|
+
key_hash: string
|
|
5200
|
+
last_used_at: string | null
|
|
5201
|
+
name: string
|
|
5202
|
+
organization_id: string
|
|
5203
|
+
}
|
|
5204
|
+
Insert: {
|
|
5205
|
+
created_at?: string | null
|
|
5206
|
+
id?: string
|
|
5207
|
+
key_hash: string
|
|
5208
|
+
last_used_at?: string | null
|
|
5209
|
+
name: string
|
|
5210
|
+
organization_id: string
|
|
5211
|
+
}
|
|
5212
|
+
Update: {
|
|
5213
|
+
created_at?: string | null
|
|
5214
|
+
id?: string
|
|
5215
|
+
key_hash?: string
|
|
5216
|
+
last_used_at?: string | null
|
|
5217
|
+
name?: string
|
|
5218
|
+
organization_id?: string
|
|
5219
|
+
}
|
|
5220
|
+
Relationships: [
|
|
5221
|
+
{
|
|
5222
|
+
foreignKeyName: "api_keys_organization_id_fkey"
|
|
5223
|
+
columns: ["organization_id"]
|
|
5224
|
+
isOneToOne: false
|
|
5225
|
+
referencedRelation: "organizations"
|
|
5226
|
+
referencedColumns: ["id"]
|
|
5227
|
+
},
|
|
5228
|
+
]
|
|
5229
|
+
}
|
|
5230
|
+
calibration_projects: {
|
|
5231
|
+
Row: {
|
|
5232
|
+
created_at: string | null
|
|
5233
|
+
description: string | null
|
|
5234
|
+
id: string
|
|
5235
|
+
name: string
|
|
5236
|
+
organization_id: string
|
|
5237
|
+
resource_id: string
|
|
5238
|
+
resource_type: string
|
|
5239
|
+
updated_at: string | null
|
|
5240
|
+
}
|
|
5241
|
+
Insert: {
|
|
5242
|
+
created_at?: string | null
|
|
5243
|
+
description?: string | null
|
|
5244
|
+
id?: string
|
|
5245
|
+
name: string
|
|
5246
|
+
organization_id: string
|
|
5247
|
+
resource_id: string
|
|
5248
|
+
resource_type: string
|
|
5249
|
+
updated_at?: string | null
|
|
5250
|
+
}
|
|
5251
|
+
Update: {
|
|
5252
|
+
created_at?: string | null
|
|
5253
|
+
description?: string | null
|
|
5254
|
+
id?: string
|
|
5255
|
+
name?: string
|
|
5256
|
+
organization_id?: string
|
|
5257
|
+
resource_id?: string
|
|
5258
|
+
resource_type?: string
|
|
5259
|
+
updated_at?: string | null
|
|
5260
|
+
}
|
|
5261
|
+
Relationships: [
|
|
5262
|
+
{
|
|
5263
|
+
foreignKeyName: "calibration_projects_organization_id_fkey"
|
|
5264
|
+
columns: ["organization_id"]
|
|
5265
|
+
isOneToOne: false
|
|
5266
|
+
referencedRelation: "organizations"
|
|
5267
|
+
referencedColumns: ["id"]
|
|
5268
|
+
},
|
|
5269
|
+
]
|
|
5270
|
+
}
|
|
5271
|
+
calibration_runs: {
|
|
5272
|
+
Row: {
|
|
5273
|
+
completed_at: string | null
|
|
5274
|
+
config_variants: Json
|
|
5275
|
+
created_at: string | null
|
|
5276
|
+
description: string | null
|
|
5277
|
+
execution_mode: string
|
|
5278
|
+
grader_model: string | null
|
|
5279
|
+
grading_rubric: Json | null
|
|
5280
|
+
id: string
|
|
5281
|
+
name: string
|
|
5282
|
+
organization_id: string
|
|
5283
|
+
project_id: string
|
|
5284
|
+
results: Json
|
|
5285
|
+
status: string
|
|
5286
|
+
test_inputs: Json
|
|
5287
|
+
}
|
|
5288
|
+
Insert: {
|
|
5289
|
+
completed_at?: string | null
|
|
5290
|
+
config_variants: Json
|
|
5291
|
+
created_at?: string | null
|
|
5292
|
+
description?: string | null
|
|
5293
|
+
execution_mode?: string
|
|
5294
|
+
grader_model?: string | null
|
|
5295
|
+
grading_rubric?: Json | null
|
|
5296
|
+
id?: string
|
|
5297
|
+
name: string
|
|
5298
|
+
organization_id: string
|
|
5299
|
+
project_id: string
|
|
5300
|
+
results?: Json
|
|
5301
|
+
status?: string
|
|
5302
|
+
test_inputs: Json
|
|
5303
|
+
}
|
|
5304
|
+
Update: {
|
|
5305
|
+
completed_at?: string | null
|
|
5306
|
+
config_variants?: Json
|
|
5307
|
+
created_at?: string | null
|
|
5308
|
+
description?: string | null
|
|
5309
|
+
execution_mode?: string
|
|
5310
|
+
grader_model?: string | null
|
|
5311
|
+
grading_rubric?: Json | null
|
|
5312
|
+
id?: string
|
|
5313
|
+
name?: string
|
|
5314
|
+
organization_id?: string
|
|
5315
|
+
project_id?: string
|
|
5316
|
+
results?: Json
|
|
5317
|
+
status?: string
|
|
5318
|
+
test_inputs?: Json
|
|
5319
|
+
}
|
|
5320
|
+
Relationships: [
|
|
5321
|
+
{
|
|
5322
|
+
foreignKeyName: "calibration_runs_organization_id_fkey"
|
|
5323
|
+
columns: ["organization_id"]
|
|
5324
|
+
isOneToOne: false
|
|
5325
|
+
referencedRelation: "organizations"
|
|
5326
|
+
referencedColumns: ["id"]
|
|
5327
|
+
},
|
|
5328
|
+
{
|
|
5329
|
+
foreignKeyName: "calibration_runs_project_id_fkey"
|
|
5330
|
+
columns: ["project_id"]
|
|
5331
|
+
isOneToOne: false
|
|
5332
|
+
referencedRelation: "calibration_projects"
|
|
5333
|
+
referencedColumns: ["id"]
|
|
5334
|
+
},
|
|
5335
|
+
]
|
|
5336
|
+
}
|
|
5337
|
+
command_queue: {
|
|
5338
|
+
Row: {
|
|
5339
|
+
action_payload: Json | null
|
|
5340
|
+
actions: Json
|
|
5341
|
+
completed_at: string | null
|
|
5342
|
+
completed_by: string | null
|
|
5343
|
+
context: Json
|
|
5344
|
+
created_at: string
|
|
5345
|
+
description: string | null
|
|
5346
|
+
expires_at: string | null
|
|
5347
|
+
human_checkpoint: string | null
|
|
5348
|
+
id: string
|
|
5349
|
+
idempotency_key: string | null
|
|
5350
|
+
metadata: Json | null
|
|
5351
|
+
organization_id: string
|
|
5352
|
+
origin_execution_id: string
|
|
5353
|
+
origin_resource_id: string
|
|
5354
|
+
origin_resource_type: string
|
|
5355
|
+
priority: number
|
|
5356
|
+
selected_action: string | null
|
|
5357
|
+
status: string
|
|
5358
|
+
target_execution_id: string | null
|
|
5359
|
+
target_resource_id: string | null
|
|
5360
|
+
target_resource_type: string | null
|
|
5361
|
+
}
|
|
5362
|
+
Insert: {
|
|
5363
|
+
action_payload?: Json | null
|
|
5364
|
+
actions: Json
|
|
5365
|
+
completed_at?: string | null
|
|
5366
|
+
completed_by?: string | null
|
|
5367
|
+
context: Json
|
|
5368
|
+
created_at?: string
|
|
5369
|
+
description?: string | null
|
|
5370
|
+
expires_at?: string | null
|
|
5371
|
+
human_checkpoint?: string | null
|
|
5372
|
+
id?: string
|
|
5373
|
+
idempotency_key?: string | null
|
|
5374
|
+
metadata?: Json | null
|
|
5375
|
+
organization_id: string
|
|
5376
|
+
origin_execution_id: string
|
|
5377
|
+
origin_resource_id: string
|
|
5378
|
+
origin_resource_type: string
|
|
5379
|
+
priority?: number
|
|
5380
|
+
selected_action?: string | null
|
|
5381
|
+
status?: string
|
|
5382
|
+
target_execution_id?: string | null
|
|
5383
|
+
target_resource_id?: string | null
|
|
5384
|
+
target_resource_type?: string | null
|
|
5385
|
+
}
|
|
5386
|
+
Update: {
|
|
5387
|
+
action_payload?: Json | null
|
|
5388
|
+
actions?: Json
|
|
5389
|
+
completed_at?: string | null
|
|
5390
|
+
completed_by?: string | null
|
|
5391
|
+
context?: Json
|
|
5392
|
+
created_at?: string
|
|
5393
|
+
description?: string | null
|
|
5394
|
+
expires_at?: string | null
|
|
5395
|
+
human_checkpoint?: string | null
|
|
5396
|
+
id?: string
|
|
5397
|
+
idempotency_key?: string | null
|
|
5398
|
+
metadata?: Json | null
|
|
5399
|
+
organization_id?: string
|
|
5400
|
+
origin_execution_id?: string
|
|
5401
|
+
origin_resource_id?: string
|
|
5402
|
+
origin_resource_type?: string
|
|
5403
|
+
priority?: number
|
|
5404
|
+
selected_action?: string | null
|
|
5405
|
+
status?: string
|
|
5406
|
+
target_execution_id?: string | null
|
|
5407
|
+
target_resource_id?: string | null
|
|
5408
|
+
target_resource_type?: string | null
|
|
5409
|
+
}
|
|
5410
|
+
Relationships: [
|
|
5411
|
+
{
|
|
5412
|
+
foreignKeyName: "command_queue_completed_by_fkey"
|
|
5413
|
+
columns: ["completed_by"]
|
|
5414
|
+
isOneToOne: false
|
|
5415
|
+
referencedRelation: "users"
|
|
5416
|
+
referencedColumns: ["id"]
|
|
5417
|
+
},
|
|
5418
|
+
{
|
|
5419
|
+
foreignKeyName: "command_queue_organization_id_fkey"
|
|
5420
|
+
columns: ["organization_id"]
|
|
5421
|
+
isOneToOne: false
|
|
5422
|
+
referencedRelation: "organizations"
|
|
5423
|
+
referencedColumns: ["id"]
|
|
5424
|
+
},
|
|
5425
|
+
{
|
|
5426
|
+
foreignKeyName: "command_queue_target_execution_id_fkey"
|
|
5427
|
+
columns: ["target_execution_id"]
|
|
5428
|
+
isOneToOne: false
|
|
5429
|
+
referencedRelation: "execution_logs"
|
|
5430
|
+
referencedColumns: ["execution_id"]
|
|
5431
|
+
},
|
|
5432
|
+
]
|
|
5433
|
+
}
|
|
5434
|
+
credentials: {
|
|
5435
|
+
Row: {
|
|
5436
|
+
created_at: string
|
|
5437
|
+
created_by: string | null
|
|
5438
|
+
encrypted_value: string
|
|
5439
|
+
id: string
|
|
5440
|
+
name: string
|
|
5441
|
+
organization_id: string
|
|
5442
|
+
provider: string | null
|
|
5443
|
+
type: string
|
|
5444
|
+
updated_at: string
|
|
5445
|
+
}
|
|
5446
|
+
Insert: {
|
|
5447
|
+
created_at?: string
|
|
5448
|
+
created_by?: string | null
|
|
5449
|
+
encrypted_value: string
|
|
5450
|
+
id?: string
|
|
5451
|
+
name: string
|
|
5452
|
+
organization_id: string
|
|
5453
|
+
provider?: string | null
|
|
5454
|
+
type?: string
|
|
5455
|
+
updated_at?: string
|
|
5456
|
+
}
|
|
5457
|
+
Update: {
|
|
5458
|
+
created_at?: string
|
|
5459
|
+
created_by?: string | null
|
|
5460
|
+
encrypted_value?: string
|
|
5461
|
+
id?: string
|
|
5462
|
+
name?: string
|
|
5463
|
+
organization_id?: string
|
|
5464
|
+
provider?: string | null
|
|
5465
|
+
type?: string
|
|
5466
|
+
updated_at?: string
|
|
5467
|
+
}
|
|
5468
|
+
Relationships: [
|
|
5469
|
+
{
|
|
5470
|
+
foreignKeyName: "credentials_created_by_fkey"
|
|
5471
|
+
columns: ["created_by"]
|
|
5472
|
+
isOneToOne: false
|
|
5473
|
+
referencedRelation: "users"
|
|
5474
|
+
referencedColumns: ["id"]
|
|
5475
|
+
},
|
|
5476
|
+
{
|
|
5477
|
+
foreignKeyName: "credentials_organization_id_fkey"
|
|
5478
|
+
columns: ["organization_id"]
|
|
5479
|
+
isOneToOne: false
|
|
5480
|
+
referencedRelation: "organizations"
|
|
5481
|
+
referencedColumns: ["id"]
|
|
5482
|
+
},
|
|
5483
|
+
]
|
|
5484
|
+
}
|
|
5485
|
+
deployments: {
|
|
5486
|
+
Row: {
|
|
5487
|
+
compiled_docs: Json | null
|
|
5488
|
+
created_at: string
|
|
5489
|
+
deployment_version: string | null
|
|
5490
|
+
documentation: Json | null
|
|
5491
|
+
error_message: string | null
|
|
5492
|
+
id: string
|
|
5493
|
+
organization_id: string
|
|
5494
|
+
pid: number | null
|
|
5495
|
+
port: number | null
|
|
5496
|
+
sdk_version: string
|
|
5497
|
+
status: string
|
|
5498
|
+
tarball_path: string | null
|
|
5499
|
+
updated_at: string
|
|
5500
|
+
}
|
|
5501
|
+
Insert: {
|
|
5502
|
+
compiled_docs?: Json | null
|
|
5503
|
+
created_at?: string
|
|
5504
|
+
deployment_version?: string | null
|
|
5505
|
+
documentation?: Json | null
|
|
5506
|
+
error_message?: string | null
|
|
5507
|
+
id?: string
|
|
5508
|
+
organization_id: string
|
|
5509
|
+
pid?: number | null
|
|
5510
|
+
port?: number | null
|
|
5511
|
+
sdk_version: string
|
|
5512
|
+
status?: string
|
|
5513
|
+
tarball_path?: string | null
|
|
5514
|
+
updated_at?: string
|
|
5515
|
+
}
|
|
5516
|
+
Update: {
|
|
5517
|
+
compiled_docs?: Json | null
|
|
5518
|
+
created_at?: string
|
|
5519
|
+
deployment_version?: string | null
|
|
5520
|
+
documentation?: Json | null
|
|
5521
|
+
error_message?: string | null
|
|
5522
|
+
id?: string
|
|
5523
|
+
organization_id?: string
|
|
5524
|
+
pid?: number | null
|
|
5525
|
+
port?: number | null
|
|
5526
|
+
sdk_version?: string
|
|
5527
|
+
status?: string
|
|
5528
|
+
tarball_path?: string | null
|
|
5529
|
+
updated_at?: string
|
|
5530
|
+
}
|
|
5531
|
+
Relationships: [
|
|
5532
|
+
{
|
|
5533
|
+
foreignKeyName: "deployments_organization_id_fkey"
|
|
5534
|
+
columns: ["organization_id"]
|
|
5535
|
+
isOneToOne: false
|
|
5536
|
+
referencedRelation: "organizations"
|
|
5537
|
+
referencedColumns: ["id"]
|
|
5538
|
+
},
|
|
5539
|
+
]
|
|
5540
|
+
}
|
|
5541
|
+
execution_errors: {
|
|
5542
|
+
Row: {
|
|
5543
|
+
created_at: string | null
|
|
5544
|
+
error_category: string
|
|
5545
|
+
error_message: string
|
|
5546
|
+
error_severity: string
|
|
5547
|
+
error_stack_trace: string | null
|
|
5548
|
+
error_type: string
|
|
5549
|
+
execution_id: string
|
|
5550
|
+
id: string
|
|
5551
|
+
metadata: Json | null
|
|
5552
|
+
occurred_at: string
|
|
5553
|
+
organization_id: string
|
|
5554
|
+
resolved: boolean
|
|
5555
|
+
resolved_at: string | null
|
|
5556
|
+
resolved_by: string | null
|
|
5557
|
+
}
|
|
5558
|
+
Insert: {
|
|
5559
|
+
created_at?: string | null
|
|
5560
|
+
error_category: string
|
|
5561
|
+
error_message: string
|
|
5562
|
+
error_severity: string
|
|
5563
|
+
error_stack_trace?: string | null
|
|
5564
|
+
error_type: string
|
|
5565
|
+
execution_id: string
|
|
5566
|
+
id?: string
|
|
5567
|
+
metadata?: Json | null
|
|
5568
|
+
occurred_at?: string
|
|
5569
|
+
organization_id: string
|
|
5570
|
+
resolved?: boolean
|
|
5571
|
+
resolved_at?: string | null
|
|
5572
|
+
resolved_by?: string | null
|
|
5573
|
+
}
|
|
5574
|
+
Update: {
|
|
5575
|
+
created_at?: string | null
|
|
5576
|
+
error_category?: string
|
|
5577
|
+
error_message?: string
|
|
5578
|
+
error_severity?: string
|
|
5579
|
+
error_stack_trace?: string | null
|
|
5580
|
+
error_type?: string
|
|
5581
|
+
execution_id?: string
|
|
5582
|
+
id?: string
|
|
5583
|
+
metadata?: Json | null
|
|
5584
|
+
occurred_at?: string
|
|
5585
|
+
organization_id?: string
|
|
5586
|
+
resolved?: boolean
|
|
5587
|
+
resolved_at?: string | null
|
|
5588
|
+
resolved_by?: string | null
|
|
5589
|
+
}
|
|
5590
|
+
Relationships: [
|
|
5591
|
+
{
|
|
5592
|
+
foreignKeyName: "execution_errors_execution_id_fkey"
|
|
5593
|
+
columns: ["execution_id"]
|
|
5594
|
+
isOneToOne: false
|
|
5595
|
+
referencedRelation: "execution_logs"
|
|
5596
|
+
referencedColumns: ["execution_id"]
|
|
5597
|
+
},
|
|
5598
|
+
{
|
|
5599
|
+
foreignKeyName: "execution_errors_organization_id_fkey"
|
|
5600
|
+
columns: ["organization_id"]
|
|
5601
|
+
isOneToOne: false
|
|
5602
|
+
referencedRelation: "organizations"
|
|
5603
|
+
referencedColumns: ["id"]
|
|
5604
|
+
},
|
|
5605
|
+
{
|
|
5606
|
+
foreignKeyName: "execution_errors_resolved_by_fkey"
|
|
5607
|
+
columns: ["resolved_by"]
|
|
5608
|
+
isOneToOne: false
|
|
5609
|
+
referencedRelation: "users"
|
|
5610
|
+
referencedColumns: ["id"]
|
|
5611
|
+
},
|
|
5612
|
+
]
|
|
5613
|
+
}
|
|
5614
|
+
execution_logs: {
|
|
5615
|
+
Row: {
|
|
5616
|
+
api_version: string | null
|
|
5617
|
+
completed_at: string | null
|
|
5618
|
+
created_at: string | null
|
|
5619
|
+
error: string | null
|
|
5620
|
+
execution_id: string
|
|
5621
|
+
input: Json | null
|
|
5622
|
+
last_heartbeat_at: string | null
|
|
5623
|
+
logs: Json | null
|
|
5624
|
+
organization_id: string
|
|
5625
|
+
origin_execution_id: string | null
|
|
5626
|
+
output: Json | null
|
|
5627
|
+
resource_id: string
|
|
5628
|
+
resource_status: string
|
|
5629
|
+
resource_type: string
|
|
5630
|
+
resource_version: string | null
|
|
5631
|
+
sdk_version: string | null
|
|
5632
|
+
session_id: string | null
|
|
5633
|
+
session_turn_number: number | null
|
|
5634
|
+
started_at: string
|
|
5635
|
+
status: string
|
|
5636
|
+
trigger_type: string | null
|
|
5637
|
+
updated_at: string | null
|
|
5638
|
+
user_id: string | null
|
|
5639
|
+
}
|
|
5640
|
+
Insert: {
|
|
5641
|
+
api_version?: string | null
|
|
5642
|
+
completed_at?: string | null
|
|
5643
|
+
created_at?: string | null
|
|
5644
|
+
error?: string | null
|
|
5645
|
+
execution_id?: string
|
|
5646
|
+
input?: Json | null
|
|
5647
|
+
last_heartbeat_at?: string | null
|
|
5648
|
+
logs?: Json | null
|
|
5649
|
+
organization_id: string
|
|
5650
|
+
origin_execution_id?: string | null
|
|
5651
|
+
output?: Json | null
|
|
5652
|
+
resource_id: string
|
|
5653
|
+
resource_status?: string
|
|
5654
|
+
resource_type?: string
|
|
5655
|
+
resource_version?: string | null
|
|
5656
|
+
sdk_version?: string | null
|
|
5657
|
+
session_id?: string | null
|
|
5658
|
+
session_turn_number?: number | null
|
|
5659
|
+
started_at?: string
|
|
5660
|
+
status: string
|
|
5661
|
+
trigger_type?: string | null
|
|
5662
|
+
updated_at?: string | null
|
|
5663
|
+
user_id?: string | null
|
|
5664
|
+
}
|
|
5665
|
+
Update: {
|
|
5666
|
+
api_version?: string | null
|
|
5667
|
+
completed_at?: string | null
|
|
5668
|
+
created_at?: string | null
|
|
5669
|
+
error?: string | null
|
|
5670
|
+
execution_id?: string
|
|
5671
|
+
input?: Json | null
|
|
5672
|
+
last_heartbeat_at?: string | null
|
|
5673
|
+
logs?: Json | null
|
|
5674
|
+
organization_id?: string
|
|
5675
|
+
origin_execution_id?: string | null
|
|
5676
|
+
output?: Json | null
|
|
5677
|
+
resource_id?: string
|
|
5678
|
+
resource_status?: string
|
|
5679
|
+
resource_type?: string
|
|
5680
|
+
resource_version?: string | null
|
|
5681
|
+
sdk_version?: string | null
|
|
5682
|
+
session_id?: string | null
|
|
5683
|
+
session_turn_number?: number | null
|
|
5684
|
+
started_at?: string
|
|
5685
|
+
status?: string
|
|
5686
|
+
trigger_type?: string | null
|
|
5687
|
+
updated_at?: string | null
|
|
5688
|
+
user_id?: string | null
|
|
5689
|
+
}
|
|
5690
|
+
Relationships: [
|
|
5691
|
+
{
|
|
5692
|
+
foreignKeyName: "execution_history_organization_id_fkey"
|
|
5693
|
+
columns: ["organization_id"]
|
|
5694
|
+
isOneToOne: false
|
|
5695
|
+
referencedRelation: "organizations"
|
|
5696
|
+
referencedColumns: ["id"]
|
|
5697
|
+
},
|
|
5698
|
+
{
|
|
5699
|
+
foreignKeyName: "execution_logs_origin_execution_id_fkey"
|
|
5700
|
+
columns: ["origin_execution_id"]
|
|
5701
|
+
isOneToOne: false
|
|
5702
|
+
referencedRelation: "execution_logs"
|
|
5703
|
+
referencedColumns: ["execution_id"]
|
|
5704
|
+
},
|
|
5705
|
+
{
|
|
5706
|
+
foreignKeyName: "execution_logs_session_id_fkey"
|
|
5707
|
+
columns: ["session_id"]
|
|
5708
|
+
isOneToOne: false
|
|
5709
|
+
referencedRelation: "sessions"
|
|
5710
|
+
referencedColumns: ["session_id"]
|
|
5711
|
+
},
|
|
5712
|
+
{
|
|
5713
|
+
foreignKeyName: "execution_logs_user_id_fkey"
|
|
5714
|
+
columns: ["user_id"]
|
|
5715
|
+
isOneToOne: false
|
|
5716
|
+
referencedRelation: "users"
|
|
5717
|
+
referencedColumns: ["id"]
|
|
5718
|
+
},
|
|
5719
|
+
]
|
|
5720
|
+
}
|
|
5721
|
+
execution_metrics: {
|
|
5722
|
+
Row: {
|
|
5723
|
+
ai_call_count: number
|
|
5724
|
+
ai_calls: Json | null
|
|
5725
|
+
automation_savings_usd: number | null
|
|
5726
|
+
created_at: string | null
|
|
5727
|
+
duration_ms: number | null
|
|
5728
|
+
execution_id: string
|
|
5729
|
+
organization_id: string
|
|
5730
|
+
resource_id: string
|
|
5731
|
+
total_cost_usd: number
|
|
5732
|
+
total_input_tokens: number
|
|
5733
|
+
total_output_tokens: number
|
|
5734
|
+
}
|
|
5735
|
+
Insert: {
|
|
5736
|
+
ai_call_count: number
|
|
5737
|
+
ai_calls?: Json | null
|
|
5738
|
+
automation_savings_usd?: number | null
|
|
5739
|
+
created_at?: string | null
|
|
5740
|
+
duration_ms?: number | null
|
|
5741
|
+
execution_id: string
|
|
5742
|
+
organization_id: string
|
|
5743
|
+
resource_id: string
|
|
5744
|
+
total_cost_usd: number
|
|
5745
|
+
total_input_tokens: number
|
|
5746
|
+
total_output_tokens: number
|
|
5747
|
+
}
|
|
5748
|
+
Update: {
|
|
5749
|
+
ai_call_count?: number
|
|
5750
|
+
ai_calls?: Json | null
|
|
5751
|
+
automation_savings_usd?: number | null
|
|
5752
|
+
created_at?: string | null
|
|
5753
|
+
duration_ms?: number | null
|
|
5754
|
+
execution_id?: string
|
|
5755
|
+
organization_id?: string
|
|
5756
|
+
resource_id?: string
|
|
5757
|
+
total_cost_usd?: number
|
|
5758
|
+
total_input_tokens?: number
|
|
5759
|
+
total_output_tokens?: number
|
|
5760
|
+
}
|
|
5761
|
+
Relationships: [
|
|
5762
|
+
{
|
|
5763
|
+
foreignKeyName: "execution_metrics_execution_id_fkey"
|
|
5764
|
+
columns: ["execution_id"]
|
|
5765
|
+
isOneToOne: true
|
|
5766
|
+
referencedRelation: "execution_logs"
|
|
5767
|
+
referencedColumns: ["execution_id"]
|
|
5768
|
+
},
|
|
5769
|
+
{
|
|
5770
|
+
foreignKeyName: "execution_metrics_organization_id_fkey"
|
|
5771
|
+
columns: ["organization_id"]
|
|
5772
|
+
isOneToOne: false
|
|
5773
|
+
referencedRelation: "organizations"
|
|
5774
|
+
referencedColumns: ["id"]
|
|
5775
|
+
},
|
|
5776
|
+
]
|
|
5777
|
+
}
|
|
5778
|
+
notifications: {
|
|
5779
|
+
Row: {
|
|
5780
|
+
action_url: string | null
|
|
5781
|
+
category: string
|
|
5782
|
+
created_at: string | null
|
|
5783
|
+
id: string
|
|
5784
|
+
message: string
|
|
5785
|
+
organization_id: string
|
|
5786
|
+
read: boolean | null
|
|
5787
|
+
read_at: string | null
|
|
5788
|
+
title: string
|
|
5789
|
+
user_id: string
|
|
5790
|
+
}
|
|
5791
|
+
Insert: {
|
|
5792
|
+
action_url?: string | null
|
|
5793
|
+
category: string
|
|
5794
|
+
created_at?: string | null
|
|
5795
|
+
id?: string
|
|
5796
|
+
message: string
|
|
5797
|
+
organization_id: string
|
|
5798
|
+
read?: boolean | null
|
|
5799
|
+
read_at?: string | null
|
|
5800
|
+
title: string
|
|
5801
|
+
user_id: string
|
|
5802
|
+
}
|
|
5803
|
+
Update: {
|
|
5804
|
+
action_url?: string | null
|
|
5805
|
+
category?: string
|
|
5806
|
+
created_at?: string | null
|
|
5807
|
+
id?: string
|
|
5808
|
+
message?: string
|
|
5809
|
+
organization_id?: string
|
|
5810
|
+
read?: boolean | null
|
|
5811
|
+
read_at?: string | null
|
|
5812
|
+
title?: string
|
|
5813
|
+
user_id?: string
|
|
5814
|
+
}
|
|
5815
|
+
Relationships: [
|
|
5816
|
+
{
|
|
5817
|
+
foreignKeyName: "notifications_organization_id_fkey"
|
|
5818
|
+
columns: ["organization_id"]
|
|
5819
|
+
isOneToOne: false
|
|
5820
|
+
referencedRelation: "organizations"
|
|
5821
|
+
referencedColumns: ["id"]
|
|
5822
|
+
},
|
|
5823
|
+
{
|
|
5824
|
+
foreignKeyName: "notifications_user_id_fkey"
|
|
5825
|
+
columns: ["user_id"]
|
|
5826
|
+
isOneToOne: false
|
|
5827
|
+
referencedRelation: "users"
|
|
5828
|
+
referencedColumns: ["id"]
|
|
5829
|
+
},
|
|
5830
|
+
]
|
|
5831
|
+
}
|
|
5832
|
+
org_invitations: {
|
|
5833
|
+
Row: {
|
|
5834
|
+
accept_invitation_url: string | null
|
|
5835
|
+
accepted_at: string | null
|
|
5836
|
+
created_at: string | null
|
|
5837
|
+
email: string
|
|
5838
|
+
expires_at: string
|
|
5839
|
+
id: string
|
|
5840
|
+
invitation_state: string | null
|
|
5841
|
+
invitation_token: string | null
|
|
5842
|
+
inviter_user_id: string | null
|
|
5843
|
+
organization_id: string | null
|
|
5844
|
+
revoked_at: string | null
|
|
5845
|
+
role_slug: string | null
|
|
5846
|
+
updated_at: string | null
|
|
5847
|
+
workos_invitation_id: string
|
|
5848
|
+
}
|
|
5849
|
+
Insert: {
|
|
5850
|
+
accept_invitation_url?: string | null
|
|
5851
|
+
accepted_at?: string | null
|
|
5852
|
+
created_at?: string | null
|
|
5853
|
+
email: string
|
|
5854
|
+
expires_at: string
|
|
5855
|
+
id?: string
|
|
5856
|
+
invitation_state?: string | null
|
|
5857
|
+
invitation_token?: string | null
|
|
5858
|
+
inviter_user_id?: string | null
|
|
5859
|
+
organization_id?: string | null
|
|
5860
|
+
revoked_at?: string | null
|
|
5861
|
+
role_slug?: string | null
|
|
5862
|
+
updated_at?: string | null
|
|
5863
|
+
workos_invitation_id: string
|
|
5864
|
+
}
|
|
5865
|
+
Update: {
|
|
5866
|
+
accept_invitation_url?: string | null
|
|
5867
|
+
accepted_at?: string | null
|
|
5868
|
+
created_at?: string | null
|
|
5869
|
+
email?: string
|
|
5870
|
+
expires_at?: string
|
|
5871
|
+
id?: string
|
|
5872
|
+
invitation_state?: string | null
|
|
5873
|
+
invitation_token?: string | null
|
|
5874
|
+
inviter_user_id?: string | null
|
|
5875
|
+
organization_id?: string | null
|
|
5876
|
+
revoked_at?: string | null
|
|
5877
|
+
role_slug?: string | null
|
|
5878
|
+
updated_at?: string | null
|
|
5879
|
+
workos_invitation_id?: string
|
|
5880
|
+
}
|
|
5881
|
+
Relationships: [
|
|
5882
|
+
{
|
|
5883
|
+
foreignKeyName: "org_invitations_inviter_user_id_fkey"
|
|
5884
|
+
columns: ["inviter_user_id"]
|
|
5885
|
+
isOneToOne: false
|
|
5886
|
+
referencedRelation: "users"
|
|
5887
|
+
referencedColumns: ["id"]
|
|
5888
|
+
},
|
|
5889
|
+
{
|
|
5890
|
+
foreignKeyName: "org_invitations_organization_id_fkey"
|
|
5891
|
+
columns: ["organization_id"]
|
|
5892
|
+
isOneToOne: false
|
|
5893
|
+
referencedRelation: "organizations"
|
|
5894
|
+
referencedColumns: ["id"]
|
|
5895
|
+
},
|
|
5896
|
+
]
|
|
5897
|
+
}
|
|
5898
|
+
org_memberships: {
|
|
5899
|
+
Row: {
|
|
5900
|
+
config: Json
|
|
5901
|
+
created_at: string | null
|
|
5902
|
+
id: string
|
|
5903
|
+
membership_status: string | null
|
|
5904
|
+
organization_id: string
|
|
5905
|
+
role_slug: string | null
|
|
5906
|
+
updated_at: string | null
|
|
5907
|
+
user_id: string
|
|
5908
|
+
workos_membership_id: string | null
|
|
5909
|
+
}
|
|
5910
|
+
Insert: {
|
|
5911
|
+
config?: Json
|
|
5912
|
+
created_at?: string | null
|
|
5913
|
+
id?: string
|
|
5914
|
+
membership_status?: string | null
|
|
5915
|
+
organization_id: string
|
|
5916
|
+
role_slug?: string | null
|
|
5917
|
+
updated_at?: string | null
|
|
5918
|
+
user_id: string
|
|
5919
|
+
workos_membership_id?: string | null
|
|
5920
|
+
}
|
|
5921
|
+
Update: {
|
|
5922
|
+
config?: Json
|
|
5923
|
+
created_at?: string | null
|
|
5924
|
+
id?: string
|
|
5925
|
+
membership_status?: string | null
|
|
5926
|
+
organization_id?: string
|
|
5927
|
+
role_slug?: string | null
|
|
5928
|
+
updated_at?: string | null
|
|
5929
|
+
user_id?: string
|
|
5930
|
+
workos_membership_id?: string | null
|
|
5931
|
+
}
|
|
5932
|
+
Relationships: [
|
|
5933
|
+
{
|
|
5934
|
+
foreignKeyName: "org_memberships_organization_id_fkey"
|
|
5935
|
+
columns: ["organization_id"]
|
|
5936
|
+
isOneToOne: false
|
|
5937
|
+
referencedRelation: "organizations"
|
|
5938
|
+
referencedColumns: ["id"]
|
|
5939
|
+
},
|
|
5940
|
+
{
|
|
5941
|
+
foreignKeyName: "org_memberships_user_id_fkey"
|
|
5942
|
+
columns: ["user_id"]
|
|
5943
|
+
isOneToOne: false
|
|
5944
|
+
referencedRelation: "users"
|
|
5945
|
+
referencedColumns: ["id"]
|
|
5946
|
+
},
|
|
5947
|
+
]
|
|
5948
|
+
}
|
|
5949
|
+
organizations: {
|
|
5950
|
+
Row: {
|
|
5951
|
+
config: Json
|
|
5952
|
+
created_at: string
|
|
5953
|
+
id: string
|
|
5954
|
+
is_test: boolean
|
|
5955
|
+
metadata: Json
|
|
5956
|
+
name: string
|
|
5957
|
+
status: string
|
|
5958
|
+
updated_at: string
|
|
5959
|
+
workos_org_id: string
|
|
5960
|
+
}
|
|
5961
|
+
Insert: {
|
|
5962
|
+
config?: Json
|
|
5963
|
+
created_at?: string
|
|
5964
|
+
id?: string
|
|
5965
|
+
is_test?: boolean
|
|
5966
|
+
metadata?: Json
|
|
5967
|
+
name: string
|
|
5968
|
+
status?: string
|
|
5969
|
+
updated_at?: string
|
|
5970
|
+
workos_org_id: string
|
|
5971
|
+
}
|
|
5972
|
+
Update: {
|
|
5973
|
+
config?: Json
|
|
5974
|
+
created_at?: string
|
|
5975
|
+
id?: string
|
|
5976
|
+
is_test?: boolean
|
|
5977
|
+
metadata?: Json
|
|
5978
|
+
name?: string
|
|
5979
|
+
status?: string
|
|
5980
|
+
updated_at?: string
|
|
5981
|
+
workos_org_id?: string
|
|
5982
|
+
}
|
|
5983
|
+
Relationships: []
|
|
5984
|
+
}
|
|
5985
|
+
prj_milestones: {
|
|
5986
|
+
Row: {
|
|
5987
|
+
checklist: Json | null
|
|
5988
|
+
completed_at: string | null
|
|
5989
|
+
created_at: string
|
|
5990
|
+
description: string | null
|
|
5991
|
+
due_date: string | null
|
|
5992
|
+
id: string
|
|
5993
|
+
metadata: Json | null
|
|
5994
|
+
name: string
|
|
5995
|
+
organization_id: string
|
|
5996
|
+
project_id: string
|
|
5997
|
+
sequence: number
|
|
5998
|
+
status: string
|
|
5999
|
+
updated_at: string
|
|
6000
|
+
}
|
|
6001
|
+
Insert: {
|
|
6002
|
+
checklist?: Json | null
|
|
6003
|
+
completed_at?: string | null
|
|
6004
|
+
created_at?: string
|
|
6005
|
+
description?: string | null
|
|
6006
|
+
due_date?: string | null
|
|
6007
|
+
id?: string
|
|
6008
|
+
metadata?: Json | null
|
|
6009
|
+
name: string
|
|
6010
|
+
organization_id: string
|
|
6011
|
+
project_id: string
|
|
6012
|
+
sequence?: number
|
|
6013
|
+
status?: string
|
|
6014
|
+
updated_at?: string
|
|
6015
|
+
}
|
|
6016
|
+
Update: {
|
|
6017
|
+
checklist?: Json | null
|
|
6018
|
+
completed_at?: string | null
|
|
6019
|
+
created_at?: string
|
|
6020
|
+
description?: string | null
|
|
6021
|
+
due_date?: string | null
|
|
6022
|
+
id?: string
|
|
6023
|
+
metadata?: Json | null
|
|
6024
|
+
name?: string
|
|
6025
|
+
organization_id?: string
|
|
6026
|
+
project_id?: string
|
|
6027
|
+
sequence?: number
|
|
6028
|
+
status?: string
|
|
6029
|
+
updated_at?: string
|
|
6030
|
+
}
|
|
6031
|
+
Relationships: [
|
|
6032
|
+
{
|
|
6033
|
+
foreignKeyName: "prj_milestones_organization_id_fkey"
|
|
6034
|
+
columns: ["organization_id"]
|
|
6035
|
+
isOneToOne: false
|
|
6036
|
+
referencedRelation: "organizations"
|
|
6037
|
+
referencedColumns: ["id"]
|
|
6038
|
+
},
|
|
6039
|
+
{
|
|
6040
|
+
foreignKeyName: "prj_milestones_project_id_fkey"
|
|
6041
|
+
columns: ["project_id"]
|
|
6042
|
+
isOneToOne: false
|
|
6043
|
+
referencedRelation: "prj_projects"
|
|
6044
|
+
referencedColumns: ["id"]
|
|
6045
|
+
},
|
|
6046
|
+
]
|
|
6047
|
+
}
|
|
6048
|
+
prj_notes: {
|
|
6049
|
+
Row: {
|
|
6050
|
+
content: string
|
|
6051
|
+
created_at: string
|
|
6052
|
+
created_by: string | null
|
|
6053
|
+
id: string
|
|
6054
|
+
metadata: Json | null
|
|
6055
|
+
milestone_id: string | null
|
|
6056
|
+
occurred_at: string
|
|
6057
|
+
organization_id: string
|
|
6058
|
+
project_id: string
|
|
6059
|
+
summary: string | null
|
|
6060
|
+
task_id: string | null
|
|
6061
|
+
type: string
|
|
6062
|
+
}
|
|
6063
|
+
Insert: {
|
|
6064
|
+
content: string
|
|
6065
|
+
created_at?: string
|
|
6066
|
+
created_by?: string | null
|
|
6067
|
+
id?: string
|
|
6068
|
+
metadata?: Json | null
|
|
6069
|
+
milestone_id?: string | null
|
|
6070
|
+
occurred_at?: string
|
|
6071
|
+
organization_id: string
|
|
6072
|
+
project_id: string
|
|
6073
|
+
summary?: string | null
|
|
6074
|
+
task_id?: string | null
|
|
6075
|
+
type?: string
|
|
6076
|
+
}
|
|
6077
|
+
Update: {
|
|
6078
|
+
content?: string
|
|
6079
|
+
created_at?: string
|
|
6080
|
+
created_by?: string | null
|
|
6081
|
+
id?: string
|
|
6082
|
+
metadata?: Json | null
|
|
6083
|
+
milestone_id?: string | null
|
|
6084
|
+
occurred_at?: string
|
|
6085
|
+
organization_id?: string
|
|
6086
|
+
project_id?: string
|
|
6087
|
+
summary?: string | null
|
|
6088
|
+
task_id?: string | null
|
|
6089
|
+
type?: string
|
|
6090
|
+
}
|
|
6091
|
+
Relationships: [
|
|
6092
|
+
{
|
|
6093
|
+
foreignKeyName: "prj_notes_created_by_fkey"
|
|
6094
|
+
columns: ["created_by"]
|
|
6095
|
+
isOneToOne: false
|
|
6096
|
+
referencedRelation: "users"
|
|
6097
|
+
referencedColumns: ["id"]
|
|
6098
|
+
},
|
|
6099
|
+
{
|
|
6100
|
+
foreignKeyName: "prj_notes_milestone_id_fkey"
|
|
6101
|
+
columns: ["milestone_id"]
|
|
6102
|
+
isOneToOne: false
|
|
6103
|
+
referencedRelation: "prj_milestones"
|
|
6104
|
+
referencedColumns: ["id"]
|
|
6105
|
+
},
|
|
6106
|
+
{
|
|
6107
|
+
foreignKeyName: "prj_notes_organization_id_fkey"
|
|
6108
|
+
columns: ["organization_id"]
|
|
6109
|
+
isOneToOne: false
|
|
6110
|
+
referencedRelation: "organizations"
|
|
6111
|
+
referencedColumns: ["id"]
|
|
6112
|
+
},
|
|
6113
|
+
{
|
|
6114
|
+
foreignKeyName: "prj_notes_project_id_fkey"
|
|
6115
|
+
columns: ["project_id"]
|
|
6116
|
+
isOneToOne: false
|
|
6117
|
+
referencedRelation: "prj_projects"
|
|
6118
|
+
referencedColumns: ["id"]
|
|
6119
|
+
},
|
|
6120
|
+
{
|
|
6121
|
+
foreignKeyName: "prj_notes_task_id_fkey"
|
|
6122
|
+
columns: ["task_id"]
|
|
6123
|
+
isOneToOne: false
|
|
6124
|
+
referencedRelation: "prj_tasks"
|
|
6125
|
+
referencedColumns: ["id"]
|
|
6126
|
+
},
|
|
6127
|
+
]
|
|
6128
|
+
}
|
|
6129
|
+
prj_projects: {
|
|
6130
|
+
Row: {
|
|
6131
|
+
actual_end_date: string | null
|
|
6132
|
+
client_company_id: string | null
|
|
6133
|
+
contract_value: number | null
|
|
6134
|
+
created_at: string
|
|
6135
|
+
deal_id: string | null
|
|
6136
|
+
description: string | null
|
|
6137
|
+
id: string
|
|
6138
|
+
kind: string
|
|
6139
|
+
metadata: Json | null
|
|
6140
|
+
name: string
|
|
6141
|
+
organization_id: string
|
|
6142
|
+
start_date: string | null
|
|
6143
|
+
status: string
|
|
6144
|
+
target_end_date: string | null
|
|
6145
|
+
updated_at: string
|
|
6146
|
+
}
|
|
6147
|
+
Insert: {
|
|
6148
|
+
actual_end_date?: string | null
|
|
6149
|
+
client_company_id?: string | null
|
|
6150
|
+
contract_value?: number | null
|
|
6151
|
+
created_at?: string
|
|
6152
|
+
deal_id?: string | null
|
|
6153
|
+
description?: string | null
|
|
6154
|
+
id?: string
|
|
6155
|
+
kind?: string
|
|
6156
|
+
metadata?: Json | null
|
|
6157
|
+
name: string
|
|
6158
|
+
organization_id: string
|
|
6159
|
+
start_date?: string | null
|
|
6160
|
+
status?: string
|
|
6161
|
+
target_end_date?: string | null
|
|
6162
|
+
updated_at?: string
|
|
6163
|
+
}
|
|
6164
|
+
Update: {
|
|
6165
|
+
actual_end_date?: string | null
|
|
6166
|
+
client_company_id?: string | null
|
|
6167
|
+
contract_value?: number | null
|
|
6168
|
+
created_at?: string
|
|
6169
|
+
deal_id?: string | null
|
|
6170
|
+
description?: string | null
|
|
6171
|
+
id?: string
|
|
6172
|
+
kind?: string
|
|
6173
|
+
metadata?: Json | null
|
|
6174
|
+
name?: string
|
|
6175
|
+
organization_id?: string
|
|
6176
|
+
start_date?: string | null
|
|
6177
|
+
status?: string
|
|
6178
|
+
target_end_date?: string | null
|
|
6179
|
+
updated_at?: string
|
|
6180
|
+
}
|
|
6181
|
+
Relationships: [
|
|
6182
|
+
{
|
|
6183
|
+
foreignKeyName: "prj_projects_client_company_id_fkey"
|
|
6184
|
+
columns: ["client_company_id"]
|
|
6185
|
+
isOneToOne: false
|
|
6186
|
+
referencedRelation: "acq_companies"
|
|
6187
|
+
referencedColumns: ["id"]
|
|
6188
|
+
},
|
|
6189
|
+
{
|
|
6190
|
+
foreignKeyName: "prj_projects_deal_id_fkey"
|
|
6191
|
+
columns: ["deal_id"]
|
|
6192
|
+
isOneToOne: false
|
|
6193
|
+
referencedRelation: "acq_deals"
|
|
6194
|
+
referencedColumns: ["id"]
|
|
6195
|
+
},
|
|
6196
|
+
{
|
|
6197
|
+
foreignKeyName: "prj_projects_organization_id_fkey"
|
|
6198
|
+
columns: ["organization_id"]
|
|
6199
|
+
isOneToOne: false
|
|
6200
|
+
referencedRelation: "organizations"
|
|
6201
|
+
referencedColumns: ["id"]
|
|
6202
|
+
},
|
|
6203
|
+
]
|
|
6204
|
+
}
|
|
6205
|
+
prj_tasks: {
|
|
6206
|
+
Row: {
|
|
6207
|
+
checklist: Json
|
|
6208
|
+
completed_at: string | null
|
|
6209
|
+
created_at: string
|
|
6210
|
+
description: string | null
|
|
6211
|
+
due_date: string | null
|
|
6212
|
+
file_url: string | null
|
|
6213
|
+
id: string
|
|
6214
|
+
metadata: Json | null
|
|
6215
|
+
milestone_id: string | null
|
|
6216
|
+
name: string
|
|
6217
|
+
organization_id: string
|
|
6218
|
+
parent_task_id: string | null
|
|
6219
|
+
project_id: string
|
|
6220
|
+
resume_context: Json | null
|
|
6221
|
+
status: string
|
|
6222
|
+
type: string
|
|
6223
|
+
updated_at: string
|
|
6224
|
+
}
|
|
6225
|
+
Insert: {
|
|
6226
|
+
checklist?: Json
|
|
6227
|
+
completed_at?: string | null
|
|
6228
|
+
created_at?: string
|
|
6229
|
+
description?: string | null
|
|
6230
|
+
due_date?: string | null
|
|
6231
|
+
file_url?: string | null
|
|
6232
|
+
id?: string
|
|
6233
|
+
metadata?: Json | null
|
|
6234
|
+
milestone_id?: string | null
|
|
6235
|
+
name: string
|
|
6236
|
+
organization_id: string
|
|
6237
|
+
parent_task_id?: string | null
|
|
6238
|
+
project_id: string
|
|
6239
|
+
resume_context?: Json | null
|
|
6240
|
+
status?: string
|
|
6241
|
+
type?: string
|
|
6242
|
+
updated_at?: string
|
|
6243
|
+
}
|
|
6244
|
+
Update: {
|
|
6245
|
+
checklist?: Json
|
|
6246
|
+
completed_at?: string | null
|
|
6247
|
+
created_at?: string
|
|
6248
|
+
description?: string | null
|
|
6249
|
+
due_date?: string | null
|
|
6250
|
+
file_url?: string | null
|
|
6251
|
+
id?: string
|
|
6252
|
+
metadata?: Json | null
|
|
6253
|
+
milestone_id?: string | null
|
|
6254
|
+
name?: string
|
|
6255
|
+
organization_id?: string
|
|
6256
|
+
parent_task_id?: string | null
|
|
6257
|
+
project_id?: string
|
|
6258
|
+
resume_context?: Json | null
|
|
6259
|
+
status?: string
|
|
6260
|
+
type?: string
|
|
6261
|
+
updated_at?: string
|
|
6262
|
+
}
|
|
6263
|
+
Relationships: [
|
|
6264
|
+
{
|
|
6265
|
+
foreignKeyName: "prj_tasks_milestone_id_fkey"
|
|
6266
|
+
columns: ["milestone_id"]
|
|
6267
|
+
isOneToOne: false
|
|
6268
|
+
referencedRelation: "prj_milestones"
|
|
6269
|
+
referencedColumns: ["id"]
|
|
6270
|
+
},
|
|
6271
|
+
{
|
|
6272
|
+
foreignKeyName: "prj_tasks_organization_id_fkey"
|
|
6273
|
+
columns: ["organization_id"]
|
|
6274
|
+
isOneToOne: false
|
|
6275
|
+
referencedRelation: "organizations"
|
|
6276
|
+
referencedColumns: ["id"]
|
|
6277
|
+
},
|
|
6278
|
+
{
|
|
6279
|
+
foreignKeyName: "prj_tasks_parent_task_id_fkey"
|
|
6280
|
+
columns: ["parent_task_id"]
|
|
6281
|
+
isOneToOne: false
|
|
6282
|
+
referencedRelation: "prj_tasks"
|
|
6283
|
+
referencedColumns: ["id"]
|
|
6284
|
+
},
|
|
6285
|
+
{
|
|
6286
|
+
foreignKeyName: "prj_tasks_project_id_fkey"
|
|
6287
|
+
columns: ["project_id"]
|
|
6288
|
+
isOneToOne: false
|
|
6289
|
+
referencedRelation: "prj_projects"
|
|
6290
|
+
referencedColumns: ["id"]
|
|
6291
|
+
},
|
|
6292
|
+
]
|
|
6293
|
+
}
|
|
6294
|
+
session_messages: {
|
|
6295
|
+
Row: {
|
|
6296
|
+
created_at: string | null
|
|
6297
|
+
id: string
|
|
6298
|
+
message: string
|
|
6299
|
+
message_index: number | null
|
|
6300
|
+
message_type: string | null
|
|
6301
|
+
metadata: Json | null
|
|
6302
|
+
role: string
|
|
6303
|
+
session_id: string
|
|
6304
|
+
session_turn_number: number
|
|
6305
|
+
}
|
|
6306
|
+
Insert: {
|
|
6307
|
+
created_at?: string | null
|
|
6308
|
+
id: string
|
|
6309
|
+
message: string
|
|
6310
|
+
message_index?: number | null
|
|
6311
|
+
message_type?: string | null
|
|
6312
|
+
metadata?: Json | null
|
|
6313
|
+
role: string
|
|
6314
|
+
session_id: string
|
|
6315
|
+
session_turn_number: number
|
|
6316
|
+
}
|
|
6317
|
+
Update: {
|
|
6318
|
+
created_at?: string | null
|
|
6319
|
+
id?: string
|
|
6320
|
+
message?: string
|
|
6321
|
+
message_index?: number | null
|
|
6322
|
+
message_type?: string | null
|
|
6323
|
+
metadata?: Json | null
|
|
6324
|
+
role?: string
|
|
6325
|
+
session_id?: string
|
|
6326
|
+
session_turn_number?: number
|
|
6327
|
+
}
|
|
6328
|
+
Relationships: [
|
|
6329
|
+
{
|
|
6330
|
+
foreignKeyName: "session_messages_session_id_fkey"
|
|
6331
|
+
columns: ["session_id"]
|
|
6332
|
+
isOneToOne: false
|
|
6333
|
+
referencedRelation: "sessions"
|
|
6334
|
+
referencedColumns: ["session_id"]
|
|
6335
|
+
},
|
|
6336
|
+
]
|
|
6337
|
+
}
|
|
6338
|
+
sessions: {
|
|
6339
|
+
Row: {
|
|
6340
|
+
context_window_size: number
|
|
6341
|
+
created_at: string | null
|
|
6342
|
+
cumulative_input_tokens: number
|
|
6343
|
+
cumulative_output_tokens: number
|
|
6344
|
+
deleted_at: string | null
|
|
6345
|
+
ended_at: string | null
|
|
6346
|
+
memory_snapshot: Json
|
|
6347
|
+
metadata: Json | null
|
|
6348
|
+
organization_id: string
|
|
6349
|
+
resource_id: string
|
|
6350
|
+
session_id: string
|
|
6351
|
+
session_total_turns: number | null
|
|
6352
|
+
updated_at: string | null
|
|
6353
|
+
user_id: string | null
|
|
6354
|
+
}
|
|
6355
|
+
Insert: {
|
|
6356
|
+
context_window_size?: number
|
|
6357
|
+
created_at?: string | null
|
|
6358
|
+
cumulative_input_tokens?: number
|
|
6359
|
+
cumulative_output_tokens?: number
|
|
6360
|
+
deleted_at?: string | null
|
|
6361
|
+
ended_at?: string | null
|
|
6362
|
+
memory_snapshot: Json
|
|
6363
|
+
metadata?: Json | null
|
|
6364
|
+
organization_id: string
|
|
6365
|
+
resource_id: string
|
|
6366
|
+
session_id?: string
|
|
6367
|
+
session_total_turns?: number | null
|
|
6368
|
+
updated_at?: string | null
|
|
6369
|
+
user_id?: string | null
|
|
6370
|
+
}
|
|
6371
|
+
Update: {
|
|
6372
|
+
context_window_size?: number
|
|
6373
|
+
created_at?: string | null
|
|
6374
|
+
cumulative_input_tokens?: number
|
|
6375
|
+
cumulative_output_tokens?: number
|
|
6376
|
+
deleted_at?: string | null
|
|
6377
|
+
ended_at?: string | null
|
|
6378
|
+
memory_snapshot?: Json
|
|
6379
|
+
metadata?: Json | null
|
|
6380
|
+
organization_id?: string
|
|
6381
|
+
resource_id?: string
|
|
6382
|
+
session_id?: string
|
|
6383
|
+
session_total_turns?: number | null
|
|
6384
|
+
updated_at?: string | null
|
|
6385
|
+
user_id?: string | null
|
|
6386
|
+
}
|
|
6387
|
+
Relationships: [
|
|
6388
|
+
{
|
|
6389
|
+
foreignKeyName: "fk_organization"
|
|
6390
|
+
columns: ["organization_id"]
|
|
6391
|
+
isOneToOne: false
|
|
6392
|
+
referencedRelation: "organizations"
|
|
6393
|
+
referencedColumns: ["id"]
|
|
6394
|
+
},
|
|
6395
|
+
{
|
|
6396
|
+
foreignKeyName: "fk_user"
|
|
6397
|
+
columns: ["user_id"]
|
|
6398
|
+
isOneToOne: false
|
|
6399
|
+
referencedRelation: "users"
|
|
6400
|
+
referencedColumns: ["id"]
|
|
6401
|
+
},
|
|
6402
|
+
]
|
|
6403
|
+
}
|
|
6404
|
+
task_schedules: {
|
|
6405
|
+
Row: {
|
|
6406
|
+
created_at: string
|
|
6407
|
+
current_step: number
|
|
6408
|
+
description: string | null
|
|
6409
|
+
id: string
|
|
6410
|
+
idempotency_key: string | null
|
|
6411
|
+
last_execution_id: string | null
|
|
6412
|
+
last_run_at: string | null
|
|
6413
|
+
max_retries: number
|
|
6414
|
+
metadata: Json | null
|
|
6415
|
+
name: string
|
|
6416
|
+
next_run_at: string | null
|
|
6417
|
+
organization_id: string
|
|
6418
|
+
origin_execution_id: string | null
|
|
6419
|
+
origin_resource_id: string | null
|
|
6420
|
+
origin_resource_type: string | null
|
|
6421
|
+
retry_count: number
|
|
6422
|
+
schedule_config: Json
|
|
6423
|
+
status: string
|
|
6424
|
+
target_resource_id: string
|
|
6425
|
+
target_resource_type: string
|
|
6426
|
+
updated_at: string
|
|
6427
|
+
}
|
|
6428
|
+
Insert: {
|
|
6429
|
+
created_at?: string
|
|
6430
|
+
current_step?: number
|
|
6431
|
+
description?: string | null
|
|
6432
|
+
id?: string
|
|
6433
|
+
idempotency_key?: string | null
|
|
6434
|
+
last_execution_id?: string | null
|
|
6435
|
+
last_run_at?: string | null
|
|
6436
|
+
max_retries?: number
|
|
6437
|
+
metadata?: Json | null
|
|
6438
|
+
name: string
|
|
6439
|
+
next_run_at?: string | null
|
|
6440
|
+
organization_id: string
|
|
6441
|
+
origin_execution_id?: string | null
|
|
6442
|
+
origin_resource_id?: string | null
|
|
6443
|
+
origin_resource_type?: string | null
|
|
6444
|
+
retry_count?: number
|
|
6445
|
+
schedule_config: Json
|
|
6446
|
+
status?: string
|
|
6447
|
+
target_resource_id: string
|
|
6448
|
+
target_resource_type: string
|
|
6449
|
+
updated_at?: string
|
|
6450
|
+
}
|
|
6451
|
+
Update: {
|
|
6452
|
+
created_at?: string
|
|
6453
|
+
current_step?: number
|
|
6454
|
+
description?: string | null
|
|
6455
|
+
id?: string
|
|
6456
|
+
idempotency_key?: string | null
|
|
6457
|
+
last_execution_id?: string | null
|
|
6458
|
+
last_run_at?: string | null
|
|
6459
|
+
max_retries?: number
|
|
6460
|
+
metadata?: Json | null
|
|
6461
|
+
name?: string
|
|
6462
|
+
next_run_at?: string | null
|
|
6463
|
+
organization_id?: string
|
|
6464
|
+
origin_execution_id?: string | null
|
|
6465
|
+
origin_resource_id?: string | null
|
|
6466
|
+
origin_resource_type?: string | null
|
|
6467
|
+
retry_count?: number
|
|
6468
|
+
schedule_config?: Json
|
|
6469
|
+
status?: string
|
|
6470
|
+
target_resource_id?: string
|
|
6471
|
+
target_resource_type?: string
|
|
6472
|
+
updated_at?: string
|
|
6473
|
+
}
|
|
6474
|
+
Relationships: [
|
|
6475
|
+
{
|
|
6476
|
+
foreignKeyName: "task_schedules_organization_id_fkey"
|
|
6477
|
+
columns: ["organization_id"]
|
|
6478
|
+
isOneToOne: false
|
|
6479
|
+
referencedRelation: "organizations"
|
|
6480
|
+
referencedColumns: ["id"]
|
|
6481
|
+
},
|
|
6482
|
+
]
|
|
6483
|
+
}
|
|
6484
|
+
users: {
|
|
6485
|
+
Row: {
|
|
6486
|
+
config: Json
|
|
6487
|
+
created_at: string
|
|
6488
|
+
display_name: string | null
|
|
6489
|
+
email: string
|
|
6490
|
+
first_name: string | null
|
|
6491
|
+
id: string
|
|
6492
|
+
is_active: boolean
|
|
6493
|
+
is_platform_admin: boolean | null
|
|
6494
|
+
last_login_at: string | null
|
|
6495
|
+
last_name: string | null
|
|
6496
|
+
last_visited_org: string | null
|
|
6497
|
+
profile_picture_url: string | null
|
|
6498
|
+
updated_at: string
|
|
6499
|
+
workos_user_id: string | null
|
|
6500
|
+
}
|
|
6501
|
+
Insert: {
|
|
6502
|
+
config?: Json
|
|
6503
|
+
created_at?: string
|
|
6504
|
+
display_name?: string | null
|
|
6505
|
+
email: string
|
|
6506
|
+
first_name?: string | null
|
|
6507
|
+
id?: string
|
|
6508
|
+
is_active?: boolean
|
|
6509
|
+
is_platform_admin?: boolean | null
|
|
6510
|
+
last_login_at?: string | null
|
|
6511
|
+
last_name?: string | null
|
|
6512
|
+
last_visited_org?: string | null
|
|
6513
|
+
profile_picture_url?: string | null
|
|
6514
|
+
updated_at?: string
|
|
6515
|
+
workos_user_id?: string | null
|
|
6516
|
+
}
|
|
6517
|
+
Update: {
|
|
6518
|
+
config?: Json
|
|
6519
|
+
created_at?: string
|
|
6520
|
+
display_name?: string | null
|
|
6521
|
+
email?: string
|
|
6522
|
+
first_name?: string | null
|
|
6523
|
+
id?: string
|
|
6524
|
+
is_active?: boolean
|
|
6525
|
+
is_platform_admin?: boolean | null
|
|
6526
|
+
last_login_at?: string | null
|
|
6527
|
+
last_name?: string | null
|
|
6528
|
+
last_visited_org?: string | null
|
|
6529
|
+
profile_picture_url?: string | null
|
|
6530
|
+
updated_at?: string
|
|
6531
|
+
workos_user_id?: string | null
|
|
6532
|
+
}
|
|
6533
|
+
Relationships: [
|
|
6534
|
+
{
|
|
6535
|
+
foreignKeyName: "user_profiles_last_visited_org_fkey"
|
|
6536
|
+
columns: ["last_visited_org"]
|
|
6537
|
+
isOneToOne: false
|
|
6538
|
+
referencedRelation: "organizations"
|
|
6539
|
+
referencedColumns: ["id"]
|
|
6540
|
+
},
|
|
6541
|
+
]
|
|
6542
|
+
}
|
|
6543
|
+
webhook_endpoints: {
|
|
6544
|
+
Row: {
|
|
6545
|
+
created_at: string
|
|
6546
|
+
description: string | null
|
|
6547
|
+
id: string
|
|
6548
|
+
key: string
|
|
6549
|
+
last_triggered_at: string | null
|
|
6550
|
+
name: string
|
|
6551
|
+
organization_id: string
|
|
6552
|
+
request_count: number
|
|
6553
|
+
resource_id: string | null
|
|
6554
|
+
status: string
|
|
6555
|
+
updated_at: string
|
|
6556
|
+
}
|
|
6557
|
+
Insert: {
|
|
6558
|
+
created_at?: string
|
|
6559
|
+
description?: string | null
|
|
6560
|
+
id?: string
|
|
6561
|
+
key: string
|
|
6562
|
+
last_triggered_at?: string | null
|
|
6563
|
+
name: string
|
|
6564
|
+
organization_id: string
|
|
6565
|
+
request_count?: number
|
|
6566
|
+
resource_id?: string | null
|
|
6567
|
+
status?: string
|
|
6568
|
+
updated_at?: string
|
|
6569
|
+
}
|
|
6570
|
+
Update: {
|
|
6571
|
+
created_at?: string
|
|
6572
|
+
description?: string | null
|
|
6573
|
+
id?: string
|
|
6574
|
+
key?: string
|
|
6575
|
+
last_triggered_at?: string | null
|
|
6576
|
+
name?: string
|
|
6577
|
+
organization_id?: string
|
|
6578
|
+
request_count?: number
|
|
6579
|
+
resource_id?: string | null
|
|
6580
|
+
status?: string
|
|
6581
|
+
updated_at?: string
|
|
6582
|
+
}
|
|
6583
|
+
Relationships: [
|
|
6584
|
+
{
|
|
6585
|
+
foreignKeyName: "webhook_endpoints_organization_id_fkey"
|
|
6586
|
+
columns: ["organization_id"]
|
|
6587
|
+
isOneToOne: false
|
|
6588
|
+
referencedRelation: "organizations"
|
|
6589
|
+
referencedColumns: ["id"]
|
|
6590
|
+
},
|
|
6591
|
+
]
|
|
6592
|
+
}
|
|
6593
|
+
}
|
|
6594
|
+
Views: {
|
|
6595
|
+
[_ in never]: never
|
|
6596
|
+
}
|
|
6597
|
+
Functions: {
|
|
6598
|
+
acq_default_checklist: { Args: { p_platform: string }; Returns: Json }
|
|
6599
|
+
append_deal_activity: {
|
|
6600
|
+
Args: { p_activity: Json; p_deal_id: string; p_organization_id: string }
|
|
6601
|
+
Returns: undefined
|
|
6602
|
+
}
|
|
6603
|
+
auth_jwt_claims: { Args: never; Returns: Json }
|
|
6604
|
+
auth_uid_safe: { Args: never; Returns: string }
|
|
6605
|
+
current_user_is_platform_admin: { Args: never; Returns: boolean }
|
|
6606
|
+
current_user_supabase_id: { Args: never; Returns: string }
|
|
6607
|
+
detect_stalled_executions: { Args: never; Returns: undefined }
|
|
6608
|
+
execute_session_turn: {
|
|
6609
|
+
Args: { p_session_id: string }
|
|
6610
|
+
Returns: {
|
|
6611
|
+
created_at: string
|
|
6612
|
+
ended_at: string
|
|
6613
|
+
memory_snapshot: Json
|
|
6614
|
+
metadata: Json
|
|
6615
|
+
organization_id: string
|
|
6616
|
+
resource_id: string
|
|
6617
|
+
session_id: string
|
|
6618
|
+
session_total_turns: number
|
|
6619
|
+
updated_at: string
|
|
6620
|
+
user_id: string
|
|
6621
|
+
}[]
|
|
6622
|
+
}
|
|
6623
|
+
get_storage_org_id: { Args: { file_path: string }; Returns: string }
|
|
6624
|
+
get_workos_user_id: { Args: never; Returns: string }
|
|
6625
|
+
is_org_admin: { Args: { org_id: string }; Returns: boolean }
|
|
6626
|
+
is_org_member: { Args: { org_id: string }; Returns: boolean }
|
|
6627
|
+
link_workos_membership_on_accept: {
|
|
6628
|
+
Args: {
|
|
6629
|
+
p_email: string
|
|
6630
|
+
p_organization_id: string
|
|
6631
|
+
p_workos_membership_id: string
|
|
6632
|
+
}
|
|
6633
|
+
Returns: boolean
|
|
6634
|
+
}
|
|
6635
|
+
pre_provision_invited_user: {
|
|
6636
|
+
Args: {
|
|
6637
|
+
p_email: string
|
|
6638
|
+
p_organization_id: string
|
|
6639
|
+
p_role_slug?: string
|
|
6640
|
+
}
|
|
6641
|
+
Returns: Json
|
|
6642
|
+
}
|
|
6643
|
+
process_due_schedules: { Args: never; Returns: Json }
|
|
6644
|
+
upsert_user_profile: {
|
|
6645
|
+
Args: never
|
|
6646
|
+
Returns: {
|
|
6647
|
+
profile_display_name: string
|
|
6648
|
+
profile_email: string
|
|
6649
|
+
profile_id: string
|
|
6650
|
+
profile_workos_user_id: string
|
|
6651
|
+
}[]
|
|
6652
|
+
}
|
|
6653
|
+
}
|
|
6654
|
+
Enums: {
|
|
6655
|
+
[_ in never]: never
|
|
6656
|
+
}
|
|
6657
|
+
CompositeTypes: {
|
|
6658
|
+
[_ in never]: never
|
|
6659
|
+
}
|
|
6660
|
+
}
|
|
6661
|
+
}
|
|
6662
|
+
|
|
4072
6663
|
type SortDirection = 'asc' | 'desc';
|
|
4073
6664
|
interface SortState {
|
|
4074
6665
|
column: string;
|
|
@@ -4259,6 +6850,10 @@ interface CommandViewGraph$1 {
|
|
|
4259
6850
|
edges: CommandViewEdge$1[];
|
|
4260
6851
|
}
|
|
4261
6852
|
|
|
6853
|
+
type MilestoneRow = Database['public']['Tables']['prj_milestones']['Row']
|
|
6854
|
+
|
|
6855
|
+
type TaskRow = Database['public']['Tables']['prj_tasks']['Row']
|
|
6856
|
+
|
|
4262
6857
|
interface SortableHeaderProps {
|
|
4263
6858
|
column: string;
|
|
4264
6859
|
children: React.ReactNode;
|
|
@@ -4973,21 +7568,6 @@ interface BaseEdgeProps {
|
|
|
4973
7568
|
}
|
|
4974
7569
|
declare const BaseEdge: react.NamedExoticComponent<BaseEdgeProps>;
|
|
4975
7570
|
|
|
4976
|
-
interface TaskCardProps {
|
|
4977
|
-
task: Task;
|
|
4978
|
-
onViewExecution?: (params: {
|
|
4979
|
-
resourceType: string;
|
|
4980
|
-
resourceId: string;
|
|
4981
|
-
executionId: string;
|
|
4982
|
-
}) => void;
|
|
4983
|
-
richTextRenderer?: (props: {
|
|
4984
|
-
content: string;
|
|
4985
|
-
onChange: (content: string) => void;
|
|
4986
|
-
placeholder?: string;
|
|
4987
|
-
}) => ReactNode;
|
|
4988
|
-
}
|
|
4989
|
-
declare function TaskCard({ task, onViewExecution, richTextRenderer }: TaskCardProps): react_jsx_runtime.JSX.Element;
|
|
4990
|
-
|
|
4991
7571
|
interface ActionModalProps {
|
|
4992
7572
|
action: ActionConfig;
|
|
4993
7573
|
task: Task;
|
|
@@ -5704,5 +8284,238 @@ interface UseBreadcrumbsOptions {
|
|
|
5704
8284
|
type BreadcrumbsProps = UseBreadcrumbsOptions;
|
|
5705
8285
|
declare const Breadcrumbs: ({ navItems }: BreadcrumbsProps) => react_jsx_runtime.JSX.Element;
|
|
5706
8286
|
|
|
5707
|
-
|
|
5708
|
-
|
|
8287
|
+
interface KanbanBoardProps {
|
|
8288
|
+
/** Stage color and label overrides. Falls back to DEFAULT_KANBAN_CONFIG. */
|
|
8289
|
+
config?: KanbanBoardConfig;
|
|
8290
|
+
/**
|
|
8291
|
+
* Optional render-prop forwarded to the DealDrawer action slot.
|
|
8292
|
+
* Use this to inject consumer-specific actions (e.g. a revision trigger button).
|
|
8293
|
+
*/
|
|
8294
|
+
renderDrawerActions?: () => ReactNode;
|
|
8295
|
+
}
|
|
8296
|
+
declare function KanbanBoard({ config, renderDrawerActions }: KanbanBoardProps): react_jsx_runtime.JSX.Element;
|
|
8297
|
+
|
|
8298
|
+
interface DealKanbanCardProps {
|
|
8299
|
+
deal: DealListItem;
|
|
8300
|
+
/** Stage color config. Falls back to no color badge if stage is not in config. */
|
|
8301
|
+
config: KanbanBoardConfig;
|
|
8302
|
+
/** Called when user clicks the card to open the detail drawer. */
|
|
8303
|
+
onClick: (deal: DealListItem) => void;
|
|
8304
|
+
/** HTML5 drag handlers. */
|
|
8305
|
+
onDragStart: (e: React.DragEvent, deal: DealListItem) => void;
|
|
8306
|
+
onDragEnd: () => void;
|
|
8307
|
+
}
|
|
8308
|
+
declare function DealKanbanCard({ deal, config: _config, onClick, onDragStart, onDragEnd }: DealKanbanCardProps): react_jsx_runtime.JSX.Element;
|
|
8309
|
+
|
|
8310
|
+
/** All 14 DealStage values in canonical enum order. */
|
|
8311
|
+
declare const DEAL_STAGES: DealStage[];
|
|
8312
|
+
/** Default Mantine color mapping for each deal stage. */
|
|
8313
|
+
declare const DEFAULT_KANBAN_CONFIG: KanbanBoardConfig;
|
|
8314
|
+
|
|
8315
|
+
interface DealDrawerProps {
|
|
8316
|
+
deal: DealListItem | null;
|
|
8317
|
+
opened: boolean;
|
|
8318
|
+
onClose: () => void;
|
|
8319
|
+
/**
|
|
8320
|
+
* Optional render-prop slot for consumer-specific actions (e.g. a revision
|
|
8321
|
+
* trigger button). Rendered below the summary section.
|
|
8322
|
+
*/
|
|
8323
|
+
renderActions?: () => ReactNode;
|
|
8324
|
+
}
|
|
8325
|
+
declare function DealDrawer({ deal, opened, onClose, renderActions }: DealDrawerProps): react_jsx_runtime.JSX.Element | null;
|
|
8326
|
+
|
|
8327
|
+
interface PipelineStageSummary {
|
|
8328
|
+
stage: DealStage;
|
|
8329
|
+
count: number;
|
|
8330
|
+
totalValue: number;
|
|
8331
|
+
}
|
|
8332
|
+
/**
|
|
8333
|
+
* Ordered stages for the pipeline funnel display.
|
|
8334
|
+
* Primary funnel stages first, misc stages at the end.
|
|
8335
|
+
*/
|
|
8336
|
+
declare const PIPELINE_FUNNEL_ORDER: DealStage[];
|
|
8337
|
+
/**
|
|
8338
|
+
* Pure selector over useDeals() that groups deals by stage and computes
|
|
8339
|
+
* count + total value per stage. Always returns an entry for every stage
|
|
8340
|
+
* in PIPELINE_FUNNEL_ORDER so the funnel renders all bars even if empty.
|
|
8341
|
+
*/
|
|
8342
|
+
declare function useCrmPipelineSummary(opts?: {
|
|
8343
|
+
getDealValue?: (deal: DealListItem) => number;
|
|
8344
|
+
}): {
|
|
8345
|
+
data: PipelineStageSummary[];
|
|
8346
|
+
isLoading: boolean;
|
|
8347
|
+
error: unknown;
|
|
8348
|
+
};
|
|
8349
|
+
|
|
8350
|
+
interface CrmQuickMetrics {
|
|
8351
|
+
totalDeals: number;
|
|
8352
|
+
openDeals: number;
|
|
8353
|
+
wonDeals: number;
|
|
8354
|
+
winRate: number;
|
|
8355
|
+
avgDealSize: number;
|
|
8356
|
+
totalPipelineValue: number;
|
|
8357
|
+
}
|
|
8358
|
+
/**
|
|
8359
|
+
* Pure selector over useDeals() that computes 6 high-level CRM metrics.
|
|
8360
|
+
* Returns zero values for all metrics when loading or no data is available.
|
|
8361
|
+
*/
|
|
8362
|
+
declare function useCrmQuickMetrics(): {
|
|
8363
|
+
data: CrmQuickMetrics;
|
|
8364
|
+
isLoading: boolean;
|
|
8365
|
+
error: unknown;
|
|
8366
|
+
};
|
|
8367
|
+
|
|
8368
|
+
type CrmActivityKind = 'note' | 'stage_change' | 'deal_created';
|
|
8369
|
+
interface CrmActivityEntry {
|
|
8370
|
+
id: string;
|
|
8371
|
+
kind: CrmActivityKind;
|
|
8372
|
+
dealId: string;
|
|
8373
|
+
occurredAt: string;
|
|
8374
|
+
description: string;
|
|
8375
|
+
contactName?: string | null;
|
|
8376
|
+
companyName?: string | null;
|
|
8377
|
+
stage?: DealStage | null;
|
|
8378
|
+
}
|
|
8379
|
+
/**
|
|
8380
|
+
* Composite hook that surfaces the most recent activity across all deals.
|
|
8381
|
+
* Merges acq_deal_notes + activity_log entries from acq_deals, sorted newest-first.
|
|
8382
|
+
* Org-scoped: all queries include organization_id filter.
|
|
8383
|
+
*/
|
|
8384
|
+
declare function useRecentCrmActivity(opts?: {
|
|
8385
|
+
limit?: number;
|
|
8386
|
+
}): {
|
|
8387
|
+
data: CrmActivityEntry[];
|
|
8388
|
+
isLoading: boolean;
|
|
8389
|
+
error: unknown;
|
|
8390
|
+
};
|
|
8391
|
+
|
|
8392
|
+
interface PipelineFunnelWidgetProps {
|
|
8393
|
+
onStageClick: (stage: DealStage) => void;
|
|
8394
|
+
getDealValue?: (deal: DealListItem) => number;
|
|
8395
|
+
}
|
|
8396
|
+
declare function PipelineFunnelWidget({ onStageClick, getDealValue }: PipelineFunnelWidgetProps): react_jsx_runtime.JSX.Element;
|
|
8397
|
+
|
|
8398
|
+
interface TasksDueWidgetProps {
|
|
8399
|
+
onTaskClick: (dealId: string) => void;
|
|
8400
|
+
onSeeAll?: () => void;
|
|
8401
|
+
}
|
|
8402
|
+
declare function TasksDueWidget({ onTaskClick, onSeeAll }: TasksDueWidgetProps): react_jsx_runtime.JSX.Element;
|
|
8403
|
+
|
|
8404
|
+
interface ActivityFeedWidgetProps {
|
|
8405
|
+
onDealClick: (dealId: string) => void;
|
|
8406
|
+
limit?: number;
|
|
8407
|
+
}
|
|
8408
|
+
declare function ActivityFeedWidget({ onDealClick, limit }: ActivityFeedWidgetProps): react_jsx_runtime.JSX.Element;
|
|
8409
|
+
|
|
8410
|
+
declare function MetricsStrip(): react_jsx_runtime.JSX.Element;
|
|
8411
|
+
|
|
8412
|
+
interface CrmOverviewProps {
|
|
8413
|
+
onStageClick: (stage: DealStage) => void;
|
|
8414
|
+
onDealClick: (dealId: string) => void;
|
|
8415
|
+
onGoToPipeline: () => void;
|
|
8416
|
+
getDealValue?: (deal: DealListItem) => number;
|
|
8417
|
+
renderActions?: () => ReactNode;
|
|
8418
|
+
}
|
|
8419
|
+
declare function CrmOverview({ onStageClick, onDealClick, onGoToPipeline, getDealValue, renderActions }: CrmOverviewProps): react_jsx_runtime.JSX.Element;
|
|
8420
|
+
|
|
8421
|
+
/**
|
|
8422
|
+
* A hardcoded filter preset that maps to a click-through action.
|
|
8423
|
+
*
|
|
8424
|
+
* - `urlFilters` — DealFilters that get applied to the deals list URL.
|
|
8425
|
+
* The Pipeline / Deals routes will read these from search params.
|
|
8426
|
+
* - `predicate` — Optional client-side filter applied AFTER the URL filter,
|
|
8427
|
+
* for presets that can't be expressed as URL search params alone
|
|
8428
|
+
* (e.g., "Won this month" needs a date check on `closed_won_at` /
|
|
8429
|
+
* `payment_received_at` which we currently can't filter via URL).
|
|
8430
|
+
*/
|
|
8431
|
+
interface SavedViewPreset {
|
|
8432
|
+
id: string;
|
|
8433
|
+
label: string;
|
|
8434
|
+
/** Tabler icon name (consumer imports from @tabler/icons-react and renders) */
|
|
8435
|
+
iconName: 'IconUser' | 'IconClockExclamation' | 'IconTrophy';
|
|
8436
|
+
/** Where the preset takes the user when clicked */
|
|
8437
|
+
target: '/crm/pipeline' | '/crm/deals';
|
|
8438
|
+
/** Filter args that get serialized to URL search params */
|
|
8439
|
+
urlFilters?: DealFilters;
|
|
8440
|
+
/** Optional client-side filter for presets that need date math, etc. */
|
|
8441
|
+
predicate?: (deal: DealListItem) => boolean;
|
|
8442
|
+
}
|
|
8443
|
+
/**
|
|
8444
|
+
* MVP saved-view presets. User-saved views are deferred to a later phase.
|
|
8445
|
+
*
|
|
8446
|
+
* - "My Deals" — deals where the current user is the assigned owner. For MVP
|
|
8447
|
+
* this is a no-op filter (owner field doesn't exist yet); navigates to
|
|
8448
|
+
* /crm/deals and the consumer's UI labels the view appropriately.
|
|
8449
|
+
* - "Overdue" — navigates to /crm/deals; consumer uses the predicate to
|
|
8450
|
+
* highlight stale deals (no activity in 14d). Currently a no-op predicate
|
|
8451
|
+
* placeholder until staleness selectors land.
|
|
8452
|
+
* - "Won this month" — navigates to /crm/deals filtered by stage=closed_won;
|
|
8453
|
+
* consumer applies the predicate to constrain to current calendar month
|
|
8454
|
+
* based on `acq_deals.updated_at` (closest proxy until `closed_won_at`
|
|
8455
|
+
* column lands per Open Question #2 in the plan doc).
|
|
8456
|
+
*/
|
|
8457
|
+
declare const SAVED_VIEW_PRESETS: SavedViewPreset[];
|
|
8458
|
+
|
|
8459
|
+
interface MyTasksPanelProps {
|
|
8460
|
+
onTaskClick: (dealId: string) => void;
|
|
8461
|
+
onSeeAll?: () => void;
|
|
8462
|
+
}
|
|
8463
|
+
declare function MyTasksPanel({ onTaskClick, onSeeAll }: MyTasksPanelProps): react_jsx_runtime.JSX.Element;
|
|
8464
|
+
|
|
8465
|
+
interface SavedViewsPanelProps {
|
|
8466
|
+
onViewClick: (preset: SavedViewPreset) => void;
|
|
8467
|
+
}
|
|
8468
|
+
declare function SavedViewsPanel({ onViewClick }: SavedViewsPanelProps): react_jsx_runtime.JSX.Element;
|
|
8469
|
+
|
|
8470
|
+
interface QuickCreateActionsProps {
|
|
8471
|
+
onNewDeal: () => void;
|
|
8472
|
+
}
|
|
8473
|
+
declare function QuickCreateActions({ onNewDeal }: QuickCreateActionsProps): react_jsx_runtime.JSX.Element;
|
|
8474
|
+
|
|
8475
|
+
interface HealthStatusCardProps {
|
|
8476
|
+
status: string;
|
|
8477
|
+
milestoneCount: number;
|
|
8478
|
+
completedMilestones: number;
|
|
8479
|
+
taskCount: number;
|
|
8480
|
+
completedTasks: number;
|
|
8481
|
+
startDate: string | null;
|
|
8482
|
+
targetEndDate: string | null;
|
|
8483
|
+
}
|
|
8484
|
+
declare function HealthStatusCard({ status, milestoneCount, completedMilestones, taskCount, completedTasks, startDate, targetEndDate }: HealthStatusCardProps): react_jsx_runtime.JSX.Element;
|
|
8485
|
+
|
|
8486
|
+
interface MilestoneTimelineProps {
|
|
8487
|
+
milestones: MilestoneRow[];
|
|
8488
|
+
tasks: TaskRow[];
|
|
8489
|
+
}
|
|
8490
|
+
declare function MilestoneTimeline({ milestones, tasks }: MilestoneTimelineProps): react_jsx_runtime.JSX.Element;
|
|
8491
|
+
|
|
8492
|
+
interface TaskCardProps {
|
|
8493
|
+
task: TaskRow;
|
|
8494
|
+
}
|
|
8495
|
+
declare function TaskCard({ task }: TaskCardProps): react_jsx_runtime.JSX.Element;
|
|
8496
|
+
|
|
8497
|
+
interface ProjectsSidebarMiddleProps {
|
|
8498
|
+
currentPath: string;
|
|
8499
|
+
onNavigate: (to: string) => void;
|
|
8500
|
+
}
|
|
8501
|
+
declare const ProjectsSidebarMiddle: ({ currentPath, onNavigate }: ProjectsSidebarMiddleProps) => react_jsx_runtime.JSX.Element;
|
|
8502
|
+
|
|
8503
|
+
type ProjectsSidebarProps = ProjectsSidebarMiddleProps;
|
|
8504
|
+
declare const ProjectsSidebar: ({ currentPath, onNavigate }: ProjectsSidebarProps) => react_jsx_runtime.JSX.Element;
|
|
8505
|
+
|
|
8506
|
+
declare const ProjectsSidebarTop: () => react_jsx_runtime.JSX.Element;
|
|
8507
|
+
|
|
8508
|
+
declare function AllTasksPage(): react_jsx_runtime.JSX.Element;
|
|
8509
|
+
|
|
8510
|
+
declare function UpcomingMilestonesPage(): react_jsx_runtime.JSX.Element;
|
|
8511
|
+
|
|
8512
|
+
declare const projectStatusColors: Record<string, string>;
|
|
8513
|
+
declare const milestoneStatusColors: Record<string, string>;
|
|
8514
|
+
declare const taskStatusColors: Record<string, string>;
|
|
8515
|
+
declare const taskTypeColors: Record<string, string>;
|
|
8516
|
+
declare const noteTypeColors: Record<string, string>;
|
|
8517
|
+
declare function formatStatusLabel(status: string): string;
|
|
8518
|
+
declare function calculateProgress(completed: number, total: number): number;
|
|
8519
|
+
|
|
8520
|
+
export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CONTAINER_CONSTANTS, CardHeader, CenteredErrorState, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CommandViewEdge, CommandViewGraph, CommandViewNode, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateScheduleModal, CredentialList, CredentialSettings, CrmOverview, CustomModal, CustomSelector, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DealDrawer, DealKanbanCard, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, DocTreeNav, EditApiKeyModal, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FilterBar, FormFieldRenderer, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, JsonViewer, KanbanBoard, KnowledgeBasePage, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipFeaturePanel, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OrganizationMembershipsList, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PipelineFunnelWidget, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, SAVED_VIEW_PRESETS, SHARED_VIZ_CONSTANTS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StyledMarkdown, TabCountBadge, TableSelectionToolbar, TaskCard, TaskScheduler, TasksDueWidget, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, buildErrorReport, calculateProgress, catalogItemToResourceDefinition, formatStatusLabel, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, iconMap, mdxComponents, milestoneStatusColors, noteTypeColors, projectStatusColors, showApiErrorNotification, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useGraphBackgroundStyles, useGraphTheme, useNewKnowledgeMapLayout, useRecentCrmActivity };
|
|
8521
|
+
export type { ActivityEntry, ActivityFiltersProps, ActivityTableProps, BaseEdgeProps, BaseExecutionLogsProps, BreadcrumbsProps, CommandViewGraphRef, ContextViewerProps, CostByModelTableProps, CrashErrorFallbackProps, CrmOverviewProps, DealDrawerProps, DealKanbanCardProps, ErrorAnalysisCardProps, ErrorReportCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FitViewButtonVariant, FormFieldRendererProps, GraphFitViewHandlerProps, JsonViewerProps, KanbanBoardProps, KnowledgeMapEdgeData, KnowledgeMapNodeData, LogLevel, MdxRendererProps, NavigationButtonProps, ProjectsSidebarMiddleProps, ProjectsSidebarProps, ResourceHealthPanelProps, RichTextEditorProps, SavedViewPreset, ScheduleType, SerializedKnowledgeMap, SerializedKnowledgeNode, StatCardProps, StyledMarkdownProps, TaskFilterStatus, TrendIndicatorProps };
|