@periskope/types 0.6.95 → 0.6.96
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 +637 -233
- package/dist/types.d.ts +30 -11
- package/dist/types.js +8 -4
- package/mod_json_type.sh +23 -0
- package/package.json +1 -1
- package/supabase.types.ts +2183 -1783
- package/types.ts +38 -15
package/dist/supabase.types.d.ts
CHANGED
|
@@ -107,39 +107,39 @@ export type Database = {
|
|
|
107
107
|
};
|
|
108
108
|
Relationships: [
|
|
109
109
|
{
|
|
110
|
-
foreignKeyName:
|
|
111
|
-
columns: [
|
|
110
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
111
|
+
columns: ["broadcast_id"];
|
|
112
112
|
isOneToOne: false;
|
|
113
|
-
referencedRelation:
|
|
114
|
-
referencedColumns: [
|
|
113
|
+
referencedRelation: "tbl_broadcast_messages";
|
|
114
|
+
referencedColumns: ["broadcast_id"];
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
foreignKeyName:
|
|
118
|
-
columns: [
|
|
117
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
118
|
+
columns: ["broadcast_id"];
|
|
119
119
|
isOneToOne: false;
|
|
120
|
-
referencedRelation:
|
|
121
|
-
referencedColumns: [
|
|
120
|
+
referencedRelation: "view_broadcast_logs";
|
|
121
|
+
referencedColumns: ["broadcast_id"];
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
foreignKeyName:
|
|
125
|
-
columns: [
|
|
124
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
125
|
+
columns: ["org_id"];
|
|
126
126
|
isOneToOne: false;
|
|
127
|
-
referencedRelation:
|
|
128
|
-
referencedColumns: [
|
|
127
|
+
referencedRelation: "tbl_org";
|
|
128
|
+
referencedColumns: ["org_id"];
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
|
-
foreignKeyName:
|
|
132
|
-
columns: [
|
|
131
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
132
|
+
columns: ["org_id"];
|
|
133
133
|
isOneToOne: false;
|
|
134
|
-
referencedRelation:
|
|
135
|
-
referencedColumns: [
|
|
134
|
+
referencedRelation: "view_org";
|
|
135
|
+
referencedColumns: ["org_id"];
|
|
136
136
|
}
|
|
137
137
|
];
|
|
138
138
|
};
|
|
139
139
|
tbl_broadcast_messages: {
|
|
140
140
|
Row: {
|
|
141
141
|
broadcast_id: string;
|
|
142
|
-
broadcast_status: Database[
|
|
142
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
143
143
|
chat_ids: string[] | null;
|
|
144
144
|
created_at: string;
|
|
145
145
|
message_payload: Json | null;
|
|
@@ -152,7 +152,7 @@ export type Database = {
|
|
|
152
152
|
};
|
|
153
153
|
Insert: {
|
|
154
154
|
broadcast_id?: string;
|
|
155
|
-
broadcast_status?: Database[
|
|
155
|
+
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
156
156
|
chat_ids?: string[] | null;
|
|
157
157
|
created_at?: string;
|
|
158
158
|
message_payload?: Json | null;
|
|
@@ -165,7 +165,7 @@ export type Database = {
|
|
|
165
165
|
};
|
|
166
166
|
Update: {
|
|
167
167
|
broadcast_id?: string;
|
|
168
|
-
broadcast_status?: Database[
|
|
168
|
+
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
169
169
|
chat_ids?: string[] | null;
|
|
170
170
|
created_at?: string;
|
|
171
171
|
message_payload?: Json | null;
|
|
@@ -178,18 +178,18 @@ export type Database = {
|
|
|
178
178
|
};
|
|
179
179
|
Relationships: [
|
|
180
180
|
{
|
|
181
|
-
foreignKeyName:
|
|
182
|
-
columns: [
|
|
181
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
182
|
+
columns: ["org_id"];
|
|
183
183
|
isOneToOne: false;
|
|
184
|
-
referencedRelation:
|
|
185
|
-
referencedColumns: [
|
|
184
|
+
referencedRelation: "tbl_org";
|
|
185
|
+
referencedColumns: ["org_id"];
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
|
-
foreignKeyName:
|
|
189
|
-
columns: [
|
|
188
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
189
|
+
columns: ["org_id"];
|
|
190
190
|
isOneToOne: false;
|
|
191
|
-
referencedRelation:
|
|
192
|
-
referencedColumns: [
|
|
191
|
+
referencedRelation: "view_org";
|
|
192
|
+
referencedColumns: ["org_id"];
|
|
193
193
|
}
|
|
194
194
|
];
|
|
195
195
|
};
|
|
@@ -223,18 +223,18 @@ export type Database = {
|
|
|
223
223
|
};
|
|
224
224
|
Relationships: [
|
|
225
225
|
{
|
|
226
|
-
foreignKeyName:
|
|
227
|
-
columns: [
|
|
226
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
227
|
+
columns: ["org_id"];
|
|
228
228
|
isOneToOne: false;
|
|
229
|
-
referencedRelation:
|
|
230
|
-
referencedColumns: [
|
|
229
|
+
referencedRelation: "tbl_org";
|
|
230
|
+
referencedColumns: ["org_id"];
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
|
-
foreignKeyName:
|
|
234
|
-
columns: [
|
|
233
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
234
|
+
columns: ["org_id"];
|
|
235
235
|
isOneToOne: false;
|
|
236
|
-
referencedRelation:
|
|
237
|
-
referencedColumns: [
|
|
236
|
+
referencedRelation: "view_org";
|
|
237
|
+
referencedColumns: ["org_id"];
|
|
238
238
|
}
|
|
239
239
|
];
|
|
240
240
|
};
|
|
@@ -268,11 +268,68 @@ export type Database = {
|
|
|
268
268
|
};
|
|
269
269
|
Relationships: [
|
|
270
270
|
{
|
|
271
|
-
foreignKeyName:
|
|
272
|
-
columns: [
|
|
271
|
+
foreignKeyName: "tbl_chat_access_org_id_email_fkey";
|
|
272
|
+
columns: ["org_id", "email"];
|
|
273
273
|
isOneToOne: false;
|
|
274
|
-
referencedRelation:
|
|
275
|
-
referencedColumns: [
|
|
274
|
+
referencedRelation: "tbl_org_members";
|
|
275
|
+
referencedColumns: ["org_id", "email"];
|
|
276
|
+
}
|
|
277
|
+
];
|
|
278
|
+
};
|
|
279
|
+
tbl_chat_logs: {
|
|
280
|
+
Row: {
|
|
281
|
+
action: string | null;
|
|
282
|
+
chat_id: string | null;
|
|
283
|
+
is_success: boolean | null;
|
|
284
|
+
log_id: string;
|
|
285
|
+
metadata: Json | null;
|
|
286
|
+
operation_id: string;
|
|
287
|
+
org_id: string;
|
|
288
|
+
org_phone: string;
|
|
289
|
+
participant_id: string | null;
|
|
290
|
+
performed_by: string | null;
|
|
291
|
+
timestamp: string | null;
|
|
292
|
+
};
|
|
293
|
+
Insert: {
|
|
294
|
+
action?: string | null;
|
|
295
|
+
chat_id?: string | null;
|
|
296
|
+
is_success?: boolean | null;
|
|
297
|
+
log_id?: string;
|
|
298
|
+
metadata?: Json | null;
|
|
299
|
+
operation_id: string;
|
|
300
|
+
org_id: string;
|
|
301
|
+
org_phone: string;
|
|
302
|
+
participant_id?: string | null;
|
|
303
|
+
performed_by?: string | null;
|
|
304
|
+
timestamp?: string | null;
|
|
305
|
+
};
|
|
306
|
+
Update: {
|
|
307
|
+
action?: string | null;
|
|
308
|
+
chat_id?: string | null;
|
|
309
|
+
is_success?: boolean | null;
|
|
310
|
+
log_id?: string;
|
|
311
|
+
metadata?: Json | null;
|
|
312
|
+
operation_id?: string;
|
|
313
|
+
org_id?: string;
|
|
314
|
+
org_phone?: string;
|
|
315
|
+
participant_id?: string | null;
|
|
316
|
+
performed_by?: string | null;
|
|
317
|
+
timestamp?: string | null;
|
|
318
|
+
};
|
|
319
|
+
Relationships: [
|
|
320
|
+
{
|
|
321
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
322
|
+
columns: ["org_id"];
|
|
323
|
+
isOneToOne: false;
|
|
324
|
+
referencedRelation: "tbl_org";
|
|
325
|
+
referencedColumns: ["org_id"];
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
329
|
+
columns: ["org_id"];
|
|
330
|
+
isOneToOne: false;
|
|
331
|
+
referencedRelation: "view_org";
|
|
332
|
+
referencedColumns: ["org_id"];
|
|
276
333
|
}
|
|
277
334
|
];
|
|
278
335
|
};
|
|
@@ -429,14 +486,320 @@ export type Database = {
|
|
|
429
486
|
};
|
|
430
487
|
Relationships: [
|
|
431
488
|
{
|
|
432
|
-
foreignKeyName:
|
|
433
|
-
columns: [
|
|
489
|
+
foreignKeyName: "tbl_chat_messages_parent_fkey_tbl_org_phones";
|
|
490
|
+
columns: ["org_phone", "org_id"];
|
|
434
491
|
isOneToOne: false;
|
|
435
|
-
referencedRelation:
|
|
436
|
-
referencedColumns: [
|
|
492
|
+
referencedRelation: "tbl_org_phones";
|
|
493
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
437
494
|
}
|
|
438
495
|
];
|
|
439
496
|
};
|
|
497
|
+
tbl_chat_messages_2997dd64_89bf_48d3_9a22_b314fca017e5: {
|
|
498
|
+
Row: {
|
|
499
|
+
ack: string | null;
|
|
500
|
+
author: string | null;
|
|
501
|
+
body: string | null;
|
|
502
|
+
broadcast: boolean | null;
|
|
503
|
+
broadcast_id: string | null;
|
|
504
|
+
chat_id: string | null;
|
|
505
|
+
delivery_info: Json | null;
|
|
506
|
+
device_type: string | null;
|
|
507
|
+
duration: string | null;
|
|
508
|
+
flag_metadata: Json | null;
|
|
509
|
+
flag_response_time: number | null;
|
|
510
|
+
forwarding_score: number | null;
|
|
511
|
+
from: string | null;
|
|
512
|
+
from_me: boolean | null;
|
|
513
|
+
has_media: boolean | null;
|
|
514
|
+
has_quoted_msg: boolean | null;
|
|
515
|
+
has_reaction: boolean | null;
|
|
516
|
+
id: Json | null;
|
|
517
|
+
invite_v4: Json | null;
|
|
518
|
+
is_deleted: boolean | null;
|
|
519
|
+
is_ephemeral: boolean | null;
|
|
520
|
+
is_forwarded: boolean | null;
|
|
521
|
+
is_gif: boolean | null;
|
|
522
|
+
is_starred: boolean | null;
|
|
523
|
+
is_status: boolean | null;
|
|
524
|
+
links: Json | null;
|
|
525
|
+
location: Json | null;
|
|
526
|
+
media: Json | null;
|
|
527
|
+
media_key: string | null;
|
|
528
|
+
mentioned_ids: string[] | null;
|
|
529
|
+
message_id: string;
|
|
530
|
+
message_ticket_id: string | null;
|
|
531
|
+
message_type: string | null;
|
|
532
|
+
order_id: string | null;
|
|
533
|
+
org_id: string;
|
|
534
|
+
org_phone: string;
|
|
535
|
+
performed_by: string | null;
|
|
536
|
+
prev_body: string | null;
|
|
537
|
+
quoted_message_id: string | null;
|
|
538
|
+
raw_data: Json | null;
|
|
539
|
+
sender_phone: string | null;
|
|
540
|
+
sent_message_id: string | null;
|
|
541
|
+
timestamp: string | null;
|
|
542
|
+
to: string | null;
|
|
543
|
+
token: string | null;
|
|
544
|
+
unique_id: string | null;
|
|
545
|
+
updated_at: string | null;
|
|
546
|
+
vcards: string[] | null;
|
|
547
|
+
};
|
|
548
|
+
Insert: {
|
|
549
|
+
ack?: string | null;
|
|
550
|
+
author?: string | null;
|
|
551
|
+
body?: string | null;
|
|
552
|
+
broadcast?: boolean | null;
|
|
553
|
+
broadcast_id?: string | null;
|
|
554
|
+
chat_id?: string | null;
|
|
555
|
+
delivery_info?: Json | null;
|
|
556
|
+
device_type?: string | null;
|
|
557
|
+
duration?: string | null;
|
|
558
|
+
flag_metadata?: Json | null;
|
|
559
|
+
flag_response_time?: number | null;
|
|
560
|
+
forwarding_score?: number | null;
|
|
561
|
+
from?: string | null;
|
|
562
|
+
from_me?: boolean | null;
|
|
563
|
+
has_media?: boolean | null;
|
|
564
|
+
has_quoted_msg?: boolean | null;
|
|
565
|
+
has_reaction?: boolean | null;
|
|
566
|
+
id?: Json | null;
|
|
567
|
+
invite_v4?: Json | null;
|
|
568
|
+
is_deleted?: boolean | null;
|
|
569
|
+
is_ephemeral?: boolean | null;
|
|
570
|
+
is_forwarded?: boolean | null;
|
|
571
|
+
is_gif?: boolean | null;
|
|
572
|
+
is_starred?: boolean | null;
|
|
573
|
+
is_status?: boolean | null;
|
|
574
|
+
links?: Json | null;
|
|
575
|
+
location?: Json | null;
|
|
576
|
+
media?: Json | null;
|
|
577
|
+
media_key?: string | null;
|
|
578
|
+
mentioned_ids?: string[] | null;
|
|
579
|
+
message_id: string;
|
|
580
|
+
message_ticket_id?: string | null;
|
|
581
|
+
message_type?: string | null;
|
|
582
|
+
order_id?: string | null;
|
|
583
|
+
org_id: string;
|
|
584
|
+
org_phone: string;
|
|
585
|
+
performed_by?: string | null;
|
|
586
|
+
prev_body?: string | null;
|
|
587
|
+
quoted_message_id?: string | null;
|
|
588
|
+
raw_data?: Json | null;
|
|
589
|
+
sender_phone?: string | null;
|
|
590
|
+
sent_message_id?: string | null;
|
|
591
|
+
timestamp?: string | null;
|
|
592
|
+
to?: string | null;
|
|
593
|
+
token?: string | null;
|
|
594
|
+
unique_id?: string | null;
|
|
595
|
+
updated_at?: string | null;
|
|
596
|
+
vcards?: string[] | null;
|
|
597
|
+
};
|
|
598
|
+
Update: {
|
|
599
|
+
ack?: string | null;
|
|
600
|
+
author?: string | null;
|
|
601
|
+
body?: string | null;
|
|
602
|
+
broadcast?: boolean | null;
|
|
603
|
+
broadcast_id?: string | null;
|
|
604
|
+
chat_id?: string | null;
|
|
605
|
+
delivery_info?: Json | null;
|
|
606
|
+
device_type?: string | null;
|
|
607
|
+
duration?: string | null;
|
|
608
|
+
flag_metadata?: Json | null;
|
|
609
|
+
flag_response_time?: number | null;
|
|
610
|
+
forwarding_score?: number | null;
|
|
611
|
+
from?: string | null;
|
|
612
|
+
from_me?: boolean | null;
|
|
613
|
+
has_media?: boolean | null;
|
|
614
|
+
has_quoted_msg?: boolean | null;
|
|
615
|
+
has_reaction?: boolean | null;
|
|
616
|
+
id?: Json | null;
|
|
617
|
+
invite_v4?: Json | null;
|
|
618
|
+
is_deleted?: boolean | null;
|
|
619
|
+
is_ephemeral?: boolean | null;
|
|
620
|
+
is_forwarded?: boolean | null;
|
|
621
|
+
is_gif?: boolean | null;
|
|
622
|
+
is_starred?: boolean | null;
|
|
623
|
+
is_status?: boolean | null;
|
|
624
|
+
links?: Json | null;
|
|
625
|
+
location?: Json | null;
|
|
626
|
+
media?: Json | null;
|
|
627
|
+
media_key?: string | null;
|
|
628
|
+
mentioned_ids?: string[] | null;
|
|
629
|
+
message_id?: string;
|
|
630
|
+
message_ticket_id?: string | null;
|
|
631
|
+
message_type?: string | null;
|
|
632
|
+
order_id?: string | null;
|
|
633
|
+
org_id?: string;
|
|
634
|
+
org_phone?: string;
|
|
635
|
+
performed_by?: string | null;
|
|
636
|
+
prev_body?: string | null;
|
|
637
|
+
quoted_message_id?: string | null;
|
|
638
|
+
raw_data?: Json | null;
|
|
639
|
+
sender_phone?: string | null;
|
|
640
|
+
sent_message_id?: string | null;
|
|
641
|
+
timestamp?: string | null;
|
|
642
|
+
to?: string | null;
|
|
643
|
+
token?: string | null;
|
|
644
|
+
unique_id?: string | null;
|
|
645
|
+
updated_at?: string | null;
|
|
646
|
+
vcards?: string[] | null;
|
|
647
|
+
};
|
|
648
|
+
Relationships: [];
|
|
649
|
+
};
|
|
650
|
+
tbl_chat_messages_default: {
|
|
651
|
+
Row: {
|
|
652
|
+
ack: string | null;
|
|
653
|
+
author: string | null;
|
|
654
|
+
body: string | null;
|
|
655
|
+
broadcast: boolean | null;
|
|
656
|
+
broadcast_id: string | null;
|
|
657
|
+
chat_id: string | null;
|
|
658
|
+
delivery_info: Json | null;
|
|
659
|
+
device_type: string | null;
|
|
660
|
+
duration: string | null;
|
|
661
|
+
flag_metadata: Json | null;
|
|
662
|
+
flag_response_time: number | null;
|
|
663
|
+
forwarding_score: number | null;
|
|
664
|
+
from: string | null;
|
|
665
|
+
from_me: boolean | null;
|
|
666
|
+
has_media: boolean | null;
|
|
667
|
+
has_quoted_msg: boolean | null;
|
|
668
|
+
has_reaction: boolean | null;
|
|
669
|
+
id: Json | null;
|
|
670
|
+
invite_v4: Json | null;
|
|
671
|
+
is_deleted: boolean | null;
|
|
672
|
+
is_ephemeral: boolean | null;
|
|
673
|
+
is_forwarded: boolean | null;
|
|
674
|
+
is_gif: boolean | null;
|
|
675
|
+
is_starred: boolean | null;
|
|
676
|
+
is_status: boolean | null;
|
|
677
|
+
links: Json | null;
|
|
678
|
+
location: Json | null;
|
|
679
|
+
media: Json | null;
|
|
680
|
+
media_key: string | null;
|
|
681
|
+
mentioned_ids: string[] | null;
|
|
682
|
+
message_id: string;
|
|
683
|
+
message_ticket_id: string | null;
|
|
684
|
+
message_type: string | null;
|
|
685
|
+
order_id: string | null;
|
|
686
|
+
org_id: string;
|
|
687
|
+
org_phone: string;
|
|
688
|
+
performed_by: string | null;
|
|
689
|
+
prev_body: string | null;
|
|
690
|
+
quoted_message_id: string | null;
|
|
691
|
+
raw_data: Json | null;
|
|
692
|
+
sender_phone: string | null;
|
|
693
|
+
sent_message_id: string | null;
|
|
694
|
+
timestamp: string | null;
|
|
695
|
+
to: string | null;
|
|
696
|
+
token: string | null;
|
|
697
|
+
unique_id: string | null;
|
|
698
|
+
updated_at: string | null;
|
|
699
|
+
vcards: string[] | null;
|
|
700
|
+
};
|
|
701
|
+
Insert: {
|
|
702
|
+
ack?: string | null;
|
|
703
|
+
author?: string | null;
|
|
704
|
+
body?: string | null;
|
|
705
|
+
broadcast?: boolean | null;
|
|
706
|
+
broadcast_id?: string | null;
|
|
707
|
+
chat_id?: string | null;
|
|
708
|
+
delivery_info?: Json | null;
|
|
709
|
+
device_type?: string | null;
|
|
710
|
+
duration?: string | null;
|
|
711
|
+
flag_metadata?: Json | null;
|
|
712
|
+
flag_response_time?: number | null;
|
|
713
|
+
forwarding_score?: number | null;
|
|
714
|
+
from?: string | null;
|
|
715
|
+
from_me?: boolean | null;
|
|
716
|
+
has_media?: boolean | null;
|
|
717
|
+
has_quoted_msg?: boolean | null;
|
|
718
|
+
has_reaction?: boolean | null;
|
|
719
|
+
id?: Json | null;
|
|
720
|
+
invite_v4?: Json | null;
|
|
721
|
+
is_deleted?: boolean | null;
|
|
722
|
+
is_ephemeral?: boolean | null;
|
|
723
|
+
is_forwarded?: boolean | null;
|
|
724
|
+
is_gif?: boolean | null;
|
|
725
|
+
is_starred?: boolean | null;
|
|
726
|
+
is_status?: boolean | null;
|
|
727
|
+
links?: Json | null;
|
|
728
|
+
location?: Json | null;
|
|
729
|
+
media?: Json | null;
|
|
730
|
+
media_key?: string | null;
|
|
731
|
+
mentioned_ids?: string[] | null;
|
|
732
|
+
message_id: string;
|
|
733
|
+
message_ticket_id?: string | null;
|
|
734
|
+
message_type?: string | null;
|
|
735
|
+
order_id?: string | null;
|
|
736
|
+
org_id: string;
|
|
737
|
+
org_phone: string;
|
|
738
|
+
performed_by?: string | null;
|
|
739
|
+
prev_body?: string | null;
|
|
740
|
+
quoted_message_id?: string | null;
|
|
741
|
+
raw_data?: Json | null;
|
|
742
|
+
sender_phone?: string | null;
|
|
743
|
+
sent_message_id?: string | null;
|
|
744
|
+
timestamp?: string | null;
|
|
745
|
+
to?: string | null;
|
|
746
|
+
token?: string | null;
|
|
747
|
+
unique_id?: string | null;
|
|
748
|
+
updated_at?: string | null;
|
|
749
|
+
vcards?: string[] | null;
|
|
750
|
+
};
|
|
751
|
+
Update: {
|
|
752
|
+
ack?: string | null;
|
|
753
|
+
author?: string | null;
|
|
754
|
+
body?: string | null;
|
|
755
|
+
broadcast?: boolean | null;
|
|
756
|
+
broadcast_id?: string | null;
|
|
757
|
+
chat_id?: string | null;
|
|
758
|
+
delivery_info?: Json | null;
|
|
759
|
+
device_type?: string | null;
|
|
760
|
+
duration?: string | null;
|
|
761
|
+
flag_metadata?: Json | null;
|
|
762
|
+
flag_response_time?: number | null;
|
|
763
|
+
forwarding_score?: number | null;
|
|
764
|
+
from?: string | null;
|
|
765
|
+
from_me?: boolean | null;
|
|
766
|
+
has_media?: boolean | null;
|
|
767
|
+
has_quoted_msg?: boolean | null;
|
|
768
|
+
has_reaction?: boolean | null;
|
|
769
|
+
id?: Json | null;
|
|
770
|
+
invite_v4?: Json | null;
|
|
771
|
+
is_deleted?: boolean | null;
|
|
772
|
+
is_ephemeral?: boolean | null;
|
|
773
|
+
is_forwarded?: boolean | null;
|
|
774
|
+
is_gif?: boolean | null;
|
|
775
|
+
is_starred?: boolean | null;
|
|
776
|
+
is_status?: boolean | null;
|
|
777
|
+
links?: Json | null;
|
|
778
|
+
location?: Json | null;
|
|
779
|
+
media?: Json | null;
|
|
780
|
+
media_key?: string | null;
|
|
781
|
+
mentioned_ids?: string[] | null;
|
|
782
|
+
message_id?: string;
|
|
783
|
+
message_ticket_id?: string | null;
|
|
784
|
+
message_type?: string | null;
|
|
785
|
+
order_id?: string | null;
|
|
786
|
+
org_id?: string;
|
|
787
|
+
org_phone?: string;
|
|
788
|
+
performed_by?: string | null;
|
|
789
|
+
prev_body?: string | null;
|
|
790
|
+
quoted_message_id?: string | null;
|
|
791
|
+
raw_data?: Json | null;
|
|
792
|
+
sender_phone?: string | null;
|
|
793
|
+
sent_message_id?: string | null;
|
|
794
|
+
timestamp?: string | null;
|
|
795
|
+
to?: string | null;
|
|
796
|
+
token?: string | null;
|
|
797
|
+
unique_id?: string | null;
|
|
798
|
+
updated_at?: string | null;
|
|
799
|
+
vcards?: string[] | null;
|
|
800
|
+
};
|
|
801
|
+
Relationships: [];
|
|
802
|
+
};
|
|
440
803
|
tbl_chat_notifications: {
|
|
441
804
|
Row: {
|
|
442
805
|
author: string | null;
|
|
@@ -479,11 +842,11 @@ export type Database = {
|
|
|
479
842
|
};
|
|
480
843
|
Relationships: [
|
|
481
844
|
{
|
|
482
|
-
foreignKeyName:
|
|
483
|
-
columns: [
|
|
845
|
+
foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones";
|
|
846
|
+
columns: ["org_id", "org_phone"];
|
|
484
847
|
isOneToOne: false;
|
|
485
|
-
referencedRelation:
|
|
486
|
-
referencedColumns: [
|
|
848
|
+
referencedRelation: "tbl_org_phones";
|
|
849
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
487
850
|
}
|
|
488
851
|
];
|
|
489
852
|
};
|
|
@@ -517,11 +880,11 @@ export type Database = {
|
|
|
517
880
|
};
|
|
518
881
|
Relationships: [
|
|
519
882
|
{
|
|
520
|
-
foreignKeyName:
|
|
521
|
-
columns: [
|
|
883
|
+
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
884
|
+
columns: ["org_id", "org_phone", "chat_id"];
|
|
522
885
|
isOneToOne: false;
|
|
523
|
-
referencedRelation:
|
|
524
|
-
referencedColumns: [
|
|
886
|
+
referencedRelation: "tbl_chats";
|
|
887
|
+
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
525
888
|
}
|
|
526
889
|
];
|
|
527
890
|
};
|
|
@@ -606,11 +969,11 @@ export type Database = {
|
|
|
606
969
|
};
|
|
607
970
|
Relationships: [
|
|
608
971
|
{
|
|
609
|
-
foreignKeyName:
|
|
610
|
-
columns: [
|
|
972
|
+
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
|
|
973
|
+
columns: ["org_id", "org_phone"];
|
|
611
974
|
isOneToOne: false;
|
|
612
|
-
referencedRelation:
|
|
613
|
-
referencedColumns: [
|
|
975
|
+
referencedRelation: "tbl_org_phones";
|
|
976
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
614
977
|
}
|
|
615
978
|
];
|
|
616
979
|
};
|
|
@@ -619,6 +982,7 @@ export type Database = {
|
|
|
619
982
|
assigned_by: string | null;
|
|
620
983
|
assignee: string | null;
|
|
621
984
|
chat_id: string;
|
|
985
|
+
close_ticket_metadata: Json | null;
|
|
622
986
|
closed_at: string | null;
|
|
623
987
|
created_at: string;
|
|
624
988
|
due_date: string | null;
|
|
@@ -630,7 +994,8 @@ export type Database = {
|
|
|
630
994
|
priority: number | null;
|
|
631
995
|
quoted_message_id: string | null;
|
|
632
996
|
raised_by: string | null;
|
|
633
|
-
|
|
997
|
+
response_time: number | null;
|
|
998
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
634
999
|
subject: string;
|
|
635
1000
|
ticket_id: string;
|
|
636
1001
|
ticket_metadata: Json | null;
|
|
@@ -639,6 +1004,7 @@ export type Database = {
|
|
|
639
1004
|
assigned_by?: string | null;
|
|
640
1005
|
assignee?: string | null;
|
|
641
1006
|
chat_id: string;
|
|
1007
|
+
close_ticket_metadata?: Json | null;
|
|
642
1008
|
closed_at?: string | null;
|
|
643
1009
|
created_at?: string;
|
|
644
1010
|
due_date?: string | null;
|
|
@@ -650,7 +1016,8 @@ export type Database = {
|
|
|
650
1016
|
priority?: number | null;
|
|
651
1017
|
quoted_message_id?: string | null;
|
|
652
1018
|
raised_by?: string | null;
|
|
653
|
-
|
|
1019
|
+
response_time?: number | null;
|
|
1020
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
654
1021
|
subject: string;
|
|
655
1022
|
ticket_id?: string;
|
|
656
1023
|
ticket_metadata?: Json | null;
|
|
@@ -659,6 +1026,7 @@ export type Database = {
|
|
|
659
1026
|
assigned_by?: string | null;
|
|
660
1027
|
assignee?: string | null;
|
|
661
1028
|
chat_id?: string;
|
|
1029
|
+
close_ticket_metadata?: Json | null;
|
|
662
1030
|
closed_at?: string | null;
|
|
663
1031
|
created_at?: string;
|
|
664
1032
|
due_date?: string | null;
|
|
@@ -670,25 +1038,26 @@ export type Database = {
|
|
|
670
1038
|
priority?: number | null;
|
|
671
1039
|
quoted_message_id?: string | null;
|
|
672
1040
|
raised_by?: string | null;
|
|
673
|
-
|
|
1041
|
+
response_time?: number | null;
|
|
1042
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
674
1043
|
subject?: string;
|
|
675
1044
|
ticket_id?: string;
|
|
676
1045
|
ticket_metadata?: Json | null;
|
|
677
1046
|
};
|
|
678
1047
|
Relationships: [
|
|
679
1048
|
{
|
|
680
|
-
foreignKeyName:
|
|
681
|
-
columns: [
|
|
1049
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
1050
|
+
columns: ["org_id"];
|
|
682
1051
|
isOneToOne: false;
|
|
683
|
-
referencedRelation:
|
|
684
|
-
referencedColumns: [
|
|
1052
|
+
referencedRelation: "tbl_org";
|
|
1053
|
+
referencedColumns: ["org_id"];
|
|
685
1054
|
},
|
|
686
1055
|
{
|
|
687
|
-
foreignKeyName:
|
|
688
|
-
columns: [
|
|
1056
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
1057
|
+
columns: ["org_id"];
|
|
689
1058
|
isOneToOne: false;
|
|
690
|
-
referencedRelation:
|
|
691
|
-
referencedColumns: [
|
|
1059
|
+
referencedRelation: "view_org";
|
|
1060
|
+
referencedColumns: ["org_id"];
|
|
692
1061
|
}
|
|
693
1062
|
];
|
|
694
1063
|
};
|
|
@@ -767,18 +1136,18 @@ export type Database = {
|
|
|
767
1136
|
};
|
|
768
1137
|
Relationships: [
|
|
769
1138
|
{
|
|
770
|
-
foreignKeyName:
|
|
771
|
-
columns: [
|
|
1139
|
+
foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
|
|
1140
|
+
columns: ["org_phone", "org_id"];
|
|
772
1141
|
isOneToOne: false;
|
|
773
|
-
referencedRelation:
|
|
774
|
-
referencedColumns: [
|
|
1142
|
+
referencedRelation: "tbl_org_phones";
|
|
1143
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
775
1144
|
}
|
|
776
1145
|
];
|
|
777
1146
|
};
|
|
778
1147
|
tbl_contacts: {
|
|
779
1148
|
Row: {
|
|
780
1149
|
business_profile: Json | null;
|
|
781
|
-
contact_color: Database[
|
|
1150
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
782
1151
|
contact_id: string;
|
|
783
1152
|
contact_image: string | null;
|
|
784
1153
|
contact_name: string | null;
|
|
@@ -805,7 +1174,7 @@ export type Database = {
|
|
|
805
1174
|
};
|
|
806
1175
|
Insert: {
|
|
807
1176
|
business_profile?: Json | null;
|
|
808
|
-
contact_color?: Database[
|
|
1177
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
809
1178
|
contact_id: string;
|
|
810
1179
|
contact_image?: string | null;
|
|
811
1180
|
contact_name?: string | null;
|
|
@@ -832,7 +1201,7 @@ export type Database = {
|
|
|
832
1201
|
};
|
|
833
1202
|
Update: {
|
|
834
1203
|
business_profile?: Json | null;
|
|
835
|
-
contact_color?: Database[
|
|
1204
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
836
1205
|
contact_id?: string;
|
|
837
1206
|
contact_image?: string | null;
|
|
838
1207
|
contact_name?: string | null;
|
|
@@ -859,18 +1228,18 @@ export type Database = {
|
|
|
859
1228
|
};
|
|
860
1229
|
Relationships: [
|
|
861
1230
|
{
|
|
862
|
-
foreignKeyName:
|
|
863
|
-
columns: [
|
|
1231
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1232
|
+
columns: ["org_id"];
|
|
864
1233
|
isOneToOne: false;
|
|
865
|
-
referencedRelation:
|
|
866
|
-
referencedColumns: [
|
|
1234
|
+
referencedRelation: "tbl_org";
|
|
1235
|
+
referencedColumns: ["org_id"];
|
|
867
1236
|
},
|
|
868
1237
|
{
|
|
869
|
-
foreignKeyName:
|
|
870
|
-
columns: [
|
|
1238
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1239
|
+
columns: ["org_id"];
|
|
871
1240
|
isOneToOne: false;
|
|
872
|
-
referencedRelation:
|
|
873
|
-
referencedColumns: [
|
|
1241
|
+
referencedRelation: "view_org";
|
|
1242
|
+
referencedColumns: ["org_id"];
|
|
874
1243
|
}
|
|
875
1244
|
];
|
|
876
1245
|
};
|
|
@@ -907,18 +1276,18 @@ export type Database = {
|
|
|
907
1276
|
};
|
|
908
1277
|
Relationships: [
|
|
909
1278
|
{
|
|
910
|
-
foreignKeyName:
|
|
911
|
-
columns: [
|
|
1279
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1280
|
+
columns: ["org_id"];
|
|
912
1281
|
isOneToOne: false;
|
|
913
|
-
referencedRelation:
|
|
914
|
-
referencedColumns: [
|
|
1282
|
+
referencedRelation: "tbl_org";
|
|
1283
|
+
referencedColumns: ["org_id"];
|
|
915
1284
|
},
|
|
916
1285
|
{
|
|
917
|
-
foreignKeyName:
|
|
918
|
-
columns: [
|
|
1286
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1287
|
+
columns: ["org_id"];
|
|
919
1288
|
isOneToOne: false;
|
|
920
|
-
referencedRelation:
|
|
921
|
-
referencedColumns: [
|
|
1289
|
+
referencedRelation: "view_org";
|
|
1290
|
+
referencedColumns: ["org_id"];
|
|
922
1291
|
}
|
|
923
1292
|
];
|
|
924
1293
|
};
|
|
@@ -928,51 +1297,51 @@ export type Database = {
|
|
|
928
1297
|
id: string;
|
|
929
1298
|
integration_id: string | null;
|
|
930
1299
|
integration_metadata: Json;
|
|
931
|
-
integration_name: Database[
|
|
1300
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
932
1301
|
integration_type: string;
|
|
933
1302
|
is_subscribed: boolean;
|
|
934
1303
|
org_id: string;
|
|
935
1304
|
subscribed_at: string;
|
|
936
|
-
type: Database[
|
|
1305
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
937
1306
|
};
|
|
938
1307
|
Insert: {
|
|
939
1308
|
hook_url: string;
|
|
940
1309
|
id?: string;
|
|
941
1310
|
integration_id?: string | null;
|
|
942
1311
|
integration_metadata: Json;
|
|
943
|
-
integration_name: Database[
|
|
1312
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
944
1313
|
integration_type: string;
|
|
945
1314
|
is_subscribed: boolean;
|
|
946
1315
|
org_id: string;
|
|
947
1316
|
subscribed_at?: string;
|
|
948
|
-
type: Database[
|
|
1317
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
949
1318
|
};
|
|
950
1319
|
Update: {
|
|
951
1320
|
hook_url?: string;
|
|
952
1321
|
id?: string;
|
|
953
1322
|
integration_id?: string | null;
|
|
954
1323
|
integration_metadata?: Json;
|
|
955
|
-
integration_name?: Database[
|
|
1324
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
956
1325
|
integration_type?: string;
|
|
957
1326
|
is_subscribed?: boolean;
|
|
958
1327
|
org_id?: string;
|
|
959
1328
|
subscribed_at?: string;
|
|
960
|
-
type?: Database[
|
|
1329
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
961
1330
|
};
|
|
962
1331
|
Relationships: [
|
|
963
1332
|
{
|
|
964
|
-
foreignKeyName:
|
|
965
|
-
columns: [
|
|
1333
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1334
|
+
columns: ["org_id"];
|
|
966
1335
|
isOneToOne: false;
|
|
967
|
-
referencedRelation:
|
|
968
|
-
referencedColumns: [
|
|
1336
|
+
referencedRelation: "tbl_org";
|
|
1337
|
+
referencedColumns: ["org_id"];
|
|
969
1338
|
},
|
|
970
1339
|
{
|
|
971
|
-
foreignKeyName:
|
|
972
|
-
columns: [
|
|
1340
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1341
|
+
columns: ["org_id"];
|
|
973
1342
|
isOneToOne: false;
|
|
974
|
-
referencedRelation:
|
|
975
|
-
referencedColumns: [
|
|
1343
|
+
referencedRelation: "view_org";
|
|
1344
|
+
referencedColumns: ["org_id"];
|
|
976
1345
|
}
|
|
977
1346
|
];
|
|
978
1347
|
};
|
|
@@ -980,50 +1349,50 @@ export type Database = {
|
|
|
980
1349
|
Row: {
|
|
981
1350
|
created_at: string;
|
|
982
1351
|
id: string;
|
|
983
|
-
integration_name: Database[
|
|
1352
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
984
1353
|
integration_type: string;
|
|
985
1354
|
metadata: Json;
|
|
986
1355
|
org_id: string;
|
|
987
1356
|
response: Json | null;
|
|
988
1357
|
success: boolean;
|
|
989
|
-
type: Database[
|
|
1358
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
990
1359
|
};
|
|
991
1360
|
Insert: {
|
|
992
1361
|
created_at?: string;
|
|
993
1362
|
id?: string;
|
|
994
|
-
integration_name: Database[
|
|
1363
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
995
1364
|
integration_type: string;
|
|
996
1365
|
metadata?: Json;
|
|
997
1366
|
org_id: string;
|
|
998
1367
|
response?: Json | null;
|
|
999
1368
|
success?: boolean;
|
|
1000
|
-
type: Database[
|
|
1369
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1001
1370
|
};
|
|
1002
1371
|
Update: {
|
|
1003
1372
|
created_at?: string;
|
|
1004
1373
|
id?: string;
|
|
1005
|
-
integration_name?: Database[
|
|
1374
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1006
1375
|
integration_type?: string;
|
|
1007
1376
|
metadata?: Json;
|
|
1008
1377
|
org_id?: string;
|
|
1009
1378
|
response?: Json | null;
|
|
1010
1379
|
success?: boolean;
|
|
1011
|
-
type?: Database[
|
|
1380
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1012
1381
|
};
|
|
1013
1382
|
Relationships: [
|
|
1014
1383
|
{
|
|
1015
|
-
foreignKeyName:
|
|
1016
|
-
columns: [
|
|
1384
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1385
|
+
columns: ["org_id"];
|
|
1017
1386
|
isOneToOne: false;
|
|
1018
|
-
referencedRelation:
|
|
1019
|
-
referencedColumns: [
|
|
1387
|
+
referencedRelation: "tbl_org";
|
|
1388
|
+
referencedColumns: ["org_id"];
|
|
1020
1389
|
},
|
|
1021
1390
|
{
|
|
1022
|
-
foreignKeyName:
|
|
1023
|
-
columns: [
|
|
1391
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1392
|
+
columns: ["org_id"];
|
|
1024
1393
|
isOneToOne: false;
|
|
1025
|
-
referencedRelation:
|
|
1026
|
-
referencedColumns: [
|
|
1394
|
+
referencedRelation: "view_org";
|
|
1395
|
+
referencedColumns: ["org_id"];
|
|
1027
1396
|
}
|
|
1028
1397
|
];
|
|
1029
1398
|
};
|
|
@@ -1038,7 +1407,7 @@ export type Database = {
|
|
|
1038
1407
|
role: string;
|
|
1039
1408
|
token: string;
|
|
1040
1409
|
token_metadata: Json | null;
|
|
1041
|
-
type: Database[
|
|
1410
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1042
1411
|
};
|
|
1043
1412
|
Insert: {
|
|
1044
1413
|
exp: string;
|
|
@@ -1050,7 +1419,7 @@ export type Database = {
|
|
|
1050
1419
|
role: string;
|
|
1051
1420
|
token: string;
|
|
1052
1421
|
token_metadata?: Json | null;
|
|
1053
|
-
type: Database[
|
|
1422
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1054
1423
|
};
|
|
1055
1424
|
Update: {
|
|
1056
1425
|
exp?: string;
|
|
@@ -1062,22 +1431,22 @@ export type Database = {
|
|
|
1062
1431
|
role?: string;
|
|
1063
1432
|
token?: string;
|
|
1064
1433
|
token_metadata?: Json | null;
|
|
1065
|
-
type?: Database[
|
|
1434
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1066
1435
|
};
|
|
1067
1436
|
Relationships: [
|
|
1068
1437
|
{
|
|
1069
|
-
foreignKeyName:
|
|
1070
|
-
columns: [
|
|
1438
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1439
|
+
columns: ["org_id"];
|
|
1071
1440
|
isOneToOne: false;
|
|
1072
|
-
referencedRelation:
|
|
1073
|
-
referencedColumns: [
|
|
1441
|
+
referencedRelation: "tbl_org";
|
|
1442
|
+
referencedColumns: ["org_id"];
|
|
1074
1443
|
},
|
|
1075
1444
|
{
|
|
1076
|
-
foreignKeyName:
|
|
1077
|
-
columns: [
|
|
1445
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1446
|
+
columns: ["org_id"];
|
|
1078
1447
|
isOneToOne: false;
|
|
1079
|
-
referencedRelation:
|
|
1080
|
-
referencedColumns: [
|
|
1448
|
+
referencedRelation: "view_org";
|
|
1449
|
+
referencedColumns: ["org_id"];
|
|
1081
1450
|
}
|
|
1082
1451
|
];
|
|
1083
1452
|
};
|
|
@@ -1147,18 +1516,18 @@ export type Database = {
|
|
|
1147
1516
|
};
|
|
1148
1517
|
Relationships: [
|
|
1149
1518
|
{
|
|
1150
|
-
foreignKeyName:
|
|
1151
|
-
columns: [
|
|
1519
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1520
|
+
columns: ["org_id"];
|
|
1152
1521
|
isOneToOne: false;
|
|
1153
|
-
referencedRelation:
|
|
1154
|
-
referencedColumns: [
|
|
1522
|
+
referencedRelation: "tbl_org";
|
|
1523
|
+
referencedColumns: ["org_id"];
|
|
1155
1524
|
},
|
|
1156
1525
|
{
|
|
1157
|
-
foreignKeyName:
|
|
1158
|
-
columns: [
|
|
1526
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1527
|
+
columns: ["org_id"];
|
|
1159
1528
|
isOneToOne: false;
|
|
1160
|
-
referencedRelation:
|
|
1161
|
-
referencedColumns: [
|
|
1529
|
+
referencedRelation: "view_org";
|
|
1530
|
+
referencedColumns: ["org_id"];
|
|
1162
1531
|
}
|
|
1163
1532
|
];
|
|
1164
1533
|
};
|
|
@@ -1171,13 +1540,13 @@ export type Database = {
|
|
|
1171
1540
|
is_active: boolean;
|
|
1172
1541
|
is_owner: boolean | null;
|
|
1173
1542
|
label_ids: string[] | null;
|
|
1174
|
-
member_color: Database[
|
|
1543
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1175
1544
|
member_image: string | null;
|
|
1176
1545
|
member_name: string | null;
|
|
1177
1546
|
org_id: string;
|
|
1178
1547
|
org_phones: string[] | null;
|
|
1179
1548
|
preferences: Json;
|
|
1180
|
-
role: Database[
|
|
1549
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1181
1550
|
user_id: string | null;
|
|
1182
1551
|
};
|
|
1183
1552
|
Insert: {
|
|
@@ -1188,13 +1557,13 @@ export type Database = {
|
|
|
1188
1557
|
is_active?: boolean;
|
|
1189
1558
|
is_owner?: boolean | null;
|
|
1190
1559
|
label_ids?: string[] | null;
|
|
1191
|
-
member_color?: Database[
|
|
1560
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1192
1561
|
member_image?: string | null;
|
|
1193
1562
|
member_name?: string | null;
|
|
1194
1563
|
org_id: string;
|
|
1195
1564
|
org_phones?: string[] | null;
|
|
1196
1565
|
preferences?: Json;
|
|
1197
|
-
role?: Database[
|
|
1566
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1198
1567
|
user_id?: string | null;
|
|
1199
1568
|
};
|
|
1200
1569
|
Update: {
|
|
@@ -1205,36 +1574,36 @@ export type Database = {
|
|
|
1205
1574
|
is_active?: boolean;
|
|
1206
1575
|
is_owner?: boolean | null;
|
|
1207
1576
|
label_ids?: string[] | null;
|
|
1208
|
-
member_color?: Database[
|
|
1577
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1209
1578
|
member_image?: string | null;
|
|
1210
1579
|
member_name?: string | null;
|
|
1211
1580
|
org_id?: string;
|
|
1212
1581
|
org_phones?: string[] | null;
|
|
1213
1582
|
preferences?: Json;
|
|
1214
|
-
role?: Database[
|
|
1583
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1215
1584
|
user_id?: string | null;
|
|
1216
1585
|
};
|
|
1217
1586
|
Relationships: [
|
|
1218
1587
|
{
|
|
1219
|
-
foreignKeyName:
|
|
1220
|
-
columns: [
|
|
1588
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1589
|
+
columns: ["user_id"];
|
|
1221
1590
|
isOneToOne: false;
|
|
1222
|
-
referencedRelation:
|
|
1223
|
-
referencedColumns: [
|
|
1591
|
+
referencedRelation: "users";
|
|
1592
|
+
referencedColumns: ["id"];
|
|
1224
1593
|
},
|
|
1225
1594
|
{
|
|
1226
|
-
foreignKeyName:
|
|
1227
|
-
columns: [
|
|
1595
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1596
|
+
columns: ["org_id"];
|
|
1228
1597
|
isOneToOne: false;
|
|
1229
|
-
referencedRelation:
|
|
1230
|
-
referencedColumns: [
|
|
1598
|
+
referencedRelation: "tbl_org";
|
|
1599
|
+
referencedColumns: ["org_id"];
|
|
1231
1600
|
},
|
|
1232
1601
|
{
|
|
1233
|
-
foreignKeyName:
|
|
1234
|
-
columns: [
|
|
1602
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1603
|
+
columns: ["org_id"];
|
|
1235
1604
|
isOneToOne: false;
|
|
1236
|
-
referencedRelation:
|
|
1237
|
-
referencedColumns: [
|
|
1605
|
+
referencedRelation: "view_org";
|
|
1606
|
+
referencedColumns: ["org_id"];
|
|
1238
1607
|
}
|
|
1239
1608
|
];
|
|
1240
1609
|
};
|
|
@@ -1298,32 +1667,32 @@ export type Database = {
|
|
|
1298
1667
|
};
|
|
1299
1668
|
Relationships: [
|
|
1300
1669
|
{
|
|
1301
|
-
foreignKeyName:
|
|
1302
|
-
columns: [
|
|
1670
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1671
|
+
columns: ["org_id"];
|
|
1303
1672
|
isOneToOne: false;
|
|
1304
|
-
referencedRelation:
|
|
1305
|
-
referencedColumns: [
|
|
1673
|
+
referencedRelation: "tbl_org";
|
|
1674
|
+
referencedColumns: ["org_id"];
|
|
1306
1675
|
},
|
|
1307
1676
|
{
|
|
1308
|
-
foreignKeyName:
|
|
1309
|
-
columns: [
|
|
1677
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1678
|
+
columns: ["org_id"];
|
|
1310
1679
|
isOneToOne: false;
|
|
1311
|
-
referencedRelation:
|
|
1312
|
-
referencedColumns: [
|
|
1680
|
+
referencedRelation: "view_org";
|
|
1681
|
+
referencedColumns: ["org_id"];
|
|
1313
1682
|
},
|
|
1314
1683
|
{
|
|
1315
|
-
foreignKeyName:
|
|
1316
|
-
columns: [
|
|
1684
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1685
|
+
columns: ["org_id"];
|
|
1317
1686
|
isOneToOne: false;
|
|
1318
|
-
referencedRelation:
|
|
1319
|
-
referencedColumns: [
|
|
1687
|
+
referencedRelation: "tbl_org";
|
|
1688
|
+
referencedColumns: ["org_id"];
|
|
1320
1689
|
},
|
|
1321
1690
|
{
|
|
1322
|
-
foreignKeyName:
|
|
1323
|
-
columns: [
|
|
1691
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1692
|
+
columns: ["org_id"];
|
|
1324
1693
|
isOneToOne: false;
|
|
1325
|
-
referencedRelation:
|
|
1326
|
-
referencedColumns: [
|
|
1694
|
+
referencedRelation: "view_org";
|
|
1695
|
+
referencedColumns: ["org_id"];
|
|
1327
1696
|
}
|
|
1328
1697
|
];
|
|
1329
1698
|
};
|
|
@@ -1351,18 +1720,18 @@ export type Database = {
|
|
|
1351
1720
|
};
|
|
1352
1721
|
Relationships: [
|
|
1353
1722
|
{
|
|
1354
|
-
foreignKeyName:
|
|
1355
|
-
columns: [
|
|
1723
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1724
|
+
columns: ["org_id"];
|
|
1356
1725
|
isOneToOne: false;
|
|
1357
|
-
referencedRelation:
|
|
1358
|
-
referencedColumns: [
|
|
1726
|
+
referencedRelation: "tbl_org";
|
|
1727
|
+
referencedColumns: ["org_id"];
|
|
1359
1728
|
},
|
|
1360
1729
|
{
|
|
1361
|
-
foreignKeyName:
|
|
1362
|
-
columns: [
|
|
1730
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1731
|
+
columns: ["org_id"];
|
|
1363
1732
|
isOneToOne: false;
|
|
1364
|
-
referencedRelation:
|
|
1365
|
-
referencedColumns: [
|
|
1733
|
+
referencedRelation: "view_org";
|
|
1734
|
+
referencedColumns: ["org_id"];
|
|
1366
1735
|
}
|
|
1367
1736
|
];
|
|
1368
1737
|
};
|
|
@@ -1395,7 +1764,7 @@ export type Database = {
|
|
|
1395
1764
|
view_broadcast_logs: {
|
|
1396
1765
|
Row: {
|
|
1397
1766
|
broadcast_id: string | null;
|
|
1398
|
-
broadcast_status: Database[
|
|
1767
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
1399
1768
|
created_at: string | null;
|
|
1400
1769
|
delivery_percentage: number | null;
|
|
1401
1770
|
failed_chats: number | null;
|
|
@@ -1414,18 +1783,49 @@ export type Database = {
|
|
|
1414
1783
|
};
|
|
1415
1784
|
Relationships: [
|
|
1416
1785
|
{
|
|
1417
|
-
foreignKeyName:
|
|
1418
|
-
columns: [
|
|
1786
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1787
|
+
columns: ["org_id"];
|
|
1788
|
+
isOneToOne: false;
|
|
1789
|
+
referencedRelation: "tbl_org";
|
|
1790
|
+
referencedColumns: ["org_id"];
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1794
|
+
columns: ["org_id"];
|
|
1795
|
+
isOneToOne: false;
|
|
1796
|
+
referencedRelation: "view_org";
|
|
1797
|
+
referencedColumns: ["org_id"];
|
|
1798
|
+
}
|
|
1799
|
+
];
|
|
1800
|
+
};
|
|
1801
|
+
view_chat_logs: {
|
|
1802
|
+
Row: {
|
|
1803
|
+
action: string | null;
|
|
1804
|
+
failed: number | null;
|
|
1805
|
+
operation_id: string | null;
|
|
1806
|
+
org_id: string | null;
|
|
1807
|
+
pending: number | null;
|
|
1808
|
+
performed_at: string | null;
|
|
1809
|
+
performed_by: string | null;
|
|
1810
|
+
success: number | null;
|
|
1811
|
+
total_chats: number | null;
|
|
1812
|
+
total_logs: number | null;
|
|
1813
|
+
total_participants: number | null;
|
|
1814
|
+
};
|
|
1815
|
+
Relationships: [
|
|
1816
|
+
{
|
|
1817
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1818
|
+
columns: ["org_id"];
|
|
1419
1819
|
isOneToOne: false;
|
|
1420
|
-
referencedRelation:
|
|
1421
|
-
referencedColumns: [
|
|
1820
|
+
referencedRelation: "tbl_org";
|
|
1821
|
+
referencedColumns: ["org_id"];
|
|
1422
1822
|
},
|
|
1423
1823
|
{
|
|
1424
|
-
foreignKeyName:
|
|
1425
|
-
columns: [
|
|
1824
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1825
|
+
columns: ["org_id"];
|
|
1426
1826
|
isOneToOne: false;
|
|
1427
|
-
referencedRelation:
|
|
1428
|
-
referencedColumns: [
|
|
1827
|
+
referencedRelation: "view_org";
|
|
1828
|
+
referencedColumns: ["org_id"];
|
|
1429
1829
|
}
|
|
1430
1830
|
];
|
|
1431
1831
|
};
|
|
@@ -1442,6 +1842,7 @@ export type Database = {
|
|
|
1442
1842
|
flag_count: number | null;
|
|
1443
1843
|
group_description: string | null;
|
|
1444
1844
|
hubspot_metadata: Json | null;
|
|
1845
|
+
info_admins_only: boolean | null;
|
|
1445
1846
|
invite_link: string | null;
|
|
1446
1847
|
is_archived: boolean | null;
|
|
1447
1848
|
is_muted: boolean | null;
|
|
@@ -1450,6 +1851,7 @@ export type Database = {
|
|
|
1450
1851
|
latest_message: Json | null;
|
|
1451
1852
|
member_count: number | null;
|
|
1452
1853
|
message_unread_count: number | null;
|
|
1854
|
+
messages_admins_only: boolean | null;
|
|
1453
1855
|
org_id: string | null;
|
|
1454
1856
|
org_phone: string | null;
|
|
1455
1857
|
updated_at: string | null;
|
|
@@ -1550,7 +1952,7 @@ export type Database = {
|
|
|
1550
1952
|
generate_access_token: {
|
|
1551
1953
|
Args: {
|
|
1552
1954
|
name_input?: string;
|
|
1553
|
-
type_input?: Database[
|
|
1955
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1554
1956
|
org_id_input?: string;
|
|
1555
1957
|
};
|
|
1556
1958
|
Returns: Json;
|
|
@@ -1560,7 +1962,7 @@ export type Database = {
|
|
|
1560
1962
|
org_id_input?: string;
|
|
1561
1963
|
org_phone_input?: string;
|
|
1562
1964
|
token_id_input?: string;
|
|
1563
|
-
token_type_input?: Database[
|
|
1965
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1564
1966
|
};
|
|
1565
1967
|
Returns: Json;
|
|
1566
1968
|
};
|
|
@@ -1597,15 +1999,16 @@ export type Database = {
|
|
|
1597
1999
|
Args: {
|
|
1598
2000
|
org_id_input: string;
|
|
1599
2001
|
contact_ids_input?: string[];
|
|
1600
|
-
with_chats?: boolean;
|
|
1601
2002
|
with_name?: boolean;
|
|
2003
|
+
sync_phone_contacts?: boolean;
|
|
1602
2004
|
};
|
|
1603
2005
|
Returns: Json;
|
|
1604
2006
|
};
|
|
1605
|
-
|
|
2007
|
+
get_dashboard_statistics_between_dates: {
|
|
1606
2008
|
Args: {
|
|
1607
2009
|
org_id_input: string;
|
|
1608
|
-
|
|
2010
|
+
start_date: string;
|
|
2011
|
+
end_date: string;
|
|
1609
2012
|
chat_id_input?: string[];
|
|
1610
2013
|
};
|
|
1611
2014
|
Returns: Json;
|
|
@@ -1646,11 +2049,12 @@ export type Database = {
|
|
|
1646
2049
|
};
|
|
1647
2050
|
Returns: Json;
|
|
1648
2051
|
};
|
|
1649
|
-
|
|
2052
|
+
get_team_metrics_between_dates: {
|
|
1650
2053
|
Args: {
|
|
1651
2054
|
org_id_input: string;
|
|
2055
|
+
start_date: string;
|
|
2056
|
+
end_date: string;
|
|
1652
2057
|
chat_id_input?: string[];
|
|
1653
|
-
interval_input?: unknown;
|
|
1654
2058
|
};
|
|
1655
2059
|
Returns: Json;
|
|
1656
2060
|
};
|
|
@@ -1677,7 +2081,7 @@ export type Database = {
|
|
|
1677
2081
|
};
|
|
1678
2082
|
list_role_from_user: {
|
|
1679
2083
|
Args: Record<PropertyKey, never>;
|
|
1680
|
-
Returns: Database[
|
|
2084
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
1681
2085
|
};
|
|
1682
2086
|
update_labels: {
|
|
1683
2087
|
Args: {
|
|
@@ -1690,12 +2094,12 @@ export type Database = {
|
|
|
1690
2094
|
};
|
|
1691
2095
|
};
|
|
1692
2096
|
Enums: {
|
|
1693
|
-
enum_broadcast_status:
|
|
1694
|
-
enum_chat_colors:
|
|
1695
|
-
enum_chat_tickets_status:
|
|
1696
|
-
enum_integration_name:
|
|
1697
|
-
enum_integration_type:
|
|
1698
|
-
enum_member_role:
|
|
2097
|
+
enum_broadcast_status: "inprogress" | "completed" | "stopped";
|
|
2098
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
2099
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
2100
|
+
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted";
|
|
2101
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce";
|
|
2102
|
+
enum_member_role: "admin" | "member";
|
|
1699
2103
|
};
|
|
1700
2104
|
CompositeTypes: {
|
|
1701
2105
|
[_ in never]: never;
|
|
@@ -1805,11 +2209,11 @@ export type Database = {
|
|
|
1805
2209
|
};
|
|
1806
2210
|
Relationships: [
|
|
1807
2211
|
{
|
|
1808
|
-
foreignKeyName:
|
|
1809
|
-
columns: [
|
|
2212
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
2213
|
+
columns: ["bucket_id"];
|
|
1810
2214
|
isOneToOne: false;
|
|
1811
|
-
referencedRelation:
|
|
1812
|
-
referencedColumns: [
|
|
2215
|
+
referencedRelation: "buckets";
|
|
2216
|
+
referencedColumns: ["id"];
|
|
1813
2217
|
}
|
|
1814
2218
|
];
|
|
1815
2219
|
};
|
|
@@ -1846,11 +2250,11 @@ export type Database = {
|
|
|
1846
2250
|
};
|
|
1847
2251
|
Relationships: [
|
|
1848
2252
|
{
|
|
1849
|
-
foreignKeyName:
|
|
1850
|
-
columns: [
|
|
2253
|
+
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
|
|
2254
|
+
columns: ["bucket_id"];
|
|
1851
2255
|
isOneToOne: false;
|
|
1852
|
-
referencedRelation:
|
|
1853
|
-
referencedColumns: [
|
|
2256
|
+
referencedRelation: "buckets";
|
|
2257
|
+
referencedColumns: ["id"];
|
|
1854
2258
|
}
|
|
1855
2259
|
];
|
|
1856
2260
|
};
|
|
@@ -1893,18 +2297,18 @@ export type Database = {
|
|
|
1893
2297
|
};
|
|
1894
2298
|
Relationships: [
|
|
1895
2299
|
{
|
|
1896
|
-
foreignKeyName:
|
|
1897
|
-
columns: [
|
|
2300
|
+
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
|
|
2301
|
+
columns: ["bucket_id"];
|
|
1898
2302
|
isOneToOne: false;
|
|
1899
|
-
referencedRelation:
|
|
1900
|
-
referencedColumns: [
|
|
2303
|
+
referencedRelation: "buckets";
|
|
2304
|
+
referencedColumns: ["id"];
|
|
1901
2305
|
},
|
|
1902
2306
|
{
|
|
1903
|
-
foreignKeyName:
|
|
1904
|
-
columns: [
|
|
2307
|
+
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
|
|
2308
|
+
columns: ["upload_id"];
|
|
1905
2309
|
isOneToOne: false;
|
|
1906
|
-
referencedRelation:
|
|
1907
|
-
referencedColumns: [
|
|
2310
|
+
referencedRelation: "s3_multipart_uploads";
|
|
2311
|
+
referencedColumns: ["id"];
|
|
1908
2312
|
}
|
|
1909
2313
|
];
|
|
1910
2314
|
};
|
|
@@ -2007,45 +2411,45 @@ export type Database = {
|
|
|
2007
2411
|
};
|
|
2008
2412
|
};
|
|
2009
2413
|
};
|
|
2010
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2011
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2414
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
2415
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
2012
2416
|
schema: keyof Database;
|
|
2013
2417
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2014
2418
|
schema: keyof Database;
|
|
2015
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2419
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
2016
2420
|
schema: keyof Database;
|
|
2017
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2421
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
2018
2422
|
Row: infer R;
|
|
2019
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2423
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
2020
2424
|
Row: infer R;
|
|
2021
2425
|
} ? R : never : never;
|
|
2022
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2426
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2023
2427
|
schema: keyof Database;
|
|
2024
2428
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2025
2429
|
schema: keyof Database;
|
|
2026
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2430
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2027
2431
|
schema: keyof Database;
|
|
2028
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2432
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2029
2433
|
Insert: infer I;
|
|
2030
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2434
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2031
2435
|
Insert: infer I;
|
|
2032
2436
|
} ? I : never : never;
|
|
2033
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2437
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2034
2438
|
schema: keyof Database;
|
|
2035
2439
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2036
2440
|
schema: keyof Database;
|
|
2037
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2441
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2038
2442
|
schema: keyof Database;
|
|
2039
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2443
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2040
2444
|
Update: infer U;
|
|
2041
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2445
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2042
2446
|
Update: infer U;
|
|
2043
2447
|
} ? U : never : never;
|
|
2044
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2448
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
2045
2449
|
schema: keyof Database;
|
|
2046
2450
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2047
2451
|
schema: keyof Database;
|
|
2048
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2452
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
2049
2453
|
schema: keyof Database;
|
|
2050
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2454
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
2051
2455
|
export {};
|