@periskope/types 0.6.109 → 0.6.111
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 +266 -250
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
- package/supabase.types.ts +1904 -1890
- package/types.ts +5 -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
|
};
|
|
@@ -492,11 +492,11 @@ export type Database = {
|
|
|
492
492
|
};
|
|
493
493
|
Relationships: [
|
|
494
494
|
{
|
|
495
|
-
foreignKeyName:
|
|
496
|
-
columns: [
|
|
495
|
+
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones";
|
|
496
|
+
columns: ["org_phone", "org_id"];
|
|
497
497
|
isOneToOne: false;
|
|
498
|
-
referencedRelation:
|
|
499
|
-
referencedColumns: [
|
|
498
|
+
referencedRelation: "tbl_org_phones";
|
|
499
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
500
500
|
}
|
|
501
501
|
];
|
|
502
502
|
};
|
|
@@ -542,11 +542,11 @@ export type Database = {
|
|
|
542
542
|
};
|
|
543
543
|
Relationships: [
|
|
544
544
|
{
|
|
545
|
-
foreignKeyName:
|
|
546
|
-
columns: [
|
|
545
|
+
foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones";
|
|
546
|
+
columns: ["org_id", "org_phone"];
|
|
547
547
|
isOneToOne: false;
|
|
548
|
-
referencedRelation:
|
|
549
|
-
referencedColumns: [
|
|
548
|
+
referencedRelation: "tbl_org_phones";
|
|
549
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
550
550
|
}
|
|
551
551
|
];
|
|
552
552
|
};
|
|
@@ -580,11 +580,11 @@ export type Database = {
|
|
|
580
580
|
};
|
|
581
581
|
Relationships: [
|
|
582
582
|
{
|
|
583
|
-
foreignKeyName:
|
|
584
|
-
columns: [
|
|
583
|
+
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
584
|
+
columns: ["org_id", "org_phone", "chat_id"];
|
|
585
585
|
isOneToOne: false;
|
|
586
|
-
referencedRelation:
|
|
587
|
-
referencedColumns: [
|
|
586
|
+
referencedRelation: "tbl_chats";
|
|
587
|
+
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
588
588
|
}
|
|
589
589
|
];
|
|
590
590
|
};
|
|
@@ -592,29 +592,32 @@ export type Database = {
|
|
|
592
592
|
Row: {
|
|
593
593
|
assigned_to: string | null;
|
|
594
594
|
chat_id: string;
|
|
595
|
+
chat_org_phones: string[];
|
|
595
596
|
custom_properties: Json | null;
|
|
596
|
-
flag_count: number;
|
|
597
597
|
hubspot_metadata: Json | null;
|
|
598
598
|
label_ids: Json | null;
|
|
599
599
|
org_id: string;
|
|
600
|
+
updated_at: string | null;
|
|
600
601
|
};
|
|
601
602
|
Insert: {
|
|
602
603
|
assigned_to?: string | null;
|
|
603
604
|
chat_id: string;
|
|
605
|
+
chat_org_phones?: string[];
|
|
604
606
|
custom_properties?: Json | null;
|
|
605
|
-
flag_count?: number;
|
|
606
607
|
hubspot_metadata?: Json | null;
|
|
607
608
|
label_ids?: Json | null;
|
|
608
609
|
org_id: string;
|
|
610
|
+
updated_at?: string | null;
|
|
609
611
|
};
|
|
610
612
|
Update: {
|
|
611
613
|
assigned_to?: string | null;
|
|
612
614
|
chat_id?: string;
|
|
615
|
+
chat_org_phones?: string[];
|
|
613
616
|
custom_properties?: Json | null;
|
|
614
|
-
flag_count?: number;
|
|
615
617
|
hubspot_metadata?: Json | null;
|
|
616
618
|
label_ids?: Json | null;
|
|
617
619
|
org_id?: string;
|
|
620
|
+
updated_at?: string | null;
|
|
618
621
|
};
|
|
619
622
|
Relationships: [];
|
|
620
623
|
};
|
|
@@ -672,11 +675,11 @@ export type Database = {
|
|
|
672
675
|
};
|
|
673
676
|
Relationships: [
|
|
674
677
|
{
|
|
675
|
-
foreignKeyName:
|
|
676
|
-
columns: [
|
|
678
|
+
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
|
|
679
|
+
columns: ["org_id", "org_phone"];
|
|
677
680
|
isOneToOne: false;
|
|
678
|
-
referencedRelation:
|
|
679
|
-
referencedColumns: [
|
|
681
|
+
referencedRelation: "tbl_org_phones";
|
|
682
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
680
683
|
}
|
|
681
684
|
];
|
|
682
685
|
};
|
|
@@ -689,6 +692,7 @@ export type Database = {
|
|
|
689
692
|
closed_at: string | null;
|
|
690
693
|
created_at: string;
|
|
691
694
|
due_date: string | null;
|
|
695
|
+
freshdesk_metadata: Json | null;
|
|
692
696
|
hubspot_metadata: Json | null;
|
|
693
697
|
is_deleted: boolean;
|
|
694
698
|
label_ids: Json | null;
|
|
@@ -698,10 +702,10 @@ export type Database = {
|
|
|
698
702
|
quoted_message_id: string | null;
|
|
699
703
|
raised_by: string | null;
|
|
700
704
|
response_time: number | null;
|
|
701
|
-
status: Database[
|
|
705
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
702
706
|
subject: string;
|
|
703
707
|
ticket_id: string;
|
|
704
|
-
|
|
708
|
+
zohodesk_metadata: Json | null;
|
|
705
709
|
};
|
|
706
710
|
Insert: {
|
|
707
711
|
assigned_by?: string | null;
|
|
@@ -711,6 +715,7 @@ export type Database = {
|
|
|
711
715
|
closed_at?: string | null;
|
|
712
716
|
created_at?: string;
|
|
713
717
|
due_date?: string | null;
|
|
718
|
+
freshdesk_metadata?: Json | null;
|
|
714
719
|
hubspot_metadata?: Json | null;
|
|
715
720
|
is_deleted?: boolean;
|
|
716
721
|
label_ids?: Json | null;
|
|
@@ -720,10 +725,10 @@ export type Database = {
|
|
|
720
725
|
quoted_message_id?: string | null;
|
|
721
726
|
raised_by?: string | null;
|
|
722
727
|
response_time?: number | null;
|
|
723
|
-
status?: Database[
|
|
728
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
724
729
|
subject: string;
|
|
725
730
|
ticket_id?: string;
|
|
726
|
-
|
|
731
|
+
zohodesk_metadata?: Json | null;
|
|
727
732
|
};
|
|
728
733
|
Update: {
|
|
729
734
|
assigned_by?: string | null;
|
|
@@ -733,6 +738,7 @@ export type Database = {
|
|
|
733
738
|
closed_at?: string | null;
|
|
734
739
|
created_at?: string;
|
|
735
740
|
due_date?: string | null;
|
|
741
|
+
freshdesk_metadata?: Json | null;
|
|
736
742
|
hubspot_metadata?: Json | null;
|
|
737
743
|
is_deleted?: boolean;
|
|
738
744
|
label_ids?: Json | null;
|
|
@@ -742,25 +748,25 @@ export type Database = {
|
|
|
742
748
|
quoted_message_id?: string | null;
|
|
743
749
|
raised_by?: string | null;
|
|
744
750
|
response_time?: number | null;
|
|
745
|
-
status?: Database[
|
|
751
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
746
752
|
subject?: string;
|
|
747
753
|
ticket_id?: string;
|
|
748
|
-
|
|
754
|
+
zohodesk_metadata?: Json | null;
|
|
749
755
|
};
|
|
750
756
|
Relationships: [
|
|
751
757
|
{
|
|
752
|
-
foreignKeyName:
|
|
753
|
-
columns: [
|
|
758
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
759
|
+
columns: ["org_id"];
|
|
754
760
|
isOneToOne: false;
|
|
755
|
-
referencedRelation:
|
|
756
|
-
referencedColumns: [
|
|
761
|
+
referencedRelation: "tbl_org";
|
|
762
|
+
referencedColumns: ["org_id"];
|
|
757
763
|
},
|
|
758
764
|
{
|
|
759
|
-
foreignKeyName:
|
|
760
|
-
columns: [
|
|
765
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
766
|
+
columns: ["org_id"];
|
|
761
767
|
isOneToOne: false;
|
|
762
|
-
referencedRelation:
|
|
763
|
-
referencedColumns: [
|
|
768
|
+
referencedRelation: "view_org";
|
|
769
|
+
referencedColumns: ["org_id"];
|
|
764
770
|
}
|
|
765
771
|
];
|
|
766
772
|
};
|
|
@@ -772,6 +778,7 @@ export type Database = {
|
|
|
772
778
|
chat_name: string | null;
|
|
773
779
|
chat_type: string | null;
|
|
774
780
|
created_at: string;
|
|
781
|
+
flag_count: number;
|
|
775
782
|
group_metadata: Json | null;
|
|
776
783
|
id: Json | null;
|
|
777
784
|
invite_link: string | null;
|
|
@@ -796,6 +803,7 @@ export type Database = {
|
|
|
796
803
|
chat_name?: string | null;
|
|
797
804
|
chat_type?: string | null;
|
|
798
805
|
created_at?: string;
|
|
806
|
+
flag_count?: number;
|
|
799
807
|
group_metadata?: Json | null;
|
|
800
808
|
id?: Json | null;
|
|
801
809
|
invite_link?: string | null;
|
|
@@ -820,6 +828,7 @@ export type Database = {
|
|
|
820
828
|
chat_name?: string | null;
|
|
821
829
|
chat_type?: string | null;
|
|
822
830
|
created_at?: string;
|
|
831
|
+
flag_count?: number;
|
|
823
832
|
group_metadata?: Json | null;
|
|
824
833
|
id?: Json | null;
|
|
825
834
|
invite_link?: string | null;
|
|
@@ -839,18 +848,18 @@ export type Database = {
|
|
|
839
848
|
};
|
|
840
849
|
Relationships: [
|
|
841
850
|
{
|
|
842
|
-
foreignKeyName:
|
|
843
|
-
columns: [
|
|
851
|
+
foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
|
|
852
|
+
columns: ["org_phone", "org_id"];
|
|
844
853
|
isOneToOne: false;
|
|
845
|
-
referencedRelation:
|
|
846
|
-
referencedColumns: [
|
|
854
|
+
referencedRelation: "tbl_org_phones";
|
|
855
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
847
856
|
}
|
|
848
857
|
];
|
|
849
858
|
};
|
|
850
859
|
tbl_contacts: {
|
|
851
860
|
Row: {
|
|
852
861
|
business_profile: Json | null;
|
|
853
|
-
contact_color: Database[
|
|
862
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
854
863
|
contact_id: string;
|
|
855
864
|
contact_image: string | null;
|
|
856
865
|
contact_name: string | null;
|
|
@@ -878,7 +887,7 @@ export type Database = {
|
|
|
878
887
|
};
|
|
879
888
|
Insert: {
|
|
880
889
|
business_profile?: Json | null;
|
|
881
|
-
contact_color?: Database[
|
|
890
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
882
891
|
contact_id: string;
|
|
883
892
|
contact_image?: string | null;
|
|
884
893
|
contact_name?: string | null;
|
|
@@ -906,7 +915,7 @@ export type Database = {
|
|
|
906
915
|
};
|
|
907
916
|
Update: {
|
|
908
917
|
business_profile?: Json | null;
|
|
909
|
-
contact_color?: Database[
|
|
918
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
910
919
|
contact_id?: string;
|
|
911
920
|
contact_image?: string | null;
|
|
912
921
|
contact_name?: string | null;
|
|
@@ -934,18 +943,18 @@ export type Database = {
|
|
|
934
943
|
};
|
|
935
944
|
Relationships: [
|
|
936
945
|
{
|
|
937
|
-
foreignKeyName:
|
|
938
|
-
columns: [
|
|
946
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
947
|
+
columns: ["org_id"];
|
|
939
948
|
isOneToOne: false;
|
|
940
|
-
referencedRelation:
|
|
941
|
-
referencedColumns: [
|
|
949
|
+
referencedRelation: "tbl_org";
|
|
950
|
+
referencedColumns: ["org_id"];
|
|
942
951
|
},
|
|
943
952
|
{
|
|
944
|
-
foreignKeyName:
|
|
945
|
-
columns: [
|
|
953
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
954
|
+
columns: ["org_id"];
|
|
946
955
|
isOneToOne: false;
|
|
947
|
-
referencedRelation:
|
|
948
|
-
referencedColumns: [
|
|
956
|
+
referencedRelation: "view_org";
|
|
957
|
+
referencedColumns: ["org_id"];
|
|
949
958
|
}
|
|
950
959
|
];
|
|
951
960
|
};
|
|
@@ -982,18 +991,18 @@ export type Database = {
|
|
|
982
991
|
};
|
|
983
992
|
Relationships: [
|
|
984
993
|
{
|
|
985
|
-
foreignKeyName:
|
|
986
|
-
columns: [
|
|
994
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
995
|
+
columns: ["org_id"];
|
|
987
996
|
isOneToOne: false;
|
|
988
|
-
referencedRelation:
|
|
989
|
-
referencedColumns: [
|
|
997
|
+
referencedRelation: "tbl_org";
|
|
998
|
+
referencedColumns: ["org_id"];
|
|
990
999
|
},
|
|
991
1000
|
{
|
|
992
|
-
foreignKeyName:
|
|
993
|
-
columns: [
|
|
1001
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1002
|
+
columns: ["org_id"];
|
|
994
1003
|
isOneToOne: false;
|
|
995
|
-
referencedRelation:
|
|
996
|
-
referencedColumns: [
|
|
1004
|
+
referencedRelation: "view_org";
|
|
1005
|
+
referencedColumns: ["org_id"];
|
|
997
1006
|
}
|
|
998
1007
|
];
|
|
999
1008
|
};
|
|
@@ -1003,51 +1012,51 @@ export type Database = {
|
|
|
1003
1012
|
id: string;
|
|
1004
1013
|
integration_id: string | null;
|
|
1005
1014
|
integration_metadata: Json;
|
|
1006
|
-
integration_name: Database[
|
|
1015
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1007
1016
|
integration_type: string;
|
|
1008
1017
|
is_subscribed: boolean;
|
|
1009
1018
|
org_id: string;
|
|
1010
1019
|
subscribed_at: string;
|
|
1011
|
-
type: Database[
|
|
1020
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1012
1021
|
};
|
|
1013
1022
|
Insert: {
|
|
1014
1023
|
hook_url: string;
|
|
1015
1024
|
id?: string;
|
|
1016
1025
|
integration_id?: string | null;
|
|
1017
1026
|
integration_metadata: Json;
|
|
1018
|
-
integration_name: Database[
|
|
1027
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1019
1028
|
integration_type: string;
|
|
1020
1029
|
is_subscribed: boolean;
|
|
1021
1030
|
org_id: string;
|
|
1022
1031
|
subscribed_at?: string;
|
|
1023
|
-
type: Database[
|
|
1032
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1024
1033
|
};
|
|
1025
1034
|
Update: {
|
|
1026
1035
|
hook_url?: string;
|
|
1027
1036
|
id?: string;
|
|
1028
1037
|
integration_id?: string | null;
|
|
1029
1038
|
integration_metadata?: Json;
|
|
1030
|
-
integration_name?: Database[
|
|
1039
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1031
1040
|
integration_type?: string;
|
|
1032
1041
|
is_subscribed?: boolean;
|
|
1033
1042
|
org_id?: string;
|
|
1034
1043
|
subscribed_at?: string;
|
|
1035
|
-
type?: Database[
|
|
1044
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1036
1045
|
};
|
|
1037
1046
|
Relationships: [
|
|
1038
1047
|
{
|
|
1039
|
-
foreignKeyName:
|
|
1040
|
-
columns: [
|
|
1048
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1049
|
+
columns: ["org_id"];
|
|
1041
1050
|
isOneToOne: false;
|
|
1042
|
-
referencedRelation:
|
|
1043
|
-
referencedColumns: [
|
|
1051
|
+
referencedRelation: "tbl_org";
|
|
1052
|
+
referencedColumns: ["org_id"];
|
|
1044
1053
|
},
|
|
1045
1054
|
{
|
|
1046
|
-
foreignKeyName:
|
|
1047
|
-
columns: [
|
|
1055
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
1056
|
+
columns: ["org_id"];
|
|
1048
1057
|
isOneToOne: false;
|
|
1049
|
-
referencedRelation:
|
|
1050
|
-
referencedColumns: [
|
|
1058
|
+
referencedRelation: "view_org";
|
|
1059
|
+
referencedColumns: ["org_id"];
|
|
1051
1060
|
}
|
|
1052
1061
|
];
|
|
1053
1062
|
};
|
|
@@ -1055,50 +1064,50 @@ export type Database = {
|
|
|
1055
1064
|
Row: {
|
|
1056
1065
|
created_at: string;
|
|
1057
1066
|
id: string;
|
|
1058
|
-
integration_name: Database[
|
|
1067
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1059
1068
|
integration_type: string;
|
|
1060
1069
|
metadata: Json;
|
|
1061
1070
|
org_id: string;
|
|
1062
1071
|
response: Json | null;
|
|
1063
1072
|
success: boolean;
|
|
1064
|
-
type: Database[
|
|
1073
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1065
1074
|
};
|
|
1066
1075
|
Insert: {
|
|
1067
1076
|
created_at?: string;
|
|
1068
1077
|
id?: string;
|
|
1069
|
-
integration_name: Database[
|
|
1078
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
1070
1079
|
integration_type: string;
|
|
1071
1080
|
metadata?: Json;
|
|
1072
1081
|
org_id: string;
|
|
1073
1082
|
response?: Json | null;
|
|
1074
1083
|
success?: boolean;
|
|
1075
|
-
type: Database[
|
|
1084
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1076
1085
|
};
|
|
1077
1086
|
Update: {
|
|
1078
1087
|
created_at?: string;
|
|
1079
1088
|
id?: string;
|
|
1080
|
-
integration_name?: Database[
|
|
1089
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
1081
1090
|
integration_type?: string;
|
|
1082
1091
|
metadata?: Json;
|
|
1083
1092
|
org_id?: string;
|
|
1084
1093
|
response?: Json | null;
|
|
1085
1094
|
success?: boolean;
|
|
1086
|
-
type?: Database[
|
|
1095
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1087
1096
|
};
|
|
1088
1097
|
Relationships: [
|
|
1089
1098
|
{
|
|
1090
|
-
foreignKeyName:
|
|
1091
|
-
columns: [
|
|
1099
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1100
|
+
columns: ["org_id"];
|
|
1092
1101
|
isOneToOne: false;
|
|
1093
|
-
referencedRelation:
|
|
1094
|
-
referencedColumns: [
|
|
1102
|
+
referencedRelation: "tbl_org";
|
|
1103
|
+
referencedColumns: ["org_id"];
|
|
1095
1104
|
},
|
|
1096
1105
|
{
|
|
1097
|
-
foreignKeyName:
|
|
1098
|
-
columns: [
|
|
1106
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
1107
|
+
columns: ["org_id"];
|
|
1099
1108
|
isOneToOne: false;
|
|
1100
|
-
referencedRelation:
|
|
1101
|
-
referencedColumns: [
|
|
1109
|
+
referencedRelation: "view_org";
|
|
1110
|
+
referencedColumns: ["org_id"];
|
|
1102
1111
|
}
|
|
1103
1112
|
];
|
|
1104
1113
|
};
|
|
@@ -1113,7 +1122,7 @@ export type Database = {
|
|
|
1113
1122
|
role: string;
|
|
1114
1123
|
token: string;
|
|
1115
1124
|
token_metadata: Json | null;
|
|
1116
|
-
type: Database[
|
|
1125
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1117
1126
|
};
|
|
1118
1127
|
Insert: {
|
|
1119
1128
|
exp: string;
|
|
@@ -1125,7 +1134,7 @@ export type Database = {
|
|
|
1125
1134
|
role: string;
|
|
1126
1135
|
token: string;
|
|
1127
1136
|
token_metadata?: Json | null;
|
|
1128
|
-
type: Database[
|
|
1137
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1129
1138
|
};
|
|
1130
1139
|
Update: {
|
|
1131
1140
|
exp?: string;
|
|
@@ -1137,22 +1146,22 @@ export type Database = {
|
|
|
1137
1146
|
role?: string;
|
|
1138
1147
|
token?: string;
|
|
1139
1148
|
token_metadata?: Json | null;
|
|
1140
|
-
type?: Database[
|
|
1149
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1141
1150
|
};
|
|
1142
1151
|
Relationships: [
|
|
1143
1152
|
{
|
|
1144
|
-
foreignKeyName:
|
|
1145
|
-
columns: [
|
|
1153
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1154
|
+
columns: ["org_id"];
|
|
1146
1155
|
isOneToOne: false;
|
|
1147
|
-
referencedRelation:
|
|
1148
|
-
referencedColumns: [
|
|
1156
|
+
referencedRelation: "tbl_org";
|
|
1157
|
+
referencedColumns: ["org_id"];
|
|
1149
1158
|
},
|
|
1150
1159
|
{
|
|
1151
|
-
foreignKeyName:
|
|
1152
|
-
columns: [
|
|
1160
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1161
|
+
columns: ["org_id"];
|
|
1153
1162
|
isOneToOne: false;
|
|
1154
|
-
referencedRelation:
|
|
1155
|
-
referencedColumns: [
|
|
1163
|
+
referencedRelation: "view_org";
|
|
1164
|
+
referencedColumns: ["org_id"];
|
|
1156
1165
|
}
|
|
1157
1166
|
];
|
|
1158
1167
|
};
|
|
@@ -1222,18 +1231,18 @@ export type Database = {
|
|
|
1222
1231
|
};
|
|
1223
1232
|
Relationships: [
|
|
1224
1233
|
{
|
|
1225
|
-
foreignKeyName:
|
|
1226
|
-
columns: [
|
|
1234
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1235
|
+
columns: ["org_id"];
|
|
1227
1236
|
isOneToOne: false;
|
|
1228
|
-
referencedRelation:
|
|
1229
|
-
referencedColumns: [
|
|
1237
|
+
referencedRelation: "tbl_org";
|
|
1238
|
+
referencedColumns: ["org_id"];
|
|
1230
1239
|
},
|
|
1231
1240
|
{
|
|
1232
|
-
foreignKeyName:
|
|
1233
|
-
columns: [
|
|
1241
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1242
|
+
columns: ["org_id"];
|
|
1234
1243
|
isOneToOne: false;
|
|
1235
|
-
referencedRelation:
|
|
1236
|
-
referencedColumns: [
|
|
1244
|
+
referencedRelation: "view_org";
|
|
1245
|
+
referencedColumns: ["org_id"];
|
|
1237
1246
|
}
|
|
1238
1247
|
];
|
|
1239
1248
|
};
|
|
@@ -1246,13 +1255,13 @@ export type Database = {
|
|
|
1246
1255
|
is_active: boolean;
|
|
1247
1256
|
is_owner: boolean | null;
|
|
1248
1257
|
label_ids: string[] | null;
|
|
1249
|
-
member_color: Database[
|
|
1258
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1250
1259
|
member_image: string | null;
|
|
1251
1260
|
member_name: string | null;
|
|
1252
1261
|
org_id: string;
|
|
1253
1262
|
org_phones: string[] | null;
|
|
1254
1263
|
preferences: Json;
|
|
1255
|
-
role: Database[
|
|
1264
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1256
1265
|
user_id: string | null;
|
|
1257
1266
|
};
|
|
1258
1267
|
Insert: {
|
|
@@ -1263,13 +1272,13 @@ export type Database = {
|
|
|
1263
1272
|
is_active?: boolean;
|
|
1264
1273
|
is_owner?: boolean | null;
|
|
1265
1274
|
label_ids?: string[] | null;
|
|
1266
|
-
member_color?: Database[
|
|
1275
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1267
1276
|
member_image?: string | null;
|
|
1268
1277
|
member_name?: string | null;
|
|
1269
1278
|
org_id: string;
|
|
1270
1279
|
org_phones?: string[] | null;
|
|
1271
1280
|
preferences?: Json;
|
|
1272
|
-
role?: Database[
|
|
1281
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1273
1282
|
user_id?: string | null;
|
|
1274
1283
|
};
|
|
1275
1284
|
Update: {
|
|
@@ -1280,36 +1289,36 @@ export type Database = {
|
|
|
1280
1289
|
is_active?: boolean;
|
|
1281
1290
|
is_owner?: boolean | null;
|
|
1282
1291
|
label_ids?: string[] | null;
|
|
1283
|
-
member_color?: Database[
|
|
1292
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1284
1293
|
member_image?: string | null;
|
|
1285
1294
|
member_name?: string | null;
|
|
1286
1295
|
org_id?: string;
|
|
1287
1296
|
org_phones?: string[] | null;
|
|
1288
1297
|
preferences?: Json;
|
|
1289
|
-
role?: Database[
|
|
1298
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1290
1299
|
user_id?: string | null;
|
|
1291
1300
|
};
|
|
1292
1301
|
Relationships: [
|
|
1293
1302
|
{
|
|
1294
|
-
foreignKeyName:
|
|
1295
|
-
columns: [
|
|
1303
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1304
|
+
columns: ["user_id"];
|
|
1296
1305
|
isOneToOne: false;
|
|
1297
|
-
referencedRelation:
|
|
1298
|
-
referencedColumns: [
|
|
1306
|
+
referencedRelation: "users";
|
|
1307
|
+
referencedColumns: ["id"];
|
|
1299
1308
|
},
|
|
1300
1309
|
{
|
|
1301
|
-
foreignKeyName:
|
|
1302
|
-
columns: [
|
|
1310
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1311
|
+
columns: ["org_id"];
|
|
1303
1312
|
isOneToOne: false;
|
|
1304
|
-
referencedRelation:
|
|
1305
|
-
referencedColumns: [
|
|
1313
|
+
referencedRelation: "tbl_org";
|
|
1314
|
+
referencedColumns: ["org_id"];
|
|
1306
1315
|
},
|
|
1307
1316
|
{
|
|
1308
|
-
foreignKeyName:
|
|
1309
|
-
columns: [
|
|
1317
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1318
|
+
columns: ["org_id"];
|
|
1310
1319
|
isOneToOne: false;
|
|
1311
|
-
referencedRelation:
|
|
1312
|
-
referencedColumns: [
|
|
1320
|
+
referencedRelation: "view_org";
|
|
1321
|
+
referencedColumns: ["org_id"];
|
|
1313
1322
|
}
|
|
1314
1323
|
];
|
|
1315
1324
|
};
|
|
@@ -1373,32 +1382,32 @@ export type Database = {
|
|
|
1373
1382
|
};
|
|
1374
1383
|
Relationships: [
|
|
1375
1384
|
{
|
|
1376
|
-
foreignKeyName:
|
|
1377
|
-
columns: [
|
|
1385
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1386
|
+
columns: ["org_id"];
|
|
1378
1387
|
isOneToOne: false;
|
|
1379
|
-
referencedRelation:
|
|
1380
|
-
referencedColumns: [
|
|
1388
|
+
referencedRelation: "tbl_org";
|
|
1389
|
+
referencedColumns: ["org_id"];
|
|
1381
1390
|
},
|
|
1382
1391
|
{
|
|
1383
|
-
foreignKeyName:
|
|
1384
|
-
columns: [
|
|
1392
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1393
|
+
columns: ["org_id"];
|
|
1385
1394
|
isOneToOne: false;
|
|
1386
|
-
referencedRelation:
|
|
1387
|
-
referencedColumns: [
|
|
1395
|
+
referencedRelation: "view_org";
|
|
1396
|
+
referencedColumns: ["org_id"];
|
|
1388
1397
|
},
|
|
1389
1398
|
{
|
|
1390
|
-
foreignKeyName:
|
|
1391
|
-
columns: [
|
|
1399
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1400
|
+
columns: ["org_id"];
|
|
1392
1401
|
isOneToOne: false;
|
|
1393
|
-
referencedRelation:
|
|
1394
|
-
referencedColumns: [
|
|
1402
|
+
referencedRelation: "tbl_org";
|
|
1403
|
+
referencedColumns: ["org_id"];
|
|
1395
1404
|
},
|
|
1396
1405
|
{
|
|
1397
|
-
foreignKeyName:
|
|
1398
|
-
columns: [
|
|
1406
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1407
|
+
columns: ["org_id"];
|
|
1399
1408
|
isOneToOne: false;
|
|
1400
|
-
referencedRelation:
|
|
1401
|
-
referencedColumns: [
|
|
1409
|
+
referencedRelation: "view_org";
|
|
1410
|
+
referencedColumns: ["org_id"];
|
|
1402
1411
|
}
|
|
1403
1412
|
];
|
|
1404
1413
|
};
|
|
@@ -1426,18 +1435,18 @@ export type Database = {
|
|
|
1426
1435
|
};
|
|
1427
1436
|
Relationships: [
|
|
1428
1437
|
{
|
|
1429
|
-
foreignKeyName:
|
|
1430
|
-
columns: [
|
|
1438
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1439
|
+
columns: ["org_id"];
|
|
1431
1440
|
isOneToOne: false;
|
|
1432
|
-
referencedRelation:
|
|
1433
|
-
referencedColumns: [
|
|
1441
|
+
referencedRelation: "tbl_org";
|
|
1442
|
+
referencedColumns: ["org_id"];
|
|
1434
1443
|
},
|
|
1435
1444
|
{
|
|
1436
|
-
foreignKeyName:
|
|
1437
|
-
columns: [
|
|
1445
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1446
|
+
columns: ["org_id"];
|
|
1438
1447
|
isOneToOne: false;
|
|
1439
|
-
referencedRelation:
|
|
1440
|
-
referencedColumns: [
|
|
1448
|
+
referencedRelation: "view_org";
|
|
1449
|
+
referencedColumns: ["org_id"];
|
|
1441
1450
|
}
|
|
1442
1451
|
];
|
|
1443
1452
|
};
|
|
@@ -1470,7 +1479,7 @@ export type Database = {
|
|
|
1470
1479
|
view_broadcast_logs: {
|
|
1471
1480
|
Row: {
|
|
1472
1481
|
broadcast_id: string | null;
|
|
1473
|
-
broadcast_status: Database[
|
|
1482
|
+
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
1474
1483
|
created_at: string | null;
|
|
1475
1484
|
delivery_percentage: number | null;
|
|
1476
1485
|
failed_chats: number | null;
|
|
@@ -1489,18 +1498,18 @@ export type Database = {
|
|
|
1489
1498
|
};
|
|
1490
1499
|
Relationships: [
|
|
1491
1500
|
{
|
|
1492
|
-
foreignKeyName:
|
|
1493
|
-
columns: [
|
|
1501
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1502
|
+
columns: ["org_id"];
|
|
1494
1503
|
isOneToOne: false;
|
|
1495
|
-
referencedRelation:
|
|
1496
|
-
referencedColumns: [
|
|
1504
|
+
referencedRelation: "tbl_org";
|
|
1505
|
+
referencedColumns: ["org_id"];
|
|
1497
1506
|
},
|
|
1498
1507
|
{
|
|
1499
|
-
foreignKeyName:
|
|
1500
|
-
columns: [
|
|
1508
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1509
|
+
columns: ["org_id"];
|
|
1501
1510
|
isOneToOne: false;
|
|
1502
|
-
referencedRelation:
|
|
1503
|
-
referencedColumns: [
|
|
1511
|
+
referencedRelation: "view_org";
|
|
1512
|
+
referencedColumns: ["org_id"];
|
|
1504
1513
|
}
|
|
1505
1514
|
];
|
|
1506
1515
|
};
|
|
@@ -1520,18 +1529,18 @@ export type Database = {
|
|
|
1520
1529
|
};
|
|
1521
1530
|
Relationships: [
|
|
1522
1531
|
{
|
|
1523
|
-
foreignKeyName:
|
|
1524
|
-
columns: [
|
|
1532
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1533
|
+
columns: ["org_id"];
|
|
1525
1534
|
isOneToOne: false;
|
|
1526
|
-
referencedRelation:
|
|
1527
|
-
referencedColumns: [
|
|
1535
|
+
referencedRelation: "tbl_org";
|
|
1536
|
+
referencedColumns: ["org_id"];
|
|
1528
1537
|
},
|
|
1529
1538
|
{
|
|
1530
|
-
foreignKeyName:
|
|
1531
|
-
columns: [
|
|
1539
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1540
|
+
columns: ["org_id"];
|
|
1532
1541
|
isOneToOne: false;
|
|
1533
|
-
referencedRelation:
|
|
1534
|
-
referencedColumns: [
|
|
1542
|
+
referencedRelation: "view_org";
|
|
1543
|
+
referencedColumns: ["org_id"];
|
|
1535
1544
|
}
|
|
1536
1545
|
];
|
|
1537
1546
|
};
|
|
@@ -1571,7 +1580,9 @@ export type Database = {
|
|
|
1571
1580
|
created_at: string | null;
|
|
1572
1581
|
is_enterprise: boolean | null;
|
|
1573
1582
|
is_free_trial: boolean | null;
|
|
1583
|
+
is_freshdesk_connected: boolean | null;
|
|
1574
1584
|
is_hubspot_connected: boolean | null;
|
|
1585
|
+
is_zohodesk_connected: boolean | null;
|
|
1575
1586
|
org_id: string | null;
|
|
1576
1587
|
org_image: string | null;
|
|
1577
1588
|
org_metadata: Json | null;
|
|
@@ -1592,7 +1603,9 @@ export type Database = {
|
|
|
1592
1603
|
created_at?: string | null;
|
|
1593
1604
|
is_enterprise?: never;
|
|
1594
1605
|
is_free_trial?: never;
|
|
1606
|
+
is_freshdesk_connected?: never;
|
|
1595
1607
|
is_hubspot_connected?: never;
|
|
1608
|
+
is_zohodesk_connected?: never;
|
|
1596
1609
|
org_id?: string | null;
|
|
1597
1610
|
org_image?: string | null;
|
|
1598
1611
|
org_metadata?: Json | null;
|
|
@@ -1613,7 +1626,9 @@ export type Database = {
|
|
|
1613
1626
|
created_at?: string | null;
|
|
1614
1627
|
is_enterprise?: never;
|
|
1615
1628
|
is_free_trial?: never;
|
|
1629
|
+
is_freshdesk_connected?: never;
|
|
1616
1630
|
is_hubspot_connected?: never;
|
|
1631
|
+
is_zohodesk_connected?: never;
|
|
1617
1632
|
org_id?: string | null;
|
|
1618
1633
|
org_image?: string | null;
|
|
1619
1634
|
org_metadata?: Json | null;
|
|
@@ -1668,7 +1683,7 @@ export type Database = {
|
|
|
1668
1683
|
generate_access_token: {
|
|
1669
1684
|
Args: {
|
|
1670
1685
|
name_input?: string;
|
|
1671
|
-
type_input?: Database[
|
|
1686
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1672
1687
|
org_id_input?: string;
|
|
1673
1688
|
};
|
|
1674
1689
|
Returns: Json;
|
|
@@ -1678,7 +1693,7 @@ export type Database = {
|
|
|
1678
1693
|
org_id_input?: string;
|
|
1679
1694
|
org_phone_input?: string;
|
|
1680
1695
|
token_id_input?: string;
|
|
1681
|
-
token_type_input?: Database[
|
|
1696
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1682
1697
|
};
|
|
1683
1698
|
Returns: Json;
|
|
1684
1699
|
};
|
|
@@ -1694,6 +1709,7 @@ export type Database = {
|
|
|
1694
1709
|
org_id_input: string;
|
|
1695
1710
|
chat_id_input?: string[];
|
|
1696
1711
|
with_members?: boolean;
|
|
1712
|
+
last_updated_at?: string;
|
|
1697
1713
|
};
|
|
1698
1714
|
Returns: Json;
|
|
1699
1715
|
};
|
|
@@ -1801,7 +1817,7 @@ export type Database = {
|
|
|
1801
1817
|
};
|
|
1802
1818
|
list_role_from_user: {
|
|
1803
1819
|
Args: Record<PropertyKey, never>;
|
|
1804
|
-
Returns: Database[
|
|
1820
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
1805
1821
|
};
|
|
1806
1822
|
update_labels: {
|
|
1807
1823
|
Args: {
|
|
@@ -1814,12 +1830,12 @@ export type Database = {
|
|
|
1814
1830
|
};
|
|
1815
1831
|
};
|
|
1816
1832
|
Enums: {
|
|
1817
|
-
enum_broadcast_status:
|
|
1818
|
-
enum_chat_colors:
|
|
1819
|
-
enum_chat_tickets_status:
|
|
1820
|
-
enum_integration_name:
|
|
1821
|
-
enum_integration_type:
|
|
1822
|
-
enum_member_role:
|
|
1833
|
+
enum_broadcast_status: "inprogress" | "completed" | "stopped";
|
|
1834
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
1835
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
1836
|
+
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" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.member.invited";
|
|
1837
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk";
|
|
1838
|
+
enum_member_role: "admin" | "member";
|
|
1823
1839
|
};
|
|
1824
1840
|
CompositeTypes: {
|
|
1825
1841
|
[_ in never]: never;
|
|
@@ -1929,11 +1945,11 @@ export type Database = {
|
|
|
1929
1945
|
};
|
|
1930
1946
|
Relationships: [
|
|
1931
1947
|
{
|
|
1932
|
-
foreignKeyName:
|
|
1933
|
-
columns: [
|
|
1948
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
1949
|
+
columns: ["bucket_id"];
|
|
1934
1950
|
isOneToOne: false;
|
|
1935
|
-
referencedRelation:
|
|
1936
|
-
referencedColumns: [
|
|
1951
|
+
referencedRelation: "buckets";
|
|
1952
|
+
referencedColumns: ["id"];
|
|
1937
1953
|
}
|
|
1938
1954
|
];
|
|
1939
1955
|
};
|
|
@@ -1970,11 +1986,11 @@ export type Database = {
|
|
|
1970
1986
|
};
|
|
1971
1987
|
Relationships: [
|
|
1972
1988
|
{
|
|
1973
|
-
foreignKeyName:
|
|
1974
|
-
columns: [
|
|
1989
|
+
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
|
|
1990
|
+
columns: ["bucket_id"];
|
|
1975
1991
|
isOneToOne: false;
|
|
1976
|
-
referencedRelation:
|
|
1977
|
-
referencedColumns: [
|
|
1992
|
+
referencedRelation: "buckets";
|
|
1993
|
+
referencedColumns: ["id"];
|
|
1978
1994
|
}
|
|
1979
1995
|
];
|
|
1980
1996
|
};
|
|
@@ -2017,18 +2033,18 @@ export type Database = {
|
|
|
2017
2033
|
};
|
|
2018
2034
|
Relationships: [
|
|
2019
2035
|
{
|
|
2020
|
-
foreignKeyName:
|
|
2021
|
-
columns: [
|
|
2036
|
+
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
|
|
2037
|
+
columns: ["bucket_id"];
|
|
2022
2038
|
isOneToOne: false;
|
|
2023
|
-
referencedRelation:
|
|
2024
|
-
referencedColumns: [
|
|
2039
|
+
referencedRelation: "buckets";
|
|
2040
|
+
referencedColumns: ["id"];
|
|
2025
2041
|
},
|
|
2026
2042
|
{
|
|
2027
|
-
foreignKeyName:
|
|
2028
|
-
columns: [
|
|
2043
|
+
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
|
|
2044
|
+
columns: ["upload_id"];
|
|
2029
2045
|
isOneToOne: false;
|
|
2030
|
-
referencedRelation:
|
|
2031
|
-
referencedColumns: [
|
|
2046
|
+
referencedRelation: "s3_multipart_uploads";
|
|
2047
|
+
referencedColumns: ["id"];
|
|
2032
2048
|
}
|
|
2033
2049
|
];
|
|
2034
2050
|
};
|
|
@@ -2135,45 +2151,45 @@ export type Database = {
|
|
|
2135
2151
|
};
|
|
2136
2152
|
};
|
|
2137
2153
|
};
|
|
2138
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2139
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2154
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
2155
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
2140
2156
|
schema: keyof Database;
|
|
2141
2157
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2142
2158
|
schema: keyof Database;
|
|
2143
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2159
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
2144
2160
|
schema: keyof Database;
|
|
2145
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2161
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
2146
2162
|
Row: infer R;
|
|
2147
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2163
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
2148
2164
|
Row: infer R;
|
|
2149
2165
|
} ? R : never : never;
|
|
2150
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2166
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2151
2167
|
schema: keyof Database;
|
|
2152
2168
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2153
2169
|
schema: keyof Database;
|
|
2154
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2170
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2155
2171
|
schema: keyof Database;
|
|
2156
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2172
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2157
2173
|
Insert: infer I;
|
|
2158
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2174
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2159
2175
|
Insert: infer I;
|
|
2160
2176
|
} ? I : never : never;
|
|
2161
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2177
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
2162
2178
|
schema: keyof Database;
|
|
2163
2179
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2164
2180
|
schema: keyof Database;
|
|
2165
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2181
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
2166
2182
|
schema: keyof Database;
|
|
2167
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2183
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
2168
2184
|
Update: infer U;
|
|
2169
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2185
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
2170
2186
|
Update: infer U;
|
|
2171
2187
|
} ? U : never : never;
|
|
2172
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2188
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
2173
2189
|
schema: keyof Database;
|
|
2174
2190
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2175
2191
|
schema: keyof Database;
|
|
2176
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2192
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
2177
2193
|
schema: keyof Database;
|
|
2178
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2194
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
2179
2195
|
export {};
|