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