@periskope/types 0.6.272 → 0.6.273
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/rules.types.d.ts +3 -3
- package/dist/rules.types.d.ts.map +1 -1
- package/dist/rules.types.js +80 -7
- package/dist/supabase.types.d.ts +430 -353
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +59 -58
- package/dist/types.d.ts +286 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +17 -17
- package/src/rules.types.ts +88 -22
- package/src/supabase.types.ts +193 -166
- package/src/types.ts +4 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/workflows.types.d.ts +0 -307
- package/dist/workflows.types.d.ts.map +0 -1
- package/dist/workflows.types.js +0 -256
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,31 +2,6 @@ export type Json = {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
4
|
export type Database = {
|
|
5
|
-
graphql_public: {
|
|
6
|
-
Tables: {
|
|
7
|
-
[_ in never]: never;
|
|
8
|
-
};
|
|
9
|
-
Views: {
|
|
10
|
-
[_ in never]: never;
|
|
11
|
-
};
|
|
12
|
-
Functions: {
|
|
13
|
-
graphql: {
|
|
14
|
-
Args: {
|
|
15
|
-
operationName?: string;
|
|
16
|
-
query?: string;
|
|
17
|
-
variables?: Json;
|
|
18
|
-
extensions?: Json;
|
|
19
|
-
};
|
|
20
|
-
Returns: Json;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
Enums: {
|
|
24
|
-
[_ in never]: never;
|
|
25
|
-
};
|
|
26
|
-
CompositeTypes: {
|
|
27
|
-
[_ in never]: never;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
5
|
internal: {
|
|
31
6
|
Tables: {
|
|
32
7
|
config: {
|
|
@@ -224,7 +199,7 @@ export type Database = {
|
|
|
224
199
|
metadata: Json | null;
|
|
225
200
|
org_id: string;
|
|
226
201
|
question: string;
|
|
227
|
-
type: Database[
|
|
202
|
+
type: Database["public"]["Enums"]["enum_ai_context_type"] | null;
|
|
228
203
|
};
|
|
229
204
|
Insert: {
|
|
230
205
|
answer: string;
|
|
@@ -236,7 +211,7 @@ export type Database = {
|
|
|
236
211
|
metadata?: Json | null;
|
|
237
212
|
org_id: string;
|
|
238
213
|
question: string;
|
|
239
|
-
type?: Database[
|
|
214
|
+
type?: Database["public"]["Enums"]["enum_ai_context_type"] | null;
|
|
240
215
|
};
|
|
241
216
|
Update: {
|
|
242
217
|
answer?: string;
|
|
@@ -248,7 +223,7 @@ export type Database = {
|
|
|
248
223
|
metadata?: Json | null;
|
|
249
224
|
org_id?: string;
|
|
250
225
|
question?: string;
|
|
251
|
-
type?: Database[
|
|
226
|
+
type?: Database["public"]["Enums"]["enum_ai_context_type"] | null;
|
|
252
227
|
};
|
|
253
228
|
Relationships: [];
|
|
254
229
|
};
|
|
@@ -324,18 +299,18 @@ export type Database = {
|
|
|
324
299
|
};
|
|
325
300
|
Relationships: [
|
|
326
301
|
{
|
|
327
|
-
foreignKeyName:
|
|
328
|
-
columns: [
|
|
302
|
+
foreignKeyName: "tbl_automation_rules_org_id_fkey";
|
|
303
|
+
columns: ["org_id"];
|
|
329
304
|
isOneToOne: false;
|
|
330
|
-
referencedRelation:
|
|
331
|
-
referencedColumns: [
|
|
305
|
+
referencedRelation: "tbl_org";
|
|
306
|
+
referencedColumns: ["org_id"];
|
|
332
307
|
},
|
|
333
308
|
{
|
|
334
|
-
foreignKeyName:
|
|
335
|
-
columns: [
|
|
309
|
+
foreignKeyName: "tbl_automation_rules_org_id_fkey";
|
|
310
|
+
columns: ["org_id"];
|
|
336
311
|
isOneToOne: false;
|
|
337
|
-
referencedRelation:
|
|
338
|
-
referencedColumns: [
|
|
312
|
+
referencedRelation: "view_org";
|
|
313
|
+
referencedColumns: ["org_id"];
|
|
339
314
|
}
|
|
340
315
|
];
|
|
341
316
|
};
|
|
@@ -387,39 +362,39 @@ export type Database = {
|
|
|
387
362
|
};
|
|
388
363
|
Relationships: [
|
|
389
364
|
{
|
|
390
|
-
foreignKeyName:
|
|
391
|
-
columns: [
|
|
365
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
366
|
+
columns: ["broadcast_id"];
|
|
392
367
|
isOneToOne: false;
|
|
393
|
-
referencedRelation:
|
|
394
|
-
referencedColumns: [
|
|
368
|
+
referencedRelation: "tbl_broadcast_messages";
|
|
369
|
+
referencedColumns: ["broadcast_id"];
|
|
395
370
|
},
|
|
396
371
|
{
|
|
397
|
-
foreignKeyName:
|
|
398
|
-
columns: [
|
|
372
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
373
|
+
columns: ["broadcast_id"];
|
|
399
374
|
isOneToOne: false;
|
|
400
|
-
referencedRelation:
|
|
401
|
-
referencedColumns: [
|
|
375
|
+
referencedRelation: "view_broadcast_logs";
|
|
376
|
+
referencedColumns: ["broadcast_id"];
|
|
402
377
|
},
|
|
403
378
|
{
|
|
404
|
-
foreignKeyName:
|
|
405
|
-
columns: [
|
|
379
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
380
|
+
columns: ["org_id"];
|
|
406
381
|
isOneToOne: false;
|
|
407
|
-
referencedRelation:
|
|
408
|
-
referencedColumns: [
|
|
382
|
+
referencedRelation: "tbl_org";
|
|
383
|
+
referencedColumns: ["org_id"];
|
|
409
384
|
},
|
|
410
385
|
{
|
|
411
|
-
foreignKeyName:
|
|
412
|
-
columns: [
|
|
386
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
387
|
+
columns: ["org_id"];
|
|
413
388
|
isOneToOne: false;
|
|
414
|
-
referencedRelation:
|
|
415
|
-
referencedColumns: [
|
|
389
|
+
referencedRelation: "view_org";
|
|
390
|
+
referencedColumns: ["org_id"];
|
|
416
391
|
}
|
|
417
392
|
];
|
|
418
393
|
};
|
|
419
394
|
tbl_broadcast_messages: {
|
|
420
395
|
Row: {
|
|
421
396
|
broadcast_id: string;
|
|
422
|
-
broadcast_status: Database[
|
|
397
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
423
398
|
chat_ids: string[] | null;
|
|
424
399
|
created_at: string;
|
|
425
400
|
delay: number | null;
|
|
@@ -433,7 +408,7 @@ export type Database = {
|
|
|
433
408
|
};
|
|
434
409
|
Insert: {
|
|
435
410
|
broadcast_id?: string;
|
|
436
|
-
broadcast_status?: Database[
|
|
411
|
+
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
437
412
|
chat_ids?: string[] | null;
|
|
438
413
|
created_at?: string;
|
|
439
414
|
delay?: number | null;
|
|
@@ -447,7 +422,7 @@ export type Database = {
|
|
|
447
422
|
};
|
|
448
423
|
Update: {
|
|
449
424
|
broadcast_id?: string;
|
|
450
|
-
broadcast_status?: Database[
|
|
425
|
+
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
451
426
|
chat_ids?: string[] | null;
|
|
452
427
|
created_at?: string;
|
|
453
428
|
delay?: number | null;
|
|
@@ -461,18 +436,18 @@ export type Database = {
|
|
|
461
436
|
};
|
|
462
437
|
Relationships: [
|
|
463
438
|
{
|
|
464
|
-
foreignKeyName:
|
|
465
|
-
columns: [
|
|
439
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
440
|
+
columns: ["org_id"];
|
|
466
441
|
isOneToOne: false;
|
|
467
|
-
referencedRelation:
|
|
468
|
-
referencedColumns: [
|
|
442
|
+
referencedRelation: "tbl_org";
|
|
443
|
+
referencedColumns: ["org_id"];
|
|
469
444
|
},
|
|
470
445
|
{
|
|
471
|
-
foreignKeyName:
|
|
472
|
-
columns: [
|
|
446
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
447
|
+
columns: ["org_id"];
|
|
473
448
|
isOneToOne: false;
|
|
474
|
-
referencedRelation:
|
|
475
|
-
referencedColumns: [
|
|
449
|
+
referencedRelation: "view_org";
|
|
450
|
+
referencedColumns: ["org_id"];
|
|
476
451
|
}
|
|
477
452
|
];
|
|
478
453
|
};
|
|
@@ -506,18 +481,18 @@ export type Database = {
|
|
|
506
481
|
};
|
|
507
482
|
Relationships: [
|
|
508
483
|
{
|
|
509
|
-
foreignKeyName:
|
|
510
|
-
columns: [
|
|
484
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
485
|
+
columns: ["org_id"];
|
|
511
486
|
isOneToOne: false;
|
|
512
|
-
referencedRelation:
|
|
513
|
-
referencedColumns: [
|
|
487
|
+
referencedRelation: "tbl_org";
|
|
488
|
+
referencedColumns: ["org_id"];
|
|
514
489
|
},
|
|
515
490
|
{
|
|
516
|
-
foreignKeyName:
|
|
517
|
-
columns: [
|
|
491
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
492
|
+
columns: ["org_id"];
|
|
518
493
|
isOneToOne: false;
|
|
519
|
-
referencedRelation:
|
|
520
|
-
referencedColumns: [
|
|
494
|
+
referencedRelation: "view_org";
|
|
495
|
+
referencedColumns: ["org_id"];
|
|
521
496
|
}
|
|
522
497
|
];
|
|
523
498
|
};
|
|
@@ -563,18 +538,18 @@ export type Database = {
|
|
|
563
538
|
};
|
|
564
539
|
Relationships: [
|
|
565
540
|
{
|
|
566
|
-
foreignKeyName:
|
|
567
|
-
columns: [
|
|
541
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
542
|
+
columns: ["org_id"];
|
|
568
543
|
isOneToOne: false;
|
|
569
|
-
referencedRelation:
|
|
570
|
-
referencedColumns: [
|
|
544
|
+
referencedRelation: "tbl_org";
|
|
545
|
+
referencedColumns: ["org_id"];
|
|
571
546
|
},
|
|
572
547
|
{
|
|
573
|
-
foreignKeyName:
|
|
574
|
-
columns: [
|
|
548
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
549
|
+
columns: ["org_id"];
|
|
575
550
|
isOneToOne: false;
|
|
576
|
-
referencedRelation:
|
|
577
|
-
referencedColumns: [
|
|
551
|
+
referencedRelation: "view_org";
|
|
552
|
+
referencedColumns: ["org_id"];
|
|
578
553
|
}
|
|
579
554
|
];
|
|
580
555
|
};
|
|
@@ -1027,7 +1002,7 @@ export type Database = {
|
|
|
1027
1002
|
quoted_message_id: string | null;
|
|
1028
1003
|
raised_by: string | null;
|
|
1029
1004
|
response_time: number | null;
|
|
1030
|
-
status: Database[
|
|
1005
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
1031
1006
|
subject: string;
|
|
1032
1007
|
ticket_id: string;
|
|
1033
1008
|
zohodesk_metadata: Json | null;
|
|
@@ -1051,7 +1026,7 @@ export type Database = {
|
|
|
1051
1026
|
quoted_message_id?: string | null;
|
|
1052
1027
|
raised_by?: string | null;
|
|
1053
1028
|
response_time?: number | null;
|
|
1054
|
-
status?: Database[
|
|
1029
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
1055
1030
|
subject: string;
|
|
1056
1031
|
ticket_id?: string;
|
|
1057
1032
|
zohodesk_metadata?: Json | null;
|
|
@@ -1075,25 +1050,25 @@ export type Database = {
|
|
|
1075
1050
|
quoted_message_id?: string | null;
|
|
1076
1051
|
raised_by?: string | null;
|
|
1077
1052
|
response_time?: number | null;
|
|
1078
|
-
status?: Database[
|
|
1053
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
1079
1054
|
subject?: string;
|
|
1080
1055
|
ticket_id?: string;
|
|
1081
1056
|
zohodesk_metadata?: Json | null;
|
|
1082
1057
|
};
|
|
1083
1058
|
Relationships: [
|
|
1084
1059
|
{
|
|
1085
|
-
foreignKeyName:
|
|
1086
|
-
columns: [
|
|
1060
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
1061
|
+
columns: ["org_id"];
|
|
1087
1062
|
isOneToOne: false;
|
|
1088
|
-
referencedRelation:
|
|
1089
|
-
referencedColumns: [
|
|
1063
|
+
referencedRelation: "tbl_org";
|
|
1064
|
+
referencedColumns: ["org_id"];
|
|
1090
1065
|
},
|
|
1091
1066
|
{
|
|
1092
|
-
foreignKeyName:
|
|
1093
|
-
columns: [
|
|
1067
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
1068
|
+
columns: ["org_id"];
|
|
1094
1069
|
isOneToOne: false;
|
|
1095
|
-
referencedRelation:
|
|
1096
|
-
referencedColumns: [
|
|
1070
|
+
referencedRelation: "view_org";
|
|
1071
|
+
referencedColumns: ["org_id"];
|
|
1097
1072
|
}
|
|
1098
1073
|
];
|
|
1099
1074
|
};
|
|
@@ -1190,7 +1165,7 @@ export type Database = {
|
|
|
1190
1165
|
tbl_contacts: {
|
|
1191
1166
|
Row: {
|
|
1192
1167
|
business_profile: Json | null;
|
|
1193
|
-
contact_color: Database[
|
|
1168
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
1194
1169
|
contact_id: string;
|
|
1195
1170
|
contact_image: string | null;
|
|
1196
1171
|
contact_name: string | null;
|
|
@@ -1219,7 +1194,7 @@ export type Database = {
|
|
|
1219
1194
|
};
|
|
1220
1195
|
Insert: {
|
|
1221
1196
|
business_profile?: Json | null;
|
|
1222
|
-
contact_color?: Database[
|
|
1197
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
1223
1198
|
contact_id: string;
|
|
1224
1199
|
contact_image?: string | null;
|
|
1225
1200
|
contact_name?: string | null;
|
|
@@ -1248,7 +1223,7 @@ export type Database = {
|
|
|
1248
1223
|
};
|
|
1249
1224
|
Update: {
|
|
1250
1225
|
business_profile?: Json | null;
|
|
1251
|
-
contact_color?: Database[
|
|
1226
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
1252
1227
|
contact_id?: string;
|
|
1253
1228
|
contact_image?: string | null;
|
|
1254
1229
|
contact_name?: string | null;
|
|
@@ -1277,18 +1252,18 @@ export type Database = {
|
|
|
1277
1252
|
};
|
|
1278
1253
|
Relationships: [
|
|
1279
1254
|
{
|
|
1280
|
-
foreignKeyName:
|
|
1281
|
-
columns: [
|
|
1255
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1256
|
+
columns: ["org_id"];
|
|
1282
1257
|
isOneToOne: false;
|
|
1283
|
-
referencedRelation:
|
|
1284
|
-
referencedColumns: [
|
|
1258
|
+
referencedRelation: "tbl_org";
|
|
1259
|
+
referencedColumns: ["org_id"];
|
|
1285
1260
|
},
|
|
1286
1261
|
{
|
|
1287
|
-
foreignKeyName:
|
|
1288
|
-
columns: [
|
|
1262
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1263
|
+
columns: ["org_id"];
|
|
1289
1264
|
isOneToOne: false;
|
|
1290
|
-
referencedRelation:
|
|
1291
|
-
referencedColumns: [
|
|
1265
|
+
referencedRelation: "view_org";
|
|
1266
|
+
referencedColumns: ["org_id"];
|
|
1292
1267
|
}
|
|
1293
1268
|
];
|
|
1294
1269
|
};
|
|
@@ -1331,18 +1306,18 @@ export type Database = {
|
|
|
1331
1306
|
};
|
|
1332
1307
|
Relationships: [
|
|
1333
1308
|
{
|
|
1334
|
-
foreignKeyName:
|
|
1335
|
-
columns: [
|
|
1309
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1310
|
+
columns: ["org_id"];
|
|
1336
1311
|
isOneToOne: false;
|
|
1337
|
-
referencedRelation:
|
|
1338
|
-
referencedColumns: [
|
|
1312
|
+
referencedRelation: "tbl_org";
|
|
1313
|
+
referencedColumns: ["org_id"];
|
|
1339
1314
|
},
|
|
1340
1315
|
{
|
|
1341
|
-
foreignKeyName:
|
|
1342
|
-
columns: [
|
|
1316
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1317
|
+
columns: ["org_id"];
|
|
1343
1318
|
isOneToOne: false;
|
|
1344
|
-
referencedRelation:
|
|
1345
|
-
referencedColumns: [
|
|
1319
|
+
referencedRelation: "view_org";
|
|
1320
|
+
referencedColumns: ["org_id"];
|
|
1346
1321
|
}
|
|
1347
1322
|
];
|
|
1348
1323
|
};
|
|
@@ -1388,18 +1363,18 @@ export type Database = {
|
|
|
1388
1363
|
};
|
|
1389
1364
|
Relationships: [
|
|
1390
1365
|
{
|
|
1391
|
-
foreignKeyName:
|
|
1392
|
-
columns: [
|
|
1366
|
+
foreignKeyName: "tbl_group_templates_org_id_fkey";
|
|
1367
|
+
columns: ["org_id"];
|
|
1393
1368
|
isOneToOne: false;
|
|
1394
|
-
referencedRelation:
|
|
1395
|
-
referencedColumns: [
|
|
1369
|
+
referencedRelation: "tbl_org";
|
|
1370
|
+
referencedColumns: ["org_id"];
|
|
1396
1371
|
},
|
|
1397
1372
|
{
|
|
1398
|
-
foreignKeyName:
|
|
1399
|
-
columns: [
|
|
1373
|
+
foreignKeyName: "tbl_group_templates_org_id_fkey";
|
|
1374
|
+
columns: ["org_id"];
|
|
1400
1375
|
isOneToOne: false;
|
|
1401
|
-
referencedRelation:
|
|
1402
|
-
referencedColumns: [
|
|
1376
|
+
referencedRelation: "view_org";
|
|
1377
|
+
referencedColumns: ["org_id"];
|
|
1403
1378
|
}
|
|
1404
1379
|
];
|
|
1405
1380
|
};
|
|
@@ -1409,51 +1384,51 @@ export type Database = {
|
|
|
1409
1384
|
id: string;
|
|
1410
1385
|
integration_id: string | null;
|
|
1411
1386
|
integration_metadata: Json;
|
|
1412
|
-
integration_name: Database[
|
|
1387
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1413
1388
|
integration_type: string;
|
|
1414
1389
|
is_subscribed: boolean;
|
|
1415
1390
|
org_id: string;
|
|
1416
1391
|
subscribed_at: string;
|
|
1417
|
-
type: Database[
|
|
1392
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1418
1393
|
};
|
|
1419
1394
|
Insert: {
|
|
1420
1395
|
hook_url: string;
|
|
1421
1396
|
id?: string;
|
|
1422
1397
|
integration_id?: string | null;
|
|
1423
1398
|
integration_metadata: Json;
|
|
1424
|
-
integration_name: Database[
|
|
1399
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1425
1400
|
integration_type: string;
|
|
1426
1401
|
is_subscribed: boolean;
|
|
1427
1402
|
org_id: string;
|
|
1428
1403
|
subscribed_at?: string;
|
|
1429
|
-
type: Database[
|
|
1404
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1430
1405
|
};
|
|
1431
1406
|
Update: {
|
|
1432
1407
|
hook_url?: string;
|
|
1433
1408
|
id?: string;
|
|
1434
1409
|
integration_id?: string | null;
|
|
1435
1410
|
integration_metadata?: Json;
|
|
1436
|
-
integration_name?: Database[
|
|
1411
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1437
1412
|
integration_type?: string;
|
|
1438
1413
|
is_subscribed?: boolean;
|
|
1439
1414
|
org_id?: string;
|
|
1440
1415
|
subscribed_at?: string;
|
|
1441
|
-
type?: Database[
|
|
1416
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1442
1417
|
};
|
|
1443
1418
|
Relationships: [
|
|
1444
1419
|
{
|
|
1445
|
-
foreignKeyName:
|
|
1446
|
-
columns: [
|
|
1420
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1421
|
+
columns: ["org_id"];
|
|
1447
1422
|
isOneToOne: false;
|
|
1448
|
-
referencedRelation:
|
|
1449
|
-
referencedColumns: [
|
|
1423
|
+
referencedRelation: "tbl_org";
|
|
1424
|
+
referencedColumns: ["org_id"];
|
|
1450
1425
|
},
|
|
1451
1426
|
{
|
|
1452
|
-
foreignKeyName:
|
|
1453
|
-
columns: [
|
|
1427
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1428
|
+
columns: ["org_id"];
|
|
1454
1429
|
isOneToOne: false;
|
|
1455
|
-
referencedRelation:
|
|
1456
|
-
referencedColumns: [
|
|
1430
|
+
referencedRelation: "view_org";
|
|
1431
|
+
referencedColumns: ["org_id"];
|
|
1457
1432
|
}
|
|
1458
1433
|
];
|
|
1459
1434
|
};
|
|
@@ -1461,50 +1436,50 @@ export type Database = {
|
|
|
1461
1436
|
Row: {
|
|
1462
1437
|
created_at: string;
|
|
1463
1438
|
id: string;
|
|
1464
|
-
integration_name: Database[
|
|
1439
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1465
1440
|
integration_type: string;
|
|
1466
1441
|
metadata: Json;
|
|
1467
1442
|
org_id: string;
|
|
1468
1443
|
response: Json | null;
|
|
1469
1444
|
success: boolean;
|
|
1470
|
-
type: Database[
|
|
1445
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1471
1446
|
};
|
|
1472
1447
|
Insert: {
|
|
1473
1448
|
created_at?: string;
|
|
1474
1449
|
id?: string;
|
|
1475
|
-
integration_name: Database[
|
|
1450
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1476
1451
|
integration_type: string;
|
|
1477
1452
|
metadata?: Json;
|
|
1478
1453
|
org_id: string;
|
|
1479
1454
|
response?: Json | null;
|
|
1480
1455
|
success?: boolean;
|
|
1481
|
-
type: Database[
|
|
1456
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1482
1457
|
};
|
|
1483
1458
|
Update: {
|
|
1484
1459
|
created_at?: string;
|
|
1485
1460
|
id?: string;
|
|
1486
|
-
integration_name?: Database[
|
|
1461
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1487
1462
|
integration_type?: string;
|
|
1488
1463
|
metadata?: Json;
|
|
1489
1464
|
org_id?: string;
|
|
1490
1465
|
response?: Json | null;
|
|
1491
1466
|
success?: boolean;
|
|
1492
|
-
type?: Database[
|
|
1467
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1493
1468
|
};
|
|
1494
1469
|
Relationships: [
|
|
1495
1470
|
{
|
|
1496
|
-
foreignKeyName:
|
|
1497
|
-
columns: [
|
|
1471
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1472
|
+
columns: ["org_id"];
|
|
1498
1473
|
isOneToOne: false;
|
|
1499
|
-
referencedRelation:
|
|
1500
|
-
referencedColumns: [
|
|
1474
|
+
referencedRelation: "tbl_org";
|
|
1475
|
+
referencedColumns: ["org_id"];
|
|
1501
1476
|
},
|
|
1502
1477
|
{
|
|
1503
|
-
foreignKeyName:
|
|
1504
|
-
columns: [
|
|
1478
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1479
|
+
columns: ["org_id"];
|
|
1505
1480
|
isOneToOne: false;
|
|
1506
|
-
referencedRelation:
|
|
1507
|
-
referencedColumns: [
|
|
1481
|
+
referencedRelation: "view_org";
|
|
1482
|
+
referencedColumns: ["org_id"];
|
|
1508
1483
|
}
|
|
1509
1484
|
];
|
|
1510
1485
|
};
|
|
@@ -1519,7 +1494,7 @@ export type Database = {
|
|
|
1519
1494
|
role: string;
|
|
1520
1495
|
token: string;
|
|
1521
1496
|
token_metadata: Json | null;
|
|
1522
|
-
type: Database[
|
|
1497
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1523
1498
|
};
|
|
1524
1499
|
Insert: {
|
|
1525
1500
|
exp: string;
|
|
@@ -1531,7 +1506,7 @@ export type Database = {
|
|
|
1531
1506
|
role: string;
|
|
1532
1507
|
token: string;
|
|
1533
1508
|
token_metadata?: Json | null;
|
|
1534
|
-
type: Database[
|
|
1509
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1535
1510
|
};
|
|
1536
1511
|
Update: {
|
|
1537
1512
|
exp?: string;
|
|
@@ -1543,22 +1518,22 @@ export type Database = {
|
|
|
1543
1518
|
role?: string;
|
|
1544
1519
|
token?: string;
|
|
1545
1520
|
token_metadata?: Json | null;
|
|
1546
|
-
type?: Database[
|
|
1521
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1547
1522
|
};
|
|
1548
1523
|
Relationships: [
|
|
1549
1524
|
{
|
|
1550
|
-
foreignKeyName:
|
|
1551
|
-
columns: [
|
|
1525
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1526
|
+
columns: ["org_id"];
|
|
1552
1527
|
isOneToOne: false;
|
|
1553
|
-
referencedRelation:
|
|
1554
|
-
referencedColumns: [
|
|
1528
|
+
referencedRelation: "tbl_org";
|
|
1529
|
+
referencedColumns: ["org_id"];
|
|
1555
1530
|
},
|
|
1556
1531
|
{
|
|
1557
|
-
foreignKeyName:
|
|
1558
|
-
columns: [
|
|
1532
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1533
|
+
columns: ["org_id"];
|
|
1559
1534
|
isOneToOne: false;
|
|
1560
|
-
referencedRelation:
|
|
1561
|
-
referencedColumns: [
|
|
1535
|
+
referencedRelation: "view_org";
|
|
1536
|
+
referencedColumns: ["org_id"];
|
|
1562
1537
|
}
|
|
1563
1538
|
];
|
|
1564
1539
|
};
|
|
@@ -1640,18 +1615,18 @@ export type Database = {
|
|
|
1640
1615
|
};
|
|
1641
1616
|
Relationships: [
|
|
1642
1617
|
{
|
|
1643
|
-
foreignKeyName:
|
|
1644
|
-
columns: [
|
|
1618
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1619
|
+
columns: ["org_id"];
|
|
1645
1620
|
isOneToOne: false;
|
|
1646
|
-
referencedRelation:
|
|
1647
|
-
referencedColumns: [
|
|
1621
|
+
referencedRelation: "tbl_org";
|
|
1622
|
+
referencedColumns: ["org_id"];
|
|
1648
1623
|
},
|
|
1649
1624
|
{
|
|
1650
|
-
foreignKeyName:
|
|
1651
|
-
columns: [
|
|
1625
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1626
|
+
columns: ["org_id"];
|
|
1652
1627
|
isOneToOne: false;
|
|
1653
|
-
referencedRelation:
|
|
1654
|
-
referencedColumns: [
|
|
1628
|
+
referencedRelation: "view_org";
|
|
1629
|
+
referencedColumns: ["org_id"];
|
|
1655
1630
|
}
|
|
1656
1631
|
];
|
|
1657
1632
|
};
|
|
@@ -1665,14 +1640,14 @@ export type Database = {
|
|
|
1665
1640
|
is_online: boolean | null;
|
|
1666
1641
|
is_owner: boolean | null;
|
|
1667
1642
|
label_ids: string[] | null;
|
|
1668
|
-
member_color: Database[
|
|
1643
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1669
1644
|
member_image: string | null;
|
|
1670
1645
|
member_metadata: Json | null;
|
|
1671
1646
|
member_name: string | null;
|
|
1672
1647
|
org_id: string;
|
|
1673
1648
|
org_phones: string[] | null;
|
|
1674
1649
|
preferences: Json;
|
|
1675
|
-
role: Database[
|
|
1650
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1676
1651
|
user_id: string | null;
|
|
1677
1652
|
};
|
|
1678
1653
|
Insert: {
|
|
@@ -1684,14 +1659,14 @@ export type Database = {
|
|
|
1684
1659
|
is_online?: boolean | null;
|
|
1685
1660
|
is_owner?: boolean | null;
|
|
1686
1661
|
label_ids?: string[] | null;
|
|
1687
|
-
member_color?: Database[
|
|
1662
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1688
1663
|
member_image?: string | null;
|
|
1689
1664
|
member_metadata?: Json | null;
|
|
1690
1665
|
member_name?: string | null;
|
|
1691
1666
|
org_id: string;
|
|
1692
1667
|
org_phones?: string[] | null;
|
|
1693
1668
|
preferences?: Json;
|
|
1694
|
-
role?: Database[
|
|
1669
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1695
1670
|
user_id?: string | null;
|
|
1696
1671
|
};
|
|
1697
1672
|
Update: {
|
|
@@ -1703,37 +1678,30 @@ export type Database = {
|
|
|
1703
1678
|
is_online?: boolean | null;
|
|
1704
1679
|
is_owner?: boolean | null;
|
|
1705
1680
|
label_ids?: string[] | null;
|
|
1706
|
-
member_color?: Database[
|
|
1681
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1707
1682
|
member_image?: string | null;
|
|
1708
1683
|
member_metadata?: Json | null;
|
|
1709
1684
|
member_name?: string | null;
|
|
1710
1685
|
org_id?: string;
|
|
1711
1686
|
org_phones?: string[] | null;
|
|
1712
1687
|
preferences?: Json;
|
|
1713
|
-
role?: Database[
|
|
1688
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1714
1689
|
user_id?: string | null;
|
|
1715
1690
|
};
|
|
1716
1691
|
Relationships: [
|
|
1717
1692
|
{
|
|
1718
|
-
foreignKeyName:
|
|
1719
|
-
columns: [
|
|
1693
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1694
|
+
columns: ["org_id"];
|
|
1720
1695
|
isOneToOne: false;
|
|
1721
|
-
referencedRelation:
|
|
1722
|
-
referencedColumns: [
|
|
1696
|
+
referencedRelation: "tbl_org";
|
|
1697
|
+
referencedColumns: ["org_id"];
|
|
1723
1698
|
},
|
|
1724
1699
|
{
|
|
1725
|
-
foreignKeyName:
|
|
1726
|
-
columns: [
|
|
1700
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1701
|
+
columns: ["org_id"];
|
|
1727
1702
|
isOneToOne: false;
|
|
1728
|
-
referencedRelation:
|
|
1729
|
-
referencedColumns: [
|
|
1730
|
-
},
|
|
1731
|
-
{
|
|
1732
|
-
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1733
|
-
columns: ['org_id'];
|
|
1734
|
-
isOneToOne: false;
|
|
1735
|
-
referencedRelation: 'view_org';
|
|
1736
|
-
referencedColumns: ['org_id'];
|
|
1703
|
+
referencedRelation: "view_org";
|
|
1704
|
+
referencedColumns: ["org_id"];
|
|
1737
1705
|
}
|
|
1738
1706
|
];
|
|
1739
1707
|
};
|
|
@@ -1812,32 +1780,32 @@ export type Database = {
|
|
|
1812
1780
|
};
|
|
1813
1781
|
Relationships: [
|
|
1814
1782
|
{
|
|
1815
|
-
foreignKeyName:
|
|
1816
|
-
columns: [
|
|
1783
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1784
|
+
columns: ["org_id"];
|
|
1817
1785
|
isOneToOne: false;
|
|
1818
|
-
referencedRelation:
|
|
1819
|
-
referencedColumns: [
|
|
1786
|
+
referencedRelation: "tbl_org";
|
|
1787
|
+
referencedColumns: ["org_id"];
|
|
1820
1788
|
},
|
|
1821
1789
|
{
|
|
1822
|
-
foreignKeyName:
|
|
1823
|
-
columns: [
|
|
1790
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1791
|
+
columns: ["org_id"];
|
|
1824
1792
|
isOneToOne: false;
|
|
1825
|
-
referencedRelation:
|
|
1826
|
-
referencedColumns: [
|
|
1793
|
+
referencedRelation: "view_org";
|
|
1794
|
+
referencedColumns: ["org_id"];
|
|
1827
1795
|
},
|
|
1828
1796
|
{
|
|
1829
|
-
foreignKeyName:
|
|
1830
|
-
columns: [
|
|
1797
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1798
|
+
columns: ["org_id"];
|
|
1831
1799
|
isOneToOne: false;
|
|
1832
|
-
referencedRelation:
|
|
1833
|
-
referencedColumns: [
|
|
1800
|
+
referencedRelation: "tbl_org";
|
|
1801
|
+
referencedColumns: ["org_id"];
|
|
1834
1802
|
},
|
|
1835
1803
|
{
|
|
1836
|
-
foreignKeyName:
|
|
1837
|
-
columns: [
|
|
1804
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1805
|
+
columns: ["org_id"];
|
|
1838
1806
|
isOneToOne: false;
|
|
1839
|
-
referencedRelation:
|
|
1840
|
-
referencedColumns: [
|
|
1807
|
+
referencedRelation: "view_org";
|
|
1808
|
+
referencedColumns: ["org_id"];
|
|
1841
1809
|
}
|
|
1842
1810
|
];
|
|
1843
1811
|
};
|
|
@@ -1901,18 +1869,18 @@ export type Database = {
|
|
|
1901
1869
|
};
|
|
1902
1870
|
Relationships: [
|
|
1903
1871
|
{
|
|
1904
|
-
foreignKeyName:
|
|
1905
|
-
columns: [
|
|
1872
|
+
foreignKeyName: "tbl_org_task_org_id_fkey";
|
|
1873
|
+
columns: ["org_id"];
|
|
1906
1874
|
isOneToOne: false;
|
|
1907
|
-
referencedRelation:
|
|
1908
|
-
referencedColumns: [
|
|
1875
|
+
referencedRelation: "tbl_org";
|
|
1876
|
+
referencedColumns: ["org_id"];
|
|
1909
1877
|
},
|
|
1910
1878
|
{
|
|
1911
|
-
foreignKeyName:
|
|
1912
|
-
columns: [
|
|
1879
|
+
foreignKeyName: "tbl_org_task_org_id_fkey";
|
|
1880
|
+
columns: ["org_id"];
|
|
1913
1881
|
isOneToOne: false;
|
|
1914
|
-
referencedRelation:
|
|
1915
|
-
referencedColumns: [
|
|
1882
|
+
referencedRelation: "view_org";
|
|
1883
|
+
referencedColumns: ["org_id"];
|
|
1916
1884
|
}
|
|
1917
1885
|
];
|
|
1918
1886
|
};
|
|
@@ -1924,7 +1892,7 @@ export type Database = {
|
|
|
1924
1892
|
timestamp: string | null;
|
|
1925
1893
|
transaction_id: string;
|
|
1926
1894
|
transaction_metadata: Json | null;
|
|
1927
|
-
transaction_type: Database[
|
|
1895
|
+
transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
1928
1896
|
usage_metadata: Json | null;
|
|
1929
1897
|
};
|
|
1930
1898
|
Insert: {
|
|
@@ -1934,7 +1902,7 @@ export type Database = {
|
|
|
1934
1902
|
timestamp?: string | null;
|
|
1935
1903
|
transaction_id?: string;
|
|
1936
1904
|
transaction_metadata?: Json | null;
|
|
1937
|
-
transaction_type: Database[
|
|
1905
|
+
transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
1938
1906
|
usage_metadata?: Json | null;
|
|
1939
1907
|
};
|
|
1940
1908
|
Update: {
|
|
@@ -1944,23 +1912,23 @@ export type Database = {
|
|
|
1944
1912
|
timestamp?: string | null;
|
|
1945
1913
|
transaction_id?: string;
|
|
1946
1914
|
transaction_metadata?: Json | null;
|
|
1947
|
-
transaction_type?: Database[
|
|
1915
|
+
transaction_type?: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
1948
1916
|
usage_metadata?: Json | null;
|
|
1949
1917
|
};
|
|
1950
1918
|
Relationships: [
|
|
1951
1919
|
{
|
|
1952
|
-
foreignKeyName:
|
|
1953
|
-
columns: [
|
|
1920
|
+
foreignKeyName: "tbl_org_transactions_org_id_fkey";
|
|
1921
|
+
columns: ["org_id"];
|
|
1954
1922
|
isOneToOne: false;
|
|
1955
|
-
referencedRelation:
|
|
1956
|
-
referencedColumns: [
|
|
1923
|
+
referencedRelation: "tbl_org";
|
|
1924
|
+
referencedColumns: ["org_id"];
|
|
1957
1925
|
},
|
|
1958
1926
|
{
|
|
1959
|
-
foreignKeyName:
|
|
1960
|
-
columns: [
|
|
1927
|
+
foreignKeyName: "tbl_org_transactions_org_id_fkey";
|
|
1928
|
+
columns: ["org_id"];
|
|
1961
1929
|
isOneToOne: false;
|
|
1962
|
-
referencedRelation:
|
|
1963
|
-
referencedColumns: [
|
|
1930
|
+
referencedRelation: "view_org";
|
|
1931
|
+
referencedColumns: ["org_id"];
|
|
1964
1932
|
}
|
|
1965
1933
|
];
|
|
1966
1934
|
};
|
|
@@ -1988,18 +1956,18 @@ export type Database = {
|
|
|
1988
1956
|
};
|
|
1989
1957
|
Relationships: [
|
|
1990
1958
|
{
|
|
1991
|
-
foreignKeyName:
|
|
1992
|
-
columns: [
|
|
1959
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1960
|
+
columns: ["org_id"];
|
|
1993
1961
|
isOneToOne: false;
|
|
1994
|
-
referencedRelation:
|
|
1995
|
-
referencedColumns: [
|
|
1962
|
+
referencedRelation: "tbl_org";
|
|
1963
|
+
referencedColumns: ["org_id"];
|
|
1996
1964
|
},
|
|
1997
1965
|
{
|
|
1998
|
-
foreignKeyName:
|
|
1999
|
-
columns: [
|
|
1966
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1967
|
+
columns: ["org_id"];
|
|
2000
1968
|
isOneToOne: false;
|
|
2001
|
-
referencedRelation:
|
|
2002
|
-
referencedColumns: [
|
|
1969
|
+
referencedRelation: "view_org";
|
|
1970
|
+
referencedColumns: ["org_id"];
|
|
2003
1971
|
}
|
|
2004
1972
|
];
|
|
2005
1973
|
};
|
|
@@ -2045,18 +2013,18 @@ export type Database = {
|
|
|
2045
2013
|
};
|
|
2046
2014
|
Relationships: [
|
|
2047
2015
|
{
|
|
2048
|
-
foreignKeyName:
|
|
2049
|
-
columns: [
|
|
2016
|
+
foreignKeyName: "tbl_recurring_messages_org_id_fkey";
|
|
2017
|
+
columns: ["org_id"];
|
|
2050
2018
|
isOneToOne: false;
|
|
2051
|
-
referencedRelation:
|
|
2052
|
-
referencedColumns: [
|
|
2019
|
+
referencedRelation: "tbl_org";
|
|
2020
|
+
referencedColumns: ["org_id"];
|
|
2053
2021
|
},
|
|
2054
2022
|
{
|
|
2055
|
-
foreignKeyName:
|
|
2056
|
-
columns: [
|
|
2023
|
+
foreignKeyName: "tbl_recurring_messages_org_id_fkey";
|
|
2024
|
+
columns: ["org_id"];
|
|
2057
2025
|
isOneToOne: false;
|
|
2058
|
-
referencedRelation:
|
|
2059
|
-
referencedColumns: [
|
|
2026
|
+
referencedRelation: "view_org";
|
|
2027
|
+
referencedColumns: ["org_id"];
|
|
2060
2028
|
}
|
|
2061
2029
|
];
|
|
2062
2030
|
};
|
|
@@ -2096,25 +2064,25 @@ export type Database = {
|
|
|
2096
2064
|
};
|
|
2097
2065
|
Relationships: [
|
|
2098
2066
|
{
|
|
2099
|
-
foreignKeyName:
|
|
2100
|
-
columns: [
|
|
2067
|
+
foreignKeyName: "tbl_rules_logs_org_id_fkey";
|
|
2068
|
+
columns: ["org_id"];
|
|
2101
2069
|
isOneToOne: false;
|
|
2102
|
-
referencedRelation:
|
|
2103
|
-
referencedColumns: [
|
|
2070
|
+
referencedRelation: "tbl_org";
|
|
2071
|
+
referencedColumns: ["org_id"];
|
|
2104
2072
|
},
|
|
2105
2073
|
{
|
|
2106
|
-
foreignKeyName:
|
|
2107
|
-
columns: [
|
|
2074
|
+
foreignKeyName: "tbl_rules_logs_org_id_fkey";
|
|
2075
|
+
columns: ["org_id"];
|
|
2108
2076
|
isOneToOne: false;
|
|
2109
|
-
referencedRelation:
|
|
2110
|
-
referencedColumns: [
|
|
2077
|
+
referencedRelation: "view_org";
|
|
2078
|
+
referencedColumns: ["org_id"];
|
|
2111
2079
|
},
|
|
2112
2080
|
{
|
|
2113
|
-
foreignKeyName:
|
|
2114
|
-
columns: [
|
|
2081
|
+
foreignKeyName: "tbl_rules_logs_rule_id_fkey";
|
|
2082
|
+
columns: ["rule_id"];
|
|
2115
2083
|
isOneToOne: false;
|
|
2116
|
-
referencedRelation:
|
|
2117
|
-
referencedColumns: [
|
|
2084
|
+
referencedRelation: "tbl_automation_rules";
|
|
2085
|
+
referencedColumns: ["id"];
|
|
2118
2086
|
}
|
|
2119
2087
|
];
|
|
2120
2088
|
};
|
|
@@ -2154,18 +2122,18 @@ export type Database = {
|
|
|
2154
2122
|
};
|
|
2155
2123
|
Relationships: [
|
|
2156
2124
|
{
|
|
2157
|
-
foreignKeyName:
|
|
2158
|
-
columns: [
|
|
2125
|
+
foreignKeyName: "tbl_scheduled_message_logs_org_id_fkey";
|
|
2126
|
+
columns: ["org_id"];
|
|
2159
2127
|
isOneToOne: false;
|
|
2160
|
-
referencedRelation:
|
|
2161
|
-
referencedColumns: [
|
|
2128
|
+
referencedRelation: "tbl_org";
|
|
2129
|
+
referencedColumns: ["org_id"];
|
|
2162
2130
|
},
|
|
2163
2131
|
{
|
|
2164
|
-
foreignKeyName:
|
|
2165
|
-
columns: [
|
|
2132
|
+
foreignKeyName: "tbl_scheduled_message_logs_org_id_fkey";
|
|
2133
|
+
columns: ["org_id"];
|
|
2166
2134
|
isOneToOne: false;
|
|
2167
|
-
referencedRelation:
|
|
2168
|
-
referencedColumns: [
|
|
2135
|
+
referencedRelation: "view_org";
|
|
2136
|
+
referencedColumns: ["org_id"];
|
|
2169
2137
|
}
|
|
2170
2138
|
];
|
|
2171
2139
|
};
|
|
@@ -2174,7 +2142,7 @@ export type Database = {
|
|
|
2174
2142
|
view_broadcast_logs: {
|
|
2175
2143
|
Row: {
|
|
2176
2144
|
broadcast_id: string | null;
|
|
2177
|
-
broadcast_status: Database[
|
|
2145
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
2178
2146
|
created_at: string | null;
|
|
2179
2147
|
delivered_percentage: number | null;
|
|
2180
2148
|
failed_chats: number | null;
|
|
@@ -2193,18 +2161,18 @@ export type Database = {
|
|
|
2193
2161
|
};
|
|
2194
2162
|
Relationships: [
|
|
2195
2163
|
{
|
|
2196
|
-
foreignKeyName:
|
|
2197
|
-
columns: [
|
|
2164
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
2165
|
+
columns: ["org_id"];
|
|
2198
2166
|
isOneToOne: false;
|
|
2199
|
-
referencedRelation:
|
|
2200
|
-
referencedColumns: [
|
|
2167
|
+
referencedRelation: "tbl_org";
|
|
2168
|
+
referencedColumns: ["org_id"];
|
|
2201
2169
|
},
|
|
2202
2170
|
{
|
|
2203
|
-
foreignKeyName:
|
|
2204
|
-
columns: [
|
|
2171
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
2172
|
+
columns: ["org_id"];
|
|
2205
2173
|
isOneToOne: false;
|
|
2206
|
-
referencedRelation:
|
|
2207
|
-
referencedColumns: [
|
|
2174
|
+
referencedRelation: "view_org";
|
|
2175
|
+
referencedColumns: ["org_id"];
|
|
2208
2176
|
}
|
|
2209
2177
|
];
|
|
2210
2178
|
};
|
|
@@ -2224,18 +2192,18 @@ export type Database = {
|
|
|
2224
2192
|
};
|
|
2225
2193
|
Relationships: [
|
|
2226
2194
|
{
|
|
2227
|
-
foreignKeyName:
|
|
2228
|
-
columns: [
|
|
2195
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
2196
|
+
columns: ["org_id"];
|
|
2229
2197
|
isOneToOne: false;
|
|
2230
|
-
referencedRelation:
|
|
2231
|
-
referencedColumns: [
|
|
2198
|
+
referencedRelation: "tbl_org";
|
|
2199
|
+
referencedColumns: ["org_id"];
|
|
2232
2200
|
},
|
|
2233
2201
|
{
|
|
2234
|
-
foreignKeyName:
|
|
2235
|
-
columns: [
|
|
2202
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
2203
|
+
columns: ["org_id"];
|
|
2236
2204
|
isOneToOne: false;
|
|
2237
|
-
referencedRelation:
|
|
2238
|
-
referencedColumns: [
|
|
2205
|
+
referencedRelation: "view_org";
|
|
2206
|
+
referencedColumns: ["org_id"];
|
|
2239
2207
|
}
|
|
2240
2208
|
];
|
|
2241
2209
|
};
|
|
@@ -2266,6 +2234,7 @@ export type Database = {
|
|
|
2266
2234
|
label_ids: Json | null;
|
|
2267
2235
|
latest_message: Json | null;
|
|
2268
2236
|
member_count: number | null;
|
|
2237
|
+
member_unread_count: Json | null;
|
|
2269
2238
|
message_unread_count: number | null;
|
|
2270
2239
|
messages_admins_only: boolean | null;
|
|
2271
2240
|
org_id: string | null;
|
|
@@ -2370,18 +2339,18 @@ export type Database = {
|
|
|
2370
2339
|
};
|
|
2371
2340
|
Relationships: [
|
|
2372
2341
|
{
|
|
2373
|
-
foreignKeyName:
|
|
2374
|
-
columns: [
|
|
2342
|
+
foreignKeyName: "tbl_recurring_messages_org_id_fkey";
|
|
2343
|
+
columns: ["org_id"];
|
|
2375
2344
|
isOneToOne: false;
|
|
2376
|
-
referencedRelation:
|
|
2377
|
-
referencedColumns: [
|
|
2345
|
+
referencedRelation: "tbl_org";
|
|
2346
|
+
referencedColumns: ["org_id"];
|
|
2378
2347
|
},
|
|
2379
2348
|
{
|
|
2380
|
-
foreignKeyName:
|
|
2381
|
-
columns: [
|
|
2349
|
+
foreignKeyName: "tbl_recurring_messages_org_id_fkey";
|
|
2350
|
+
columns: ["org_id"];
|
|
2382
2351
|
isOneToOne: false;
|
|
2383
|
-
referencedRelation:
|
|
2384
|
-
referencedColumns: [
|
|
2352
|
+
referencedRelation: "view_org";
|
|
2353
|
+
referencedColumns: ["org_id"];
|
|
2385
2354
|
}
|
|
2386
2355
|
];
|
|
2387
2356
|
};
|
|
@@ -2406,21 +2375,6 @@ export type Database = {
|
|
|
2406
2375
|
};
|
|
2407
2376
|
Returns: Json;
|
|
2408
2377
|
};
|
|
2409
|
-
drop_partition: {
|
|
2410
|
-
Args: {
|
|
2411
|
-
org_id_input: string;
|
|
2412
|
-
};
|
|
2413
|
-
Returns: boolean;
|
|
2414
|
-
};
|
|
2415
|
-
find_discrepancies: {
|
|
2416
|
-
Args: {
|
|
2417
|
-
p_org_id: string;
|
|
2418
|
-
};
|
|
2419
|
-
Returns: {
|
|
2420
|
-
a_chat_id: string;
|
|
2421
|
-
discrepancy_count: number;
|
|
2422
|
-
}[];
|
|
2423
|
-
};
|
|
2424
2378
|
gen_id: {
|
|
2425
2379
|
Args: {
|
|
2426
2380
|
prefix: string;
|
|
@@ -2438,7 +2392,7 @@ export type Database = {
|
|
|
2438
2392
|
generate_access_token: {
|
|
2439
2393
|
Args: {
|
|
2440
2394
|
name_input?: string;
|
|
2441
|
-
type_input?: Database[
|
|
2395
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
2442
2396
|
org_id_input?: string;
|
|
2443
2397
|
metadata_input?: Json;
|
|
2444
2398
|
};
|
|
@@ -2449,7 +2403,7 @@ export type Database = {
|
|
|
2449
2403
|
org_id_input?: string;
|
|
2450
2404
|
org_phone_input?: string;
|
|
2451
2405
|
token_id_input?: string;
|
|
2452
|
-
token_type_input?: Database[
|
|
2406
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
2453
2407
|
};
|
|
2454
2408
|
Returns: Json;
|
|
2455
2409
|
};
|
|
@@ -2523,7 +2477,7 @@ export type Database = {
|
|
|
2523
2477
|
ticket_id_input?: string[];
|
|
2524
2478
|
start_date_input?: string;
|
|
2525
2479
|
end_date_input?: string;
|
|
2526
|
-
status_input?: Database[
|
|
2480
|
+
status_input?: Database["public"]["Enums"]["enum_chat_tickets_status"];
|
|
2527
2481
|
priority_input?: number;
|
|
2528
2482
|
};
|
|
2529
2483
|
Returns: Json;
|
|
@@ -2654,7 +2608,7 @@ export type Database = {
|
|
|
2654
2608
|
};
|
|
2655
2609
|
list_role_from_user: {
|
|
2656
2610
|
Args: Record<PropertyKey, never>;
|
|
2657
|
-
Returns: Database[
|
|
2611
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
2658
2612
|
};
|
|
2659
2613
|
notify_org_tasks: {
|
|
2660
2614
|
Args: Record<PropertyKey, never>;
|
|
@@ -2801,15 +2755,6 @@ export type Database = {
|
|
|
2801
2755
|
};
|
|
2802
2756
|
Returns: undefined;
|
|
2803
2757
|
};
|
|
2804
|
-
delete_org_data_in_batches: {
|
|
2805
|
-
Args: {
|
|
2806
|
-
org_id_input: string;
|
|
2807
|
-
table_names_input: string[];
|
|
2808
|
-
batch_size_input: number;
|
|
2809
|
-
loop_size_input: number;
|
|
2810
|
-
};
|
|
2811
|
-
Returns: unknown;
|
|
2812
|
-
};
|
|
2813
2758
|
update_labels: {
|
|
2814
2759
|
Args: {
|
|
2815
2760
|
org_id_input: string;
|
|
@@ -2839,14 +2784,14 @@ export type Database = {
|
|
|
2839
2784
|
};
|
|
2840
2785
|
};
|
|
2841
2786
|
Enums: {
|
|
2842
|
-
enum_ai_context_type:
|
|
2843
|
-
enum_broadcast_status:
|
|
2844
|
-
enum_chat_colors:
|
|
2845
|
-
enum_chat_tickets_status:
|
|
2846
|
-
enum_credit_transaction_type:
|
|
2847
|
-
enum_integration_name:
|
|
2848
|
-
enum_integration_type:
|
|
2849
|
-
enum_member_role:
|
|
2787
|
+
enum_ai_context_type: "faq" | "document";
|
|
2788
|
+
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired";
|
|
2789
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
2790
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
2791
|
+
enum_credit_transaction_type: "credit" | "debit";
|
|
2792
|
+
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated" | "message.flagged" | "message.unflagged" | "chat.label.updated" | "reaction.added" | "message.ticket.attached" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.phone.qr" | "org.phone.updated";
|
|
2793
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
|
|
2794
|
+
enum_member_role: "admin" | "member";
|
|
2850
2795
|
};
|
|
2851
2796
|
CompositeTypes: {
|
|
2852
2797
|
[_ in never]: never;
|
|
@@ -2920,6 +2865,7 @@ export type Database = {
|
|
|
2920
2865
|
created_at: string | null;
|
|
2921
2866
|
id: string;
|
|
2922
2867
|
last_accessed_at: string | null;
|
|
2868
|
+
level: number | null;
|
|
2923
2869
|
metadata: Json | null;
|
|
2924
2870
|
name: string | null;
|
|
2925
2871
|
owner: string | null;
|
|
@@ -2934,6 +2880,7 @@ export type Database = {
|
|
|
2934
2880
|
created_at?: string | null;
|
|
2935
2881
|
id?: string;
|
|
2936
2882
|
last_accessed_at?: string | null;
|
|
2883
|
+
level?: number | null;
|
|
2937
2884
|
metadata?: Json | null;
|
|
2938
2885
|
name?: string | null;
|
|
2939
2886
|
owner?: string | null;
|
|
@@ -2948,6 +2895,7 @@ export type Database = {
|
|
|
2948
2895
|
created_at?: string | null;
|
|
2949
2896
|
id?: string;
|
|
2950
2897
|
last_accessed_at?: string | null;
|
|
2898
|
+
level?: number | null;
|
|
2951
2899
|
metadata?: Json | null;
|
|
2952
2900
|
name?: string | null;
|
|
2953
2901
|
owner?: string | null;
|
|
@@ -2959,11 +2907,43 @@ export type Database = {
|
|
|
2959
2907
|
};
|
|
2960
2908
|
Relationships: [
|
|
2961
2909
|
{
|
|
2962
|
-
foreignKeyName:
|
|
2963
|
-
columns: [
|
|
2910
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
2911
|
+
columns: ["bucket_id"];
|
|
2964
2912
|
isOneToOne: false;
|
|
2965
|
-
referencedRelation:
|
|
2966
|
-
referencedColumns: [
|
|
2913
|
+
referencedRelation: "buckets";
|
|
2914
|
+
referencedColumns: ["id"];
|
|
2915
|
+
}
|
|
2916
|
+
];
|
|
2917
|
+
};
|
|
2918
|
+
prefixes: {
|
|
2919
|
+
Row: {
|
|
2920
|
+
bucket_id: string;
|
|
2921
|
+
created_at: string | null;
|
|
2922
|
+
level: number;
|
|
2923
|
+
name: string;
|
|
2924
|
+
updated_at: string | null;
|
|
2925
|
+
};
|
|
2926
|
+
Insert: {
|
|
2927
|
+
bucket_id: string;
|
|
2928
|
+
created_at?: string | null;
|
|
2929
|
+
level?: number;
|
|
2930
|
+
name: string;
|
|
2931
|
+
updated_at?: string | null;
|
|
2932
|
+
};
|
|
2933
|
+
Update: {
|
|
2934
|
+
bucket_id?: string;
|
|
2935
|
+
created_at?: string | null;
|
|
2936
|
+
level?: number;
|
|
2937
|
+
name?: string;
|
|
2938
|
+
updated_at?: string | null;
|
|
2939
|
+
};
|
|
2940
|
+
Relationships: [
|
|
2941
|
+
{
|
|
2942
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
2943
|
+
columns: ["bucket_id"];
|
|
2944
|
+
isOneToOne: false;
|
|
2945
|
+
referencedRelation: "buckets";
|
|
2946
|
+
referencedColumns: ["id"];
|
|
2967
2947
|
}
|
|
2968
2948
|
];
|
|
2969
2949
|
};
|
|
@@ -3003,11 +2983,11 @@ export type Database = {
|
|
|
3003
2983
|
};
|
|
3004
2984
|
Relationships: [
|
|
3005
2985
|
{
|
|
3006
|
-
foreignKeyName:
|
|
3007
|
-
columns: [
|
|
2986
|
+
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
|
|
2987
|
+
columns: ["bucket_id"];
|
|
3008
2988
|
isOneToOne: false;
|
|
3009
|
-
referencedRelation:
|
|
3010
|
-
referencedColumns: [
|
|
2989
|
+
referencedRelation: "buckets";
|
|
2990
|
+
referencedColumns: ["id"];
|
|
3011
2991
|
}
|
|
3012
2992
|
];
|
|
3013
2993
|
};
|
|
@@ -3050,18 +3030,18 @@ export type Database = {
|
|
|
3050
3030
|
};
|
|
3051
3031
|
Relationships: [
|
|
3052
3032
|
{
|
|
3053
|
-
foreignKeyName:
|
|
3054
|
-
columns: [
|
|
3033
|
+
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
|
|
3034
|
+
columns: ["bucket_id"];
|
|
3055
3035
|
isOneToOne: false;
|
|
3056
|
-
referencedRelation:
|
|
3057
|
-
referencedColumns: [
|
|
3036
|
+
referencedRelation: "buckets";
|
|
3037
|
+
referencedColumns: ["id"];
|
|
3058
3038
|
},
|
|
3059
3039
|
{
|
|
3060
|
-
foreignKeyName:
|
|
3061
|
-
columns: [
|
|
3040
|
+
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
|
|
3041
|
+
columns: ["upload_id"];
|
|
3062
3042
|
isOneToOne: false;
|
|
3063
|
-
referencedRelation:
|
|
3064
|
-
referencedColumns: [
|
|
3043
|
+
referencedRelation: "s3_multipart_uploads";
|
|
3044
|
+
referencedColumns: ["id"];
|
|
3065
3045
|
}
|
|
3066
3046
|
];
|
|
3067
3047
|
};
|
|
@@ -3070,6 +3050,13 @@ export type Database = {
|
|
|
3070
3050
|
[_ in never]: never;
|
|
3071
3051
|
};
|
|
3072
3052
|
Functions: {
|
|
3053
|
+
add_prefixes: {
|
|
3054
|
+
Args: {
|
|
3055
|
+
_bucket_id: string;
|
|
3056
|
+
_name: string;
|
|
3057
|
+
};
|
|
3058
|
+
Returns: undefined;
|
|
3059
|
+
};
|
|
3073
3060
|
can_insert_object: {
|
|
3074
3061
|
Args: {
|
|
3075
3062
|
bucketid: string;
|
|
@@ -3079,6 +3066,13 @@ export type Database = {
|
|
|
3079
3066
|
};
|
|
3080
3067
|
Returns: undefined;
|
|
3081
3068
|
};
|
|
3069
|
+
delete_prefix: {
|
|
3070
|
+
Args: {
|
|
3071
|
+
_bucket_id: string;
|
|
3072
|
+
_name: string;
|
|
3073
|
+
};
|
|
3074
|
+
Returns: boolean;
|
|
3075
|
+
};
|
|
3082
3076
|
extension: {
|
|
3083
3077
|
Args: {
|
|
3084
3078
|
name: string;
|
|
@@ -3097,6 +3091,24 @@ export type Database = {
|
|
|
3097
3091
|
};
|
|
3098
3092
|
Returns: string[];
|
|
3099
3093
|
};
|
|
3094
|
+
get_level: {
|
|
3095
|
+
Args: {
|
|
3096
|
+
name: string;
|
|
3097
|
+
};
|
|
3098
|
+
Returns: number;
|
|
3099
|
+
};
|
|
3100
|
+
get_prefix: {
|
|
3101
|
+
Args: {
|
|
3102
|
+
name: string;
|
|
3103
|
+
};
|
|
3104
|
+
Returns: string;
|
|
3105
|
+
};
|
|
3106
|
+
get_prefixes: {
|
|
3107
|
+
Args: {
|
|
3108
|
+
name: string;
|
|
3109
|
+
};
|
|
3110
|
+
Returns: string[];
|
|
3111
|
+
};
|
|
3100
3112
|
get_size_by_bucket: {
|
|
3101
3113
|
Args: Record<PropertyKey, never>;
|
|
3102
3114
|
Returns: {
|
|
@@ -3159,6 +3171,63 @@ export type Database = {
|
|
|
3159
3171
|
metadata: Json;
|
|
3160
3172
|
}[];
|
|
3161
3173
|
};
|
|
3174
|
+
search_legacy_v1: {
|
|
3175
|
+
Args: {
|
|
3176
|
+
prefix: string;
|
|
3177
|
+
bucketname: string;
|
|
3178
|
+
limits?: number;
|
|
3179
|
+
levels?: number;
|
|
3180
|
+
offsets?: number;
|
|
3181
|
+
search?: string;
|
|
3182
|
+
sortcolumn?: string;
|
|
3183
|
+
sortorder?: string;
|
|
3184
|
+
};
|
|
3185
|
+
Returns: {
|
|
3186
|
+
name: string;
|
|
3187
|
+
id: string;
|
|
3188
|
+
updated_at: string;
|
|
3189
|
+
created_at: string;
|
|
3190
|
+
last_accessed_at: string;
|
|
3191
|
+
metadata: Json;
|
|
3192
|
+
}[];
|
|
3193
|
+
};
|
|
3194
|
+
search_v1_optimised: {
|
|
3195
|
+
Args: {
|
|
3196
|
+
prefix: string;
|
|
3197
|
+
bucketname: string;
|
|
3198
|
+
limits?: number;
|
|
3199
|
+
levels?: number;
|
|
3200
|
+
offsets?: number;
|
|
3201
|
+
search?: string;
|
|
3202
|
+
sortcolumn?: string;
|
|
3203
|
+
sortorder?: string;
|
|
3204
|
+
};
|
|
3205
|
+
Returns: {
|
|
3206
|
+
name: string;
|
|
3207
|
+
id: string;
|
|
3208
|
+
updated_at: string;
|
|
3209
|
+
created_at: string;
|
|
3210
|
+
last_accessed_at: string;
|
|
3211
|
+
metadata: Json;
|
|
3212
|
+
}[];
|
|
3213
|
+
};
|
|
3214
|
+
search_v2: {
|
|
3215
|
+
Args: {
|
|
3216
|
+
prefix: string;
|
|
3217
|
+
bucket_name: string;
|
|
3218
|
+
limits?: number;
|
|
3219
|
+
levels?: number;
|
|
3220
|
+
start_after?: string;
|
|
3221
|
+
};
|
|
3222
|
+
Returns: {
|
|
3223
|
+
key: string;
|
|
3224
|
+
name: string;
|
|
3225
|
+
id: string;
|
|
3226
|
+
updated_at: string;
|
|
3227
|
+
created_at: string;
|
|
3228
|
+
metadata: Json;
|
|
3229
|
+
}[];
|
|
3230
|
+
};
|
|
3162
3231
|
};
|
|
3163
3232
|
Enums: {
|
|
3164
3233
|
[_ in never]: never;
|
|
@@ -3168,53 +3237,61 @@ export type Database = {
|
|
|
3168
3237
|
};
|
|
3169
3238
|
};
|
|
3170
3239
|
};
|
|
3171
|
-
type
|
|
3172
|
-
export type Tables<
|
|
3240
|
+
type DefaultSchema = Database[Extract<keyof Database, "public">];
|
|
3241
|
+
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3173
3242
|
schema: keyof Database;
|
|
3174
|
-
}, TableName extends
|
|
3243
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3175
3244
|
schema: keyof Database;
|
|
3176
|
-
} ? keyof (Database[
|
|
3245
|
+
} ? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3177
3246
|
schema: keyof Database;
|
|
3178
|
-
} ? (Database[
|
|
3247
|
+
} ? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3179
3248
|
Row: infer R;
|
|
3180
|
-
} ? R : never :
|
|
3249
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3181
3250
|
Row: infer R;
|
|
3182
3251
|
} ? R : never : never;
|
|
3183
|
-
export type TablesInsert<
|
|
3252
|
+
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3184
3253
|
schema: keyof Database;
|
|
3185
|
-
}, TableName extends
|
|
3254
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3186
3255
|
schema: keyof Database;
|
|
3187
|
-
} ? keyof Database[
|
|
3256
|
+
} ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3188
3257
|
schema: keyof Database;
|
|
3189
|
-
} ? Database[
|
|
3258
|
+
} ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3190
3259
|
Insert: infer I;
|
|
3191
|
-
} ? I : never :
|
|
3260
|
+
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3192
3261
|
Insert: infer I;
|
|
3193
3262
|
} ? I : never : never;
|
|
3194
|
-
export type TablesUpdate<
|
|
3263
|
+
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3195
3264
|
schema: keyof Database;
|
|
3196
|
-
}, TableName extends
|
|
3265
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3197
3266
|
schema: keyof Database;
|
|
3198
|
-
} ? keyof Database[
|
|
3267
|
+
} ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3199
3268
|
schema: keyof Database;
|
|
3200
|
-
} ? Database[
|
|
3269
|
+
} ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3201
3270
|
Update: infer U;
|
|
3202
|
-
} ? U : never :
|
|
3271
|
+
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3203
3272
|
Update: infer U;
|
|
3204
3273
|
} ? U : never : never;
|
|
3205
|
-
export type Enums<
|
|
3274
|
+
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
3275
|
+
schema: keyof Database;
|
|
3276
|
+
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3277
|
+
schema: keyof Database;
|
|
3278
|
+
} ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
3279
|
+
schema: keyof Database;
|
|
3280
|
+
} ? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
3281
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3206
3282
|
schema: keyof Database;
|
|
3207
|
-
},
|
|
3283
|
+
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3208
3284
|
schema: keyof Database;
|
|
3209
|
-
} ? keyof Database[
|
|
3285
|
+
} ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
3210
3286
|
schema: keyof Database;
|
|
3211
|
-
} ? Database[
|
|
3287
|
+
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3212
3288
|
export declare const Constants: {
|
|
3213
3289
|
readonly internal: {
|
|
3214
3290
|
readonly Enums: {};
|
|
3215
3291
|
};
|
|
3216
3292
|
readonly public: {
|
|
3217
3293
|
readonly Enums: {
|
|
3294
|
+
readonly enum_ai_context_type: readonly ["faq", "document"];
|
|
3218
3295
|
readonly enum_broadcast_status: readonly ["inprogress", "completed", "stopped", "expired"];
|
|
3219
3296
|
readonly enum_chat_colors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
3220
3297
|
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|