@periskope/types 0.6.96 → 0.6.98
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 +247 -397
- package/dist/types.d.ts +5 -0
- package/package.json +1 -1
- package/supabase.types.ts +2015 -2161
- package/types.ts +6 -0
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,11 @@ 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
276
|
}
|
|
277
277
|
];
|
|
278
278
|
};
|
|
@@ -318,18 +318,18 @@ export type Database = {
|
|
|
318
318
|
};
|
|
319
319
|
Relationships: [
|
|
320
320
|
{
|
|
321
|
-
foreignKeyName:
|
|
322
|
-
columns: [
|
|
321
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
322
|
+
columns: ['org_id'];
|
|
323
323
|
isOneToOne: false;
|
|
324
|
-
referencedRelation:
|
|
325
|
-
referencedColumns: [
|
|
324
|
+
referencedRelation: 'tbl_org';
|
|
325
|
+
referencedColumns: ['org_id'];
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
|
-
foreignKeyName:
|
|
329
|
-
columns: [
|
|
328
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
329
|
+
columns: ['org_id'];
|
|
330
330
|
isOneToOne: false;
|
|
331
|
-
referencedRelation:
|
|
332
|
-
referencedColumns: [
|
|
331
|
+
referencedRelation: 'view_org';
|
|
332
|
+
referencedColumns: ['org_id'];
|
|
333
333
|
}
|
|
334
334
|
];
|
|
335
335
|
};
|
|
@@ -486,167 +486,14 @@ export type Database = {
|
|
|
486
486
|
};
|
|
487
487
|
Relationships: [
|
|
488
488
|
{
|
|
489
|
-
foreignKeyName:
|
|
490
|
-
columns: [
|
|
489
|
+
foreignKeyName: 'tbl_chat_messages_parent_fkey_tbl_org_phones';
|
|
490
|
+
columns: ['org_phone', 'org_id'];
|
|
491
491
|
isOneToOne: false;
|
|
492
|
-
referencedRelation:
|
|
493
|
-
referencedColumns: [
|
|
492
|
+
referencedRelation: 'tbl_org_phones';
|
|
493
|
+
referencedColumns: ['org_phone', 'org_id'];
|
|
494
494
|
}
|
|
495
495
|
];
|
|
496
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
497
|
tbl_chat_messages_default: {
|
|
651
498
|
Row: {
|
|
652
499
|
ack: string | null;
|
|
@@ -842,11 +689,11 @@ export type Database = {
|
|
|
842
689
|
};
|
|
843
690
|
Relationships: [
|
|
844
691
|
{
|
|
845
|
-
foreignKeyName:
|
|
846
|
-
columns: [
|
|
692
|
+
foreignKeyName: 'tbl_chat_notifications_fkey_tbl_org_phones';
|
|
693
|
+
columns: ['org_id', 'org_phone'];
|
|
847
694
|
isOneToOne: false;
|
|
848
|
-
referencedRelation:
|
|
849
|
-
referencedColumns: [
|
|
695
|
+
referencedRelation: 'tbl_org_phones';
|
|
696
|
+
referencedColumns: ['org_id', 'org_phone'];
|
|
850
697
|
}
|
|
851
698
|
];
|
|
852
699
|
};
|
|
@@ -880,11 +727,11 @@ export type Database = {
|
|
|
880
727
|
};
|
|
881
728
|
Relationships: [
|
|
882
729
|
{
|
|
883
|
-
foreignKeyName:
|
|
884
|
-
columns: [
|
|
730
|
+
foreignKeyName: 'tbl_chat_participants_fkey_tbl_chats';
|
|
731
|
+
columns: ['org_id', 'org_phone', 'chat_id'];
|
|
885
732
|
isOneToOne: false;
|
|
886
|
-
referencedRelation:
|
|
887
|
-
referencedColumns: [
|
|
733
|
+
referencedRelation: 'tbl_chats';
|
|
734
|
+
referencedColumns: ['org_id', 'org_phone', 'chat_id'];
|
|
888
735
|
}
|
|
889
736
|
];
|
|
890
737
|
};
|
|
@@ -969,11 +816,11 @@ export type Database = {
|
|
|
969
816
|
};
|
|
970
817
|
Relationships: [
|
|
971
818
|
{
|
|
972
|
-
foreignKeyName:
|
|
973
|
-
columns: [
|
|
819
|
+
foreignKeyName: 'tbl_chat_reactions_fkey_tbl_org_phones';
|
|
820
|
+
columns: ['org_id', 'org_phone'];
|
|
974
821
|
isOneToOne: false;
|
|
975
|
-
referencedRelation:
|
|
976
|
-
referencedColumns: [
|
|
822
|
+
referencedRelation: 'tbl_org_phones';
|
|
823
|
+
referencedColumns: ['org_id', 'org_phone'];
|
|
977
824
|
}
|
|
978
825
|
];
|
|
979
826
|
};
|
|
@@ -995,7 +842,7 @@ export type Database = {
|
|
|
995
842
|
quoted_message_id: string | null;
|
|
996
843
|
raised_by: string | null;
|
|
997
844
|
response_time: number | null;
|
|
998
|
-
status: Database[
|
|
845
|
+
status: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
999
846
|
subject: string;
|
|
1000
847
|
ticket_id: string;
|
|
1001
848
|
ticket_metadata: Json | null;
|
|
@@ -1017,7 +864,7 @@ export type Database = {
|
|
|
1017
864
|
quoted_message_id?: string | null;
|
|
1018
865
|
raised_by?: string | null;
|
|
1019
866
|
response_time?: number | null;
|
|
1020
|
-
status?: Database[
|
|
867
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
1021
868
|
subject: string;
|
|
1022
869
|
ticket_id?: string;
|
|
1023
870
|
ticket_metadata?: Json | null;
|
|
@@ -1039,25 +886,25 @@ export type Database = {
|
|
|
1039
886
|
quoted_message_id?: string | null;
|
|
1040
887
|
raised_by?: string | null;
|
|
1041
888
|
response_time?: number | null;
|
|
1042
|
-
status?: Database[
|
|
889
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
1043
890
|
subject?: string;
|
|
1044
891
|
ticket_id?: string;
|
|
1045
892
|
ticket_metadata?: Json | null;
|
|
1046
893
|
};
|
|
1047
894
|
Relationships: [
|
|
1048
895
|
{
|
|
1049
|
-
foreignKeyName:
|
|
1050
|
-
columns: [
|
|
896
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
897
|
+
columns: ['org_id'];
|
|
1051
898
|
isOneToOne: false;
|
|
1052
|
-
referencedRelation:
|
|
1053
|
-
referencedColumns: [
|
|
899
|
+
referencedRelation: 'tbl_org';
|
|
900
|
+
referencedColumns: ['org_id'];
|
|
1054
901
|
},
|
|
1055
902
|
{
|
|
1056
|
-
foreignKeyName:
|
|
1057
|
-
columns: [
|
|
903
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
904
|
+
columns: ['org_id'];
|
|
1058
905
|
isOneToOne: false;
|
|
1059
|
-
referencedRelation:
|
|
1060
|
-
referencedColumns: [
|
|
906
|
+
referencedRelation: 'view_org';
|
|
907
|
+
referencedColumns: ['org_id'];
|
|
1061
908
|
}
|
|
1062
909
|
];
|
|
1063
910
|
};
|
|
@@ -1136,18 +983,18 @@ export type Database = {
|
|
|
1136
983
|
};
|
|
1137
984
|
Relationships: [
|
|
1138
985
|
{
|
|
1139
|
-
foreignKeyName:
|
|
1140
|
-
columns: [
|
|
986
|
+
foreignKeyName: 'tbl_chats_fkey_tbl_org_phones';
|
|
987
|
+
columns: ['org_phone', 'org_id'];
|
|
1141
988
|
isOneToOne: false;
|
|
1142
|
-
referencedRelation:
|
|
1143
|
-
referencedColumns: [
|
|
989
|
+
referencedRelation: 'tbl_org_phones';
|
|
990
|
+
referencedColumns: ['org_phone', 'org_id'];
|
|
1144
991
|
}
|
|
1145
992
|
];
|
|
1146
993
|
};
|
|
1147
994
|
tbl_contacts: {
|
|
1148
995
|
Row: {
|
|
1149
996
|
business_profile: Json | null;
|
|
1150
|
-
contact_color: Database[
|
|
997
|
+
contact_color: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
1151
998
|
contact_id: string;
|
|
1152
999
|
contact_image: string | null;
|
|
1153
1000
|
contact_name: string | null;
|
|
@@ -1174,7 +1021,7 @@ export type Database = {
|
|
|
1174
1021
|
};
|
|
1175
1022
|
Insert: {
|
|
1176
1023
|
business_profile?: Json | null;
|
|
1177
|
-
contact_color?: Database[
|
|
1024
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
1178
1025
|
contact_id: string;
|
|
1179
1026
|
contact_image?: string | null;
|
|
1180
1027
|
contact_name?: string | null;
|
|
@@ -1201,7 +1048,7 @@ export type Database = {
|
|
|
1201
1048
|
};
|
|
1202
1049
|
Update: {
|
|
1203
1050
|
business_profile?: Json | null;
|
|
1204
|
-
contact_color?: Database[
|
|
1051
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
1205
1052
|
contact_id?: string;
|
|
1206
1053
|
contact_image?: string | null;
|
|
1207
1054
|
contact_name?: string | null;
|
|
@@ -1228,18 +1075,18 @@ export type Database = {
|
|
|
1228
1075
|
};
|
|
1229
1076
|
Relationships: [
|
|
1230
1077
|
{
|
|
1231
|
-
foreignKeyName:
|
|
1232
|
-
columns: [
|
|
1078
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
1079
|
+
columns: ['org_id'];
|
|
1233
1080
|
isOneToOne: false;
|
|
1234
|
-
referencedRelation:
|
|
1235
|
-
referencedColumns: [
|
|
1081
|
+
referencedRelation: 'tbl_org';
|
|
1082
|
+
referencedColumns: ['org_id'];
|
|
1236
1083
|
},
|
|
1237
1084
|
{
|
|
1238
|
-
foreignKeyName:
|
|
1239
|
-
columns: [
|
|
1085
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
1086
|
+
columns: ['org_id'];
|
|
1240
1087
|
isOneToOne: false;
|
|
1241
|
-
referencedRelation:
|
|
1242
|
-
referencedColumns: [
|
|
1088
|
+
referencedRelation: 'view_org';
|
|
1089
|
+
referencedColumns: ['org_id'];
|
|
1243
1090
|
}
|
|
1244
1091
|
];
|
|
1245
1092
|
};
|
|
@@ -1276,18 +1123,18 @@ export type Database = {
|
|
|
1276
1123
|
};
|
|
1277
1124
|
Relationships: [
|
|
1278
1125
|
{
|
|
1279
|
-
foreignKeyName:
|
|
1280
|
-
columns: [
|
|
1126
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
1127
|
+
columns: ['org_id'];
|
|
1281
1128
|
isOneToOne: false;
|
|
1282
|
-
referencedRelation:
|
|
1283
|
-
referencedColumns: [
|
|
1129
|
+
referencedRelation: 'tbl_org';
|
|
1130
|
+
referencedColumns: ['org_id'];
|
|
1284
1131
|
},
|
|
1285
1132
|
{
|
|
1286
|
-
foreignKeyName:
|
|
1287
|
-
columns: [
|
|
1133
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
1134
|
+
columns: ['org_id'];
|
|
1288
1135
|
isOneToOne: false;
|
|
1289
|
-
referencedRelation:
|
|
1290
|
-
referencedColumns: [
|
|
1136
|
+
referencedRelation: 'view_org';
|
|
1137
|
+
referencedColumns: ['org_id'];
|
|
1291
1138
|
}
|
|
1292
1139
|
];
|
|
1293
1140
|
};
|
|
@@ -1297,51 +1144,51 @@ export type Database = {
|
|
|
1297
1144
|
id: string;
|
|
1298
1145
|
integration_id: string | null;
|
|
1299
1146
|
integration_metadata: Json;
|
|
1300
|
-
integration_name: Database[
|
|
1147
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1301
1148
|
integration_type: string;
|
|
1302
1149
|
is_subscribed: boolean;
|
|
1303
1150
|
org_id: string;
|
|
1304
1151
|
subscribed_at: string;
|
|
1305
|
-
type: Database[
|
|
1152
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1306
1153
|
};
|
|
1307
1154
|
Insert: {
|
|
1308
1155
|
hook_url: string;
|
|
1309
1156
|
id?: string;
|
|
1310
1157
|
integration_id?: string | null;
|
|
1311
1158
|
integration_metadata: Json;
|
|
1312
|
-
integration_name: Database[
|
|
1159
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1313
1160
|
integration_type: string;
|
|
1314
1161
|
is_subscribed: boolean;
|
|
1315
1162
|
org_id: string;
|
|
1316
1163
|
subscribed_at?: string;
|
|
1317
|
-
type: Database[
|
|
1164
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1318
1165
|
};
|
|
1319
1166
|
Update: {
|
|
1320
1167
|
hook_url?: string;
|
|
1321
1168
|
id?: string;
|
|
1322
1169
|
integration_id?: string | null;
|
|
1323
1170
|
integration_metadata?: Json;
|
|
1324
|
-
integration_name?: Database[
|
|
1171
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
1325
1172
|
integration_type?: string;
|
|
1326
1173
|
is_subscribed?: boolean;
|
|
1327
1174
|
org_id?: string;
|
|
1328
1175
|
subscribed_at?: string;
|
|
1329
|
-
type?: Database[
|
|
1176
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1330
1177
|
};
|
|
1331
1178
|
Relationships: [
|
|
1332
1179
|
{
|
|
1333
|
-
foreignKeyName:
|
|
1334
|
-
columns: [
|
|
1180
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
1181
|
+
columns: ['org_id'];
|
|
1335
1182
|
isOneToOne: false;
|
|
1336
|
-
referencedRelation:
|
|
1337
|
-
referencedColumns: [
|
|
1183
|
+
referencedRelation: 'tbl_org';
|
|
1184
|
+
referencedColumns: ['org_id'];
|
|
1338
1185
|
},
|
|
1339
1186
|
{
|
|
1340
|
-
foreignKeyName:
|
|
1341
|
-
columns: [
|
|
1187
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
1188
|
+
columns: ['org_id'];
|
|
1342
1189
|
isOneToOne: false;
|
|
1343
|
-
referencedRelation:
|
|
1344
|
-
referencedColumns: [
|
|
1190
|
+
referencedRelation: 'view_org';
|
|
1191
|
+
referencedColumns: ['org_id'];
|
|
1345
1192
|
}
|
|
1346
1193
|
];
|
|
1347
1194
|
};
|
|
@@ -1349,50 +1196,50 @@ export type Database = {
|
|
|
1349
1196
|
Row: {
|
|
1350
1197
|
created_at: string;
|
|
1351
1198
|
id: string;
|
|
1352
|
-
integration_name: Database[
|
|
1199
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1353
1200
|
integration_type: string;
|
|
1354
1201
|
metadata: Json;
|
|
1355
1202
|
org_id: string;
|
|
1356
1203
|
response: Json | null;
|
|
1357
1204
|
success: boolean;
|
|
1358
|
-
type: Database[
|
|
1205
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1359
1206
|
};
|
|
1360
1207
|
Insert: {
|
|
1361
1208
|
created_at?: string;
|
|
1362
1209
|
id?: string;
|
|
1363
|
-
integration_name: Database[
|
|
1210
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1364
1211
|
integration_type: string;
|
|
1365
1212
|
metadata?: Json;
|
|
1366
1213
|
org_id: string;
|
|
1367
1214
|
response?: Json | null;
|
|
1368
1215
|
success?: boolean;
|
|
1369
|
-
type: Database[
|
|
1216
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1370
1217
|
};
|
|
1371
1218
|
Update: {
|
|
1372
1219
|
created_at?: string;
|
|
1373
1220
|
id?: string;
|
|
1374
|
-
integration_name?: Database[
|
|
1221
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
1375
1222
|
integration_type?: string;
|
|
1376
1223
|
metadata?: Json;
|
|
1377
1224
|
org_id?: string;
|
|
1378
1225
|
response?: Json | null;
|
|
1379
1226
|
success?: boolean;
|
|
1380
|
-
type?: Database[
|
|
1227
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1381
1228
|
};
|
|
1382
1229
|
Relationships: [
|
|
1383
1230
|
{
|
|
1384
|
-
foreignKeyName:
|
|
1385
|
-
columns: [
|
|
1231
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
1232
|
+
columns: ['org_id'];
|
|
1386
1233
|
isOneToOne: false;
|
|
1387
|
-
referencedRelation:
|
|
1388
|
-
referencedColumns: [
|
|
1234
|
+
referencedRelation: 'tbl_org';
|
|
1235
|
+
referencedColumns: ['org_id'];
|
|
1389
1236
|
},
|
|
1390
1237
|
{
|
|
1391
|
-
foreignKeyName:
|
|
1392
|
-
columns: [
|
|
1238
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
1239
|
+
columns: ['org_id'];
|
|
1393
1240
|
isOneToOne: false;
|
|
1394
|
-
referencedRelation:
|
|
1395
|
-
referencedColumns: [
|
|
1241
|
+
referencedRelation: 'view_org';
|
|
1242
|
+
referencedColumns: ['org_id'];
|
|
1396
1243
|
}
|
|
1397
1244
|
];
|
|
1398
1245
|
};
|
|
@@ -1407,7 +1254,7 @@ export type Database = {
|
|
|
1407
1254
|
role: string;
|
|
1408
1255
|
token: string;
|
|
1409
1256
|
token_metadata: Json | null;
|
|
1410
|
-
type: Database[
|
|
1257
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1411
1258
|
};
|
|
1412
1259
|
Insert: {
|
|
1413
1260
|
exp: string;
|
|
@@ -1419,7 +1266,7 @@ export type Database = {
|
|
|
1419
1266
|
role: string;
|
|
1420
1267
|
token: string;
|
|
1421
1268
|
token_metadata?: Json | null;
|
|
1422
|
-
type: Database[
|
|
1269
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1423
1270
|
};
|
|
1424
1271
|
Update: {
|
|
1425
1272
|
exp?: string;
|
|
@@ -1431,22 +1278,22 @@ export type Database = {
|
|
|
1431
1278
|
role?: string;
|
|
1432
1279
|
token?: string;
|
|
1433
1280
|
token_metadata?: Json | null;
|
|
1434
|
-
type?: Database[
|
|
1281
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1435
1282
|
};
|
|
1436
1283
|
Relationships: [
|
|
1437
1284
|
{
|
|
1438
|
-
foreignKeyName:
|
|
1439
|
-
columns: [
|
|
1285
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1286
|
+
columns: ['org_id'];
|
|
1440
1287
|
isOneToOne: false;
|
|
1441
|
-
referencedRelation:
|
|
1442
|
-
referencedColumns: [
|
|
1288
|
+
referencedRelation: 'tbl_org';
|
|
1289
|
+
referencedColumns: ['org_id'];
|
|
1443
1290
|
},
|
|
1444
1291
|
{
|
|
1445
|
-
foreignKeyName:
|
|
1446
|
-
columns: [
|
|
1292
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1293
|
+
columns: ['org_id'];
|
|
1447
1294
|
isOneToOne: false;
|
|
1448
|
-
referencedRelation:
|
|
1449
|
-
referencedColumns: [
|
|
1295
|
+
referencedRelation: 'view_org';
|
|
1296
|
+
referencedColumns: ['org_id'];
|
|
1450
1297
|
}
|
|
1451
1298
|
];
|
|
1452
1299
|
};
|
|
@@ -1516,18 +1363,18 @@ export type Database = {
|
|
|
1516
1363
|
};
|
|
1517
1364
|
Relationships: [
|
|
1518
1365
|
{
|
|
1519
|
-
foreignKeyName:
|
|
1520
|
-
columns: [
|
|
1366
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1367
|
+
columns: ['org_id'];
|
|
1521
1368
|
isOneToOne: false;
|
|
1522
|
-
referencedRelation:
|
|
1523
|
-
referencedColumns: [
|
|
1369
|
+
referencedRelation: 'tbl_org';
|
|
1370
|
+
referencedColumns: ['org_id'];
|
|
1524
1371
|
},
|
|
1525
1372
|
{
|
|
1526
|
-
foreignKeyName:
|
|
1527
|
-
columns: [
|
|
1373
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1374
|
+
columns: ['org_id'];
|
|
1528
1375
|
isOneToOne: false;
|
|
1529
|
-
referencedRelation:
|
|
1530
|
-
referencedColumns: [
|
|
1376
|
+
referencedRelation: 'view_org';
|
|
1377
|
+
referencedColumns: ['org_id'];
|
|
1531
1378
|
}
|
|
1532
1379
|
];
|
|
1533
1380
|
};
|
|
@@ -1540,13 +1387,13 @@ export type Database = {
|
|
|
1540
1387
|
is_active: boolean;
|
|
1541
1388
|
is_owner: boolean | null;
|
|
1542
1389
|
label_ids: string[] | null;
|
|
1543
|
-
member_color: Database[
|
|
1390
|
+
member_color: Database['public']['Enums']['enum_chat_colors'];
|
|
1544
1391
|
member_image: string | null;
|
|
1545
1392
|
member_name: string | null;
|
|
1546
1393
|
org_id: string;
|
|
1547
1394
|
org_phones: string[] | null;
|
|
1548
1395
|
preferences: Json;
|
|
1549
|
-
role: Database[
|
|
1396
|
+
role: Database['public']['Enums']['enum_member_role'];
|
|
1550
1397
|
user_id: string | null;
|
|
1551
1398
|
};
|
|
1552
1399
|
Insert: {
|
|
@@ -1557,13 +1404,13 @@ export type Database = {
|
|
|
1557
1404
|
is_active?: boolean;
|
|
1558
1405
|
is_owner?: boolean | null;
|
|
1559
1406
|
label_ids?: string[] | null;
|
|
1560
|
-
member_color?: Database[
|
|
1407
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1561
1408
|
member_image?: string | null;
|
|
1562
1409
|
member_name?: string | null;
|
|
1563
1410
|
org_id: string;
|
|
1564
1411
|
org_phones?: string[] | null;
|
|
1565
1412
|
preferences?: Json;
|
|
1566
|
-
role?: Database[
|
|
1413
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1567
1414
|
user_id?: string | null;
|
|
1568
1415
|
};
|
|
1569
1416
|
Update: {
|
|
@@ -1574,36 +1421,36 @@ export type Database = {
|
|
|
1574
1421
|
is_active?: boolean;
|
|
1575
1422
|
is_owner?: boolean | null;
|
|
1576
1423
|
label_ids?: string[] | null;
|
|
1577
|
-
member_color?: Database[
|
|
1424
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1578
1425
|
member_image?: string | null;
|
|
1579
1426
|
member_name?: string | null;
|
|
1580
1427
|
org_id?: string;
|
|
1581
1428
|
org_phones?: string[] | null;
|
|
1582
1429
|
preferences?: Json;
|
|
1583
|
-
role?: Database[
|
|
1430
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1584
1431
|
user_id?: string | null;
|
|
1585
1432
|
};
|
|
1586
1433
|
Relationships: [
|
|
1587
1434
|
{
|
|
1588
|
-
foreignKeyName:
|
|
1589
|
-
columns: [
|
|
1435
|
+
foreignKeyName: 'tbl_org_members_fkey_auth_users';
|
|
1436
|
+
columns: ['user_id'];
|
|
1590
1437
|
isOneToOne: false;
|
|
1591
|
-
referencedRelation:
|
|
1592
|
-
referencedColumns: [
|
|
1438
|
+
referencedRelation: 'users';
|
|
1439
|
+
referencedColumns: ['id'];
|
|
1593
1440
|
},
|
|
1594
1441
|
{
|
|
1595
|
-
foreignKeyName:
|
|
1596
|
-
columns: [
|
|
1442
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1443
|
+
columns: ['org_id'];
|
|
1597
1444
|
isOneToOne: false;
|
|
1598
|
-
referencedRelation:
|
|
1599
|
-
referencedColumns: [
|
|
1445
|
+
referencedRelation: 'tbl_org';
|
|
1446
|
+
referencedColumns: ['org_id'];
|
|
1600
1447
|
},
|
|
1601
1448
|
{
|
|
1602
|
-
foreignKeyName:
|
|
1603
|
-
columns: [
|
|
1449
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1450
|
+
columns: ['org_id'];
|
|
1604
1451
|
isOneToOne: false;
|
|
1605
|
-
referencedRelation:
|
|
1606
|
-
referencedColumns: [
|
|
1452
|
+
referencedRelation: 'view_org';
|
|
1453
|
+
referencedColumns: ['org_id'];
|
|
1607
1454
|
}
|
|
1608
1455
|
];
|
|
1609
1456
|
};
|
|
@@ -1667,32 +1514,32 @@ export type Database = {
|
|
|
1667
1514
|
};
|
|
1668
1515
|
Relationships: [
|
|
1669
1516
|
{
|
|
1670
|
-
foreignKeyName:
|
|
1671
|
-
columns: [
|
|
1517
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1518
|
+
columns: ['org_id'];
|
|
1672
1519
|
isOneToOne: false;
|
|
1673
|
-
referencedRelation:
|
|
1674
|
-
referencedColumns: [
|
|
1520
|
+
referencedRelation: 'tbl_org';
|
|
1521
|
+
referencedColumns: ['org_id'];
|
|
1675
1522
|
},
|
|
1676
1523
|
{
|
|
1677
|
-
foreignKeyName:
|
|
1678
|
-
columns: [
|
|
1524
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1525
|
+
columns: ['org_id'];
|
|
1679
1526
|
isOneToOne: false;
|
|
1680
|
-
referencedRelation:
|
|
1681
|
-
referencedColumns: [
|
|
1527
|
+
referencedRelation: 'view_org';
|
|
1528
|
+
referencedColumns: ['org_id'];
|
|
1682
1529
|
},
|
|
1683
1530
|
{
|
|
1684
|
-
foreignKeyName:
|
|
1685
|
-
columns: [
|
|
1531
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1532
|
+
columns: ['org_id'];
|
|
1686
1533
|
isOneToOne: false;
|
|
1687
|
-
referencedRelation:
|
|
1688
|
-
referencedColumns: [
|
|
1534
|
+
referencedRelation: 'tbl_org';
|
|
1535
|
+
referencedColumns: ['org_id'];
|
|
1689
1536
|
},
|
|
1690
1537
|
{
|
|
1691
|
-
foreignKeyName:
|
|
1692
|
-
columns: [
|
|
1538
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1539
|
+
columns: ['org_id'];
|
|
1693
1540
|
isOneToOne: false;
|
|
1694
|
-
referencedRelation:
|
|
1695
|
-
referencedColumns: [
|
|
1541
|
+
referencedRelation: 'view_org';
|
|
1542
|
+
referencedColumns: ['org_id'];
|
|
1696
1543
|
}
|
|
1697
1544
|
];
|
|
1698
1545
|
};
|
|
@@ -1720,18 +1567,18 @@ export type Database = {
|
|
|
1720
1567
|
};
|
|
1721
1568
|
Relationships: [
|
|
1722
1569
|
{
|
|
1723
|
-
foreignKeyName:
|
|
1724
|
-
columns: [
|
|
1570
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1571
|
+
columns: ['org_id'];
|
|
1725
1572
|
isOneToOne: false;
|
|
1726
|
-
referencedRelation:
|
|
1727
|
-
referencedColumns: [
|
|
1573
|
+
referencedRelation: 'tbl_org';
|
|
1574
|
+
referencedColumns: ['org_id'];
|
|
1728
1575
|
},
|
|
1729
1576
|
{
|
|
1730
|
-
foreignKeyName:
|
|
1731
|
-
columns: [
|
|
1577
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1578
|
+
columns: ['org_id'];
|
|
1732
1579
|
isOneToOne: false;
|
|
1733
|
-
referencedRelation:
|
|
1734
|
-
referencedColumns: [
|
|
1580
|
+
referencedRelation: 'view_org';
|
|
1581
|
+
referencedColumns: ['org_id'];
|
|
1735
1582
|
}
|
|
1736
1583
|
];
|
|
1737
1584
|
};
|
|
@@ -1764,7 +1611,7 @@ export type Database = {
|
|
|
1764
1611
|
view_broadcast_logs: {
|
|
1765
1612
|
Row: {
|
|
1766
1613
|
broadcast_id: string | null;
|
|
1767
|
-
broadcast_status: Database[
|
|
1614
|
+
broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
1768
1615
|
created_at: string | null;
|
|
1769
1616
|
delivery_percentage: number | null;
|
|
1770
1617
|
failed_chats: number | null;
|
|
@@ -1783,18 +1630,18 @@ export type Database = {
|
|
|
1783
1630
|
};
|
|
1784
1631
|
Relationships: [
|
|
1785
1632
|
{
|
|
1786
|
-
foreignKeyName:
|
|
1787
|
-
columns: [
|
|
1633
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1634
|
+
columns: ['org_id'];
|
|
1788
1635
|
isOneToOne: false;
|
|
1789
|
-
referencedRelation:
|
|
1790
|
-
referencedColumns: [
|
|
1636
|
+
referencedRelation: 'tbl_org';
|
|
1637
|
+
referencedColumns: ['org_id'];
|
|
1791
1638
|
},
|
|
1792
1639
|
{
|
|
1793
|
-
foreignKeyName:
|
|
1794
|
-
columns: [
|
|
1640
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1641
|
+
columns: ['org_id'];
|
|
1795
1642
|
isOneToOne: false;
|
|
1796
|
-
referencedRelation:
|
|
1797
|
-
referencedColumns: [
|
|
1643
|
+
referencedRelation: 'view_org';
|
|
1644
|
+
referencedColumns: ['org_id'];
|
|
1798
1645
|
}
|
|
1799
1646
|
];
|
|
1800
1647
|
};
|
|
@@ -1814,18 +1661,18 @@ export type Database = {
|
|
|
1814
1661
|
};
|
|
1815
1662
|
Relationships: [
|
|
1816
1663
|
{
|
|
1817
|
-
foreignKeyName:
|
|
1818
|
-
columns: [
|
|
1664
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
1665
|
+
columns: ['org_id'];
|
|
1819
1666
|
isOneToOne: false;
|
|
1820
|
-
referencedRelation:
|
|
1821
|
-
referencedColumns: [
|
|
1667
|
+
referencedRelation: 'tbl_org';
|
|
1668
|
+
referencedColumns: ['org_id'];
|
|
1822
1669
|
},
|
|
1823
1670
|
{
|
|
1824
|
-
foreignKeyName:
|
|
1825
|
-
columns: [
|
|
1671
|
+
foreignKeyName: 'tbl_chat_logs_org_id_fkey';
|
|
1672
|
+
columns: ['org_id'];
|
|
1826
1673
|
isOneToOne: false;
|
|
1827
|
-
referencedRelation:
|
|
1828
|
-
referencedColumns: [
|
|
1674
|
+
referencedRelation: 'view_org';
|
|
1675
|
+
referencedColumns: ['org_id'];
|
|
1829
1676
|
}
|
|
1830
1677
|
];
|
|
1831
1678
|
};
|
|
@@ -1860,6 +1707,7 @@ export type Database = {
|
|
|
1860
1707
|
};
|
|
1861
1708
|
view_org: {
|
|
1862
1709
|
Row: {
|
|
1710
|
+
access_scopes: Json | null;
|
|
1863
1711
|
created_at: string | null;
|
|
1864
1712
|
is_enterprise: boolean | null;
|
|
1865
1713
|
is_free_trial: boolean | null;
|
|
@@ -1880,6 +1728,7 @@ export type Database = {
|
|
|
1880
1728
|
user_limit: string | null;
|
|
1881
1729
|
};
|
|
1882
1730
|
Insert: {
|
|
1731
|
+
access_scopes?: never;
|
|
1883
1732
|
created_at?: string | null;
|
|
1884
1733
|
is_enterprise?: never;
|
|
1885
1734
|
is_free_trial?: never;
|
|
@@ -1900,6 +1749,7 @@ export type Database = {
|
|
|
1900
1749
|
user_limit?: never;
|
|
1901
1750
|
};
|
|
1902
1751
|
Update: {
|
|
1752
|
+
access_scopes?: never;
|
|
1903
1753
|
created_at?: string | null;
|
|
1904
1754
|
is_enterprise?: never;
|
|
1905
1755
|
is_free_trial?: never;
|
|
@@ -1952,7 +1802,7 @@ export type Database = {
|
|
|
1952
1802
|
generate_access_token: {
|
|
1953
1803
|
Args: {
|
|
1954
1804
|
name_input?: string;
|
|
1955
|
-
type_input?: Database[
|
|
1805
|
+
type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1956
1806
|
org_id_input?: string;
|
|
1957
1807
|
};
|
|
1958
1808
|
Returns: Json;
|
|
@@ -1962,7 +1812,7 @@ export type Database = {
|
|
|
1962
1812
|
org_id_input?: string;
|
|
1963
1813
|
org_phone_input?: string;
|
|
1964
1814
|
token_id_input?: string;
|
|
1965
|
-
token_type_input?: Database[
|
|
1815
|
+
token_type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1966
1816
|
};
|
|
1967
1817
|
Returns: Json;
|
|
1968
1818
|
};
|
|
@@ -2081,7 +1931,7 @@ export type Database = {
|
|
|
2081
1931
|
};
|
|
2082
1932
|
list_role_from_user: {
|
|
2083
1933
|
Args: Record<PropertyKey, never>;
|
|
2084
|
-
Returns: Database[
|
|
1934
|
+
Returns: Database['public']['Enums']['enum_member_role'];
|
|
2085
1935
|
};
|
|
2086
1936
|
update_labels: {
|
|
2087
1937
|
Args: {
|
|
@@ -2094,12 +1944,12 @@ export type Database = {
|
|
|
2094
1944
|
};
|
|
2095
1945
|
};
|
|
2096
1946
|
Enums: {
|
|
2097
|
-
enum_broadcast_status:
|
|
2098
|
-
enum_chat_colors:
|
|
2099
|
-
enum_chat_tickets_status:
|
|
2100
|
-
enum_integration_name:
|
|
2101
|
-
enum_integration_type:
|
|
2102
|
-
enum_member_role:
|
|
1947
|
+
enum_broadcast_status: 'inprogress' | 'completed' | 'stopped';
|
|
1948
|
+
enum_chat_colors: '#B4876E' | '#A5B337' | '#06CF9C' | '#25D366' | '#02A698' | '#7D9EF1' | '#007BFC' | '#5E47DE' | '#7F66FF' | '#9333EA' | '#FA6533' | '#C4532D' | '#DC2626' | '#FF2E74' | '#DB2777';
|
|
1949
|
+
enum_chat_tickets_status: 'open' | 'inprogress' | 'closed' | 'archived';
|
|
1950
|
+
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';
|
|
1951
|
+
enum_integration_type: 'zapier' | 'pabbly' | 'api' | 'webhook' | 'hubspot' | 'freshdesk' | 'slack' | 'jira' | 'salesforce';
|
|
1952
|
+
enum_member_role: 'admin' | 'member';
|
|
2103
1953
|
};
|
|
2104
1954
|
CompositeTypes: {
|
|
2105
1955
|
[_ in never]: never;
|
|
@@ -2209,11 +2059,11 @@ export type Database = {
|
|
|
2209
2059
|
};
|
|
2210
2060
|
Relationships: [
|
|
2211
2061
|
{
|
|
2212
|
-
foreignKeyName:
|
|
2213
|
-
columns: [
|
|
2062
|
+
foreignKeyName: 'objects_bucketId_fkey';
|
|
2063
|
+
columns: ['bucket_id'];
|
|
2214
2064
|
isOneToOne: false;
|
|
2215
|
-
referencedRelation:
|
|
2216
|
-
referencedColumns: [
|
|
2065
|
+
referencedRelation: 'buckets';
|
|
2066
|
+
referencedColumns: ['id'];
|
|
2217
2067
|
}
|
|
2218
2068
|
];
|
|
2219
2069
|
};
|
|
@@ -2250,11 +2100,11 @@ export type Database = {
|
|
|
2250
2100
|
};
|
|
2251
2101
|
Relationships: [
|
|
2252
2102
|
{
|
|
2253
|
-
foreignKeyName:
|
|
2254
|
-
columns: [
|
|
2103
|
+
foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
|
|
2104
|
+
columns: ['bucket_id'];
|
|
2255
2105
|
isOneToOne: false;
|
|
2256
|
-
referencedRelation:
|
|
2257
|
-
referencedColumns: [
|
|
2106
|
+
referencedRelation: 'buckets';
|
|
2107
|
+
referencedColumns: ['id'];
|
|
2258
2108
|
}
|
|
2259
2109
|
];
|
|
2260
2110
|
};
|
|
@@ -2297,18 +2147,18 @@ export type Database = {
|
|
|
2297
2147
|
};
|
|
2298
2148
|
Relationships: [
|
|
2299
2149
|
{
|
|
2300
|
-
foreignKeyName:
|
|
2301
|
-
columns: [
|
|
2150
|
+
foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
|
|
2151
|
+
columns: ['bucket_id'];
|
|
2302
2152
|
isOneToOne: false;
|
|
2303
|
-
referencedRelation:
|
|
2304
|
-
referencedColumns: [
|
|
2153
|
+
referencedRelation: 'buckets';
|
|
2154
|
+
referencedColumns: ['id'];
|
|
2305
2155
|
},
|
|
2306
2156
|
{
|
|
2307
|
-
foreignKeyName:
|
|
2308
|
-
columns: [
|
|
2157
|
+
foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
|
|
2158
|
+
columns: ['upload_id'];
|
|
2309
2159
|
isOneToOne: false;
|
|
2310
|
-
referencedRelation:
|
|
2311
|
-
referencedColumns: [
|
|
2160
|
+
referencedRelation: 's3_multipart_uploads';
|
|
2161
|
+
referencedColumns: ['id'];
|
|
2312
2162
|
}
|
|
2313
2163
|
];
|
|
2314
2164
|
};
|
|
@@ -2411,45 +2261,45 @@ export type Database = {
|
|
|
2411
2261
|
};
|
|
2412
2262
|
};
|
|
2413
2263
|
};
|
|
2414
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2415
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2264
|
+
type PublicSchema = Database[Extract<keyof Database, 'public'>];
|
|
2265
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) | {
|
|
2416
2266
|
schema: keyof Database;
|
|
2417
2267
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2418
2268
|
schema: keyof Database;
|
|
2419
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2269
|
+
} ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views']) : never = never> = PublicTableNameOrOptions extends {
|
|
2420
2270
|
schema: keyof Database;
|
|
2421
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2271
|
+
} ? (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
2422
2272
|
Row: infer R;
|
|
2423
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2273
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
|
|
2424
2274
|
Row: infer R;
|
|
2425
2275
|
} ? R : never : never;
|
|
2426
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2276
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
2427
2277
|
schema: keyof Database;
|
|
2428
2278
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2429
2279
|
schema: keyof Database;
|
|
2430
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2280
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
2431
2281
|
schema: keyof Database;
|
|
2432
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2282
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2433
2283
|
Insert: infer I;
|
|
2434
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2284
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
2435
2285
|
Insert: infer I;
|
|
2436
2286
|
} ? I : never : never;
|
|
2437
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2287
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
2438
2288
|
schema: keyof Database;
|
|
2439
2289
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2440
2290
|
schema: keyof Database;
|
|
2441
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2291
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
2442
2292
|
schema: keyof Database;
|
|
2443
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2293
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2444
2294
|
Update: infer U;
|
|
2445
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2295
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
2446
2296
|
Update: infer U;
|
|
2447
2297
|
} ? U : never : never;
|
|
2448
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2298
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | {
|
|
2449
2299
|
schema: keyof Database;
|
|
2450
2300
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2451
2301
|
schema: keyof Database;
|
|
2452
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2302
|
+
} ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums'] : never = never> = PublicEnumNameOrOptions extends {
|
|
2453
2303
|
schema: keyof Database;
|
|
2454
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2304
|
+
} ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] ? PublicSchema['Enums'][PublicEnumNameOrOptions] : never;
|
|
2455
2305
|
export {};
|