@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
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1132,10 +1132,10 @@ interface IterationContext {
|
|
|
1132
1132
|
knowledgeMap?: KnowledgeMap;
|
|
1133
1133
|
}
|
|
1134
1134
|
|
|
1135
|
-
type Json = string | number | boolean | null | {
|
|
1136
|
-
[key: string]: Json | undefined;
|
|
1137
|
-
} | Json[];
|
|
1138
|
-
type Database = {
|
|
1135
|
+
type Json$1 = string | number | boolean | null | {
|
|
1136
|
+
[key: string]: Json$1 | undefined;
|
|
1137
|
+
} | Json$1[];
|
|
1138
|
+
type Database$1 = {
|
|
1139
1139
|
__InternalSupabase: {
|
|
1140
1140
|
PostgrestVersion: "12.2.3 (519615d)";
|
|
1141
1141
|
};
|
|
@@ -1143,13 +1143,12 @@ type Database = {
|
|
|
1143
1143
|
Tables: {
|
|
1144
1144
|
acq_companies: {
|
|
1145
1145
|
Row: {
|
|
1146
|
-
attio_company_id: string | null;
|
|
1147
1146
|
batch_id: string | null;
|
|
1148
1147
|
category: string | null;
|
|
1149
1148
|
category_pain: string | null;
|
|
1150
1149
|
created_at: string;
|
|
1151
1150
|
domain: string | null;
|
|
1152
|
-
enrichment_data: Json | null;
|
|
1151
|
+
enrichment_data: Json$1 | null;
|
|
1153
1152
|
filter_reason: string | null;
|
|
1154
1153
|
founded_year: number | null;
|
|
1155
1154
|
id: string;
|
|
@@ -1159,7 +1158,7 @@ type Database = {
|
|
|
1159
1158
|
name: string;
|
|
1160
1159
|
num_employees: number | null;
|
|
1161
1160
|
organization_id: string;
|
|
1162
|
-
pipeline_status: Json;
|
|
1161
|
+
pipeline_status: Json$1;
|
|
1163
1162
|
segment: string | null;
|
|
1164
1163
|
source: string | null;
|
|
1165
1164
|
status: string;
|
|
@@ -1167,13 +1166,12 @@ type Database = {
|
|
|
1167
1166
|
website: string | null;
|
|
1168
1167
|
};
|
|
1169
1168
|
Insert: {
|
|
1170
|
-
attio_company_id?: string | null;
|
|
1171
1169
|
batch_id?: string | null;
|
|
1172
1170
|
category?: string | null;
|
|
1173
1171
|
category_pain?: string | null;
|
|
1174
1172
|
created_at?: string;
|
|
1175
1173
|
domain?: string | null;
|
|
1176
|
-
enrichment_data?: Json | null;
|
|
1174
|
+
enrichment_data?: Json$1 | null;
|
|
1177
1175
|
filter_reason?: string | null;
|
|
1178
1176
|
founded_year?: number | null;
|
|
1179
1177
|
id?: string;
|
|
@@ -1183,7 +1181,7 @@ type Database = {
|
|
|
1183
1181
|
name: string;
|
|
1184
1182
|
num_employees?: number | null;
|
|
1185
1183
|
organization_id: string;
|
|
1186
|
-
pipeline_status?: Json;
|
|
1184
|
+
pipeline_status?: Json$1;
|
|
1187
1185
|
segment?: string | null;
|
|
1188
1186
|
source?: string | null;
|
|
1189
1187
|
status?: string;
|
|
@@ -1191,13 +1189,12 @@ type Database = {
|
|
|
1191
1189
|
website?: string | null;
|
|
1192
1190
|
};
|
|
1193
1191
|
Update: {
|
|
1194
|
-
attio_company_id?: string | null;
|
|
1195
1192
|
batch_id?: string | null;
|
|
1196
1193
|
category?: string | null;
|
|
1197
1194
|
category_pain?: string | null;
|
|
1198
1195
|
created_at?: string;
|
|
1199
1196
|
domain?: string | null;
|
|
1200
|
-
enrichment_data?: Json | null;
|
|
1197
|
+
enrichment_data?: Json$1 | null;
|
|
1201
1198
|
filter_reason?: string | null;
|
|
1202
1199
|
founded_year?: number | null;
|
|
1203
1200
|
id?: string;
|
|
@@ -1207,7 +1204,7 @@ type Database = {
|
|
|
1207
1204
|
name?: string;
|
|
1208
1205
|
num_employees?: number | null;
|
|
1209
1206
|
organization_id?: string;
|
|
1210
|
-
pipeline_status?: Json;
|
|
1207
|
+
pipeline_status?: Json$1;
|
|
1211
1208
|
segment?: string | null;
|
|
1212
1209
|
source?: string | null;
|
|
1213
1210
|
status?: string;
|
|
@@ -1226,7 +1223,6 @@ type Database = {
|
|
|
1226
1223
|
};
|
|
1227
1224
|
acq_contacts: {
|
|
1228
1225
|
Row: {
|
|
1229
|
-
attio_person_id: string | null;
|
|
1230
1226
|
batch_id: string | null;
|
|
1231
1227
|
brochure_first_viewed_at: string | null;
|
|
1232
1228
|
brochure_view_count: number;
|
|
@@ -1234,7 +1230,7 @@ type Database = {
|
|
|
1234
1230
|
created_at: string;
|
|
1235
1231
|
email: string;
|
|
1236
1232
|
email_valid: string | null;
|
|
1237
|
-
enrichment_data: Json;
|
|
1233
|
+
enrichment_data: Json$1;
|
|
1238
1234
|
filter_reason: string | null;
|
|
1239
1235
|
first_name: string | null;
|
|
1240
1236
|
headline: string | null;
|
|
@@ -1244,7 +1240,7 @@ type Database = {
|
|
|
1244
1240
|
nurture: boolean;
|
|
1245
1241
|
opening_line: string | null;
|
|
1246
1242
|
organization_id: string;
|
|
1247
|
-
pipeline_status: Json;
|
|
1243
|
+
pipeline_status: Json$1;
|
|
1248
1244
|
source: string | null;
|
|
1249
1245
|
source_id: string | null;
|
|
1250
1246
|
status: string;
|
|
@@ -1252,7 +1248,6 @@ type Database = {
|
|
|
1252
1248
|
updated_at: string;
|
|
1253
1249
|
};
|
|
1254
1250
|
Insert: {
|
|
1255
|
-
attio_person_id?: string | null;
|
|
1256
1251
|
batch_id?: string | null;
|
|
1257
1252
|
brochure_first_viewed_at?: string | null;
|
|
1258
1253
|
brochure_view_count?: number;
|
|
@@ -1260,7 +1255,7 @@ type Database = {
|
|
|
1260
1255
|
created_at?: string;
|
|
1261
1256
|
email: string;
|
|
1262
1257
|
email_valid?: string | null;
|
|
1263
|
-
enrichment_data?: Json;
|
|
1258
|
+
enrichment_data?: Json$1;
|
|
1264
1259
|
filter_reason?: string | null;
|
|
1265
1260
|
first_name?: string | null;
|
|
1266
1261
|
headline?: string | null;
|
|
@@ -1270,7 +1265,7 @@ type Database = {
|
|
|
1270
1265
|
nurture?: boolean;
|
|
1271
1266
|
opening_line?: string | null;
|
|
1272
1267
|
organization_id: string;
|
|
1273
|
-
pipeline_status?: Json;
|
|
1268
|
+
pipeline_status?: Json$1;
|
|
1274
1269
|
source?: string | null;
|
|
1275
1270
|
source_id?: string | null;
|
|
1276
1271
|
status?: string;
|
|
@@ -1278,7 +1273,6 @@ type Database = {
|
|
|
1278
1273
|
updated_at?: string;
|
|
1279
1274
|
};
|
|
1280
1275
|
Update: {
|
|
1281
|
-
attio_person_id?: string | null;
|
|
1282
1276
|
batch_id?: string | null;
|
|
1283
1277
|
brochure_first_viewed_at?: string | null;
|
|
1284
1278
|
brochure_view_count?: number;
|
|
@@ -1286,7 +1280,7 @@ type Database = {
|
|
|
1286
1280
|
created_at?: string;
|
|
1287
1281
|
email?: string;
|
|
1288
1282
|
email_valid?: string | null;
|
|
1289
|
-
enrichment_data?: Json;
|
|
1283
|
+
enrichment_data?: Json$1;
|
|
1290
1284
|
filter_reason?: string | null;
|
|
1291
1285
|
first_name?: string | null;
|
|
1292
1286
|
headline?: string | null;
|
|
@@ -1296,7 +1290,7 @@ type Database = {
|
|
|
1296
1290
|
nurture?: boolean;
|
|
1297
1291
|
opening_line?: string | null;
|
|
1298
1292
|
organization_id?: string;
|
|
1299
|
-
pipeline_status?: Json;
|
|
1293
|
+
pipeline_status?: Json$1;
|
|
1300
1294
|
source?: string | null;
|
|
1301
1295
|
source_id?: string | null;
|
|
1302
1296
|
status?: string;
|
|
@@ -1364,17 +1358,17 @@ type Database = {
|
|
|
1364
1358
|
acq_content_distributions: {
|
|
1365
1359
|
Row: {
|
|
1366
1360
|
adapted_body: string | null;
|
|
1367
|
-
checklist: Json | null;
|
|
1361
|
+
checklist: Json$1 | null;
|
|
1368
1362
|
content_id: string;
|
|
1369
1363
|
created_at: string;
|
|
1370
1364
|
format: string;
|
|
1371
1365
|
id: string;
|
|
1372
|
-
media_urls: Json;
|
|
1373
|
-
metrics: Json;
|
|
1366
|
+
media_urls: Json$1;
|
|
1367
|
+
metrics: Json$1;
|
|
1374
1368
|
metrics_updated_at: string | null;
|
|
1375
1369
|
organization_id: string;
|
|
1376
1370
|
platform: string;
|
|
1377
|
-
platform_content: Json | null;
|
|
1371
|
+
platform_content: Json$1 | null;
|
|
1378
1372
|
platform_post_id: string | null;
|
|
1379
1373
|
platform_url: string | null;
|
|
1380
1374
|
published_at: string | null;
|
|
@@ -1383,17 +1377,17 @@ type Database = {
|
|
|
1383
1377
|
};
|
|
1384
1378
|
Insert: {
|
|
1385
1379
|
adapted_body?: string | null;
|
|
1386
|
-
checklist?: Json | null;
|
|
1380
|
+
checklist?: Json$1 | null;
|
|
1387
1381
|
content_id: string;
|
|
1388
1382
|
created_at?: string;
|
|
1389
1383
|
format: string;
|
|
1390
1384
|
id?: string;
|
|
1391
|
-
media_urls?: Json;
|
|
1392
|
-
metrics?: Json;
|
|
1385
|
+
media_urls?: Json$1;
|
|
1386
|
+
metrics?: Json$1;
|
|
1393
1387
|
metrics_updated_at?: string | null;
|
|
1394
1388
|
organization_id: string;
|
|
1395
1389
|
platform: string;
|
|
1396
|
-
platform_content?: Json | null;
|
|
1390
|
+
platform_content?: Json$1 | null;
|
|
1397
1391
|
platform_post_id?: string | null;
|
|
1398
1392
|
platform_url?: string | null;
|
|
1399
1393
|
published_at?: string | null;
|
|
@@ -1402,17 +1396,17 @@ type Database = {
|
|
|
1402
1396
|
};
|
|
1403
1397
|
Update: {
|
|
1404
1398
|
adapted_body?: string | null;
|
|
1405
|
-
checklist?: Json | null;
|
|
1399
|
+
checklist?: Json$1 | null;
|
|
1406
1400
|
content_id?: string;
|
|
1407
1401
|
created_at?: string;
|
|
1408
1402
|
format?: string;
|
|
1409
1403
|
id?: string;
|
|
1410
|
-
media_urls?: Json;
|
|
1411
|
-
metrics?: Json;
|
|
1404
|
+
media_urls?: Json$1;
|
|
1405
|
+
metrics?: Json$1;
|
|
1412
1406
|
metrics_updated_at?: string | null;
|
|
1413
1407
|
organization_id?: string;
|
|
1414
1408
|
platform?: string;
|
|
1415
|
-
platform_content?: Json | null;
|
|
1409
|
+
platform_content?: Json$1 | null;
|
|
1416
1410
|
platform_post_id?: string | null;
|
|
1417
1411
|
platform_url?: string | null;
|
|
1418
1412
|
published_at?: string | null;
|
|
@@ -1436,17 +1430,124 @@ type Database = {
|
|
|
1436
1430
|
}
|
|
1437
1431
|
];
|
|
1438
1432
|
};
|
|
1433
|
+
acq_deal_notes: {
|
|
1434
|
+
Row: {
|
|
1435
|
+
author_user_id: string | null;
|
|
1436
|
+
body: string;
|
|
1437
|
+
created_at: string;
|
|
1438
|
+
deal_id: string;
|
|
1439
|
+
id: string;
|
|
1440
|
+
organization_id: string;
|
|
1441
|
+
updated_at: string;
|
|
1442
|
+
};
|
|
1443
|
+
Insert: {
|
|
1444
|
+
author_user_id?: string | null;
|
|
1445
|
+
body: string;
|
|
1446
|
+
created_at?: string;
|
|
1447
|
+
deal_id: string;
|
|
1448
|
+
id?: string;
|
|
1449
|
+
organization_id: string;
|
|
1450
|
+
updated_at?: string;
|
|
1451
|
+
};
|
|
1452
|
+
Update: {
|
|
1453
|
+
author_user_id?: string | null;
|
|
1454
|
+
body?: string;
|
|
1455
|
+
created_at?: string;
|
|
1456
|
+
deal_id?: string;
|
|
1457
|
+
id?: string;
|
|
1458
|
+
organization_id?: string;
|
|
1459
|
+
updated_at?: string;
|
|
1460
|
+
};
|
|
1461
|
+
Relationships: [
|
|
1462
|
+
{
|
|
1463
|
+
foreignKeyName: "acq_deal_notes_deal_id_fkey";
|
|
1464
|
+
columns: ["deal_id"];
|
|
1465
|
+
isOneToOne: false;
|
|
1466
|
+
referencedRelation: "acq_deals";
|
|
1467
|
+
referencedColumns: ["id"];
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
foreignKeyName: "acq_deal_notes_organization_id_fkey";
|
|
1471
|
+
columns: ["organization_id"];
|
|
1472
|
+
isOneToOne: false;
|
|
1473
|
+
referencedRelation: "organizations";
|
|
1474
|
+
referencedColumns: ["id"];
|
|
1475
|
+
}
|
|
1476
|
+
];
|
|
1477
|
+
};
|
|
1478
|
+
acq_deal_tasks: {
|
|
1479
|
+
Row: {
|
|
1480
|
+
assignee_user_id: string | null;
|
|
1481
|
+
completed_at: string | null;
|
|
1482
|
+
completed_by_user_id: string | null;
|
|
1483
|
+
created_at: string;
|
|
1484
|
+
created_by_user_id: string | null;
|
|
1485
|
+
deal_id: string;
|
|
1486
|
+
description: string | null;
|
|
1487
|
+
due_at: string | null;
|
|
1488
|
+
id: string;
|
|
1489
|
+
kind: string;
|
|
1490
|
+
organization_id: string;
|
|
1491
|
+
title: string;
|
|
1492
|
+
updated_at: string;
|
|
1493
|
+
};
|
|
1494
|
+
Insert: {
|
|
1495
|
+
assignee_user_id?: string | null;
|
|
1496
|
+
completed_at?: string | null;
|
|
1497
|
+
completed_by_user_id?: string | null;
|
|
1498
|
+
created_at?: string;
|
|
1499
|
+
created_by_user_id?: string | null;
|
|
1500
|
+
deal_id: string;
|
|
1501
|
+
description?: string | null;
|
|
1502
|
+
due_at?: string | null;
|
|
1503
|
+
id?: string;
|
|
1504
|
+
kind?: string;
|
|
1505
|
+
organization_id: string;
|
|
1506
|
+
title: string;
|
|
1507
|
+
updated_at?: string;
|
|
1508
|
+
};
|
|
1509
|
+
Update: {
|
|
1510
|
+
assignee_user_id?: string | null;
|
|
1511
|
+
completed_at?: string | null;
|
|
1512
|
+
completed_by_user_id?: string | null;
|
|
1513
|
+
created_at?: string;
|
|
1514
|
+
created_by_user_id?: string | null;
|
|
1515
|
+
deal_id?: string;
|
|
1516
|
+
description?: string | null;
|
|
1517
|
+
due_at?: string | null;
|
|
1518
|
+
id?: string;
|
|
1519
|
+
kind?: string;
|
|
1520
|
+
organization_id?: string;
|
|
1521
|
+
title?: string;
|
|
1522
|
+
updated_at?: string;
|
|
1523
|
+
};
|
|
1524
|
+
Relationships: [
|
|
1525
|
+
{
|
|
1526
|
+
foreignKeyName: "acq_deal_tasks_deal_id_fkey";
|
|
1527
|
+
columns: ["deal_id"];
|
|
1528
|
+
isOneToOne: false;
|
|
1529
|
+
referencedRelation: "acq_deals";
|
|
1530
|
+
referencedColumns: ["id"];
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
foreignKeyName: "acq_deal_tasks_organization_id_fkey";
|
|
1534
|
+
columns: ["organization_id"];
|
|
1535
|
+
isOneToOne: false;
|
|
1536
|
+
referencedRelation: "organizations";
|
|
1537
|
+
referencedColumns: ["id"];
|
|
1538
|
+
}
|
|
1539
|
+
];
|
|
1540
|
+
};
|
|
1439
1541
|
acq_deals: {
|
|
1440
1542
|
Row: {
|
|
1441
|
-
activity_log: Json;
|
|
1442
|
-
attio_deal_id: string;
|
|
1543
|
+
activity_log: Json$1;
|
|
1443
1544
|
cached_stage: string | null;
|
|
1444
1545
|
closed_lost_at: string | null;
|
|
1445
1546
|
closed_lost_reason: string | null;
|
|
1446
1547
|
contact_email: string;
|
|
1447
1548
|
contact_id: string | null;
|
|
1448
1549
|
created_at: string;
|
|
1449
|
-
discovery_data: Json | null;
|
|
1550
|
+
discovery_data: Json$1 | null;
|
|
1450
1551
|
discovery_submitted_at: string | null;
|
|
1451
1552
|
discovery_submitted_by: string | null;
|
|
1452
1553
|
id: string;
|
|
@@ -1455,7 +1556,7 @@ type Database = {
|
|
|
1455
1556
|
organization_id: string;
|
|
1456
1557
|
payment_link_sent_at: string | null;
|
|
1457
1558
|
payment_received_at: string | null;
|
|
1458
|
-
proposal_data: Json | null;
|
|
1559
|
+
proposal_data: Json$1 | null;
|
|
1459
1560
|
proposal_generated_at: string | null;
|
|
1460
1561
|
proposal_pdf_url: string | null;
|
|
1461
1562
|
proposal_reviewed_at: string | null;
|
|
@@ -1473,15 +1574,14 @@ type Database = {
|
|
|
1473
1574
|
updated_at: string;
|
|
1474
1575
|
};
|
|
1475
1576
|
Insert: {
|
|
1476
|
-
activity_log?: Json;
|
|
1477
|
-
attio_deal_id: string;
|
|
1577
|
+
activity_log?: Json$1;
|
|
1478
1578
|
cached_stage?: string | null;
|
|
1479
1579
|
closed_lost_at?: string | null;
|
|
1480
1580
|
closed_lost_reason?: string | null;
|
|
1481
1581
|
contact_email: string;
|
|
1482
1582
|
contact_id?: string | null;
|
|
1483
1583
|
created_at?: string;
|
|
1484
|
-
discovery_data?: Json | null;
|
|
1584
|
+
discovery_data?: Json$1 | null;
|
|
1485
1585
|
discovery_submitted_at?: string | null;
|
|
1486
1586
|
discovery_submitted_by?: string | null;
|
|
1487
1587
|
id?: string;
|
|
@@ -1490,7 +1590,7 @@ type Database = {
|
|
|
1490
1590
|
organization_id: string;
|
|
1491
1591
|
payment_link_sent_at?: string | null;
|
|
1492
1592
|
payment_received_at?: string | null;
|
|
1493
|
-
proposal_data?: Json | null;
|
|
1593
|
+
proposal_data?: Json$1 | null;
|
|
1494
1594
|
proposal_generated_at?: string | null;
|
|
1495
1595
|
proposal_pdf_url?: string | null;
|
|
1496
1596
|
proposal_reviewed_at?: string | null;
|
|
@@ -1508,15 +1608,14 @@ type Database = {
|
|
|
1508
1608
|
updated_at?: string;
|
|
1509
1609
|
};
|
|
1510
1610
|
Update: {
|
|
1511
|
-
activity_log?: Json;
|
|
1512
|
-
attio_deal_id?: string;
|
|
1611
|
+
activity_log?: Json$1;
|
|
1513
1612
|
cached_stage?: string | null;
|
|
1514
1613
|
closed_lost_at?: string | null;
|
|
1515
1614
|
closed_lost_reason?: string | null;
|
|
1516
1615
|
contact_email?: string;
|
|
1517
1616
|
contact_id?: string | null;
|
|
1518
1617
|
created_at?: string;
|
|
1519
|
-
discovery_data?: Json | null;
|
|
1618
|
+
discovery_data?: Json$1 | null;
|
|
1520
1619
|
discovery_submitted_at?: string | null;
|
|
1521
1620
|
discovery_submitted_by?: string | null;
|
|
1522
1621
|
id?: string;
|
|
@@ -1525,7 +1624,7 @@ type Database = {
|
|
|
1525
1624
|
organization_id?: string;
|
|
1526
1625
|
payment_link_sent_at?: string | null;
|
|
1527
1626
|
payment_received_at?: string | null;
|
|
1528
|
-
proposal_data?: Json | null;
|
|
1627
|
+
proposal_data?: Json$1 | null;
|
|
1529
1628
|
proposal_generated_at?: string | null;
|
|
1530
1629
|
proposal_pdf_url?: string | null;
|
|
1531
1630
|
proposal_reviewed_at?: string | null;
|
|
@@ -1614,7 +1713,7 @@ type Database = {
|
|
|
1614
1713
|
id: string;
|
|
1615
1714
|
instantly_campaign_id: string | null;
|
|
1616
1715
|
launched_at: string | null;
|
|
1617
|
-
metadata: Json;
|
|
1716
|
+
metadata: Json$1;
|
|
1618
1717
|
name: string;
|
|
1619
1718
|
organization_id: string;
|
|
1620
1719
|
status: string;
|
|
@@ -1628,7 +1727,7 @@ type Database = {
|
|
|
1628
1727
|
id?: string;
|
|
1629
1728
|
instantly_campaign_id?: string | null;
|
|
1630
1729
|
launched_at?: string | null;
|
|
1631
|
-
metadata?: Json;
|
|
1730
|
+
metadata?: Json$1;
|
|
1632
1731
|
name: string;
|
|
1633
1732
|
organization_id: string;
|
|
1634
1733
|
status?: string;
|
|
@@ -1642,7 +1741,7 @@ type Database = {
|
|
|
1642
1741
|
id?: string;
|
|
1643
1742
|
instantly_campaign_id?: string | null;
|
|
1644
1743
|
launched_at?: string | null;
|
|
1645
|
-
metadata?: Json;
|
|
1744
|
+
metadata?: Json$1;
|
|
1646
1745
|
name?: string;
|
|
1647
1746
|
organization_id?: string;
|
|
1648
1747
|
status?: string;
|
|
@@ -1660,7 +1759,7 @@ type Database = {
|
|
|
1660
1759
|
};
|
|
1661
1760
|
acq_seo_metrics: {
|
|
1662
1761
|
Row: {
|
|
1663
|
-
ai_citations: Json | null;
|
|
1762
|
+
ai_citations: Json$1 | null;
|
|
1664
1763
|
avg_position: number | null;
|
|
1665
1764
|
clicks: number | null;
|
|
1666
1765
|
created_at: string;
|
|
@@ -1683,7 +1782,7 @@ type Database = {
|
|
|
1683
1782
|
word_count: number | null;
|
|
1684
1783
|
};
|
|
1685
1784
|
Insert: {
|
|
1686
|
-
ai_citations?: Json | null;
|
|
1785
|
+
ai_citations?: Json$1 | null;
|
|
1687
1786
|
avg_position?: number | null;
|
|
1688
1787
|
clicks?: number | null;
|
|
1689
1788
|
created_at?: string;
|
|
@@ -1706,7 +1805,7 @@ type Database = {
|
|
|
1706
1805
|
word_count?: number | null;
|
|
1707
1806
|
};
|
|
1708
1807
|
Update: {
|
|
1709
|
-
ai_citations?: Json | null;
|
|
1808
|
+
ai_citations?: Json$1 | null;
|
|
1710
1809
|
avg_position?: number | null;
|
|
1711
1810
|
clicks?: number | null;
|
|
1712
1811
|
created_at?: string;
|
|
@@ -1748,19 +1847,19 @@ type Database = {
|
|
|
1748
1847
|
acq_seo_pages: {
|
|
1749
1848
|
Row: {
|
|
1750
1849
|
city: string | null;
|
|
1751
|
-
content: Json | null;
|
|
1850
|
+
content: Json$1 | null;
|
|
1752
1851
|
created_at: string;
|
|
1753
|
-
faq_items: Json | null;
|
|
1852
|
+
faq_items: Json$1 | null;
|
|
1754
1853
|
hero_image_url: string | null;
|
|
1755
1854
|
id: string;
|
|
1756
|
-
internal_links: Json | null;
|
|
1757
|
-
local_data: Json | null;
|
|
1855
|
+
internal_links: Json$1 | null;
|
|
1856
|
+
local_data: Json$1 | null;
|
|
1758
1857
|
meta_description: string | null;
|
|
1759
1858
|
organization_id: string;
|
|
1760
1859
|
page_type: string;
|
|
1761
1860
|
published_at: string | null;
|
|
1762
1861
|
refreshed_at: string | null;
|
|
1763
|
-
schema_markup: Json | null;
|
|
1862
|
+
schema_markup: Json$1 | null;
|
|
1764
1863
|
slug: string;
|
|
1765
1864
|
state: string | null;
|
|
1766
1865
|
status: string;
|
|
@@ -1771,19 +1870,19 @@ type Database = {
|
|
|
1771
1870
|
};
|
|
1772
1871
|
Insert: {
|
|
1773
1872
|
city?: string | null;
|
|
1774
|
-
content?: Json | null;
|
|
1873
|
+
content?: Json$1 | null;
|
|
1775
1874
|
created_at?: string;
|
|
1776
|
-
faq_items?: Json | null;
|
|
1875
|
+
faq_items?: Json$1 | null;
|
|
1777
1876
|
hero_image_url?: string | null;
|
|
1778
1877
|
id?: string;
|
|
1779
|
-
internal_links?: Json | null;
|
|
1780
|
-
local_data?: Json | null;
|
|
1878
|
+
internal_links?: Json$1 | null;
|
|
1879
|
+
local_data?: Json$1 | null;
|
|
1781
1880
|
meta_description?: string | null;
|
|
1782
1881
|
organization_id: string;
|
|
1783
1882
|
page_type: string;
|
|
1784
1883
|
published_at?: string | null;
|
|
1785
1884
|
refreshed_at?: string | null;
|
|
1786
|
-
schema_markup?: Json | null;
|
|
1885
|
+
schema_markup?: Json$1 | null;
|
|
1787
1886
|
slug: string;
|
|
1788
1887
|
state?: string | null;
|
|
1789
1888
|
status?: string;
|
|
@@ -1794,19 +1893,19 @@ type Database = {
|
|
|
1794
1893
|
};
|
|
1795
1894
|
Update: {
|
|
1796
1895
|
city?: string | null;
|
|
1797
|
-
content?: Json | null;
|
|
1896
|
+
content?: Json$1 | null;
|
|
1798
1897
|
created_at?: string;
|
|
1799
|
-
faq_items?: Json | null;
|
|
1898
|
+
faq_items?: Json$1 | null;
|
|
1800
1899
|
hero_image_url?: string | null;
|
|
1801
1900
|
id?: string;
|
|
1802
|
-
internal_links?: Json | null;
|
|
1803
|
-
local_data?: Json | null;
|
|
1901
|
+
internal_links?: Json$1 | null;
|
|
1902
|
+
local_data?: Json$1 | null;
|
|
1804
1903
|
meta_description?: string | null;
|
|
1805
1904
|
organization_id?: string;
|
|
1806
1905
|
page_type?: string;
|
|
1807
1906
|
published_at?: string | null;
|
|
1808
1907
|
refreshed_at?: string | null;
|
|
1809
|
-
schema_markup?: Json | null;
|
|
1908
|
+
schema_markup?: Json$1 | null;
|
|
1810
1909
|
slug?: string;
|
|
1811
1910
|
state?: string | null;
|
|
1812
1911
|
status?: string;
|
|
@@ -1840,7 +1939,7 @@ type Database = {
|
|
|
1840
1939
|
initial_draft: string | null;
|
|
1841
1940
|
matched_keywords: string[];
|
|
1842
1941
|
matched_query: string | null;
|
|
1843
|
-
metadata: Json;
|
|
1942
|
+
metadata: Json$1;
|
|
1844
1943
|
organization_id: string;
|
|
1845
1944
|
platform: string;
|
|
1846
1945
|
platform_post_id: string;
|
|
@@ -1870,7 +1969,7 @@ type Database = {
|
|
|
1870
1969
|
initial_draft?: string | null;
|
|
1871
1970
|
matched_keywords?: string[];
|
|
1872
1971
|
matched_query?: string | null;
|
|
1873
|
-
metadata?: Json;
|
|
1972
|
+
metadata?: Json$1;
|
|
1874
1973
|
organization_id: string;
|
|
1875
1974
|
platform: string;
|
|
1876
1975
|
platform_post_id: string;
|
|
@@ -1900,7 +1999,7 @@ type Database = {
|
|
|
1900
1999
|
initial_draft?: string | null;
|
|
1901
2000
|
matched_keywords?: string[];
|
|
1902
2001
|
matched_query?: string | null;
|
|
1903
|
-
metadata?: Json;
|
|
2002
|
+
metadata?: Json$1;
|
|
1904
2003
|
organization_id?: string;
|
|
1905
2004
|
platform?: string;
|
|
1906
2005
|
platform_post_id?: string;
|
|
@@ -1937,7 +2036,7 @@ type Database = {
|
|
|
1937
2036
|
entity_name: string | null;
|
|
1938
2037
|
entity_type: string;
|
|
1939
2038
|
id: string;
|
|
1940
|
-
metadata: Json | null;
|
|
2039
|
+
metadata: Json$1 | null;
|
|
1941
2040
|
occurred_at: string;
|
|
1942
2041
|
organization_id: string;
|
|
1943
2042
|
status: string;
|
|
@@ -1953,7 +2052,7 @@ type Database = {
|
|
|
1953
2052
|
entity_name?: string | null;
|
|
1954
2053
|
entity_type: string;
|
|
1955
2054
|
id?: string;
|
|
1956
|
-
metadata?: Json | null;
|
|
2055
|
+
metadata?: Json$1 | null;
|
|
1957
2056
|
occurred_at?: string;
|
|
1958
2057
|
organization_id: string;
|
|
1959
2058
|
status: string;
|
|
@@ -1969,7 +2068,7 @@ type Database = {
|
|
|
1969
2068
|
entity_name?: string | null;
|
|
1970
2069
|
entity_type?: string;
|
|
1971
2070
|
id?: string;
|
|
1972
|
-
metadata?: Json | null;
|
|
2071
|
+
metadata?: Json$1 | null;
|
|
1973
2072
|
occurred_at?: string;
|
|
1974
2073
|
organization_id?: string;
|
|
1975
2074
|
status?: string;
|
|
@@ -2064,51 +2163,51 @@ type Database = {
|
|
|
2064
2163
|
calibration_runs: {
|
|
2065
2164
|
Row: {
|
|
2066
2165
|
completed_at: string | null;
|
|
2067
|
-
config_variants: Json;
|
|
2166
|
+
config_variants: Json$1;
|
|
2068
2167
|
created_at: string | null;
|
|
2069
2168
|
description: string | null;
|
|
2070
2169
|
execution_mode: string;
|
|
2071
2170
|
grader_model: string | null;
|
|
2072
|
-
grading_rubric: Json | null;
|
|
2171
|
+
grading_rubric: Json$1 | null;
|
|
2073
2172
|
id: string;
|
|
2074
2173
|
name: string;
|
|
2075
2174
|
organization_id: string;
|
|
2076
2175
|
project_id: string;
|
|
2077
|
-
results: Json;
|
|
2176
|
+
results: Json$1;
|
|
2078
2177
|
status: string;
|
|
2079
|
-
test_inputs: Json;
|
|
2178
|
+
test_inputs: Json$1;
|
|
2080
2179
|
};
|
|
2081
2180
|
Insert: {
|
|
2082
2181
|
completed_at?: string | null;
|
|
2083
|
-
config_variants: Json;
|
|
2182
|
+
config_variants: Json$1;
|
|
2084
2183
|
created_at?: string | null;
|
|
2085
2184
|
description?: string | null;
|
|
2086
2185
|
execution_mode?: string;
|
|
2087
2186
|
grader_model?: string | null;
|
|
2088
|
-
grading_rubric?: Json | null;
|
|
2187
|
+
grading_rubric?: Json$1 | null;
|
|
2089
2188
|
id?: string;
|
|
2090
2189
|
name: string;
|
|
2091
2190
|
organization_id: string;
|
|
2092
2191
|
project_id: string;
|
|
2093
|
-
results?: Json;
|
|
2192
|
+
results?: Json$1;
|
|
2094
2193
|
status?: string;
|
|
2095
|
-
test_inputs: Json;
|
|
2194
|
+
test_inputs: Json$1;
|
|
2096
2195
|
};
|
|
2097
2196
|
Update: {
|
|
2098
2197
|
completed_at?: string | null;
|
|
2099
|
-
config_variants?: Json;
|
|
2198
|
+
config_variants?: Json$1;
|
|
2100
2199
|
created_at?: string | null;
|
|
2101
2200
|
description?: string | null;
|
|
2102
2201
|
execution_mode?: string;
|
|
2103
2202
|
grader_model?: string | null;
|
|
2104
|
-
grading_rubric?: Json | null;
|
|
2203
|
+
grading_rubric?: Json$1 | null;
|
|
2105
2204
|
id?: string;
|
|
2106
2205
|
name?: string;
|
|
2107
2206
|
organization_id?: string;
|
|
2108
2207
|
project_id?: string;
|
|
2109
|
-
results?: Json;
|
|
2208
|
+
results?: Json$1;
|
|
2110
2209
|
status?: string;
|
|
2111
|
-
test_inputs?: Json;
|
|
2210
|
+
test_inputs?: Json$1;
|
|
2112
2211
|
};
|
|
2113
2212
|
Relationships: [
|
|
2114
2213
|
{
|
|
@@ -2129,18 +2228,18 @@ type Database = {
|
|
|
2129
2228
|
};
|
|
2130
2229
|
command_queue: {
|
|
2131
2230
|
Row: {
|
|
2132
|
-
action_payload: Json | null;
|
|
2133
|
-
actions: Json;
|
|
2231
|
+
action_payload: Json$1 | null;
|
|
2232
|
+
actions: Json$1;
|
|
2134
2233
|
completed_at: string | null;
|
|
2135
2234
|
completed_by: string | null;
|
|
2136
|
-
context: Json;
|
|
2235
|
+
context: Json$1;
|
|
2137
2236
|
created_at: string;
|
|
2138
2237
|
description: string | null;
|
|
2139
2238
|
expires_at: string | null;
|
|
2140
2239
|
human_checkpoint: string | null;
|
|
2141
2240
|
id: string;
|
|
2142
2241
|
idempotency_key: string | null;
|
|
2143
|
-
metadata: Json | null;
|
|
2242
|
+
metadata: Json$1 | null;
|
|
2144
2243
|
organization_id: string;
|
|
2145
2244
|
origin_execution_id: string;
|
|
2146
2245
|
origin_resource_id: string;
|
|
@@ -2153,18 +2252,18 @@ type Database = {
|
|
|
2153
2252
|
target_resource_type: string | null;
|
|
2154
2253
|
};
|
|
2155
2254
|
Insert: {
|
|
2156
|
-
action_payload?: Json | null;
|
|
2157
|
-
actions: Json;
|
|
2255
|
+
action_payload?: Json$1 | null;
|
|
2256
|
+
actions: Json$1;
|
|
2158
2257
|
completed_at?: string | null;
|
|
2159
2258
|
completed_by?: string | null;
|
|
2160
|
-
context: Json;
|
|
2259
|
+
context: Json$1;
|
|
2161
2260
|
created_at?: string;
|
|
2162
2261
|
description?: string | null;
|
|
2163
2262
|
expires_at?: string | null;
|
|
2164
2263
|
human_checkpoint?: string | null;
|
|
2165
2264
|
id?: string;
|
|
2166
2265
|
idempotency_key?: string | null;
|
|
2167
|
-
metadata?: Json | null;
|
|
2266
|
+
metadata?: Json$1 | null;
|
|
2168
2267
|
organization_id: string;
|
|
2169
2268
|
origin_execution_id: string;
|
|
2170
2269
|
origin_resource_id: string;
|
|
@@ -2177,18 +2276,18 @@ type Database = {
|
|
|
2177
2276
|
target_resource_type?: string | null;
|
|
2178
2277
|
};
|
|
2179
2278
|
Update: {
|
|
2180
|
-
action_payload?: Json | null;
|
|
2181
|
-
actions?: Json;
|
|
2279
|
+
action_payload?: Json$1 | null;
|
|
2280
|
+
actions?: Json$1;
|
|
2182
2281
|
completed_at?: string | null;
|
|
2183
2282
|
completed_by?: string | null;
|
|
2184
|
-
context?: Json;
|
|
2283
|
+
context?: Json$1;
|
|
2185
2284
|
created_at?: string;
|
|
2186
2285
|
description?: string | null;
|
|
2187
2286
|
expires_at?: string | null;
|
|
2188
2287
|
human_checkpoint?: string | null;
|
|
2189
2288
|
id?: string;
|
|
2190
2289
|
idempotency_key?: string | null;
|
|
2191
|
-
metadata?: Json | null;
|
|
2290
|
+
metadata?: Json$1 | null;
|
|
2192
2291
|
organization_id?: string;
|
|
2193
2292
|
origin_execution_id?: string;
|
|
2194
2293
|
origin_resource_id?: string;
|
|
@@ -2277,10 +2376,10 @@ type Database = {
|
|
|
2277
2376
|
};
|
|
2278
2377
|
deployments: {
|
|
2279
2378
|
Row: {
|
|
2280
|
-
compiled_docs: Json | null;
|
|
2379
|
+
compiled_docs: Json$1 | null;
|
|
2281
2380
|
created_at: string;
|
|
2282
2381
|
deployment_version: string | null;
|
|
2283
|
-
documentation: Json | null;
|
|
2382
|
+
documentation: Json$1 | null;
|
|
2284
2383
|
error_message: string | null;
|
|
2285
2384
|
id: string;
|
|
2286
2385
|
organization_id: string;
|
|
@@ -2292,10 +2391,10 @@ type Database = {
|
|
|
2292
2391
|
updated_at: string;
|
|
2293
2392
|
};
|
|
2294
2393
|
Insert: {
|
|
2295
|
-
compiled_docs?: Json | null;
|
|
2394
|
+
compiled_docs?: Json$1 | null;
|
|
2296
2395
|
created_at?: string;
|
|
2297
2396
|
deployment_version?: string | null;
|
|
2298
|
-
documentation?: Json | null;
|
|
2397
|
+
documentation?: Json$1 | null;
|
|
2299
2398
|
error_message?: string | null;
|
|
2300
2399
|
id?: string;
|
|
2301
2400
|
organization_id: string;
|
|
@@ -2307,10 +2406,10 @@ type Database = {
|
|
|
2307
2406
|
updated_at?: string;
|
|
2308
2407
|
};
|
|
2309
2408
|
Update: {
|
|
2310
|
-
compiled_docs?: Json | null;
|
|
2409
|
+
compiled_docs?: Json$1 | null;
|
|
2311
2410
|
created_at?: string;
|
|
2312
2411
|
deployment_version?: string | null;
|
|
2313
|
-
documentation?: Json | null;
|
|
2412
|
+
documentation?: Json$1 | null;
|
|
2314
2413
|
error_message?: string | null;
|
|
2315
2414
|
id?: string;
|
|
2316
2415
|
organization_id?: string;
|
|
@@ -2341,7 +2440,7 @@ type Database = {
|
|
|
2341
2440
|
error_type: string;
|
|
2342
2441
|
execution_id: string;
|
|
2343
2442
|
id: string;
|
|
2344
|
-
metadata: Json | null;
|
|
2443
|
+
metadata: Json$1 | null;
|
|
2345
2444
|
occurred_at: string;
|
|
2346
2445
|
organization_id: string;
|
|
2347
2446
|
resolved: boolean;
|
|
@@ -2357,7 +2456,7 @@ type Database = {
|
|
|
2357
2456
|
error_type: string;
|
|
2358
2457
|
execution_id: string;
|
|
2359
2458
|
id?: string;
|
|
2360
|
-
metadata?: Json | null;
|
|
2459
|
+
metadata?: Json$1 | null;
|
|
2361
2460
|
occurred_at?: string;
|
|
2362
2461
|
organization_id: string;
|
|
2363
2462
|
resolved?: boolean;
|
|
@@ -2373,7 +2472,7 @@ type Database = {
|
|
|
2373
2472
|
error_type?: string;
|
|
2374
2473
|
execution_id?: string;
|
|
2375
2474
|
id?: string;
|
|
2376
|
-
metadata?: Json | null;
|
|
2475
|
+
metadata?: Json$1 | null;
|
|
2377
2476
|
occurred_at?: string;
|
|
2378
2477
|
organization_id?: string;
|
|
2379
2478
|
resolved?: boolean;
|
|
@@ -2411,12 +2510,12 @@ type Database = {
|
|
|
2411
2510
|
created_at: string | null;
|
|
2412
2511
|
error: string | null;
|
|
2413
2512
|
execution_id: string;
|
|
2414
|
-
input: Json | null;
|
|
2513
|
+
input: Json$1 | null;
|
|
2415
2514
|
last_heartbeat_at: string | null;
|
|
2416
|
-
logs: Json | null;
|
|
2515
|
+
logs: Json$1 | null;
|
|
2417
2516
|
organization_id: string;
|
|
2418
2517
|
origin_execution_id: string | null;
|
|
2419
|
-
output: Json | null;
|
|
2518
|
+
output: Json$1 | null;
|
|
2420
2519
|
resource_id: string;
|
|
2421
2520
|
resource_status: string;
|
|
2422
2521
|
resource_type: string;
|
|
@@ -2436,12 +2535,12 @@ type Database = {
|
|
|
2436
2535
|
created_at?: string | null;
|
|
2437
2536
|
error?: string | null;
|
|
2438
2537
|
execution_id?: string;
|
|
2439
|
-
input?: Json | null;
|
|
2538
|
+
input?: Json$1 | null;
|
|
2440
2539
|
last_heartbeat_at?: string | null;
|
|
2441
|
-
logs?: Json | null;
|
|
2540
|
+
logs?: Json$1 | null;
|
|
2442
2541
|
organization_id: string;
|
|
2443
2542
|
origin_execution_id?: string | null;
|
|
2444
|
-
output?: Json | null;
|
|
2543
|
+
output?: Json$1 | null;
|
|
2445
2544
|
resource_id: string;
|
|
2446
2545
|
resource_status?: string;
|
|
2447
2546
|
resource_type?: string;
|
|
@@ -2461,12 +2560,12 @@ type Database = {
|
|
|
2461
2560
|
created_at?: string | null;
|
|
2462
2561
|
error?: string | null;
|
|
2463
2562
|
execution_id?: string;
|
|
2464
|
-
input?: Json | null;
|
|
2563
|
+
input?: Json$1 | null;
|
|
2465
2564
|
last_heartbeat_at?: string | null;
|
|
2466
|
-
logs?: Json | null;
|
|
2565
|
+
logs?: Json$1 | null;
|
|
2467
2566
|
organization_id?: string;
|
|
2468
2567
|
origin_execution_id?: string | null;
|
|
2469
|
-
output?: Json | null;
|
|
2568
|
+
output?: Json$1 | null;
|
|
2470
2569
|
resource_id?: string;
|
|
2471
2570
|
resource_status?: string;
|
|
2472
2571
|
resource_type?: string;
|
|
@@ -2514,7 +2613,7 @@ type Database = {
|
|
|
2514
2613
|
execution_metrics: {
|
|
2515
2614
|
Row: {
|
|
2516
2615
|
ai_call_count: number;
|
|
2517
|
-
ai_calls: Json | null;
|
|
2616
|
+
ai_calls: Json$1 | null;
|
|
2518
2617
|
automation_savings_usd: number | null;
|
|
2519
2618
|
created_at: string | null;
|
|
2520
2619
|
duration_ms: number | null;
|
|
@@ -2527,7 +2626,7 @@ type Database = {
|
|
|
2527
2626
|
};
|
|
2528
2627
|
Insert: {
|
|
2529
2628
|
ai_call_count: number;
|
|
2530
|
-
ai_calls?: Json | null;
|
|
2629
|
+
ai_calls?: Json$1 | null;
|
|
2531
2630
|
automation_savings_usd?: number | null;
|
|
2532
2631
|
created_at?: string | null;
|
|
2533
2632
|
duration_ms?: number | null;
|
|
@@ -2540,7 +2639,7 @@ type Database = {
|
|
|
2540
2639
|
};
|
|
2541
2640
|
Update: {
|
|
2542
2641
|
ai_call_count?: number;
|
|
2543
|
-
ai_calls?: Json | null;
|
|
2642
|
+
ai_calls?: Json$1 | null;
|
|
2544
2643
|
automation_savings_usd?: number | null;
|
|
2545
2644
|
created_at?: string | null;
|
|
2546
2645
|
duration_ms?: number | null;
|
|
@@ -2690,7 +2789,7 @@ type Database = {
|
|
|
2690
2789
|
};
|
|
2691
2790
|
org_memberships: {
|
|
2692
2791
|
Row: {
|
|
2693
|
-
config: Json;
|
|
2792
|
+
config: Json$1;
|
|
2694
2793
|
created_at: string | null;
|
|
2695
2794
|
id: string;
|
|
2696
2795
|
membership_status: string | null;
|
|
@@ -2701,7 +2800,7 @@ type Database = {
|
|
|
2701
2800
|
workos_membership_id: string | null;
|
|
2702
2801
|
};
|
|
2703
2802
|
Insert: {
|
|
2704
|
-
config?: Json;
|
|
2803
|
+
config?: Json$1;
|
|
2705
2804
|
created_at?: string | null;
|
|
2706
2805
|
id?: string;
|
|
2707
2806
|
membership_status?: string | null;
|
|
@@ -2712,7 +2811,7 @@ type Database = {
|
|
|
2712
2811
|
workos_membership_id?: string | null;
|
|
2713
2812
|
};
|
|
2714
2813
|
Update: {
|
|
2715
|
-
config?: Json;
|
|
2814
|
+
config?: Json$1;
|
|
2716
2815
|
created_at?: string | null;
|
|
2717
2816
|
id?: string;
|
|
2718
2817
|
membership_status?: string | null;
|
|
@@ -2741,33 +2840,33 @@ type Database = {
|
|
|
2741
2840
|
};
|
|
2742
2841
|
organizations: {
|
|
2743
2842
|
Row: {
|
|
2744
|
-
config: Json;
|
|
2843
|
+
config: Json$1;
|
|
2745
2844
|
created_at: string;
|
|
2746
2845
|
id: string;
|
|
2747
2846
|
is_test: boolean;
|
|
2748
|
-
metadata: Json;
|
|
2847
|
+
metadata: Json$1;
|
|
2749
2848
|
name: string;
|
|
2750
2849
|
status: string;
|
|
2751
2850
|
updated_at: string;
|
|
2752
2851
|
workos_org_id: string;
|
|
2753
2852
|
};
|
|
2754
2853
|
Insert: {
|
|
2755
|
-
config?: Json;
|
|
2854
|
+
config?: Json$1;
|
|
2756
2855
|
created_at?: string;
|
|
2757
2856
|
id?: string;
|
|
2758
2857
|
is_test?: boolean;
|
|
2759
|
-
metadata?: Json;
|
|
2858
|
+
metadata?: Json$1;
|
|
2760
2859
|
name: string;
|
|
2761
2860
|
status?: string;
|
|
2762
2861
|
updated_at?: string;
|
|
2763
2862
|
workos_org_id: string;
|
|
2764
2863
|
};
|
|
2765
2864
|
Update: {
|
|
2766
|
-
config?: Json;
|
|
2865
|
+
config?: Json$1;
|
|
2767
2866
|
created_at?: string;
|
|
2768
2867
|
id?: string;
|
|
2769
2868
|
is_test?: boolean;
|
|
2770
|
-
metadata?: Json;
|
|
2869
|
+
metadata?: Json$1;
|
|
2771
2870
|
name?: string;
|
|
2772
2871
|
status?: string;
|
|
2773
2872
|
updated_at?: string;
|
|
@@ -2777,13 +2876,13 @@ type Database = {
|
|
|
2777
2876
|
};
|
|
2778
2877
|
prj_milestones: {
|
|
2779
2878
|
Row: {
|
|
2780
|
-
checklist: Json | null;
|
|
2879
|
+
checklist: Json$1 | null;
|
|
2781
2880
|
completed_at: string | null;
|
|
2782
2881
|
created_at: string;
|
|
2783
2882
|
description: string | null;
|
|
2784
2883
|
due_date: string | null;
|
|
2785
2884
|
id: string;
|
|
2786
|
-
metadata: Json | null;
|
|
2885
|
+
metadata: Json$1 | null;
|
|
2787
2886
|
name: string;
|
|
2788
2887
|
organization_id: string;
|
|
2789
2888
|
project_id: string;
|
|
@@ -2792,13 +2891,13 @@ type Database = {
|
|
|
2792
2891
|
updated_at: string;
|
|
2793
2892
|
};
|
|
2794
2893
|
Insert: {
|
|
2795
|
-
checklist?: Json | null;
|
|
2894
|
+
checklist?: Json$1 | null;
|
|
2796
2895
|
completed_at?: string | null;
|
|
2797
2896
|
created_at?: string;
|
|
2798
2897
|
description?: string | null;
|
|
2799
2898
|
due_date?: string | null;
|
|
2800
2899
|
id?: string;
|
|
2801
|
-
metadata?: Json | null;
|
|
2900
|
+
metadata?: Json$1 | null;
|
|
2802
2901
|
name: string;
|
|
2803
2902
|
organization_id: string;
|
|
2804
2903
|
project_id: string;
|
|
@@ -2807,13 +2906,13 @@ type Database = {
|
|
|
2807
2906
|
updated_at?: string;
|
|
2808
2907
|
};
|
|
2809
2908
|
Update: {
|
|
2810
|
-
checklist?: Json | null;
|
|
2909
|
+
checklist?: Json$1 | null;
|
|
2811
2910
|
completed_at?: string | null;
|
|
2812
2911
|
created_at?: string;
|
|
2813
2912
|
description?: string | null;
|
|
2814
2913
|
due_date?: string | null;
|
|
2815
2914
|
id?: string;
|
|
2816
|
-
metadata?: Json | null;
|
|
2915
|
+
metadata?: Json$1 | null;
|
|
2817
2916
|
name?: string;
|
|
2818
2917
|
organization_id?: string;
|
|
2819
2918
|
project_id?: string;
|
|
@@ -2844,7 +2943,7 @@ type Database = {
|
|
|
2844
2943
|
created_at: string;
|
|
2845
2944
|
created_by: string | null;
|
|
2846
2945
|
id: string;
|
|
2847
|
-
metadata: Json | null;
|
|
2946
|
+
metadata: Json$1 | null;
|
|
2848
2947
|
milestone_id: string | null;
|
|
2849
2948
|
occurred_at: string;
|
|
2850
2949
|
organization_id: string;
|
|
@@ -2858,7 +2957,7 @@ type Database = {
|
|
|
2858
2957
|
created_at?: string;
|
|
2859
2958
|
created_by?: string | null;
|
|
2860
2959
|
id?: string;
|
|
2861
|
-
metadata?: Json | null;
|
|
2960
|
+
metadata?: Json$1 | null;
|
|
2862
2961
|
milestone_id?: string | null;
|
|
2863
2962
|
occurred_at?: string;
|
|
2864
2963
|
organization_id: string;
|
|
@@ -2872,7 +2971,7 @@ type Database = {
|
|
|
2872
2971
|
created_at?: string;
|
|
2873
2972
|
created_by?: string | null;
|
|
2874
2973
|
id?: string;
|
|
2875
|
-
metadata?: Json | null;
|
|
2974
|
+
metadata?: Json$1 | null;
|
|
2876
2975
|
milestone_id?: string | null;
|
|
2877
2976
|
occurred_at?: string;
|
|
2878
2977
|
organization_id?: string;
|
|
@@ -2929,7 +3028,7 @@ type Database = {
|
|
|
2929
3028
|
description: string | null;
|
|
2930
3029
|
id: string;
|
|
2931
3030
|
kind: string;
|
|
2932
|
-
metadata: Json | null;
|
|
3031
|
+
metadata: Json$1 | null;
|
|
2933
3032
|
name: string;
|
|
2934
3033
|
organization_id: string;
|
|
2935
3034
|
start_date: string | null;
|
|
@@ -2946,7 +3045,7 @@ type Database = {
|
|
|
2946
3045
|
description?: string | null;
|
|
2947
3046
|
id?: string;
|
|
2948
3047
|
kind?: string;
|
|
2949
|
-
metadata?: Json | null;
|
|
3048
|
+
metadata?: Json$1 | null;
|
|
2950
3049
|
name: string;
|
|
2951
3050
|
organization_id: string;
|
|
2952
3051
|
start_date?: string | null;
|
|
@@ -2963,7 +3062,7 @@ type Database = {
|
|
|
2963
3062
|
description?: string | null;
|
|
2964
3063
|
id?: string;
|
|
2965
3064
|
kind?: string;
|
|
2966
|
-
metadata?: Json | null;
|
|
3065
|
+
metadata?: Json$1 | null;
|
|
2967
3066
|
name?: string;
|
|
2968
3067
|
organization_id?: string;
|
|
2969
3068
|
start_date?: string | null;
|
|
@@ -2997,58 +3096,58 @@ type Database = {
|
|
|
2997
3096
|
};
|
|
2998
3097
|
prj_tasks: {
|
|
2999
3098
|
Row: {
|
|
3000
|
-
checklist: Json;
|
|
3099
|
+
checklist: Json$1;
|
|
3001
3100
|
completed_at: string | null;
|
|
3002
3101
|
created_at: string;
|
|
3003
3102
|
description: string | null;
|
|
3004
3103
|
due_date: string | null;
|
|
3005
3104
|
file_url: string | null;
|
|
3006
3105
|
id: string;
|
|
3007
|
-
metadata: Json | null;
|
|
3106
|
+
metadata: Json$1 | null;
|
|
3008
3107
|
milestone_id: string | null;
|
|
3009
3108
|
name: string;
|
|
3010
3109
|
organization_id: string;
|
|
3011
3110
|
parent_task_id: string | null;
|
|
3012
3111
|
project_id: string;
|
|
3013
|
-
resume_context: Json | null;
|
|
3112
|
+
resume_context: Json$1 | null;
|
|
3014
3113
|
status: string;
|
|
3015
3114
|
type: string;
|
|
3016
3115
|
updated_at: string;
|
|
3017
3116
|
};
|
|
3018
3117
|
Insert: {
|
|
3019
|
-
checklist?: Json;
|
|
3118
|
+
checklist?: Json$1;
|
|
3020
3119
|
completed_at?: string | null;
|
|
3021
3120
|
created_at?: string;
|
|
3022
3121
|
description?: string | null;
|
|
3023
3122
|
due_date?: string | null;
|
|
3024
3123
|
file_url?: string | null;
|
|
3025
3124
|
id?: string;
|
|
3026
|
-
metadata?: Json | null;
|
|
3125
|
+
metadata?: Json$1 | null;
|
|
3027
3126
|
milestone_id?: string | null;
|
|
3028
3127
|
name: string;
|
|
3029
3128
|
organization_id: string;
|
|
3030
3129
|
parent_task_id?: string | null;
|
|
3031
3130
|
project_id: string;
|
|
3032
|
-
resume_context?: Json | null;
|
|
3131
|
+
resume_context?: Json$1 | null;
|
|
3033
3132
|
status?: string;
|
|
3034
3133
|
type?: string;
|
|
3035
3134
|
updated_at?: string;
|
|
3036
3135
|
};
|
|
3037
3136
|
Update: {
|
|
3038
|
-
checklist?: Json;
|
|
3137
|
+
checklist?: Json$1;
|
|
3039
3138
|
completed_at?: string | null;
|
|
3040
3139
|
created_at?: string;
|
|
3041
3140
|
description?: string | null;
|
|
3042
3141
|
due_date?: string | null;
|
|
3043
3142
|
file_url?: string | null;
|
|
3044
3143
|
id?: string;
|
|
3045
|
-
metadata?: Json | null;
|
|
3144
|
+
metadata?: Json$1 | null;
|
|
3046
3145
|
milestone_id?: string | null;
|
|
3047
3146
|
name?: string;
|
|
3048
3147
|
organization_id?: string;
|
|
3049
3148
|
parent_task_id?: string | null;
|
|
3050
3149
|
project_id?: string;
|
|
3051
|
-
resume_context?: Json | null;
|
|
3150
|
+
resume_context?: Json$1 | null;
|
|
3052
3151
|
status?: string;
|
|
3053
3152
|
type?: string;
|
|
3054
3153
|
updated_at?: string;
|
|
@@ -3091,7 +3190,7 @@ type Database = {
|
|
|
3091
3190
|
message: string;
|
|
3092
3191
|
message_index: number | null;
|
|
3093
3192
|
message_type: string | null;
|
|
3094
|
-
metadata: Json | null;
|
|
3193
|
+
metadata: Json$1 | null;
|
|
3095
3194
|
role: string;
|
|
3096
3195
|
session_id: string;
|
|
3097
3196
|
session_turn_number: number;
|
|
@@ -3102,7 +3201,7 @@ type Database = {
|
|
|
3102
3201
|
message: string;
|
|
3103
3202
|
message_index?: number | null;
|
|
3104
3203
|
message_type?: string | null;
|
|
3105
|
-
metadata?: Json | null;
|
|
3204
|
+
metadata?: Json$1 | null;
|
|
3106
3205
|
role: string;
|
|
3107
3206
|
session_id: string;
|
|
3108
3207
|
session_turn_number: number;
|
|
@@ -3113,7 +3212,7 @@ type Database = {
|
|
|
3113
3212
|
message?: string;
|
|
3114
3213
|
message_index?: number | null;
|
|
3115
3214
|
message_type?: string | null;
|
|
3116
|
-
metadata?: Json | null;
|
|
3215
|
+
metadata?: Json$1 | null;
|
|
3117
3216
|
role?: string;
|
|
3118
3217
|
session_id?: string;
|
|
3119
3218
|
session_turn_number?: number;
|
|
@@ -3136,8 +3235,8 @@ type Database = {
|
|
|
3136
3235
|
cumulative_output_tokens: number;
|
|
3137
3236
|
deleted_at: string | null;
|
|
3138
3237
|
ended_at: string | null;
|
|
3139
|
-
memory_snapshot: Json;
|
|
3140
|
-
metadata: Json | null;
|
|
3238
|
+
memory_snapshot: Json$1;
|
|
3239
|
+
metadata: Json$1 | null;
|
|
3141
3240
|
organization_id: string;
|
|
3142
3241
|
resource_id: string;
|
|
3143
3242
|
session_id: string;
|
|
@@ -3152,8 +3251,8 @@ type Database = {
|
|
|
3152
3251
|
cumulative_output_tokens?: number;
|
|
3153
3252
|
deleted_at?: string | null;
|
|
3154
3253
|
ended_at?: string | null;
|
|
3155
|
-
memory_snapshot: Json;
|
|
3156
|
-
metadata?: Json | null;
|
|
3254
|
+
memory_snapshot: Json$1;
|
|
3255
|
+
metadata?: Json$1 | null;
|
|
3157
3256
|
organization_id: string;
|
|
3158
3257
|
resource_id: string;
|
|
3159
3258
|
session_id?: string;
|
|
@@ -3168,8 +3267,8 @@ type Database = {
|
|
|
3168
3267
|
cumulative_output_tokens?: number;
|
|
3169
3268
|
deleted_at?: string | null;
|
|
3170
3269
|
ended_at?: string | null;
|
|
3171
|
-
memory_snapshot?: Json;
|
|
3172
|
-
metadata?: Json | null;
|
|
3270
|
+
memory_snapshot?: Json$1;
|
|
3271
|
+
metadata?: Json$1 | null;
|
|
3173
3272
|
organization_id?: string;
|
|
3174
3273
|
resource_id?: string;
|
|
3175
3274
|
session_id?: string;
|
|
@@ -3204,7 +3303,7 @@ type Database = {
|
|
|
3204
3303
|
last_execution_id: string | null;
|
|
3205
3304
|
last_run_at: string | null;
|
|
3206
3305
|
max_retries: number;
|
|
3207
|
-
metadata: Json | null;
|
|
3306
|
+
metadata: Json$1 | null;
|
|
3208
3307
|
name: string;
|
|
3209
3308
|
next_run_at: string | null;
|
|
3210
3309
|
organization_id: string;
|
|
@@ -3212,7 +3311,7 @@ type Database = {
|
|
|
3212
3311
|
origin_resource_id: string | null;
|
|
3213
3312
|
origin_resource_type: string | null;
|
|
3214
3313
|
retry_count: number;
|
|
3215
|
-
schedule_config: Json;
|
|
3314
|
+
schedule_config: Json$1;
|
|
3216
3315
|
status: string;
|
|
3217
3316
|
target_resource_id: string;
|
|
3218
3317
|
target_resource_type: string;
|
|
@@ -3227,7 +3326,7 @@ type Database = {
|
|
|
3227
3326
|
last_execution_id?: string | null;
|
|
3228
3327
|
last_run_at?: string | null;
|
|
3229
3328
|
max_retries?: number;
|
|
3230
|
-
metadata?: Json | null;
|
|
3329
|
+
metadata?: Json$1 | null;
|
|
3231
3330
|
name: string;
|
|
3232
3331
|
next_run_at?: string | null;
|
|
3233
3332
|
organization_id: string;
|
|
@@ -3235,7 +3334,7 @@ type Database = {
|
|
|
3235
3334
|
origin_resource_id?: string | null;
|
|
3236
3335
|
origin_resource_type?: string | null;
|
|
3237
3336
|
retry_count?: number;
|
|
3238
|
-
schedule_config: Json;
|
|
3337
|
+
schedule_config: Json$1;
|
|
3239
3338
|
status?: string;
|
|
3240
3339
|
target_resource_id: string;
|
|
3241
3340
|
target_resource_type: string;
|
|
@@ -3250,7 +3349,7 @@ type Database = {
|
|
|
3250
3349
|
last_execution_id?: string | null;
|
|
3251
3350
|
last_run_at?: string | null;
|
|
3252
3351
|
max_retries?: number;
|
|
3253
|
-
metadata?: Json | null;
|
|
3352
|
+
metadata?: Json$1 | null;
|
|
3254
3353
|
name?: string;
|
|
3255
3354
|
next_run_at?: string | null;
|
|
3256
3355
|
organization_id?: string;
|
|
@@ -3258,7 +3357,7 @@ type Database = {
|
|
|
3258
3357
|
origin_resource_id?: string | null;
|
|
3259
3358
|
origin_resource_type?: string | null;
|
|
3260
3359
|
retry_count?: number;
|
|
3261
|
-
schedule_config?: Json;
|
|
3360
|
+
schedule_config?: Json$1;
|
|
3262
3361
|
status?: string;
|
|
3263
3362
|
target_resource_id?: string;
|
|
3264
3363
|
target_resource_type?: string;
|
|
@@ -3276,7 +3375,7 @@ type Database = {
|
|
|
3276
3375
|
};
|
|
3277
3376
|
users: {
|
|
3278
3377
|
Row: {
|
|
3279
|
-
config: Json;
|
|
3378
|
+
config: Json$1;
|
|
3280
3379
|
created_at: string;
|
|
3281
3380
|
display_name: string | null;
|
|
3282
3381
|
email: string;
|
|
@@ -3292,7 +3391,7 @@ type Database = {
|
|
|
3292
3391
|
workos_user_id: string | null;
|
|
3293
3392
|
};
|
|
3294
3393
|
Insert: {
|
|
3295
|
-
config?: Json;
|
|
3394
|
+
config?: Json$1;
|
|
3296
3395
|
created_at?: string;
|
|
3297
3396
|
display_name?: string | null;
|
|
3298
3397
|
email: string;
|
|
@@ -3308,7 +3407,7 @@ type Database = {
|
|
|
3308
3407
|
workos_user_id?: string | null;
|
|
3309
3408
|
};
|
|
3310
3409
|
Update: {
|
|
3311
|
-
config?: Json;
|
|
3410
|
+
config?: Json$1;
|
|
3312
3411
|
created_at?: string;
|
|
3313
3412
|
display_name?: string | null;
|
|
3314
3413
|
email?: string;
|
|
@@ -3392,11 +3491,11 @@ type Database = {
|
|
|
3392
3491
|
Args: {
|
|
3393
3492
|
p_platform: string;
|
|
3394
3493
|
};
|
|
3395
|
-
Returns: Json;
|
|
3494
|
+
Returns: Json$1;
|
|
3396
3495
|
};
|
|
3397
3496
|
append_deal_activity: {
|
|
3398
3497
|
Args: {
|
|
3399
|
-
p_activity: Json;
|
|
3498
|
+
p_activity: Json$1;
|
|
3400
3499
|
p_deal_id: string;
|
|
3401
3500
|
p_organization_id: string;
|
|
3402
3501
|
};
|
|
@@ -3404,7 +3503,7 @@ type Database = {
|
|
|
3404
3503
|
};
|
|
3405
3504
|
auth_jwt_claims: {
|
|
3406
3505
|
Args: never;
|
|
3407
|
-
Returns: Json;
|
|
3506
|
+
Returns: Json$1;
|
|
3408
3507
|
};
|
|
3409
3508
|
auth_uid_safe: {
|
|
3410
3509
|
Args: never;
|
|
@@ -3429,8 +3528,8 @@ type Database = {
|
|
|
3429
3528
|
Returns: {
|
|
3430
3529
|
created_at: string;
|
|
3431
3530
|
ended_at: string;
|
|
3432
|
-
memory_snapshot: Json;
|
|
3433
|
-
metadata: Json;
|
|
3531
|
+
memory_snapshot: Json$1;
|
|
3532
|
+
metadata: Json$1;
|
|
3434
3533
|
organization_id: string;
|
|
3435
3534
|
resource_id: string;
|
|
3436
3535
|
session_id: string;
|
|
@@ -3475,11 +3574,11 @@ type Database = {
|
|
|
3475
3574
|
p_organization_id: string;
|
|
3476
3575
|
p_role_slug?: string;
|
|
3477
3576
|
};
|
|
3478
|
-
Returns: Json;
|
|
3577
|
+
Returns: Json$1;
|
|
3479
3578
|
};
|
|
3480
3579
|
process_due_schedules: {
|
|
3481
3580
|
Args: never;
|
|
3482
|
-
Returns: Json;
|
|
3581
|
+
Returns: Json$1;
|
|
3483
3582
|
};
|
|
3484
3583
|
upsert_user_profile: {
|
|
3485
3584
|
Args: never;
|
|
@@ -3499,8 +3598,8 @@ type Database = {
|
|
|
3499
3598
|
};
|
|
3500
3599
|
};
|
|
3501
3600
|
};
|
|
3502
|
-
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
3503
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
3601
|
+
type DatabaseWithoutInternals = Omit<Database$1, "__InternalSupabase">;
|
|
3602
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database$1, "public">];
|
|
3504
3603
|
type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3505
3604
|
schema: keyof DatabaseWithoutInternals;
|
|
3506
3605
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
@@ -3587,7 +3686,7 @@ interface Task extends OriginTracking {
|
|
|
3587
3686
|
priority: number;
|
|
3588
3687
|
/** Optional checkpoint identifier for grouping related human approval tasks */
|
|
3589
3688
|
humanCheckpoint?: string;
|
|
3590
|
-
status: TaskStatus;
|
|
3689
|
+
status: TaskStatus$1;
|
|
3591
3690
|
/**
|
|
3592
3691
|
* Target resource tracking — mirrors origin columns.
|
|
3593
3692
|
* Set when task is created; patchable to redirect execution to a different resource.
|
|
@@ -3617,7 +3716,7 @@ interface Task extends OriginTracking {
|
|
|
3617
3716
|
* - failed: execution failed, task can be retried
|
|
3618
3717
|
* - expired: timed out before action
|
|
3619
3718
|
*/
|
|
3620
|
-
type TaskStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'expired';
|
|
3719
|
+
type TaskStatus$1 = 'pending' | 'processing' | 'completed' | 'failed' | 'expired';
|
|
3621
3720
|
/**
|
|
3622
3721
|
* Parameters for patching mutable metadata on a task
|
|
3623
3722
|
*/
|
|
@@ -3763,6 +3862,103 @@ interface NotificationDTO {
|
|
|
3763
3862
|
createdAt: string;
|
|
3764
3863
|
}
|
|
3765
3864
|
|
|
3865
|
+
/** Raw database row type for acq_deals table */
|
|
3866
|
+
type AcqDealRow = Database$1['public']['Tables']['acq_deals']['Row'];
|
|
3867
|
+
type DealStage = 'interested' | 'booked' | 'qualified' | 'demo_booked' | 'proposal' | 'proposal_sent' | 'proposal_signed' | 'payment_sent' | 'proposal_revision' | 'closed_won' | 'closed_lost' | 'nurturing' | 'cancelled' | 'no_show';
|
|
3868
|
+
interface DealContact {
|
|
3869
|
+
id: string;
|
|
3870
|
+
first_name: string | null;
|
|
3871
|
+
last_name: string | null;
|
|
3872
|
+
email: string;
|
|
3873
|
+
title: string | null;
|
|
3874
|
+
headline: string | null;
|
|
3875
|
+
linkedin_url: string | null;
|
|
3876
|
+
pipeline_status: Record<string, unknown> | null;
|
|
3877
|
+
enrichment_data: Record<string, unknown> | null;
|
|
3878
|
+
company: {
|
|
3879
|
+
id: string;
|
|
3880
|
+
name: string;
|
|
3881
|
+
domain: string | null;
|
|
3882
|
+
website: string | null;
|
|
3883
|
+
linkedin_url: string | null;
|
|
3884
|
+
segment: string | null;
|
|
3885
|
+
category: string | null;
|
|
3886
|
+
num_employees: number | null;
|
|
3887
|
+
} | null;
|
|
3888
|
+
}
|
|
3889
|
+
interface DealFilters {
|
|
3890
|
+
stage?: DealStage;
|
|
3891
|
+
search?: string;
|
|
3892
|
+
}
|
|
3893
|
+
/** Deal list item with joined contact and company data */
|
|
3894
|
+
interface DealListItem extends AcqDealRow {
|
|
3895
|
+
contact: DealContact | null;
|
|
3896
|
+
}
|
|
3897
|
+
type DealDetail = DealListItem;
|
|
3898
|
+
/** Task kind options for a deal task (human follow-up action type) */
|
|
3899
|
+
type AcqDealTaskKind = 'call' | 'email' | 'meeting' | 'other';
|
|
3900
|
+
/**
|
|
3901
|
+
* A CRM to-do item attached to a deal representing a human follow-up action.
|
|
3902
|
+
* Transformed from AcqDealTaskRow with camelCase properties.
|
|
3903
|
+
*/
|
|
3904
|
+
interface AcqDealTask {
|
|
3905
|
+
id: string;
|
|
3906
|
+
organizationId: string;
|
|
3907
|
+
dealId: string;
|
|
3908
|
+
title: string;
|
|
3909
|
+
description: string | null;
|
|
3910
|
+
kind: AcqDealTaskKind;
|
|
3911
|
+
dueAt: string | null;
|
|
3912
|
+
assigneeUserId: string | null;
|
|
3913
|
+
completedAt: string | null;
|
|
3914
|
+
completedByUserId: string | null;
|
|
3915
|
+
createdAt: string;
|
|
3916
|
+
updatedAt: string;
|
|
3917
|
+
createdByUserId: string | null;
|
|
3918
|
+
}
|
|
3919
|
+
/**
|
|
3920
|
+
* Aggregated pipeline telemetry for a single acquisition batch.
|
|
3921
|
+
* Stage counts reflect how far companies/contacts have progressed through
|
|
3922
|
+
* the lead-gen pipeline for the given batchId.
|
|
3923
|
+
*/
|
|
3924
|
+
interface BatchTelemetry {
|
|
3925
|
+
batchId: string;
|
|
3926
|
+
totalCompanies: number;
|
|
3927
|
+
totalContacts: number;
|
|
3928
|
+
/** Per-stage company and contact counts derived from pipeline_status fields */
|
|
3929
|
+
stageCounts: {
|
|
3930
|
+
/** Companies where pipeline_status.acquired === true */
|
|
3931
|
+
scraped: number;
|
|
3932
|
+
/** Companies where pipeline_status.enrichment.websiteCrawl?.status === 'complete' */
|
|
3933
|
+
extracted: number;
|
|
3934
|
+
/** Companies where category_pain != null */
|
|
3935
|
+
categoryPained: number;
|
|
3936
|
+
/** Companies where category != null AND category_pain != null */
|
|
3937
|
+
qualified: number;
|
|
3938
|
+
/** Total contacts belonging to the batch */
|
|
3939
|
+
discovered: number;
|
|
3940
|
+
/** Contacts where email_valid != null */
|
|
3941
|
+
verified: number;
|
|
3942
|
+
/** Contacts where pipeline_status.personalization.status === 'complete' */
|
|
3943
|
+
personalized: number;
|
|
3944
|
+
};
|
|
3945
|
+
/** Email deliverability breakdown for contacts in the batch */
|
|
3946
|
+
deliverability: {
|
|
3947
|
+
/** Contacts where email_valid === 'VALID' */
|
|
3948
|
+
valid: number;
|
|
3949
|
+
/** Contacts where email_valid === 'RISKY' */
|
|
3950
|
+
risky: number;
|
|
3951
|
+
/** Contacts where email_valid === 'INVALID' */
|
|
3952
|
+
invalid: number;
|
|
3953
|
+
/** Contacts where email_valid === 'UNKNOWN' or email_valid is null */
|
|
3954
|
+
unknown: number;
|
|
3955
|
+
/** Contacts where pipeline_status.outreach.status === 'bounced' */
|
|
3956
|
+
bounced: number;
|
|
3957
|
+
};
|
|
3958
|
+
/** Reserved for future use — active workflow IDs associated with this batch */
|
|
3959
|
+
activeWorkflows?: string[];
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3766
3962
|
type MessageType = MessageEvent['type'];
|
|
3767
3963
|
/**
|
|
3768
3964
|
* Session Data Transfer Object (DTO)
|
|
@@ -5181,7 +5377,7 @@ interface Deployment {
|
|
|
5181
5377
|
}
|
|
5182
5378
|
|
|
5183
5379
|
declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeRange, priorityMin, priorityMax, }?: {
|
|
5184
|
-
status?: TaskStatus;
|
|
5380
|
+
status?: TaskStatus$1;
|
|
5185
5381
|
limit?: number;
|
|
5186
5382
|
offset?: number;
|
|
5187
5383
|
humanCheckpoint?: string;
|
|
@@ -5201,7 +5397,7 @@ declare function useCommandQueue({ status, limit, offset, humanCheckpoint, timeR
|
|
|
5201
5397
|
description?: string;
|
|
5202
5398
|
priority: number;
|
|
5203
5399
|
humanCheckpoint?: string;
|
|
5204
|
-
status: TaskStatus;
|
|
5400
|
+
status: TaskStatus$1;
|
|
5205
5401
|
targetResourceId?: string;
|
|
5206
5402
|
targetResourceType?: "agent" | "workflow";
|
|
5207
5403
|
targetExecutionId?: string;
|
|
@@ -5239,7 +5435,7 @@ interface SubmitActionResponse {
|
|
|
5239
5435
|
}
|
|
5240
5436
|
declare function useSubmitAction(): _tanstack_react_query.UseMutationResult<SubmitActionResponse, Error, SubmitActionRequest, OptimisticContext>;
|
|
5241
5437
|
|
|
5242
|
-
declare function useDeleteTask(): _tanstack_react_query.UseMutationResult<void, Error, string, {
|
|
5438
|
+
declare function useDeleteTask$1(): _tanstack_react_query.UseMutationResult<void, Error, string, {
|
|
5243
5439
|
previousData: Map<readonly unknown[], Task[] | undefined>;
|
|
5244
5440
|
}>;
|
|
5245
5441
|
|
|
@@ -5538,6 +5734,2452 @@ interface ExecutionLogMessage {
|
|
|
5538
5734
|
context?: LogContext
|
|
5539
5735
|
}
|
|
5540
5736
|
|
|
5737
|
+
type Json =
|
|
5738
|
+
| string
|
|
5739
|
+
| number
|
|
5740
|
+
| boolean
|
|
5741
|
+
| null
|
|
5742
|
+
| { [key: string]: Json | undefined }
|
|
5743
|
+
| Json[]
|
|
5744
|
+
|
|
5745
|
+
type Database = {
|
|
5746
|
+
// Allows to automatically instantiate createClient with right options
|
|
5747
|
+
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
|
|
5748
|
+
__InternalSupabase: {
|
|
5749
|
+
PostgrestVersion: "12.2.3 (519615d)"
|
|
5750
|
+
}
|
|
5751
|
+
public: {
|
|
5752
|
+
Tables: {
|
|
5753
|
+
acq_companies: {
|
|
5754
|
+
Row: {
|
|
5755
|
+
batch_id: string | null
|
|
5756
|
+
category: string | null
|
|
5757
|
+
category_pain: string | null
|
|
5758
|
+
created_at: string
|
|
5759
|
+
domain: string | null
|
|
5760
|
+
enrichment_data: Json | null
|
|
5761
|
+
filter_reason: string | null
|
|
5762
|
+
founded_year: number | null
|
|
5763
|
+
id: string
|
|
5764
|
+
linkedin_url: string | null
|
|
5765
|
+
location_city: string | null
|
|
5766
|
+
location_state: string | null
|
|
5767
|
+
name: string
|
|
5768
|
+
num_employees: number | null
|
|
5769
|
+
organization_id: string
|
|
5770
|
+
pipeline_status: Json
|
|
5771
|
+
segment: string | null
|
|
5772
|
+
source: string | null
|
|
5773
|
+
status: string
|
|
5774
|
+
updated_at: string
|
|
5775
|
+
website: string | null
|
|
5776
|
+
}
|
|
5777
|
+
Insert: {
|
|
5778
|
+
batch_id?: string | null
|
|
5779
|
+
category?: string | null
|
|
5780
|
+
category_pain?: string | null
|
|
5781
|
+
created_at?: string
|
|
5782
|
+
domain?: string | null
|
|
5783
|
+
enrichment_data?: Json | null
|
|
5784
|
+
filter_reason?: string | null
|
|
5785
|
+
founded_year?: number | null
|
|
5786
|
+
id?: string
|
|
5787
|
+
linkedin_url?: string | null
|
|
5788
|
+
location_city?: string | null
|
|
5789
|
+
location_state?: string | null
|
|
5790
|
+
name: string
|
|
5791
|
+
num_employees?: number | null
|
|
5792
|
+
organization_id: string
|
|
5793
|
+
pipeline_status?: Json
|
|
5794
|
+
segment?: string | null
|
|
5795
|
+
source?: string | null
|
|
5796
|
+
status?: string
|
|
5797
|
+
updated_at?: string
|
|
5798
|
+
website?: string | null
|
|
5799
|
+
}
|
|
5800
|
+
Update: {
|
|
5801
|
+
batch_id?: string | null
|
|
5802
|
+
category?: string | null
|
|
5803
|
+
category_pain?: string | null
|
|
5804
|
+
created_at?: string
|
|
5805
|
+
domain?: string | null
|
|
5806
|
+
enrichment_data?: Json | null
|
|
5807
|
+
filter_reason?: string | null
|
|
5808
|
+
founded_year?: number | null
|
|
5809
|
+
id?: string
|
|
5810
|
+
linkedin_url?: string | null
|
|
5811
|
+
location_city?: string | null
|
|
5812
|
+
location_state?: string | null
|
|
5813
|
+
name?: string
|
|
5814
|
+
num_employees?: number | null
|
|
5815
|
+
organization_id?: string
|
|
5816
|
+
pipeline_status?: Json
|
|
5817
|
+
segment?: string | null
|
|
5818
|
+
source?: string | null
|
|
5819
|
+
status?: string
|
|
5820
|
+
updated_at?: string
|
|
5821
|
+
website?: string | null
|
|
5822
|
+
}
|
|
5823
|
+
Relationships: [
|
|
5824
|
+
{
|
|
5825
|
+
foreignKeyName: "acq_companies_organization_id_fkey"
|
|
5826
|
+
columns: ["organization_id"]
|
|
5827
|
+
isOneToOne: false
|
|
5828
|
+
referencedRelation: "organizations"
|
|
5829
|
+
referencedColumns: ["id"]
|
|
5830
|
+
},
|
|
5831
|
+
]
|
|
5832
|
+
}
|
|
5833
|
+
acq_contacts: {
|
|
5834
|
+
Row: {
|
|
5835
|
+
batch_id: string | null
|
|
5836
|
+
brochure_first_viewed_at: string | null
|
|
5837
|
+
brochure_view_count: number
|
|
5838
|
+
company_id: string | null
|
|
5839
|
+
created_at: string
|
|
5840
|
+
email: string
|
|
5841
|
+
email_valid: string | null
|
|
5842
|
+
enrichment_data: Json
|
|
5843
|
+
filter_reason: string | null
|
|
5844
|
+
first_name: string | null
|
|
5845
|
+
headline: string | null
|
|
5846
|
+
id: string
|
|
5847
|
+
last_name: string | null
|
|
5848
|
+
linkedin_url: string | null
|
|
5849
|
+
nurture: boolean
|
|
5850
|
+
opening_line: string | null
|
|
5851
|
+
organization_id: string
|
|
5852
|
+
pipeline_status: Json
|
|
5853
|
+
source: string | null
|
|
5854
|
+
source_id: string | null
|
|
5855
|
+
status: string
|
|
5856
|
+
title: string | null
|
|
5857
|
+
updated_at: string
|
|
5858
|
+
}
|
|
5859
|
+
Insert: {
|
|
5860
|
+
batch_id?: string | null
|
|
5861
|
+
brochure_first_viewed_at?: string | null
|
|
5862
|
+
brochure_view_count?: number
|
|
5863
|
+
company_id?: string | null
|
|
5864
|
+
created_at?: string
|
|
5865
|
+
email: string
|
|
5866
|
+
email_valid?: string | null
|
|
5867
|
+
enrichment_data?: Json
|
|
5868
|
+
filter_reason?: string | null
|
|
5869
|
+
first_name?: string | null
|
|
5870
|
+
headline?: string | null
|
|
5871
|
+
id?: string
|
|
5872
|
+
last_name?: string | null
|
|
5873
|
+
linkedin_url?: string | null
|
|
5874
|
+
nurture?: boolean
|
|
5875
|
+
opening_line?: string | null
|
|
5876
|
+
organization_id: string
|
|
5877
|
+
pipeline_status?: Json
|
|
5878
|
+
source?: string | null
|
|
5879
|
+
source_id?: string | null
|
|
5880
|
+
status?: string
|
|
5881
|
+
title?: string | null
|
|
5882
|
+
updated_at?: string
|
|
5883
|
+
}
|
|
5884
|
+
Update: {
|
|
5885
|
+
batch_id?: string | null
|
|
5886
|
+
brochure_first_viewed_at?: string | null
|
|
5887
|
+
brochure_view_count?: number
|
|
5888
|
+
company_id?: string | null
|
|
5889
|
+
created_at?: string
|
|
5890
|
+
email?: string
|
|
5891
|
+
email_valid?: string | null
|
|
5892
|
+
enrichment_data?: Json
|
|
5893
|
+
filter_reason?: string | null
|
|
5894
|
+
first_name?: string | null
|
|
5895
|
+
headline?: string | null
|
|
5896
|
+
id?: string
|
|
5897
|
+
last_name?: string | null
|
|
5898
|
+
linkedin_url?: string | null
|
|
5899
|
+
nurture?: boolean
|
|
5900
|
+
opening_line?: string | null
|
|
5901
|
+
organization_id?: string
|
|
5902
|
+
pipeline_status?: Json
|
|
5903
|
+
source?: string | null
|
|
5904
|
+
source_id?: string | null
|
|
5905
|
+
status?: string
|
|
5906
|
+
title?: string | null
|
|
5907
|
+
updated_at?: string
|
|
5908
|
+
}
|
|
5909
|
+
Relationships: [
|
|
5910
|
+
{
|
|
5911
|
+
foreignKeyName: "acq_contacts_company_id_fkey"
|
|
5912
|
+
columns: ["company_id"]
|
|
5913
|
+
isOneToOne: false
|
|
5914
|
+
referencedRelation: "acq_companies"
|
|
5915
|
+
referencedColumns: ["id"]
|
|
5916
|
+
},
|
|
5917
|
+
{
|
|
5918
|
+
foreignKeyName: "acq_contacts_organization_id_fkey"
|
|
5919
|
+
columns: ["organization_id"]
|
|
5920
|
+
isOneToOne: false
|
|
5921
|
+
referencedRelation: "organizations"
|
|
5922
|
+
referencedColumns: ["id"]
|
|
5923
|
+
},
|
|
5924
|
+
]
|
|
5925
|
+
}
|
|
5926
|
+
acq_content: {
|
|
5927
|
+
Row: {
|
|
5928
|
+
body: string | null
|
|
5929
|
+
created_at: string
|
|
5930
|
+
id: string
|
|
5931
|
+
organization_id: string
|
|
5932
|
+
pillar: string
|
|
5933
|
+
status: string
|
|
5934
|
+
title: string
|
|
5935
|
+
updated_at: string
|
|
5936
|
+
}
|
|
5937
|
+
Insert: {
|
|
5938
|
+
body?: string | null
|
|
5939
|
+
created_at?: string
|
|
5940
|
+
id?: string
|
|
5941
|
+
organization_id: string
|
|
5942
|
+
pillar: string
|
|
5943
|
+
status?: string
|
|
5944
|
+
title: string
|
|
5945
|
+
updated_at?: string
|
|
5946
|
+
}
|
|
5947
|
+
Update: {
|
|
5948
|
+
body?: string | null
|
|
5949
|
+
created_at?: string
|
|
5950
|
+
id?: string
|
|
5951
|
+
organization_id?: string
|
|
5952
|
+
pillar?: string
|
|
5953
|
+
status?: string
|
|
5954
|
+
title?: string
|
|
5955
|
+
updated_at?: string
|
|
5956
|
+
}
|
|
5957
|
+
Relationships: [
|
|
5958
|
+
{
|
|
5959
|
+
foreignKeyName: "acq_content_organization_id_fkey"
|
|
5960
|
+
columns: ["organization_id"]
|
|
5961
|
+
isOneToOne: false
|
|
5962
|
+
referencedRelation: "organizations"
|
|
5963
|
+
referencedColumns: ["id"]
|
|
5964
|
+
},
|
|
5965
|
+
]
|
|
5966
|
+
}
|
|
5967
|
+
acq_content_distributions: {
|
|
5968
|
+
Row: {
|
|
5969
|
+
adapted_body: string | null
|
|
5970
|
+
checklist: Json | null
|
|
5971
|
+
content_id: string
|
|
5972
|
+
created_at: string
|
|
5973
|
+
format: string
|
|
5974
|
+
id: string
|
|
5975
|
+
media_urls: Json
|
|
5976
|
+
metrics: Json
|
|
5977
|
+
metrics_updated_at: string | null
|
|
5978
|
+
organization_id: string
|
|
5979
|
+
platform: string
|
|
5980
|
+
platform_content: Json | null
|
|
5981
|
+
platform_post_id: string | null
|
|
5982
|
+
platform_url: string | null
|
|
5983
|
+
published_at: string | null
|
|
5984
|
+
status: string
|
|
5985
|
+
updated_at: string
|
|
5986
|
+
}
|
|
5987
|
+
Insert: {
|
|
5988
|
+
adapted_body?: string | null
|
|
5989
|
+
checklist?: Json | null
|
|
5990
|
+
content_id: string
|
|
5991
|
+
created_at?: string
|
|
5992
|
+
format: string
|
|
5993
|
+
id?: string
|
|
5994
|
+
media_urls?: Json
|
|
5995
|
+
metrics?: Json
|
|
5996
|
+
metrics_updated_at?: string | null
|
|
5997
|
+
organization_id: string
|
|
5998
|
+
platform: string
|
|
5999
|
+
platform_content?: Json | null
|
|
6000
|
+
platform_post_id?: string | null
|
|
6001
|
+
platform_url?: string | null
|
|
6002
|
+
published_at?: string | null
|
|
6003
|
+
status?: string
|
|
6004
|
+
updated_at?: string
|
|
6005
|
+
}
|
|
6006
|
+
Update: {
|
|
6007
|
+
adapted_body?: string | null
|
|
6008
|
+
checklist?: Json | null
|
|
6009
|
+
content_id?: string
|
|
6010
|
+
created_at?: string
|
|
6011
|
+
format?: string
|
|
6012
|
+
id?: string
|
|
6013
|
+
media_urls?: Json
|
|
6014
|
+
metrics?: Json
|
|
6015
|
+
metrics_updated_at?: string | null
|
|
6016
|
+
organization_id?: string
|
|
6017
|
+
platform?: string
|
|
6018
|
+
platform_content?: Json | null
|
|
6019
|
+
platform_post_id?: string | null
|
|
6020
|
+
platform_url?: string | null
|
|
6021
|
+
published_at?: string | null
|
|
6022
|
+
status?: string
|
|
6023
|
+
updated_at?: string
|
|
6024
|
+
}
|
|
6025
|
+
Relationships: [
|
|
6026
|
+
{
|
|
6027
|
+
foreignKeyName: "acq_content_distributions_content_id_fkey"
|
|
6028
|
+
columns: ["content_id"]
|
|
6029
|
+
isOneToOne: false
|
|
6030
|
+
referencedRelation: "acq_content"
|
|
6031
|
+
referencedColumns: ["id"]
|
|
6032
|
+
},
|
|
6033
|
+
{
|
|
6034
|
+
foreignKeyName: "acq_content_distributions_organization_id_fkey"
|
|
6035
|
+
columns: ["organization_id"]
|
|
6036
|
+
isOneToOne: false
|
|
6037
|
+
referencedRelation: "organizations"
|
|
6038
|
+
referencedColumns: ["id"]
|
|
6039
|
+
},
|
|
6040
|
+
]
|
|
6041
|
+
}
|
|
6042
|
+
acq_deal_notes: {
|
|
6043
|
+
Row: {
|
|
6044
|
+
author_user_id: string | null
|
|
6045
|
+
body: string
|
|
6046
|
+
created_at: string
|
|
6047
|
+
deal_id: string
|
|
6048
|
+
id: string
|
|
6049
|
+
organization_id: string
|
|
6050
|
+
updated_at: string
|
|
6051
|
+
}
|
|
6052
|
+
Insert: {
|
|
6053
|
+
author_user_id?: string | null
|
|
6054
|
+
body: string
|
|
6055
|
+
created_at?: string
|
|
6056
|
+
deal_id: string
|
|
6057
|
+
id?: string
|
|
6058
|
+
organization_id: string
|
|
6059
|
+
updated_at?: string
|
|
6060
|
+
}
|
|
6061
|
+
Update: {
|
|
6062
|
+
author_user_id?: string | null
|
|
6063
|
+
body?: string
|
|
6064
|
+
created_at?: string
|
|
6065
|
+
deal_id?: string
|
|
6066
|
+
id?: string
|
|
6067
|
+
organization_id?: string
|
|
6068
|
+
updated_at?: string
|
|
6069
|
+
}
|
|
6070
|
+
Relationships: [
|
|
6071
|
+
{
|
|
6072
|
+
foreignKeyName: "acq_deal_notes_deal_id_fkey"
|
|
6073
|
+
columns: ["deal_id"]
|
|
6074
|
+
isOneToOne: false
|
|
6075
|
+
referencedRelation: "acq_deals"
|
|
6076
|
+
referencedColumns: ["id"]
|
|
6077
|
+
},
|
|
6078
|
+
{
|
|
6079
|
+
foreignKeyName: "acq_deal_notes_organization_id_fkey"
|
|
6080
|
+
columns: ["organization_id"]
|
|
6081
|
+
isOneToOne: false
|
|
6082
|
+
referencedRelation: "organizations"
|
|
6083
|
+
referencedColumns: ["id"]
|
|
6084
|
+
},
|
|
6085
|
+
]
|
|
6086
|
+
}
|
|
6087
|
+
acq_deal_tasks: {
|
|
6088
|
+
Row: {
|
|
6089
|
+
assignee_user_id: string | null
|
|
6090
|
+
completed_at: string | null
|
|
6091
|
+
completed_by_user_id: string | null
|
|
6092
|
+
created_at: string
|
|
6093
|
+
created_by_user_id: string | null
|
|
6094
|
+
deal_id: string
|
|
6095
|
+
description: string | null
|
|
6096
|
+
due_at: string | null
|
|
6097
|
+
id: string
|
|
6098
|
+
kind: string
|
|
6099
|
+
organization_id: string
|
|
6100
|
+
title: string
|
|
6101
|
+
updated_at: string
|
|
6102
|
+
}
|
|
6103
|
+
Insert: {
|
|
6104
|
+
assignee_user_id?: string | null
|
|
6105
|
+
completed_at?: string | null
|
|
6106
|
+
completed_by_user_id?: string | null
|
|
6107
|
+
created_at?: string
|
|
6108
|
+
created_by_user_id?: string | null
|
|
6109
|
+
deal_id: string
|
|
6110
|
+
description?: string | null
|
|
6111
|
+
due_at?: string | null
|
|
6112
|
+
id?: string
|
|
6113
|
+
kind?: string
|
|
6114
|
+
organization_id: string
|
|
6115
|
+
title: string
|
|
6116
|
+
updated_at?: string
|
|
6117
|
+
}
|
|
6118
|
+
Update: {
|
|
6119
|
+
assignee_user_id?: string | null
|
|
6120
|
+
completed_at?: string | null
|
|
6121
|
+
completed_by_user_id?: string | null
|
|
6122
|
+
created_at?: string
|
|
6123
|
+
created_by_user_id?: string | null
|
|
6124
|
+
deal_id?: string
|
|
6125
|
+
description?: string | null
|
|
6126
|
+
due_at?: string | null
|
|
6127
|
+
id?: string
|
|
6128
|
+
kind?: string
|
|
6129
|
+
organization_id?: string
|
|
6130
|
+
title?: string
|
|
6131
|
+
updated_at?: string
|
|
6132
|
+
}
|
|
6133
|
+
Relationships: [
|
|
6134
|
+
{
|
|
6135
|
+
foreignKeyName: "acq_deal_tasks_deal_id_fkey"
|
|
6136
|
+
columns: ["deal_id"]
|
|
6137
|
+
isOneToOne: false
|
|
6138
|
+
referencedRelation: "acq_deals"
|
|
6139
|
+
referencedColumns: ["id"]
|
|
6140
|
+
},
|
|
6141
|
+
{
|
|
6142
|
+
foreignKeyName: "acq_deal_tasks_organization_id_fkey"
|
|
6143
|
+
columns: ["organization_id"]
|
|
6144
|
+
isOneToOne: false
|
|
6145
|
+
referencedRelation: "organizations"
|
|
6146
|
+
referencedColumns: ["id"]
|
|
6147
|
+
},
|
|
6148
|
+
]
|
|
6149
|
+
}
|
|
6150
|
+
acq_deals: {
|
|
6151
|
+
Row: {
|
|
6152
|
+
activity_log: Json
|
|
6153
|
+
cached_stage: string | null
|
|
6154
|
+
closed_lost_at: string | null
|
|
6155
|
+
closed_lost_reason: string | null
|
|
6156
|
+
contact_email: string
|
|
6157
|
+
contact_id: string | null
|
|
6158
|
+
created_at: string
|
|
6159
|
+
discovery_data: Json | null
|
|
6160
|
+
discovery_submitted_at: string | null
|
|
6161
|
+
discovery_submitted_by: string | null
|
|
6162
|
+
id: string
|
|
6163
|
+
initial_fee: number | null
|
|
6164
|
+
monthly_fee: number | null
|
|
6165
|
+
organization_id: string
|
|
6166
|
+
payment_link_sent_at: string | null
|
|
6167
|
+
payment_received_at: string | null
|
|
6168
|
+
proposal_data: Json | null
|
|
6169
|
+
proposal_generated_at: string | null
|
|
6170
|
+
proposal_pdf_url: string | null
|
|
6171
|
+
proposal_reviewed_at: string | null
|
|
6172
|
+
proposal_reviewed_by: string | null
|
|
6173
|
+
proposal_sent_at: string | null
|
|
6174
|
+
proposal_signed_at: string | null
|
|
6175
|
+
proposal_status: string | null
|
|
6176
|
+
signature_envelope_id: string | null
|
|
6177
|
+
source_list_id: string | null
|
|
6178
|
+
source_type: string | null
|
|
6179
|
+
stripe_payment_id: string | null
|
|
6180
|
+
stripe_payment_link: string | null
|
|
6181
|
+
stripe_payment_link_id: string | null
|
|
6182
|
+
stripe_subscription_id: string | null
|
|
6183
|
+
updated_at: string
|
|
6184
|
+
}
|
|
6185
|
+
Insert: {
|
|
6186
|
+
activity_log?: Json
|
|
6187
|
+
cached_stage?: string | null
|
|
6188
|
+
closed_lost_at?: string | null
|
|
6189
|
+
closed_lost_reason?: string | null
|
|
6190
|
+
contact_email: string
|
|
6191
|
+
contact_id?: string | null
|
|
6192
|
+
created_at?: string
|
|
6193
|
+
discovery_data?: Json | null
|
|
6194
|
+
discovery_submitted_at?: string | null
|
|
6195
|
+
discovery_submitted_by?: string | null
|
|
6196
|
+
id?: string
|
|
6197
|
+
initial_fee?: number | null
|
|
6198
|
+
monthly_fee?: number | null
|
|
6199
|
+
organization_id: string
|
|
6200
|
+
payment_link_sent_at?: string | null
|
|
6201
|
+
payment_received_at?: string | null
|
|
6202
|
+
proposal_data?: Json | null
|
|
6203
|
+
proposal_generated_at?: string | null
|
|
6204
|
+
proposal_pdf_url?: string | null
|
|
6205
|
+
proposal_reviewed_at?: string | null
|
|
6206
|
+
proposal_reviewed_by?: string | null
|
|
6207
|
+
proposal_sent_at?: string | null
|
|
6208
|
+
proposal_signed_at?: string | null
|
|
6209
|
+
proposal_status?: string | null
|
|
6210
|
+
signature_envelope_id?: string | null
|
|
6211
|
+
source_list_id?: string | null
|
|
6212
|
+
source_type?: string | null
|
|
6213
|
+
stripe_payment_id?: string | null
|
|
6214
|
+
stripe_payment_link?: string | null
|
|
6215
|
+
stripe_payment_link_id?: string | null
|
|
6216
|
+
stripe_subscription_id?: string | null
|
|
6217
|
+
updated_at?: string
|
|
6218
|
+
}
|
|
6219
|
+
Update: {
|
|
6220
|
+
activity_log?: Json
|
|
6221
|
+
cached_stage?: string | null
|
|
6222
|
+
closed_lost_at?: string | null
|
|
6223
|
+
closed_lost_reason?: string | null
|
|
6224
|
+
contact_email?: string
|
|
6225
|
+
contact_id?: string | null
|
|
6226
|
+
created_at?: string
|
|
6227
|
+
discovery_data?: Json | null
|
|
6228
|
+
discovery_submitted_at?: string | null
|
|
6229
|
+
discovery_submitted_by?: string | null
|
|
6230
|
+
id?: string
|
|
6231
|
+
initial_fee?: number | null
|
|
6232
|
+
monthly_fee?: number | null
|
|
6233
|
+
organization_id?: string
|
|
6234
|
+
payment_link_sent_at?: string | null
|
|
6235
|
+
payment_received_at?: string | null
|
|
6236
|
+
proposal_data?: Json | null
|
|
6237
|
+
proposal_generated_at?: string | null
|
|
6238
|
+
proposal_pdf_url?: string | null
|
|
6239
|
+
proposal_reviewed_at?: string | null
|
|
6240
|
+
proposal_reviewed_by?: string | null
|
|
6241
|
+
proposal_sent_at?: string | null
|
|
6242
|
+
proposal_signed_at?: string | null
|
|
6243
|
+
proposal_status?: string | null
|
|
6244
|
+
signature_envelope_id?: string | null
|
|
6245
|
+
source_list_id?: string | null
|
|
6246
|
+
source_type?: string | null
|
|
6247
|
+
stripe_payment_id?: string | null
|
|
6248
|
+
stripe_payment_link?: string | null
|
|
6249
|
+
stripe_payment_link_id?: string | null
|
|
6250
|
+
stripe_subscription_id?: string | null
|
|
6251
|
+
updated_at?: string
|
|
6252
|
+
}
|
|
6253
|
+
Relationships: [
|
|
6254
|
+
{
|
|
6255
|
+
foreignKeyName: "acq_deals_contact_id_fkey"
|
|
6256
|
+
columns: ["contact_id"]
|
|
6257
|
+
isOneToOne: false
|
|
6258
|
+
referencedRelation: "acq_contacts"
|
|
6259
|
+
referencedColumns: ["id"]
|
|
6260
|
+
},
|
|
6261
|
+
{
|
|
6262
|
+
foreignKeyName: "acq_deals_organization_id_fkey"
|
|
6263
|
+
columns: ["organization_id"]
|
|
6264
|
+
isOneToOne: false
|
|
6265
|
+
referencedRelation: "organizations"
|
|
6266
|
+
referencedColumns: ["id"]
|
|
6267
|
+
},
|
|
6268
|
+
{
|
|
6269
|
+
foreignKeyName: "acq_deals_source_list_id_fkey"
|
|
6270
|
+
columns: ["source_list_id"]
|
|
6271
|
+
isOneToOne: false
|
|
6272
|
+
referencedRelation: "acq_lists"
|
|
6273
|
+
referencedColumns: ["id"]
|
|
6274
|
+
},
|
|
6275
|
+
]
|
|
6276
|
+
}
|
|
6277
|
+
acq_list_members: {
|
|
6278
|
+
Row: {
|
|
6279
|
+
added_at: string
|
|
6280
|
+
added_by: string | null
|
|
6281
|
+
contact_id: string
|
|
6282
|
+
id: string
|
|
6283
|
+
list_id: string
|
|
6284
|
+
}
|
|
6285
|
+
Insert: {
|
|
6286
|
+
added_at?: string
|
|
6287
|
+
added_by?: string | null
|
|
6288
|
+
contact_id: string
|
|
6289
|
+
id?: string
|
|
6290
|
+
list_id: string
|
|
6291
|
+
}
|
|
6292
|
+
Update: {
|
|
6293
|
+
added_at?: string
|
|
6294
|
+
added_by?: string | null
|
|
6295
|
+
contact_id?: string
|
|
6296
|
+
id?: string
|
|
6297
|
+
list_id?: string
|
|
6298
|
+
}
|
|
6299
|
+
Relationships: [
|
|
6300
|
+
{
|
|
6301
|
+
foreignKeyName: "acq_list_members_contact_id_fkey"
|
|
6302
|
+
columns: ["contact_id"]
|
|
6303
|
+
isOneToOne: false
|
|
6304
|
+
referencedRelation: "acq_contacts"
|
|
6305
|
+
referencedColumns: ["id"]
|
|
6306
|
+
},
|
|
6307
|
+
{
|
|
6308
|
+
foreignKeyName: "acq_list_members_list_id_fkey"
|
|
6309
|
+
columns: ["list_id"]
|
|
6310
|
+
isOneToOne: false
|
|
6311
|
+
referencedRelation: "acq_lists"
|
|
6312
|
+
referencedColumns: ["id"]
|
|
6313
|
+
},
|
|
6314
|
+
]
|
|
6315
|
+
}
|
|
6316
|
+
acq_lists: {
|
|
6317
|
+
Row: {
|
|
6318
|
+
batch_ids: string[]
|
|
6319
|
+
completed_at: string | null
|
|
6320
|
+
created_at: string
|
|
6321
|
+
description: string | null
|
|
6322
|
+
id: string
|
|
6323
|
+
instantly_campaign_id: string | null
|
|
6324
|
+
launched_at: string | null
|
|
6325
|
+
metadata: Json
|
|
6326
|
+
name: string
|
|
6327
|
+
organization_id: string
|
|
6328
|
+
status: string
|
|
6329
|
+
type: string
|
|
6330
|
+
}
|
|
6331
|
+
Insert: {
|
|
6332
|
+
batch_ids?: string[]
|
|
6333
|
+
completed_at?: string | null
|
|
6334
|
+
created_at?: string
|
|
6335
|
+
description?: string | null
|
|
6336
|
+
id?: string
|
|
6337
|
+
instantly_campaign_id?: string | null
|
|
6338
|
+
launched_at?: string | null
|
|
6339
|
+
metadata?: Json
|
|
6340
|
+
name: string
|
|
6341
|
+
organization_id: string
|
|
6342
|
+
status?: string
|
|
6343
|
+
type?: string
|
|
6344
|
+
}
|
|
6345
|
+
Update: {
|
|
6346
|
+
batch_ids?: string[]
|
|
6347
|
+
completed_at?: string | null
|
|
6348
|
+
created_at?: string
|
|
6349
|
+
description?: string | null
|
|
6350
|
+
id?: string
|
|
6351
|
+
instantly_campaign_id?: string | null
|
|
6352
|
+
launched_at?: string | null
|
|
6353
|
+
metadata?: Json
|
|
6354
|
+
name?: string
|
|
6355
|
+
organization_id?: string
|
|
6356
|
+
status?: string
|
|
6357
|
+
type?: string
|
|
6358
|
+
}
|
|
6359
|
+
Relationships: [
|
|
6360
|
+
{
|
|
6361
|
+
foreignKeyName: "acq_lists_organization_id_fkey"
|
|
6362
|
+
columns: ["organization_id"]
|
|
6363
|
+
isOneToOne: false
|
|
6364
|
+
referencedRelation: "organizations"
|
|
6365
|
+
referencedColumns: ["id"]
|
|
6366
|
+
},
|
|
6367
|
+
]
|
|
6368
|
+
}
|
|
6369
|
+
acq_seo_metrics: {
|
|
6370
|
+
Row: {
|
|
6371
|
+
ai_citations: Json | null
|
|
6372
|
+
avg_position: number | null
|
|
6373
|
+
clicks: number | null
|
|
6374
|
+
created_at: string
|
|
6375
|
+
cta_clicks: number | null
|
|
6376
|
+
ctr: number | null
|
|
6377
|
+
data_point_count: number | null
|
|
6378
|
+
faq_count: number | null
|
|
6379
|
+
form_submissions: number | null
|
|
6380
|
+
id: string
|
|
6381
|
+
impressions: number | null
|
|
6382
|
+
organization_id: string
|
|
6383
|
+
period: string
|
|
6384
|
+
quality_score: number | null
|
|
6385
|
+
readability: number | null
|
|
6386
|
+
scroll_100: number | null
|
|
6387
|
+
scroll_25: number | null
|
|
6388
|
+
scroll_50: number | null
|
|
6389
|
+
scroll_75: number | null
|
|
6390
|
+
seo_page_id: string
|
|
6391
|
+
word_count: number | null
|
|
6392
|
+
}
|
|
6393
|
+
Insert: {
|
|
6394
|
+
ai_citations?: Json | null
|
|
6395
|
+
avg_position?: number | null
|
|
6396
|
+
clicks?: number | null
|
|
6397
|
+
created_at?: string
|
|
6398
|
+
cta_clicks?: number | null
|
|
6399
|
+
ctr?: number | null
|
|
6400
|
+
data_point_count?: number | null
|
|
6401
|
+
faq_count?: number | null
|
|
6402
|
+
form_submissions?: number | null
|
|
6403
|
+
id?: string
|
|
6404
|
+
impressions?: number | null
|
|
6405
|
+
organization_id: string
|
|
6406
|
+
period: string
|
|
6407
|
+
quality_score?: number | null
|
|
6408
|
+
readability?: number | null
|
|
6409
|
+
scroll_100?: number | null
|
|
6410
|
+
scroll_25?: number | null
|
|
6411
|
+
scroll_50?: number | null
|
|
6412
|
+
scroll_75?: number | null
|
|
6413
|
+
seo_page_id: string
|
|
6414
|
+
word_count?: number | null
|
|
6415
|
+
}
|
|
6416
|
+
Update: {
|
|
6417
|
+
ai_citations?: Json | null
|
|
6418
|
+
avg_position?: number | null
|
|
6419
|
+
clicks?: number | null
|
|
6420
|
+
created_at?: string
|
|
6421
|
+
cta_clicks?: number | null
|
|
6422
|
+
ctr?: number | null
|
|
6423
|
+
data_point_count?: number | null
|
|
6424
|
+
faq_count?: number | null
|
|
6425
|
+
form_submissions?: number | null
|
|
6426
|
+
id?: string
|
|
6427
|
+
impressions?: number | null
|
|
6428
|
+
organization_id?: string
|
|
6429
|
+
period?: string
|
|
6430
|
+
quality_score?: number | null
|
|
6431
|
+
readability?: number | null
|
|
6432
|
+
scroll_100?: number | null
|
|
6433
|
+
scroll_25?: number | null
|
|
6434
|
+
scroll_50?: number | null
|
|
6435
|
+
scroll_75?: number | null
|
|
6436
|
+
seo_page_id?: string
|
|
6437
|
+
word_count?: number | null
|
|
6438
|
+
}
|
|
6439
|
+
Relationships: [
|
|
6440
|
+
{
|
|
6441
|
+
foreignKeyName: "acq_seo_metrics_organization_id_fkey"
|
|
6442
|
+
columns: ["organization_id"]
|
|
6443
|
+
isOneToOne: false
|
|
6444
|
+
referencedRelation: "organizations"
|
|
6445
|
+
referencedColumns: ["id"]
|
|
6446
|
+
},
|
|
6447
|
+
{
|
|
6448
|
+
foreignKeyName: "acq_seo_metrics_seo_page_id_fkey"
|
|
6449
|
+
columns: ["seo_page_id"]
|
|
6450
|
+
isOneToOne: false
|
|
6451
|
+
referencedRelation: "acq_seo_pages"
|
|
6452
|
+
referencedColumns: ["id"]
|
|
6453
|
+
},
|
|
6454
|
+
]
|
|
6455
|
+
}
|
|
6456
|
+
acq_seo_pages: {
|
|
6457
|
+
Row: {
|
|
6458
|
+
city: string | null
|
|
6459
|
+
content: Json | null
|
|
6460
|
+
created_at: string
|
|
6461
|
+
faq_items: Json | null
|
|
6462
|
+
hero_image_url: string | null
|
|
6463
|
+
id: string
|
|
6464
|
+
internal_links: Json | null
|
|
6465
|
+
local_data: Json | null
|
|
6466
|
+
meta_description: string | null
|
|
6467
|
+
organization_id: string
|
|
6468
|
+
page_type: string
|
|
6469
|
+
published_at: string | null
|
|
6470
|
+
refreshed_at: string | null
|
|
6471
|
+
schema_markup: Json | null
|
|
6472
|
+
slug: string
|
|
6473
|
+
state: string | null
|
|
6474
|
+
status: string
|
|
6475
|
+
title: string
|
|
6476
|
+
updated_at: string
|
|
6477
|
+
use_case: string | null
|
|
6478
|
+
vertical: string
|
|
6479
|
+
}
|
|
6480
|
+
Insert: {
|
|
6481
|
+
city?: string | null
|
|
6482
|
+
content?: Json | null
|
|
6483
|
+
created_at?: string
|
|
6484
|
+
faq_items?: Json | null
|
|
6485
|
+
hero_image_url?: string | null
|
|
6486
|
+
id?: string
|
|
6487
|
+
internal_links?: Json | null
|
|
6488
|
+
local_data?: Json | null
|
|
6489
|
+
meta_description?: string | null
|
|
6490
|
+
organization_id: string
|
|
6491
|
+
page_type: string
|
|
6492
|
+
published_at?: string | null
|
|
6493
|
+
refreshed_at?: string | null
|
|
6494
|
+
schema_markup?: Json | null
|
|
6495
|
+
slug: string
|
|
6496
|
+
state?: string | null
|
|
6497
|
+
status?: string
|
|
6498
|
+
title: string
|
|
6499
|
+
updated_at?: string
|
|
6500
|
+
use_case?: string | null
|
|
6501
|
+
vertical: string
|
|
6502
|
+
}
|
|
6503
|
+
Update: {
|
|
6504
|
+
city?: string | null
|
|
6505
|
+
content?: Json | null
|
|
6506
|
+
created_at?: string
|
|
6507
|
+
faq_items?: Json | null
|
|
6508
|
+
hero_image_url?: string | null
|
|
6509
|
+
id?: string
|
|
6510
|
+
internal_links?: Json | null
|
|
6511
|
+
local_data?: Json | null
|
|
6512
|
+
meta_description?: string | null
|
|
6513
|
+
organization_id?: string
|
|
6514
|
+
page_type?: string
|
|
6515
|
+
published_at?: string | null
|
|
6516
|
+
refreshed_at?: string | null
|
|
6517
|
+
schema_markup?: Json | null
|
|
6518
|
+
slug?: string
|
|
6519
|
+
state?: string | null
|
|
6520
|
+
status?: string
|
|
6521
|
+
title?: string
|
|
6522
|
+
updated_at?: string
|
|
6523
|
+
use_case?: string | null
|
|
6524
|
+
vertical?: string
|
|
6525
|
+
}
|
|
6526
|
+
Relationships: [
|
|
6527
|
+
{
|
|
6528
|
+
foreignKeyName: "acq_seo_pages_organization_id_fkey"
|
|
6529
|
+
columns: ["organization_id"]
|
|
6530
|
+
isOneToOne: false
|
|
6531
|
+
referencedRelation: "organizations"
|
|
6532
|
+
referencedColumns: ["id"]
|
|
6533
|
+
},
|
|
6534
|
+
]
|
|
6535
|
+
}
|
|
6536
|
+
acq_social_posts: {
|
|
6537
|
+
Row: {
|
|
6538
|
+
author_name: string
|
|
6539
|
+
author_url: string | null
|
|
6540
|
+
comments_count: number
|
|
6541
|
+
created_at: string
|
|
6542
|
+
discovered_at: string
|
|
6543
|
+
engagement_count: number
|
|
6544
|
+
feedback: string | null
|
|
6545
|
+
final_response: string | null
|
|
6546
|
+
fully_reviewed: boolean
|
|
6547
|
+
id: string
|
|
6548
|
+
initial_draft: string | null
|
|
6549
|
+
matched_keywords: string[]
|
|
6550
|
+
matched_query: string | null
|
|
6551
|
+
metadata: Json
|
|
6552
|
+
organization_id: string
|
|
6553
|
+
platform: string
|
|
6554
|
+
platform_post_id: string
|
|
6555
|
+
post_text: string
|
|
6556
|
+
post_title: string
|
|
6557
|
+
post_url: string
|
|
6558
|
+
posted_at: string
|
|
6559
|
+
relevance_score: number
|
|
6560
|
+
responded_at: string | null
|
|
6561
|
+
reviewed_at: string | null
|
|
6562
|
+
skip_reason: string | null
|
|
6563
|
+
source_category: string | null
|
|
6564
|
+
status: string
|
|
6565
|
+
updated_at: string
|
|
6566
|
+
}
|
|
6567
|
+
Insert: {
|
|
6568
|
+
author_name: string
|
|
6569
|
+
author_url?: string | null
|
|
6570
|
+
comments_count?: number
|
|
6571
|
+
created_at?: string
|
|
6572
|
+
discovered_at?: string
|
|
6573
|
+
engagement_count?: number
|
|
6574
|
+
feedback?: string | null
|
|
6575
|
+
final_response?: string | null
|
|
6576
|
+
fully_reviewed?: boolean
|
|
6577
|
+
id?: string
|
|
6578
|
+
initial_draft?: string | null
|
|
6579
|
+
matched_keywords?: string[]
|
|
6580
|
+
matched_query?: string | null
|
|
6581
|
+
metadata?: Json
|
|
6582
|
+
organization_id: string
|
|
6583
|
+
platform: string
|
|
6584
|
+
platform_post_id: string
|
|
6585
|
+
post_text: string
|
|
6586
|
+
post_title: string
|
|
6587
|
+
post_url: string
|
|
6588
|
+
posted_at: string
|
|
6589
|
+
relevance_score?: number
|
|
6590
|
+
responded_at?: string | null
|
|
6591
|
+
reviewed_at?: string | null
|
|
6592
|
+
skip_reason?: string | null
|
|
6593
|
+
source_category?: string | null
|
|
6594
|
+
status?: string
|
|
6595
|
+
updated_at?: string
|
|
6596
|
+
}
|
|
6597
|
+
Update: {
|
|
6598
|
+
author_name?: string
|
|
6599
|
+
author_url?: string | null
|
|
6600
|
+
comments_count?: number
|
|
6601
|
+
created_at?: string
|
|
6602
|
+
discovered_at?: string
|
|
6603
|
+
engagement_count?: number
|
|
6604
|
+
feedback?: string | null
|
|
6605
|
+
final_response?: string | null
|
|
6606
|
+
fully_reviewed?: boolean
|
|
6607
|
+
id?: string
|
|
6608
|
+
initial_draft?: string | null
|
|
6609
|
+
matched_keywords?: string[]
|
|
6610
|
+
matched_query?: string | null
|
|
6611
|
+
metadata?: Json
|
|
6612
|
+
organization_id?: string
|
|
6613
|
+
platform?: string
|
|
6614
|
+
platform_post_id?: string
|
|
6615
|
+
post_text?: string
|
|
6616
|
+
post_title?: string
|
|
6617
|
+
post_url?: string
|
|
6618
|
+
posted_at?: string
|
|
6619
|
+
relevance_score?: number
|
|
6620
|
+
responded_at?: string | null
|
|
6621
|
+
reviewed_at?: string | null
|
|
6622
|
+
skip_reason?: string | null
|
|
6623
|
+
source_category?: string | null
|
|
6624
|
+
status?: string
|
|
6625
|
+
updated_at?: string
|
|
6626
|
+
}
|
|
6627
|
+
Relationships: [
|
|
6628
|
+
{
|
|
6629
|
+
foreignKeyName: "acq_social_posts_organization_id_fkey"
|
|
6630
|
+
columns: ["organization_id"]
|
|
6631
|
+
isOneToOne: false
|
|
6632
|
+
referencedRelation: "organizations"
|
|
6633
|
+
referencedColumns: ["id"]
|
|
6634
|
+
},
|
|
6635
|
+
]
|
|
6636
|
+
}
|
|
6637
|
+
activities: {
|
|
6638
|
+
Row: {
|
|
6639
|
+
activity_type: string
|
|
6640
|
+
actor_id: string | null
|
|
6641
|
+
actor_type: string | null
|
|
6642
|
+
created_at: string
|
|
6643
|
+
description: string | null
|
|
6644
|
+
entity_id: string
|
|
6645
|
+
entity_name: string | null
|
|
6646
|
+
entity_type: string
|
|
6647
|
+
id: string
|
|
6648
|
+
metadata: Json | null
|
|
6649
|
+
occurred_at: string
|
|
6650
|
+
organization_id: string
|
|
6651
|
+
status: string
|
|
6652
|
+
title: string
|
|
6653
|
+
}
|
|
6654
|
+
Insert: {
|
|
6655
|
+
activity_type: string
|
|
6656
|
+
actor_id?: string | null
|
|
6657
|
+
actor_type?: string | null
|
|
6658
|
+
created_at?: string
|
|
6659
|
+
description?: string | null
|
|
6660
|
+
entity_id: string
|
|
6661
|
+
entity_name?: string | null
|
|
6662
|
+
entity_type: string
|
|
6663
|
+
id?: string
|
|
6664
|
+
metadata?: Json | null
|
|
6665
|
+
occurred_at?: string
|
|
6666
|
+
organization_id: string
|
|
6667
|
+
status: string
|
|
6668
|
+
title: string
|
|
6669
|
+
}
|
|
6670
|
+
Update: {
|
|
6671
|
+
activity_type?: string
|
|
6672
|
+
actor_id?: string | null
|
|
6673
|
+
actor_type?: string | null
|
|
6674
|
+
created_at?: string
|
|
6675
|
+
description?: string | null
|
|
6676
|
+
entity_id?: string
|
|
6677
|
+
entity_name?: string | null
|
|
6678
|
+
entity_type?: string
|
|
6679
|
+
id?: string
|
|
6680
|
+
metadata?: Json | null
|
|
6681
|
+
occurred_at?: string
|
|
6682
|
+
organization_id?: string
|
|
6683
|
+
status?: string
|
|
6684
|
+
title?: string
|
|
6685
|
+
}
|
|
6686
|
+
Relationships: [
|
|
6687
|
+
{
|
|
6688
|
+
foreignKeyName: "activities_organization_id_fkey"
|
|
6689
|
+
columns: ["organization_id"]
|
|
6690
|
+
isOneToOne: false
|
|
6691
|
+
referencedRelation: "organizations"
|
|
6692
|
+
referencedColumns: ["id"]
|
|
6693
|
+
},
|
|
6694
|
+
]
|
|
6695
|
+
}
|
|
6696
|
+
api_keys: {
|
|
6697
|
+
Row: {
|
|
6698
|
+
created_at: string | null
|
|
6699
|
+
id: string
|
|
6700
|
+
key_hash: string
|
|
6701
|
+
last_used_at: string | null
|
|
6702
|
+
name: string
|
|
6703
|
+
organization_id: string
|
|
6704
|
+
}
|
|
6705
|
+
Insert: {
|
|
6706
|
+
created_at?: string | null
|
|
6707
|
+
id?: string
|
|
6708
|
+
key_hash: string
|
|
6709
|
+
last_used_at?: string | null
|
|
6710
|
+
name: string
|
|
6711
|
+
organization_id: string
|
|
6712
|
+
}
|
|
6713
|
+
Update: {
|
|
6714
|
+
created_at?: string | null
|
|
6715
|
+
id?: string
|
|
6716
|
+
key_hash?: string
|
|
6717
|
+
last_used_at?: string | null
|
|
6718
|
+
name?: string
|
|
6719
|
+
organization_id?: string
|
|
6720
|
+
}
|
|
6721
|
+
Relationships: [
|
|
6722
|
+
{
|
|
6723
|
+
foreignKeyName: "api_keys_organization_id_fkey"
|
|
6724
|
+
columns: ["organization_id"]
|
|
6725
|
+
isOneToOne: false
|
|
6726
|
+
referencedRelation: "organizations"
|
|
6727
|
+
referencedColumns: ["id"]
|
|
6728
|
+
},
|
|
6729
|
+
]
|
|
6730
|
+
}
|
|
6731
|
+
calibration_projects: {
|
|
6732
|
+
Row: {
|
|
6733
|
+
created_at: string | null
|
|
6734
|
+
description: string | null
|
|
6735
|
+
id: string
|
|
6736
|
+
name: string
|
|
6737
|
+
organization_id: string
|
|
6738
|
+
resource_id: string
|
|
6739
|
+
resource_type: string
|
|
6740
|
+
updated_at: string | null
|
|
6741
|
+
}
|
|
6742
|
+
Insert: {
|
|
6743
|
+
created_at?: string | null
|
|
6744
|
+
description?: string | null
|
|
6745
|
+
id?: string
|
|
6746
|
+
name: string
|
|
6747
|
+
organization_id: string
|
|
6748
|
+
resource_id: string
|
|
6749
|
+
resource_type: string
|
|
6750
|
+
updated_at?: string | null
|
|
6751
|
+
}
|
|
6752
|
+
Update: {
|
|
6753
|
+
created_at?: string | null
|
|
6754
|
+
description?: string | null
|
|
6755
|
+
id?: string
|
|
6756
|
+
name?: string
|
|
6757
|
+
organization_id?: string
|
|
6758
|
+
resource_id?: string
|
|
6759
|
+
resource_type?: string
|
|
6760
|
+
updated_at?: string | null
|
|
6761
|
+
}
|
|
6762
|
+
Relationships: [
|
|
6763
|
+
{
|
|
6764
|
+
foreignKeyName: "calibration_projects_organization_id_fkey"
|
|
6765
|
+
columns: ["organization_id"]
|
|
6766
|
+
isOneToOne: false
|
|
6767
|
+
referencedRelation: "organizations"
|
|
6768
|
+
referencedColumns: ["id"]
|
|
6769
|
+
},
|
|
6770
|
+
]
|
|
6771
|
+
}
|
|
6772
|
+
calibration_runs: {
|
|
6773
|
+
Row: {
|
|
6774
|
+
completed_at: string | null
|
|
6775
|
+
config_variants: Json
|
|
6776
|
+
created_at: string | null
|
|
6777
|
+
description: string | null
|
|
6778
|
+
execution_mode: string
|
|
6779
|
+
grader_model: string | null
|
|
6780
|
+
grading_rubric: Json | null
|
|
6781
|
+
id: string
|
|
6782
|
+
name: string
|
|
6783
|
+
organization_id: string
|
|
6784
|
+
project_id: string
|
|
6785
|
+
results: Json
|
|
6786
|
+
status: string
|
|
6787
|
+
test_inputs: Json
|
|
6788
|
+
}
|
|
6789
|
+
Insert: {
|
|
6790
|
+
completed_at?: string | null
|
|
6791
|
+
config_variants: Json
|
|
6792
|
+
created_at?: string | null
|
|
6793
|
+
description?: string | null
|
|
6794
|
+
execution_mode?: string
|
|
6795
|
+
grader_model?: string | null
|
|
6796
|
+
grading_rubric?: Json | null
|
|
6797
|
+
id?: string
|
|
6798
|
+
name: string
|
|
6799
|
+
organization_id: string
|
|
6800
|
+
project_id: string
|
|
6801
|
+
results?: Json
|
|
6802
|
+
status?: string
|
|
6803
|
+
test_inputs: Json
|
|
6804
|
+
}
|
|
6805
|
+
Update: {
|
|
6806
|
+
completed_at?: string | null
|
|
6807
|
+
config_variants?: Json
|
|
6808
|
+
created_at?: string | null
|
|
6809
|
+
description?: string | null
|
|
6810
|
+
execution_mode?: string
|
|
6811
|
+
grader_model?: string | null
|
|
6812
|
+
grading_rubric?: Json | null
|
|
6813
|
+
id?: string
|
|
6814
|
+
name?: string
|
|
6815
|
+
organization_id?: string
|
|
6816
|
+
project_id?: string
|
|
6817
|
+
results?: Json
|
|
6818
|
+
status?: string
|
|
6819
|
+
test_inputs?: Json
|
|
6820
|
+
}
|
|
6821
|
+
Relationships: [
|
|
6822
|
+
{
|
|
6823
|
+
foreignKeyName: "calibration_runs_organization_id_fkey"
|
|
6824
|
+
columns: ["organization_id"]
|
|
6825
|
+
isOneToOne: false
|
|
6826
|
+
referencedRelation: "organizations"
|
|
6827
|
+
referencedColumns: ["id"]
|
|
6828
|
+
},
|
|
6829
|
+
{
|
|
6830
|
+
foreignKeyName: "calibration_runs_project_id_fkey"
|
|
6831
|
+
columns: ["project_id"]
|
|
6832
|
+
isOneToOne: false
|
|
6833
|
+
referencedRelation: "calibration_projects"
|
|
6834
|
+
referencedColumns: ["id"]
|
|
6835
|
+
},
|
|
6836
|
+
]
|
|
6837
|
+
}
|
|
6838
|
+
command_queue: {
|
|
6839
|
+
Row: {
|
|
6840
|
+
action_payload: Json | null
|
|
6841
|
+
actions: Json
|
|
6842
|
+
completed_at: string | null
|
|
6843
|
+
completed_by: string | null
|
|
6844
|
+
context: Json
|
|
6845
|
+
created_at: string
|
|
6846
|
+
description: string | null
|
|
6847
|
+
expires_at: string | null
|
|
6848
|
+
human_checkpoint: string | null
|
|
6849
|
+
id: string
|
|
6850
|
+
idempotency_key: string | null
|
|
6851
|
+
metadata: Json | null
|
|
6852
|
+
organization_id: string
|
|
6853
|
+
origin_execution_id: string
|
|
6854
|
+
origin_resource_id: string
|
|
6855
|
+
origin_resource_type: string
|
|
6856
|
+
priority: number
|
|
6857
|
+
selected_action: string | null
|
|
6858
|
+
status: string
|
|
6859
|
+
target_execution_id: string | null
|
|
6860
|
+
target_resource_id: string | null
|
|
6861
|
+
target_resource_type: string | null
|
|
6862
|
+
}
|
|
6863
|
+
Insert: {
|
|
6864
|
+
action_payload?: Json | null
|
|
6865
|
+
actions: Json
|
|
6866
|
+
completed_at?: string | null
|
|
6867
|
+
completed_by?: string | null
|
|
6868
|
+
context: Json
|
|
6869
|
+
created_at?: string
|
|
6870
|
+
description?: string | null
|
|
6871
|
+
expires_at?: string | null
|
|
6872
|
+
human_checkpoint?: string | null
|
|
6873
|
+
id?: string
|
|
6874
|
+
idempotency_key?: string | null
|
|
6875
|
+
metadata?: Json | null
|
|
6876
|
+
organization_id: string
|
|
6877
|
+
origin_execution_id: string
|
|
6878
|
+
origin_resource_id: string
|
|
6879
|
+
origin_resource_type: string
|
|
6880
|
+
priority?: number
|
|
6881
|
+
selected_action?: string | null
|
|
6882
|
+
status?: string
|
|
6883
|
+
target_execution_id?: string | null
|
|
6884
|
+
target_resource_id?: string | null
|
|
6885
|
+
target_resource_type?: string | null
|
|
6886
|
+
}
|
|
6887
|
+
Update: {
|
|
6888
|
+
action_payload?: Json | null
|
|
6889
|
+
actions?: Json
|
|
6890
|
+
completed_at?: string | null
|
|
6891
|
+
completed_by?: string | null
|
|
6892
|
+
context?: Json
|
|
6893
|
+
created_at?: string
|
|
6894
|
+
description?: string | null
|
|
6895
|
+
expires_at?: string | null
|
|
6896
|
+
human_checkpoint?: string | null
|
|
6897
|
+
id?: string
|
|
6898
|
+
idempotency_key?: string | null
|
|
6899
|
+
metadata?: Json | null
|
|
6900
|
+
organization_id?: string
|
|
6901
|
+
origin_execution_id?: string
|
|
6902
|
+
origin_resource_id?: string
|
|
6903
|
+
origin_resource_type?: string
|
|
6904
|
+
priority?: number
|
|
6905
|
+
selected_action?: string | null
|
|
6906
|
+
status?: string
|
|
6907
|
+
target_execution_id?: string | null
|
|
6908
|
+
target_resource_id?: string | null
|
|
6909
|
+
target_resource_type?: string | null
|
|
6910
|
+
}
|
|
6911
|
+
Relationships: [
|
|
6912
|
+
{
|
|
6913
|
+
foreignKeyName: "command_queue_completed_by_fkey"
|
|
6914
|
+
columns: ["completed_by"]
|
|
6915
|
+
isOneToOne: false
|
|
6916
|
+
referencedRelation: "users"
|
|
6917
|
+
referencedColumns: ["id"]
|
|
6918
|
+
},
|
|
6919
|
+
{
|
|
6920
|
+
foreignKeyName: "command_queue_organization_id_fkey"
|
|
6921
|
+
columns: ["organization_id"]
|
|
6922
|
+
isOneToOne: false
|
|
6923
|
+
referencedRelation: "organizations"
|
|
6924
|
+
referencedColumns: ["id"]
|
|
6925
|
+
},
|
|
6926
|
+
{
|
|
6927
|
+
foreignKeyName: "command_queue_target_execution_id_fkey"
|
|
6928
|
+
columns: ["target_execution_id"]
|
|
6929
|
+
isOneToOne: false
|
|
6930
|
+
referencedRelation: "execution_logs"
|
|
6931
|
+
referencedColumns: ["execution_id"]
|
|
6932
|
+
},
|
|
6933
|
+
]
|
|
6934
|
+
}
|
|
6935
|
+
credentials: {
|
|
6936
|
+
Row: {
|
|
6937
|
+
created_at: string
|
|
6938
|
+
created_by: string | null
|
|
6939
|
+
encrypted_value: string
|
|
6940
|
+
id: string
|
|
6941
|
+
name: string
|
|
6942
|
+
organization_id: string
|
|
6943
|
+
provider: string | null
|
|
6944
|
+
type: string
|
|
6945
|
+
updated_at: string
|
|
6946
|
+
}
|
|
6947
|
+
Insert: {
|
|
6948
|
+
created_at?: string
|
|
6949
|
+
created_by?: string | null
|
|
6950
|
+
encrypted_value: string
|
|
6951
|
+
id?: string
|
|
6952
|
+
name: string
|
|
6953
|
+
organization_id: string
|
|
6954
|
+
provider?: string | null
|
|
6955
|
+
type?: string
|
|
6956
|
+
updated_at?: string
|
|
6957
|
+
}
|
|
6958
|
+
Update: {
|
|
6959
|
+
created_at?: string
|
|
6960
|
+
created_by?: string | null
|
|
6961
|
+
encrypted_value?: string
|
|
6962
|
+
id?: string
|
|
6963
|
+
name?: string
|
|
6964
|
+
organization_id?: string
|
|
6965
|
+
provider?: string | null
|
|
6966
|
+
type?: string
|
|
6967
|
+
updated_at?: string
|
|
6968
|
+
}
|
|
6969
|
+
Relationships: [
|
|
6970
|
+
{
|
|
6971
|
+
foreignKeyName: "credentials_created_by_fkey"
|
|
6972
|
+
columns: ["created_by"]
|
|
6973
|
+
isOneToOne: false
|
|
6974
|
+
referencedRelation: "users"
|
|
6975
|
+
referencedColumns: ["id"]
|
|
6976
|
+
},
|
|
6977
|
+
{
|
|
6978
|
+
foreignKeyName: "credentials_organization_id_fkey"
|
|
6979
|
+
columns: ["organization_id"]
|
|
6980
|
+
isOneToOne: false
|
|
6981
|
+
referencedRelation: "organizations"
|
|
6982
|
+
referencedColumns: ["id"]
|
|
6983
|
+
},
|
|
6984
|
+
]
|
|
6985
|
+
}
|
|
6986
|
+
deployments: {
|
|
6987
|
+
Row: {
|
|
6988
|
+
compiled_docs: Json | null
|
|
6989
|
+
created_at: string
|
|
6990
|
+
deployment_version: string | null
|
|
6991
|
+
documentation: Json | null
|
|
6992
|
+
error_message: string | null
|
|
6993
|
+
id: string
|
|
6994
|
+
organization_id: string
|
|
6995
|
+
pid: number | null
|
|
6996
|
+
port: number | null
|
|
6997
|
+
sdk_version: string
|
|
6998
|
+
status: string
|
|
6999
|
+
tarball_path: string | null
|
|
7000
|
+
updated_at: string
|
|
7001
|
+
}
|
|
7002
|
+
Insert: {
|
|
7003
|
+
compiled_docs?: Json | null
|
|
7004
|
+
created_at?: string
|
|
7005
|
+
deployment_version?: string | null
|
|
7006
|
+
documentation?: Json | null
|
|
7007
|
+
error_message?: string | null
|
|
7008
|
+
id?: string
|
|
7009
|
+
organization_id: string
|
|
7010
|
+
pid?: number | null
|
|
7011
|
+
port?: number | null
|
|
7012
|
+
sdk_version: string
|
|
7013
|
+
status?: string
|
|
7014
|
+
tarball_path?: string | null
|
|
7015
|
+
updated_at?: string
|
|
7016
|
+
}
|
|
7017
|
+
Update: {
|
|
7018
|
+
compiled_docs?: Json | null
|
|
7019
|
+
created_at?: string
|
|
7020
|
+
deployment_version?: string | null
|
|
7021
|
+
documentation?: Json | null
|
|
7022
|
+
error_message?: string | null
|
|
7023
|
+
id?: string
|
|
7024
|
+
organization_id?: string
|
|
7025
|
+
pid?: number | null
|
|
7026
|
+
port?: number | null
|
|
7027
|
+
sdk_version?: string
|
|
7028
|
+
status?: string
|
|
7029
|
+
tarball_path?: string | null
|
|
7030
|
+
updated_at?: string
|
|
7031
|
+
}
|
|
7032
|
+
Relationships: [
|
|
7033
|
+
{
|
|
7034
|
+
foreignKeyName: "deployments_organization_id_fkey"
|
|
7035
|
+
columns: ["organization_id"]
|
|
7036
|
+
isOneToOne: false
|
|
7037
|
+
referencedRelation: "organizations"
|
|
7038
|
+
referencedColumns: ["id"]
|
|
7039
|
+
},
|
|
7040
|
+
]
|
|
7041
|
+
}
|
|
7042
|
+
execution_errors: {
|
|
7043
|
+
Row: {
|
|
7044
|
+
created_at: string | null
|
|
7045
|
+
error_category: string
|
|
7046
|
+
error_message: string
|
|
7047
|
+
error_severity: string
|
|
7048
|
+
error_stack_trace: string | null
|
|
7049
|
+
error_type: string
|
|
7050
|
+
execution_id: string
|
|
7051
|
+
id: string
|
|
7052
|
+
metadata: Json | null
|
|
7053
|
+
occurred_at: string
|
|
7054
|
+
organization_id: string
|
|
7055
|
+
resolved: boolean
|
|
7056
|
+
resolved_at: string | null
|
|
7057
|
+
resolved_by: string | null
|
|
7058
|
+
}
|
|
7059
|
+
Insert: {
|
|
7060
|
+
created_at?: string | null
|
|
7061
|
+
error_category: string
|
|
7062
|
+
error_message: string
|
|
7063
|
+
error_severity: string
|
|
7064
|
+
error_stack_trace?: string | null
|
|
7065
|
+
error_type: string
|
|
7066
|
+
execution_id: string
|
|
7067
|
+
id?: string
|
|
7068
|
+
metadata?: Json | null
|
|
7069
|
+
occurred_at?: string
|
|
7070
|
+
organization_id: string
|
|
7071
|
+
resolved?: boolean
|
|
7072
|
+
resolved_at?: string | null
|
|
7073
|
+
resolved_by?: string | null
|
|
7074
|
+
}
|
|
7075
|
+
Update: {
|
|
7076
|
+
created_at?: string | null
|
|
7077
|
+
error_category?: string
|
|
7078
|
+
error_message?: string
|
|
7079
|
+
error_severity?: string
|
|
7080
|
+
error_stack_trace?: string | null
|
|
7081
|
+
error_type?: string
|
|
7082
|
+
execution_id?: string
|
|
7083
|
+
id?: string
|
|
7084
|
+
metadata?: Json | null
|
|
7085
|
+
occurred_at?: string
|
|
7086
|
+
organization_id?: string
|
|
7087
|
+
resolved?: boolean
|
|
7088
|
+
resolved_at?: string | null
|
|
7089
|
+
resolved_by?: string | null
|
|
7090
|
+
}
|
|
7091
|
+
Relationships: [
|
|
7092
|
+
{
|
|
7093
|
+
foreignKeyName: "execution_errors_execution_id_fkey"
|
|
7094
|
+
columns: ["execution_id"]
|
|
7095
|
+
isOneToOne: false
|
|
7096
|
+
referencedRelation: "execution_logs"
|
|
7097
|
+
referencedColumns: ["execution_id"]
|
|
7098
|
+
},
|
|
7099
|
+
{
|
|
7100
|
+
foreignKeyName: "execution_errors_organization_id_fkey"
|
|
7101
|
+
columns: ["organization_id"]
|
|
7102
|
+
isOneToOne: false
|
|
7103
|
+
referencedRelation: "organizations"
|
|
7104
|
+
referencedColumns: ["id"]
|
|
7105
|
+
},
|
|
7106
|
+
{
|
|
7107
|
+
foreignKeyName: "execution_errors_resolved_by_fkey"
|
|
7108
|
+
columns: ["resolved_by"]
|
|
7109
|
+
isOneToOne: false
|
|
7110
|
+
referencedRelation: "users"
|
|
7111
|
+
referencedColumns: ["id"]
|
|
7112
|
+
},
|
|
7113
|
+
]
|
|
7114
|
+
}
|
|
7115
|
+
execution_logs: {
|
|
7116
|
+
Row: {
|
|
7117
|
+
api_version: string | null
|
|
7118
|
+
completed_at: string | null
|
|
7119
|
+
created_at: string | null
|
|
7120
|
+
error: string | null
|
|
7121
|
+
execution_id: string
|
|
7122
|
+
input: Json | null
|
|
7123
|
+
last_heartbeat_at: string | null
|
|
7124
|
+
logs: Json | null
|
|
7125
|
+
organization_id: string
|
|
7126
|
+
origin_execution_id: string | null
|
|
7127
|
+
output: Json | null
|
|
7128
|
+
resource_id: string
|
|
7129
|
+
resource_status: string
|
|
7130
|
+
resource_type: string
|
|
7131
|
+
resource_version: string | null
|
|
7132
|
+
sdk_version: string | null
|
|
7133
|
+
session_id: string | null
|
|
7134
|
+
session_turn_number: number | null
|
|
7135
|
+
started_at: string
|
|
7136
|
+
status: string
|
|
7137
|
+
trigger_type: string | null
|
|
7138
|
+
updated_at: string | null
|
|
7139
|
+
user_id: string | null
|
|
7140
|
+
}
|
|
7141
|
+
Insert: {
|
|
7142
|
+
api_version?: string | null
|
|
7143
|
+
completed_at?: string | null
|
|
7144
|
+
created_at?: string | null
|
|
7145
|
+
error?: string | null
|
|
7146
|
+
execution_id?: string
|
|
7147
|
+
input?: Json | null
|
|
7148
|
+
last_heartbeat_at?: string | null
|
|
7149
|
+
logs?: Json | null
|
|
7150
|
+
organization_id: string
|
|
7151
|
+
origin_execution_id?: string | null
|
|
7152
|
+
output?: Json | null
|
|
7153
|
+
resource_id: string
|
|
7154
|
+
resource_status?: string
|
|
7155
|
+
resource_type?: string
|
|
7156
|
+
resource_version?: string | null
|
|
7157
|
+
sdk_version?: string | null
|
|
7158
|
+
session_id?: string | null
|
|
7159
|
+
session_turn_number?: number | null
|
|
7160
|
+
started_at?: string
|
|
7161
|
+
status: string
|
|
7162
|
+
trigger_type?: string | null
|
|
7163
|
+
updated_at?: string | null
|
|
7164
|
+
user_id?: string | null
|
|
7165
|
+
}
|
|
7166
|
+
Update: {
|
|
7167
|
+
api_version?: string | null
|
|
7168
|
+
completed_at?: string | null
|
|
7169
|
+
created_at?: string | null
|
|
7170
|
+
error?: string | null
|
|
7171
|
+
execution_id?: string
|
|
7172
|
+
input?: Json | null
|
|
7173
|
+
last_heartbeat_at?: string | null
|
|
7174
|
+
logs?: Json | null
|
|
7175
|
+
organization_id?: string
|
|
7176
|
+
origin_execution_id?: string | null
|
|
7177
|
+
output?: Json | null
|
|
7178
|
+
resource_id?: string
|
|
7179
|
+
resource_status?: string
|
|
7180
|
+
resource_type?: string
|
|
7181
|
+
resource_version?: string | null
|
|
7182
|
+
sdk_version?: string | null
|
|
7183
|
+
session_id?: string | null
|
|
7184
|
+
session_turn_number?: number | null
|
|
7185
|
+
started_at?: string
|
|
7186
|
+
status?: string
|
|
7187
|
+
trigger_type?: string | null
|
|
7188
|
+
updated_at?: string | null
|
|
7189
|
+
user_id?: string | null
|
|
7190
|
+
}
|
|
7191
|
+
Relationships: [
|
|
7192
|
+
{
|
|
7193
|
+
foreignKeyName: "execution_history_organization_id_fkey"
|
|
7194
|
+
columns: ["organization_id"]
|
|
7195
|
+
isOneToOne: false
|
|
7196
|
+
referencedRelation: "organizations"
|
|
7197
|
+
referencedColumns: ["id"]
|
|
7198
|
+
},
|
|
7199
|
+
{
|
|
7200
|
+
foreignKeyName: "execution_logs_origin_execution_id_fkey"
|
|
7201
|
+
columns: ["origin_execution_id"]
|
|
7202
|
+
isOneToOne: false
|
|
7203
|
+
referencedRelation: "execution_logs"
|
|
7204
|
+
referencedColumns: ["execution_id"]
|
|
7205
|
+
},
|
|
7206
|
+
{
|
|
7207
|
+
foreignKeyName: "execution_logs_session_id_fkey"
|
|
7208
|
+
columns: ["session_id"]
|
|
7209
|
+
isOneToOne: false
|
|
7210
|
+
referencedRelation: "sessions"
|
|
7211
|
+
referencedColumns: ["session_id"]
|
|
7212
|
+
},
|
|
7213
|
+
{
|
|
7214
|
+
foreignKeyName: "execution_logs_user_id_fkey"
|
|
7215
|
+
columns: ["user_id"]
|
|
7216
|
+
isOneToOne: false
|
|
7217
|
+
referencedRelation: "users"
|
|
7218
|
+
referencedColumns: ["id"]
|
|
7219
|
+
},
|
|
7220
|
+
]
|
|
7221
|
+
}
|
|
7222
|
+
execution_metrics: {
|
|
7223
|
+
Row: {
|
|
7224
|
+
ai_call_count: number
|
|
7225
|
+
ai_calls: Json | null
|
|
7226
|
+
automation_savings_usd: number | null
|
|
7227
|
+
created_at: string | null
|
|
7228
|
+
duration_ms: number | null
|
|
7229
|
+
execution_id: string
|
|
7230
|
+
organization_id: string
|
|
7231
|
+
resource_id: string
|
|
7232
|
+
total_cost_usd: number
|
|
7233
|
+
total_input_tokens: number
|
|
7234
|
+
total_output_tokens: number
|
|
7235
|
+
}
|
|
7236
|
+
Insert: {
|
|
7237
|
+
ai_call_count: number
|
|
7238
|
+
ai_calls?: Json | null
|
|
7239
|
+
automation_savings_usd?: number | null
|
|
7240
|
+
created_at?: string | null
|
|
7241
|
+
duration_ms?: number | null
|
|
7242
|
+
execution_id: string
|
|
7243
|
+
organization_id: string
|
|
7244
|
+
resource_id: string
|
|
7245
|
+
total_cost_usd: number
|
|
7246
|
+
total_input_tokens: number
|
|
7247
|
+
total_output_tokens: number
|
|
7248
|
+
}
|
|
7249
|
+
Update: {
|
|
7250
|
+
ai_call_count?: number
|
|
7251
|
+
ai_calls?: Json | null
|
|
7252
|
+
automation_savings_usd?: number | null
|
|
7253
|
+
created_at?: string | null
|
|
7254
|
+
duration_ms?: number | null
|
|
7255
|
+
execution_id?: string
|
|
7256
|
+
organization_id?: string
|
|
7257
|
+
resource_id?: string
|
|
7258
|
+
total_cost_usd?: number
|
|
7259
|
+
total_input_tokens?: number
|
|
7260
|
+
total_output_tokens?: number
|
|
7261
|
+
}
|
|
7262
|
+
Relationships: [
|
|
7263
|
+
{
|
|
7264
|
+
foreignKeyName: "execution_metrics_execution_id_fkey"
|
|
7265
|
+
columns: ["execution_id"]
|
|
7266
|
+
isOneToOne: true
|
|
7267
|
+
referencedRelation: "execution_logs"
|
|
7268
|
+
referencedColumns: ["execution_id"]
|
|
7269
|
+
},
|
|
7270
|
+
{
|
|
7271
|
+
foreignKeyName: "execution_metrics_organization_id_fkey"
|
|
7272
|
+
columns: ["organization_id"]
|
|
7273
|
+
isOneToOne: false
|
|
7274
|
+
referencedRelation: "organizations"
|
|
7275
|
+
referencedColumns: ["id"]
|
|
7276
|
+
},
|
|
7277
|
+
]
|
|
7278
|
+
}
|
|
7279
|
+
notifications: {
|
|
7280
|
+
Row: {
|
|
7281
|
+
action_url: string | null
|
|
7282
|
+
category: string
|
|
7283
|
+
created_at: string | null
|
|
7284
|
+
id: string
|
|
7285
|
+
message: string
|
|
7286
|
+
organization_id: string
|
|
7287
|
+
read: boolean | null
|
|
7288
|
+
read_at: string | null
|
|
7289
|
+
title: string
|
|
7290
|
+
user_id: string
|
|
7291
|
+
}
|
|
7292
|
+
Insert: {
|
|
7293
|
+
action_url?: string | null
|
|
7294
|
+
category: string
|
|
7295
|
+
created_at?: string | null
|
|
7296
|
+
id?: string
|
|
7297
|
+
message: string
|
|
7298
|
+
organization_id: string
|
|
7299
|
+
read?: boolean | null
|
|
7300
|
+
read_at?: string | null
|
|
7301
|
+
title: string
|
|
7302
|
+
user_id: string
|
|
7303
|
+
}
|
|
7304
|
+
Update: {
|
|
7305
|
+
action_url?: string | null
|
|
7306
|
+
category?: string
|
|
7307
|
+
created_at?: string | null
|
|
7308
|
+
id?: string
|
|
7309
|
+
message?: string
|
|
7310
|
+
organization_id?: string
|
|
7311
|
+
read?: boolean | null
|
|
7312
|
+
read_at?: string | null
|
|
7313
|
+
title?: string
|
|
7314
|
+
user_id?: string
|
|
7315
|
+
}
|
|
7316
|
+
Relationships: [
|
|
7317
|
+
{
|
|
7318
|
+
foreignKeyName: "notifications_organization_id_fkey"
|
|
7319
|
+
columns: ["organization_id"]
|
|
7320
|
+
isOneToOne: false
|
|
7321
|
+
referencedRelation: "organizations"
|
|
7322
|
+
referencedColumns: ["id"]
|
|
7323
|
+
},
|
|
7324
|
+
{
|
|
7325
|
+
foreignKeyName: "notifications_user_id_fkey"
|
|
7326
|
+
columns: ["user_id"]
|
|
7327
|
+
isOneToOne: false
|
|
7328
|
+
referencedRelation: "users"
|
|
7329
|
+
referencedColumns: ["id"]
|
|
7330
|
+
},
|
|
7331
|
+
]
|
|
7332
|
+
}
|
|
7333
|
+
org_invitations: {
|
|
7334
|
+
Row: {
|
|
7335
|
+
accept_invitation_url: string | null
|
|
7336
|
+
accepted_at: string | null
|
|
7337
|
+
created_at: string | null
|
|
7338
|
+
email: string
|
|
7339
|
+
expires_at: string
|
|
7340
|
+
id: string
|
|
7341
|
+
invitation_state: string | null
|
|
7342
|
+
invitation_token: string | null
|
|
7343
|
+
inviter_user_id: string | null
|
|
7344
|
+
organization_id: string | null
|
|
7345
|
+
revoked_at: string | null
|
|
7346
|
+
role_slug: string | null
|
|
7347
|
+
updated_at: string | null
|
|
7348
|
+
workos_invitation_id: string
|
|
7349
|
+
}
|
|
7350
|
+
Insert: {
|
|
7351
|
+
accept_invitation_url?: string | null
|
|
7352
|
+
accepted_at?: string | null
|
|
7353
|
+
created_at?: string | null
|
|
7354
|
+
email: string
|
|
7355
|
+
expires_at: string
|
|
7356
|
+
id?: string
|
|
7357
|
+
invitation_state?: string | null
|
|
7358
|
+
invitation_token?: string | null
|
|
7359
|
+
inviter_user_id?: string | null
|
|
7360
|
+
organization_id?: string | null
|
|
7361
|
+
revoked_at?: string | null
|
|
7362
|
+
role_slug?: string | null
|
|
7363
|
+
updated_at?: string | null
|
|
7364
|
+
workos_invitation_id: string
|
|
7365
|
+
}
|
|
7366
|
+
Update: {
|
|
7367
|
+
accept_invitation_url?: string | null
|
|
7368
|
+
accepted_at?: string | null
|
|
7369
|
+
created_at?: string | null
|
|
7370
|
+
email?: string
|
|
7371
|
+
expires_at?: string
|
|
7372
|
+
id?: string
|
|
7373
|
+
invitation_state?: string | null
|
|
7374
|
+
invitation_token?: string | null
|
|
7375
|
+
inviter_user_id?: string | null
|
|
7376
|
+
organization_id?: string | null
|
|
7377
|
+
revoked_at?: string | null
|
|
7378
|
+
role_slug?: string | null
|
|
7379
|
+
updated_at?: string | null
|
|
7380
|
+
workos_invitation_id?: string
|
|
7381
|
+
}
|
|
7382
|
+
Relationships: [
|
|
7383
|
+
{
|
|
7384
|
+
foreignKeyName: "org_invitations_inviter_user_id_fkey"
|
|
7385
|
+
columns: ["inviter_user_id"]
|
|
7386
|
+
isOneToOne: false
|
|
7387
|
+
referencedRelation: "users"
|
|
7388
|
+
referencedColumns: ["id"]
|
|
7389
|
+
},
|
|
7390
|
+
{
|
|
7391
|
+
foreignKeyName: "org_invitations_organization_id_fkey"
|
|
7392
|
+
columns: ["organization_id"]
|
|
7393
|
+
isOneToOne: false
|
|
7394
|
+
referencedRelation: "organizations"
|
|
7395
|
+
referencedColumns: ["id"]
|
|
7396
|
+
},
|
|
7397
|
+
]
|
|
7398
|
+
}
|
|
7399
|
+
org_memberships: {
|
|
7400
|
+
Row: {
|
|
7401
|
+
config: Json
|
|
7402
|
+
created_at: string | null
|
|
7403
|
+
id: string
|
|
7404
|
+
membership_status: string | null
|
|
7405
|
+
organization_id: string
|
|
7406
|
+
role_slug: string | null
|
|
7407
|
+
updated_at: string | null
|
|
7408
|
+
user_id: string
|
|
7409
|
+
workos_membership_id: string | null
|
|
7410
|
+
}
|
|
7411
|
+
Insert: {
|
|
7412
|
+
config?: Json
|
|
7413
|
+
created_at?: string | null
|
|
7414
|
+
id?: string
|
|
7415
|
+
membership_status?: string | null
|
|
7416
|
+
organization_id: string
|
|
7417
|
+
role_slug?: string | null
|
|
7418
|
+
updated_at?: string | null
|
|
7419
|
+
user_id: string
|
|
7420
|
+
workos_membership_id?: string | null
|
|
7421
|
+
}
|
|
7422
|
+
Update: {
|
|
7423
|
+
config?: Json
|
|
7424
|
+
created_at?: string | null
|
|
7425
|
+
id?: string
|
|
7426
|
+
membership_status?: string | null
|
|
7427
|
+
organization_id?: string
|
|
7428
|
+
role_slug?: string | null
|
|
7429
|
+
updated_at?: string | null
|
|
7430
|
+
user_id?: string
|
|
7431
|
+
workos_membership_id?: string | null
|
|
7432
|
+
}
|
|
7433
|
+
Relationships: [
|
|
7434
|
+
{
|
|
7435
|
+
foreignKeyName: "org_memberships_organization_id_fkey"
|
|
7436
|
+
columns: ["organization_id"]
|
|
7437
|
+
isOneToOne: false
|
|
7438
|
+
referencedRelation: "organizations"
|
|
7439
|
+
referencedColumns: ["id"]
|
|
7440
|
+
},
|
|
7441
|
+
{
|
|
7442
|
+
foreignKeyName: "org_memberships_user_id_fkey"
|
|
7443
|
+
columns: ["user_id"]
|
|
7444
|
+
isOneToOne: false
|
|
7445
|
+
referencedRelation: "users"
|
|
7446
|
+
referencedColumns: ["id"]
|
|
7447
|
+
},
|
|
7448
|
+
]
|
|
7449
|
+
}
|
|
7450
|
+
organizations: {
|
|
7451
|
+
Row: {
|
|
7452
|
+
config: Json
|
|
7453
|
+
created_at: string
|
|
7454
|
+
id: string
|
|
7455
|
+
is_test: boolean
|
|
7456
|
+
metadata: Json
|
|
7457
|
+
name: string
|
|
7458
|
+
status: string
|
|
7459
|
+
updated_at: string
|
|
7460
|
+
workos_org_id: string
|
|
7461
|
+
}
|
|
7462
|
+
Insert: {
|
|
7463
|
+
config?: Json
|
|
7464
|
+
created_at?: string
|
|
7465
|
+
id?: string
|
|
7466
|
+
is_test?: boolean
|
|
7467
|
+
metadata?: Json
|
|
7468
|
+
name: string
|
|
7469
|
+
status?: string
|
|
7470
|
+
updated_at?: string
|
|
7471
|
+
workos_org_id: string
|
|
7472
|
+
}
|
|
7473
|
+
Update: {
|
|
7474
|
+
config?: Json
|
|
7475
|
+
created_at?: string
|
|
7476
|
+
id?: string
|
|
7477
|
+
is_test?: boolean
|
|
7478
|
+
metadata?: Json
|
|
7479
|
+
name?: string
|
|
7480
|
+
status?: string
|
|
7481
|
+
updated_at?: string
|
|
7482
|
+
workos_org_id?: string
|
|
7483
|
+
}
|
|
7484
|
+
Relationships: []
|
|
7485
|
+
}
|
|
7486
|
+
prj_milestones: {
|
|
7487
|
+
Row: {
|
|
7488
|
+
checklist: Json | null
|
|
7489
|
+
completed_at: string | null
|
|
7490
|
+
created_at: string
|
|
7491
|
+
description: string | null
|
|
7492
|
+
due_date: string | null
|
|
7493
|
+
id: string
|
|
7494
|
+
metadata: Json | null
|
|
7495
|
+
name: string
|
|
7496
|
+
organization_id: string
|
|
7497
|
+
project_id: string
|
|
7498
|
+
sequence: number
|
|
7499
|
+
status: string
|
|
7500
|
+
updated_at: string
|
|
7501
|
+
}
|
|
7502
|
+
Insert: {
|
|
7503
|
+
checklist?: Json | null
|
|
7504
|
+
completed_at?: string | null
|
|
7505
|
+
created_at?: string
|
|
7506
|
+
description?: string | null
|
|
7507
|
+
due_date?: string | null
|
|
7508
|
+
id?: string
|
|
7509
|
+
metadata?: Json | null
|
|
7510
|
+
name: string
|
|
7511
|
+
organization_id: string
|
|
7512
|
+
project_id: string
|
|
7513
|
+
sequence?: number
|
|
7514
|
+
status?: string
|
|
7515
|
+
updated_at?: string
|
|
7516
|
+
}
|
|
7517
|
+
Update: {
|
|
7518
|
+
checklist?: Json | null
|
|
7519
|
+
completed_at?: string | null
|
|
7520
|
+
created_at?: string
|
|
7521
|
+
description?: string | null
|
|
7522
|
+
due_date?: string | null
|
|
7523
|
+
id?: string
|
|
7524
|
+
metadata?: Json | null
|
|
7525
|
+
name?: string
|
|
7526
|
+
organization_id?: string
|
|
7527
|
+
project_id?: string
|
|
7528
|
+
sequence?: number
|
|
7529
|
+
status?: string
|
|
7530
|
+
updated_at?: string
|
|
7531
|
+
}
|
|
7532
|
+
Relationships: [
|
|
7533
|
+
{
|
|
7534
|
+
foreignKeyName: "prj_milestones_organization_id_fkey"
|
|
7535
|
+
columns: ["organization_id"]
|
|
7536
|
+
isOneToOne: false
|
|
7537
|
+
referencedRelation: "organizations"
|
|
7538
|
+
referencedColumns: ["id"]
|
|
7539
|
+
},
|
|
7540
|
+
{
|
|
7541
|
+
foreignKeyName: "prj_milestones_project_id_fkey"
|
|
7542
|
+
columns: ["project_id"]
|
|
7543
|
+
isOneToOne: false
|
|
7544
|
+
referencedRelation: "prj_projects"
|
|
7545
|
+
referencedColumns: ["id"]
|
|
7546
|
+
},
|
|
7547
|
+
]
|
|
7548
|
+
}
|
|
7549
|
+
prj_notes: {
|
|
7550
|
+
Row: {
|
|
7551
|
+
content: string
|
|
7552
|
+
created_at: string
|
|
7553
|
+
created_by: string | null
|
|
7554
|
+
id: string
|
|
7555
|
+
metadata: Json | null
|
|
7556
|
+
milestone_id: string | null
|
|
7557
|
+
occurred_at: string
|
|
7558
|
+
organization_id: string
|
|
7559
|
+
project_id: string
|
|
7560
|
+
summary: string | null
|
|
7561
|
+
task_id: string | null
|
|
7562
|
+
type: string
|
|
7563
|
+
}
|
|
7564
|
+
Insert: {
|
|
7565
|
+
content: string
|
|
7566
|
+
created_at?: string
|
|
7567
|
+
created_by?: string | null
|
|
7568
|
+
id?: string
|
|
7569
|
+
metadata?: Json | null
|
|
7570
|
+
milestone_id?: string | null
|
|
7571
|
+
occurred_at?: string
|
|
7572
|
+
organization_id: string
|
|
7573
|
+
project_id: string
|
|
7574
|
+
summary?: string | null
|
|
7575
|
+
task_id?: string | null
|
|
7576
|
+
type?: string
|
|
7577
|
+
}
|
|
7578
|
+
Update: {
|
|
7579
|
+
content?: string
|
|
7580
|
+
created_at?: string
|
|
7581
|
+
created_by?: string | null
|
|
7582
|
+
id?: string
|
|
7583
|
+
metadata?: Json | null
|
|
7584
|
+
milestone_id?: string | null
|
|
7585
|
+
occurred_at?: string
|
|
7586
|
+
organization_id?: string
|
|
7587
|
+
project_id?: string
|
|
7588
|
+
summary?: string | null
|
|
7589
|
+
task_id?: string | null
|
|
7590
|
+
type?: string
|
|
7591
|
+
}
|
|
7592
|
+
Relationships: [
|
|
7593
|
+
{
|
|
7594
|
+
foreignKeyName: "prj_notes_created_by_fkey"
|
|
7595
|
+
columns: ["created_by"]
|
|
7596
|
+
isOneToOne: false
|
|
7597
|
+
referencedRelation: "users"
|
|
7598
|
+
referencedColumns: ["id"]
|
|
7599
|
+
},
|
|
7600
|
+
{
|
|
7601
|
+
foreignKeyName: "prj_notes_milestone_id_fkey"
|
|
7602
|
+
columns: ["milestone_id"]
|
|
7603
|
+
isOneToOne: false
|
|
7604
|
+
referencedRelation: "prj_milestones"
|
|
7605
|
+
referencedColumns: ["id"]
|
|
7606
|
+
},
|
|
7607
|
+
{
|
|
7608
|
+
foreignKeyName: "prj_notes_organization_id_fkey"
|
|
7609
|
+
columns: ["organization_id"]
|
|
7610
|
+
isOneToOne: false
|
|
7611
|
+
referencedRelation: "organizations"
|
|
7612
|
+
referencedColumns: ["id"]
|
|
7613
|
+
},
|
|
7614
|
+
{
|
|
7615
|
+
foreignKeyName: "prj_notes_project_id_fkey"
|
|
7616
|
+
columns: ["project_id"]
|
|
7617
|
+
isOneToOne: false
|
|
7618
|
+
referencedRelation: "prj_projects"
|
|
7619
|
+
referencedColumns: ["id"]
|
|
7620
|
+
},
|
|
7621
|
+
{
|
|
7622
|
+
foreignKeyName: "prj_notes_task_id_fkey"
|
|
7623
|
+
columns: ["task_id"]
|
|
7624
|
+
isOneToOne: false
|
|
7625
|
+
referencedRelation: "prj_tasks"
|
|
7626
|
+
referencedColumns: ["id"]
|
|
7627
|
+
},
|
|
7628
|
+
]
|
|
7629
|
+
}
|
|
7630
|
+
prj_projects: {
|
|
7631
|
+
Row: {
|
|
7632
|
+
actual_end_date: string | null
|
|
7633
|
+
client_company_id: string | null
|
|
7634
|
+
contract_value: number | null
|
|
7635
|
+
created_at: string
|
|
7636
|
+
deal_id: string | null
|
|
7637
|
+
description: string | null
|
|
7638
|
+
id: string
|
|
7639
|
+
kind: string
|
|
7640
|
+
metadata: Json | null
|
|
7641
|
+
name: string
|
|
7642
|
+
organization_id: string
|
|
7643
|
+
start_date: string | null
|
|
7644
|
+
status: string
|
|
7645
|
+
target_end_date: string | null
|
|
7646
|
+
updated_at: string
|
|
7647
|
+
}
|
|
7648
|
+
Insert: {
|
|
7649
|
+
actual_end_date?: string | null
|
|
7650
|
+
client_company_id?: string | null
|
|
7651
|
+
contract_value?: number | null
|
|
7652
|
+
created_at?: string
|
|
7653
|
+
deal_id?: string | null
|
|
7654
|
+
description?: string | null
|
|
7655
|
+
id?: string
|
|
7656
|
+
kind?: string
|
|
7657
|
+
metadata?: Json | null
|
|
7658
|
+
name: string
|
|
7659
|
+
organization_id: string
|
|
7660
|
+
start_date?: string | null
|
|
7661
|
+
status?: string
|
|
7662
|
+
target_end_date?: string | null
|
|
7663
|
+
updated_at?: string
|
|
7664
|
+
}
|
|
7665
|
+
Update: {
|
|
7666
|
+
actual_end_date?: string | null
|
|
7667
|
+
client_company_id?: string | null
|
|
7668
|
+
contract_value?: number | null
|
|
7669
|
+
created_at?: string
|
|
7670
|
+
deal_id?: string | null
|
|
7671
|
+
description?: string | null
|
|
7672
|
+
id?: string
|
|
7673
|
+
kind?: string
|
|
7674
|
+
metadata?: Json | null
|
|
7675
|
+
name?: string
|
|
7676
|
+
organization_id?: string
|
|
7677
|
+
start_date?: string | null
|
|
7678
|
+
status?: string
|
|
7679
|
+
target_end_date?: string | null
|
|
7680
|
+
updated_at?: string
|
|
7681
|
+
}
|
|
7682
|
+
Relationships: [
|
|
7683
|
+
{
|
|
7684
|
+
foreignKeyName: "prj_projects_client_company_id_fkey"
|
|
7685
|
+
columns: ["client_company_id"]
|
|
7686
|
+
isOneToOne: false
|
|
7687
|
+
referencedRelation: "acq_companies"
|
|
7688
|
+
referencedColumns: ["id"]
|
|
7689
|
+
},
|
|
7690
|
+
{
|
|
7691
|
+
foreignKeyName: "prj_projects_deal_id_fkey"
|
|
7692
|
+
columns: ["deal_id"]
|
|
7693
|
+
isOneToOne: false
|
|
7694
|
+
referencedRelation: "acq_deals"
|
|
7695
|
+
referencedColumns: ["id"]
|
|
7696
|
+
},
|
|
7697
|
+
{
|
|
7698
|
+
foreignKeyName: "prj_projects_organization_id_fkey"
|
|
7699
|
+
columns: ["organization_id"]
|
|
7700
|
+
isOneToOne: false
|
|
7701
|
+
referencedRelation: "organizations"
|
|
7702
|
+
referencedColumns: ["id"]
|
|
7703
|
+
},
|
|
7704
|
+
]
|
|
7705
|
+
}
|
|
7706
|
+
prj_tasks: {
|
|
7707
|
+
Row: {
|
|
7708
|
+
checklist: Json
|
|
7709
|
+
completed_at: string | null
|
|
7710
|
+
created_at: string
|
|
7711
|
+
description: string | null
|
|
7712
|
+
due_date: string | null
|
|
7713
|
+
file_url: string | null
|
|
7714
|
+
id: string
|
|
7715
|
+
metadata: Json | null
|
|
7716
|
+
milestone_id: string | null
|
|
7717
|
+
name: string
|
|
7718
|
+
organization_id: string
|
|
7719
|
+
parent_task_id: string | null
|
|
7720
|
+
project_id: string
|
|
7721
|
+
resume_context: Json | null
|
|
7722
|
+
status: string
|
|
7723
|
+
type: string
|
|
7724
|
+
updated_at: string
|
|
7725
|
+
}
|
|
7726
|
+
Insert: {
|
|
7727
|
+
checklist?: Json
|
|
7728
|
+
completed_at?: string | null
|
|
7729
|
+
created_at?: string
|
|
7730
|
+
description?: string | null
|
|
7731
|
+
due_date?: string | null
|
|
7732
|
+
file_url?: string | null
|
|
7733
|
+
id?: string
|
|
7734
|
+
metadata?: Json | null
|
|
7735
|
+
milestone_id?: string | null
|
|
7736
|
+
name: string
|
|
7737
|
+
organization_id: string
|
|
7738
|
+
parent_task_id?: string | null
|
|
7739
|
+
project_id: string
|
|
7740
|
+
resume_context?: Json | null
|
|
7741
|
+
status?: string
|
|
7742
|
+
type?: string
|
|
7743
|
+
updated_at?: string
|
|
7744
|
+
}
|
|
7745
|
+
Update: {
|
|
7746
|
+
checklist?: Json
|
|
7747
|
+
completed_at?: string | null
|
|
7748
|
+
created_at?: string
|
|
7749
|
+
description?: string | null
|
|
7750
|
+
due_date?: string | null
|
|
7751
|
+
file_url?: string | null
|
|
7752
|
+
id?: string
|
|
7753
|
+
metadata?: Json | null
|
|
7754
|
+
milestone_id?: string | null
|
|
7755
|
+
name?: string
|
|
7756
|
+
organization_id?: string
|
|
7757
|
+
parent_task_id?: string | null
|
|
7758
|
+
project_id?: string
|
|
7759
|
+
resume_context?: Json | null
|
|
7760
|
+
status?: string
|
|
7761
|
+
type?: string
|
|
7762
|
+
updated_at?: string
|
|
7763
|
+
}
|
|
7764
|
+
Relationships: [
|
|
7765
|
+
{
|
|
7766
|
+
foreignKeyName: "prj_tasks_milestone_id_fkey"
|
|
7767
|
+
columns: ["milestone_id"]
|
|
7768
|
+
isOneToOne: false
|
|
7769
|
+
referencedRelation: "prj_milestones"
|
|
7770
|
+
referencedColumns: ["id"]
|
|
7771
|
+
},
|
|
7772
|
+
{
|
|
7773
|
+
foreignKeyName: "prj_tasks_organization_id_fkey"
|
|
7774
|
+
columns: ["organization_id"]
|
|
7775
|
+
isOneToOne: false
|
|
7776
|
+
referencedRelation: "organizations"
|
|
7777
|
+
referencedColumns: ["id"]
|
|
7778
|
+
},
|
|
7779
|
+
{
|
|
7780
|
+
foreignKeyName: "prj_tasks_parent_task_id_fkey"
|
|
7781
|
+
columns: ["parent_task_id"]
|
|
7782
|
+
isOneToOne: false
|
|
7783
|
+
referencedRelation: "prj_tasks"
|
|
7784
|
+
referencedColumns: ["id"]
|
|
7785
|
+
},
|
|
7786
|
+
{
|
|
7787
|
+
foreignKeyName: "prj_tasks_project_id_fkey"
|
|
7788
|
+
columns: ["project_id"]
|
|
7789
|
+
isOneToOne: false
|
|
7790
|
+
referencedRelation: "prj_projects"
|
|
7791
|
+
referencedColumns: ["id"]
|
|
7792
|
+
},
|
|
7793
|
+
]
|
|
7794
|
+
}
|
|
7795
|
+
session_messages: {
|
|
7796
|
+
Row: {
|
|
7797
|
+
created_at: string | null
|
|
7798
|
+
id: string
|
|
7799
|
+
message: string
|
|
7800
|
+
message_index: number | null
|
|
7801
|
+
message_type: string | null
|
|
7802
|
+
metadata: Json | null
|
|
7803
|
+
role: string
|
|
7804
|
+
session_id: string
|
|
7805
|
+
session_turn_number: number
|
|
7806
|
+
}
|
|
7807
|
+
Insert: {
|
|
7808
|
+
created_at?: string | null
|
|
7809
|
+
id: string
|
|
7810
|
+
message: string
|
|
7811
|
+
message_index?: number | null
|
|
7812
|
+
message_type?: string | null
|
|
7813
|
+
metadata?: Json | null
|
|
7814
|
+
role: string
|
|
7815
|
+
session_id: string
|
|
7816
|
+
session_turn_number: number
|
|
7817
|
+
}
|
|
7818
|
+
Update: {
|
|
7819
|
+
created_at?: string | null
|
|
7820
|
+
id?: string
|
|
7821
|
+
message?: string
|
|
7822
|
+
message_index?: number | null
|
|
7823
|
+
message_type?: string | null
|
|
7824
|
+
metadata?: Json | null
|
|
7825
|
+
role?: string
|
|
7826
|
+
session_id?: string
|
|
7827
|
+
session_turn_number?: number
|
|
7828
|
+
}
|
|
7829
|
+
Relationships: [
|
|
7830
|
+
{
|
|
7831
|
+
foreignKeyName: "session_messages_session_id_fkey"
|
|
7832
|
+
columns: ["session_id"]
|
|
7833
|
+
isOneToOne: false
|
|
7834
|
+
referencedRelation: "sessions"
|
|
7835
|
+
referencedColumns: ["session_id"]
|
|
7836
|
+
},
|
|
7837
|
+
]
|
|
7838
|
+
}
|
|
7839
|
+
sessions: {
|
|
7840
|
+
Row: {
|
|
7841
|
+
context_window_size: number
|
|
7842
|
+
created_at: string | null
|
|
7843
|
+
cumulative_input_tokens: number
|
|
7844
|
+
cumulative_output_tokens: number
|
|
7845
|
+
deleted_at: string | null
|
|
7846
|
+
ended_at: string | null
|
|
7847
|
+
memory_snapshot: Json
|
|
7848
|
+
metadata: Json | null
|
|
7849
|
+
organization_id: string
|
|
7850
|
+
resource_id: string
|
|
7851
|
+
session_id: string
|
|
7852
|
+
session_total_turns: number | null
|
|
7853
|
+
updated_at: string | null
|
|
7854
|
+
user_id: string | null
|
|
7855
|
+
}
|
|
7856
|
+
Insert: {
|
|
7857
|
+
context_window_size?: number
|
|
7858
|
+
created_at?: string | null
|
|
7859
|
+
cumulative_input_tokens?: number
|
|
7860
|
+
cumulative_output_tokens?: number
|
|
7861
|
+
deleted_at?: string | null
|
|
7862
|
+
ended_at?: string | null
|
|
7863
|
+
memory_snapshot: Json
|
|
7864
|
+
metadata?: Json | null
|
|
7865
|
+
organization_id: string
|
|
7866
|
+
resource_id: string
|
|
7867
|
+
session_id?: string
|
|
7868
|
+
session_total_turns?: number | null
|
|
7869
|
+
updated_at?: string | null
|
|
7870
|
+
user_id?: string | null
|
|
7871
|
+
}
|
|
7872
|
+
Update: {
|
|
7873
|
+
context_window_size?: number
|
|
7874
|
+
created_at?: string | null
|
|
7875
|
+
cumulative_input_tokens?: number
|
|
7876
|
+
cumulative_output_tokens?: number
|
|
7877
|
+
deleted_at?: string | null
|
|
7878
|
+
ended_at?: string | null
|
|
7879
|
+
memory_snapshot?: Json
|
|
7880
|
+
metadata?: Json | null
|
|
7881
|
+
organization_id?: string
|
|
7882
|
+
resource_id?: string
|
|
7883
|
+
session_id?: string
|
|
7884
|
+
session_total_turns?: number | null
|
|
7885
|
+
updated_at?: string | null
|
|
7886
|
+
user_id?: string | null
|
|
7887
|
+
}
|
|
7888
|
+
Relationships: [
|
|
7889
|
+
{
|
|
7890
|
+
foreignKeyName: "fk_organization"
|
|
7891
|
+
columns: ["organization_id"]
|
|
7892
|
+
isOneToOne: false
|
|
7893
|
+
referencedRelation: "organizations"
|
|
7894
|
+
referencedColumns: ["id"]
|
|
7895
|
+
},
|
|
7896
|
+
{
|
|
7897
|
+
foreignKeyName: "fk_user"
|
|
7898
|
+
columns: ["user_id"]
|
|
7899
|
+
isOneToOne: false
|
|
7900
|
+
referencedRelation: "users"
|
|
7901
|
+
referencedColumns: ["id"]
|
|
7902
|
+
},
|
|
7903
|
+
]
|
|
7904
|
+
}
|
|
7905
|
+
task_schedules: {
|
|
7906
|
+
Row: {
|
|
7907
|
+
created_at: string
|
|
7908
|
+
current_step: number
|
|
7909
|
+
description: string | null
|
|
7910
|
+
id: string
|
|
7911
|
+
idempotency_key: string | null
|
|
7912
|
+
last_execution_id: string | null
|
|
7913
|
+
last_run_at: string | null
|
|
7914
|
+
max_retries: number
|
|
7915
|
+
metadata: Json | null
|
|
7916
|
+
name: string
|
|
7917
|
+
next_run_at: string | null
|
|
7918
|
+
organization_id: string
|
|
7919
|
+
origin_execution_id: string | null
|
|
7920
|
+
origin_resource_id: string | null
|
|
7921
|
+
origin_resource_type: string | null
|
|
7922
|
+
retry_count: number
|
|
7923
|
+
schedule_config: Json
|
|
7924
|
+
status: string
|
|
7925
|
+
target_resource_id: string
|
|
7926
|
+
target_resource_type: string
|
|
7927
|
+
updated_at: string
|
|
7928
|
+
}
|
|
7929
|
+
Insert: {
|
|
7930
|
+
created_at?: string
|
|
7931
|
+
current_step?: number
|
|
7932
|
+
description?: string | null
|
|
7933
|
+
id?: string
|
|
7934
|
+
idempotency_key?: string | null
|
|
7935
|
+
last_execution_id?: string | null
|
|
7936
|
+
last_run_at?: string | null
|
|
7937
|
+
max_retries?: number
|
|
7938
|
+
metadata?: Json | null
|
|
7939
|
+
name: string
|
|
7940
|
+
next_run_at?: string | null
|
|
7941
|
+
organization_id: string
|
|
7942
|
+
origin_execution_id?: string | null
|
|
7943
|
+
origin_resource_id?: string | null
|
|
7944
|
+
origin_resource_type?: string | null
|
|
7945
|
+
retry_count?: number
|
|
7946
|
+
schedule_config: Json
|
|
7947
|
+
status?: string
|
|
7948
|
+
target_resource_id: string
|
|
7949
|
+
target_resource_type: string
|
|
7950
|
+
updated_at?: string
|
|
7951
|
+
}
|
|
7952
|
+
Update: {
|
|
7953
|
+
created_at?: string
|
|
7954
|
+
current_step?: number
|
|
7955
|
+
description?: string | null
|
|
7956
|
+
id?: string
|
|
7957
|
+
idempotency_key?: string | null
|
|
7958
|
+
last_execution_id?: string | null
|
|
7959
|
+
last_run_at?: string | null
|
|
7960
|
+
max_retries?: number
|
|
7961
|
+
metadata?: Json | null
|
|
7962
|
+
name?: string
|
|
7963
|
+
next_run_at?: string | null
|
|
7964
|
+
organization_id?: string
|
|
7965
|
+
origin_execution_id?: string | null
|
|
7966
|
+
origin_resource_id?: string | null
|
|
7967
|
+
origin_resource_type?: string | null
|
|
7968
|
+
retry_count?: number
|
|
7969
|
+
schedule_config?: Json
|
|
7970
|
+
status?: string
|
|
7971
|
+
target_resource_id?: string
|
|
7972
|
+
target_resource_type?: string
|
|
7973
|
+
updated_at?: string
|
|
7974
|
+
}
|
|
7975
|
+
Relationships: [
|
|
7976
|
+
{
|
|
7977
|
+
foreignKeyName: "task_schedules_organization_id_fkey"
|
|
7978
|
+
columns: ["organization_id"]
|
|
7979
|
+
isOneToOne: false
|
|
7980
|
+
referencedRelation: "organizations"
|
|
7981
|
+
referencedColumns: ["id"]
|
|
7982
|
+
},
|
|
7983
|
+
]
|
|
7984
|
+
}
|
|
7985
|
+
users: {
|
|
7986
|
+
Row: {
|
|
7987
|
+
config: Json
|
|
7988
|
+
created_at: string
|
|
7989
|
+
display_name: string | null
|
|
7990
|
+
email: string
|
|
7991
|
+
first_name: string | null
|
|
7992
|
+
id: string
|
|
7993
|
+
is_active: boolean
|
|
7994
|
+
is_platform_admin: boolean | null
|
|
7995
|
+
last_login_at: string | null
|
|
7996
|
+
last_name: string | null
|
|
7997
|
+
last_visited_org: string | null
|
|
7998
|
+
profile_picture_url: string | null
|
|
7999
|
+
updated_at: string
|
|
8000
|
+
workos_user_id: string | null
|
|
8001
|
+
}
|
|
8002
|
+
Insert: {
|
|
8003
|
+
config?: Json
|
|
8004
|
+
created_at?: string
|
|
8005
|
+
display_name?: string | null
|
|
8006
|
+
email: string
|
|
8007
|
+
first_name?: string | null
|
|
8008
|
+
id?: string
|
|
8009
|
+
is_active?: boolean
|
|
8010
|
+
is_platform_admin?: boolean | null
|
|
8011
|
+
last_login_at?: string | null
|
|
8012
|
+
last_name?: string | null
|
|
8013
|
+
last_visited_org?: string | null
|
|
8014
|
+
profile_picture_url?: string | null
|
|
8015
|
+
updated_at?: string
|
|
8016
|
+
workos_user_id?: string | null
|
|
8017
|
+
}
|
|
8018
|
+
Update: {
|
|
8019
|
+
config?: Json
|
|
8020
|
+
created_at?: string
|
|
8021
|
+
display_name?: string | null
|
|
8022
|
+
email?: string
|
|
8023
|
+
first_name?: string | null
|
|
8024
|
+
id?: string
|
|
8025
|
+
is_active?: boolean
|
|
8026
|
+
is_platform_admin?: boolean | null
|
|
8027
|
+
last_login_at?: string | null
|
|
8028
|
+
last_name?: string | null
|
|
8029
|
+
last_visited_org?: string | null
|
|
8030
|
+
profile_picture_url?: string | null
|
|
8031
|
+
updated_at?: string
|
|
8032
|
+
workos_user_id?: string | null
|
|
8033
|
+
}
|
|
8034
|
+
Relationships: [
|
|
8035
|
+
{
|
|
8036
|
+
foreignKeyName: "user_profiles_last_visited_org_fkey"
|
|
8037
|
+
columns: ["last_visited_org"]
|
|
8038
|
+
isOneToOne: false
|
|
8039
|
+
referencedRelation: "organizations"
|
|
8040
|
+
referencedColumns: ["id"]
|
|
8041
|
+
},
|
|
8042
|
+
]
|
|
8043
|
+
}
|
|
8044
|
+
webhook_endpoints: {
|
|
8045
|
+
Row: {
|
|
8046
|
+
created_at: string
|
|
8047
|
+
description: string | null
|
|
8048
|
+
id: string
|
|
8049
|
+
key: string
|
|
8050
|
+
last_triggered_at: string | null
|
|
8051
|
+
name: string
|
|
8052
|
+
organization_id: string
|
|
8053
|
+
request_count: number
|
|
8054
|
+
resource_id: string | null
|
|
8055
|
+
status: string
|
|
8056
|
+
updated_at: string
|
|
8057
|
+
}
|
|
8058
|
+
Insert: {
|
|
8059
|
+
created_at?: string
|
|
8060
|
+
description?: string | null
|
|
8061
|
+
id?: string
|
|
8062
|
+
key: string
|
|
8063
|
+
last_triggered_at?: string | null
|
|
8064
|
+
name: string
|
|
8065
|
+
organization_id: string
|
|
8066
|
+
request_count?: number
|
|
8067
|
+
resource_id?: string | null
|
|
8068
|
+
status?: string
|
|
8069
|
+
updated_at?: string
|
|
8070
|
+
}
|
|
8071
|
+
Update: {
|
|
8072
|
+
created_at?: string
|
|
8073
|
+
description?: string | null
|
|
8074
|
+
id?: string
|
|
8075
|
+
key?: string
|
|
8076
|
+
last_triggered_at?: string | null
|
|
8077
|
+
name?: string
|
|
8078
|
+
organization_id?: string
|
|
8079
|
+
request_count?: number
|
|
8080
|
+
resource_id?: string | null
|
|
8081
|
+
status?: string
|
|
8082
|
+
updated_at?: string
|
|
8083
|
+
}
|
|
8084
|
+
Relationships: [
|
|
8085
|
+
{
|
|
8086
|
+
foreignKeyName: "webhook_endpoints_organization_id_fkey"
|
|
8087
|
+
columns: ["organization_id"]
|
|
8088
|
+
isOneToOne: false
|
|
8089
|
+
referencedRelation: "organizations"
|
|
8090
|
+
referencedColumns: ["id"]
|
|
8091
|
+
},
|
|
8092
|
+
]
|
|
8093
|
+
}
|
|
8094
|
+
}
|
|
8095
|
+
Views: {
|
|
8096
|
+
[_ in never]: never
|
|
8097
|
+
}
|
|
8098
|
+
Functions: {
|
|
8099
|
+
acq_default_checklist: { Args: { p_platform: string }; Returns: Json }
|
|
8100
|
+
append_deal_activity: {
|
|
8101
|
+
Args: { p_activity: Json; p_deal_id: string; p_organization_id: string }
|
|
8102
|
+
Returns: undefined
|
|
8103
|
+
}
|
|
8104
|
+
auth_jwt_claims: { Args: never; Returns: Json }
|
|
8105
|
+
auth_uid_safe: { Args: never; Returns: string }
|
|
8106
|
+
current_user_is_platform_admin: { Args: never; Returns: boolean }
|
|
8107
|
+
current_user_supabase_id: { Args: never; Returns: string }
|
|
8108
|
+
detect_stalled_executions: { Args: never; Returns: undefined }
|
|
8109
|
+
execute_session_turn: {
|
|
8110
|
+
Args: { p_session_id: string }
|
|
8111
|
+
Returns: {
|
|
8112
|
+
created_at: string
|
|
8113
|
+
ended_at: string
|
|
8114
|
+
memory_snapshot: Json
|
|
8115
|
+
metadata: Json
|
|
8116
|
+
organization_id: string
|
|
8117
|
+
resource_id: string
|
|
8118
|
+
session_id: string
|
|
8119
|
+
session_total_turns: number
|
|
8120
|
+
updated_at: string
|
|
8121
|
+
user_id: string
|
|
8122
|
+
}[]
|
|
8123
|
+
}
|
|
8124
|
+
get_storage_org_id: { Args: { file_path: string }; Returns: string }
|
|
8125
|
+
get_workos_user_id: { Args: never; Returns: string }
|
|
8126
|
+
is_org_admin: { Args: { org_id: string }; Returns: boolean }
|
|
8127
|
+
is_org_member: { Args: { org_id: string }; Returns: boolean }
|
|
8128
|
+
link_workos_membership_on_accept: {
|
|
8129
|
+
Args: {
|
|
8130
|
+
p_email: string
|
|
8131
|
+
p_organization_id: string
|
|
8132
|
+
p_workos_membership_id: string
|
|
8133
|
+
}
|
|
8134
|
+
Returns: boolean
|
|
8135
|
+
}
|
|
8136
|
+
pre_provision_invited_user: {
|
|
8137
|
+
Args: {
|
|
8138
|
+
p_email: string
|
|
8139
|
+
p_organization_id: string
|
|
8140
|
+
p_role_slug?: string
|
|
8141
|
+
}
|
|
8142
|
+
Returns: Json
|
|
8143
|
+
}
|
|
8144
|
+
process_due_schedules: { Args: never; Returns: Json }
|
|
8145
|
+
upsert_user_profile: {
|
|
8146
|
+
Args: never
|
|
8147
|
+
Returns: {
|
|
8148
|
+
profile_display_name: string
|
|
8149
|
+
profile_email: string
|
|
8150
|
+
profile_id: string
|
|
8151
|
+
profile_workos_user_id: string
|
|
8152
|
+
}[]
|
|
8153
|
+
}
|
|
8154
|
+
}
|
|
8155
|
+
Enums: {
|
|
8156
|
+
[_ in never]: never
|
|
8157
|
+
}
|
|
8158
|
+
CompositeTypes: {
|
|
8159
|
+
[_ in never]: never
|
|
8160
|
+
}
|
|
8161
|
+
}
|
|
8162
|
+
}
|
|
8163
|
+
|
|
8164
|
+
/**
|
|
8165
|
+
* Lead Service Types
|
|
8166
|
+
* CRUD operation types for the acquisition platform (lists, companies, contacts, deals)
|
|
8167
|
+
*
|
|
8168
|
+
* Implementation: apps/api/src/acquisition/lead-service.ts (LeadService class)
|
|
8169
|
+
*/
|
|
8170
|
+
|
|
8171
|
+
|
|
8172
|
+
|
|
8173
|
+
interface AcqDealNote {
|
|
8174
|
+
id: string
|
|
8175
|
+
dealId: string
|
|
8176
|
+
organizationId: string
|
|
8177
|
+
authorUserId: string | null
|
|
8178
|
+
body: string
|
|
8179
|
+
createdAt: string
|
|
8180
|
+
updatedAt: string
|
|
8181
|
+
}
|
|
8182
|
+
|
|
5541
8183
|
/**
|
|
5542
8184
|
* Resource Registry type definitions
|
|
5543
8185
|
*/
|
|
@@ -7703,19 +10345,19 @@ declare function useAllCalibrationProjects(): _tanstack_react_query.UseQueryResu
|
|
|
7703
10345
|
*/
|
|
7704
10346
|
declare function useCalibrationProjects(resourceId: string, resourceType: 'agent' | 'workflow'): _tanstack_react_query.UseQueryResult<CalibrationProject[], Error>;
|
|
7705
10347
|
declare function useCalibrationProject(projectId: string): _tanstack_react_query.UseQueryResult<CalibrationProject, Error>;
|
|
7706
|
-
declare function useCreateProject(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
|
|
10348
|
+
declare function useCreateProject$1(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
|
|
7707
10349
|
resourceId: string;
|
|
7708
10350
|
resourceType: "agent" | "workflow";
|
|
7709
10351
|
name: string;
|
|
7710
10352
|
description?: string | undefined;
|
|
7711
10353
|
}, unknown>;
|
|
7712
|
-
declare function useUpdateProject(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
|
|
10354
|
+
declare function useUpdateProject$1(): _tanstack_react_query.UseMutationResult<CalibrationProject, Error, {
|
|
7713
10355
|
name?: string | undefined;
|
|
7714
10356
|
description?: string | undefined;
|
|
7715
10357
|
} & {
|
|
7716
10358
|
id: string;
|
|
7717
10359
|
}, unknown>;
|
|
7718
|
-
declare function useDeleteProject(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
10360
|
+
declare function useDeleteProject$1(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
7719
10361
|
|
|
7720
10362
|
declare function useCalibrationRuns(projectId: string): _tanstack_react_query.UseQueryResult<CalibrationRun[], Error>;
|
|
7721
10363
|
declare function useCalibrationRun(runId: string): _tanstack_react_query.UseQueryResult<CalibrationRun, Error>;
|
|
@@ -7784,5 +10426,457 @@ declare function useCalibrationSSE({ runId, manager, apiUrl, enabled }: UseCalib
|
|
|
7784
10426
|
error?: string;
|
|
7785
10427
|
};
|
|
7786
10428
|
|
|
7787
|
-
|
|
7788
|
-
|
|
10429
|
+
/**
|
|
10430
|
+
* Query keys for acquisition deals
|
|
10431
|
+
*/
|
|
10432
|
+
declare const dealKeys: {
|
|
10433
|
+
all: readonly ["acq-deals"];
|
|
10434
|
+
lists: () => readonly ["acq-deals", "list"];
|
|
10435
|
+
list: (orgId: string | null, filters: DealFilters) => readonly ["acq-deals", "list", string | null, DealFilters];
|
|
10436
|
+
details: () => readonly ["acq-deals", "detail"];
|
|
10437
|
+
detail: (id: string) => readonly ["acq-deals", "detail", string];
|
|
10438
|
+
};
|
|
10439
|
+
/**
|
|
10440
|
+
* Fetch deals with optional filters
|
|
10441
|
+
*/
|
|
10442
|
+
declare function useDeals(filters?: DealFilters): _tanstack_react_query.UseQueryResult<DealListItem[], Error>;
|
|
10443
|
+
/**
|
|
10444
|
+
* Delete a deal with server-side cleanup (schedules, HITL tasks)
|
|
10445
|
+
*/
|
|
10446
|
+
declare function useDeleteDeal(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
10447
|
+
|
|
10448
|
+
declare function useDealDetail(acqDealId: string): _tanstack_react_query.UseQueryResult<DealListItem | null, Error>;
|
|
10449
|
+
|
|
10450
|
+
interface SyncDealStageParams {
|
|
10451
|
+
dealId: string;
|
|
10452
|
+
stage: DealStage;
|
|
10453
|
+
}
|
|
10454
|
+
/**
|
|
10455
|
+
* Sync a deal's cached_stage to the database.
|
|
10456
|
+
*
|
|
10457
|
+
* Mirrors what acqDb.syncDealStage does on the backend (lead-service.ts:1150).
|
|
10458
|
+
* The UI writes directly via Supabase (RLS enforces org scope) which is the
|
|
10459
|
+
* established pattern for acquisition hooks. The full backend syncDealStage
|
|
10460
|
+
* additionally logs a stage_change activity entry — the Kanban optimistic
|
|
10461
|
+
* update is sufficient for the UI; the activity log will lag slightly.
|
|
10462
|
+
*/
|
|
10463
|
+
declare function useSyncDealStage(): _tanstack_react_query.UseMutationResult<void, Error, SyncDealStageParams, unknown>;
|
|
10464
|
+
|
|
10465
|
+
/**
|
|
10466
|
+
* Query keys for deal notes
|
|
10467
|
+
*/
|
|
10468
|
+
declare const dealNoteKeys: {
|
|
10469
|
+
all: readonly ["dealNotes"];
|
|
10470
|
+
list: (organizationId: string | null, dealId: string) => readonly ["dealNotes", string | null, string];
|
|
10471
|
+
};
|
|
10472
|
+
/**
|
|
10473
|
+
* Fetch notes for a specific deal, newest-first.
|
|
10474
|
+
*/
|
|
10475
|
+
declare function useDealNotes(dealId: string): _tanstack_react_query.UseQueryResult<AcqDealNote[], Error>;
|
|
10476
|
+
interface CreateDealNoteParams {
|
|
10477
|
+
dealId: string;
|
|
10478
|
+
body: string;
|
|
10479
|
+
authorUserId?: string;
|
|
10480
|
+
}
|
|
10481
|
+
/**
|
|
10482
|
+
* Create a new deal note. On success invalidates the notes list for that deal.
|
|
10483
|
+
*
|
|
10484
|
+
* The frontend writes directly via Supabase, which is covered by RLS
|
|
10485
|
+
* (org member write policy).
|
|
10486
|
+
*/
|
|
10487
|
+
declare function useCreateDealNote(): _tanstack_react_query.UseMutationResult<AcqDealNote, Error, CreateDealNoteParams, unknown>;
|
|
10488
|
+
|
|
10489
|
+
/**
|
|
10490
|
+
* Query keys for deal tasks. All keys are org-scoped for multi-tenancy isolation.
|
|
10491
|
+
*/
|
|
10492
|
+
declare const dealTaskKeys: {
|
|
10493
|
+
all: readonly ["deal-tasks"];
|
|
10494
|
+
list: (orgId: string | null, dealId: string) => readonly ["deal-tasks", string | null, string];
|
|
10495
|
+
due: (orgId: string | null, window: string, assigneeUserId: string | null) => readonly ["deal-tasks-due", string | null, string, string | null];
|
|
10496
|
+
};
|
|
10497
|
+
/**
|
|
10498
|
+
* Fetch all tasks for a specific deal, ordered by due date ascending (nulls last).
|
|
10499
|
+
*
|
|
10500
|
+
* Query key is org-scoped: ['deal-tasks', orgId, dealId]
|
|
10501
|
+
*/
|
|
10502
|
+
declare function useDealTasks(dealId: string | undefined): _tanstack_react_query.UseQueryResult<AcqDealTask[], Error>;
|
|
10503
|
+
type DealTasksDueWindow = 'overdue' | 'today' | 'today_and_overdue' | 'upcoming';
|
|
10504
|
+
interface DealTasksDueOptions {
|
|
10505
|
+
window?: DealTasksDueWindow;
|
|
10506
|
+
assigneeUserId?: string | null;
|
|
10507
|
+
}
|
|
10508
|
+
/**
|
|
10509
|
+
* Fetch open (uncompleted) tasks within a date window across all deals.
|
|
10510
|
+
*
|
|
10511
|
+
* Query key is org-scoped: ['deal-tasks-due', orgId, window, assigneeUserId]
|
|
10512
|
+
*
|
|
10513
|
+
* Default window: 'today_and_overdue' (overdue + due today).
|
|
10514
|
+
*/
|
|
10515
|
+
declare function useDealTasksDue(opts?: DealTasksDueOptions): _tanstack_react_query.UseQueryResult<AcqDealTask[], Error>;
|
|
10516
|
+
interface CreateDealTaskParams {
|
|
10517
|
+
dealId: string;
|
|
10518
|
+
title: string;
|
|
10519
|
+
description?: string | null;
|
|
10520
|
+
kind?: AcqDealTaskKind;
|
|
10521
|
+
dueAt?: string | null;
|
|
10522
|
+
assigneeUserId?: string | null;
|
|
10523
|
+
createdByUserId?: string | null;
|
|
10524
|
+
}
|
|
10525
|
+
/**
|
|
10526
|
+
* Create a new task attached to a deal.
|
|
10527
|
+
*
|
|
10528
|
+
* Writes directly to Supabase, covered by RLS (org member write policy).
|
|
10529
|
+
* On success invalidates both the deal's task list and any due-tasks queries.
|
|
10530
|
+
*/
|
|
10531
|
+
declare function useCreateDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CreateDealTaskParams, unknown>;
|
|
10532
|
+
interface CompleteDealTaskParams {
|
|
10533
|
+
taskId: string;
|
|
10534
|
+
dealId: string;
|
|
10535
|
+
completedByUserId?: string | null;
|
|
10536
|
+
}
|
|
10537
|
+
/**
|
|
10538
|
+
* Mark a deal task as completed.
|
|
10539
|
+
*
|
|
10540
|
+
* Writes directly to Supabase, covered by RLS (org member write policy).
|
|
10541
|
+
* Both `id` and `organization_id` filters are applied for multi-tenancy safety.
|
|
10542
|
+
* On success invalidates both the deal's task list and any due-tasks queries.
|
|
10543
|
+
*/
|
|
10544
|
+
declare function useCompleteDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CompleteDealTaskParams, unknown>;
|
|
10545
|
+
|
|
10546
|
+
declare function useBatchTelemetry(): _tanstack_react_query.UseQueryResult<BatchTelemetry[], Error>;
|
|
10547
|
+
|
|
10548
|
+
// Row types from Supabase
|
|
10549
|
+
type ProjectRow = Database['public']['Tables']['prj_projects']['Row']
|
|
10550
|
+
type ProjectUpdate = Database['public']['Tables']['prj_projects']['Update']
|
|
10551
|
+
type MilestoneUpdate = Database['public']['Tables']['prj_milestones']['Update']
|
|
10552
|
+
|
|
10553
|
+
// Status enums
|
|
10554
|
+
type ProjectStatus = 'active' | 'on_track' | 'at_risk' | 'blocked' | 'completed' | 'paused'
|
|
10555
|
+
|
|
10556
|
+
type ProjectKind = 'client_engagement' | 'internal'
|
|
10557
|
+
|
|
10558
|
+
type MilestoneStatus = 'upcoming' | 'in_progress' | 'completed' | 'overdue' | 'blocked'
|
|
10559
|
+
|
|
10560
|
+
type TaskStatus =
|
|
10561
|
+
| 'planned'
|
|
10562
|
+
| 'in_progress'
|
|
10563
|
+
| 'blocked'
|
|
10564
|
+
| 'completed'
|
|
10565
|
+
| 'cancelled'
|
|
10566
|
+
| 'submitted'
|
|
10567
|
+
| 'approved'
|
|
10568
|
+
| 'rejected'
|
|
10569
|
+
| 'revision_requested'
|
|
10570
|
+
|
|
10571
|
+
type TaskType = 'documentation' | 'code' | 'report' | 'design' | 'other'
|
|
10572
|
+
|
|
10573
|
+
type NoteType = 'call_note' | 'status_update' | 'issue' | 'blocker'
|
|
10574
|
+
|
|
10575
|
+
// Filter types
|
|
10576
|
+
interface ProjectFilters {
|
|
10577
|
+
status?: ProjectStatus
|
|
10578
|
+
kind?: ProjectKind
|
|
10579
|
+
companyId?: string
|
|
10580
|
+
search?: string
|
|
10581
|
+
}
|
|
10582
|
+
|
|
10583
|
+
interface MilestoneFilters {
|
|
10584
|
+
status?: MilestoneStatus
|
|
10585
|
+
projectId?: string
|
|
10586
|
+
}
|
|
10587
|
+
|
|
10588
|
+
interface TaskFilters {
|
|
10589
|
+
status?: TaskStatus
|
|
10590
|
+
type?: TaskType
|
|
10591
|
+
milestoneId?: string
|
|
10592
|
+
projectId?: string
|
|
10593
|
+
}
|
|
10594
|
+
|
|
10595
|
+
interface NoteFilters {
|
|
10596
|
+
type?: NoteType
|
|
10597
|
+
projectId?: string
|
|
10598
|
+
}
|
|
10599
|
+
|
|
10600
|
+
// Display types (for JOINed data)
|
|
10601
|
+
interface ProjectWithCounts extends ProjectRow {
|
|
10602
|
+
milestoneCount: number
|
|
10603
|
+
taskCount: number
|
|
10604
|
+
completedMilestones?: number
|
|
10605
|
+
completedTasks?: number
|
|
10606
|
+
}
|
|
10607
|
+
|
|
10608
|
+
declare const projectKeys: {
|
|
10609
|
+
all: readonly ["projects"];
|
|
10610
|
+
lists: () => readonly ["projects", "list"];
|
|
10611
|
+
list: (orgId: string | null, filters: ProjectFilters) => readonly ["projects", "list", string | null, ProjectFilters];
|
|
10612
|
+
details: () => readonly ["projects", "detail"];
|
|
10613
|
+
detail: (id: string) => readonly ["projects", "detail", string];
|
|
10614
|
+
};
|
|
10615
|
+
declare function useProjects(filters?: ProjectFilters): _tanstack_react_query.UseQueryResult<ProjectWithCounts[], Error>;
|
|
10616
|
+
declare function useProject(id: string): _tanstack_react_query.UseQueryResult<{
|
|
10617
|
+
actual_end_date: string | null;
|
|
10618
|
+
client_company_id: string | null;
|
|
10619
|
+
contract_value: number | null;
|
|
10620
|
+
created_at: string;
|
|
10621
|
+
deal_id: string | null;
|
|
10622
|
+
description: string | null;
|
|
10623
|
+
id: string;
|
|
10624
|
+
kind: string;
|
|
10625
|
+
metadata: Json$1 | null;
|
|
10626
|
+
name: string;
|
|
10627
|
+
organization_id: string;
|
|
10628
|
+
start_date: string | null;
|
|
10629
|
+
status: string;
|
|
10630
|
+
target_end_date: string | null;
|
|
10631
|
+
updated_at: string;
|
|
10632
|
+
milestones: {
|
|
10633
|
+
checklist: Json$1 | null;
|
|
10634
|
+
completed_at: string | null;
|
|
10635
|
+
created_at: string;
|
|
10636
|
+
description: string | null;
|
|
10637
|
+
due_date: string | null;
|
|
10638
|
+
id: string;
|
|
10639
|
+
metadata: Json$1 | null;
|
|
10640
|
+
name: string;
|
|
10641
|
+
organization_id: string;
|
|
10642
|
+
project_id: string;
|
|
10643
|
+
sequence: number;
|
|
10644
|
+
status: string;
|
|
10645
|
+
updated_at: string;
|
|
10646
|
+
}[];
|
|
10647
|
+
tasks: {
|
|
10648
|
+
checklist: Json$1;
|
|
10649
|
+
completed_at: string | null;
|
|
10650
|
+
created_at: string;
|
|
10651
|
+
description: string | null;
|
|
10652
|
+
due_date: string | null;
|
|
10653
|
+
file_url: string | null;
|
|
10654
|
+
id: string;
|
|
10655
|
+
metadata: Json$1 | null;
|
|
10656
|
+
milestone_id: string | null;
|
|
10657
|
+
name: string;
|
|
10658
|
+
organization_id: string;
|
|
10659
|
+
parent_task_id: string | null;
|
|
10660
|
+
project_id: string;
|
|
10661
|
+
resume_context: Json$1 | null;
|
|
10662
|
+
status: string;
|
|
10663
|
+
type: string;
|
|
10664
|
+
updated_at: string;
|
|
10665
|
+
}[];
|
|
10666
|
+
company: {
|
|
10667
|
+
id: string;
|
|
10668
|
+
name: string;
|
|
10669
|
+
domain: string | null;
|
|
10670
|
+
} | null;
|
|
10671
|
+
} | null, Error>;
|
|
10672
|
+
declare function useCreateProject(): _tanstack_react_query.UseMutationResult<{
|
|
10673
|
+
actual_end_date: string | null;
|
|
10674
|
+
client_company_id: string | null;
|
|
10675
|
+
contract_value: number | null;
|
|
10676
|
+
created_at: string;
|
|
10677
|
+
deal_id: string | null;
|
|
10678
|
+
description: string | null;
|
|
10679
|
+
id: string;
|
|
10680
|
+
kind: string;
|
|
10681
|
+
metadata: Json$1 | null;
|
|
10682
|
+
name: string;
|
|
10683
|
+
organization_id: string;
|
|
10684
|
+
start_date: string | null;
|
|
10685
|
+
status: string;
|
|
10686
|
+
target_end_date: string | null;
|
|
10687
|
+
updated_at: string;
|
|
10688
|
+
}, Error, Omit<{
|
|
10689
|
+
actual_end_date?: string | null;
|
|
10690
|
+
client_company_id?: string | null;
|
|
10691
|
+
contract_value?: number | null;
|
|
10692
|
+
created_at?: string;
|
|
10693
|
+
deal_id?: string | null;
|
|
10694
|
+
description?: string | null;
|
|
10695
|
+
id?: string;
|
|
10696
|
+
kind?: string;
|
|
10697
|
+
metadata?: Json$1 | null;
|
|
10698
|
+
name: string;
|
|
10699
|
+
organization_id: string;
|
|
10700
|
+
start_date?: string | null;
|
|
10701
|
+
status?: string;
|
|
10702
|
+
target_end_date?: string | null;
|
|
10703
|
+
updated_at?: string;
|
|
10704
|
+
}, "organization_id">, unknown>;
|
|
10705
|
+
declare function useUpdateProject(): _tanstack_react_query.UseMutationResult<{
|
|
10706
|
+
actual_end_date: string | null;
|
|
10707
|
+
client_company_id: string | null;
|
|
10708
|
+
contract_value: number | null;
|
|
10709
|
+
created_at: string;
|
|
10710
|
+
deal_id: string | null;
|
|
10711
|
+
description: string | null;
|
|
10712
|
+
id: string;
|
|
10713
|
+
kind: string;
|
|
10714
|
+
metadata: Json$1 | null;
|
|
10715
|
+
name: string;
|
|
10716
|
+
organization_id: string;
|
|
10717
|
+
start_date: string | null;
|
|
10718
|
+
status: string;
|
|
10719
|
+
target_end_date: string | null;
|
|
10720
|
+
updated_at: string;
|
|
10721
|
+
}, Error, {
|
|
10722
|
+
id: string;
|
|
10723
|
+
updates: ProjectUpdate;
|
|
10724
|
+
}, unknown>;
|
|
10725
|
+
declare function useDeleteProject(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
10726
|
+
|
|
10727
|
+
declare const milestoneKeys: {
|
|
10728
|
+
all: readonly ["project-milestones"];
|
|
10729
|
+
lists: () => readonly ["project-milestones", "list"];
|
|
10730
|
+
list: (orgId: string | null, filters: MilestoneFilters) => readonly ["project-milestones", "list", string | null, MilestoneFilters];
|
|
10731
|
+
details: () => readonly ["project-milestones", "detail"];
|
|
10732
|
+
detail: (id: string) => readonly ["project-milestones", "detail", string];
|
|
10733
|
+
};
|
|
10734
|
+
declare function useMilestones(filters?: MilestoneFilters): _tanstack_react_query.UseQueryResult<{
|
|
10735
|
+
checklist: Json$1 | null;
|
|
10736
|
+
completed_at: string | null;
|
|
10737
|
+
created_at: string;
|
|
10738
|
+
description: string | null;
|
|
10739
|
+
due_date: string | null;
|
|
10740
|
+
id: string;
|
|
10741
|
+
metadata: Json$1 | null;
|
|
10742
|
+
name: string;
|
|
10743
|
+
organization_id: string;
|
|
10744
|
+
project_id: string;
|
|
10745
|
+
sequence: number;
|
|
10746
|
+
status: string;
|
|
10747
|
+
updated_at: string;
|
|
10748
|
+
}[], Error>;
|
|
10749
|
+
declare function useCreateMilestone(): _tanstack_react_query.UseMutationResult<{
|
|
10750
|
+
checklist: Json$1 | null;
|
|
10751
|
+
completed_at: string | null;
|
|
10752
|
+
created_at: string;
|
|
10753
|
+
description: string | null;
|
|
10754
|
+
due_date: string | null;
|
|
10755
|
+
id: string;
|
|
10756
|
+
metadata: Json$1 | null;
|
|
10757
|
+
name: string;
|
|
10758
|
+
organization_id: string;
|
|
10759
|
+
project_id: string;
|
|
10760
|
+
sequence: number;
|
|
10761
|
+
status: string;
|
|
10762
|
+
updated_at: string;
|
|
10763
|
+
}, Error, Omit<{
|
|
10764
|
+
checklist?: Json$1 | null;
|
|
10765
|
+
completed_at?: string | null;
|
|
10766
|
+
created_at?: string;
|
|
10767
|
+
description?: string | null;
|
|
10768
|
+
due_date?: string | null;
|
|
10769
|
+
id?: string;
|
|
10770
|
+
metadata?: Json$1 | null;
|
|
10771
|
+
name: string;
|
|
10772
|
+
organization_id: string;
|
|
10773
|
+
project_id: string;
|
|
10774
|
+
sequence?: number;
|
|
10775
|
+
status?: string;
|
|
10776
|
+
updated_at?: string;
|
|
10777
|
+
}, "organization_id">, unknown>;
|
|
10778
|
+
declare function useUpdateMilestone(): _tanstack_react_query.UseMutationResult<{
|
|
10779
|
+
checklist: Json$1 | null;
|
|
10780
|
+
completed_at: string | null;
|
|
10781
|
+
created_at: string;
|
|
10782
|
+
description: string | null;
|
|
10783
|
+
due_date: string | null;
|
|
10784
|
+
id: string;
|
|
10785
|
+
metadata: Json$1 | null;
|
|
10786
|
+
name: string;
|
|
10787
|
+
organization_id: string;
|
|
10788
|
+
project_id: string;
|
|
10789
|
+
sequence: number;
|
|
10790
|
+
status: string;
|
|
10791
|
+
updated_at: string;
|
|
10792
|
+
}, Error, {
|
|
10793
|
+
id: string;
|
|
10794
|
+
updates: MilestoneUpdate;
|
|
10795
|
+
}, unknown>;
|
|
10796
|
+
declare function useDeleteMilestone(): _tanstack_react_query.UseMutationResult<void, Error, {
|
|
10797
|
+
id: string;
|
|
10798
|
+
projectId: string;
|
|
10799
|
+
}, unknown>;
|
|
10800
|
+
|
|
10801
|
+
declare const taskKeys: {
|
|
10802
|
+
all: readonly ["project-tasks"];
|
|
10803
|
+
lists: () => readonly ["project-tasks", "list"];
|
|
10804
|
+
list: (orgId: string | null, filters: TaskFilters) => readonly ["project-tasks", "list", string | null, TaskFilters];
|
|
10805
|
+
details: () => readonly ["project-tasks", "detail"];
|
|
10806
|
+
detail: (id: string) => readonly ["project-tasks", "detail", string];
|
|
10807
|
+
};
|
|
10808
|
+
declare function useTasks(filters?: TaskFilters): _tanstack_react_query.UseQueryResult<{
|
|
10809
|
+
checklist: Json$1;
|
|
10810
|
+
completed_at: string | null;
|
|
10811
|
+
created_at: string;
|
|
10812
|
+
description: string | null;
|
|
10813
|
+
due_date: string | null;
|
|
10814
|
+
file_url: string | null;
|
|
10815
|
+
id: string;
|
|
10816
|
+
metadata: Json$1 | null;
|
|
10817
|
+
milestone_id: string | null;
|
|
10818
|
+
name: string;
|
|
10819
|
+
organization_id: string;
|
|
10820
|
+
parent_task_id: string | null;
|
|
10821
|
+
project_id: string;
|
|
10822
|
+
resume_context: Json$1 | null;
|
|
10823
|
+
status: string;
|
|
10824
|
+
type: string;
|
|
10825
|
+
updated_at: string;
|
|
10826
|
+
}[], Error>;
|
|
10827
|
+
declare function useDeleteTask(): _tanstack_react_query.UseMutationResult<void, Error, {
|
|
10828
|
+
id: string;
|
|
10829
|
+
projectId: string;
|
|
10830
|
+
}, unknown>;
|
|
10831
|
+
|
|
10832
|
+
declare const noteKeys: {
|
|
10833
|
+
all: readonly ["project-notes"];
|
|
10834
|
+
lists: () => readonly ["project-notes", "list"];
|
|
10835
|
+
list: (orgId: string | null, filters: NoteFilters) => readonly ["project-notes", "list", string | null, NoteFilters];
|
|
10836
|
+
details: () => readonly ["project-notes", "detail"];
|
|
10837
|
+
detail: (id: string) => readonly ["project-notes", "detail", string];
|
|
10838
|
+
};
|
|
10839
|
+
declare function useProjectNotes(filters?: NoteFilters): _tanstack_react_query.UseQueryResult<{
|
|
10840
|
+
content: string;
|
|
10841
|
+
created_at: string;
|
|
10842
|
+
created_by: string | null;
|
|
10843
|
+
id: string;
|
|
10844
|
+
metadata: Json$1 | null;
|
|
10845
|
+
milestone_id: string | null;
|
|
10846
|
+
occurred_at: string;
|
|
10847
|
+
organization_id: string;
|
|
10848
|
+
project_id: string;
|
|
10849
|
+
summary: string | null;
|
|
10850
|
+
task_id: string | null;
|
|
10851
|
+
type: string;
|
|
10852
|
+
}[], Error>;
|
|
10853
|
+
declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
|
|
10854
|
+
content: string;
|
|
10855
|
+
created_at: string;
|
|
10856
|
+
created_by: string | null;
|
|
10857
|
+
id: string;
|
|
10858
|
+
metadata: Json$1 | null;
|
|
10859
|
+
milestone_id: string | null;
|
|
10860
|
+
occurred_at: string;
|
|
10861
|
+
organization_id: string;
|
|
10862
|
+
project_id: string;
|
|
10863
|
+
summary: string | null;
|
|
10864
|
+
task_id: string | null;
|
|
10865
|
+
type: string;
|
|
10866
|
+
}, Error, Omit<{
|
|
10867
|
+
content: string;
|
|
10868
|
+
created_at?: string;
|
|
10869
|
+
created_by?: string | null;
|
|
10870
|
+
id?: string;
|
|
10871
|
+
metadata?: Json$1 | null;
|
|
10872
|
+
milestone_id?: string | null;
|
|
10873
|
+
occurred_at?: string;
|
|
10874
|
+
organization_id: string;
|
|
10875
|
+
project_id: string;
|
|
10876
|
+
summary?: string | null;
|
|
10877
|
+
task_id?: string | null;
|
|
10878
|
+
type?: string;
|
|
10879
|
+
}, "organization_id">, unknown>;
|
|
10880
|
+
|
|
10881
|
+
export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, calibrationKeys, createUseFeatureAccess, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, isSessionCapable, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useActivateDeployment, useActivities, useActivityFilters, useActivityTrend, useAllCalibrationProjects, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompleteDealTask, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateMilestone, useCreateNote, useCreateProject$1 as useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteApiKey, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteMilestone, useDeleteProject$1 as useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphStats, useListApiKeys, useListDeployments, useListSchedules, useListWebhookEndpoints, useMarkAllAsRead, useMarkAsRead, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, useProject, useProjectNotes, useProjects, useReactivateMembership, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateMemberConfig, useUpdateMilestone, useUpdateProject$1 as useUpdateProject, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification };
|
|
10882
|
+
export type { AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, CreateApiKeyRequest, CreateApiKeyResponse, CreateCredentialRequest, CreateCredentialResponse, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DeleteExecutionParams, Deployment, DocFile, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, ResourcesResponse, RetryExecutionParams, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StatusFilter$1 as StatusFilter, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseBatchedResourcesHealthParams, UseCalibrationSSEOptions, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };
|