@periskope/types 0.6.94 → 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 +671 -235
- package/dist/types.d.ts +17 -5
- package/mod_json_type.sh +23 -0
- package/package.json +16 -16
- package/supabase.types.ts +2187 -1755
- package/types.ts +25 -13
package/dist/supabase.types.d.ts
CHANGED
|
@@ -29,6 +29,39 @@ export type Database = {
|
|
|
29
29
|
};
|
|
30
30
|
public: {
|
|
31
31
|
Tables: {
|
|
32
|
+
tbl_api_logs: {
|
|
33
|
+
Row: {
|
|
34
|
+
org_id: string;
|
|
35
|
+
path: string;
|
|
36
|
+
req: Json;
|
|
37
|
+
request_id: string;
|
|
38
|
+
res: Json;
|
|
39
|
+
status: number;
|
|
40
|
+
timestamp: string;
|
|
41
|
+
token_id: string;
|
|
42
|
+
};
|
|
43
|
+
Insert: {
|
|
44
|
+
org_id: string;
|
|
45
|
+
path: string;
|
|
46
|
+
req: Json;
|
|
47
|
+
request_id: string;
|
|
48
|
+
res: Json;
|
|
49
|
+
status: number;
|
|
50
|
+
timestamp: string;
|
|
51
|
+
token_id: string;
|
|
52
|
+
};
|
|
53
|
+
Update: {
|
|
54
|
+
org_id?: string;
|
|
55
|
+
path?: string;
|
|
56
|
+
req?: Json;
|
|
57
|
+
request_id?: string;
|
|
58
|
+
res?: Json;
|
|
59
|
+
status?: number;
|
|
60
|
+
timestamp?: string;
|
|
61
|
+
token_id?: string;
|
|
62
|
+
};
|
|
63
|
+
Relationships: [];
|
|
64
|
+
};
|
|
32
65
|
tbl_broadcast_logs: {
|
|
33
66
|
Row: {
|
|
34
67
|
broadcast_id: string;
|
|
@@ -74,39 +107,39 @@ export type Database = {
|
|
|
74
107
|
};
|
|
75
108
|
Relationships: [
|
|
76
109
|
{
|
|
77
|
-
foreignKeyName:
|
|
78
|
-
columns: [
|
|
110
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
111
|
+
columns: ["broadcast_id"];
|
|
79
112
|
isOneToOne: false;
|
|
80
|
-
referencedRelation:
|
|
81
|
-
referencedColumns: [
|
|
113
|
+
referencedRelation: "tbl_broadcast_messages";
|
|
114
|
+
referencedColumns: ["broadcast_id"];
|
|
82
115
|
},
|
|
83
116
|
{
|
|
84
|
-
foreignKeyName:
|
|
85
|
-
columns: [
|
|
117
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
118
|
+
columns: ["broadcast_id"];
|
|
86
119
|
isOneToOne: false;
|
|
87
|
-
referencedRelation:
|
|
88
|
-
referencedColumns: [
|
|
120
|
+
referencedRelation: "view_broadcast_logs";
|
|
121
|
+
referencedColumns: ["broadcast_id"];
|
|
89
122
|
},
|
|
90
123
|
{
|
|
91
|
-
foreignKeyName:
|
|
92
|
-
columns: [
|
|
124
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
125
|
+
columns: ["org_id"];
|
|
93
126
|
isOneToOne: false;
|
|
94
|
-
referencedRelation:
|
|
95
|
-
referencedColumns: [
|
|
127
|
+
referencedRelation: "tbl_org";
|
|
128
|
+
referencedColumns: ["org_id"];
|
|
96
129
|
},
|
|
97
130
|
{
|
|
98
|
-
foreignKeyName:
|
|
99
|
-
columns: [
|
|
131
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
132
|
+
columns: ["org_id"];
|
|
100
133
|
isOneToOne: false;
|
|
101
|
-
referencedRelation:
|
|
102
|
-
referencedColumns: [
|
|
134
|
+
referencedRelation: "view_org";
|
|
135
|
+
referencedColumns: ["org_id"];
|
|
103
136
|
}
|
|
104
137
|
];
|
|
105
138
|
};
|
|
106
139
|
tbl_broadcast_messages: {
|
|
107
140
|
Row: {
|
|
108
141
|
broadcast_id: string;
|
|
109
|
-
broadcast_status: Database[
|
|
142
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
110
143
|
chat_ids: string[] | null;
|
|
111
144
|
created_at: string;
|
|
112
145
|
message_payload: Json | null;
|
|
@@ -119,7 +152,7 @@ export type Database = {
|
|
|
119
152
|
};
|
|
120
153
|
Insert: {
|
|
121
154
|
broadcast_id?: string;
|
|
122
|
-
broadcast_status?: Database[
|
|
155
|
+
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
123
156
|
chat_ids?: string[] | null;
|
|
124
157
|
created_at?: string;
|
|
125
158
|
message_payload?: Json | null;
|
|
@@ -132,7 +165,7 @@ export type Database = {
|
|
|
132
165
|
};
|
|
133
166
|
Update: {
|
|
134
167
|
broadcast_id?: string;
|
|
135
|
-
broadcast_status?: Database[
|
|
168
|
+
broadcast_status?: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
136
169
|
chat_ids?: string[] | null;
|
|
137
170
|
created_at?: string;
|
|
138
171
|
message_payload?: Json | null;
|
|
@@ -145,18 +178,18 @@ export type Database = {
|
|
|
145
178
|
};
|
|
146
179
|
Relationships: [
|
|
147
180
|
{
|
|
148
|
-
foreignKeyName:
|
|
149
|
-
columns: [
|
|
181
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
182
|
+
columns: ["org_id"];
|
|
150
183
|
isOneToOne: false;
|
|
151
|
-
referencedRelation:
|
|
152
|
-
referencedColumns: [
|
|
184
|
+
referencedRelation: "tbl_org";
|
|
185
|
+
referencedColumns: ["org_id"];
|
|
153
186
|
},
|
|
154
187
|
{
|
|
155
|
-
foreignKeyName:
|
|
156
|
-
columns: [
|
|
188
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
189
|
+
columns: ["org_id"];
|
|
157
190
|
isOneToOne: false;
|
|
158
|
-
referencedRelation:
|
|
159
|
-
referencedColumns: [
|
|
191
|
+
referencedRelation: "view_org";
|
|
192
|
+
referencedColumns: ["org_id"];
|
|
160
193
|
}
|
|
161
194
|
];
|
|
162
195
|
};
|
|
@@ -190,18 +223,18 @@ export type Database = {
|
|
|
190
223
|
};
|
|
191
224
|
Relationships: [
|
|
192
225
|
{
|
|
193
|
-
foreignKeyName:
|
|
194
|
-
columns: [
|
|
226
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
227
|
+
columns: ["org_id"];
|
|
195
228
|
isOneToOne: false;
|
|
196
|
-
referencedRelation:
|
|
197
|
-
referencedColumns: [
|
|
229
|
+
referencedRelation: "tbl_org";
|
|
230
|
+
referencedColumns: ["org_id"];
|
|
198
231
|
},
|
|
199
232
|
{
|
|
200
|
-
foreignKeyName:
|
|
201
|
-
columns: [
|
|
233
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
234
|
+
columns: ["org_id"];
|
|
202
235
|
isOneToOne: false;
|
|
203
|
-
referencedRelation:
|
|
204
|
-
referencedColumns: [
|
|
236
|
+
referencedRelation: "view_org";
|
|
237
|
+
referencedColumns: ["org_id"];
|
|
205
238
|
}
|
|
206
239
|
];
|
|
207
240
|
};
|
|
@@ -235,11 +268,68 @@ export type Database = {
|
|
|
235
268
|
};
|
|
236
269
|
Relationships: [
|
|
237
270
|
{
|
|
238
|
-
foreignKeyName:
|
|
239
|
-
columns: [
|
|
271
|
+
foreignKeyName: "tbl_chat_access_org_id_email_fkey";
|
|
272
|
+
columns: ["org_id", "email"];
|
|
273
|
+
isOneToOne: false;
|
|
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"];
|
|
240
330
|
isOneToOne: false;
|
|
241
|
-
referencedRelation:
|
|
242
|
-
referencedColumns: [
|
|
331
|
+
referencedRelation: "view_org";
|
|
332
|
+
referencedColumns: ["org_id"];
|
|
243
333
|
}
|
|
244
334
|
];
|
|
245
335
|
};
|
|
@@ -396,14 +486,320 @@ export type Database = {
|
|
|
396
486
|
};
|
|
397
487
|
Relationships: [
|
|
398
488
|
{
|
|
399
|
-
foreignKeyName:
|
|
400
|
-
columns: [
|
|
489
|
+
foreignKeyName: "tbl_chat_messages_parent_fkey_tbl_org_phones";
|
|
490
|
+
columns: ["org_phone", "org_id"];
|
|
401
491
|
isOneToOne: false;
|
|
402
|
-
referencedRelation:
|
|
403
|
-
referencedColumns: [
|
|
492
|
+
referencedRelation: "tbl_org_phones";
|
|
493
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
404
494
|
}
|
|
405
495
|
];
|
|
406
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
|
+
};
|
|
407
803
|
tbl_chat_notifications: {
|
|
408
804
|
Row: {
|
|
409
805
|
author: string | null;
|
|
@@ -446,11 +842,11 @@ export type Database = {
|
|
|
446
842
|
};
|
|
447
843
|
Relationships: [
|
|
448
844
|
{
|
|
449
|
-
foreignKeyName:
|
|
450
|
-
columns: [
|
|
845
|
+
foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones";
|
|
846
|
+
columns: ["org_id", "org_phone"];
|
|
451
847
|
isOneToOne: false;
|
|
452
|
-
referencedRelation:
|
|
453
|
-
referencedColumns: [
|
|
848
|
+
referencedRelation: "tbl_org_phones";
|
|
849
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
454
850
|
}
|
|
455
851
|
];
|
|
456
852
|
};
|
|
@@ -484,11 +880,11 @@ export type Database = {
|
|
|
484
880
|
};
|
|
485
881
|
Relationships: [
|
|
486
882
|
{
|
|
487
|
-
foreignKeyName:
|
|
488
|
-
columns: [
|
|
883
|
+
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
884
|
+
columns: ["org_id", "org_phone", "chat_id"];
|
|
489
885
|
isOneToOne: false;
|
|
490
|
-
referencedRelation:
|
|
491
|
-
referencedColumns: [
|
|
886
|
+
referencedRelation: "tbl_chats";
|
|
887
|
+
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
492
888
|
}
|
|
493
889
|
];
|
|
494
890
|
};
|
|
@@ -573,11 +969,11 @@ export type Database = {
|
|
|
573
969
|
};
|
|
574
970
|
Relationships: [
|
|
575
971
|
{
|
|
576
|
-
foreignKeyName:
|
|
577
|
-
columns: [
|
|
972
|
+
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
|
|
973
|
+
columns: ["org_id", "org_phone"];
|
|
578
974
|
isOneToOne: false;
|
|
579
|
-
referencedRelation:
|
|
580
|
-
referencedColumns: [
|
|
975
|
+
referencedRelation: "tbl_org_phones";
|
|
976
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
581
977
|
}
|
|
582
978
|
];
|
|
583
979
|
};
|
|
@@ -586,6 +982,7 @@ export type Database = {
|
|
|
586
982
|
assigned_by: string | null;
|
|
587
983
|
assignee: string | null;
|
|
588
984
|
chat_id: string;
|
|
985
|
+
close_ticket_metadata: Json | null;
|
|
589
986
|
closed_at: string | null;
|
|
590
987
|
created_at: string;
|
|
591
988
|
due_date: string | null;
|
|
@@ -597,7 +994,8 @@ export type Database = {
|
|
|
597
994
|
priority: number | null;
|
|
598
995
|
quoted_message_id: string | null;
|
|
599
996
|
raised_by: string | null;
|
|
600
|
-
|
|
997
|
+
response_time: number | null;
|
|
998
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
601
999
|
subject: string;
|
|
602
1000
|
ticket_id: string;
|
|
603
1001
|
ticket_metadata: Json | null;
|
|
@@ -606,6 +1004,7 @@ export type Database = {
|
|
|
606
1004
|
assigned_by?: string | null;
|
|
607
1005
|
assignee?: string | null;
|
|
608
1006
|
chat_id: string;
|
|
1007
|
+
close_ticket_metadata?: Json | null;
|
|
609
1008
|
closed_at?: string | null;
|
|
610
1009
|
created_at?: string;
|
|
611
1010
|
due_date?: string | null;
|
|
@@ -617,7 +1016,8 @@ export type Database = {
|
|
|
617
1016
|
priority?: number | null;
|
|
618
1017
|
quoted_message_id?: string | null;
|
|
619
1018
|
raised_by?: string | null;
|
|
620
|
-
|
|
1019
|
+
response_time?: number | null;
|
|
1020
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
621
1021
|
subject: string;
|
|
622
1022
|
ticket_id?: string;
|
|
623
1023
|
ticket_metadata?: Json | null;
|
|
@@ -626,6 +1026,7 @@ export type Database = {
|
|
|
626
1026
|
assigned_by?: string | null;
|
|
627
1027
|
assignee?: string | null;
|
|
628
1028
|
chat_id?: string;
|
|
1029
|
+
close_ticket_metadata?: Json | null;
|
|
629
1030
|
closed_at?: string | null;
|
|
630
1031
|
created_at?: string;
|
|
631
1032
|
due_date?: string | null;
|
|
@@ -637,25 +1038,26 @@ export type Database = {
|
|
|
637
1038
|
priority?: number | null;
|
|
638
1039
|
quoted_message_id?: string | null;
|
|
639
1040
|
raised_by?: string | null;
|
|
640
|
-
|
|
1041
|
+
response_time?: number | null;
|
|
1042
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
641
1043
|
subject?: string;
|
|
642
1044
|
ticket_id?: string;
|
|
643
1045
|
ticket_metadata?: Json | null;
|
|
644
1046
|
};
|
|
645
1047
|
Relationships: [
|
|
646
1048
|
{
|
|
647
|
-
foreignKeyName:
|
|
648
|
-
columns: [
|
|
1049
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
1050
|
+
columns: ["org_id"];
|
|
649
1051
|
isOneToOne: false;
|
|
650
|
-
referencedRelation:
|
|
651
|
-
referencedColumns: [
|
|
1052
|
+
referencedRelation: "tbl_org";
|
|
1053
|
+
referencedColumns: ["org_id"];
|
|
652
1054
|
},
|
|
653
1055
|
{
|
|
654
|
-
foreignKeyName:
|
|
655
|
-
columns: [
|
|
1056
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
1057
|
+
columns: ["org_id"];
|
|
656
1058
|
isOneToOne: false;
|
|
657
|
-
referencedRelation:
|
|
658
|
-
referencedColumns: [
|
|
1059
|
+
referencedRelation: "view_org";
|
|
1060
|
+
referencedColumns: ["org_id"];
|
|
659
1061
|
}
|
|
660
1062
|
];
|
|
661
1063
|
};
|
|
@@ -734,18 +1136,18 @@ export type Database = {
|
|
|
734
1136
|
};
|
|
735
1137
|
Relationships: [
|
|
736
1138
|
{
|
|
737
|
-
foreignKeyName:
|
|
738
|
-
columns: [
|
|
1139
|
+
foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
|
|
1140
|
+
columns: ["org_phone", "org_id"];
|
|
739
1141
|
isOneToOne: false;
|
|
740
|
-
referencedRelation:
|
|
741
|
-
referencedColumns: [
|
|
1142
|
+
referencedRelation: "tbl_org_phones";
|
|
1143
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
742
1144
|
}
|
|
743
1145
|
];
|
|
744
1146
|
};
|
|
745
1147
|
tbl_contacts: {
|
|
746
1148
|
Row: {
|
|
747
1149
|
business_profile: Json | null;
|
|
748
|
-
contact_color: Database[
|
|
1150
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
749
1151
|
contact_id: string;
|
|
750
1152
|
contact_image: string | null;
|
|
751
1153
|
contact_name: string | null;
|
|
@@ -772,7 +1174,7 @@ export type Database = {
|
|
|
772
1174
|
};
|
|
773
1175
|
Insert: {
|
|
774
1176
|
business_profile?: Json | null;
|
|
775
|
-
contact_color?: Database[
|
|
1177
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
776
1178
|
contact_id: string;
|
|
777
1179
|
contact_image?: string | null;
|
|
778
1180
|
contact_name?: string | null;
|
|
@@ -799,7 +1201,7 @@ export type Database = {
|
|
|
799
1201
|
};
|
|
800
1202
|
Update: {
|
|
801
1203
|
business_profile?: Json | null;
|
|
802
|
-
contact_color?: Database[
|
|
1204
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
803
1205
|
contact_id?: string;
|
|
804
1206
|
contact_image?: string | null;
|
|
805
1207
|
contact_name?: string | null;
|
|
@@ -826,18 +1228,18 @@ export type Database = {
|
|
|
826
1228
|
};
|
|
827
1229
|
Relationships: [
|
|
828
1230
|
{
|
|
829
|
-
foreignKeyName:
|
|
830
|
-
columns: [
|
|
1231
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1232
|
+
columns: ["org_id"];
|
|
831
1233
|
isOneToOne: false;
|
|
832
|
-
referencedRelation:
|
|
833
|
-
referencedColumns: [
|
|
1234
|
+
referencedRelation: "tbl_org";
|
|
1235
|
+
referencedColumns: ["org_id"];
|
|
834
1236
|
},
|
|
835
1237
|
{
|
|
836
|
-
foreignKeyName:
|
|
837
|
-
columns: [
|
|
1238
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1239
|
+
columns: ["org_id"];
|
|
838
1240
|
isOneToOne: false;
|
|
839
|
-
referencedRelation:
|
|
840
|
-
referencedColumns: [
|
|
1241
|
+
referencedRelation: "view_org";
|
|
1242
|
+
referencedColumns: ["org_id"];
|
|
841
1243
|
}
|
|
842
1244
|
];
|
|
843
1245
|
};
|
|
@@ -874,18 +1276,18 @@ export type Database = {
|
|
|
874
1276
|
};
|
|
875
1277
|
Relationships: [
|
|
876
1278
|
{
|
|
877
|
-
foreignKeyName:
|
|
878
|
-
columns: [
|
|
1279
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1280
|
+
columns: ["org_id"];
|
|
879
1281
|
isOneToOne: false;
|
|
880
|
-
referencedRelation:
|
|
881
|
-
referencedColumns: [
|
|
1282
|
+
referencedRelation: "tbl_org";
|
|
1283
|
+
referencedColumns: ["org_id"];
|
|
882
1284
|
},
|
|
883
1285
|
{
|
|
884
|
-
foreignKeyName:
|
|
885
|
-
columns: [
|
|
1286
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1287
|
+
columns: ["org_id"];
|
|
886
1288
|
isOneToOne: false;
|
|
887
|
-
referencedRelation:
|
|
888
|
-
referencedColumns: [
|
|
1289
|
+
referencedRelation: "view_org";
|
|
1290
|
+
referencedColumns: ["org_id"];
|
|
889
1291
|
}
|
|
890
1292
|
];
|
|
891
1293
|
};
|
|
@@ -895,51 +1297,51 @@ export type Database = {
|
|
|
895
1297
|
id: string;
|
|
896
1298
|
integration_id: string | null;
|
|
897
1299
|
integration_metadata: Json;
|
|
898
|
-
integration_name: Database[
|
|
1300
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
899
1301
|
integration_type: string;
|
|
900
1302
|
is_subscribed: boolean;
|
|
901
1303
|
org_id: string;
|
|
902
1304
|
subscribed_at: string;
|
|
903
|
-
type: Database[
|
|
1305
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
904
1306
|
};
|
|
905
1307
|
Insert: {
|
|
906
1308
|
hook_url: string;
|
|
907
1309
|
id?: string;
|
|
908
1310
|
integration_id?: string | null;
|
|
909
1311
|
integration_metadata: Json;
|
|
910
|
-
integration_name: Database[
|
|
1312
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
911
1313
|
integration_type: string;
|
|
912
1314
|
is_subscribed: boolean;
|
|
913
1315
|
org_id: string;
|
|
914
1316
|
subscribed_at?: string;
|
|
915
|
-
type: Database[
|
|
1317
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
916
1318
|
};
|
|
917
1319
|
Update: {
|
|
918
1320
|
hook_url?: string;
|
|
919
1321
|
id?: string;
|
|
920
1322
|
integration_id?: string | null;
|
|
921
1323
|
integration_metadata?: Json;
|
|
922
|
-
integration_name?: Database[
|
|
1324
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
923
1325
|
integration_type?: string;
|
|
924
1326
|
is_subscribed?: boolean;
|
|
925
1327
|
org_id?: string;
|
|
926
1328
|
subscribed_at?: string;
|
|
927
|
-
type?: Database[
|
|
1329
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
928
1330
|
};
|
|
929
1331
|
Relationships: [
|
|
930
1332
|
{
|
|
931
|
-
foreignKeyName:
|
|
932
|
-
columns: [
|
|
1333
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1334
|
+
columns: ["org_id"];
|
|
933
1335
|
isOneToOne: false;
|
|
934
|
-
referencedRelation:
|
|
935
|
-
referencedColumns: [
|
|
1336
|
+
referencedRelation: "tbl_org";
|
|
1337
|
+
referencedColumns: ["org_id"];
|
|
936
1338
|
},
|
|
937
1339
|
{
|
|
938
|
-
foreignKeyName:
|
|
939
|
-
columns: [
|
|
1340
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1341
|
+
columns: ["org_id"];
|
|
940
1342
|
isOneToOne: false;
|
|
941
|
-
referencedRelation:
|
|
942
|
-
referencedColumns: [
|
|
1343
|
+
referencedRelation: "view_org";
|
|
1344
|
+
referencedColumns: ["org_id"];
|
|
943
1345
|
}
|
|
944
1346
|
];
|
|
945
1347
|
};
|
|
@@ -947,50 +1349,50 @@ export type Database = {
|
|
|
947
1349
|
Row: {
|
|
948
1350
|
created_at: string;
|
|
949
1351
|
id: string;
|
|
950
|
-
integration_name: Database[
|
|
1352
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
951
1353
|
integration_type: string;
|
|
952
1354
|
metadata: Json;
|
|
953
1355
|
org_id: string;
|
|
954
1356
|
response: Json | null;
|
|
955
1357
|
success: boolean;
|
|
956
|
-
type: Database[
|
|
1358
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
957
1359
|
};
|
|
958
1360
|
Insert: {
|
|
959
1361
|
created_at?: string;
|
|
960
1362
|
id?: string;
|
|
961
|
-
integration_name: Database[
|
|
1363
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
962
1364
|
integration_type: string;
|
|
963
1365
|
metadata?: Json;
|
|
964
1366
|
org_id: string;
|
|
965
1367
|
response?: Json | null;
|
|
966
1368
|
success?: boolean;
|
|
967
|
-
type: Database[
|
|
1369
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
968
1370
|
};
|
|
969
1371
|
Update: {
|
|
970
1372
|
created_at?: string;
|
|
971
1373
|
id?: string;
|
|
972
|
-
integration_name?: Database[
|
|
1374
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
973
1375
|
integration_type?: string;
|
|
974
1376
|
metadata?: Json;
|
|
975
1377
|
org_id?: string;
|
|
976
1378
|
response?: Json | null;
|
|
977
1379
|
success?: boolean;
|
|
978
|
-
type?: Database[
|
|
1380
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
979
1381
|
};
|
|
980
1382
|
Relationships: [
|
|
981
1383
|
{
|
|
982
|
-
foreignKeyName:
|
|
983
|
-
columns: [
|
|
1384
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1385
|
+
columns: ["org_id"];
|
|
984
1386
|
isOneToOne: false;
|
|
985
|
-
referencedRelation:
|
|
986
|
-
referencedColumns: [
|
|
1387
|
+
referencedRelation: "tbl_org";
|
|
1388
|
+
referencedColumns: ["org_id"];
|
|
987
1389
|
},
|
|
988
1390
|
{
|
|
989
|
-
foreignKeyName:
|
|
990
|
-
columns: [
|
|
1391
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1392
|
+
columns: ["org_id"];
|
|
991
1393
|
isOneToOne: false;
|
|
992
|
-
referencedRelation:
|
|
993
|
-
referencedColumns: [
|
|
1394
|
+
referencedRelation: "view_org";
|
|
1395
|
+
referencedColumns: ["org_id"];
|
|
994
1396
|
}
|
|
995
1397
|
];
|
|
996
1398
|
};
|
|
@@ -1005,7 +1407,7 @@ export type Database = {
|
|
|
1005
1407
|
role: string;
|
|
1006
1408
|
token: string;
|
|
1007
1409
|
token_metadata: Json | null;
|
|
1008
|
-
type: Database[
|
|
1410
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1009
1411
|
};
|
|
1010
1412
|
Insert: {
|
|
1011
1413
|
exp: string;
|
|
@@ -1017,7 +1419,7 @@ export type Database = {
|
|
|
1017
1419
|
role: string;
|
|
1018
1420
|
token: string;
|
|
1019
1421
|
token_metadata?: Json | null;
|
|
1020
|
-
type: Database[
|
|
1422
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1021
1423
|
};
|
|
1022
1424
|
Update: {
|
|
1023
1425
|
exp?: string;
|
|
@@ -1029,22 +1431,22 @@ export type Database = {
|
|
|
1029
1431
|
role?: string;
|
|
1030
1432
|
token?: string;
|
|
1031
1433
|
token_metadata?: Json | null;
|
|
1032
|
-
type?: Database[
|
|
1434
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1033
1435
|
};
|
|
1034
1436
|
Relationships: [
|
|
1035
1437
|
{
|
|
1036
|
-
foreignKeyName:
|
|
1037
|
-
columns: [
|
|
1438
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1439
|
+
columns: ["org_id"];
|
|
1038
1440
|
isOneToOne: false;
|
|
1039
|
-
referencedRelation:
|
|
1040
|
-
referencedColumns: [
|
|
1441
|
+
referencedRelation: "tbl_org";
|
|
1442
|
+
referencedColumns: ["org_id"];
|
|
1041
1443
|
},
|
|
1042
1444
|
{
|
|
1043
|
-
foreignKeyName:
|
|
1044
|
-
columns: [
|
|
1445
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1446
|
+
columns: ["org_id"];
|
|
1045
1447
|
isOneToOne: false;
|
|
1046
|
-
referencedRelation:
|
|
1047
|
-
referencedColumns: [
|
|
1448
|
+
referencedRelation: "view_org";
|
|
1449
|
+
referencedColumns: ["org_id"];
|
|
1048
1450
|
}
|
|
1049
1451
|
];
|
|
1050
1452
|
};
|
|
@@ -1114,18 +1516,18 @@ export type Database = {
|
|
|
1114
1516
|
};
|
|
1115
1517
|
Relationships: [
|
|
1116
1518
|
{
|
|
1117
|
-
foreignKeyName:
|
|
1118
|
-
columns: [
|
|
1519
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1520
|
+
columns: ["org_id"];
|
|
1119
1521
|
isOneToOne: false;
|
|
1120
|
-
referencedRelation:
|
|
1121
|
-
referencedColumns: [
|
|
1522
|
+
referencedRelation: "tbl_org";
|
|
1523
|
+
referencedColumns: ["org_id"];
|
|
1122
1524
|
},
|
|
1123
1525
|
{
|
|
1124
|
-
foreignKeyName:
|
|
1125
|
-
columns: [
|
|
1526
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1527
|
+
columns: ["org_id"];
|
|
1126
1528
|
isOneToOne: false;
|
|
1127
|
-
referencedRelation:
|
|
1128
|
-
referencedColumns: [
|
|
1529
|
+
referencedRelation: "view_org";
|
|
1530
|
+
referencedColumns: ["org_id"];
|
|
1129
1531
|
}
|
|
1130
1532
|
];
|
|
1131
1533
|
};
|
|
@@ -1138,13 +1540,13 @@ export type Database = {
|
|
|
1138
1540
|
is_active: boolean;
|
|
1139
1541
|
is_owner: boolean | null;
|
|
1140
1542
|
label_ids: string[] | null;
|
|
1141
|
-
member_color: Database[
|
|
1543
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1142
1544
|
member_image: string | null;
|
|
1143
1545
|
member_name: string | null;
|
|
1144
1546
|
org_id: string;
|
|
1145
1547
|
org_phones: string[] | null;
|
|
1146
1548
|
preferences: Json;
|
|
1147
|
-
role: Database[
|
|
1549
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1148
1550
|
user_id: string | null;
|
|
1149
1551
|
};
|
|
1150
1552
|
Insert: {
|
|
@@ -1155,13 +1557,13 @@ export type Database = {
|
|
|
1155
1557
|
is_active?: boolean;
|
|
1156
1558
|
is_owner?: boolean | null;
|
|
1157
1559
|
label_ids?: string[] | null;
|
|
1158
|
-
member_color?: Database[
|
|
1560
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1159
1561
|
member_image?: string | null;
|
|
1160
1562
|
member_name?: string | null;
|
|
1161
1563
|
org_id: string;
|
|
1162
1564
|
org_phones?: string[] | null;
|
|
1163
1565
|
preferences?: Json;
|
|
1164
|
-
role?: Database[
|
|
1566
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1165
1567
|
user_id?: string | null;
|
|
1166
1568
|
};
|
|
1167
1569
|
Update: {
|
|
@@ -1172,36 +1574,36 @@ export type Database = {
|
|
|
1172
1574
|
is_active?: boolean;
|
|
1173
1575
|
is_owner?: boolean | null;
|
|
1174
1576
|
label_ids?: string[] | null;
|
|
1175
|
-
member_color?: Database[
|
|
1577
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1176
1578
|
member_image?: string | null;
|
|
1177
1579
|
member_name?: string | null;
|
|
1178
1580
|
org_id?: string;
|
|
1179
1581
|
org_phones?: string[] | null;
|
|
1180
1582
|
preferences?: Json;
|
|
1181
|
-
role?: Database[
|
|
1583
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1182
1584
|
user_id?: string | null;
|
|
1183
1585
|
};
|
|
1184
1586
|
Relationships: [
|
|
1185
1587
|
{
|
|
1186
|
-
foreignKeyName:
|
|
1187
|
-
columns: [
|
|
1588
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1589
|
+
columns: ["user_id"];
|
|
1188
1590
|
isOneToOne: false;
|
|
1189
|
-
referencedRelation:
|
|
1190
|
-
referencedColumns: [
|
|
1591
|
+
referencedRelation: "users";
|
|
1592
|
+
referencedColumns: ["id"];
|
|
1191
1593
|
},
|
|
1192
1594
|
{
|
|
1193
|
-
foreignKeyName:
|
|
1194
|
-
columns: [
|
|
1595
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1596
|
+
columns: ["org_id"];
|
|
1195
1597
|
isOneToOne: false;
|
|
1196
|
-
referencedRelation:
|
|
1197
|
-
referencedColumns: [
|
|
1598
|
+
referencedRelation: "tbl_org";
|
|
1599
|
+
referencedColumns: ["org_id"];
|
|
1198
1600
|
},
|
|
1199
1601
|
{
|
|
1200
|
-
foreignKeyName:
|
|
1201
|
-
columns: [
|
|
1602
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1603
|
+
columns: ["org_id"];
|
|
1202
1604
|
isOneToOne: false;
|
|
1203
|
-
referencedRelation:
|
|
1204
|
-
referencedColumns: [
|
|
1605
|
+
referencedRelation: "view_org";
|
|
1606
|
+
referencedColumns: ["org_id"];
|
|
1205
1607
|
}
|
|
1206
1608
|
];
|
|
1207
1609
|
};
|
|
@@ -1265,32 +1667,32 @@ export type Database = {
|
|
|
1265
1667
|
};
|
|
1266
1668
|
Relationships: [
|
|
1267
1669
|
{
|
|
1268
|
-
foreignKeyName:
|
|
1269
|
-
columns: [
|
|
1670
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1671
|
+
columns: ["org_id"];
|
|
1270
1672
|
isOneToOne: false;
|
|
1271
|
-
referencedRelation:
|
|
1272
|
-
referencedColumns: [
|
|
1673
|
+
referencedRelation: "tbl_org";
|
|
1674
|
+
referencedColumns: ["org_id"];
|
|
1273
1675
|
},
|
|
1274
1676
|
{
|
|
1275
|
-
foreignKeyName:
|
|
1276
|
-
columns: [
|
|
1677
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1678
|
+
columns: ["org_id"];
|
|
1277
1679
|
isOneToOne: false;
|
|
1278
|
-
referencedRelation:
|
|
1279
|
-
referencedColumns: [
|
|
1680
|
+
referencedRelation: "view_org";
|
|
1681
|
+
referencedColumns: ["org_id"];
|
|
1280
1682
|
},
|
|
1281
1683
|
{
|
|
1282
|
-
foreignKeyName:
|
|
1283
|
-
columns: [
|
|
1684
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1685
|
+
columns: ["org_id"];
|
|
1284
1686
|
isOneToOne: false;
|
|
1285
|
-
referencedRelation:
|
|
1286
|
-
referencedColumns: [
|
|
1687
|
+
referencedRelation: "tbl_org";
|
|
1688
|
+
referencedColumns: ["org_id"];
|
|
1287
1689
|
},
|
|
1288
1690
|
{
|
|
1289
|
-
foreignKeyName:
|
|
1290
|
-
columns: [
|
|
1691
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1692
|
+
columns: ["org_id"];
|
|
1291
1693
|
isOneToOne: false;
|
|
1292
|
-
referencedRelation:
|
|
1293
|
-
referencedColumns: [
|
|
1694
|
+
referencedRelation: "view_org";
|
|
1695
|
+
referencedColumns: ["org_id"];
|
|
1294
1696
|
}
|
|
1295
1697
|
];
|
|
1296
1698
|
};
|
|
@@ -1318,18 +1720,18 @@ export type Database = {
|
|
|
1318
1720
|
};
|
|
1319
1721
|
Relationships: [
|
|
1320
1722
|
{
|
|
1321
|
-
foreignKeyName:
|
|
1322
|
-
columns: [
|
|
1723
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1724
|
+
columns: ["org_id"];
|
|
1323
1725
|
isOneToOne: false;
|
|
1324
|
-
referencedRelation:
|
|
1325
|
-
referencedColumns: [
|
|
1726
|
+
referencedRelation: "tbl_org";
|
|
1727
|
+
referencedColumns: ["org_id"];
|
|
1326
1728
|
},
|
|
1327
1729
|
{
|
|
1328
|
-
foreignKeyName:
|
|
1329
|
-
columns: [
|
|
1730
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1731
|
+
columns: ["org_id"];
|
|
1330
1732
|
isOneToOne: false;
|
|
1331
|
-
referencedRelation:
|
|
1332
|
-
referencedColumns: [
|
|
1733
|
+
referencedRelation: "view_org";
|
|
1734
|
+
referencedColumns: ["org_id"];
|
|
1333
1735
|
}
|
|
1334
1736
|
];
|
|
1335
1737
|
};
|
|
@@ -1362,7 +1764,7 @@ export type Database = {
|
|
|
1362
1764
|
view_broadcast_logs: {
|
|
1363
1765
|
Row: {
|
|
1364
1766
|
broadcast_id: string | null;
|
|
1365
|
-
broadcast_status: Database[
|
|
1767
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
1366
1768
|
created_at: string | null;
|
|
1367
1769
|
delivery_percentage: number | null;
|
|
1368
1770
|
failed_chats: number | null;
|
|
@@ -1381,18 +1783,49 @@ export type Database = {
|
|
|
1381
1783
|
};
|
|
1382
1784
|
Relationships: [
|
|
1383
1785
|
{
|
|
1384
|
-
foreignKeyName:
|
|
1385
|
-
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"];
|
|
1386
1819
|
isOneToOne: false;
|
|
1387
|
-
referencedRelation:
|
|
1388
|
-
referencedColumns: [
|
|
1820
|
+
referencedRelation: "tbl_org";
|
|
1821
|
+
referencedColumns: ["org_id"];
|
|
1389
1822
|
},
|
|
1390
1823
|
{
|
|
1391
|
-
foreignKeyName:
|
|
1392
|
-
columns: [
|
|
1824
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1825
|
+
columns: ["org_id"];
|
|
1393
1826
|
isOneToOne: false;
|
|
1394
|
-
referencedRelation:
|
|
1395
|
-
referencedColumns: [
|
|
1827
|
+
referencedRelation: "view_org";
|
|
1828
|
+
referencedColumns: ["org_id"];
|
|
1396
1829
|
}
|
|
1397
1830
|
];
|
|
1398
1831
|
};
|
|
@@ -1409,6 +1842,7 @@ export type Database = {
|
|
|
1409
1842
|
flag_count: number | null;
|
|
1410
1843
|
group_description: string | null;
|
|
1411
1844
|
hubspot_metadata: Json | null;
|
|
1845
|
+
info_admins_only: boolean | null;
|
|
1412
1846
|
invite_link: string | null;
|
|
1413
1847
|
is_archived: boolean | null;
|
|
1414
1848
|
is_muted: boolean | null;
|
|
@@ -1417,6 +1851,7 @@ export type Database = {
|
|
|
1417
1851
|
latest_message: Json | null;
|
|
1418
1852
|
member_count: number | null;
|
|
1419
1853
|
message_unread_count: number | null;
|
|
1854
|
+
messages_admins_only: boolean | null;
|
|
1420
1855
|
org_id: string | null;
|
|
1421
1856
|
org_phone: string | null;
|
|
1422
1857
|
updated_at: string | null;
|
|
@@ -1517,7 +1952,7 @@ export type Database = {
|
|
|
1517
1952
|
generate_access_token: {
|
|
1518
1953
|
Args: {
|
|
1519
1954
|
name_input?: string;
|
|
1520
|
-
type_input?: Database[
|
|
1955
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1521
1956
|
org_id_input?: string;
|
|
1522
1957
|
};
|
|
1523
1958
|
Returns: Json;
|
|
@@ -1527,7 +1962,7 @@ export type Database = {
|
|
|
1527
1962
|
org_id_input?: string;
|
|
1528
1963
|
org_phone_input?: string;
|
|
1529
1964
|
token_id_input?: string;
|
|
1530
|
-
token_type_input?: Database[
|
|
1965
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1531
1966
|
};
|
|
1532
1967
|
Returns: Json;
|
|
1533
1968
|
};
|
|
@@ -1564,15 +1999,16 @@ export type Database = {
|
|
|
1564
1999
|
Args: {
|
|
1565
2000
|
org_id_input: string;
|
|
1566
2001
|
contact_ids_input?: string[];
|
|
1567
|
-
with_chats?: boolean;
|
|
1568
2002
|
with_name?: boolean;
|
|
2003
|
+
sync_phone_contacts?: boolean;
|
|
1569
2004
|
};
|
|
1570
2005
|
Returns: Json;
|
|
1571
2006
|
};
|
|
1572
|
-
|
|
2007
|
+
get_dashboard_statistics_between_dates: {
|
|
1573
2008
|
Args: {
|
|
1574
2009
|
org_id_input: string;
|
|
1575
|
-
|
|
2010
|
+
start_date: string;
|
|
2011
|
+
end_date: string;
|
|
1576
2012
|
chat_id_input?: string[];
|
|
1577
2013
|
};
|
|
1578
2014
|
Returns: Json;
|
|
@@ -1613,11 +2049,12 @@ export type Database = {
|
|
|
1613
2049
|
};
|
|
1614
2050
|
Returns: Json;
|
|
1615
2051
|
};
|
|
1616
|
-
|
|
2052
|
+
get_team_metrics_between_dates: {
|
|
1617
2053
|
Args: {
|
|
1618
2054
|
org_id_input: string;
|
|
2055
|
+
start_date: string;
|
|
2056
|
+
end_date: string;
|
|
1619
2057
|
chat_id_input?: string[];
|
|
1620
|
-
interval_input?: unknown;
|
|
1621
2058
|
};
|
|
1622
2059
|
Returns: Json;
|
|
1623
2060
|
};
|
|
@@ -1644,26 +2081,25 @@ export type Database = {
|
|
|
1644
2081
|
};
|
|
1645
2082
|
list_role_from_user: {
|
|
1646
2083
|
Args: Record<PropertyKey, never>;
|
|
1647
|
-
Returns: Database[
|
|
2084
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
1648
2085
|
};
|
|
1649
2086
|
update_labels: {
|
|
1650
2087
|
Args: {
|
|
1651
2088
|
org_id_input: string;
|
|
1652
2089
|
tbl_type: string;
|
|
1653
|
-
|
|
1654
|
-
row_id_input: string[];
|
|
2090
|
+
row_label_map: Json;
|
|
1655
2091
|
replace_labels?: boolean;
|
|
1656
2092
|
};
|
|
1657
2093
|
Returns: undefined;
|
|
1658
2094
|
};
|
|
1659
2095
|
};
|
|
1660
2096
|
Enums: {
|
|
1661
|
-
enum_broadcast_status:
|
|
1662
|
-
enum_chat_colors:
|
|
1663
|
-
enum_chat_tickets_status:
|
|
1664
|
-
enum_integration_name:
|
|
1665
|
-
enum_integration_type:
|
|
1666
|
-
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";
|
|
1667
2103
|
};
|
|
1668
2104
|
CompositeTypes: {
|
|
1669
2105
|
[_ in never]: never;
|
|
@@ -1773,11 +2209,11 @@ export type Database = {
|
|
|
1773
2209
|
};
|
|
1774
2210
|
Relationships: [
|
|
1775
2211
|
{
|
|
1776
|
-
foreignKeyName:
|
|
1777
|
-
columns: [
|
|
2212
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
2213
|
+
columns: ["bucket_id"];
|
|
1778
2214
|
isOneToOne: false;
|
|
1779
|
-
referencedRelation:
|
|
1780
|
-
referencedColumns: [
|
|
2215
|
+
referencedRelation: "buckets";
|
|
2216
|
+
referencedColumns: ["id"];
|
|
1781
2217
|
}
|
|
1782
2218
|
];
|
|
1783
2219
|
};
|
|
@@ -1814,11 +2250,11 @@ export type Database = {
|
|
|
1814
2250
|
};
|
|
1815
2251
|
Relationships: [
|
|
1816
2252
|
{
|
|
1817
|
-
foreignKeyName:
|
|
1818
|
-
columns: [
|
|
2253
|
+
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
|
|
2254
|
+
columns: ["bucket_id"];
|
|
1819
2255
|
isOneToOne: false;
|
|
1820
|
-
referencedRelation:
|
|
1821
|
-
referencedColumns: [
|
|
2256
|
+
referencedRelation: "buckets";
|
|
2257
|
+
referencedColumns: ["id"];
|
|
1822
2258
|
}
|
|
1823
2259
|
];
|
|
1824
2260
|
};
|
|
@@ -1861,18 +2297,18 @@ export type Database = {
|
|
|
1861
2297
|
};
|
|
1862
2298
|
Relationships: [
|
|
1863
2299
|
{
|
|
1864
|
-
foreignKeyName:
|
|
1865
|
-
columns: [
|
|
2300
|
+
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
|
|
2301
|
+
columns: ["bucket_id"];
|
|
1866
2302
|
isOneToOne: false;
|
|
1867
|
-
referencedRelation:
|
|
1868
|
-
referencedColumns: [
|
|
2303
|
+
referencedRelation: "buckets";
|
|
2304
|
+
referencedColumns: ["id"];
|
|
1869
2305
|
},
|
|
1870
2306
|
{
|
|
1871
|
-
foreignKeyName:
|
|
1872
|
-
columns: [
|
|
2307
|
+
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
|
|
2308
|
+
columns: ["upload_id"];
|
|
1873
2309
|
isOneToOne: false;
|
|
1874
|
-
referencedRelation:
|
|
1875
|
-
referencedColumns: [
|
|
2310
|
+
referencedRelation: "s3_multipart_uploads";
|
|
2311
|
+
referencedColumns: ["id"];
|
|
1876
2312
|
}
|
|
1877
2313
|
];
|
|
1878
2314
|
};
|
|
@@ -1975,45 +2411,45 @@ export type Database = {
|
|
|
1975
2411
|
};
|
|
1976
2412
|
};
|
|
1977
2413
|
};
|
|
1978
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
1979
|
-
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"]) | {
|
|
1980
2416
|
schema: keyof Database;
|
|
1981
2417
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1982
2418
|
schema: keyof Database;
|
|
1983
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2419
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
1984
2420
|
schema: keyof Database;
|
|
1985
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2421
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
1986
2422
|
Row: infer R;
|
|
1987
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2423
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
1988
2424
|
Row: infer R;
|
|
1989
2425
|
} ? R : never : never;
|
|
1990
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2426
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
1991
2427
|
schema: keyof Database;
|
|
1992
2428
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1993
2429
|
schema: keyof Database;
|
|
1994
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2430
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
1995
2431
|
schema: keyof Database;
|
|
1996
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2432
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
1997
2433
|
Insert: infer I;
|
|
1998
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2434
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
1999
2435
|
Insert: infer I;
|
|
2000
2436
|
} ? I : never : never;
|
|
2001
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2437
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2002
2438
|
schema: keyof Database;
|
|
2003
2439
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2004
2440
|
schema: keyof Database;
|
|
2005
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2441
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2006
2442
|
schema: keyof Database;
|
|
2007
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2443
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2008
2444
|
Update: infer U;
|
|
2009
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2445
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2010
2446
|
Update: infer U;
|
|
2011
2447
|
} ? U : never : never;
|
|
2012
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2448
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
2013
2449
|
schema: keyof Database;
|
|
2014
2450
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2015
2451
|
schema: keyof Database;
|
|
2016
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2452
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
2017
2453
|
schema: keyof Database;
|
|
2018
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2454
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
2019
2455
|
export {};
|